/** 
 * Flexmonster Pivot Table & Charts [https://www.flexmonster.com/]
 * April 2022 (v. 2.9.22)
 * Copyright (c) 2022 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] */
function da(f){var k=0;return function(){return k<f.length?{done:!1,value:f[k++]}:{done:!0}}}function ja(f){var k="undefined"!=typeof Symbol&&Symbol.iterator&&f[Symbol.iterator];return k?k.call(f):{next:da(f)}}function ka(f){if(!(f instanceof Array)){f=ja(f);for(var k,h=[];!(k=f.next()).done;)h.push(k.value);f=h}return f}var ma="function"==typeof Object.create?Object.create:function(f){function k(){}k.prototype=f;return new k};
function na(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var k=0;k<f.length;++k){var h=f[k];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");}var q=na(this),oa;
if("function"==typeof Object.setPrototypeOf)oa=Object.setPrototypeOf;else{var pa;a:{var qa={a:!0},ra={};try{ra.__proto__=qa;pa=ra.a;break a}catch(f){}pa=!1}oa=pa?function(f,k){f.__proto__=k;if(f.__proto__!==k)throw new TypeError(f+" is not extensible");return f}:null}var ta=oa;
function u(f,k){f.prototype=ma(k.prototype);f.prototype.constructor=f;if(ta)ta(f,k);else for(var h in k)if("prototype"!=h)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(k,h);d&&Object.defineProperty(f,h,d)}else f[h]=k[h];f.GNa=k.prototype}function ua(){this.VL=!1;this.vz=null;this.qia=void 0;this.U1=1;this.Eba=this.Xsa=0;this.OJ=null}function va(f){if(f.VL)throw new TypeError("Generator is already running");f.VL=!0}ua.prototype.lM=function(f){this.qia=f};
ua.prototype.hN=function(f){this.OJ={Fwa:f,VAa:!0};this.U1=this.Xsa||this.Eba};ua.prototype.return=function(f){this.OJ={return:f};this.U1=this.Eba};function wa(f){this.mg=new ua;this.VGa=f}wa.prototype.lM=function(f){va(this.mg);if(this.mg.vz)return xa(this,this.mg.vz.next,f,this.mg.lM);this.mg.lM(f);return ya(this)};function Aa(f,k){va(f.mg);var h=f.mg.vz;if(h)return xa(f,"return"in h?h["return"]:function(d){return{value:d,done:!0}},k,f.mg.return);f.mg.return(k);return ya(f)}
wa.prototype.hN=function(f){va(this.mg);if(this.mg.vz)return xa(this,this.mg.vz["throw"],f,this.mg.lM);this.mg.hN(f);return ya(this)};function xa(f,k,h,d){try{var b=k.call(f.mg.vz,h);if(!(b instanceof Object))throw new TypeError("Iterator result "+b+" is not an object");if(!b.done)return f.mg.VL=!1,b;var a=b.value}catch(c){return f.mg.vz=null,f.mg.hN(c),ya(f)}f.mg.vz=null;d.call(f.mg,a);return ya(f)}
function ya(f){for(;f.mg.U1;)try{var k=f.VGa(f.mg);if(k)return f.mg.VL=!1,{value:k.value,done:!1}}catch(h){f.mg.qia=void 0,f.mg.hN(h)}f.mg.VL=!1;if(f.mg.OJ){k=f.mg.OJ;f.mg.OJ=null;if(k.VAa)throw k.Fwa;return{value:k.return,done:!0}}return{value:void 0,done:!0}}function Ba(f){this.next=function(k){return f.lM(k)};this.throw=function(k){return f.hN(k)};this.return=function(k){return Aa(f,k)};this[Symbol.iterator]=function(){return this}}
function Ca(f){function k(d){return f.next(d)}function h(d){return f.throw(d)}return new Promise(function(d,b){function a(c){c.done?d(c.value):Promise.resolve(c.value).then(k,h).then(a,b)}a(f.next())})}var w;
(function(f){function k(){}function h(d){return"undefined"===typeof d||null===d}k.fR=function(d,b){if(d==b)return 0;d=d.split(".");b=b.split(".");if(d.length<b.length)return-1;if(d.length>b.length)return 1;for(var a=0;a<d.length;a++){var c=parseInt(d[a]),e=parseInt(b[a]);if(c<e)return-1;if(c>e)return 1}return 0};k.Rc=function(d){return void 0!==d&&null!==d&&("true"==d.toLowerCase()||"on"==d.toLowerCase())};k.aL=function(){var d=(new Date).getTime()-(new Date(2012,2,8)).getTime()*Math.round(123456789*
Math.random());if(k.MBa==d)return d.toString(35)+(k.hea++).toString();k.MBa=d;k.hea=0;return d.toString(35)};k.bind=function(d,b){for(var a=[],c=1;c<arguments.length;++c)a[c-1]=arguments[c];if(h(d))return d;for(c=0;c<a.length;c++)d=d.replace(new RegExp("\\{"+c+"\\}","gi"),null==a[c]?"":a[c].toString());return d};k.Hw=function(d,b){return isNaN(d)?f.model.A.j.cn:x.gh.nxa(d,void 0===b?null:b)};k.Gw=function(d,b,a){void 0===b&&(b="dd/MM/yyyy");if(isNaN(d)||0===d)return f.model.A.j.cn;d=new Date(d);return isNaN(d.getTime())?
"":x.gh.format(d,b,a)};k.jN=function(d,b,a){void 0===b&&(b="dd/MM/yyyy HH:mm:ss");return k.Gw(d,b,a)};k.dT=function(d){return Date.parse(d)&&this.rCa(d)};k.rCa=function(d){return this.EBa.test(d)};k.Kn=function(d){if(h(d))return 0;if("#"===d.substr(0,1))return parseInt(d.substr(1),16);"transparent"==d&&(d="rgb(255,255,255)");d=d.replace(/[^\d,]/g,"");d=d.split(",");var b=parseInt(d[0]),a=parseInt(d[1]),c=parseInt(d[2]);0===parseInt(d[3])&&(b=a=c=255);return c|a<<8|b<<16};k.v4=function(d){for(var b=
new Uint8Array(d.length),a=0,c=d.length;a<c;++a)b[a]=d.charCodeAt(a);return b};k.Baa=function(d){d=-1!==d.split(",")[0].indexOf("base64")?atob(d.split(",")[1]):decodeURI(d.split(",")[1]);return k.v4(d)};k.Cva=function(d){for(var b=d.length,a=Array(b);b--;)a[b]=String.fromCharCode(d[b]);return a.join("")};k.contains=function(d,b){return h(d)?!1:-1<d.toLowerCase().indexOf(b)};k.C4=function(d){if(null==d)return NaN;if("number"===typeof d)return d;"string"!==typeof d&&(d=d.toString());","==f.model.Zb.Ni.oS().thousandsSeparator&&
(d=d.replace(/,/gi,""));d=d.replace(",",".");d=d.replace(/[^[,|\.|\-|\d|e]]*/gi,"");return parseFloat(d)};k.trim=function(d,b){b=void 0===b?null:b;if(null==d)return"";for(var a=0;k.s1(d.charAt(a),b);)++a;for(var c=d.length-1;k.s1(d.charAt(c),b);)--c;return c>=a?d.slice(a,c+1):""};k.trimLeft=function(d,b){b=void 0===b?null:b;if(null==d)return"";for(var a=0;k.s1(d.charAt(a),b);)++a;b=d.length-1;return b>=a?d.slice(a,b+1):""};k.s1=function(d,b){b=void 0===b?null:b;if(null!=b&&d==b)return!1;switch(d){case " ":case "\t":case "\r":case "\n":case "\f":return!0}return!1};
k.SAa=function(d){for(var b in k.QK)if(k.QK[b]==d)return!0;return!1};k.WF=function(d){return"string"!==typeof d||"="!=d.charAt(0)&&"@"!=d.charAt(0)?d:"'"+d};k.Cwa=function(d){return d.replace(/[\s]{2,}/g,function(b){var a="",c=0;for(b=b.length;c<b;c++)a+="&nbsp;";return a})};k.In=function(d,b,a){b=void 0===b?!1:b;a=void 0===a?!1:a;if(h(d))return"";a&&(d=k.Cwa(""+d));return b?d.replace(/[<>"'\/]/g,function(c){return k.QK[c]}):d.replace(/[&<>"'\/]/g,function(c){return k.QK[c]})};k.Dwa=function(d){if(h(d))return"";
d=d.replace(/[&<>"']/g,function(b){return k.QK[b]});return d.replace(/[\s]{2,}/g,function(b){var a="",c=0;for(b=b.length;c<b;c++)a+=" ";return a})};k.hya=function(){return new Uint8Array([239,187,191])};k.Eaa=function(d){k.Faa.innerHTML=d;return k.Faa.value};k.hea=0;k.EBa=/^(?:[\+-]?\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)?)?)?)?$/;
k.QK={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&sol;"};k.Faa=document.createElement("textarea");f.O=k;f.v=h;f.pg=function(d){return"function"===typeof d};f.ha=function(d){if(h(d))return!0;"string"!==typeof d&&(d=""+d);return 0===d.trim().length};f.FNa=function(d){return d.replace(/\|/g,"{%7C}")};f.ENa=function(d){return d.replace(/{%7C}/g,"|")};f.SJ=function(d,b){var a=new Date(d.getTime()),c=b.match(/year|y|quarter|q|month|M|week|w|day|d|hour|h|minute|m|second|s/);if(!c)return a;
c=c[0];if("year"==c||"y"==c)return a.setUTCFullYear(d.getUTCFullYear()+1),a;if("quarter"==c||"q"==c)return a.setUTCMonth(d.getUTCMonth()+3),a;if("month"==c||"M"==c)return a.setUTCMonth(d.getUTCMonth()+1),a;if("week"==c||"w"==c)return a.setUTCDate(d.getUTCDate()+7),a;if("day"==c||"d"==c)return a.setUTCDate(d.getUTCDate()+1),a;b=parseInt(b)||1;if("hour"==c||"h"==c)return a.setUTCHours(d.getUTCHours()+b),a;if("minute"==c||"m"==c)return a.setUTCMinutes(d.getUTCMinutes()+b),a;"second"!=c&&"s"!=c||a.setUTCSeconds(d.getUTCSeconds()+
b);return a};f.BGa=function(d){var b=document.createElement("a");b.href=d;d={protocol:b.protocol,host:b.host,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,hash:b.hash};-1<d.protocol.indexOf(":")&&(d.protocol=d.protocol.substr(0,d.protocol.length-1));return d}})(w||(w={}));
(function(f){function k(h,d){d=void 0===d?{}:d;this.Ii=0;this.bi=this.Gh=!1;var b=void 0===d.yx?!0:d.yx;h instanceof Date?h=h.getTime():void 0===h&&b?h=f.v(window.flexmonster_test_now)?Date.now():(new Date(window.flexmonster_test_now)).getTime():f.ha(h)||"null"===h?(b?this.bi=!0:this.Gh=!0,h=NaN):"number"===typeof h?isNaN(h)&&(this.Gh=!0):"string"===typeof h?(f.ha(d.format)?this.fBa(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.XFa(h,d.format),isNaN(h)&&(this.Gh=!0)):(this.bi=!0,h=NaN);this.zc=isNaN(h)?new Date(NaN):new Date(h);this.dj(this.zc.getTimezoneOffset())}k.prototype.fBa=function(h){return 4==h.length||7==h.length&&"-"==h.charAt(4)||10==h.length&&"-"==h.charAt(4)&&"-"==h.charAt(7)?!0:!1};k.prototype.round=function(h){if(!f.ha(h)){var d=h.match(/[s|M|m|w|q|h|d|y]$/);h=parseFloat(h.substr(0,h.length-1));if(!isNaN(h)&&null!==d){switch(d[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.Pha();break;case "M":this.xH();break;case "q":this.Oha();break;case "y":this.Qha()}void 0!==b&&(b*=1E3,this.zc.setTime(Math.floor(this.zc.getTime()/b)*b))}}};k.prototype.getDate=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCDate()};k.prototype.setDate=function(h){if(!this.bi&&!this.Gh)return this.zc.setUTCDate(h),this};k.prototype.getDay=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCDay()};k.prototype.getFullYear=function(){if(!this.bi&&
!this.Gh)return this.zc.getUTCFullYear()};k.prototype.setFullYear=function(h,d,b){d=void 0===d?null:d;b=void 0===b?null:b;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCFullYear(h):f.v(b)?this.zc.setUTCFullYear(h,d):this.zc.setUTCFullYear(h,d,b),this};k.prototype.getHours=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCHours()};k.prototype.setHours=function(h,d,b,a){d=void 0===d?null:d;b=void 0===b?null:b;a=void 0===a?null:a;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCHours(h):f.v(b)?
this.zc.setUTCHours(h,d):f.v(a)?this.zc.setUTCHours(h,d,b):this.zc.setUTCHours(h,d,b,a),this};k.prototype.getMilliseconds=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCMilliseconds()};k.prototype.setMilliseconds=function(h){if(!this.bi&&!this.Gh)return this.zc.setUTCMilliseconds(h),this};k.prototype.getMinutes=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCMinutes()};k.prototype.setMinutes=function(h,d,b){d=void 0===d?null:d;b=void 0===b?null:b;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCMinutes(h):
f.v(b)?this.zc.setUTCMinutes(h,d):this.zc.setUTCMinutes(h,d,b),this};k.prototype.getMonth=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCMonth()};k.prototype.setMonth=function(h,d){d=void 0===d?null:d;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCMonth(h):this.zc.setUTCMonth(h,d),this};k.prototype.getSeconds=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCSeconds()};k.prototype.setSeconds=function(h,d){d=void 0===d?null:d;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCSeconds(h):
this.zc.setUTCSeconds(h,d),this};k.prototype.getTimezoneOffset=function(){if(!this.bi&&!this.Gh)return this.Ii};k.prototype.dj=function(h,d){d=void 0===d?!0:d;if(!this.bi&&!this.Gh){if(isNaN(h)||f.v(h))return this;0!=h&&60>Math.abs(h)&&(h*=-60);h!==this.Ii&&(d&&this.zc.setUTCMinutes(this.zc.getUTCMinutes()+(this.Ii-h)),this.Ii=h);return this}};k.prototype.getTime=function(){return this.bi||this.Gh?NaN:this.zc.getTime()+6E4*this.Ii};k.prototype.GY=function(h){this.setDate(this.getDate()+h);return this};
k.prototype.Kra=function(h){this.setMonth(this.getMonth()+h)};k.prototype.Qha=function(){this.setMonth(0,1);this.Xm()};k.prototype.Oha=function(){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.Xm()};k.prototype.xH=function(){this.setDate(1);this.Xm();return this};k.prototype.Pha=function(h){this.setDate(this.getDate()-(this.getDay()-(void 0===h?1:h)+7)%7);this.Xm()};k.prototype.Xm=function(){this.setHours(0,
0,0,0);return this};k.prototype.F4=function(h,d){d=void 0===d?1:d;"day"==h?this.Xm():"week"==h?this.Pha(d):"month"==h?this.xH():"quarter"==h?this.Oha():"year"==h&&this.Qha()};k.prototype.zJa=function(){this.setMonth(11,31);this.mz();return this};k.prototype.xJa=function(){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(k.YZ(this.getMonth(),this.getFullYear()));this.mz();return this};
k.prototype.wJa=function(){this.setDate(k.YZ(this.getMonth(),this.getFullYear()));this.mz();return this};k.prototype.yJa=function(h){this.setDate(this.getDate()+(6-this.getDay()+(void 0===h?1:h))%7);this.mz();return this};k.prototype.mz=function(){this.setHours(23,59,59,999);return this};k.prototype.B4=function(h,d){d=void 0===d?1:d;return"day"==h?this.mz():"week"==h?this.yJa(d):"month"==h?this.wJa():"quarter"==h?this.xJa():"year"==h?this.zJa():this};k.prototype.Cg=function(){return this.bi||this.Gh?
!1:!isNaN(this.zc.getTime())};k.prototype.format=function(h){return this.Gh?f.model.A.j.cn:this.bi?"":this.rBa(h)?x.gh.format(this.Gw(),h):x.gh.format(this.zc,"UTC:"+h)};k.prototype.rBa=function(h){return null!==x.gh.Sf(h)};k.prototype.toString=function(){return this.format("yyyy-MM-dd HH:mm:ss")};k.prototype.Gw=function(){return new Date(this.getTime())};k.prototype.clone=function(){var h=new k;this.Gh||this.bi||(h.zc=new Date(this.zc.getTime()));h.Ii=this.Ii;return h};k.prototype.XFa=function(h,
d){var b=NaN,a="UTC"===d.slice(0,3);if("UTC"===d.slice(0,3)||"GMT"===d.slice(0,3))d=d.split(":")[1];"dd/MM/yyyy"===d?(d=h.split("/"),b=a?Date.UTC(parseInt(d[2]),parseInt(d[1])-1,parseInt(d[0])):(new Date(parseInt(d[2]),parseInt(d[1])-1,parseInt(d[0]))).getTime()):"dd-MM-yyyy"===d?(d=h.split("-"),b=a?Date.UTC(parseInt(d[2]),parseInt(d[1])-1,parseInt(d[0])):(new Date(parseInt(d[2]),parseInt(d[1])-1,parseInt(d[0]))).getTime()):"dd/MM/yyyy HH:mm:ss"===d&&(d=h.split(" "),h=d[0].split("/"),f.ha(d[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():(d=f.ha(d[1])?[]:d[1].split(":"),b=a?Date.UTC(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]),parseInt(d[0]),parseInt(d[1]),parseInt(d[2])):(new Date(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]),parseInt(d[0]),parseInt(d[1]),parseInt(d[2]))).getTime()));return b};k.YZ=function(h,d){return k.iqa[h]+(1==h&&0==d%4?1:0)};k.u_=function(h,d){return h&&d?h.getTime()==d.getTime():
h==d};k.iqa={0:31,1:28,2:31,3:30,4:31,5:30,6:31,7:31,8:30,9:31,10:30,11:31};f.Gg=k})(w||(w={}));
(function(f){function k(){(this.isNative=f.pg(Set))?this.ZA=new Set:this.jx=[]}k.prototype.add=function(h){if(this.isNative)return this.ZA.add(h),this;0>this.jx.indexOf(h)&&this.jx.push(h);return this};k.prototype.clear=function(){if(this.isNative)return this.ZA.clear();this.jx.length=0};k.prototype.delete=function(h){if(this.isNative)return this.ZA.delete(h);h=this.jx.indexOf(h);if(0>h)return!1;this.jx.splice(h,1);return!0};k.prototype.has=function(h){return this.isNative?this.ZA.has(h):0<=this.jx.indexOf(h)};
k.prototype.Ic=function(){if(this.isNative){if(f.pg(Array.from))return Array.from(this.ZA);var h=[];this.ZA.forEach(function(d){return h.push(d)});return h}return this.jx};q.Object.defineProperties(k.prototype,{size:{configurable:!0,enumerable:!0,get:function(){return this.isNative?this.ZA.size:this.jx.length}}});f.aE=k})(w||(w={}));
(function(f){function k(){}function h(){return a.apply(this,arguments)||this}function d(){return a.apply(this,arguments)||this}function b(){return a.apply(this,arguments)||this}function a(){this.xk={}}a.prototype.lF=function(c,e){return c.type===e.type&&c.Eb===e.Eb&&c.Q4===e.Q4};a.prototype.H0=function(c,e){if(f.v(this.xk[c]))return!1;for(var g=0;g<this.xk[c].length;g++)if(this.lF(this.xk[c][g],e))return!0;return!1};a.prototype.addEventListener=function(c,e,g){var l={type:c,Eb:e,Q4:g};this.H0(c,l)||
(f.v(this.xk[c])&&(this.xk[c]=[]),this.xk[c].push(l),this.target.addEventListener(c,e,g))};a.prototype.removeEventListener=function(c,e,g){e={type:c,Eb:e,Q4:g};for(c in this.xk){for(var l=[],m=0;m<this.xk[c].length;m++)this.lF(this.xk[c][m],e)?"boolean"===typeof g?this.target.removeEventListener(c,this.xk[c][m].Eb,g):this.target.removeEventListener(c,this.xk[c][m].Eb):l.push(this.xk[c][m]);this.xk[c]=l}};a.prototype.dispose=function(){for(var c in this.xk)for(var e=0;e<this.xk[c].length;e++)this.target.removeEventListener(c,
this.xk[c][e].Eb,!0),this.target.removeEventListener(c,this.xk[c][e].Eb,!1);this.xk={}};q.Object.defineProperties(a.prototype,{target:{configurable:!0,enumerable:!0,get:function(){return null}}});u(b,a);b.U=function(){null===b.instance&&(b.instance=new b);return b.instance};q.Object.defineProperties(b.prototype,{target:{configurable:!0,enumerable:!0,get:function(){return document.body}}});b.instance=null;u(d,a);d.U=function(){null===d.instance&&(d.instance=new d);return d.instance};q.Object.defineProperties(d.prototype,
{target:{configurable:!0,enumerable:!0,get:function(){return document}}});d.instance=null;u(h,a);h.U=function(){null===h.instance&&(h.instance=new h);return h.instance};q.Object.defineProperties(h.prototype,{target:{configurable:!0,enumerable:!0,get:function(){return window}}});h.instance=null;k.dispose=function(){for(;0<k.iN.length;)clearTimeout(k.iN.pop());for(;0<k.ML.length;)clearInterval(k.ML.pop())};k.iN=[];k.ML=[];f.opa=k;f.pe=function(c,e){c=setTimeout(c,e);k.iN.push(c);return c};f.Dr=function(c){clearTimeout(c);
k.iN.splice(k.iN.indexOf(c),1)};f.Lba=function(c,e){c=setInterval(c,e);k.ML.push(c);return c};f.I_=function(c){clearInterval(c);k.ML.splice(k.ML.indexOf(c),1)};f.Im=b.U();f.Pj=d.U();f.XK=h.U()})(w||(w={}));var x;
(function(f){function k(){}k.dBa=function(h){return null!=h&&(0==h.indexOf("http://")||0==h.indexOf("https://"))};k.EAa=function(h){return null!=h&&0==h.indexOf("blob:http")};k.AG=function(h,d){d=void 0===d?!1:d;if(!h)return"()";h=h.trim();if(0==h.length)return"()";if(k.EAa(h))return h;d&&(h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600));if(k.dBa(h)||0==h.indexOf("file")||"/"==h.substr(0,1)||"./"==h.substr(0,2))return h;if(-1!=h.indexOf("..")){d=k.BZ.split("/");""==d[d.length-1]&&d.pop();
for(h=h.split("/");".."==h[0]&&(0<h.length&&h.shift(),0<d.length&&d.pop(),0!=d.length););h=d.join("/")+"/"+h.join("/");"/"==h.substr(0,1)&&(h=h.substring(1));return h}return k.BZ+h};k.Ura=function(h){return h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600)};k.BZ="";f.hx=k})(x||(x={}));
(function(f){function k(){}k.format=function(h,d,b){var a=!1,c=this.Sf(d);"UTC:"==d.slice(0,4)?(d=d.slice(4),a=!0):w.v(c)?w.v(b)||(h=new Date(h.getTime()+36E5*(b+h.getTimezoneOffset()/60))):(d=d.slice(d.indexOf(":")+1),h=new Date(h.getTime()+36E5*(c+h.getTimezoneOffset()/60)));var e=a?"getUTC":"get";b=h[e+"Date"]();c=h[e+"Day"]();var g=h[e+"Month"](),l=h[e+"FullYear"](),m=h[e+"Hours"](),n=h[e+"Minutes"](),p=h[e+"Seconds"]();e=h[e+"Milliseconds"]();var t=a?0:h.getTimezoneOffset(),r={d:b,dd:k.Rm(b),
ddd:k.Tt.GF[c],dddd:k.Tt.GF[c+7],D:b,DD:k.Rm(b),DDD:k.Tt.GF[c],DDDD:k.Tt.GF[c+7],M:g+1,MM:k.Rm(g+1),MMM:k.Tt.YT[g],MMMM:k.Tt.YT[g+12],yy:String(l).slice(2),yyyy:l,YY:String(l).slice(2),YYYY:l,h:m%12||12,hh:k.Rm(m%12||12),H:m,HH:k.Rm(m),k:0==m?24:m,kk:0==m?24:k.Rm(m),m:n,mm:k.Rm(n),s:p,ss:k.Rm(p),l:k.Rm(e,3),L:k.Rm(Math.round(e/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(k.rJa)||[""]).pop().replace(k.sJa,""),o:(0<t?"-":"+")+k.Rm(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 d.replace(k.Uha,function(v){return v in r?r[v]:v.slice(1,v.length-1)})};k.nxa=function(h,d){var b=0>h;0>h&&(h*=-1);var a=Math.floor(h/86400);d=null==d||""==d?0<a&&null==w.model.B.C.Cp?"d'd' "+this.Laa:this.Laa:d;h=Math.round(h);var c=h%60;h=(h-c)/60;var e=h%60;h=(h-e)/60;var g=h%24;b&&(d="-"+d);var l={d:a,dd:k.Rm(a),H:g,HH:k.Rm(g),HHH:h,m:e,mm:k.Rm(e),s:c,ss:k.Rm(c)};return d.replace(k.Uha,function(m){return m in
l?l[m]:m.slice(1,m.length-1)})};k.Sf=function(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.wH.hasOwnProperty(h.slice(0,2))?this.wH[h.slice(0,2)]:this.wH.hasOwnProperty(h.slice(0,3))?this.wH[h.slice(0,3)]:this.wH.hasOwnProperty(h.slice(0,4))?this.wH[h.slice(0,4)]:null};k.Rm=function(h,d){h=""+h;for(d=d||2;h.length<d;)h="0"+h;return h};k.nIa=function(h,d){k.Tt.GF=d.concat(h)};k.zIa=function(h,d){k.Tt.YT=d.concat(h)};k.Hya=
function(){var h=void 0===h?!1:h;return k.Tt.GF.slice(h?0:7,h?7:14)};k.jza=function(){var h=void 0===h?!1:h;return k.Tt.YT.slice(h?0:12,h?12:24)};k.Laa="HH:mm:ss";k.wH={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};k.Uha=/d{1,4}|D{1,4}|m{1,4}|M{1,4}|yy(?:yy)?|YY(?:YY)?|H{1,3}|([HhkMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g;k.rJa=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;
k.sJa=/[^-+\dA-Z]/g;k.Tt={GF:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),YT:"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(" ")};f.gh=k})(x||(x={}));
(function(f){function k(){}k.sort=function(h,d,b){d=void 0===d?0:d;var a=1===d%2;d>>=1;var c=1===d%2;d=d>>1>>1;var e=1===(d>>1)%2?function(g,l){if(void 0!==b){if(f.v(l))return-1;if(f.v(g))return 1;g=b(g);l=b(l)}return isNaN(l)||null===l?-1:isNaN(g)||null===g?1:g-l}:a?function(g,l){if(f.ha(l))return-1;if(f.ha(g))return 1;if(void 0!==b){g=b(g);l=b(l);if(f.ha(l))return-1;if(f.ha(g))return 1}return k.localeCompare(g,l)}:function(g,l){if(f.ha(l))return-1;if(f.ha(g))return 1;if(void 0!==b){g=b(g);l=b(l);
if(f.ha(l))return-1;if(f.ha(g))return 1}return k.localeCompare(g.toLocaleLowerCase(),l.toLocaleLowerCase())};if(1===d%2){d=[];for(a=0;a<h.length;a++)d[a]=a;d.sort(function(g,l){return e(h[g],h[l])});c&&d.reverse();return d}h.sort(e);c&&h.reverse();return h};k.localeCompare=function(h,d){return h&&h.localeCompare?h.localeCompare(d):h===d?0:h>d?1:-1};k.insert=function(h,d,b){for(var a=0;a<d.length;a++)h.splice(b+a,0,d[a])};k.Hq=function(h,d){if(void 0!==h.push)return h.push(d),h;var b=new h.constructor(h.length+
1);b.set(h,0);b.set([d],h.length);return b};k.ge=function(h,d,b){if(b>=h.length)return k.Hq(h,d);if(Array.isArray(h))return h.splice(b,0,d),h;var a=new h.constructor(h.length+1);a.set(h.subarray(0,b));a.set([d],b);a.set(h.subarray(b),b+1);return a};k.Iq=function(h,d){if(Array.isArray(h))return h.splice(d,1),h;if(h instanceof Uint8Array||h instanceof Int8Array||h instanceof Uint16Array||h instanceof Uint32Array){var b=h.length-1,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,d),0);a.set(h.subarray(d+1,h.length),d);return a}return h};k.S1=function(h,d,b){h.splice(b,0,h.splice(d,1)[0])};k.Pw=1;k.ko=2;k.Ru=8;k.mi=16;f.Ha=k})(w||(w={}));
void 0===Array.prototype.findIndex&&(Array.prototype.findIndex=function(f,k){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),d=h.length>>>0,b=0;b<d;b++)if(f.call(k,h[b],b,h))return b;return-1});void 0===Array.prototype.find&&(Array.prototype.find=function(f,k){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),d=h.length>>>0,b=0;b<d;b++){var a=h[b];if(f.call(k,a,b,h))return a}});
void 0===Uint16Array.prototype.slice&&Object.defineProperty(Uint16Array.prototype,"slice",{value:function(f,k){return new Uint16Array(Array.prototype.slice.call(this,f,k))}});
(function(f){function k(){this.values=new Map;this.keys=[]}k.prototype.Pa=function(h,d){this.values.has(h)||this.keys.push(h);this.values.set(h,d)};k.prototype.Cra=function(h){if(null!=h)for(var d in h)h.hasOwnProperty(d)&&this.Pa(d,h[d])};k.prototype.unshift=function(h,d){this.keys.unshift(h);this.values.set(h,d)};k.prototype.TJ=function(h,d,b){null!=this.getItem(h)&&this.removeItem(h);this.keys.splice(b,0,h);this.values.set(h,d)};k.prototype.removeItem=function(h){null!=this.getItem(h)&&(this.keys.splice(this.indexOf(h),
1),this.values.delete(h))};k.prototype.A3=function(h){var d=this.keys[h];null!=d&&(this.keys.splice(h,1),this.values.delete(d))};k.prototype.indexOf=function(h){return this.keys.indexOf(h)};k.prototype.Bb=function(h){return this.values.has(h)};k.prototype.getItem=function(h){return this.values.get(h)};k.prototype.ea=function(h){return this.values.get(this.keys[h])};k.prototype.qh=function(h){return this.keys[h]};k.prototype.vS=function(){return this.values.get(this.keys[this.keys.length-1])};k.prototype.T1=
function(h,d){this.keys.splice(d,0,this.keys.splice(h,1)[0])};k.prototype.slice=function(h,d){h=void 0===h?0:h;d=void 0===d?0:d;0==d&&(d=this.length-h);for(var b=new k,a=0;a<d;a++)this.length>a+h&&(f.v(this.ea(a+h))||b.Pa(this.qh(a+h),this.ea(a+h)));return b};k.prototype.concat=function(h,d){if(void 0!==d&&!d)return this.fqa(h),null;var b=new k;for(d=0;d<this.length;d++)b.Pa(this.qh(d),this.ea(d));for(d=0;d<h.length;d++)b.Pa(h.qh(d),h.ea(d));return b};k.prototype.fqa=function(h){var d,b=h.length;
for(d=0;d<b;d++)this.Pa(h.qh(d),h.ea(d))};k.prototype.splice=function(h,d){d=void 0===d?0:d;var b=new k;h+d>this.length&&(d=this.length-h);1>d&&(d=this.length);for(var a=0;a<this.length;a++)(a<h||a>=h+d)&&b.Pa(this.qh(a),this.ea(a));return b};k.prototype.reverse=function(){var h,d=new k;for(h=this.length-1;-1<h;h--)d.Pa(this.qh(h),this.ea(h));return d};k.prototype.Ic=function(h){if(void 0===h?0:h)return this.keys.slice(0);h=[];for(var d=0;d<this.length;d++)h.push(this.ea(d));return h};k.prototype.toString=
function(){var h=[],d;for(d in this.keys){var b="{"+d+": "+this.getItem(d)+"}";h.push(b)}return h.join(", ")};k.prototype.La=function(){for(var h={},d=0;d<this.keys.length;d++){var b=this.keys[d];h[b]=this.getItem(b)}return h};k.prototype.clear=function(){this.values=new Map;this.keys.length=0};q.Object.defineProperties(k.prototype,{length:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.keys.length}}});f.nb=k})(w||(w={}));
(function(f){function k(){this.quotes=[]}k.prototype.parse=function(h){try{this.quotes=[];for(var d=[],b=!1,a="",c=0;c<h.length;c++){var e=h.charAt(c);'"'==e||"'"==e?(b&&(this.quotes.push(a),d.push(e),a=""),b=!b):b&&(a+=e)}h="  "+h;for(c=0;c<this.quotes.length;c++)if("truestyle"!=this.quotes[c].toLowerCase()){var g=d[c]+this.quotes[c]+d[c],l=h.substring(0,h.indexOf(g)+g.length+2);var m=/(\w\w\w\()['|"][^'|^"]*['|"]/i;if(m.test(l))h=h.replace(g,"@"+c);else{m=/(\W)['|"][^'|^"]*['|"]/i;var n=(-1!=l.indexOf("#value")||
-1!=l.indexOf("#updateDifference")||-1!=l.indexOf("#updatePercent"))&&-1!=l.indexOf("if(");m.test(l)&&!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.B9(h);p=p[1][0]}catch(t){return null}return p};k.prototype.B9=function(h){for(var d=[],b="",a=h.length,c=0;c<h.length;c++){var e=h.charAt(c);
if("("==e)b+="$"+d.length+";",e=this.B9(h.slice(c+1)),d.push(e[1]),c=c+e[0]+1;else if(")"==e){a=c;break}else b+=e}h=[];b=b.split(",");for(c=0;c<b.length;c++)h.push(this.kY(b[c],d));return[a,h]};k.prototype.kY=function(h,d){for(var b=[[" or "," and "],"== != >= <= = > <".split(" "),["-","+"],["/","*"],["^"]],a=0;a<b.length;a++){var c=Number.MIN_VALUE,e=b[a][0];if(3==a){c=h.indexOf(b[a][0]);var g=h.indexOf(b[a][1]);-1!=c&&-1!=g?e=c<g?b[a][1]:b[a][0]:-1!=c?e=b[a][0]:-1!=g&&(e=b[a][1])}else for(g=0;g<
b[a].length;g++){var l=h.indexOf(b[a][g]);-1!=l&&(l>=c||2==a)&&(e=b[a][g],c=l+e.length)}c=h.split(e);2<c.length&&(g=c[c.length-1],c.pop(),c=[c.join(e),g]);if(2==c.length)return[e.trim(),[this.kY(c[0],d),this.kY(c[1],d)],!0]}return this.Sqa(h,d)};k.prototype.Sqa=function(h,d){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 d[b][0];("min"==h||"max"==h)&&1<d[b].length&&(a=!0,"string"==typeof d[b][0]&&(d[b][0]=["sum",[d[b][0]],!1]),"string"==
typeof d[b][1]&&(d[b][1]=["sum",[d[b][1]],!1]));if("value"===h||"updatedifference"===h||"updatepercent"===h)a=!0;return[h,d[b],a]}return d[b][0]}if(-1!=h.indexOf("@"))return d=parseInt(h.slice(1)),this.quotes[d];if("truestyle"==h.toLowerCase()||"truestyle"==h.substring(1,h.length-1).toLowerCase())return"truestyle";d=parseFloat(h);return isNaN(d)?h:d};f.BI=k})(x||(x={}));
(function(f){function k(){}q.Object.defineProperties(k,{Qn:{configurable:!0,enumerable:!0,get:function(){return/Mac/i.test(navigator.platform)}},wC:{configurable:!0,enumerable:!0,get:function(){return/(iPhone|iPod|iPad)/i.test(navigator.platform)||/(iPhone|iPod|iPad)/i.test(navigator.userAgent)}}});f.Oi=k})(x||(x={}));
(function(f){function k(d){this.Ag=[];this.prefix=d}function h(d){d=void 0===d?!0:d;this.values=[];this.GQ=[];this.root=new k("");this.LQ=d}h.prototype.add=function(d,b){if(w.v(d)||0===d.length)return void 0===this.ey&&(this.ey=this.values.length,this.values.push(d)),this.ey;d=""+d;if(this.LQ){var a=/[^\u0000-\u007F]+/.test(d)?d.toLocaleLowerCase():d.toLowerCase();return this.root.U9(d,a,a===d,this.values,this.GQ,b)}return this.root.V9(d,this.values,b)};h.prototype.get=function(d){return this.LQ?
this.GQ[d]||this.values[d]:this.values[d]};h.prototype.find=function(d){if(w.v(d)||0===d.length)return void 0!==this.ey?this.ey:-1;d=""+d;var b=/[^\u0000-\u007F]+/.test(d);this.LQ&&(d=b?d.toLocaleLowerCase():d.toLowerCase());return this.root.find(d,0,this.values,b)};h.prototype.sort=function(){var d=this.root.sort(h.yZ);void 0!==this.ey&&d.unshift(this.ey);return d};h.prototype.clone=function(){var d=new h(this.LQ);d.values=this.values.slice();d.GQ=this.GQ.slice();d.ey=this.ey;d.root=this.root.clone();
return d};h.yZ=function(d,b){return d&&d.localeCompare?d.localeCompare(b):d==b?0:d>b?1:-1};q.Object.defineProperties(h.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.values.length}}});f.dP=h;k.prototype.V9=function(d,b,a){var c=this.prefix.length;if(void 0!==this.children&&d.length>c)return c=d[c],this.children.has(c)||this.children.set(c,new k(this.prefix+c)),this.children.get(c).V9(d,b,a);for(var e=0;e<this.Ag.length;e++){c=b[this.Ag[e]];if(d<c)return this.sP(d,b,a,
e);if(d===c){if(void 0===a)return this.Ag[e];b[a]=d;this.Ag.splice(e,0,a);return a}}return this.sP(d,b,a)};k.prototype.U9=function(d,b,a,c,e,g){var l=this.prefix.length;if(void 0!==this.children&&b.length>l)return l=b[l],this.children.has(l)||this.children.set(l,new k(this.prefix+l)),this.children.get(l).U9(d,b,a,c,e,g);for(var m=0;m<this.Ag.length;m++){l=c[this.Ag[m]];if(b<l)return a?this.sP(d,c,g,m):this.A8(d,b,c,e,g,m);if(b===l){if(void 0===g)return this.Ag[m];c[g]=b;a||(e[g]=d);this.Ag.splice(m,
0,g);return g}}return a?this.sP(d,c,g):this.A8(d,b,c,e,g)};k.prototype.A8=function(d,b,a,c,e,g){g=void 0===g?-1:g;void 0===e?(e=a.length,a.push(b),c[e]=d):(a[e]=b,c[e]=d);-1===g?this.Ag.push(e):this.Ag.splice(g,0,e);this.Ag.length>k.k7&&this.O9(a);return e};k.prototype.sP=function(d,b,a,c){c=void 0===c?-1:c;void 0===a?(a=b.length,b.push(d)):b[a]=d;-1===c?this.Ag.push(a):this.Ag.splice(c,0,a);this.Ag.length>k.k7&&this.O9(b);return a};k.prototype.O9=function(d){if(!this.children){this.children=new Map;
for(var b,a=this.prefix.length,c=-1,e=0,g=0;g<this.Ag.length;g++)b=d[this.Ag[g]],b.length===a?c=this.Ag[g]:(b=b[a],this.children.has(b)||(this.children.set(b,new k(this.prefix+b)),e++),this.children.get(b).Ag.push(this.Ag[g]));this.Ag=-1===c?[]:[c]}};k.prototype.sort=function(d){var b=0<this.Ag.length?this.Ag.slice():[];if(void 0!==this.children){for(var a=[],c=ja(this.children.keys()),e=c.next();!e.done;e=c.next())a.push(e.value);a=a.sort(d);for(c=0;c<a.length;c++)e=this.children.get(a[c]).sort(d),
b=b.concat(e)}return b};k.prototype.find=function(d,b,a,c){if(void 0!==this.children&&d.length!==this.prefix.length){var e=d[b];return this.children.has(e)?this.children.get(e).find(d,b+1,a,c):-1}return this.tqa(d,a,c)};k.prototype.tqa=function(d,b,a){for(var c,e=0;e<this.Ag.length;e++)if(c=b[this.Ag[e]],a){if(c=c.localeCompare(d),0===c)return this.Ag[e]}else if(d===c)return this.Ag[e];return-1};k.prototype.clone=function(){var d=new k(this.prefix);d.Ag=this.Ag.slice();void 0!==this.children&&(d.children=
new Map(this.children));return d};k.k7=16})(x||(x={}));
(function(f){function k(){}k.og=function(h){for(var d in h)if(!w.v(h[d]))return!1;return!0};k.DF=function(h){var d={},b;for(b in h)d[b]=h[b];return d};k.Vi=function(h,d){if(w.v(h))return null;if(Array.isArray(h))return k.Dva(h);var b={},a;for(a in h)b[a]="object"!=typeof h[a]||null==h[a]||null!=d&&-1<d.indexOf(a)?h[a]:k.Vi(h[a]);return b};k.Dva=function(h){for(var d=[],b=0;b<h.length;b++)d[b]="object"!=typeof h[b]?h[b]:k.Vi(h[b]);return d};k.resolve=function(h,d){return w.v(d)?null:d.hasOwnProperty(h)?
d[h]:h.split(".").reduce(function(b,a){return b&&b[a]},d)};f.Mc=k})(x||(x={}));var y;
(function(f){function k(){this.DR=!1;this.Vg=[];this.pm=[];this.Ls=[]}function h(d,b,a){this.n9=!1;this.type=d;this.target=void 0===b?null:b;this.data=void 0===a?null:a}h.Pda=function(d){return-1<"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange focusin focusout touchstart touchmove touchend touchenter touchleave touchcancel".split(" ").indexOf(d)};h.prototype.stopPropagation=function(){this.n9=!0};q.Object.defineProperties(h.prototype,{sBa:{configurable:!0,enumerable:!0,
get:function(){return this.n9}}});h.Jc="event_complete";h.Fz="event_connected";h.je="event_progress";h.to="event_select";h.Qd="event_change";h.ya="event_error";h.OPENED="event_opened";h.CLOSED="event_closed";h.SV="event_cancel";h.OPEN="event_open";h.x5="event_close";h.ZW="event_resize";h.jo="event_clear";f.da=h;k.prototype.lF=function(d,b){return d.type==b.type&&d.Eb==b.Eb};k.prototype.G0=function(d){return!w.v(this.Vg[d])};k.prototype.H0=function(d,b){if(w.v(this.Vg[d]))return!1;for(var a=0;a<this.Vg[d].length;a++)if(this.lF(this.Vg[d][a],
b))return!0;return!1};k.prototype.N=function(d,b,a){a=void 0===a?0:a;b={type:d,Eb:b,priority:a};if(!this.H0(d,b))if(this.DR)w.v(this.pm[d])&&(this.pm[d]=[]),this.pm[d].push(b);else if(w.v(this.Vg[d])&&(this.Vg[d]=[]),0==this.Vg[d].length)this.Vg[d].push(b);else{this.Vg[d][this.Vg[d].length-1].priority>=a&&this.Vg[d].push(b);for(var c=0;c<this.Vg[d].length;c++)if(this.Vg[d][c].priority<a){this.Vg[d].splice(c,0,b);break}}};k.prototype.mb=function(d,b){if(!w.v(this.Vg[d])){b={type:d,Eb:b};for(var a=
this.Vg[d].slice(0),c=[],e=0;e<a.length;e++)this.lF(a[e],b)?this.DR&&(w.v(this.Ls[d])&&(this.Ls[d]=[]),this.Ls[d].push(a[e])):c.push(a[e]);this.Vg[d]=c}};k.prototype.Od=function(d){void 0===d?(this.Vg=[],this.pm=[],this.Ls=[]):(w.v(this.Vg)||(this.Vg[d]=[]),w.v(this.pm)||(this.pm[d]=[]),w.v(this.Ls)||(this.Ls[d]=[]))};k.prototype.Da=function(d){if(!w.v(this.Vg[d.type])){this.DR=!0;for(var b=this.Vg[d.type].slice(0),a=0;a<b.length;a++){if(!w.v(this.Ls[d.type])){var c=!1,e;for(e in this.Ls[d.type])this.lF(b[a],
this.Ls[d.type][e])&&(c=!0);if(c)continue}d instanceof w.model.Xc?b[a].Eb.call(this,d.data):d instanceof h&&d.sBa||b[a].Eb.call(this,d)}delete this.Ls[d.type];for(var g in this.pm){if(w.v(this.Vg[g]))b=[];else if(Array.isArray(this.Vg[g]))b=this.Vg[g].slice(0);else continue;if(!w.v(this.pm[g]))for(a=0;a<this.pm[g].length;a++)if(0==b.length)b.push(this.pm[g][a]);else for(b[b.length-1].priority==this.pm[g][a].priority&&b.push(this.pm[g][a]),d=0;d<b.length;d++)if(b[d].priority<this.pm[g][a].priority){b.splice(d,
0,this.pm[g][a]);break}this.Vg[g]=b;this.pm[g]=[]}this.DR=!1}};k.prototype.Wa=function(d,b,a){d=new f.da(d,null==b?this:b,a);this.Da(d)};f.Fc=k})(y||(y={}));
(function(f){function k(){throw Error("Singleton");}f.requestIdleCallback=function(h,d,b){d=void 0===d?null:d;if(window.requestIdleCallback&&(void 0===b||!b))return window.requestIdleCallback(h,d);var a,c=f.xf(),e;return w.pe(function(){h({didTimeout:!1,timeRemaining:function(){return void 0===a?(a=f.xf(),e=Math.min(350,f.xf()-c+50)):Math.max(0,e-(f.xf()-a))}})},1)};f.cancelIdleCallback=function(h){if(window.cancelIdleCallback)return window.cancelIdleCallback(h);w.Dr(h)};k.sn=function(h){k.iH.push(h);
k.Wf()};k.Wf=function(){w.v(k.jK)&&0<k.iH.length&&(3<k.Q0&&(k.hda=!1),k.jK=f.requestIdleCallback(k.KHa,{timeout:100},!k.hda))};k.KHa=function(h){if(h.didTimeout)k.Q0++,k.rga();else for(k.Q0=0;0<h.timeRemaining()&&0<k.iH.length&&!k.rga(););k.jK=null;k.Wf()};k.rga=function(){var h=k.iH.shift(),d=h.ao(h.eZ);d?h&&h.Ne&&w.pe(h.Ne,1):k.iH.push(h);return d};k.cancel=function(){null!=k.jK&&(f.cancelIdleCallback(k.jK),k.jK=null);k.iH=[]};k.iH=[];k.hda=!0;k.Q0=0;f.Pk=k})(x||(x={}));
(function(f){function k(){var h=navigator.userAgent.toLowerCase(),d={};d.QL=/mozilla/.test(h)&&/firefox/.test(h);d.$S=/webkit/.test(h)&&/chrome/.test(h)&&!/edge/.test(h);d.Y0=/edge/.test(h);d.yBa=/applewebkit/.test(h)&&/safari/.test(h)&&!/chrome/.test(h);d.Rda=/opera/.test(h);d.Di=/msie/.test(h);d.uBa=/ReactNative/i.test(navigator.product);d.Vl=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(h)||/iPad|iPhone|iPod|BlackBerry/i.test(navigator.platform)||d.uBa;d.version=NaN;d.Di||d.QL||
d.$S||d.yBa||d.Rda||!/trident/.test(h)||(d.Di=!0,d.version=11);if(isNaN(d.version))for(var b=["chrome","firefox","msie","safari","opera"],a=0;a<b.length;a++)try{d.version=parseInt(h.match(new RegExp("("+b[a]+")( |/)([0-9]+)"))[3]);break}catch(c){}return d}f.Bd=function(){return k()};f.BR=k;f.jT=function(){return null!=document.fullscreenElement||null!=document.mozFullScreenElement||null!=document.webkitFullscreenElement||null!=document.msFullscreenElement};f.e1=function(){return window!=top};f.Bda=
function(){try{return!w.v(window.process.versions.electron)}catch(h){return!1}};f.aBa=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}};
f.vNa=function(h){var d=document.cookie,b=d.indexOf(" "+h+"=");-1==b&&(b=d.indexOf(h+"="));-1==b?d=null:(b=d.indexOf("=",b)+1,h=d.indexOf(";",b),-1==h&&(h=d.length),d=decodeURI(d.substring(b,h)));return d};f.ANa=function(h,d){var b=new Date;b.setDate(b.getDate()+1825);d=encodeURI(d)+"; expires="+b.toUTCString();document.cookie=h+"="+d};f.wNa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("landscape")};f.xNa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("portrait")};
f.INa=function(){return Math.max(document.documentElement.clientWidth)};f.HNa=function(){return Math.max(document.documentElement.clientHeight)}})(x||(x={}));
(function(f){function k(){}function h(d,b){b=void 0===b?0:b;var a=y.Fc.call(this)||this;a.DP=0;a.EJ=!1;a.kqa=d;a.I9=b;return a}u(h,y.Fc);h.prototype.EFa=function(){this.DP++;this.Da(new y.da(k.Nk));0<this.I9&&this.DP>=this.I9&&(this.stop(),this.Da(new y.da(k.Ok)))};h.prototype.start=function(){var d=this;this.EJ||(this.j9=w.Lba(function(){return d.EFa()},this.kqa),this.EJ=!0)};h.prototype.stop=function(){this.EJ&&!w.v(this.j9)&&(w.I_(this.j9),this.EJ=!1)};h.prototype.reset=function(){this.DP=0;this.stop()};
q.Object.defineProperties(h.prototype,{Qx:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.DP}},sl:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.EJ}}});f.Es=h;k.Nk="timer";k.Ok="complete";f.Ze=k;f.xf=function(){return"undefined"!==typeof performance&&"function"===typeof window.performance.now?performance.now():(new Date).getTime()}})(x||(x={}));
(function(f){function k(d,b){this.eK=null;this.Wi=!1;this.total=this.loaded=0;this.errors=[];this.C1=this.KM=null;this.url=d;this.baseURI=b;this.total="string"==typeof this.url?1:this.url.length}function h(){}h.load=function(d,b,a){if(PivotApi.libsIncluded)return b();d=new k(d,h.gZ);this.SG.push(d);d.Eb=b;d.Xa=a;d.load()};h.D1=function(d,b,a){null==b&&(b={});d=new k(d,h.gZ);this.SG.push(d);d.eK=b.eK;d.Wi=b.Wi;d.Eb=a;d.Xa=void 0;d.load()};h.PJa=function(){var d=document.querySelector("link[data-fm-hc-theme]");
d&&(d.disabled=!0)};h.dispose=function(){for(var d=0;d<this.SG.length;d++)this.SG[d].dispose();this.SG.length=0;this.SG=null};h.gZ="";h.SG=[];f.mn=h;k.prototype.load=function(){0==this.total&&this.aj();if("string"==typeof this.url)this.xJ(this.url,this.eK);else for(var d=this.url,b=0;b<d.length;b++)this.xJ(d[b],this.eK)};k.prototype.aj=function(){this.loaded++;if(this.loaded==this.total||0==this.total)0==this.errors.length?this.Eb&&this.Eb():this.Xa&&this.Xa(this.errors),this.Xa=this.Eb=null};k.prototype.xJ=
function(d,b){d=this.baseURI+d;d.lastIndexOf(".js")==d.length-3?this.$Ba(d):d.lastIndexOf(".css")==d.length-4?this.D1(d,b):this.aj()};k.prototype.$Ba=function(d){var b=this;if(null==this.Gba(d)){var a=this.KM=document.createElement("script");a.type="text/javascript";a.src=d+"?"+w.Ug.qs;a.async=!0;var c=function(){a.readystate="loaded";b.aj();if(a.onloadedlisteners){for(var e=0;e<a.onloadedlisteners.length;e++)a.onloadedlisteners[e]();delete a.onloadedlisteners}};a.onreadystatechange=c;a.onload=c;
a.onerror=function(){a.readystate="error";b.errors.push(d);b.aj()};document.head.appendChild(a)}else c=this.KM=this.Gba(d),"error"==c.readystate?(this.errors.push(d),this.aj()):!0===c.async&&"loaded"!=c.readystate?(null==c.onloadedlisteners&&(c.onloadedlisteners=[]),c.onloadedlisteners.push(function(){return b.aj()})):this.aj()};k.prototype.D1=function(d,b){var a=this;b=void 0===b?null:b;var c=this.C1=document.createElement("link");c.href=d+"?"+w.Ug.qs;c.rel="stylesheet";c.type="text/css";if(null!=
b)for(var e in b)b.hasOwnProperty(e)&&c.setAttribute(e,b[e]);c.onerror=function(){return a.Mb(d)};c.onreadystatechange=function(){return a.aj()};c.onload=function(){return a.aj()};this.Wi?document.body.appendChild(c):document.head.appendChild(c)};k.prototype.Gba=function(d){for(var b=0;b<document.head.children.length;b++){var a=document.head.children.item(b);if(a.src&&-1<a.src.indexOf(d))return a}return null};k.prototype.Mb=function(d){this.errors.push(d);this.aj()};k.prototype.dispose=function(){this.Xa=
this.Eb=this.C1=this.KM=null}})(x||(x={}));
(function(f){function k(d){return y.da.call(this,d)||this}function h(d){var b=y.Fc.call(this)||this;b.VX=!1;b.Eqa=function(a){return b.kp(a)};b.Fqa=function(a){return b.B2(a)};b.KBa=1E3;b.buffer=[];b.kda=function(){return b.oEa()};b.rP=null;if(null!=h.ne)throw Error("KeyboardListener is singleton");f.Bd().Vl||(w.Pj.addEventListener("keydown",b.Eqa),w.Pj.addEventListener("keyup",b.Fqa),b.ME=new A.Aa("div"),b.ME.P("position","fixed").P("left","0px").P("top","0px").P("opacity","0").P("width","0px").P("height",
"0px"),b.ME.$a(),b.$p=new A.Xu,b.$p.F.P("width","1px").P("height","1px").P("padding","0px"),b.$p.N("focusin",function(){b.VX=!0}),b.$p.N("focusout",function(){b.VX=!1}),b.ME.append(b.$p.F),d.append(b.ME));return b}u(h,y.Fc);h.U=function(){null==h.ne&&(h.ne=new h(w.K.Hb.zb.F));return h.ne};h.prototype.B2=function(d){this.f$(d.key,d.type)};h.prototype.kp=function(d){var b=new k(k.rO);b.keyCode=d.keyCode;b.altKey=d.altKey;b.ctrlKey=d.ctrlKey;b.metaKey=d.metaKey;b.shiftKey=d.shiftKey;b.np=d;this.Da(b);
this.f$(d.key,d.type)};h.prototype.f$=function(d,b){d=d.toLowerCase();var a=Date.now();a-this.NBa>this.KBa&&(this.buffer.length=0);20<this.buffer.length&&this.buffer.splice(0,this.buffer.length-6);this.buffer.push({key:d,type:b});this.NBa=a;this.nta()&&(this.buffer.length=0,this.Wa(k.n8))};h.prototype.nta=function(){if(6>this.buffer.length)return!1;for(var d=0,b=0,a=ja(this.buffer),c=a.next();!c.done;c=a.next())c=c.value,"shift"==c.key&&("keydown"==c.type?d++:"keyup"==c.type&&b++);return 3<=d&&3<=
b};h.prototype.oEa=function(){this.ME.$a();this.$p.cj("");this.$p.F.blur();this.$p.mb("keyup",this.kda);null!=this.rP&&(this.rP.focus({preventScroll:!0}),this.rP=null)};h.prototype.DF=function(d){this.rP=document.activeElement;this.ME.show();this.$p.cj(d);this.$p.F.focus({preventScroll:!0});this.$p.selectAll();this.$p.F.focus({preventScroll:!0});this.$p.N("keyup",this.kda)};h.dispose=function(){h.ne=null};q.Object.defineProperties(h.prototype,{Fda:{configurable:!0,enumerable:!0,get:function(){return this.VX}}});
f.sO=h;u(k,y.da);k.rO="event_keydown";k.n8="event_tripple_shift";f.KeyboardEvent=k;(function(d){d[d.sKa=8]="BACKSPACE";d[d.gNa=9]="TAB";d[d.dLa=13]="ENTER";d[d.aNa=16]="SHIFT";d[d.UKa=17]="CTRL";d[d.pKa=18]="ALT";d[d.QMa=19]="PAUSE";d[d.PKa=20]="CAPS_LOCK";d[d.fLa=27]="ESCAPE";d[d.cNa=32]="SPACE";d[d.PMa=33]="PAGE_UP";d[d.OMa=34]="PAGE_DOWN";d[d.Mz=35]="END";d[d.HLa=36]="HOME";d[d.tMa=37]="LEFT_ARROW";d[d.pNa=38]="UP_ARROW";d[d.TMa=39]="RIGHT_ARROW";d[d.bLa=40]="DOWN_ARROW";d[d.ILa=45]="INSERT";d[d.V5=
46]="DELETE";d[d.KLa=48]="KEY_0";d[d.LLa=49]="KEY_1";d[d.MLa=50]="KEY_2";d[d.NLa=51]="KEY_3";d[d.OLa=52]="KEY_4";d[d.PLa=53]="KEY_5";d[d.QLa=54]="KEY_6";d[d.RLa=55]="KEY_7";d[d.SLa=56]="KEY_8";d[d.TLa=57]="KEY_9";d[d.ULa=65]="KEY_A";d[d.VLa=66]="KEY_B";d[d.WLa=67]="KEY_C";d[d.XLa=68]="KEY_D";d[d.YLa=69]="KEY_E";d[d.ZLa=70]="KEY_F";d[d.$La=71]="KEY_G";d[d.aMa=72]="KEY_H";d[d.bMa=73]="KEY_I";d[d.cMa=74]="KEY_J";d[d.dMa=75]="KEY_K";d[d.eMa=76]="KEY_L";d[d.fMa=77]="KEY_M";d[d.gMa=78]="KEY_N";d[d.hMa=
79]="KEY_O";d[d.iMa=80]="KEY_P";d[d.jMa=81]="KEY_Q";d[d.kMa=82]="KEY_R";d[d.lMa=83]="KEY_S";d[d.mMa=84]="KEY_T";d[d.nMa=85]="KEY_U";d[d.oMa=86]="KEY_V";d[d.pMa=87]="KEY_W";d[d.qMa=88]="KEY_X";d[d.rMa=89]="KEY_Y";d[d.sMa=90]="KEY_Z";d[d.uMa=91]="LEFT_META";d[d.UMa=92]="RIGHT_META";d[d.to=93]="SELECT";d[d.CMa=96]="NUMPAD_0";d[d.DMa=97]="NUMPAD_1";d[d.EMa=98]="NUMPAD_2";d[d.FMa=99]="NUMPAD_3";d[d.GMa=100]="NUMPAD_4";d[d.HMa=101]="NUMPAD_5";d[d.IMa=102]="NUMPAD_6";d[d.JMa=103]="NUMPAD_7";d[d.KMa=104]=
"NUMPAD_8";d[d.LMa=105]="NUMPAD_9";d[d.JO=106]="MULTIPLY";d[d.AN=107]="ADD";d[d.aP=109]="SUBTRACT";d[d.ZKa=110]="DECIMAL";d[d.dI=111]="DIVIDE";d[d.hLa=112]="F1";d[d.lLa=113]="F2";d[d.mLa=114]="F3";d[d.nLa=115]="F4";d[d.oLa=116]="F5";d[d.pLa=117]="F6";d[d.qLa=118]="F7";d[d.rLa=119]="F8";d[d.sLa=120]="F9";d[d.iLa=121]="F10";d[d.jLa=122]="F11";d[d.kLa=123]="F12";d[d.MMa=144]="NUM_LOCK";d[d.WMa=145]="SCROLL_LOCK";d[d.ZMa=186]="SEMICOLON";d[d.eLa=187]="EQUALS";d[d.SKa=188]="COMMA";d[d.YKa=189]="DASH";
d[d.RMa=190]="PERIOD";d[d.CLa=191]="FORWARD_SLASH";d[d.GLa=192]="GRAVE_ACCENT";d[d.NMa=219]="OPEN_BRACKET";d[d.tKa=220]="BACK_SLASH";d[d.RKa=221]="CLOSE_BRACKET";d[d.bNa=222]="SINGLE_QUOTE"})(f.ima||(f.ima={}))})(x||(x={}));
(function(f){function k(d,b){this.oY="__resizeLast__";this.K9="__resizeListeners__";this.BJ="__resizeTriggers__";this.qQ="__resizeRAF__";this.oqa="__resizeTrigger";this.SC=d;this.t4=b;this.JR=this.Yxa();w.v(this.SC)||this.sAa(this.t4)}function h(d){var b=y.Fc.call(this)||this;b.rY=function(){return b.SHa()};b.IP=function(){return b.IP()};b.UE="__FMResizeTriggersStorage__";b.Tk=d;b.uAa();b.eq=new k(b.Tk.element,b.UE);b.kJa(b.Tk.element);return b}u(h,y.Fc);h.prototype.uAa=function(){!w.v(this.Tk)&&
w.v(this.Tk.element[this.UE])&&(this.Tk.element[this.UE]={})};h.prototype.refresh=function(){this.C3(this.eq)};h.prototype.C3=function(d){var b=d.H3;d=b.firstElementChild;b=b.lastElementChild;var a=d.firstElementChild;b.scrollLeft=b.scrollWidth;b.scrollTop=b.scrollHeight;a.style.width=d.offsetWidth+1+"px";a.style.height=d.offsetHeight+"px";d.scrollLeft=d.scrollWidth;d.scrollTop=d.scrollHeight};h.prototype.mta=function(d){return d.offsetWidth!=this.eq.E3.width||d.offsetHeight!=this.eq.E3.height};h.prototype.SHa=
function(){var d=this;if(this.Tk&&this.Tk.element&&!w.v(this.Tk.element[this.UE])){var b=this.Tk.element,a=this.eq.E3;this.C3(this.eq);this.eq.F3&&this.Tk.cancelAnimationFrame(this.eq.F3);this.eq.F3=this.Tk.requestAnimationFrame(function(){w.v(a.width)&&(a.width=b.offsetWidth);w.v(a.height)&&(a.height=b.offsetHeight);d.mta(b)&&(a.width=b.offsetWidth,a.height=b.offsetHeight,d.Rva())})}};h.prototype.Rva=function(){this.Wa(y.da.ZW)};h.prototype.kJa=function(d){d.attachEvent?d.attachEvent("onresize",
this.IP):w.v(d)||("static"==getComputedStyle(d).position&&(d.style.position="relative"),d.appendChild(this.eq.H3),this.C3(this.eq),d.addEventListener("scroll",this.rY,!0))};h.prototype.mJa=function(d){d.detachEvent?d.detachEvent("onresize",this.IP):d.removeEventListener("scroll",this.rY,!0)};h.prototype.Bta=function(){for(var d=this.Tk.element[this.UE],b=Object.keys(d),a=0;a<b.length;a++)if(!w.v(d[b[a]]))return;this.Tk.element[this.UE]=null};h.prototype.dispose=function(){this.Tk&&this.Tk.element&&
(this.mJa(this.Tk.element),this.eq.dispose(),this.eq=null,this.Bta());this.IP=this.rY=this.Tk=null};f.xoa=h;k.prototype.Yxa=function(){return this.oqa+w.K.Hb.zb.Ue.id};k.prototype.sAa=function(d){this.SC[d][this.JR]={};d=this.SC[d][this.JR];d[this.oY]={};d[this.K9]=[];d[this.BJ]=document.createElement("div");d[this.BJ].className="fm-resize-triggers";d[this.BJ].innerHTML='<div class="fm-expand-trigger"><div></div></div><div class="fm-contract-trigger"></div>';d[this.qQ]=null};k.prototype.sL=function(){return this.SC[this.t4][this.JR]};
k.prototype.dispose=function(){if(!w.v(this.SC)){this.SC.removeChild(this.H3);var d=this.sL();d[this.oY]=null;d[this.K9]=null;d[this.qQ]=null;d[this.BJ]=null;this.SC[this.t4][this.JR]=null}};q.Object.defineProperties(k.prototype,{H3:{configurable:!0,enumerable:!0,get:function(){return this.sL()[this.BJ]}},E3:{configurable:!0,enumerable:!0,get:function(){return this.sL()[this.oY]}},F3:{configurable:!0,enumerable:!0,get:function(){return this.sL()[this.qQ]},set:function(d){this.sL()[this.qQ]=d}}});
f.VMa=k})(x||(x={}));(function(f){function k(){this.z4=[]}k.prototype.add=function(h,d){for(var b=[],a=1;a<arguments.length;++a)b[a-1]=arguments[a];this.z4.push({Eb:h,eZ:b})};k.prototype.Wf=function(h){function d(){if(0==b.z4.length)h();else{var a=b.z4.shift();f.requestIdleCallback(function(){return a.Eb.apply(a,[d].concat(ka(a.eZ)))},{timeout:100})}}var b=this;d()};f.YI=k})(x||(x={}));
(function(f){function k(){}function h(H,G,F){var I=0,N=[],L=0,O,T,M,V=!1,P=[],W=[],ca=!1;F=F||{};var X=F.encoding||"UTF8";var ea=F.yNa||1;if(ea!==parseInt(ea,10)||1>ea)throw Error("numRounds must a integer >= 1");if(0===H.lastIndexOf("SHA-",0))if(O=function(R,S){return J(R,S,H)},T=function(R,S,Y,ba){if("SHA-224"===H||"SHA-256"===H){var Z=(S+65>>>9<<4)+15;var ha=16}else throw Error("Unexpected error in SHA-2 implementation");for(;R.length<=Z;)R.push(0);R[S>>>5]|=128<<24-S%32;S+=Y;R[Z]=S&4294967295;
R[Z-1]=S/4294967296|0;Y=R.length;for(S=0;S<Y;S+=ha)ba=J(R.slice(S,S+ha),ba,H);if("SHA-224"===H)R=[ba[0],ba[1],ba[2],ba[3],ba[4],ba[5],ba[6]];else if("SHA-256"===H)R=ba;else throw Error("Unexpected error in SHA-2 implementation");return R},M=function(R){return R.slice()},"SHA-224"===H){var fa=512;var Q=224}else if("SHA-256"===H)fa=512,Q=256;else throw Error("Chosen SHA variant is not supported");else throw Error("Chosen SHA variant is not supported");var la=l(G,X);var ia=K(H);this.setHMACKey=function(R,
S,Y){if(!0===V)throw Error("HMAC key already set");if(!0===ca)throw Error("Cannot set HMAC key after calling update");X=(Y||{}).encoding||"UTF8";S=l(S,X)(R);R=S.nF;S=S.value;var ba=fa>>>3;Y=ba/4-1;if(ba<R/8){for(S=T(S,R,0,K(H));S.length<=Y;)S.push(0);S[Y]&=4294967040}else if(ba>R/8){for(;S.length<=Y;)S.push(0);S[Y]&=4294967040}for(R=0;R<=Y;R+=1)P[R]=S[R]^909522486,W[R]=S[R]^1549556828;ia=O(P,ia);I=fa;V=!0};this.update=function(R){var S,Y=0,ba=fa>>>5;var Z=la(R,N,L);R=Z.nF;var ha=Z.value;Z=R>>>5;for(S=
0;S<Z;S+=ba)Y+fa<=R&&(ia=O(ha.slice(S,S+ba),ia),Y+=fa);I+=Y;N=ha.slice(Y>>>5);L=R%fa;ca=!0};this.getHash=function(R,S){if(!0===V)throw Error("Cannot call getHash after setting HMAC key");var Y=g(S);switch(R){case "HEX":R=function(Z){return b(Z,Q,Y)};break;case "B64":R=function(Z){return a(Z,Q,Y)};break;case "BYTES":R=function(Z){return c(Z,Q)};break;case "ARRAYBUFFER":try{S=new ArrayBuffer(0)}catch(Z){throw Error("ARRAYBUFFER not supported by this environment");}R=function(Z){return e(Z,Q)};break;
default:throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER");}var ba=T(N.slice(),L,I,M(ia));for(S=1;S<ea;S+=1)ba=T(ba,Q,0,K(H));return R(ba)};this.getHMAC=function(R,S){if(!1===V)throw Error("Cannot call getHMAC without first setting HMAC key");var Y=g(S);switch(R){case "HEX":R=function(Z){return b(Z,Q,Y)};break;case "B64":R=function(Z){return a(Z,Q,Y)};break;case "BYTES":R=function(Z){return c(Z,Q)};break;case "ARRAYBUFFER":try{R=new ArrayBuffer(0)}catch(Z){throw Error("ARRAYBUFFER not supported by this environment");
}R=function(Z){return e(Z,Q)};break;default:throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER");}S=T(N.slice(),L,I,M(ia));var ba=O(W,K(H));ba=T(S,Q,fa,ba);return R(ba)}}function d(){}function b(H,G,F){var I="";G/=8;var N;for(N=0;N<G;N+=1){var L=H[N>>>2]>>>8*(3+N%4*-1);I+="0123456789abcdef".charAt(L>>>4&15)+"0123456789abcdef".charAt(L&15)}return F.uU?I.toUpperCase():I}function a(H,G,F){var I="",N=G/8,L;for(L=0;L<N;L+=3){var O=L+1<N?H[L+1>>>2]:0;var T=L+2<N?H[L+2>>>2]:0;T=(H[L>>>2]>>>
8*(3+L%4*-1)&255)<<16|(O>>>8*(3+(L+1)%4*-1)&255)<<8|T>>>8*(3+(L+2)%4*-1)&255;for(O=0;4>O;O+=1)8*L+6*O<=G?I+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>>6*(3-O)&63):I+=F.JQ}return I}function c(H,G){var F="";G/=8;var I;for(I=0;I<G;I+=1){var N=H[I>>>2]>>>8*(3+I%4*-1)&255;F+=String.fromCharCode(N)}return F}function e(H,G){G/=8;var F,I=new ArrayBuffer(G);var N=new Uint8Array(I);for(F=0;F<G;F+=1)N[F]=H[F>>>2]>>>8*(3+F%4*-1)&255;return I}function g(H){var G={uU:!1,JQ:"=",
BNa:-1};H=H||{};G.uU=H.uU||!1;!0===H.hasOwnProperty("b64Pad")&&(G.JQ=H.JQ);if("boolean"!==typeof G.uU)throw Error("Invalid outputUpper formatting option");if("string"!==typeof G.JQ)throw Error("Invalid b64Pad formatting option");return G}function l(H,G){switch(G){case "UTF8":case "UTF16BE":case "UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch(H){case "HEX":H=function(F,I,N){var L=F.length,O,T;if(0!==L%2)throw Error("String of HEX type must be in byte increments");
I=I||[0];N=N||0;var M=N>>>3;for(O=0;O<L;O+=2){var V=parseInt(F.substr(O,2),16);if(isNaN(V))throw Error("String of HEX type contains invalid characters");var P=(O>>>1)+M;for(T=P>>>2;I.length<=T;)I.push(0);I[T]|=V<<8*(3+P%4*-1)}return{value:I,nF:4*L+N}};break;case "TEXT":H=function(F,I,N){var L=0,O,T,M;I=I||[0];N=N||0;var V=N>>>3;if("UTF8"===G){var P=3;for(O=0;O<F.length;O+=1){var W=F.charCodeAt(O);var ca=[];128>W?ca.push(W):2048>W?(ca.push(192|W>>>6),ca.push(128|W&63)):55296>W||57344<=W?ca.push(224|
W>>>12,128|W>>>6&63,128|W&63):(O+=1,W=65536+((W&1023)<<10|F.charCodeAt(O)&1023),ca.push(240|W>>>18,128|W>>>12&63,128|W>>>6&63,128|W&63));for(T=0;T<ca.length;T+=1){var X=L+V;for(M=X>>>2;I.length<=M;)I.push(0);I[M]|=ca[T]<<8*(P+X%4*-1);L+=1}}}else if("UTF16BE"===G||"UTF16LE"===G)for(P=2,ca="UTF16LE"===G&&!0||"UTF16LE"!==G&&!1,O=0;O<F.length;O+=1){W=F.charCodeAt(O);!0===ca&&(T=W&255,W=T<<8|W>>>8);X=L+V;for(M=X>>>2;I.length<=M;)I.push(0);I[M]|=W<<8*(P+X%4*-1);L+=2}return{value:I,nF:8*L+N}};break;case "B64":H=
function(F,I,N){var L=0,O,T;if(-1===F.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");var M=F.indexOf("=");F=F.replace(/=/g,"");if(-1!==M&&M<F.length)throw Error("Invalid '=' found in base-64 string");I=I||[0];N=N||0;var V=N>>>3;for(M=0;M<F.length;M+=4){var P=F.substr(M,4);for(O=T=0;O<P.length;O+=1){var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(P[O]);T|=W<<18-6*O}for(O=0;O<P.length-1;O+=1){var ca=L+V;for(W=ca>>>2;I.length<=W;)I.push(0);
I[W]|=(T>>>16-8*O&255)<<8*(3+ca%4*-1);L+=1}}return{value:I,nF:8*L+N}};break;case "BYTES":H=function(F,I,N){var L;I=I||[0];N=N||0;var O=N>>>3;for(L=0;L<F.length;L+=1){var T=F.charCodeAt(L);var M=L+O;var V=M>>>2;I.length<=V&&I.push(0);I[V]|=T<<8*(3+M%4*-1)}return{value:I,nF:8*F.length+N}};break;case "ARRAYBUFFER":try{H=new ArrayBuffer(0)}catch(F){throw Error("ARRAYBUFFER not supported by this environment");}H=function(F,I,N){var L;I=I||[0];N=N||0;var O=N>>>3;var T=new Uint8Array(F);for(L=0;L<F.byteLength;L+=
1){var M=L+O;var V=M>>>2;I.length<=V&&I.push(0);I[V]|=T[L]<<8*(3+M%4*-1)}return{value:I,nF:8*F.byteLength+N}};break;default:throw Error("format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER");}return H}function m(H,G){return H>>>G|H<<32-G}function n(H,G,F){return H&G^~H&F}function p(H,G,F){return H&G^H&F^G&F}function t(H){return m(H,2)^m(H,13)^m(H,22)}function r(H){return m(H,6)^m(H,11)^m(H,25)}function v(H){return m(H,7)^m(H,18)^H>>>3}function z(H){return m(H,17)^m(H,19)^H>>>10}function B(H,G){var F=
(H&65535)+(G&65535);return((H>>>16)+(G>>>16)+(F>>>16)&65535)<<16|F&65535}function C(H,G,F,I){var N=(H&65535)+(G&65535)+(F&65535)+(I&65535);return((H>>>16)+(G>>>16)+(F>>>16)+(I>>>16)+(N>>>16)&65535)<<16|N&65535}function E(H,G,F,I,N){var L=(H&65535)+(G&65535)+(F&65535)+(I&65535)+(N&65535);return((H>>>16)+(G>>>16)+(F>>>16)+(I>>>16)+(N>>>16)+(L>>>16)&65535)<<16|L&65535}function K(H){var G,F;if(0===H.lastIndexOf("SHA-",0))switch(G=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,
3204075428],F=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],H){case "SHA-224":break;case "SHA-256":G=F;break;case "SHA-384":G=[new d,new d,new d,new d,new d,new d,new d,new d];break;case "SHA-512":G=[new d,new d,new d,new d,new d,new d,new d,new d];break;default:throw Error("Unknown SHA variant");}else throw Error("No SHA variants supported");return G}function J(H,G,F){var I,N,L,O=[];if("SHA-224"===F||"SHA-256"===F){var T=64;var M=1;var V=Number;var P=B;
var W=C;var ca=E;var X=v;var ea=z;var fa=t;var Q=r;var la=p;var ia=n;var R=aa}else throw Error("Unexpected error in SHA-2 implementation");F=G[0];var S=G[1];var Y=G[2];var ba=G[3];var Z=G[4];var ha=G[5];var sa=G[6];var za=G[7];for(L=0;L<T;L+=1)16>L?(N=L*M,I=H.length<=N?0:H[N],N=H.length<=N+1?0:H[N+1],O[L]=new V(I,N)):O[L]=W(ea(O[L-2]),O[L-7],X(O[L-15]),O[L-16]),I=ca(za,Q(Z),ia(Z,ha,sa),R[L],O[L]),N=P(fa(F),la(F,S,Y)),za=sa,sa=ha,ha=Z,Z=P(ba,I),ba=Y,Y=S,S=F,F=P(I,N);G[0]=P(F,G[0]);G[1]=P(S,G[1]);G[2]=
P(Y,G[2]);G[3]=P(ba,G[3]);G[4]=P(Z,G[4]);G[5]=P(ha,G[5]);G[6]=P(sa,G[6]);G[7]=P(za,G[7]);return G}k.hash=function(H){var G=new h("SHA-256","TEXT");G.update(H);return G.getHash("HEX")};f.Coa=k;var aa=[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]})(w||(w={}));
(function(f){function k(h){this.vAa=h;this.EK=new f.nb;this.mGa(this.vAa)}k.prototype.get=function(h){return this.has(h)?this.EK.getItem(h)[0]:null};k.prototype.has=function(h){return this.EK.Bb(h)};k.prototype.mGa=function(h){0===h.indexOf("?")&&(h=h.slice(1));h=h.split("&");for(var d=0;d<h.length;d++){var b=h[d],a=b.indexOf("=");-1<a?this.Wfa(this.decode(b.slice(0,a)),this.decode(b.slice(a+1))):b&&this.Wfa(this.decode(b),"")}};k.prototype.Wfa=function(h,d){this.EK.Bb(h)?this.EK.getItem(h).push(d):
this.EK.Pa(h,[d])};k.prototype.decode=function(h){return h.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(d){return decodeURIComponent(d)})};f.Bla=k})(w||(w={}));(function(f){function k(){}k.eca=function(){return getComputedStyle(document.documentElement).getPropertyValue("--fm-version").trim().replace(/"/g,"")};k.bta=function(h){return k.eca()===h};f.K5=k})(x||(x={}));var A;
(function(f){(function(k){function h(){var d=this;this.distance=15;this.$P=!1;this.LA=null;this.vD=!0;w.Pj.addEventListener("mousemove",function(b){return d.sw(b)});w.Pj.addEventListener("touchmove",function(b){return d.Y2(b)},!1);w.Pj.addEventListener("mouseup",function(b){return d.zq(b)});w.Pj.addEventListener("touchend",function(b){return d.sU(b)});w.Pj.addEventListener("touchcancel",function(b){return d.sU(b)})}h.U=function(){h.instance||(h.instance=new h);return h.instance};h.dispose=function(){h.instance=
null};h.prototype.lCa=function(d,b){function a(e){b.JS&&!e.target.matches(b.JS)||c.Gd==d||(null!=c.Gd&&c.s4(b,e),c.Gd=d,c.Fn=b,c.xha=c.x0(e),c.yha=c.y0(e),c.U4=!1)}var c=this;d.Y("fm-draggable");d.N("mousedown",a);d.N("touchstart",a)};h.prototype.x0=function(d){return d instanceof MouseEvent?d.clientX:d.changedTouches[0].clientX};h.prototype.y0=function(d){return d instanceof MouseEvent?d.clientY:d.changedTouches[0].clientY};h.prototype.sw=function(d){1==d.which&&this.Gd&&(this.wg&&this.Gd.Lc("fm-dragging")?
(this.aV(d.clientX,d.clientY),this.Fn.d2&&this.Fn.d2(this.Gd,d),d.preventDefault(),window.getSelection().removeAllRanges()):w.v(this.Fn.qw)||this.Fn.qw(this.Gd,d)?(this.$P=!0,this.wg=this.Fn.Bn(this.Gd),this.wg.P("opacity",0),w.K.Hb.zb.F.V(this.wg),this.aV(d.clientX,d.clientY,!0),this.Gd.Y("fm-dragging")):(this.Gd=null,w.v(this.wg)||(this.wg.sg(!0),this.wg=null)))};h.prototype.xda=function(d,b){return Math.abs(this.xha-d)>this.distance||Math.abs(this.yha-b)>this.distance?!0:!1};h.prototype.aV=function(d,
b,a){a=void 0===a?!1:a;if(null!=this.wg){var c=w.K.Hb.zb.F.Sf();this.wg.P("margin-left");this.wg.P("margin-top");if(a&&null!=this.Gd){var e=this.Gd.Sf();a=Math.max(0,Math.min(this.Gd.height,b-e.top));e=Math.max(0,Math.min(this.Gd.width,this.wg.width,d-e.left));this.wg.P("margin-top",-a+"px");this.wg.P("margin-left",-e+"px")}this.wg.position({top:b-c.top,left:d-c.left});this.xda(d,b)&&(this.wg.P("opacity",1),this.Gd.Y("fm-dragging-move"),!this.U4&&w.pg(this.Fn.eU)&&this.Fn.eU(this.Gd),this.U4=!0)}};
h.prototype.Y2=function(d){if(this.Gd){var b=d.touches[0];if(this.wg&&this.Gd.Lc("fm-dragging")){this.aV(b.clientX,b.clientY);this.Fn.d2&&this.Fn.d2(this.Gd,d);d.preventDefault();b=d.changedTouches[0];var a=f.Aa.Pb(document.elementFromPoint(b.clientX,b.clientY));if(a){var c=a.closest(".fm-droppable");c&&!0===c.zt.scroll&&this.Uca(c,b.clientY);c&&c.zt&&c.zt.Wl&&(c.zt.Wl(this.Gd,this.wg,c,d),this.LA=c)}(null==a||null==c)&&null!=this.LA&&this.LA.zt&&this.LA.zt.ml&&this.LA.zt.ml(this.Gd,this.wg,this.LA,
d)}else w.v(this.Fn.qw)||this.Fn.qw(this.Gd,d)?(this.$P=!0,this.wg=this.Fn.Bn(this.Gd),this.wg.P("opacity",0),w.K.Hb.zb.F.V(this.wg),this.aV(b.clientX,b.clientY,!0),this.Gd.Y("fm-dragging")):(this.Gd=null,this.wg.sg(!0),this.wg=null)}};h.prototype.zq=function(d){this.s4(this.Fn,d)};h.prototype.sU=function(d){for(var b=d.changedTouches[0],a=b=f.Aa.Pb(document.elementFromPoint(b.clientX,b.clientY));b;){if(b.Lc("fm-droppable")){w.ha(b.zt.Fy)||(a=a.closest(b.zt.Fy));b.zt.Xl(this.Gd,b,a,d);break}b=b.parent}this.s4(this.Fn,
d)};h.prototype.s4=function(d,b){this.$P=!1;null!=this.wg&&(this.wg.sg(!0),this.wg=null);if(null!=this.Gd){this.Gd.ud("fm-dragging");this.Gd.ud("fm-dragging-move");if(this.U4&&this.Gd&&this.Gd.element){var a=this.Gd,c=function(e){w.v(a)||(a.mb("click",c),a=null,e.stopImmediatePropagation())};this.Gd.N("click",c)}d.ju&&this.xda(this.x0(b),this.y0(b))&&d.ju(this.Gd,b);this.Gd=null}this.LA=null;this.yha=this.xha=NaN;this.vD=!0;clearTimeout(this.xga)};h.prototype.mCa=function(d,b,a){var c=this;d.Lc("fm-droppable")||
(d.Y("fm-droppable"),d.N("mouseenter",function(e){null!=c.Gd&&1==e.which&&a.e2&&a.e2(c.Gd,c.wg,b,e)}),d.N("mouseleave",function(e){c.vD=!0;null!=c.Gd&&1==e.which&&a.ml&&a.ml(c.Gd,c.wg,b,e)}),d.N("mouseover",function(e){c.vD=!0;null!=c.Gd&&1==e.which&&(!0===a.scroll&&c.Uca(d,e.clientY),a.Wl&&a.Wl(c.Gd,c.wg,b,e))}),d.N("mouseup",function(e){c.vD=!0;if(null!=c.Gd&&1==e.which){var g=f.Aa.Pb(e.target);w.ha(a.Fy)||(g=g.closest(a.Fy));a.Xl(c.Gd,d,g,e)}}))};h.prototype.Uca=function(d,b){var a=d.element.getBoundingClientRect(),
c=Math.max(0,a.bottom-b);b=Math.max(0,b-a.top);30>c?(this.vD=!1,this.N3(d,Math.min(30/c,4))):30>b&&(this.vD=!1,this.N3(d,Math.min(-30/b,4)))};h.prototype.N3=function(d,b){var a=this;clearTimeout(this.xga);w.v(d)||(d.Dw(d.element.scrollTop+b),0==this.vD&&(this.xga=setTimeout(function(){return a.N3(d,b)},20)))};q.Object.defineProperties(h.prototype,{QAa:{configurable:!0,enumerable:!0,get:function(){return this.$P}}});k.VN=h})(f.IK||(f.IK={}))})(A||(A={}));
(function(f){function k(h,d){h=void 0===h?"div":h;d=void 0===d?"":d;var b=y.Fc.call(this)||this;b.F=new f.Aa(h);b.F.Y("fm-ui "+d);x.Bd().Vl&&b.F.Y("fm-ui-mobile");b.validate();return b}u(k,y.Fc);k.prototype.validate=function(){this.S0={}};k.prototype.be=function(h){this.S0[void 0===h?"all":h]=!0;this.gb()};k.prototype.Kr=function(h){for(var d=[],b=0;b<arguments.length;++b)d[b-0]=arguments[b];if(this.S0.all)return!0;for(b=0;b<d.length;b++)if(this.S0[d[b]])return!0;return!1};k.prototype.gb=function(){this.validate()};
k.prototype.Lq=function(){this.be()};k.prototype.show=function(){this.F.show()};k.prototype.$a=function(){this.F.$a()};k.prototype.i0=function(){return this.F.attr("id")};k.prototype.Uga=function(h){this.F.attr("id",h)};k.prototype.bha=function(){this.Uga("fm-"+Math.random().toString(36).substr(2,9))};k.prototype.cC=function(){return this.name};k.prototype.ue=function(h){this.F.ue(void 0===h?0:h)};k.prototype.$j=function(h){this.F.$j(h)};k.prototype.html=function(h){if(void 0===h)return this.F.html();
this.F.html(h);return this};k.prototype.Mh=function(h){this.F.attr("title",h)};k.prototype.xp=function(h){this.Csa(!h);this.F.Ua("fm-ui-disabled",!h)};k.prototype.jL=function(){return!this.F.Lc("fm-ui-disabled")};k.prototype.Y=function(h){this.F.Y(void 0===h?"":h)};k.prototype.ud=function(h){this.F.ud(h)};k.prototype.Ua=function(h,d){this.F.Ua(h,d)};k.prototype.Lc=function(h){return this.F.Lc(h)};k.prototype.cf=function(h){return this.F.cf(h)};k.prototype.tj=function(h){this.cf()!==h&&(this.F.tj(h),
this.be("size"))};k.prototype.qd=function(h){return this.F.qd(void 0===h?!1:h)};k.prototype.yp=function(h){this.qd()!==h&&(this.F.yp(h),this.be("size"))};k.prototype.isVisible=function(h){void 0!==h&&(h?this.show():this.$a());return this.F.visible};k.prototype.position=function(){return this.F.position()};k.prototype.V=function(h,d){(void 0===d?0:d)?this.F.prepend(h.F):this.F.append(h.F)};k.prototype.sg=function(h){(void 0===h?0:h)?this.F.remove():this.F.detach()};k.prototype.x0=function(){return this.F.left};
k.prototype.y0=function(){return this.F.top};k.prototype.N=function(h,d){this.F.N(h,d)};k.prototype.mb=function(h,d){this.F.mb(h,d)};k.prototype.Da=function(h){this.F.Da(h)};k.prototype.Wa=function(h,d,b){this.F.Wa(h,d,b)};k.prototype.eB=function(h){h=(void 0===h?0:h)?this.cf(!0):w.K.Hb.tu;this.F.Ua("fm-layout-tablet",768>h);this.F.Ua("fm-layout-mobile",580>h);this.F.Ua("fm-layout-mobile-small",460>h)};k.prototype.focus=function(h){this.F.focus(void 0===h?null:h)};k.prototype.blur=function(){this.F.blur()};
k.prototype.jg=function(h,d){return this.F.jg(h,d)};k.prototype.hc=function(h){return this.F.jg("label",h)};k.prototype.Cm=function(){this.F.jg("hidden","true")};k.prototype.Csa=function(h){this.F.jg("disabled",void 0===h?void 0:""+h)};k.prototype.A$=function(h){this.F.jg("selected",void 0===h?void 0:""+h)};k.prototype.Bsa=function(h){this.F.jg("checked",void 0===h?void 0:""+h)};k.prototype.z$=function(h){this.F.jg("expanded",void 0===h?void 0:""+h)};k.prototype.Dsa=function(h){this.F.jg("haspopup ",
void 0===h?void 0:""+h)};q.Object.defineProperties(k.prototype,{Nm:{configurable:!0,enumerable:!0,get:function(){return this.F.Nm}},C0:{configurable:!0,enumerable:!0,get:function(){return this.F.C0}},padding:{configurable:!0,enumerable:!0,get:function(){return this.F.padding},set:function(){}}});f.Ca=k})(A||(A={}));
(function(f){function k(h,d,b){h=void 0===h?"div":h;d=void 0===d?"":d;b=void 0===b?!0:b;var a=y.Fc.call(this)||this;a.display="block";a.frames=[];a.Wp={};a.element="string"==typeof h?document.createElement(h):h;b&&a.Y("fm-ui-element");a.Y(d);return a}u(k,y.Fc);k.prototype.V=function(h){this.element.appendChild(h.element)};k.prototype.children=function(){for(var h=this.element.firstElementChild,d=[];h;)d.push(k.Pb(h)),h=h.nextElementSibling;return d};k.prototype.contains=function(h){return this.element.contains(h.element)};
k.prototype.iR=function(h){var d=this.JZ(h.target);!d&&h.path&&(d=this.JZ(h.path[0]));!d&&h.composedPath&&(h=h.composedPath())&&(d=this.JZ(h[0]));return d};k.prototype.JZ=function(h){if(null==h)return!1;for(;h!=this.element&&(h=h.parentElement,null!=h););return null!=h};k.prototype.append=function(h){h&&this.V(h);return this};k.prototype.prepend=function(h){this.element.insertBefore(h.element,this.element.firstChild);return this};k.prototype.before=function(h){this.element.parentNode&&this.element.parentNode.insertBefore(h.element,
this.element);return this};k.prototype.after=function(h){this.element.parentNode&&(this.element.nextElementSibling?this.element.parentNode.insertBefore(h.element,this.element.nextElementSibling):this.element.parentNode.appendChild(h.element));return this};k.prototype.cB=function(h){this.element.appendChild(h.F.element)};k.prototype.sg=function(h){void 0===h||h?this.remove():this.detach()};k.prototype.remove=function(){null!=this.element&&(this.element.parentNode&&this.element.parentNode.removeChild(this.element),
this.dispose())};k.prototype.detach=function(){if(null!=this.element&&this.element.parentNode){var h=this.element.cloneNode(!0);this.element.parentNode.removeChild(this.element);this.element=h}};k.prototype.ww=function(){for(;this.element&&this.element.firstChild;){var h=k.Pb(this.element.firstChild);h&&h.dispose&&h.dispose();this.element.removeChild(this.element.firstChild)}};k.prototype.clone=function(){return k.Pb(this.element.cloneNode(!0))};k.Pb=function(h){return h&&h.nodeType==Node.ELEMENT_NODE?
w.v(h.uielement)?new k(h,"",!1):h.uielement:null};k.prototype.get=function(h){var d=this.children();return 0<d.length?d[h]:null};k.prototype.find=function(h,d){if(void 0===d||0==d)return k.Pb(this.element.querySelector(h));h=this.element.querySelectorAll(h);d=[];for(var b=0;b<h.length;b++)d.push(k.Pb(h[b]));return d};k.prototype.closest=function(h){if(!this.element)return null;for(var d=this.element;null!=d;){if(d.matches){if(d.matches(h))return d==this.element?this:k.Pb(d)}else if(d.msMatchesSelector&&
d.msMatchesSelector(h))return d==this.element?this:k.Pb(d);d=d.parentElement}return null};k.prototype.Y=function(h){if(!this.element)return this;h=h.trim();for(var d=h.split(" "),b=0;b<d.length;b++)0<d[b].length&&(x.BR().Di?(h=this.element.getAttribute("class"),w.v(h)?this.element.setAttribute("class",d[b]):-1==h.split(" ").indexOf(d[b])&&this.element.setAttribute("class",h+" "+d[b])):0==this.element.classList.contains(d[b])&&this.element.classList.add(d[b]));return this};k.prototype.ud=function(h){if(this.element&&
(h=h.trim(),0<h.length))if(x.BR().Di){var d=this.element.getAttribute("class");w.v(d)||(d=d.split(" "),h=d.indexOf(h),-1<h&&(d.splice(h,1),this.element.setAttribute("class",d.join(" "))))}else this.element.classList.contains(h)&&this.element.classList.remove(h)};k.prototype.Ua=function(h,d){d?this.Y(h):this.ud(h)};k.prototype.Lc=function(h){return this.element.classList.contains(h)};k.prototype.$k=function(){this.Y("fm-noselect")};k.prototype.zwa=function(){this.Y("fm-selectable")};k.prototype.cf=
function(h){if(!this.element)return 0;var d=this.zB;return this.element.clientWidth-((void 0===h?0:h)?0:(parseFloat(d.paddingLeft)||0)+(parseFloat(d.paddingRight)||0))};k.prototype.tj=function(h){"number"===typeof h?this.element.style.width=h+"px":"string"===typeof h&&(this.element.style.width=h);return this};k.prototype.qd=function(h){if(!this.element)return 0;var d=this.zB;h=(void 0===h?0:h)?0:(parseFloat(d.paddingTop)||0)+(parseFloat(d.paddingBottom)||0);return 0>this.element.clientHeight-h?0:
this.element.clientHeight-h};k.prototype.yp=function(h){"number"===typeof h?this.element.style.height=h+"px":"string"===typeof h&&(this.element.style.height=h)};k.prototype.html=function(h){if(void 0===h)return this.element.innerHTML;this.element.innerHTML=h;return this};k.prototype.empty=function(){this.html("")};k.prototype.clear=function(){this.empty()};k.prototype.text=function(h){if(void 0===h)return this.element.textContent;"input"==this.element.tagName.toLowerCase()?this.element.value=h:this.element.textContent=
h;return this};k.prototype.focus=function(h){this.element.focus(void 0===h?null:h);return this};k.prototype.blur=function(){this.element.blur();return this};k.prototype.show=function(){this.element.style.display=this.display};k.prototype.$a=function(){this.element.style.display="none"};k.prototype.offset=function(h){if(void 0===h)return this.Sf();this.P("left",h.left+"px");this.P("top",h.top+"px")};k.prototype.getBoundingClientRect=function(){return this.element.getBoundingClientRect()};k.prototype.position=
function(h){if(void 0===h)return{top:this.y,left:this.x};this.offset(h)};k.prototype.attr=function(h,d){if(void 0===d)return this.element.getAttribute(h);try{this.element.setAttribute(h,d)}catch(b){this.element&&this.element.attributes&&(this.element.attributes[h]=d)}return this};k.prototype.w3=function(h){this.element.removeAttribute(h)};k.prototype.P=function(h,d){if(void 0===d)return this.zB[k.Jha(h)];this.element.style[k.Jha(h)]=d;return this};k.prototype.jg=function(h,d){if(void 0===d)return this.attr("aria-"+
h);this.attr("aria-"+h,d)};k.Jha=function(h){var d=h.split("-");if(1<d.length){for(h=1;h<d.length;h++)d[h]=d[h].charAt(0).toUpperCase()+d[h].substr(1);return d.join("")}return h};k.prototype.sN=function(){return"input"==this.element.tagName.toLowerCase()||"textarea"==this.element.tagName.toLowerCase()?this.element.value:this.element.textContent};k.prototype.requestAnimationFrame=function(h){var d=0;this.zB=null;window.requestAnimationFrame?d=window.requestAnimationFrame(h):window.msRequestAnimationFrame?
d=window.msRequestAnimationFrame(h):window.mozRequestAnimationFrame?d=window.mozRequestAnimationFrame(h):window.webkitRequestAnimationFrame?d=window.webkitRequestAnimationFrame(h):h.call(null);this.frames.push(d);return d};k.prototype.cancelAnimationFrame=function(h){this.zB=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))};k.prototype.Sf=function(h){h=void 0===h?null:h;if(null==h)return h=this.element.getBoundingClientRect(),{top:h.top,left:h.left};for(var d=0,b=0,a=this.element;a&&a!=h&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)d+=a.offsetLeft-a.scrollLeft,b+=a.offsetTop-a.scrollTop,a=a.offsetParent;return{top:b,left:d}};k.prototype.Dw=function(h){this.element.scrollTop=h};k.prototype.BIa=function(){this.element.scrollLeft=
0};k.prototype.N=function(h,d,b){"undefined"!==typeof this.element["on"+h]||y.da.Pda(h)?(w.v(this.Wp[h])&&(this.Wp[h]=[]),this.Wp[h][d.toString()]=function(a){d(a)},this.element.addEventListener(h,this.Wp[h][d.toString()],b)):y.Fc.prototype.N.call(this,h,d,b)};k.prototype.mb=function(h,d){"undefined"!==typeof this.element["on"+h]||y.da.Pda(h)?this.Wp[h]&&this.element.removeEventListener(h,this.Wp[h][d.toString()],void 0):y.Fc.prototype.mb.call(this,h,d)};k.prototype.Da=function(h){y.Fc.prototype.Da.call(this,
h)};k.prototype.Od=function(h){for(var d in this.Wp)if(void 0===h||h==d)for(var b in this.Wp[d])if(this.Wp[d].hasOwnProperty(b))try{this.element.removeEventListener(d,this.Wp[d][b],!0),this.element.removeEventListener(d,this.Wp[d][b],!1)}catch(a){console.error(a)}this.Wp={};y.Fc.prototype.Od.call(this,d)};k.prototype.dispose=function(){this.Od();this.ww();this.GE&&(this.GE=this.GE.uielement=null);for(var h=0;h<this.frames.length;h++)this.cancelAnimationFrame(this.frames[h]);this.frames.length=0;this.J9&&
this.J9.dispose()};k.prototype.refresh=function(){this.html(this.html())};k.prototype.draggable=function(h){f.IK.VN.U().lCa(this,h)};k.prototype.Ar=function(h,d){this.mqa=h;f.IK.VN.U().mCa(this,d?d:this,h)};k.prototype.index=function(){for(var h=0,d=this.element;d=d.previousElementSibling;)h++;return h};k.prototype.Fi=function(h){this.J9=new f.Fi.woa(this,h)};k.prototype.ue=function(h){this.attr("tabindex",void 0===h?0:h)};k.prototype.$j=function(h){this.attr("role",h)};q.Object.defineProperties(k.prototype,
{element:{configurable:!0,enumerable:!0,set:function(h){(this.GE=h)&&(this.GE.uielement=this)},get:function(){return this.GE}},id:{configurable:!0,enumerable:!0,get:function(){return this.element.id},set:function(h){this.element.id=h}},parent:{configurable:!0,enumerable:!0,get:function(){return k.Pb(this.element.parentElement)}},nodeName:{configurable:!0,enumerable:!0,get:function(){return this.GE.nodeName.toLowerCase()}},width:{configurable:!0,enumerable:!0,get:function(){return this.cf()},set:function(h){this.tj(h)}},
padding:{configurable:!0,enumerable:!0,get:function(){var h=this.zB;return{left:parseFloat(h.paddingLeft)||0,right:parseFloat(h.paddingRight)||0,top:parseFloat(h.paddingTop)||0,bottom:parseFloat(h.paddingBottom)||0}},set:function(){}},borderWidth:{configurable:!0,enumerable:!0,get:function(){var h=this.zB;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}}},height:{configurable:!0,enumerable:!0,get:function(){return this.qd()},set:function(h){this.yp(h)}},left:{configurable:!0,enumerable:!0,get:function(){return this.element.getBoundingClientRect().left},set:function(h){this.element.style.left=h+"px"}},top:{configurable:!0,enumerable:!0,get:function(){return this.element.getBoundingClientRect().top},set:function(h){this.element.style.top=h+"px"}},right:{configurable:!0,enumerable:!0,get:function(){return this.element.getBoundingClientRect().right},
set:function(h){this.element.style.right=h+"px"}},bottom:{configurable:!0,enumerable:!0,get:function(){return this.element.getBoundingClientRect().bottom},set:function(h){this.element.style.bottom=h+"px"}},x:{configurable:!0,enumerable:!0,get:function(){return this.element.offsetLeft}},y:{configurable:!0,enumerable:!0,get:function(){return this.element.offsetTop}},zB:{configurable:!0,enumerable:!0,get:function(){w.v(this.yX)&&(this.yX=window.getComputedStyle(this.element));return this.yX},set:function(h){this.yX=
h}},visible:{configurable:!0,enumerable:!0,set:function(h){h?this.show():this.$a()},get:function(){return this.element&&"none"!=this.P("display")}},zt:{configurable:!0,enumerable:!0,get:function(){return this.mqa}},Nm:{configurable:!0,enumerable:!0,get:function(){return document.activeElement==this.element}},C0:{configurable:!0,enumerable:!0,get:function(){for(var h=document.activeElement;null!=h;){if(h==this.element)return!0;h=h.parentElement}return!1}}});f.Aa=k})(A||(A={}));
(function(f){function k(h,d){h=void 0===h?"":h;var b=f.Ca.call(this,void 0===d?"a":d,"fm-ui-btn")||this;b.R1=0;b.pHa=50;b.Y(h);b.F.N("click",function(a){return b.Wj(a)});b.F.N("mousedown",function(){return b.rw()});b.F.N("mouseup",function(){return b.zq()});b.F.N("mouseout",function(){return b.REa()});b.F.N("keydown",function(a){return b.kp(a)});b.F.display="inline-block";b.$j("button");b.ue(0);return b}u(k,f.Ca);k.prototype.Wj=function(h){this.jL()&&this.Wa(k.Xe,this,h);h instanceof MouseEvent&&
h.stopImmediatePropagation()};k.prototype.kp=function(h){if(13==h.keyCode||32==h.keyCode)this.Wj(h),h.preventDefault()};k.prototype.rw=function(){var h=this;this.F.Ua("fm-ui-pressed",!0);this.R1=w.Lba(function(){return h.Pva()},this.pHa)};k.prototype.Pva=function(){this.Da(new y.da(k.una,this))};k.prototype.zq=function(){this.F.Ua("fm-ui-pressed",!1);w.I_(this.R1)};k.prototype.REa=function(){this.F.Ua("fm-ui-pressed",!1);w.I_(this.R1)};k.prototype.J=function(){return this.label};k.prototype.Za=function(h){this.label!=
h&&(this.label=h,this.F.text(this.label))};k.una="buttonmousedown";k.Xe="buttonclick";f.sd=k})(A||(A={}));(function(f){function k(h){h=f.sd.call(this,void 0===h?"":h,"button")||this;h.F.attr("type","button");return h}u(k,f.sd);f.Jf=k})(A||(A={}));
(function(f){function k(h){h=void 0===h?"":h;var d=f.Ca.call(this,"span","fm-ui fm-ui-label")||this;d.F.display="inline-block";d.Za(h);return d}u(k,f.Ca);k.prototype.J=function(){return this.label};k.prototype.Za=function(h,d){this.label!=h&&(this.label=h,(void 0===d?0:d)?this.F.html(this.label):this.F.text(this.label))};k.prototype.gV=function(h){h?this.F.zwa():this.F.$k()};f.Oc=k})(A||(A={}));
(function(f){function k(){var h=f.Ca.call(this,"textarea","fm-ui-text-area")||this;h.F.N("keypress",function(d){return h.A2(d)});h.F.N("keyup",function(d){return h.B2(d)});h.F.N("paste",function(){return h.v2()});h.F.N("blur",function(){return h.Zza()});return h}u(k,f.Ca);k.prototype.B2=function(){this.GK()};k.prototype.v2=function(){this.GK()};k.prototype.Zza=function(){this.Wa(k.fW)};k.prototype.GK=function(){this.Da(new y.da(f.Pi.Qw,this))};k.prototype.yi=function(){return this.F.sN()};k.prototype.cj=
function(h){this.yi()!=h&&(this.F.element.value=h,this.GK())};k.prototype.clear=function(){this.cj("")};k.prototype.zy=function(h){var d=this.F.element.selectionStart,b=this.F.element.selectionEnd,a=this.yi();this.cj(a.substr(0,d)+h+a.substr(d));this.jf(d+h.length,b+h.length)};k.prototype.jf=function(h,d){d=void 0===d?-1:d;this.F.element.focus();this.F.element.setSelectionRange(h,0>d?h:d)};k.prototype.selectAll=function(){this.jf(0,this.yi().length)};k.prototype.A2=function(h){h.ctrlKey?(this.Wa(k.eW),
h.preventDefault()):13==h.keyCode&&(this.Wa(k.Nz),h.preventDefault())};k.fW="focus_off";k.Nz="ntr";k.eW="ntl";f.Xu=k})(A||(A={}));
(function(f){function k(){var h=f.Ca.call(this,"input","fm-ui-text-input")||this;h.text="";h.prompt="";h.jZ=0;h.kZ=!0;h.F.display="inline-block";h.F.attr("type","text");h.F.attr("data-placeholder","");h.F.N("change",function(){return h.IFa()});h.F.N("focusin",function(){return h.l2()});h.F.N("focusout",function(){return h.$Da()});h.F.N("input",function(){return h.JFa()});h.F.N("keypress",function(d){return h.A2(d)});h.F.N("paste",function(){return h.v2()});return h}u(k,f.Ca);k.kya=function(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};k.prototype.A2=function(h){13==h.keyCode&&this.Wa(k.Nz);if(!(w.v(this.kga)||h.ctrlKey||h.altKey||h.metaKey)){var d=k.kya(h);null!=d&&!1===this.kga.test(d)&&h.preventDefault()}};k.prototype.B0=function(){this.F.sN()!==this.text&&(this.text=this.F.sN(),this.GK())};k.prototype.IFa=function(){this.B0()};k.prototype.JFa=function(){this.B0()};k.prototype.v2=function(){this.B0()};
k.prototype.GK=function(){var h=this;0<this.jZ?this.kZ&&(this.kZ=!1,w.pe(function(){return h.EX()},this.jZ)):this.EX()};k.prototype.EX=function(){this.kZ=!0;this.Da(new y.da(k.Qw,this,this.text))};k.prototype.l2=function(){0==this.text.length&&(this.F.text(""),this.At(!1))};k.prototype.$Da=function(){this.At(0==this.text.length)};k.prototype.yi=function(){return this.text=this.F.sN()==this.prompt?this.text:this.F.sN()};k.prototype.cj=function(h){this.text!=h&&(this.text=h,this.F.text(this.text),this.At(0==
this.text.length))};k.prototype.clear=function(h){h=void 0===h?!0:h;this.cj("");h&&this.EX();this.Wa(k.h6)};k.prototype.lD=function(h){h!=this.prompt&&(this.prompt=h,this.F.attr("data-placeholder",this.prompt),this.At(0==this.text.length))};k.prototype.At=function(h){this.F.text(h?this.prompt:this.text);this.F.Ua("fm-ui-prompt",h)};k.prototype.mD=function(h){this.kga=h};k.prototype.VU=function(h){this.jZ=h};k.prototype.FIa=function(){this.F.attr("type","number")};k.Qw="_";k.Nz="ntr";k.h6="clr";f.Pi=
k})(A||(A={}));(function(f){function k(){var h=f.Pi.call(this)||this;h.mD(k.ooa);h.FIa();return h}u(k,f.Pi);k.prototype.Fa=function(){return parseFloat(this.yi())};k.prototype.Nh=function(h){this.cj(h.toString())};k.ooa=/^\d+$/;k.sE=/[-\.\d]/;f.Vp=k})(A||(A={}));
(function(f){function k(){var h=f.sd.call(this)||this;h.F.display="inline-block";h.F.Lc("fm-ui-btn")&&h.F.ud("fm-ui-btn");h.F.Y("fm-ui-toggle-btn");h.selected=0;return h}(function(h){h[h.XMa=1]="SELECTED";h[h.oNa=0]="UNSELECTED";h[h.$Ma=-1]="SEMI_SELECTED"})(f.tpa||(f.tpa={}));u(k,f.sd);k.prototype.Wj=function(h){this.jL()&&(this.toggle(),this.Wa(y.da.Qd,this,h));h instanceof MouseEvent&&h.stopImmediatePropagation()};k.prototype.toggle=function(){this.jf(1==this.selected?0:1)};k.prototype.jf=function(h){!0===
h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=h,this.F.Ua("fm-selected",1==this.selected),1==this.selected?this.jg("checked","true"):-1==this.selected?this.jg("checked","mixed"):this.jg("checked","false"))};k.prototype.getSelection=function(){return this.selected};f.nA=k})(A||(A={}));
(function(f){function k(){var h=f.Jf.call(this)||this;h.$j("switch");h.F.display="inline-block";h.F.Lc("fm-ui-btn")&&h.F.ud("fm-ui-btn");h.F.Y("fm-ui-toggle-btn");h.jf(0);return h}u(k,f.Jf);k.prototype.Wj=function(h){this.jL()&&(this.toggle(),this.Wa(y.da.Qd,this,h))};k.prototype.toggle=function(){this.jf(1==this.selected?0:1)};k.prototype.jf=function(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=h,this.F.Ua("fm-selected",1==this.selected),this.Bsa(1==this.selected))};
k.prototype.getSelection=function(){return this.selected};f.jP=k})(A||(A={}));
(function(f){function k(){var h=f.nA.call(this)||this;h.F.display="inline-block";h.F.Lc("fm-ui-toggle-btn")&&h.F.ud("fm-ui-toggle-btn");h.F.Y("fm-ui-checkbox");h.MG=new f.Oc("Label");h.F.append(h.MG.F);h.$j("checkbox");return h}u(k,f.nA);k.prototype.toggle=function(){f.nA.prototype.toggle.call(this);this.F.Ua("fm-ui-semi-selected",-1==this.getSelection())};k.prototype.Za=function(h,d){null!=this.MG&&this.MG.Za(h,void 0===d?!1:d)};k.prototype.J=function(){return null!=this.MG?this.MG.J():""};k.prototype.jf=
function(h){!0===h&&(h=1);!1===h&&(h=0);this.getSelection()==h||1<h||-1>h||(f.nA.prototype.jf.call(this,h),this.F.Ua("fm-ui-semi-selected",-1==this.getSelection()))};k.prototype.Mh=function(h){this.MG.Mh(h)};q.Object.defineProperties(k.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return 1==this.getSelection()},set:function(h){this.jf(h?1:0)}}});f.$I=k})(A||(A={}));
(function(f){function k(){var h=f.Ca.call(this,"div","fm-ui-divider")||this;h.Nea=function(d){return h.sw(d)};h.HCa=function(d){return h.rw(d)};h.ICa=function(d){return h.zq(d)};h.direction=k.vI;h.N("mousedown",h.HCa);w.Pj.addEventListener("mouseup",h.ICa);h.F.$k();return h}u(k,f.Ca);k.prototype.rw=function(h){this.Ps=this.direction==k.vI?this.qd():this.cf();this.tA=this.F.parent.Sf();w.Pj.addEventListener("mousemove",this.Nea);h.preventDefault();h.stopImmediatePropagation()};k.prototype.sw=function(h){if(this.direction==
k.vI){var d=h.clientY-this.tA.top;if(this.DE&&(d<this.DE[1]||d>this.DE[3]))return;this.F.P("top",d-this.Ps/2+"px");this.Wa(k.gW,this,{top:d})}this.direction==k.pX&&(h=h.clientX-this.tA.left,this.DE&&(h<this.DE[0]||h>this.DE[2])||(this.F.P("left",h-this.Ps/2+"px"),this.Wa(k.gW,this,{left:h})))};k.prototype.zq=function(){w.Pj.removeEventListener("mousemove",this.Nea)};q.Object.defineProperties(k.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this.DX},set:function(h){this.DX=
h;this.F.Ua("fm-ui-horizontal",this.DX==k.vI);this.F.Ua("fm-ui-vertical",this.DX==k.pX);this.F.P("position","absolute")}},Aua:{configurable:!0,enumerable:!0,set:function(h){this.DE=h}}});k.vI=0;k.pX=1;k.gW="divider_moved_event";f.iP=k})(A||(A={}));(function(f){function k(){return f.Ca.call(this,"div","fm-ui-modal-overlay")||this}u(k,f.Ca);k.prototype.AIa=function(h){this.F.Ua("fm-ui-transparent",!1);this.F.Ua("fm-ui-opaque",h)};f.spa=k})(A||(A={}));
(function(f){(function(k){function h(d){return f.Ca.call(this,"div",void 0===d?"fm-ui-container":d)||this}u(h,f.Ca);h.prototype.removeChild=function(d){this.contains(d)&&d.F.detach()};h.prototype.contains=function(d){return w.v(d)?!1:this.F.contains(d.F)};h.prototype.cf=function(){return this.F.width};h.prototype.qd=function(){return this.F.height};h.prototype.ww=function(){for(var d=this.F.children(),b=d.length-1;0<=b;b--)d[b].sg()};k.ye=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-border-container")||this}u(h,k.ye);k.ZI=h})(f.Vb||(f.Vb={}))})(A||(A={}));(function(f){(function(k){function h(){var d=k.ye.call(this)||this;d.F.Y("fm-ui-window");d.$a();return d}u(h,k.ye);h.prototype.setPosition=function(d,b){this.F.offset({left:Math.floor(d),top:Math.floor(b)});this.F.P("position","absolute")};k.kP=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-hgroup")||this}u(h,k.ye);k.jNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-vgroup")||this}u(h,k.ye);k.nNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-panel")||this}u(h,k.ye);k.kNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(d){var b=k.kP.call(this)||this;b.lv=!1;b.z9=function(){return b.L2()};b.iga=function(a){return b.Z2(a)};b.h1=!1;b.cF=!1;b.eY=d;b.F.Y("fm-ui-popup");b.$j("dialog");b.$a();b.bq=new f.spa;b.bq.Cm();b.bq.N("click",b.z9);b.bq.$a();b.eY&&b.eY.V(b.bq.F);b.Xqa=new f.gF.O6;b.Xpa=new f.gF.O6;return b}u(h,k.kP);h.prototype.Z2=function(d){var b=this;d.target===window&&(this.F.requestAnimationFrame(function(){return b.Go()}),this.eB())};h.prototype.L2=function(){this.close()};
h.prototype.open=function(){w.XK.addEventListener("resize",this.iga);this.bq.F.Ua("fm-ui-opaque",this.h1);this.show();this.Go();this.Wa(y.da.OPENED);this.eB();this.lv=!0;this.ov=document.activeElement;this.F.prepend(this.Xqa);this.F.append(this.Xpa)};h.prototype.show=function(){k.kP.prototype.show.call(this);this.bq&&this.bq.show()};h.prototype.$a=function(){k.kP.prototype.$a.call(this);this.bq&&this.bq.$a()};h.prototype.close=function(){w.XK.removeEventListener("resize",this.iga);this.$a();this.Wa(y.da.CLOSED);
this.lv=!1;this.ov&&(this.ov.focus(),this.ov=null)};h.prototype.Go=function(){var d=this.eY,b=w.K.Hb.zb.F.borderWidth,a=b?Math.round(b.left):0;b=b?Math.round(b.top):0;if(d){var c=Math.max(a,(d.cf(!0)-this.F.cf(!0))/2);d=Math.max(b,(d.qd(!0)-this.F.qd(!0))/2);this.setPosition(c==a?-1*c:c,d==b?-1*d:d)}};q.Object.defineProperties(h.prototype,{Zt:{configurable:!0,enumerable:!0,get:function(){return this.lv}},lN:{configurable:!0,enumerable:!0,get:function(){return this.cF},set:function(d){this.cF=d;this.F.P("opacity",
d?0:null);this.bq&&this.bq.F.P("opacity",d?0:null)}},QC:{configurable:!0,enumerable:!0,get:function(){return this.bq}}});k.mh=h})(f.Vb||(f.Vb={}))})(A||(A={}));(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-toolbar")||this}u(h,k.ye);k.lNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(){var d=k.ye.call(this,"fm-ui-toolbar-mobile")||this;d.J0=new f.Oc;d.J0.Y("fm-ui-header-display");d.V(d.J0);return d}u(h,k.ye);h.prototype.tIa=function(d){this.zi!=d&&(this.zi=d,this.J0.Za(d))};k.mNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(){this.items=[];this.ZJ=[]}h.prototype.cV=function(d){this.ZJ=d};h.prototype.l0=function(d,b){if(0>d||b>this.ZJ.length+1)return[];for(this.items.length=0;d<b;d++)this.items.push(this.ZJ[d]);return this.items};h.prototype.getItem=function(d){return this.ZJ[d]};h.prototype.rG=function(){return this.ZJ.length};k.fNa=h})(f.xva||(f.xva={}))})(A||(A={}));
(function(f){(function(k){function h(){return y.da.call(this,y.da.Qd)||this}function d(){var b=f.Ca.call(this,"ul","fm-ui-list")||this;b.PU=NaN;b.$Z=x.Bd().Vl?d.aka:d.$ja;b.nH=[];b.iD=[];b.Th=0;b.zk=!1;b.useCache=!0;b.yE=!1;b.G=[];b.eea=[];b.Rg=[];b.Re="label";b.bu=b.Hva;b.yQ=b.F;b.$j("list");b.Fk=null;b.selectedIndex=-1;b.V3();return b}u(d,f.Ca);d.prototype.V3=function(){var b=this;this.F.N("click",function(a){return b.lU(a)});this.F.N("mousedown",function(a){return b.mU(a)});this.F.N("keydown",
function(a){return b.KC(a)})};d.prototype.Nd=function(){isNaN(this.PU)&&0<this.Rg.length&&(this.PU=this.Rg[0].qd(!0)+parseInt(this.Rg[0].F.P("border-top-width"))+parseInt(this.Rg[0].F.P("border-bottom-width")));return isNaN(this.PU)?this.$Z:this.PU};d.prototype.oIa=function(){this.$Z=37};d.prototype.Xv=function(){return 0};d.prototype.uG=function(){return this.G.length};d.prototype.gb=function(){this.Kr("data")&&this.fwa();this.validate()};d.prototype.fwa=function(){var b=this;this.fHa();for(var a,
c=this.uc(),e=0;e<c.length;e++)a=this.getItem(c[e],e),e==this.Th&&(this.yQ.jg("activedescendant",a.i0()),a.F.Y("fm-ui-active")),this.Pa(a);this.Ua("fm-ui-empty",0==c.length);this.ixa&&this.F.prepend(this.ixa);this.hxa&&this.F.append(this.hxa);this.F.requestAnimationFrame(function(){0<b.Rg.length&&(b.$Z=b.Rg[0].qd())})};d.prototype.getItem=function(b,a){if(this.useCache&&0<this.eea.length){var c=this.eea.pop();c.setData(b);c.am(a)}else c=this.bu(b,a),this.Re&&c.Xf(this.Re),this.hw&&c.dV(this.hw),this.Do&&
c.PM(this.Do);c.bha();return c};d.prototype.Pa=function(b){this.Rg.push(b);this.V(b)};d.prototype.fHa=function(){for(;0<this.Rg.length;)this.G9(this.Rg.pop())};d.prototype.removeItem=function(b){for(var a=0;a<this.Rg.length;a++)if(this.Rg[a]===b){this.Rg.splice(a,1);break}this.G9(b)};d.prototype.G9=function(b){null!=this.F.find(b.F.element.nodeName)&&b.F.remove()};d.prototype.KC=function(b){if(32==b.keyCode||13==b.keyCode)this.nU(this.Th,b),b.preventDefault();40==b.keyCode&&(this.gi(this.Th+1),b.preventDefault());
38==b.keyCode&&(this.gi(this.Th-1),b.preventDefault())};d.prototype.gi=function(b){this.Th=Math.max(0,Math.min(this.Rg.length-1,b));b=ja(this.Rg);for(var a=b.next();!a.done;a=b.next())a.value.ud("fm-ui-active");this.yQ.jg("activedescendant","");if(b=this.Rg[this.Th]){this.yQ.jg("activedescendant",b.i0());b.Y("fm-ui-active");a=this.F.parent.getBoundingClientRect();var c=b.F.getBoundingClientRect().top+this.F.parent.element.scrollTop,e=c+b.qd();c<a.top?b.F.element.scrollIntoView(!0):e>a.bottom&&b.F.element.scrollIntoView(!1)}};
d.prototype.MB=function(b){if(b=f.Aa.Pb(b).closest("li")){var a=parseInt(b.attr("data-index"));return isNaN(a)?null:{element:b,index:a,data:this.uc()[a]}}return null};d.prototype.Mt=function(){var b=this.Xv()+this.Th;return 0<=b?w.v(this.uc()[b])||w.v(this.Rg[b])?null:{index:b,data:this.uc()[b],element:this.Rg[b].F}:null};d.prototype.mU=function(b){(b=this.MB(b.target))&&this.gi(b.index)};d.prototype.lU=function(b){var a=this.MB(b.target);a&&this.nU(a.index,b)};d.prototype.nU=function(b,a){if(!(0>
b)){var c=this.Xv()+b,e=this.Fk,g=this.selectedIndex;this.ak(b);var l=new h;l.data={Fk:this.Fk,selectedIndex:this.selectedIndex,eIa:this.Rg[b].F,np:a,ZGa:c,PGa:e,OGa:g};this.Da(l)}};d.prototype.uc=function(){return this.G};d.prototype.Cf=function(b,a){this.G=b;this.Th=0;(void 0===a||a)&&this.be("data")};d.prototype.dV=function(b){this.hw!=b&&(this.hw=b,this.be("data"))};d.prototype.rq=function(){return this.Re};d.prototype.Xf=function(b){this.Re!=b&&(this.Re=b,this.be("data"))};d.prototype.eG=function(){return this.Do};
d.prototype.PM=function(b){this.Do!=b&&(this.Do=b,this.be("data"))};d.prototype.Lh=function(b){this.bu=b;this.be("data")};d.prototype.ls=function(b){-1<b&&b<this.Rg.length&&this.Rg[b].Lq()};d.prototype.Kq=function(b){for(var a,c=0;c<this.Rg.length;c++)if(a=this.Rg[c].getData(),w.pg(b)){if(b(a)){this.Rg[c].Lq();break}}else if(a===b){this.Rg[c].Lq();break}};d.prototype.yG=function(){return this.selectedIndex};d.prototype.ak=function(b){var a=this.uc();-1<b&&b<a.length?this.DV(a[b],b):this.DV(null,-1)};
d.prototype.rh=function(){return this.Fk};d.prototype.gs=function(b){var a=this.uc();if(w.pg(b))for(var c=0;c<a.length;c++){if(!w.v(a[c])&&b(a[c])){this.DV(a[c],c);break}}else a=a.indexOf(b),-1<a&&this.DV(b,a)};d.prototype.DV=function(b,a){if(this.qr){var c=-1<this.iD.indexOf(a);!(c=!c)&&2>this.iD.length||(c?(this.iD.push(a),this.nH.push(b)):(this.iD.splice(this.iD.indexOf(a),1),this.nH.splice(this.nH.indexOf(b),1)),this.zk&&(b.isSelected=c,this.ls(a)))}else this.zk&&null!=this.Fk&&(this.Fk.isSelected=
!1,this.ls(this.selectedIndex)),this.Fk=b,this.selectedIndex=a,this.zk&&null!=this.Fk&&(this.Fk.isSelected=!0,this.ls(this.selectedIndex))};d.prototype.Hva=function(b,a){var c=new f.Vf.vo;c.setData(b);c.am(a);return c};d.prototype.nL=function(){return this.Nd()*this.uc().length};d.prototype.TM=function(b){this.iD=b;this.nH.length=0;b=this.uc();for(var a=0;a<b.length;a++)-1<this.iD.indexOf(a)?(this.nH.push(b[a]),this.zk&&(b[a].isSelected=!0,this.ls(a))):this.zk&&(b[a].isSelected=!1,this.ls(a))};d.prototype.vL=
function(){return this.nH};d.prototype.Ar=function(b){this.F.Ar(b,this)};d.prototype.NM=function(b){var a=this.Nd();b*=a;a=b+a;var c=this.F.element.scrollTop,e=this.F.qd();c>b?this.F.Dw(b):c+e<a&&this.F.Dw(a-e)};q.Object.defineProperties(d.prototype,{qr:{configurable:!0,enumerable:!0,set:function(b){this.yE=b},get:function(){return this.yE}}});d.$ja=21;d.aka=31;k.zh=d;u(h,y.da);k.rpa=h})(f.hd||(f.hd={}))})(A||(A={}));
(function(f){(function(k){function h(b,a){var c=k.zh.call(this)||this;c.parent=b;c.bl=a;c.yQ=c.bl.F;c.V3();c.$j("listbox");return c}function d(){var b=f.Ca.call(this,"div","fm-ui-dropdown")||this;b.prompt="Choose item";b.lv=!1;b.ZX=!1;b.yE=!1;b.F.display="inline-block";b.bl=new k.qpa;b.bl.N("click",function(){return b.Zt?b.close():b.open()});b.bl.N("keydown",function(a){return b.YCa(a)});b.bl.N("blur",function(){return b.close()});b.LK=new f.Ca("div","fm-ui-dropdown-list");b.LK.$a();b.Oe=new h(b,
b.bl);b.Oe.bha();b.Oe.zk=!0;b.Oe.Lh(b.bu);b.Oe.N(y.da.Qd,function(a){return b.ku(a)});b.LK.V(b.Oe);b.bl.jg("controls",b.Oe.i0());b.V(b.bl);b.V(b.LK);return b}u(d,f.Ca);d.prototype.bu=function(b,a){var c=new f.Vf.XI;c.setData(b);c.am(a);return c};d.prototype.ku=function(b){this.At(null==b.data.Fk);this.Wa(y.da.Qd,this,b.data);this.bl.focus({preventScroll:!0});this.qr||this.close()};d.prototype.YCa=function(b){27==b.keyCode&&(this.close(),b.stopImmediatePropagation())};d.prototype.At=function(b){var a=
this.Oe.rh(),c=b||this.qr||null==a?this.prompt:a[this.rq()];a=b||this.qr||null==a||w.ha(this.Oe.eG())||w.v(a[this.eG()])?"":a[this.eG()];this.bl.Za(c);w.ha(a)||(this.bl.YL.hc(a),this.bl.YL.Mh(a));this.F.Ua("fm-ui-prompt",b)};d.prototype.lD=function(b){this.prompt!==b&&(this.prompt=b,this.At(!0))};d.prototype.open=function(){!this.lv&&this.jL()&&(this.lv=!0,this.LK.show(),this.bl.jf(1))};d.prototype.close=function(){0!=this.lv&&this.jL()&&(this.lv=!1,this.LK.$a(),this.bl.jf(0))};d.prototype.uc=function(){return this.Oe.uc()};
d.prototype.Cf=function(b){var a=this.Mt();this.Oe.Cf(b);this.ZX&&a&&this.gi(a.index)};d.prototype.rq=function(){return this.Oe.rq()};d.prototype.Xf=function(b){this.Oe.Xf(b)};d.prototype.eG=function(){return this.Oe.eG()};d.prototype.PM=function(b){this.Oe.PM(b)};d.prototype.Lh=function(b){this.Oe.Lh(b)};d.prototype.Lq=function(){this.Oe.Lq()};d.prototype.ls=function(b){this.Oe.ls(b)};d.prototype.yG=function(){return this.Oe.yG()};d.prototype.ak=function(b){this.Oe.ak(b);this.At(null==this.Oe.rh())};
d.prototype.TM=function(b){this.Oe.TM(b);this.At(!0)};d.prototype.rh=function(){return this.Oe.rh()};d.prototype.gs=function(b){this.Oe.gs(b);this.At(null==this.Oe.rh())};d.prototype.vL=function(){return this.Oe.vL()};d.prototype.show=function(){f.Ca.prototype.show.call(this)};d.prototype.Nd=function(){return this.Oe.Nd()};d.prototype.uG=function(){return this.Oe.uG()};d.prototype.Kq=function(){};d.prototype.nL=function(){return 0};d.prototype.Mt=function(){return this.Oe.Mt()};d.prototype.gi=function(b){this.Oe.gi(b)};
d.prototype.hc=function(b){return this.bl.hc(b)};q.Object.defineProperties(d.prototype,{Zt:{configurable:!0,enumerable:!0,get:function(){return this.lv}},qr:{configurable:!0,enumerable:!0,set:function(b){this.yE=b;this.Oe.qr=b;this.yE?this.Oe.F.Y("fm-ui-dropdown-multiple-selection-list"):this.Oe.F.ud("fm-ui-dropdown-multiple-selection-list")},get:function(){return this.yE}},zk:{configurable:!0,enumerable:!0,set:function(b){this.Oe.zk=b}},GBa:{configurable:!0,enumerable:!0,get:function(){return this.ZX},
set:function(b){this.ZX=b}}});k.$q=d;u(h,k.zh);h.prototype.V3=function(){var b=this;this.bl&&(this.N("mousedown",function(a){return b.lU(a)}),this.bl.N("keydown",function(a){return b.KC(a)}))};h.prototype.KC=function(b){if(this.parent.Zt)k.zh.prototype.KC.call(this,b);else if(13==b.keyCode||32==b.keyCode)this.parent.open(),b.preventDefault()}})(f.hd||(f.hd={}))})(A||(A={}));
(function(f){(function(k){function h(){var b=k.zh.call(this)||this;b.Th=-1;return b}function d(){var b=f.Ca.call(this)||this;b.Th=0;b.Y("fm-ui-vlist");b.Sh=new h;b.Sh.oIa();b.Sh.N(y.da.Qd,function(a){return b.ku(a)});b.V(b.Sh);b.Ss=new f.Ca("div","fm-ui-vlist-placeholder");b.V(b.Ss);b.N("scroll",function(){return b.U2()});b.N("mousedown",function(a){return b.mU(a)});b.N("keydown",function(a){return b.KC(a)});return b}u(d,f.Ca);d.prototype.mU=function(b){(b=this.Sh.MB(b.target))&&this.gi(this.Xv()+
b.index)};d.prototype.KC=function(b){if(32==b.keyCode||13==b.keyCode)this.nU(this.Th,b),b.preventDefault();40==b.keyCode&&(this.gi(this.Th+1),this.NM(this.Th),b.preventDefault());38==b.keyCode&&(this.gi(this.Th-1),this.NM(this.Th),b.preventDefault())};d.prototype.NM=function(b){var a=this.Nd();b*=a;a=b+a;var c=this.F.element.scrollTop,e=this.F.qd();c>b?this.F.Dw(b):c+e<a&&this.F.Dw(a-e)};d.prototype.gi=function(b){this.Th=Math.max(0,Math.min(this.Og().rG()-1,b));this.Th>=this.Xv()&&this.Th<this.sca()&&
this.Sh.gi(this.Th-this.Xv())};d.prototype.Mt=function(){return this.Sh.Mt()};d.prototype.nU=function(b,a){if(!(0>b)){var c=this.rh(),e=this.yG();this.ak(b);var g=new k.rpa;g.data={Fk:this.rh(),selectedIndex:this.yG(),np:a,ZGa:b,PGa:c,OGa:e};this.Da(g)}};d.prototype.ku=function(b){this.Da(b)};d.prototype.U2=function(){this.be("data")};d.prototype.gb=function(){this.Ss.yp(Math.min(this.nL(),d.yO));if(this.Kr("data")){this.Sh.Cf(this.uc());var b=this.Xv()*this.Nd()*this.wG()-this.Kca();this.Sh.F.top=
Math.min(b,this.Ss.qd()-this.Sh.F.height);this.gi(this.Th)}this.validate()};d.prototype.wG=function(){return this.nL()>d.yO?d.yO/this.nL():1};d.prototype.Xv=function(){return 1!=this.wG()?Math.floor((this.F.element.scrollTop+this.Kca())/this.wG()/this.Nd()):Math.max(0,Math.floor(this.F.element.scrollTop/this.Nd())-1)};d.prototype.sca=function(){return this.Xv()+this.uG()};d.prototype.Kca=function(){return 1!=this.wG()?(this.qd()/this.wG()-this.qd())*(this.F.element.scrollTop/d.yO)*this.wG():0};d.prototype.rq=
function(){return this.Sh.rq()};d.prototype.Xf=function(b){this.Sh.Xf(b)};d.prototype.Lh=function(b){this.Sh.Lh(b)};d.prototype.ls=function(b){this.Sh.ls(b)};d.prototype.Kq=function(b){this.Sh.Kq(b)};d.prototype.Nd=function(){return this.Sh.Nd()};d.prototype.uG=function(){return 0<this.Nd()?Math.ceil(this.qd()/this.Nd())+3:0};d.prototype.yG=function(){return this.Sh.yG()};d.prototype.ak=function(b){this.Sh.ak(b)};d.prototype.TM=function(b){this.Sh.TM(b)};d.prototype.rh=function(){return this.Sh.rh()};
d.prototype.gs=function(b){this.Sh.gs(b)};d.prototype.vL=function(){return this.Sh.vL()};d.prototype.nL=function(){return this.Nd()*this.Og().rG()};d.prototype.Og=function(){return this.ZIa};d.prototype.X3=function(b){this.ZIa=b};d.prototype.CIa=function(){this.F.Dw(0)};d.prototype.Cf=function(b){this.Og()&&(this.Og().cV(b),this.CIa(),this.be("data"))};d.prototype.uc=function(){return this.Og()?this.Og().l0(this.Xv(),this.sca()):[]};q.Object.defineProperties(d.prototype,{qr:{configurable:!0,enumerable:!0,
get:function(){return this.Sh.qr},set:function(b){this.Sh.qr=b}}});d.yO=1E6;k.nX=d;u(h,k.zh);h.prototype.mU=function(){};h.prototype.KC=function(){};h.prototype.Cf=function(b,a){this.G=b;this.Th=-1;(void 0===a||a)&&this.be("data")};h.prototype.gi=function(b){this.Th=Math.max(0,Math.min(this.Rg.length-1,b));b=ja(this.Rg);for(var a=b.next();!a.done;a=b.next())a.value.ud("fm-ui-active");(b=this.Rg[this.Th])&&b.Y("fm-ui-active")}})(f.hd||(f.hd={}))})(A||(A={}));
(function(f){(function(k){function h(){var d=f.nA.call(this)||this;d.Y("fm-ui-dropdown-btn");d.YL=new f.Oc;d.V(d.YL);d.F.Od();d.$j("combobox");d.jg("haspopup","listbox");d.z$(!1);return d}u(h,f.nA);h.prototype.Za=function(d){this.YL.Za(d,!0);this.YL.Mh(d)};k.qpa=h})(f.hd||(f.hd={}))})(A||(A={}));
(function(f){(function(k){function h(){var d=f.Ca.call(this,"li")||this;d.Re="label";d.$j("option");return d}u(h,f.Ca);h.prototype.getData=function(){return this.data};h.prototype.setData=function(d){null!=d&&(this.data=d,this.be("data"))};h.prototype.am=function(d){this.F.attr("data-index",d)};h.prototype.rq=function(){return this.Re};h.prototype.Xf=function(d){this.Re!=d&&(this.Re=d,this.be("data"))};h.prototype.eG=function(){return this.Do};h.prototype.PM=function(d){this.Do!=d&&(this.Do=d,this.be("data"))};
h.prototype.dV=function(d){this.hw!=d&&(this.hw=d,this.be("data"))};h.prototype.J=function(){return this.hw?this.hw(this.data):this.data[this.Re]};h.prototype.gb=function(){this.Kr("data")&&(this.F.text(this.data[this.Re]),w.ha(this.Do)||w.v(this.data[this.Do])||this.hc(this.data[this.Do]));this.validate()};k.vo=h})(f.Vf||(f.Vf={}))})(A||(A={}));
(function(f){(function(k){function h(){return k.vo.apply(this,arguments)||this}u(h,k.vo);h.prototype.gb=function(){var d=this.getData();null==this.label&&(this.label=new f.Oc,this.label.Y("fm-text-display"),this.F.append(this.label.F));this.label.Za(d[this.rq()],!0);this.A$(!0===d.isSelected);this.F.Ua("fm-selected",!0===d.isSelected);this.F.Ua("fm-not-selected",!0!==d.isSelected);w.ha(this.Do)||w.v(this.data[this.Do])||this.label.hc(this.data[this.Do])};k.XI=h})(f.Vf||(f.Vf={}))})(A||(A={}));
var Da=A||(A={}),Ea=Da.Fi||(Da.Fi={}),Fa=Ea.Ph||(Ea.Ph={});Fa.Bj="top";Fa.ji="bottom";Fa.bE="left";Fa.tE="right";
(function(f){(function(k){function h(d,b){var a=this;this.zJ=function(c){return a.rw(c)};this.Qs=function(c){return a.zq(c)};this.RA=function(c){return a.sw(c)};this.target=d;this.options=b;this.ava()}h.prototype.ava=function(){for(var d=0;d<this.options.lV.length;d++)this.st(this.options.lV[d])};h.prototype.st=function(d){var b=new f.Aa("div","fm-resizable-handle");b.Y("fm-"+d);b.N("mousedown",this.zJ);this.target.V(b);return b};h.prototype.rw=function(d){d=f.Aa.Pb(d.target);d.Lc("fm-left")?this.mx=
k.Ph.bE:d.Lc("fm-right")?this.mx=k.Ph.tE:d.Lc("fm-top")?this.mx=k.Ph.Bj:d.Lc("fm-bottom")&&(this.mx=k.Ph.ji);this.eN()};h.prototype.zq=function(d){this.kfa(d.clientX,d.clientY);this.fN()};h.prototype.sw=function(d){this.kfa(d.clientX,d.clientY)};h.prototype.kfa=function(d,b){this.kJ&&(d=Math.min(Math.max(this.kJ.left,d),this.kJ.right),b=Math.max(this.kJ.top,b),!0!==this.options.WY&&(b=Math.min(this.kJ.bottom,b)));var a={left:this.TA.left,top:this.TA.top},c={width:this.hY.width,height:this.hY.height};
this.mx==k.Ph.bE&&(a.left=d,c.width+=this.TA.left-a.left);this.mx==k.Ph.tE&&(c.width=d-this.TA.left);this.mx==k.Ph.Bj&&(a.top=b,c.height+=this.TA.top-a.top);this.mx==k.Ph.ji&&(c.height=b-this.TA.top);this.options.resize&&this.options.resize({rD:this.mx,zNa:this.TA,c3:this.hY,position:a,size:c})};h.prototype.eN=function(){document.addEventListener("mousemove",this.RA);document.addEventListener("mouseup",this.Qs);this.hY={width:this.target.cf(!0),height:this.target.qd(!0)};this.TA={left:this.target.Sf().left,
top:this.target.Sf().top};this.kJ=this.options.jR?this.options.jR.getBoundingClientRect():null};h.prototype.fN=function(){document.removeEventListener("mousemove",this.RA);document.removeEventListener("mouseup",this.Qs);this.options.complete&&this.options.complete()};h.prototype.dispose=function(){document.removeEventListener("mousemove",this.RA);document.removeEventListener("mouseup",this.Qs)};k.woa=h})(f.Fi||(f.Fi={}))})(A||(A={}));
(function(f){(function(k){function h(){return f.Vf.XI.apply(this,arguments)||this}u(h,f.Vf.XI);h.prototype.gb=function(){f.Vf.XI.prototype.gb.call(this);var d=this.data.submenu&&0<this.data.submenu.length;this.F.Ua("fm-has-submenu",d);this.Dsa(d)};k.o8=h})(f.No||(f.No={}))})(A||(A={}));
(function(f){(function(k){function h(b){var a=f.Vb.ZI.call(this)||this;a.parent=b;a.Y("fm-ui-context-submenu");a.N("keydown",function(c){return a.kp(c)});a.list=new f.hd.zh;a.list.Lh(function(c,e){return a.oJa(c,e)});a.list.Xf("caption");a.list.ue();a.V(a.list);return a}function d(b){var a=f.Vb.ZI.call(this)||this;a.sV=function(c){return a.BFa(c)};a.parent=b;a.Y("fm-ui-context-menu");a.list=new f.hd.zh;a.list.Lh(function(c,e){return a.bu(c,e)});a.list.Xf("caption");a.list.ue();a.list.N(y.da.Qd,function(c){return a.ku(c)});
a.V(a.list);a.lz=new h(a);a.lz.list.N(y.da.Qd,function(c){return a.ku(c)});a.lz.$a();a.V(a.lz);a.F.$k();a.F.N("mouseleave",function(){a.Q$=setTimeout(function(){return a.close()},500)});a.F.N("mouseover",function(){clearTimeout(a.Q$)});a.F.N("keydown",function(c){27==c.keyCode&&(a.close(),c.stopImmediatePropagation())});return a}u(d,f.Vb.ZI);d.prototype.Xn=function(b,a,c,e,g){var l=this;e=void 0===e?null:e;0!=a.length&&(this.YJ=void 0===g?null:g,this.setData(a),this.show(),this.ov=document.activeElement,
this.list.focus({preventScroll:!0}),b=b.Sf(),c.top-=b.top,c.top+=e&&!isNaN(e.top)?e.top:-5,c.left-=b.left,c.left+=e&&!isNaN(e.left)?e.left:-5,this.F.offset(c),e=this.F.getBoundingClientRect(),b=!1,e.right>window.innerWidth&&(c.left-=e.width-10,b=!0),e.bottom>window.innerHeight&&(c.top-=e.height-10,b=!0),b&&(c.top=Math.max(-this.F.parent.top,c.top),c.left=Math.max(-this.F.parent.left,c.left),this.F.offset(c)),x.Bd().Vl?w.K.Hb.zb.N("touchstart",this.sV):w.K.Hb.zb.N("mousedown",this.sV),this.ida=!0,
w.pe(function(){l.ida=!1},100))};d.prototype.BFa=function(b){this.F.iR(b)||this.close()};d.prototype.close=function(b){b=void 0===b?null:b;clearTimeout(this.Q$);if(this.F.visible){this.$a();this.lz.$a();w.K.Hb.zb.mb("mousedown",this.sV);w.K.Hb.zb.mb("touchstart",this.sV);var a=b&&!0===b.preventFocusRestore?!1:!0;this.YJ&&(a=this.YJ(b),this.YJ=null);this.ov&&!1!==a&&this.ov.focus({preventScroll:!0})}};d.prototype.setData=function(b){this.list.Cf(b.slice())};d.prototype.ku=function(b){var a=b.data.Fk;
a.submenu&&0<a.submenu.length?(this.lz.Xn(b.data.eIa,a),this.lz.list.focus()):(null!=a.handler&&a.handler(a.data),b.data.np&&b.data.np.stopImmediatePropagation(),this.close(a))};d.prototype.bu=function(b,a){var c=this,e=new k.o8;e.setData(b);e.am(a);w.ha(b["class"])||e.Y(b["class"]);e.N("mouseover",function(){return c.SEa(e,b)});return e};d.prototype.SEa=function(b,a){this.ida||(a.submenu&&0<a.submenu.length?this.lz.Xn(b.F,a):this.lz.$a())};d.prototype.focus=function(b){this.list.focus(void 0===b?
null:b)};k.wE=d;u(h,f.Vb.ZI);h.prototype.kp=function(b){27==b.keyCode&&(this.parent&&this.parent.focus(),this.$a(),b.stopImmediatePropagation())};h.prototype.oJa=function(b,a){var c=new k.o8;c.setData(b);c.am(a);w.ha(b["class"])||c.Y(b["class"]);return c};h.prototype.Xn=function(b,a){if(a!=this.rfa){this.rfa=a;this.list.Cf(a.submenu.slice());a=b.Sf(this.parent.F.element);this.F.top=a.top-1;this.F.left=b.cf(!0)-5;this.show();var c=this.F.getBoundingClientRect();c.right>window.innerWidth&&(this.F.left=
-c.width,0>this.F.left&&(this.F.left=-this.F.left));c.bottom>window.innerHeight&&(this.F.top=a.top-c.height+b.qd(!0)+1,0>this.F.top&&(this.F.top=-this.F.top))}};h.prototype.$a=function(){f.Vb.ZI.prototype.$a.call(this);this.rfa=null}})(f.No||(f.No={}))})(A||(A={}));
(function(f){(function(k){function h(d){var b=this;this.target=d;x.Bd().Vl?(new f.gF.uma(this.target)).VBa(function(a,c){return b.H2(a,c)}):w.Pj.addEventListener("contextmenu",function(a){return b.Oqa(a)})}h.prototype.H2=function(){};h.prototype.T2=function(){};h.prototype.Oqa=function(d){this.target.iR(d)&&this.T2(d)};k.a8=h})(f.No||(f.No={}))})(A||(A={}));
(function(f){(function(k){function h(){var d=f.Ca.call(this,"div","fm-ui-datepicker-input")||this;d.Zb="dd/MM/yyyy";d.Iqa=1900;d.Gqa=2100;d.nfa=function(a){return d.XEa(a)};d.Tx=new f.Pi;d.Tx.F.N("click",function(){return d.open()});d.Tx.N(f.Pi.Qw,function(a){return d.mEa(a)});d.Tx.N(f.Pi.Nz,function(){return d.nEa()});d.V(d.Tx);var b=new f.Aa("i","fm-ui-datepicker-icon");b.N("click",function(){return d.lEa()});d.F.V(b);d.eba=new f.Aa("div","fm-ui-datepicker-dropdown");d.F.V(d.eba);d.Qo=new k.ppa;
d.Qo.N(y.da.Qd,function(){return d.IDa()});d.eba.V(d.Qo.F);d.be();return d}u(h,f.Ca);h.prototype.gb=function(){this.Kr("all","date")&&(this.Qo.mH?this.Tx.cj(this.Qo.mH.format(this.Zb)):this.Tx.cj(""));this.Kr("timezone")&&this.Tx.lD(this.Xya());f.Ca.prototype.gb.call(this)};h.prototype.open=function(){this.F.Ua("fm-opened",!0);this.Qo.reset();document.body.addEventListener("mousedown",this.nfa)};h.prototype.close=function(){this.F.Ua("fm-opened",!1);document.body.removeEventListener("mousedown",this.nfa);
this.be("date")};h.prototype.EIa=function(){this.zc=(new w.Gg).dj(this.Ii)};h.prototype.bGa=function(d){var b="MM/dd/yyyy"==this.Zb,a=d.split("/");d=parseInt(a[2]);isNaN(d)||(d=Math.min(this.Gqa,Math.max(this.Iqa,d)));var c=parseInt(a[b?0:1])-1;isNaN(c)||(c=Math.min(11,Math.max(0,c)));b=parseInt(a[b?1:0]);isNaN(b)||(b=Math.min(w.Gg.YZ(c,d),Math.max(1,b)));b=(new w.Gg).dj(this.Ii).setFullYear(d,c,b);return b.Cg()?b:null};h.prototype.lEa=function(){this.F.Lc("fm-opened")?this.close():this.open()};h.prototype.mEa=
function(d){d=this.bGa(d.data);w.v(d)||(this.Qo.mH=d,this.Wa(y.da.Qd,this,this.zc))};h.prototype.nEa=function(){this.be("date");this.close()};h.prototype.XEa=function(d){this.F.iR(d)||this.close()};h.prototype.IDa=function(){this.Wa(y.da.Qd,this,this.zc);this.be("date");this.close()};h.prototype.Xya=function(){var d=new w.Gg;d.dj(this.Ii);return d.format(this.Zb)};h.prototype.hc=function(d){return this.Tx.hc(d)};q.Object.defineProperties(h.prototype,{zc:{configurable:!0,enumerable:!0,get:function(){return this.Qo.mH},
set:function(d){this.Qo.mH=d;this.be("date")}},CD:{configurable:!0,enumerable:!0,get:function(){return this.Qo.CD},set:function(d){this.Qo.CD=d}},Ii:{configurable:!0,enumerable:!0,get:function(){return this.Qo.Ii},set:function(d){this.Qo.Ii=d;this.be("timezone")}},KQ:{configurable:!0,enumerable:!0,set:function(d){this.Qo.KQ=d}},Caa:{configurable:!0,enumerable:!0,get:function(){return this.Zb},set:function(d){"dd/MM/yyyy"!=d&&"MM/dd/yyyy"!=d||this.Zb==d||(this.Zb=d,this.Lq())}}});k.p8=h})(f.DK||(f.DK=
{}))})(A||(A={}));
(function(f){(function(k){function h(){var b=f.Ca.call(this)||this;b.gKa=x.gh.Hya();b.Lea=x.gh.jza();b.rm=null;b.fq=null;b.NJ=0;b.K=d.Rq;b.BY=1;b.zY=null;b.Y("fm-ui-datepicker");b.Y("fm-noselect");b.rm=(new w.Gg).dj(b.Ii).xH();var a=new f.Aa("div","fm-ui-dp-header");b.F.V(a);b.H$=new f.Jf("fm-prev-btn");b.H$.N(f.sd.Xe,function(){return b.Uea(-1)});a.V(b.H$.F);b.kM=new f.Oc;b.kM.Y("fm-ui-dp-month");b.kM.N("click",function(){return b.QEa()});a.V(b.kM.F);b.GH=new f.Oc;b.GH.Y("fm-ui-dp-year");b.GH.N("click",
function(){return b.PFa()});a.V(b.GH.F);b.G$=new f.Jf("fm-next-btn");b.G$.N(f.sd.Xe,function(){return b.Uea(1)});a.V(b.G$.F);b.V4=new f.Aa("div","fm-ui-dp-week");b.F.V(b.V4);b.Ux=new f.Aa("div","fm-ui-dp-dates");b.Ux.N("click",function(c){return b.FDa(c)});b.F.V(b.Ux);a=new f.Aa("div","fm-ui-dp-footer");b.F.V(a);b.ze=new f.sd("fm-ui-link-btn");b.ze.Y("fm-cancel-btn");b.ze.Y("fm-muted");b.ze.ud("fm-ui-btn");b.ze.Za("Cancel");b.ze.N(f.sd.Xe,function(){return b.Sr()});a.V(b.ze.F);b.be();return b}function d(){}
d.Rq=0;d.FI=1;d.gJ=2;u(h,f.Ca);h.prototype.gb=function(){this.Kr("all")&&this.owa();this.Kr("date","view")&&this.iwa();this.Kr("date","view")&&this.K==d.Rq&&this.Yva();this.Kr("view")&&this.K==d.FI&&this.jwa();this.Kr("view")&&this.K==d.gJ&&this.pwa();f.Ca.prototype.gb.call(this)};h.prototype.reset=function(){this.rm=this.fq?this.fq.clone().xH():(new w.Gg).dj(this.Ii).xH();this.NJ=0;this.view=d.Rq;this.be("view")};h.prototype.iwa=function(){if(this.view==d.Rq||this.view==d.FI)this.kM.Za(this.Lea[this.rm.getMonth()]),
this.GH.Za(this.rm.getFullYear().toString());if(this.view==d.gJ){var b=this.Sca();this.GH.Za(b+" \u2013 "+(b+19))}this.GH.F.Ua("fm-disabled",this.view!=d.Rq);this.kM.F.Ua("fm-disabled",this.view!=d.Rq)};h.prototype.Sca=function(){for(var b=this.rm.getFullYear()-10;0!=b%10;)b++;return b+=20*this.NJ};h.prototype.owa=function(){this.V4.empty();for(var b=0;7>b;b++){var a=new f.Oc(this.gKa[(b+this.CD)%7].substr(0,2));a.Y("fm-ui-dp-day-title");a.Y("fm-ui-dp-col-7");this.V4.V(a.F)}};h.prototype.pwa=function(){var b=
this.Sca();this.Ux.empty();for(var a=0;20>a;a++){var c=new f.Oc(b.toString());c.Y("fm-ui-dp-date-label");c.Y("fm-ui-dp-col-5");this.fq?this.fq.getFullYear()==b&&c.Y("fm-selected"):this.rm.getFullYear()==b&&c.Y("fm-highlighted");c.F.attr("data-year",b);this.Ux.V(c.F);b++}};h.prototype.jwa=function(){var b=this;this.Ux.empty();this.Lea.forEach(function(a,c){a=new f.Oc(a);a.Y("fm-ui-dp-date-label");a.Y("fm-ui-dp-col-3");b.fq?b.fq.getMonth()==c&&a.Y("fm-selected"):b.rm.getMonth()==c&&a.Y("fm-highlighted");
a.F.attr("data-month",c);b.Ux.V(a.F)})};h.prototype.Yva=function(){var b=this.rm.getDay()-this.CD;0>b&&(b+=7);b=this.rm.clone().GY(-b);var a=(new w.Gg).dj(this.Ii);this.Ux.empty();for(var c=0;42>c;c++){var e=new f.Oc(b.getDate().toString());e.Y("fm-ui-dp-date-label");e.Y("fm-ui-dp-col-7");b.getMonth()!=this.rm.getMonth()&&e.Y("fm-muted");this.W0(this.fq,b)&&e.Y("fm-selected");this.W0(a,b)&&e.Y("fm-highlighted");e.F.attr("data-date",b.getTime()/1E3);this.Ux.V(e.F);b.GY(1)}};h.prototype.W0=function(b,
a){return w.v(b)||w.v(a)?!1:b.getFullYear()==a.getFullYear()&&b.getMonth()==a.getMonth()&&b.getDate()==a.getDate()?!0:!1};h.prototype.QEa=function(){this.view=d.FI};h.prototype.PFa=function(){this.view!=d.FI&&(this.view=d.gJ)};h.prototype.FDa=function(b){b=f.Aa.Pb(b.target);var a=b.attr("data-date");w.v(a)||(this.mH=new w.Gg(1E3*parseInt(a)),this.Wa(y.da.Qd));a=b.attr("data-month");w.v(a)||(this.rm.setMonth(parseInt(a),1),this.view=d.Rq);b=b.attr("data-year");w.v(b)||(this.rm.setFullYear(parseInt(b),
this.rm.getMonth(),1),this.view=d.Rq,this.NJ=0)};h.prototype.Uea=function(b){this.view==d.Rq?this.rm.Kra(b):this.view==d.gJ&&(this.NJ+=b);this.be("view")};h.prototype.Sr=function(){this.view=d.Rq};q.Object.defineProperties(h.prototype,{mH:{configurable:!0,enumerable:!0,get:function(){return this.fq},set:function(b){w.v(b)?null!=this.fq&&(this.fq=null,this.be("date")):(b.dj(this.Ii),b.setHours(0,0,0,0),this.W0(this.fq,b)||(this.fq=b,this.rm=b.clone().xH(),this.be("date")))}},view:{configurable:!0,
enumerable:!0,get:function(){return this.K},set:function(b){this.K!=b&&(this.K=b,this.F.Ua("fm-ui-dp-view-dates",this.view==d.Rq),this.F.Ua("fm-ui-dp-view-months",this.view==d.FI),this.F.Ua("fm-ui-dp-view-years",this.view==d.gJ),this.be("view"))}},CD:{configurable:!0,enumerable:!0,get:function(){return this.BY},set:function(b){this.BY!=b&&(this.BY=b,this.be("all"))}},Ii:{configurable:!0,enumerable:!0,get:function(){return this.zY},set:function(b){this.zY!=b&&(this.zY=b,this.be("all"))}},KQ:{configurable:!0,
enumerable:!0,set:function(b){this.ze.Za(b)}}});k.ppa=h})(f.DK||(f.DK={}))})(A||(A={}));
(function(f){(function(k){function h(d,b){var a=this;this.Wha=function(c){return a.GFa(c)};this.Vha=function(c){return a.sU(c)};this.target=d;this.delay=void 0===b?1E3:b}h.prototype.VBa=function(d){this.Eb=d;this.target.N("touchstart",this.Wha);this.target.N("touchend",this.Vha)};h.prototype.stop=function(){this.target.mb("touchstart",this.Wha);this.target.mb("touchend",this.Vha)};h.prototype.GFa=function(d){var b=this;this.timer=w.pe(function(){return b.Vsa(d)},this.delay)};h.prototype.sU=function(){this.timer&&
w.Dr(this.timer)};h.prototype.Vsa=function(d){f.Aa.Pb(d.target).Lc("fm-dragging")||this.Eb(d,d&&0<d.changedTouches.length?d.changedTouches[0]:null)};k.uma=h})(f.gF||(f.gF={}))})(A||(A={}));(function(f){(function(k){function h(){var d=f.Aa.call(this)||this;d.ue();d.jg("hidden","true");d.element.addEventListener("focus",function(b){return d.j2(b)});return d}u(h,f.Aa);h.prototype.j2=function(d){d.relatedTarget&&d.relatedTarget.focus()};k.O6=h})(f.gF||(f.gF={}))})(A||(A={}));
(function(f){function k(){this.qv=""}function h(m){this.pl=0;this.jm=-1;this.qv=m;this.NZ=this.yya(this.qv)}function d(m){this.Tq=-1;this.pl=0;this.iB=m}function b(m){this.Tq=-1;this.pl=0;this.iB=m}function a(){this.jm=this.Tq=-1}function c(){this.jm=this.Tq=-1;this.EH=this.DH=this.Kw=this.wu=0}function e(){}function g(){}function l(m,n,p){p=void 0===p?l.lma:p;this.nqa=!0;this.kx=0;this.vA=void 0===n?0:n;this.buffer=m;this.position=0;this.Awa=p}l.prototype.seek=function(m){m=Math.max(0,Math.min(this.byteLength,
m));this.position=isNaN(m)||!isFinite(m)?0:m};l.prototype.jKa=function(m){this.lKa(g.encode(m))};l.prototype.kKa=function(m){this.mY(1);this.BX.setUint8(this.position,m);this.position+=1};l.prototype.lKa=function(m){this.mY(1*m.length);if(m instanceof Uint8Array&&0==this.byteOffset+this.position%m.BYTES_PER_ELEMENT)this.zCa(this.Xp,this.byteOffset+this.position,m.buffer,m.byteLength),this.Bea(m.length);else for(var n=0;n<m.length;n++)this.kKa(m[n])};l.prototype.IU=function(m){return e.decode(this.Bea(m))};
l.prototype.Zfa=function(){var m=this.BX.getUint32(this.position,this.Awa);this.position+=4;return m};l.prototype.Bea=function(m){this.mY(1*m);var n=new Uint8Array(this.Xp,this.byteOffset+this.position,m);this.position+=1*m;return n};l.prototype.mY=function(m){if(this.nqa){m=this.vA+this.position+m;var n=this.Xp.byteLength;if(m<=n)m>this.kx&&(this.kx=m);else{for(1>n&&(n=1);m>n;)n*=2;n=new ArrayBuffer(n);var p=new Uint8Array(this.Xp);(new Uint8Array(n,0,p.length)).set(p);this.buffer=n;this.kx=m}}};
l.prototype.Zqa=function(){if(this.kx!=this.Xp.byteLength){var m=new ArrayBuffer(this.kx),n=new Uint8Array(m),p=new Uint8Array(this.Xp,0,n.length);n.set(p);this.buffer=m}};l.prototype.zCa=function(m,n,p,t){m=new Uint8Array(m,n,t);p=new Uint8Array(p,0,t);m.set(p)};q.Object.defineProperties(l.prototype,{byteOffset:{configurable:!0,enumerable:!0,get:function(){return this.vA},set:function(m){this.vA=m;this.BX=new DataView(this.Xp,this.vA);this.kx=this.Xp.byteLength}},byteLength:{configurable:!0,enumerable:!0,
get:function(){return this.kx-this.vA}},buffer:{configurable:!0,enumerable:!0,get:function(){this.Zqa();return this.Xp},set:function(m){this.Xp=m;this.BX=0==this.vA?new DataView(this.Xp):new DataView(this.Xp,this.vA);this.kx=this.Xp.byteLength}}});l.RH=!1;l.lma=!0;f.Sq=l;g.encode=function(m){m=m?String(m):"";var n=[],p=new d(n);m=new h(m);null==g.t_&&(g.t_=new a);for(;m.get()!==g.jm;)g.t_.encode(p,m);do var t=g.t_.encode(p,m);while(t!==g.Tq);return new Uint8Array(n)};g.Tq=-1;g.jm=-1;f.TextEncoder=
g;e.decode=function(m){m||(m=new Uint8Array(0));m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);m=new b(m);var n=new k;null==e.ZZ&&(e.ZZ=new c);for(;m.get()!==e.Tq;){var p=e.ZZ.decode(m);null!==p&&p!==e.jm&&n.UF(p)}do p=e.ZZ.decode(m),null!==p&&p!==e.jm&&n.UF(p);while(p!==e.jm);return n.qv};e.Tq=-1;e.jm=-1;f.TextDecoder=e;c.prototype.decode=function(m){var n=m.get();if(n===this.Tq)return this.jm;m.offset(1);if(0===this.Kw){if(this.inRange(n,0,127))return n;if(this.inRange(n,194,223))this.Kw=
1,this.EH=128,this.wu=n-192;else if(this.inRange(n,224,239))this.Kw=2,this.EH=2048,this.wu=n-224;else if(this.inRange(n,240,244))this.Kw=3,this.EH=65536,this.wu=n-240;else return this.jm;this.wu*=Math.pow(64,this.Kw);return null}if(!this.inRange(n,128,191))return this.EH=this.DH=this.Kw=this.wu=0,m.offset(-1),this.jm;this.DH+=1;this.wu+=(n-128)*Math.pow(64,this.Kw-this.DH);if(this.DH!==this.Kw)return null;m=this.wu;n=this.EH;this.EH=this.DH=this.Kw=this.wu=0;return this.inRange(m,n,1114111)&&!this.inRange(m,
55296,57343)?m:this.jm};c.prototype.inRange=function(m,n,p){return n<=m&&m<=p};f.qNa=c;a.prototype.inRange=function(m,n,p){return n<=m&&m<=p};a.prototype.Vaa=function(m,n){return Math.floor(m/n)};a.prototype.encode=function(m,n){var p=n.get();if(p===this.jm)return this.Tq;n.offset(1);if(this.inRange(p,55296,57343))return this.jm;if(this.inRange(p,0,127))return m.UF(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.UF(this.Vaa(p,Math.pow(64,t))+r);0<t;)n=m.UF(128+this.Vaa(p,Math.pow(64,t-1))%64),--t;return n};f.rNa=a;b.prototype.get=function(){return this.pl>=this.iB.length?this.Tq:Number(this.iB[this.pl])};b.prototype.offset=function(m){this.pl+=m;if(0>this.pl)throw Error("Seeking past start of the buffer");if(this.pl>this.iB.length)throw Error("Seeking past EOF");};b.prototype.match=function(m){if(m.length>this.pl+this.iB.length)return!1;var n;for(n=0;n<m.length;n+=1)if(Number(this.iB[this.pl+n])!==
m[n])return!1;return!0};f.uKa=b;d.prototype.UF=function(m){var n=this.Tq,p;for(p=0;p<arguments.length;++p)n=Number(arguments[p]),this.iB[this.pl++]=n;return n};f.vKa=d;h.prototype.yya=function(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};h.prototype.inRange=function(m,n,p){return n<=m&&m<=p};h.prototype.offset=function(m){this.pl+=m;if(0>this.pl)throw Error("Seeking past start of the buffer");if(this.pl>this.NZ.length)throw Error("Seeking past EOF");};h.prototype.get=function(){return this.pl>=this.NZ.length?this.jm:this.NZ[this.pl]};f.VKa=h;k.prototype.UF=function(m){65535>=m?this.qv+=String.fromCharCode(m):(m-=65536,this.qv+=String.fromCharCode(55296+(m>>10&1023)),this.qv+=String.fromCharCode(56320+(m&1023)))};f.WKa=
k})(w||(w={}));var D;
(function(f){function k(){var h=y.Fc.apply(this,arguments)||this;h.responseType="arraybuffer";h.connected=!1;h.requestHeaders=[];return h}u(k,y.Fc);k.prototype.load=function(h){var d=this;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=function(b){return d.lp(b)};this.xhr.onerror=function(b){return d.Mb(b)};this.xhr.onreadystatechange=function(b){return d.lu(b)};this.dK();this.xhr.send()};k.prototype.vya=
function(){if(void 0!==this.xhr){var h=this.xhr.getResponseHeader("Content-Type"),d=/charset=([^()<>@,;:"/[\]?.=\s]*)/i;return d.test(h)?d.exec(h)[1]:"UTF-8"}};k.prototype.yq=function(){this.response=this.xhr.response;this.Wa(y.da.Jc)};k.prototype.lp=function(h){this.Wa(y.da.je,this,h)};k.prototype.Mb=function(){w.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Da(new y.da(y.da.ya,this))};k.prototype.lu=function(){null!=this.xhr&&4===this.xhr.readyState&&
(200===this.xhr.status?this.yq():this.Wa(y.da.ya,this,this.xhr.statusText));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Wa(y.da.Fz))};k.prototype.dK=function(){if(!w.v(this.requestHeaders))for(var h=0;h<this.requestHeaders.length;h++)try{this.xhr.setRequestHeader(this.requestHeaders[h].zi,this.requestHeaders[h].value)}catch(d){console.error("Request headers error:",d),w.Va(d.message||d,w.model.A.j.ya,w.rb.ya)}};k.prototype.close=function(){null!=this.xhr&&this.xhr.abort()};
k.prototype.dispose=function(){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.requestHeaders=this.xhr=null};f.r8=k})(D||(D={}));
(function(f){function k(){this.data={}}function h(){}function d(){}function b(){}function a(){var c=y.Fc.call(this)||this;c.dataType=b.lA;c.contentType=d.$oa;c.Dq=h.tW;c.connected=!1;c.R9=!1;c.aY=0;c.MA=null;c.Sfa=0;c.requestHeaders=[];c.data={};c.si=0;return c}u(a,y.Fc);a.prototype.load=function(c){var e=this;w.ha(c)||(this.url=c);this.si=0;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;try{this.xhr.open(this.Dq,this.url,!0)}catch(g){this.Mb(g);return}this.xhr.withCredentials=this.R9;
this.xhr.onerror=function(g){return e.Mb(g)};this.xhr.onreadystatechange=function(g){return e.lu(g)};this.xhr.onprogress=function(g){return e.lp(g)};this.Dq==h.Pu&&!1!==this.contentType&&this.xhr.setRequestHeader("Content-type",this.contentType);this.dK();this.xhr.send(this.data)};a.prototype.retry=function(){this.load(this.url)};a.prototype.dK=function(){if(!w.v(this.requestHeaders))for(var c=0;c<this.requestHeaders.length;c++)try{this.xhr.setRequestHeader(this.requestHeaders[c].zi,this.requestHeaders[c].value)}catch(e){console.error("Request headers error:",
e),w.Va(e.message||e,w.model.A.j.ya,w.rb.ya)}};a.prototype.vh=function(c){if(!w.v(c)){this.requestHeaders=[];for(var e in c)c.hasOwnProperty(e)&&this.requestHeaders.push(new f.s8(e,c[e]))}};a.prototype.vH=function(){this.response=this.xhr.response||this.xhr.responseText;this.si=this.MA?this.MA.loaded:this.response.length;null!=this.MA&&this.Wa(y.da.je,this,this.MA);this.Da(new y.da(y.da.Jc,this))};a.prototype.lu=function(c){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.vH():
this.Mb(c));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Da(new y.da(y.da.Fz)))};a.prototype.lp=function(c){x.xf()-this.aY>this.Sfa?(this.response=this.xhr.response||this.xhr.responseText,this.si=c.loaded,this.Wa(y.da.je,this,c),this.aY=x.xf(),this.MA=null):this.MA=c};a.prototype.Mb=function(){w.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Da(new y.da(y.da.ya,this))};a.prototype.close=function(){null!=this.xhr&&
(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())};a.prototype.dispose=function(){this.data=this.response=null;this.requestHeaders=[];null!=this.xhr&&(this.xhr.abort(),this.xhr.onprogress=null,this.xhr.onreadystatechange=null);this.aY=this.MA=this.xhr=null};q.Object.defineProperties(a.prototype,{withCredentials:{configurable:!0,enumerable:!0,set:function(c){this.R9=c}}});f.Qi=a;b.lA="text";b.aa="xml";b.Lu="html";b.JSON="json";f.Jz=b;d.$oa="text/plain";d.eP="text/xml";d.c5=
"application/json";d.Gia="application/x-www-form-urlencoded";f.Iz=d;h.Pu="POST";h.tW="GET";f.Fs=h;f.s8=function(c,e){this.zi=c;this.value=e};k.prototype.toString=function(){var c=[],e;for(e in this.data)this.data.hasOwnProperty(e)&&c.push(e+"="+this.data[e]);return c.join("&")};f.wpa=k})(D||(D={}));
(function(f){function k(){}function h(){var d=y.Fc.call(this)||this;d.CR=!1;d.oia=function(){return d.j2()};d.t3=!1;return d}u(h,y.Fc);h.prototype.E$=function(d){var b=this;d=void 0===d?[]:d;this.input=document.createElement("input");this.input.setAttribute("type","file");this.input.style.display="none";document.body.appendChild(this.input);this.input.setAttribute("accept",d.join(","));this.input.addEventListener("change",function(){return b.cDa()});this.CR=!0;this.t3=window.location!==window.parent.location;
w.XK.addEventListener("focus",this.oia);this.input.click()};h.prototype.cDa=function(){this.CR=!1;w.v(this.input.files)||w.v(this.input.files[0])||(this.file=this.input.files[0],this.Wa(y.da.to))};h.prototype.j2=function(){var d=this;this.t3?this.t3=!1:this.CR&&w.pe(function(){(w.v(d.input.files)||w.v(d.input.files[0]))&&d.Wa(y.da.SV);d.CR=!1},500)};h.prototype.load=function(d){var b=this;d=void 0===d?k.lA:d;null!=this.file&&(this.ZC=new FileReader,this.ZC.onload=function(){return b.wEa()},this.ZC.onprogress=
function(a){return b.lp(a)},this.ZC.onerror=function(a){return b.Mb(a)},d==k.ARRAY_BUFFER?this.ZC.readAsArrayBuffer(this.file):this.ZC.readAsText(this.file))};h.prototype.wEa=function(){this.response=this.ZC.result;this.Da(new y.da(y.da.Jc,this))};h.prototype.lp=function(d){this.Wa(y.da.je,this,d)};h.prototype.Mb=function(d){this.Da(d)};h.prototype.dispose=function(){this.ZC=this.file=this.response=null;w.XK.removeEventListener("focus",this.oia)};f.L6=h;k.lA="TEXT";k.ARRAY_BUFFER="ARRAY_BUFFER";f.uoa=
k;f.uga=function(d,b){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(d,b);else{var a=document.createElement("a"),c=window.URL.createObjectURL(d);a.href=c;a.download=b;a.target="_blank";document.body.appendChild(a);a.click();w.pe(function(){document.body.removeChild(a);window.URL.revokeObjectURL(c)},0)}}})(D||(D={}));
(function(f){function k(){throw Error("Singleton");}function h(){return Element.apply(this,arguments)||this}function d(){}d.prototype.find=function(b){return void 0===this.item?this:this.item.find(b)};d.prototype.text=function(){return void 0===this.item?"":this.item.text()};d.prototype.attr=function(b,a){if(void 0!==this.item)return a?this.item.attr(b,a):this.item.attr(b)};d.prototype.children=function(){for(var b=new d,a=0;void 0!==this[a];)b[a]=h.Pb(this[a]),a++;return b};d.prototype.push=function(b){this[this.length]=
b;return this};q.Object.defineProperties(d.prototype,{item:{configurable:!0,enumerable:!0,get:function(){return this[0]}},length:{configurable:!0,enumerable:!0,get:function(){for(var b=0;void 0!==this[b];)b++;return b}}});f.sNa=d;u(h,Element);h.prototype.text=function(b){return b||!1===b?(this.textContent=b.toString(),this):b=w.v(this.textContent)?"":this.textContent};h.prototype.append=function(b){if(w.v(b)||"string"==typeof b&&w.ha(b))return this;(b instanceof CDATASection||""!=b.textContent)&&
this.appendChild(b);return this};h.prototype.ob=function(){return""==this.text()};h.prototype.find=function(b){b=this.querySelectorAll(b);for(var a=new d,c=0;c<b.length;c++)a[c]=h.Pb(b[c]);return a};h.prototype.attr=function(b,a){if(a||!1===a)return this.setAttribute(b,a),this;a=this.getAttribute(b);null==a&&(a=void 0);return a};h.prototype.mya=function(){for(var b=new d,a=this.firstElementChild;a;)a.nodeType===Node.ELEMENT_NODE&&b.push(h.Pb(a)),a=a.nextElementSibling;return b};h.Pb=function(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.ob;b.getChildren=h.prototype.mya;return b};q.Object.defineProperties(h.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.childNodes.length}}});f.qX=h;k.create=function(b){if(null==b.firstChild){b=(new DOMParser).parseFromString(b,"text/xml");if(k.qBa(b))return null;b=b.firstElementChild?b.firstElementChild:b.firstChild}else b=b.firstChild;return h.Pb(b)};k.qBa=
function(b){return b.getElementsByTagName("parsererror")&&b.getElementsByTagName("parsererror")[0]?0<b.getElementsByTagNameNS(b.getElementsByTagName("parsererror")[0].namespaceURI,"parsererror").length:!1};k.Bh=function(b){return k.Tva.createCDATASection(b)};k.Cc=function(b,a){a=void 0===a?!1:a;null==k.Hga&&(k.Hga=new XMLSerializer);b=k.Hga.serializeToString(b);1==a&&(b=k.format(b));return b.trim()};k.format=function(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,e=0,g="",l,m=["\n"];for(l=0;20>l;l++)m.push(m[l]+"    ");for(l=0;l<a;l++)if(-1<b[l].search(/<!/)){if(g+=m[e]+b[l],c=!0,-1<b[l].search(/--\x3e/)||-1<b[l].search(/\]>/)||-1<b[l].search(/!DOCTYPE/))c=!1}else-1<b[l].search(/--\x3e/)||-1<b[l].search(/\]>/)?(g+=b[l],c=!1):/^<\w/.exec(b[l-1])&&/^<\/\w/.exec(b[l])&&/^<[\w:\-\.,]+/.exec(b[l-1])[0]==/^<\/[\w:\-\.,]+/.exec(b[l])[0].replace("/","")?(g+=b[l],c||e--):g=-1<b[l].search(/<\w/)&&-1==b[l].search(/<\//)&&
-1==b[l].search(/\/>/)?c?g+=b[l]:g+=m[e++]+b[l]:-1<b[l].search(/<\w/)&&-1<b[l].search(/<\//)?c?g+=b[l]:g+=m[e]+b[l]:-1<b[l].search(/<\//)?c?g+=b[l]:g+=m[--e]+b[l]:-1<b[l].search(/\/>/)?c?g+=b[l]:g+=m[e]+b[l]:-1<b[l].search(/<\?/)?g+(m[e]+b[l]):-1<b[l].search(/xmlns:/)||-1<b[l].search(/xmlns=/)?g+(m[e]+b[l]):g+b[l];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")};k.Tva=(new DOMParser).parseFromString("<tmp/>","text/xml");f.aa=k})(D||
(D={}));
(function(f){function k(){}k.print=function(h,d,b){d=void 0===d?"":d;b=void 0===b?"":b;var a="printer-"+(new Date).getTime(),c=(new A.Aa("iframe")).attr("name",a);c.P("width","1px").P("height","1px").P("position","absolute").P("left","-9999px");w.K.Hb.zb.F.append(c);a=window.frames[a];var e=a.document;e.open();e.write("<!DOCTYPE html>");e.write("<html>");e.write("<head>");e.write("<title>");e.write(b);e.write("</title>");e.write("<style>");e.write(d+"body{-webkit-print-color-adjust:exact;}");e.write("</style>");
e.write("</head>");e.write("<body>");e.write(h);e.write("</body>");e.write("</html>");e.close();a.focus();a.print();w.pe(function(){c.remove()},2E3)};f.R7=k})(D||(D={}));
(function(f){function k(d){this.data=new Uint8Array(d);this.index=0}function h(){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]}h.prototype.uua=function(d){var b=[],a=0,c=0,e;for(e in d)if(d.hasOwnProperty(e)){var g=d[e],l=this.w4(g);g=this.MJa(l);g={OJa:l.length,OZ:this.OZ(l),$$:g.length,vua:g,xua:"\x00\x00",zc:new Date};
l=this.Zxa(e,g,a);a+=l.vba.length+g.$$;c+=l.Saa.length;b.push(l)}d=h.$ia+"\x00\x00\x00\x00"+this.Pl(b.length,2)+this.Pl(b.length,2)+this.Pl(c,4)+this.Pl(a,4)+this.Pl(0,2);a=new k(a+c+d.length);for(c=0;c<b.length;c++)a.append(b[c].vba),a.append(b[c].wua.vua);for(c=0;c<b.length;c++)a.append(b[c].Saa);a.append(d);return a.getData()};h.prototype.OZ=function(d){var b=-1;for(var a=0,c=d.length;a<c;a++){var e=d[a];e=(b^e)&255;e=this.table[e];b=b>>>8^e}return b^-1};h.prototype.Pl=function(d,b){for(var a=
"",c=0;c<b;c++)a+=String.fromCharCode(d&255),d>>>=8;return a};h.prototype.Zxa=function(d,b,a){var c=b.zc,e=c.getHours();e=e<<6|c.getMinutes();e=e<<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.xua;c+=this.Pl(e,2);c+=this.Pl(g,2);c+=this.Pl(b.OZ,4);c+=this.Pl(b.$$,4);c+=this.Pl(b.OJa,4);c+=this.Pl(d.length,2);c+=this.Pl(0,2);return{vba:h.mma+c+d,Saa:h.aja+this.Pl(20,2)+c+this.Pl(0,2)+"\x00\x00\x00\x00"+this.Pl(0,4)+this.Pl(a,4)+d,wua:b}};
h.prototype.w4=function(d){var b=this.Nua(d),a=d.length,c=new Uint8Array(b),e,g=0;for(e=0;g<b;e++){var l=d.charCodeAt(e);if(55296===(l&64512)&&e+1<a){var m=d.charCodeAt(e+1);56320===(m&64512)&&(l=65536+(l-55296<<10)+(m-56320),e++)}128>l?c[g++]=l:(2048>l?c[g++]=192|l>>>6:(65536>l?c[g++]=224|l>>>12:(c[g++]=240|l>>>18,c[g++]=128|l>>>12&63),c[g++]=128|l>>>6&63),c[g++]=128|l&63)}return c};h.prototype.Nua=function(d){for(var b=0,a=d.length,c,e,g=0;g<a;g++)c=d.charCodeAt(g),55296===(c&64512)&&g+1<a&&(e=
d.charCodeAt(g+1),56320===(e&64512)&&(c=65536+(c-55296<<10)+(e-56320),g++)),b+=128>c?1:2048>c?2:65536>c?3:4;return b};h.prototype.MJa=function(d){var b=[],a=d.length,c=0;for(new Uint8Array(0);c<a;)b.push(String.fromCharCode.apply(null,d.subarray(c,Math.min(c+65536,a)))),c+=65536;return b.join("")};h.mma="PK\u0003\u0004";h.aja="PK\u0001\u0002";h.$ia="PK\u0005\u0006";f.Ela=h;k.prototype.append=function(d){0!==d.length&&(d=this.w4(d),this.data.set(d,this.index),this.index+=d.length)};k.prototype.getData=
function(){return this.data};k.prototype.w4=function(d){for(var b=new Uint8Array(d.length),a=0;a<d.length;++a)b[a]=d.charCodeAt(a)&255;return b}})(D||(D={}));
(function(f){function k(){!1!==f.X0&&(a&&f.Dr(a),a=f.pe(h,1E3))}function h(){!1!==f.X0&&(0!==b.length&&b.forEach(function(c){var e=c.values[0];"string"===typeof e&&"[!]"===e.substr(0,3)&&(e=JSON.parse(e.substr(3)));d(e);if(1<c.values.length)for(var g=1;g<c.values.length;g++)e=c.values[g],"string"===typeof e&&"[!]"===e.substr(0,3)&&(e=JSON.parse(e.substr(3))),d(e)}),b=[],k())}function d(c){return"string"===typeof c&&"[Stack trace]"===c.substr(0,13)}f.X0=!1;var b=[],a;k();f.debug=function(c){for(var e=
[],g=0;g<arguments.length;++g)e[g-0]=arguments[g];if(!1!==f.X0){g=[];for(var l=0;l<e.length;l++)if("object"===typeof e[l])try{g[l]="[!]"+JSON.stringify(e[l])}catch(m){g[l]="[Object]"}else g[l]=e[l];b.push({time:x.xf(),values:g})}};f.uNa=h;f.DNa=function(){var c=Error();return c&&c.stack?"[Stack trace] "+c.stack.substr(79):""}})(w||(w={}));
(function(f){function k(){}f.Va=function(h,d,b,a,c,e){d=void 0===d?"":d;b=void 0===b?k.Ik:b;a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?!1:e;f.K.GN.U().Xr(h,d,b,a,c,e)};k.Ik="alert";k.fm="confirmation";k.ya="error";k.pO="info";f.rb=k})(w||(w={}));(function(f){f.NJa=function(k){var h="Please enter group name:";h=void 0===h?"":h;k=void 0===k?null:k;f.K.joa.U().Xr(h,k)}})(w||(w={}));(function(f){f.za=function(k,h,d,b,a){k=void 0===k?!0:k;f.K.ioa.U().show(k,h,d,b,a)}})(w||(w={}));
(function(f){(function(k){function h(){var d=y.Fc.call(this)||this;if(null!=h.instance)throw Error("Singleton");d.ga=f.u.Na.U();d.Ga=new k.cc.Voa;d.FH=f.u.external.yb.eh.v8.U();d.t$=f.u.external.kc.Y4.U();return d}u(h,y.Fc);h.U=function(){null==this.instance&&(this.instance=new h);return this.instance};h.prototype.qC=function(d){var b=this;this.Fb=d;h.id=d.id?d.id:"";k.Qa.sIa(d);k.A.Xz.U().reset();f.K.X.W.Yd.Mv=d.customizeCell;f.K.td.Du.BB=d.customizeChartElement;f.K.X.WH.CK=d.customizeContextMenu;
f.u.external.kc.zz.BK=d.customizeAPIRequest;f.K.Vc.mo.PR=d.sortFieldsList;var a=new f.Bla(location.search);if(a.has("flexmonsterreport")){var c=this.d9(d);c?this.t$.eCa("string"===typeof c?{url:c.toLowerCase(),singleEndpoint:!1}:c,a.get("flexmonsterreport"),function(e){void 0!==e&&(d.report=e);b.Ga.qC(d)}):(f.Va(f.O.bind(k.A.j.r7,"The URL to the server hasn't been found."),k.A.j.ya,f.rb.ya),console.error("Can't load the shared file. The URL to the server hasn't been found."),this.Ga.qC(d))}else this.Ga.qC(d)};
h.prototype.d9=function(d){return d.shareReportConnection||d.report&&(d.report.shareReportConnection||d.report.dataSource&&d.report.dataSource.url||d.report.url)||d.url||void 0};h.prototype.open=function(){this.Ga.open()};h.prototype.load=function(d,b){this.Ga.load(d,b)};h.prototype.save=function(d,b,a,c,e){return this.Ga.save(d,void 0===b?null:b,a,c,void 0===e?!1:e)};h.prototype.Bw=function(d){this.Ga.Bw(d)};h.prototype.Gr=function(d){d=void 0===d?{}:d;return this.Ga.Gr(d)};h.prototype.hV=function(d){d=
k.bb.Wu.tb(k.bb.Wu.wl(d));k.size.nd.clear();k.size.nd.cZ(d);this.refresh();this.Ya()};h.prototype.zG=function(){return k.size.nd.zG().La(this.ga.sa.G4())};h.prototype.clear=function(d){this.Ga&&this.Ga.clear(void 0===d?!1:d)};h.prototype.L$=function(d){var b={};f.v(d.dataSourceType)||(b.dataSourceType=d.dataSourceType);f.v(d.type)||(b.dataSourceType=d.type);f.v(d.proxyUrl)||(b.proxyUrl=d.proxyUrl);f.v(d.dataSourceInfo)||(b.dataSourceInfo=d.dataSourceInfo);f.v(d.catalog)||(b.catalog=d.catalog);f.v(d.cube)||
(b.cube=d.cube);f.v(d.subquery)||(b.subquery=d.subquery);f.v(d.localeIdentifier)||(b.localeIdentifier=d.localeIdentifier);f.v(d.effectiveUserName)||(b.effectiveUserName=d.effectiveUserName);f.v(d.customData)||(b.customData=d.customData);f.v(d.filename)||(b.filename=d.filename);f.v(d.requestHeader)||(b.requestHeaders=d.requestHeader);f.v(d.requestHeaders)||(b.requestHeaders=d.requestHeaders);f.v(d.fieldSeparator)||(b.fieldSeparator=d.fieldSeparator);f.v(d.thousandSeparator)||(b.thousandsSeparator=
d.thousandSeparator);f.v(d.thousandsSeparator)||(b.thousandsSeparator=d.thousandsSeparator);f.v(d.recordsetDelimiter)||(b.recordsetDelimiter=d.recordsetDelimiter);f.v(d.browseForFile)||(b.browseForFile=d.browseForFile);f.v(d.data)||(b.data=d.data);f.v(d.binary)||(b.binary=d.binary);f.v(d.ignoreQuotedLineBreaks)||(b.ignoreQuotedLineBreaks=d.ignoreQuotedLineBreaks);f.v(d.roles)||(b.roles=d.roles);f.v(d.hash)||(b.hash=d.hash);f.v(d.username)||(b.username=d.username);f.v(d.password)||(b.password=d.password);
f.v(d.host)||(b.host=d.host);f.v(d.node)||(b.node=d.node);f.v(d.index)||(b.index=d.index);f.v(d.mapping)||(b.mapping=d.mapping);f.v(d.useStreamLoader)||(b.useStreamLoader=d.useStreamLoader);f.v(d.url)||(b.url=d.url);f.v(d.withCredentials)||(b.withCredentials=d.withCredentials);return b};h.prototype.AF=function(d){this.Ga.AF(this.L$(d))};h.prototype.Jd=function(d,b){b.partial?this.Ga.TJa(d.data,b):this.Ga.Jd(this.L$(d),b)};h.prototype.getData=function(d,b,a){if(k.Ea.pc.Ro||k.Ea.pc.pp||k.Ea.pc.Cx)if(null!=
a&&(f.Ug.instance.on("update",function(){f.Ug.instance.getData(d,a)}),this.N(k.Zb.Q6.K6,function(){f.Ug.instance.getData(d,a)})),null!=d&&null!=d.slice){var c=d.slice instanceof k.bb.SliceValueObject?d.slice:k.bb.SliceValueObject.tb(d.slice);k.rC.qO.U().aIa(c,b)}else c=k.rC.qO.U().getData(),k.rC.qO.U().Uaa(b,c);else f.Va(k.Ea.na.J(k.Ea.na.mZ),k.Ea.na.J(k.Ea.na.FC))};h.prototype.U_=function(){return k.ta.gm.oza()};h.prototype.Y_=function(d){return(d=k.ta.gm.get(d))?d.La():null};h.prototype.zQ=function(d){k.ta.gm.add(k.ta.W.Q5.tb(d))};
h.prototype.KU=function(d){k.ta.gm.remove(d)};h.prototype.JU=function(){k.ta.gm.v3()};h.prototype.ct=function(d){this.ga.ct(d)};h.prototype.Xy=function(d){this.ga.Xy(d)};h.prototype.$C=function(){this.ga.$C()};h.prototype.LR=function(d){this.ga.expandAll(!0,void 0===d?!0:d);f.u.bf.ij.dispose();this.refresh();this.Ya()};h.prototype.$Q=function(){this.ga.expandAll(!1,!1);f.u.bf.ij.dispose();this.refresh();this.Wa("reset_grid");this.Ya()};h.prototype.zp=function(d){null!=d.chartActiveMeasure&&delete d.chartActiveMeasure;
null!=d.chartActiveTupleIndex&&delete d.chartActiveTupleIndex;null!=d.zoom&&delete d.zoom;d.flatView&&this.Ga.fa.Hc&&this.Ga.fa.Ba!==f.u.i.oa.API&&delete d.flatView;if(!f.v(d.useOlapFormatting)&&this.Ga.fa.Hc&&k.B.C.Jq!=d.useOlapFormatting){var b=this.Gr({withDefaults:!0});b.options.IC(d);this.Bw({report:b})}else{b=k.B.C.oc;var a=k.B.C.ru,c=k.B.C.he;k.B.C.zp(k.B.Qp.tb(d),!1);a!=k.B.C.ru&&this.Ga&&this.Ga.fa&&!this.Ga.fa.Hc&&this.G.load();!f.v(this.Ga)&&this.Ga.fa.Ba==f.u.i.oa.API&&(b!=k.B.C.oc||k.B.C.oc&&
c!=k.B.C.he)&&(b=this.Gr({withDefaults:!0}),b.options.IC(d),f.v(this.Ga.fa.requestHeaders)||(b.connectionInfo.requestHeaders=this.Ga.fa.requestHeaders),this.clear(!0),this.Bw({report:b}))}};h.prototype.print=function(d){k.$r.nE.U().print(d)};h.prototype.Nj=function(d,b,a){k.vc.en.Nj(d,void 0===b?null:b,void 0===a?null:a)};h.prototype.iC=function(d,b){return this.FH.iC(d,b)};h.prototype.BG=function(d,b){this.FH.ica(d,b)};h.prototype.zL=function(d,b,a){this.FH.iya(d,b,a)};h.prototype.AL=function(d,
b,a,c){this.FH.zya(d,b,a,c)};h.prototype.WQ=function(d,b,a,c,e){this.FH.UQ(d,b,a,c,e)};h.prototype.UM=function(d){var b=this;return Ca(new Ba(new wa(function(a){return a.return(new Promise(function(c,e){function g(l){var m;f.v(l)?b.Ga.fa&&b.Ga.fa.Ba==f.u.i.oa.API&&(m=b.Ga.fa.Tv()):m=new f.u.external.kc.zz(l);f.v(m)&&(l=b.d9(b.Fb),f.v(l)||("string"===typeof l&&(l={url:l}),m=new f.u.external.kc.zz(l)));m?b.t$.UM(m,b.Gr()).then(function(n){c(n)}):(f.Va(f.O.bind(k.A.j.s7,"Can't find the valid connection options"),
k.A.j.ya,f.rb.ya),e("Can't find the valid connection options"))}null==b.ga||null==b.ga.I?b.Ga.N(k.cc.fd.Oh,function(){return g(d)}):g(d)}))})))};h.prototype.Sl=function(d){return null==this.ga||null==this.ga.I?[]:(d=this.ga.I.rc(!1).getItem(d))&&d.filter.$g?d.filter.La():null};h.prototype.tl=function(d,b){d=f.u.me.zg(d);if(d=this.ga.I.rc(!1).getItem(d)){d.nt();d.filter=k.bb.Tz.tb(b,d);if(d.filter.ai&&(d.filter.query.ta==f.u.i.tc.Bj||d.filter.query.ta==f.u.i.tc.ji))if(k.B.C.oc)this.ga.sa.flatSort=
[{sort:d.filter.query.ta==f.u.i.tc.Bj?f.u.i.xa.Ec:f.u.i.xa.bc,measure:this.ga.I.$c(d.filter.measure.uniqueName)}];else{b=this.ga.sa.Cd(f.u.i.ia.Ia);var a=this.ga.sa.Cd(f.u.i.ia.Sa);b=-1!=b.Ma.indexOf(d.uniqueName)?a:b;b.Vm=[];b.$f=d.filter.query.ta==f.u.i.tc.Bj?f.u.i.xa.Ec:f.u.i.xa.bc;b.Ff=this.ga.sa.Zh(d.filter.measure)}this.Wa("reset_grid");this.ga.filter();this.Ya()}};h.prototype.nt=function(d){d=f.u.me.zg(d);if(d=this.ga.I.rc(!1).getItem(d))d.nt(),this.ga.select(),this.Ya()};h.prototype.vG=function(){if(null==
this.ga||null==this.ga.sa)return[];for(var d=[],b=this.ga.sa.rows,a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.kG=function(){if(null==this.ga||null==this.ga.sa)return[];for(var d=[],b=this.ga.sa.columns,a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.dC=function(){if(null==this.ga||null==this.ga.sa)return[];for(var d=[],b=this.ga.sa.pages,a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.ad=function(){if(null==this.ga||null==this.ga.sa)return[];var d=[];
if(k.B.C.oc){for(var b=this.ga.sa.flatten(),a,c=0;c<b.length;c++)a=b.ea(c),(a=this.ga.I.Ee(a.uniqueName))&&d.push(a.Ji());b=this.ga.sa.ad();for(c=0;c<b.length;c++)b[c].Ka&&d.push(b[c].Ji())}else for(b=this.ga.sa.ad(),c=0;c<b.length;c++)d.push(b[c].Ji());return d};h.prototype.Er=function(){if(null==this.ga||null==this.ga.I)return[];for(var d=[],b=this.ga.I.measures,a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.NU=function(d){this.ga.I.rc(!1).getItem(d.name).label=d.caption};h.prototype.dG=
function(){if(null==this.ga||null==this.ga.I)return[];for(var d=[],b=this.ga.I.rc(!1),a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.qV=function(d,b,a,c){c="string"==typeof c?new k.bb.Ig(f.u.me.zg(c)):k.bb.Ig.tb(c);d=this.ga.sa.axes.getItem(d);if(null!=d){if(b==f.u.i.xa.Zc)d.rB();else if(c=this.ga.sa.Zh(c))d.$f=b,d.Vm=a,d.Ff=c;this.ga.sort();this.Ya()}};h.prototype.oD=function(d,b){d=f.u.me.zg(d);if(d=this.ga.I.rc(!1).getItem(d)){var a=this.ga.sa.axes.getItem(f.u.i.ia.Sa),c=this.ga.sa.axes.getItem(f.u.i.ia.Ia);
-1!=a.Ma.indexOf(d.uniqueName)?c.rB():-1!=c.Ma.indexOf(d.uniqueName)&&a.rB();d.Zf=b;k.B.C.oc&&(this.ga.sa.flatSort=[{sort:b,measure:this.ga.I.Ee(d.uniqueName)}]);this.Ya()}this.ga.select()};h.prototype.$U=function(d){this.ga.sa.flatSort=f.u.I.Zq.Iba(d,this.ga.sa.Wc);this.Ya();this.ga.select()};h.prototype.Ya=function(){k.Qa.U().Da(new k.Xc(k.Qa.RI))};h.prototype.oV=function(d){f.K.Vc.mo.PR=d};h.prototype.rV=function(d,b){d=f.u.me.zg(d);if(d=this.ga.I.rc(!1).getItem(d))d.Ly=b;this.Ga.dc&&this.ga.select()};
h.prototype.s0=function(d){if(null==this.ga||null==this.ga.I)return"";d=this.ga.I.rc(!1).getItem(d);return null!=d?d.Zf:""};h.prototype.g0=function(){return null==this.ga||null==this.ga.I?null:this.ga.sa.Jba()};h.prototype.pj=function(d,b,a){var c=this;if(null==this.ga||null==this.ga.I)return[];var e=[],g=this.ga.I.rc(!1).getItem(d);null==b&&(b="");g&&(this.Ga.fa.Hc?(d=""==b?g.yd:g.Db(b),null==a||null==d&&""!=b||(d&&d.children&&0<d.children.length&&!d.yf?(e=this.fS(g,b),a(e)):this.ga.Uj(g,d,function(){e=
c.fS(g,b);a(e)}))):(e=this.T_(g.yd),null!=a&&a(e)));return e};h.prototype.p0=function(d,b){var a=this;return new Promise(function(c,e){function g(l,m){var n=[],p=a.ga.I.rc(!1).getItem(l);f.v(m)&&(m="");if(p){if(a.Ga.fa.Hc)if(l=""===m?p.yd:p.Db(m),null!=l)if(l&&l.children&&0<l.children.length&&!l.yf)n=a.fS(p,m),c(n);else{a.ga.Uj(p,l,function(){n=a.fS(p,m);c(n)});return}else e('Member "'+m+'" is not found!');else n=a.T_(p.yd);c(n)}else e('Hierarchy "'+l+'" is not found!')}null==a.ga||null==a.ga.I?a.Ga.N(k.cc.fd.Oh,
function(){return g(d,b)}):g(d,b)})};h.prototype.fS=function(d,b){var a=[];b=""==b?d.yd.children:d.Db(b).children;for(var c=0;c<b.length;c++){var e=d.va(b[c]),g=e.La();g.isLeaf=e.level.sb==e.hierarchy.ra.length-1;g.parentMember=e.parent.Wb?e.hierarchy.yd.Xi:e.parent.Xi;e.uniqueName!=d.tn&&a.push(g)}return a};h.prototype.T_=function(d){for(var b=[],a=d.hierarchy.uj(d,!1),c=0;c<a.length;c++){var e=d.hierarchy.va(a[c]),g=e.La();g.isLeaf=e.level.sb==e.hierarchy.ra.length-1;g.uniqueName=e.Xi;g.parentMember=
e.parent.Wb?e.hierarchy.yd.Xi:e.parent.Xi;if(1!=e.children.length||e.hierarchy.va(e.children[0]).caption!=k.A.j.Mk)g.children=this.T_(e);b.push(g)}return b};h.prototype.IM=function(d){this.Ga.ae(f.u.I.Zq.tb(d,f.u.Na.U().I))};h.prototype.ae=function(d){this.Ga.ae(d)};h.prototype.Vv=function(){var d=k.B.C.Vv(!0,!0).La();null!=d.chartActiveMeasure&&delete d.chartActiveMeasure;null!=d.chartActiveTupleIndex&&delete d.chartActiveTupleIndex;return d};h.prototype.Dh=function(d,b){var a=this.ga&&this.ga.I?
this.ga.I.$c(d):null;b=a&&void 0===b?a.Ll:b;var c=a&&k.B.C.oc&&f.u.i.Ja.sc==a.type;return(a?a.Dh(d,b,c):k.Zb.Ni.oS()).La(!0)};h.prototype.kD=function(d,b,a){d.hasOwnProperty("name")||(d.name=f.O.aL());try{k.Zb.Ni.kD(d)}catch(l){f.Va("Can't add format. Component's configuration requires more parameters.");return}try{var c=this.ga.I.$c(b);c&&void 0===a&&k.Zb.Ni.lH(d.name,c.uniqueName,"");c&&c.$===a&&(c.format=d.name,k.Zb.Ni.lH(d.name,c.uniqueName,a),d.label&&(c.label=d.label));if(""!=d.name&&(""==b||
null==b))for(var e=0;e<this.ga.I.measures.length;e++)c=this.ga.I.measures.ea(e),k.Zb.Ni.lH(d.name,c.uniqueName,""),c.format=d.name;var g=this.ga.sa.ad();for(e=0;e<g.length;e++)if(b===g[e].uniqueName&&a===g[e].$||void 0===a&&b===g[e].uniqueName)g[e].format=d.name,k.Zb.Ni.lH(d.name,g[e].uniqueName,g[e].$),d.label&&(c.label=d.label)}catch(l){f.Va("List of measures is empty. There is nothing to format.");return}this.Da(new y.da(k.Zb.Q6.K6));this.Ya()};h.prototype.refresh=function(){this.ga.filter()};
h.prototype.u3=function(){var d=f.Ug.instance.Gr();f.Ug.instance.clear();f.Ug.instance.Bw(d)};h.prototype.dispose=function(){f.u.bf.ij.dispose();f.K.X.W.Yd.Mv=null;f.K.td.Du.BB=null;f.K.X.WH.CK=null;f.u.external.kc.zz.BK=null;f.u.Na.dispose();this.Ga&&this.Ga.dispose();this.FH=this.G=this.Ga=this.ga=null;h.instance=null};h.prototype.d0=function(d,b){f.u.external.De.xka.U().j0(d,function(a,c){f.pg(b)&&b(a,c)})};h.id="flexmonster";k.Ta=h})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){function h(){var d=y.Fc.call(this)||this;if(null!=h.instance)throw Error("Singleton");return d}k.Xc=function(d,b){this.type=d;this.data=void 0===b?null:b};u(h,y.Fc);h.U=function(){null==h.instance&&(h.instance=new h);return h.instance};h.dispose=function(){h.instance=null};h.Rha=function(d){return h.p1(d)?d:""};h.p1=function(d){return-1<h.types.indexOf(d)};h.prototype.N=function(d,b,a){d=h.Rha(d);h.p1(d)&&y.Fc.prototype.N.call(this,d,b,void 0===a?0:a)};h.prototype.mb=function(d,
b){d=h.Rha(d);h.p1(d)&&y.Fc.prototype.mb.call(this,d,b)};h.sIa=function(d){for(var b=0;b<h.types.length;b++){var a=h.types[b];h.rIa(a,d[a])}};h.rIa=function(d,b){if(b){"string"==typeof b&&(b=h.xca(b));var a=b;d!=h.MV&&d!=h.Nw&&d!=h.fo&&d!=h.LV&&(a=function(c){for(var e=[],g=0;g<arguments.length;++g)e[g-0]=arguments[g];f.pe(function(){b.apply(null,e)},1)});h.U().N(d,a)}};h.xca=function(d){var b=void 0===b?window:b;d=d.split(".");for(var a=d.pop(),c=0;c<d.length;c++){if(null==b)return null;b=b[d[c]]}return b[a]};
h.lE="openingreportfile";h.Xw="loadingreportfile";h.kn="reportfileloaded";h.SI="reportfileerror";h.Yq="reportfilecancelled";h.cE="loadingdata";h.$H="dataloaded";h.YH="dataerror";h.ZH="datafilecancelled";h.S5="datachanged";h.f7="loadingolapstructure";h.L7="olapstructureloaded";h.K7="olapstructureerror";h.aJ="unauthorizederror";h.hA="runningquery";h.hk="querycomplete";h.Ds="queryerror";h.dE="loadinglocalization";h.eE="localizationloaded";h.AI="localizationerror";h.Oh="reportcomplete";h.RI="reportchange";
h.k6="exportstart";h.Tg="exportcomplete";h.O7="printstart";h.fA="printcomplete";h.U7="ready";h.q8="update";h.Nw="beforegriddraw";h.fo="aftergriddraw";h.LV="afterchartdraw";h.v5="chartclick";h.u5="cellclick";h.KN="celldoubleclick";h.Uw="filteropen";h.oW="filterclose";h.ZD="fieldslistopen";h.hI="fieldslistclose";h.G7="numberformatting";h.B5="conditionalformatting";h.MV="beforetoolbarcreated";h.b6="drillthroughopen";h.Z5="drillthroughclose";h.types=[h.U7,h.lE,h.Xw,h.kn,h.SI,h.Yq,h.cE,h.$H,h.YH,h.ZH,
h.S5,h.f7,h.L7,h.K7,h.aJ,h.hA,h.hk,h.Ds,h.dE,h.eE,h.AI,h.Oh,h.RI,h.O7,h.fA,h.k6,h.Tg,h.q8,h.Nw,h.fo,h.LV,h.v5,h.u5,h.KN,h.Uw,h.oW,h.ZD,h.hI,h.G7,h.B5,h.MV,h.b6,h.Z5];k.Qa=h})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.valid=function(d){if(f.v(d)||"number"===typeof d)return!0;d=d.toLowerCase();return-1===d.indexOf("<script")&&-1===d.indexOf("<svg")&&-1===d.indexOf("javascript:")&&-1===d.indexOf("<iframe")&&-1===d.indexOf("<object")&&-1===d.indexOf("expression(")&&-1===d.indexOf("onmouseover")&&-1===d.indexOf("onload=")&&-1===d.indexOf("onerror")};h.validate=function(d,b){return f.O.In(d,void 0===b?!1:b)};k.Nb=h})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.dispose=function(){d.instance=null};d.prototype.getData=function(){if(k.Ea.pc.Ro||k.Ea.pc.pp||k.Ea.pc.Cx){var b=f.u.bf.ij.W_(k.B.C.lZ);return this.gR(b)}f.Va(k.Ea.na.J(k.Ea.na.mZ),k.Ea.na.J(k.Ea.na.FC))};d.prototype.aIa=function(b,a){if(k.Ea.pc.Ro||k.Ea.pc.pp||k.Ea.pc.Cx){var c=f.u.Na.U();if(void 0!=c.fa&&!c.fa.Hc){b=f.u.I.Zq.tb(b,c.I,!0);var e=f.u.local.xO.clone(c.qa);e.slice=
b;e.select();c=new f.u.bf.Jka;c.reset();c.qa=e;c.slice=b;c.load();b=this.gR(c);this.Uaa(a,b);c.reset()}}else f.Va(k.Ea.na.J(k.Ea.na.mZ),k.Ea.na.J(k.Ea.na.FC))};d.prototype.Uaa=function(b,a){a.UAa()?b({},a.errorDataObject.La()):b(a.La())};d.prototype.gR=function(b){var a=new h.OutputDataValueObject;if(void 0==b.slice)return a;a.slice=b.slice.La();a.meta={caption:k.B.C.Dm,vAmount:b.slice.ad().length,formats:[]};var c=0,e=0;if(b.mj&&!b.ob){var g="on"==k.B.C.Ef||"rows"==k.B.C.Ef?b.Fd-1:b.Fd;var l="on"==
k.B.C.Ef||"columns"==k.B.C.Ef?b.Ed-1:b.Ed;a.data=[];var m=[];var n=[];var p={};for(var t=0;t<b.measures.length;t++){var r=b.measures[t];a.meta["v"+t+"Name"]=r.caption;var v=k.Ta.U().Dh(r.uniqueName,r.$);a.meta.formats.push(v);r=b.Fa(m,n,r);p["v"+t]=r}a.data.push(p);for(v=0;v<l;v++)if(m=b.Lm(v),!f.v(m)&&0!=m.length){p={};c=Math.max(c,m.length);n=[];t=b.vb;for(r=0;r<m.length;r++){var z=r;var B=t.ea(z);var C=m[r];C=B.va(C);a.meta["r"+z+"Name"]=B.caption;var E=this.eS(C);p["r"+z]=E;p["r"+z+"_full"]=C.Xi}for(t=
0;t<b.measures.length;t++)r=b.measures[t],r=b.Fa(m,n,r),p["v"+t]=r;a.data.push(p)}for(var K=0;K<g;K++)if(n=b.nj(K),!f.v(n)&&0!=n.length){p={};m=[];e=Math.max(e,n.length);t=b.Cb;for(r=0;r<n.length;r++)E=r,B=t.ea(E),C=n[r],C=B.va(C),a.meta["c"+E+"Name"]=B.caption,B=this.eS(C),p["c"+E]=B,p["c"+E+"_full"]=C.Xi;for(t=0;t<b.measures.length;t++)r=b.measures[t],r=b.Fa(m,n,r),p["v"+t]=r;a.data.push(p)}var J=!1,aa=x.xf();if(0<b.Cb.length&&0<b.vb.length)for(v=0;v<l;v++){m=b.Lm(v);c=Math.max(c,m.length);for(K=
0;K<g;K++){if(1E4<x.xf()-aa){J=!0;break}n=b.nj(K);e=Math.max(e,n.length);p={};t=b.vb;for(r=0;r<m.length;r++)z=r,B=t.ea(z),C=m[r],C=B.va(C),E=this.eS(C),p["r"+z]=E,p["r"+z+"_full"]=C.Xi;t=b.Cb;for(r=0;r<n.length;r++)E=r,B=t.ea(E),C=n[r],C=B.va(C),B=this.eS(C),p["c"+E]=B,p["c"+z+"_full"]=C.Xi;for(t=0;t<b.measures.length;t++)r=b.measures[t],r=b.Fa(m,n,r),p["v"+t]=r;a.data.push(p)}if(J)break}}J?(a.data=[],a.meta={},a.errorDataObject=new h.Ika,a.errorDataObject.Ed=l,a.errorDataObject.Fd=g,a.errorDataObject.errorMessage=
k.A.j.q7+". "+k.A.j.p7):(a.meta.rAmount=c,a.meta.cAmount=e);return a};d.prototype.eS=function(b){return b.level.type==f.u.i.eb.fb||b.level.type==f.u.i.eb.Yb?b.ec:b.level.type==f.u.i.eb.Dc?b.ec:b.level.type==f.u.i.eb.hm?isNaN(parseFloat(b.caption))?b.caption:parseFloat(b.caption):b.caption};h.qO=d})(k.rC||(k.rC={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.errorMessage=null}function b(){this.slice={};this.meta={};this.data=[];this.errorDataObject=null}b.prototype.La=function(){var a={};a.meta=this.meta;a.data=this.data;return a};b.prototype.UAa=function(){return null!=this.errorDataObject};h.OutputDataValueObject=b;d.prototype.La=function(){var a={};a.errorMessage=this.errorMessage;a.dataH=this.Ed;a.dataW=this.Fd;return a};h.Ika=d})(k.rC||(k.rC={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.YV="Flexmonster Pivot Table";h.j=d})(k.A||(k.A={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.prototype.load=function(b,a,c){var e=this;this.Ib=a;this.Xa=c;this.xhr=new XMLHttpRequest;this.xhr.open("GET",b,!0);this.xhr.onerror=function(g){return e.Mb(g)};this.xhr.onreadystatechange=function(g){return e.lu(g)};this.xhr.send()};d.prototype.lu=function(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.vH():this.Xa())};d.prototype.vH=function(){this.xhr.response&&null==this.xhr.response.error?null!=this.Ib&&this.aj(this.xhr.response):
this.Xa&&this.Xa()};d.prototype.Mb=function(){null!=this.Xa&&this.Xa()};d.prototype.aj=function(b){try{var a=JSON.parse(b);this.Ib(h.wO.tb(a))}catch(c){console.error(c),this.Xa()}};d.prototype.close=function(){null!=this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())};h.oma=d})(k.A||(k.A={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){if(null!=d.instance)throw Error("Singleton");this.yt=new h.wO;this.yt.jD()}d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.dispose=function(){null!==this.Gy&&(this.Gy.close(),this.Gy=null);h.j.Vq=null;h.j.Zw=null;h.j.oA=null;h.j.pA=null;h.j.T7=null;d.instance.yt=null;d.instance.IS=null;d.instance.TG=null;d.instance=null};d.prototype.updateLabels=function(){h.j.y6=this.J("fieldsList/flatHierarchyBox");h.j.Rz=this.J("fieldsList/values");
h.j.Qz=this.J("fieldsList/addCalculatedMeasure");h.j.Nka=this.J("fieldsList/expandAll");h.j.x6=this.J("fieldsList/collapseAll");h.j.z6=this.J("fieldsList/formulasGroupName");h.j.Hu=this.J("fieldsList/allFields");h.j.$D=this.J("fieldsList/rows");h.j.YD=this.J("fieldsList/columns");h.j.Uq=this.J("fieldsList/filters");h.j.Rw=this.J("fieldsList/dropField");h.j.Sw=this.J("fieldsList/title");h.j.B6=this.J("fieldsList/subtitle");h.j.$N=this.J("fieldsList/search");h.j.A6=this.J("fieldsList/searchClose");
h.j.hI=this.J("fieldsList/close");h.j.ZD=this.J("fieldsList/open");h.j.Mka=this.J("fieldsList/actions/select");h.j.lW=this.J("fieldsList/actions/deselect");h.j.Lka=this.J("fieldsList/actions/expand");h.j.Kka=this.J("fieldsList/actions/collapse");h.j.u6=this.J("fieldsList/actions/move_to_rows");h.j.s6=this.J("fieldsList/actions/move_to_columns");h.j.t6=this.J("fieldsList/actions/move_to_filters");h.j.v6=this.J("fieldsList/actions/move_to_values");h.j.w6=this.J("fieldsList/actions/move_up");h.j.r6=
this.J("fieldsList/actions/move_down");h.j.mW=this.J("fieldsList/actions/edit_calculated_value");h.j.kW=this.J("fieldsList/actions/aggregation");h.j.kI=this.J("filter/all");h.j.qI=this.J("filter/multipleItems");h.j.Ju=this.J("filter/selectAll");h.j.rla=this.J("filter/selectAllResults");h.j.kla=this.J("filter/top");h.j.bla=this.J("filter/bottom");h.j.C6=this.J("filter/ascSort");h.j.D6=this.J("filter/ascSortTooltip");h.j.F6=this.J("filter/descSort");h.j.G6=this.J("filter/descSortTooltip");h.j.pW=this.J("filter/search");
h.j.Pka=this.J("filter/amountSelected");h.j.Oka=this.J("filter/amountFound");h.j.sla=this.J("filter/sort");h.j.Sz=this.J("filter/filterBy");h.j.hO=this.J("filter/labelsFilter");h.j.H6=this.J("filter/numbersFilter");h.j.J6=this.J("filter/valuesFilter");h.j.E6=this.J("filter/datesFilter");h.j.I6=this.J("filter/timeFilter");h.j.mI=this.J("filter/equal");h.j.oI=this.J("filter/notEqual");h.j.Zka=this.J("filter/before");h.j.$ka=this.J("filter/beforeEqual");h.j.Xka=this.J("filter/after");h.j.Yka=this.J("filter/afterEqual");
h.j.lI=this.J("filter/between");h.j.nI=this.J("filter/notBetween");h.j.fla=this.J("filter/last");h.j.dla=this.J("filter/current");h.j.gla=this.J("filter/next");h.j.ala=this.J("filter/begin");h.j.hla=this.J("filter/notBegin");h.j.ela=this.J("filter/end");h.j.jla=this.J("filter/notEnd");h.j.cla=this.J("filter/contain");h.j.ila=this.J("filter/notContain");h.j.dO=this.J("filter/greater");h.j.eO=this.J("filter/greaterEqual");h.j.fO=this.J("filter/less");h.j.gO=this.J("filter/lessEqual");h.j.zla=this.J("filter/seconds");
h.j.xla=this.J("filter/minutes");h.j.vla=this.J("filter/hours");h.j.tla=this.J("filter/days");h.j.Ala=this.J("filter/secondsFull");h.j.yla=this.J("filter/minutesFull");h.j.wla=this.J("filter/hoursFull");h.j.ula=this.J("filter/daysFull");h.j.mla=this.J("filter/day");h.j.pla=this.J("filter/week");h.j.nla=this.J("filter/month");h.j.ola=this.J("filter/quarter");h.j.qla=this.J("filter/year");h.j.Qka=this.J("filter/clearDateFilter");h.j.Rka=this.J("filter/clearLabelFilter");h.j.Ska=this.J("filter/clearNumberFilter");
h.j.Tka=this.J("filter/clearTimeFilter");h.j.Uka=this.J("filter/clearValueFilter");h.j.lla=this.J("filter/noAvailableValues");h.j.cO=this.J("filter/condition");h.j.Tw=this.J("filter/conditionValue");h.j.Vka=this.J("filter/conditionMeasure");h.j.Wka=this.J("filter/conditionTimeInterval");h.j.mka=this.J("drillThrough/title");h.j.lka=this.J("drillThrough/row");h.j.kka=this.J("drillThrough/column");h.j.nka=this.J("drillThrough/value");h.j.RV=this.J("calculatedView/title");h.j.r5=this.J("calculatedView/measureBox");
h.j.QV=this.J("calculatedView/measureName");h.j.JN=this.J("calculatedView/formula");h.j.q5=this.J("calculatedView/formulaPrompt");h.j.p5=this.J("calculatedView/calculateIndividualValues");h.j.t5=this.J("calculatedView/removeValue");h.j.Zia=this.J("calculatedView/removeValueTitle");h.j.Yia=this.J("calculatedView/removeValueMessage");h.j.Xia=this.J("calculatedView/allValues");h.j.Wia=this.J("calculatedView/actions/add_to_formula");h.j.xKa=this.J("calculatedView/func/add");h.j.OKa=this.J("calculatedView/func/subtract");
h.j.IKa=this.J("calculatedView/func/multiply");h.j.zKa=this.J("calculatedView/func/divide");h.j.LKa=this.J("calculatedView/func/power");h.j.AKa=this.J("calculatedView/func/equal");h.j.EKa=this.J("calculatedView/func/less");h.j.FKa=this.J("calculatedView/func/less_equal");h.j.BKa=this.J("calculatedView/func/greater");h.j.CKa=this.J("calculatedView/func/greater_equal");h.j.NKa=this.J("calculatedView/func/strict_equal");h.j.JKa=this.J("calculatedView/func/not_equal");h.j.KKa=this.J("calculatedView/func/or");
h.j.yKa=this.J("calculatedView/func/and");h.j.DKa=this.J("calculatedView/func/if");h.j.wKa=this.J("calculatedView/func/abs");h.j.MKa=this.J("calculatedView/func/round");h.j.HKa=this.J("calculatedView/func/min");h.j.GKa=this.J("calculatedView/func/max");h.j.vW=this.J("grid/total");h.j.Pla=this.J("grid/totals");h.j.uW=this.J("grid/grandTotal");h.j.Mk=this.J("grid/blankMember");h.j.XV=this.J("grid/dateNullCaption");h.j.cn=this.J("grid/dateInvalidCaption");h.j.Gka=this.J("grid/reportInformation");h.j.dja=
this.J("charts/showLegend");h.j.bja=this.J("charts/hideLegend");h.j.cja=this.J("charts/selectMeasures");h.j.w5=this.J("charts/noDataTitle");h.j.eja=this.J("charts/noMeasuresTitle");h.j.fja=this.J("charts/bigDataSetWarning");h.j.hP=this.J("tooltips/fieldList");h.j.m8=this.J("tooltips/selectAggregation");h.j.k8=this.J("tooltips/editCalculatedMeasure");h.j.gpa=this.J("tooltips/row");h.j.fpa=this.J("tooltips/headerResize");h.j.l8=this.J("tooltips/headerFit");h.j.mA=this.J("tooltips/filterIcon");h.j.mX=
this.J("tooltips/filtered");h.j.gP=this.J("tooltips/expandIcon");h.j.fP=this.J("tooltips/collapseIcon");h.j.dpa=this.J("tooltips/drillDown");h.j.epa=this.J("tooltips/drillUp");h.j.jpa=this.J("tooltips/sortIcon");h.j.ipa=this.J("tooltips/sortedDescIcon");h.j.hpa=this.J("tooltips/sortedAscIcon");h.j.kpa=this.J("tooltips/unsortedIcon");h.j.cpa=this.J("tooltips/close");h.j.f8=this.J("aggregations/sum/caption");h.j.WI=this.J("aggregations/sum/totalCaption");h.j.Noa=this.J("aggregations/sum/grandTotalCaption");
h.j.I5=this.J("aggregations/count/caption");h.j.LN=this.J("aggregations/count/totalCaption");h.j.Ija=this.J("aggregations/count/grandTotalCaption");h.j.gka=this.J("aggregations/distinctCount/caption");h.j.SN=this.J("aggregations/distinctCount/totalCaption");h.j.hka=this.J("aggregations/distinctCount/grandTotalCaption");h.j.poa=this.J("aggregations/runningTotalsOfColumn/caption");h.j.RO=this.J("aggregations/runningTotalsOfColumn/totalCaption");h.j.qoa=this.J("aggregations/runningTotalsOfColumn/grandTotalCaption");
h.j.roa=this.J("aggregations/runningTotalsOfRow/caption");h.j.TO=this.J("aggregations/runningTotalsOfRow/totalCaption");h.j.soa=this.J("aggregations/runningTotalsOfRow/grandTotalCaption");h.j.cka=this.J("aggregations/differenceOfColumn/caption");h.j.bI=this.J("aggregations/differenceOfColumn/totalCaption");h.j.dka=this.J("aggregations/differenceOfColumn/grandTotalCaption");h.j.eka=this.J("aggregations/differenceOfRow/caption");h.j.cI=this.J("aggregations/differenceOfRow/totalCaption");h.j.fka=this.J("aggregations/differenceOfRow/grandTotalCaption");
h.j.Sna=this.J("aggregations/percentDifferenceOfColumn/caption");h.j.KI=this.J("aggregations/percentDifferenceOfColumn/totalCaption");h.j.Tna=this.J("aggregations/percentDifferenceOfColumn/grandTotalCaption");h.j.Una=this.J("aggregations/percentDifferenceOfRow/caption");h.j.LI=this.J("aggregations/percentDifferenceOfRow/totalCaption");h.j.Vna=this.J("aggregations/percentDifferenceOfRow/grandTotalCaption");h.j.f5=this.J("aggregations/average/caption");h.j.FN=this.J("aggregations/average/totalCaption");
h.j.Mia=this.J("aggregations/average/grandTotalCaption");h.j.Rma=this.J("aggregations/median/caption");h.j.HW=this.J("aggregations/median/totalCaption");h.j.Sma=this.J("aggregations/median/grandTotalCaption");h.j.Ioa=this.J("aggregations/stdevp/caption");h.j.ZO=this.J("aggregations/stdevp/totalCaption");h.j.Joa=this.J("aggregations/stdevp/grandTotalCaption");h.j.Koa=this.J("aggregations/stdevs/caption");h.j.$O=this.J("aggregations/stdevs/totalCaption");h.j.Loa=this.J("aggregations/stdevs/grandTotalCaption");
h.j.coa=this.J("aggregations/product/caption");h.j.QO=this.J("aggregations/product/totalCaption");h.j.doa=this.J("aggregations/product/grandTotalCaption");h.j.sna=this.J("aggregations/min/caption");h.j.IO=this.J("aggregations/min/totalCaption");h.j.tna=this.J("aggregations/min/grandTotalCaption");h.j.wma=this.J("aggregations/max/caption");h.j.zO=this.J("aggregations/max/totalCaption");h.j.xma=this.J("aggregations/max/grandTotalCaption");h.j.Pna=this.J("aggregations/percent/caption");h.j.QI=this.J("aggregations/percent/totalCaption");
h.j.Wna=this.J("aggregations/percent/grandTotalCaption");h.j.Qna=this.J("aggregations/percentOfColumn/caption");h.j.JI=this.J("aggregations/percentOfColumn/totalCaption");h.j.Rna=this.J("aggregations/percentOfColumn/grandTotalCaption");h.j.aoa=this.J("aggregations/percentOfRow/caption");h.j.OI=this.J("aggregations/percentOfRow/totalCaption");h.j.boa=this.J("aggregations/percentOfRow/grandTotalCaption");h.j.Xna=this.J("aggregations/percentOfParentColumnTotal/caption");h.j.MI=this.J("aggregations/percentOfParentColumnTotal/totalCaption");
h.j.Yna=this.J("aggregations/percentOfParentColumnTotal/grandTotalCaption");h.j.Zna=this.J("aggregations/percentOfParentRowTotal/caption");h.j.NI=this.J("aggregations/percentOfParentRowTotal/totalCaption");h.j.$na=this.J("aggregations/percentOfParentRowTotal/grandTotalCaption");h.j.Vla=this.J("aggregations/index/caption");h.j.wI=this.J("aggregations/index/totalCaption");h.j.Wla=this.J("aggregations/index/grandTotalCaption");h.j.Dna=this.J("aggregations/none/caption");h.j.ya=this.J("messages/error");
h.j.t8=this.J("messages/warning");h.j.uO=this.J("messages/limitation");h.j.Sia=this.J("messages/browse");h.j.fm=this.J("messages/confirmation");h.j.ana=this.J("messages/api/incorrectUrl");h.j.$ma=this.J("messages/api/errorZeroStatus");h.j.Vma=this.J("messages/api/error404Status");h.j.Uma=this.J("messages/api/error400Status");h.j.Wma=this.J("messages/api/error500Status");h.j.o7=this.J("messages/api/selectRequestError");h.j.Xma=this.J("messages/api/selectDrillThroughError");h.j.vMa=this.J("messages/api/clientOutdated");
h.j.Zma=this.J("messages/api/serverOutdated");h.j.Yma=this.J("messages/api/fieldsRequestError");h.j.n7=this.J("messages/api/membersRequestError");h.j.IW=this.J("messages/api/noGridChartsMode");h.j.iE=this.J("messages/loading");h.j.Hf=this.J("messages/loadingData");h.j.NW=this.J("messages/loadingMapping");h.j.zs=this.J("messages/waiting");h.j.OW=this.J("messages/progress");h.j.jE=this.J("messages/progressKnown");h.j.Al=this.J("messages/progressUnknown");h.j.mna=this.J("messages/sortingMembers");h.j.BO=
this.J("messages/analyzing");h.j.CO=this.J("messages/analyzingProgress");h.j.m7=this.J("messages/analyzingRecords");h.j.Tma=this.J("messages/analyzingRecordsWithAmount");h.j.z7=this.J("messages/saving");h.j.DI=this.J("messages/loadingDimensions");h.j.LW=this.J("messages/loadingHierarchies");h.j.FO=this.J("messages/loadingMeasures");h.j.w7=this.J("messages/loadingKPIs");h.j.gn=this.J("messages/loadingMembers");h.j.MW=this.J("messages/loadingLevels");h.j.x7=this.J("messages/loadingProperties");h.j.Yw=
this.J("messages/exportProgress");h.j.ys=this.J("messages/exportError");h.j.kE=this.J("messages/pleaseWait");h.j.y7=this.J("messages/pagesWereGenerated");h.j.A7=this.J("messages/uploading");h.j.DO=this.J("messages/cantSaveFile");h.j.JW=this.J("messages/cantSaveFileNoDetails");h.j.kna=this.J("messages/saveReportToFile");h.j.jna=this.J("messages/saveReportForSharing");h.j.s7=this.J("messages/cantSaveReportForSharing");h.j.r7=this.J("messages/cantLoadSharedReport");h.j.hE=this.J("messages/invalidDataSource");
h.j.cna=this.J("messages/dataStreamError");h.j.EI=this.J("messages/unableToOpenFile");h.j.EO=this.J("messages/errorTextMessage");h.j.hna=this.J("messages/inappropriateFileFormat");h.j.CI=this.J("messages/invalidJSONdata");h.j.pna=this.J("messages/wrongFormulaEmpty");h.j.B7=this.J("messages/wrongFormulaFormat");h.j.rna=this.J("messages/wrongUniqueName");h.j.ona=this.J("messages/wrongFormulaAggregation");h.j.qna=this.J("messages/wrongFormulaRecursive");h.j.ena=this.J("messages/excelCsvChartsExportError");
h.j.Nu=this.J("messages/noDataAvailable");h.j.KW=this.J("messages/dataWasUpdated");h.j.bna=this.J("messages/cantConnectToAccelerator");h.j.ina=this.J("messages/ocsvIncompatible");h.j.GO=this.J("messages/unknownError");h.j.u7=this.J("messages/invalidReportFormat");h.j.v7=this.J("messages/invalidReportFormat2");h.j.t7=this.J("messages/csvHeaderParsingError");h.j.nna=this.J("messages/tooManyColumnsInClassicMode");h.j.p7=this.J("messages/cantExpand");h.j.q7=this.J("messages/cantExpandTitle");h.j.lna=
this.J("messages/selectFile");h.j.gna=this.J("messages/flatTableIsNotSupported");h.j.fna=this.J("messages/exportFontLoadingError");h.j.dna=this.J("messages/elastic/errorConnection");h.j.Ww=this.J("kpis/kpis");h.j.a7=this.J("kpis/value");h.j.W6=this.J("kpis/goal");h.j.Z6=this.J("kpis/trend");h.j.Y6=this.J("kpis/status");h.j.OV=this.J("buttons/ok");h.j.l5=this.J("buttons/copy");h.j.Ow=this.J("buttons/apply");h.j.Jk=this.J("buttons/cancel");h.j.n5=this.J("buttons/save");h.j.Tia=this.J("buttons/select");
h.j.MD=this.J("buttons/yes");h.j.m5=this.J("buttons/no");h.j.D5=this.J("contextMenu/clearSorting");h.j.kja=this.J("contextMenu/collapse");h.j.E5=this.J("contextMenu/drillThrough");h.j.pja=this.J("contextMenu/expand");h.j.nja=this.J("contextMenu/drillUp");h.j.mja=this.J("contextMenu/drillDown");h.j.G5=this.J("contextMenu/openFilter");h.j.qja=this.J("contextMenu/filterBy");h.j.H5=this.J("contextMenu/removeField");h.j.zja=this.J("contextMenu/removeMeasure");h.j.Cja=this.J("contextMenu/sortColumnAsc");
h.j.Dja=this.J("contextMenu/sortColumnDesc");h.j.Eja=this.J("contextMenu/sortRowAsc");h.j.Fja=this.J("contextMenu/sortRowDesc");h.j.C5=this.J("contextMenu/aggregation");h.j.yja=this.J("contextMenu/properties");h.j.oja=this.J("contextMenu/editFormula");h.j.wja=this.J("contextMenu/moveToRows");h.j.uja=this.J("contextMenu/moveToColumns");h.j.vja=this.J("contextMenu/moveToReportFilters");h.j.xja=this.J("contextMenu/numberFormatting");h.j.lja=this.J("contextMenu/conditionalFormatting");h.j.Aja=this.J("contextMenu/showProperty");
h.j.sja=this.J("contextMenu/hideProperty");h.j.rja=this.J("contextMenu/groupMembers");h.j.Gja=this.J("contextMenu/ungroupMembers");h.j.Bja=this.J("contextMenu/showSubtotals");h.j.tja=this.J("contextMenu/hideSubtotals");h.j.Qk=this.J("date/year");h.j.Cs=this.J("date/quarter");h.j.Hg=this.J("date/month");h.j.hm=this.J("date/day");h.j.T7=[this.J("quarters/q1"),this.J("quarters/q2"),this.J("quarters/q3"),this.J("quarters/q4")];h.j.Vq=[this.J("months/january"),this.J("months/february"),this.J("months/march"),
this.J("months/april"),this.J("months/may"),this.J("months/june"),this.J("months/july"),this.J("months/august"),this.J("months/september"),this.J("months/october"),this.J("months/november"),this.J("months/december")];h.j.Zw=[this.J("monthsShort/january"),this.J("monthsShort/february"),this.J("monthsShort/march"),this.J("monthsShort/april"),this.J("monthsShort/may"),this.J("monthsShort/june"),this.J("monthsShort/july"),this.J("monthsShort/august"),this.J("monthsShort/september"),this.J("monthsShort/october"),
this.J("monthsShort/november"),this.J("monthsShort/december")];h.j.oA=[this.J("weekdays/first"),this.J("weekdays/second"),this.J("weekdays/third"),this.J("weekdays/fourth"),this.J("weekdays/fifth"),this.J("weekdays/sixth"),this.J("weekdays/seventh")];h.j.pA=[this.J("weekdaysShort/first"),this.J("weekdaysShort/second"),this.J("weekdaysShort/third"),this.J("weekdaysShort/fourth"),this.J("weekdaysShort/fifth"),this.J("weekdaysShort/sixth"),this.J("weekdaysShort/seventh")];x.gh.nIa(h.j.oA,h.j.pA);x.gh.zIa(h.j.Vq,
h.j.Zw)};d.prototype.J=function(b){if(!f.v(this.TG)){var a=this.TG.J(b);if(!f.v(a))return a}return f.v(this.IS)||(a=this.IS.J(b),f.v(a))?this.yt.J(b):a};d.prototype.reset=function(){this.TG=null;this.updateLabels()};d.prototype.load=function(b,a,c){var e=this;c=void 0===c?!1:c;"string"!==typeof b||f.ha(b)?(b instanceof Object?this.dfa(h.wO.tb(b),c):this.reset(),null!=a&&a(!0)):(null!==d.Gy&&(d.Gy.close(),d.Gy=null),d.Gy=new h.oma,d.Gy.load(x.hx.AG(b,!0),function(g){e.dfa(g,c);null!=a&&a(!0)},function(){null!=
a&&a(!1)}))};d.prototype.dfa=function(b,a){(void 0===a?0:a)?this.IS=b:this.TG=b;this.updateLabels()};d.prototype.fca=function(){var b=new h.wO;b.jD();b.merge(this.IS);this.TG&&b.merge(this.TG);return b.La().toolbar};d.Gy=null;h.Xz=d})(k.A||(k.A={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.labels={}}d.prototype.J=function(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};d.prototype.Za=function(b,a){var c=this.labels;b=b.split("/");for(var e=0;e<b.length-1;e++)c=c[b[e]];c[b[b.length-1]]=a};d.prototype.jD=function(){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.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.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.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.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.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.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["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"};d.prototype.merge=function(b){f.v(b)||(this.Qea(b.labels,this.labels),this.validate())};d.prototype.La=function(){return this.labels};d.tb=function(b){var a=new d;a.labels=b;return a};d.prototype.Qea=function(b,a){if(!f.v(b)&&!f.v(a)&&b instanceof Object)for(var c in b){var e=b[c];f.v(e)||"function"!==typeof e&&("string"===typeof e?a[c]=e:e instanceof
Object&&this.Qea(e,a[c]))}};d.prototype.validate=function(){f.v(this.labels)||(f.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),f.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),f.v(this.labels.toolbar.charts_bar)||(this.labels.toolbar.charts_column=this.labels.toolbar.charts_bar,
delete this.labels.toolbar.charts_bar),f.v(this.labels.toolbar.add_condition)||(f.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.wO=d})(k.A||(k.A={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(c,e){e=void 0===e?"":e;var g=y.da.call(this,a.Qu)||this;g.errorMessage="";g.message=c;g.errorMessage=e;return g}function b(c){var e=y.da.call(this,a.kn)||this;e.bb=c;return e}function a(){}a.kn="load";a.TI="loading_report";a.Qu="fail";a.Yq="cancel";h.lh=a;u(b,y.da);h.Y7=b;u(d,y.da);h.VO=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.JSON="json";b.aa="xml";b.Fva="report.";b.SU=null;return b}u(d,y.Fc);d.prototype.open=function(){var b=this;this.uq=new h.tma;this.uq.N(h.lh.TI,function(){return b.Q2()});this.uq.N(h.lh.kn,function(a){return b.OC(a)});this.uq.N(h.lh.Qu,function(a){return b.rM(a)});this.uq.N(h.lh.Yq,function(){return b.qM()});this.uq.load()};d.prototype.load=function(b,a){var c=this;f.za(!0,k.A.j.iE);this.vu=new h.xpa;this.vu.N(h.lh.kn,
function(e){return c.OC(e)});this.vu.N(h.lh.Qu,function(e){return c.rM(e)});this.vu.load(x.hx.Ura(b),a)};d.prototype.cancel=function(){this.uq&&(this.uq.Od(h.lh.kn),this.uq.Od(h.lh.Qu),this.uq=null);this.vu&&(this.vu.Od(h.lh.kn),this.vu.Od(h.lh.Qu),this.vu=null);this.Od(h.lh.kn);this.Od(h.lh.Qu);this.Od(h.lh.TI);this.Od(h.lh.Yq)};d.prototype.OC=function(b){this.Da(new h.Y7(b.bb))};d.prototype.rM=function(b){f.Va(b.message+b.errorMessage,k.A.j.ya,f.rb.ya);this.Wa(h.lh.Qu)};d.prototype.Q2=function(){this.Wa(h.lh.TI)};
d.prototype.qM=function(){this.Wa(h.lh.Yq)};d.prototype.save=function(b,a,c,e,g,l){var m=this;this.SU=c;c=!1;var n="string"==typeof b?b:null;a=void 0===a?null:a;var p=e,t=this.JSON;e=void 0===g?!1:g;var r=null;b instanceof Object&&(b.hasOwnProperty("filename")&&(n=b.filename),b.hasOwnProperty("destination")&&(a=b.destination),b.hasOwnProperty("url")&&(p=b.url),b.hasOwnProperty("reportType")&&(t=b.reportType),b.hasOwnProperty("embedData")&&(e=b.embedData),b.hasOwnProperty("requestHeaders")&&(r=b.requestHeaders));
if(null==n||""==n)n=this.Fva,n=t==this.aa?n+this.aa:n+this.JSON;l.connectionInfo.Ba!=f.u.i.oa.xh&&l.connectionInfo.Ba!=f.u.i.oa.Pp||!(l.connectionInfo instanceof f.u.local.LocalConnectionInfo&&l.connectionInfo.browseForFile||l.connectionInfo instanceof f.u.local.csv.OCSVConnectionInfo&&l.connectionInfo.embedded||e)||l.options.R("gridType")==f.K.X.ie.ih||(b=new f.u.local.json.JSONConnectionInfo,l.connectionInfo=b,c=!0);a=null==a?h.lo.aO:a.toLowerCase();switch(a){case h.lo.eX:c?(new f.u.local.json.BW).getData(function(v){l.connectionInfo.data=
v;m.UU(p,n,l,t,r)}):this.UU(p,n,l,t,r);break;case h.lo.eA:c?(new f.u.local.json.BW).getData(function(v){l.connectionInfo.data=v;m.FB(l.La())}):this.FB(l.La());break;default:c?(new f.u.local.json.BW).getData(function(v){l.connectionInfo.data=v;m.JM(n,l,t)}):this.JM(n,l,t)}};d.prototype.FB=function(b,a){null!==this.SU&&this.SU(void 0===b?null:b,void 0===a?null:a)};d.prototype.Naa=function(b,a,c){c=void 0===c?!1:c;switch(b){case this.JSON:b=JSON.stringify(a.La(),null,4);break;case this.aa:b=D.aa.Cc(a.co(),
!0);break;default:b=JSON.stringify(a.La(),null,4)}c&&(b=encodeURIComponent(b));return b};d.prototype.JM=function(b,a,c){var e=[this.Naa(c,a)];try{var g=this;f.Va(k.A.j.kna,k.A.j.fm,f.rb.fm,[k.A.j.n5,k.A.j.Jk],[function(){D.uga(new Blob(e,{type:"text/js;charset=utf-8"}),b);g.FB({report:a.La()})},function(){g.FB(null,{message:k.A.j.JW})}])}catch(l){f.Va(k.A.j.JW,k.A.j.ya,f.rb.ya),this.FB(null,{message:k.A.j.JW})}};d.prototype.UU=function(b,a,c,e,g){var l=this;f.ha(b)&&f.Va("Report cannot be saved. Save report url is empty.",
k.A.j.t8,f.rb.ya);var m=new D.wpa;m.data.name=a;m.data.report=this.Naa(e,c,!0);m.data.type=e;a=new D.Qi;a.data=m.toString();a.contentType=D.Iz.Gia;a.Dq=D.Fs.Pu;a.N(y.da.Jc,function(n){return l.oFa(n,c.La())});a.N(y.da.ya,function(n){return l.Mb(n)});a.vh(g);this.E4=a;a.load(b);f.za(!0,k.A.j.A7)};d.Ofa=function(b,a){a=void 0===a?null:a;var 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==
y.da.ya&&(c.message=k.A.j.DO);b.type!=y.da.ya&&null!=a&&(c.report=a);return c};d.prototype.oFa=function(b,a){f.za(!1);this.FB(d.Ofa(b,a))};d.prototype.Mb=function(b){f.za(!1);b=d.Ofa(b);var a=b.hasOwnProperty("response")?k.Nb.validate(b.response):"";a=700<a.length?a.substr(0,700):a;f.Va(f.O.bind(b.message,a),k.A.j.ya,f.rb.ya);this.FB(null,b)};d.prototype.dispose=function(){this.SU=null;this.uq&&this.uq.dispose();this.vu&&this.vu.dispose();this.E4&&this.E4.dispose();this.E4=this.vu=this.uq=null};h.voa=
d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(){this.withDefaults=!1;this.connectionInfo=new f.u.I.Pz;this.slice=new h.SliceValueObject;this.options=new k.B.Qp;this.formats=[];this.conditions=[];this.customFields=[];this.Fw=new h.Wu;this.labels={};this.localization=null;this.creationDate=this.version=""}b.tb=function(a){if(null==a)return null;a=b.wl(a);var c=new b;c.connectionInfo=f.u.I.ConnectionInfo.tb(a.connectionInfo?a.connectionInfo:a);c.options=k.B.Qp.tb(a.options?a.options:
a);c.slice=h.SliceValueObject.tb(a.slice?a.slice:a,c.connectionInfo,c.options.R("gridType")==f.K.X.ie.ih);null!=a.formats&&a.formats.length&&(c.formats=a.formats);null!=a.conditions&&a.conditions.length&&(c.conditions=a.conditions);null!=a.customFields&&(c.customFields=a.customFields);c.Fw=h.Wu.tb(a.tableSizes);null!=a.localization&&(c.localization=a.localization);null!=c.localization&&null!=c.localization.toolbar&&(null!=c.localization.toolbar.charts_bar_stack&&(c.localization.toolbar.charts_stacked_column=
c.localization.toolbar.charts_bar_stack,delete c.localization.toolbar.charts_bar_stack),null!=c.localization.toolbar.charts_bar_line&&(c.localization.toolbar.charts_column_line=c.localization.toolbar.charts_bar_line,delete c.localization.toolbar.charts_bar_line),null!=c.localization.toolbar.charts_bar&&(c.localization.toolbar.charts_column=c.localization.toolbar.charts_bar,delete c.localization.toolbar.charts_bar));null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<
a.creationDate.length&&(c.creationDate=a.creationDate);return c};b.Qj=function(a){var c=new b;if(null==a)return c;c.connectionInfo=f.u.I.ConnectionInfo.Qj(a);c.slice=h.SliceValueObject.Qj(a);c.options=k.B.Qp.Qj(a);c.formats=b.oxa(a.find("format"));c.conditions=b.zua(a.find("conditions condition"));c.Fw=h.Wu.Qj(a);c.customFields=b.pva(a.find("customFields").children());c.labels=b.LBa(a.find("labels"));c.localization=b.hCa(a.find("params"));return c};b.pva=function(a){for(var c=[],e=0;e<a.length;e++){var g=
{};g.name=a[e].attr("name");g.value=a[e].attr("value");c.push(g)}return c};b.oxa=function(a){for(var c=[],e=0;e<a.length;e++){var g=b.lxa(a[e]);c.push(g)}return c};b.lxa=function(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=f.O.Rc(a.find("param[name=isPercent]").text()));
return c};b.LBa=function(a){var c={};if(0<a.length){for(var e=a.find("hierarchies").children(),g=0;g<e.length;g++){var l=e[g].attr("name");c[l]=e[g].text()}a=a.find("measures").children();for(g=0;g<a.length;g++)l=a[g].attr("name"),c[l]=a[g].text()}return c};b.zua=function(a){for(var c=[],e=0;e<a.length;e++){var g=b.yua(a[e]);c.push(g)}return c};b.yua=function(a){var c={};c.id=f.O.aL();for(var e=0;e<a.childNodes.length;e++)if(a.childNodes[e]instanceof CDATASection){c.formula=a.childNodes[e].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=f.O.Rc(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};b.hCa=function(a){if(0!=
a.find("param[name=localization]").length)return a.find("param[name=localization]").text()};b.prototype.iua=function(){for(var a=D.aa.create("<labels/>"),c=f.u.Na.U().I,e,g=D.aa.create("<hierarchies/>"),l=c.rc(),m=0;m<l.length;m++){var n=l.ea(m);n.I0&&(e=D.aa.create("<label/>").text(n.label),e.attr("name",n.uniqueName),g.append(e))}0==g.ob()&&a.append(g);g=D.aa.create("<measures/>");c=c.measures;for(m=0;m<c.length;m++)l=c.ea(m),l.I0&&(e=D.aa.create("<label/>").text(l.label),e.attr("name",l.uniqueName),
g.append(e));0==g.ob()&&a.append(g);return a};b.prototype.Qta=function(){for(var a=D.aa.create("<conditions/>"),c=0;c<this.conditions.length;c++){var e=this.conditions[c],g=D.aa.create("<condition/>");g.append(D.aa.Bh(e.formula));-1<e.row&&g.attr("row",e.row);-1<e.column&&g.attr("column",e.column);-1<e.isTotal&&g.attr("isTotal",1==e.isTotal?"true":"false");e.measure&&0<e.measure.length&&g.attr("measure",e.measure);e.hierarchy&&0<e.hierarchy.length&&g.attr("hierarchy",e.hierarchy);e.member&&0<e.member.length&&
g.attr("member",e.member);if(e.format&&!x.Mc.og(e.format)){var l=D.aa.create("<trueStyle/>");l.append(D.aa.Bh(JSON.stringify(e.format)));g.append(l)}a.append(g)}return a};b.prototype.cua=function(a){var c=D.aa.create("<format/>");c.attr("name",a.name);a.hasOwnProperty("decimalPlaces")&&c.append(D.aa.create("<param/>").attr("name","decimalPlaces").text(a.decimalPlaces));a.hasOwnProperty("maxDecimalPlaces")&&c.append(D.aa.create("<param/>").attr("name","maxDecimalPlaces").text(a.maxDecimalPlaces));
a.hasOwnProperty("maxSymbols")&&c.append(D.aa.create("<param/>").attr("name","maxSymbols").text(a.maxSymbols));a.hasOwnProperty("currencySymbolAlign")&&c.append(D.aa.create("<param/>").attr("name","currencySymbolAlign").text(a.currencySymbolAlign));a.hasOwnProperty("thousandsSeparator")&&c.append(D.aa.create("<param/>").attr("name","thousandsSeparator").append(D.aa.Bh(a.thousandsSeparator)));a.hasOwnProperty("decimalSeparator")&&c.append(D.aa.create("<param/>").attr("name","decimalSeparator").append(D.aa.Bh(a.decimalSeparator)));
a.hasOwnProperty("currencySymbol")&&c.append(D.aa.create("<param/>").attr("name","currencySymbol").append(D.aa.Bh(a.currencySymbol)));a.hasOwnProperty("nullValue")&&c.append(D.aa.create("<param/>").attr("name","nullValue").append(D.aa.Bh(a.nullValue)));a.hasOwnProperty("infinityValue")&&c.append(D.aa.create("<param/>").attr("name","infinityValue").append(D.aa.Bh(a.infinityValue)));a.hasOwnProperty("divideByZeroValue")&&c.append(D.aa.create("<param/>").attr("name","divideByZeroValue").append(D.aa.Bh(a.divideByZeroValue)));
a.hasOwnProperty("textAlign")&&c.append(D.aa.create("<param/>").attr("name","textAlign").text(a.textAlign));a.hasOwnProperty("isPercent")&&c.append(D.aa.create("<param/>").attr("name","isPercent").text(a.isPercent));return c};b.prototype.co=function(){var a=D.aa.create("<config/>"),c=this.connectionInfo.co(this.withDefaults);0==c.ob()&&a.append(c);c=this.slice.co(this.withDefaults);0==c.ob()&&a.append(c);c=this.Fw.co();0==c.ob()&&a.append(c);c=this.iua();0==c.ob()&&a.append(c);c=this.options.co();
"string"==typeof this.localization&&c.append(D.aa.create("<param/>").attr("name","localization").append(D.aa.Bh(this.localization)));a.append(c);c=this.Qta();0==c.ob()&&a.append(c);if(null!=this.formats){c=!k.B.C.L3&&20<this.formats.length;for(var e=0;e<this.formats.length;e++){var g=this.formats[e];(""==g.name||this.slice.Jm.Bb(g.name)&&(!c||this.slice.Jm.getItem(g.name)))&&a.append(this.cua(g))}}return a};b.prototype.La=function(){var a={},c=this.connectionInfo.La(this.withDefaults);x.Mc.og(c)||
(a.dataSource=c);c=this.slice.La(this.withDefaults,this.connectionInfo.mapping);x.Mc.og(c)||(a.slice=c);c=this.options.La();x.Mc.og(c)||(a.options=c);c=this.Pta();0<c.length&&(a.conditions=c);if(null!=this.formats&&0!=this.formats.length){c=[];for(var e=!k.B.C.L3&&20<this.formats.length,g=0;g<this.formats.length;g++){var l=this.formats[g];(""==l.name||this.slice.Jm.Bb(l.name)&&(!e||this.slice.Jm.getItem(l.name)))&&c.push(l)}a.formats=c}c=this.Fw.La(this.slice);x.Mc.og(c)||(a.tableSizes=c);null!=this.customFields&&
0!=this.customFields.length&&(a.customFields=this.customFields);null!=this.localization&&""!=this.localization&&(a.localization=this.localization);null!=this.version&&0<this.version.length&&(a.version=this.version);null!=this.creationDate&&0<this.creationDate.length&&(a.creationDate=this.creationDate);return a};b.prototype.Pta=function(){for(var a=[],c=0;c<this.conditions.length;c++){var e=this.conditions[c],g={};g.formula=e.formula;-1<e.row&&(g.row=e.row);-1<e.column&&(g.column=e.column);-1<e.isTotal&&
(g.isTotal=1==e.isTotal?!0:!1);e.measure&&0<e.measure.length&&(g.measure=e.measure);e.aggregation&&0<e.aggregation.length&&"none"!==e.aggregation&&(g.aggregation=e.aggregation);e.hierarchy&&0<e.hierarchy.length&&(g.hierarchy=e.hierarchy);e.member&&0<e.member.length&&(g.member=e.member);e.format&&!x.Mc.og(e.format)&&(g.format=e.format);a.push(g)}return a};b.wl=function(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=f.u.I.ConnectionInfo.wl(a.connectionInfo?a.connectionInfo:a);c.slice=h.SliceValueObject.wl(a.slice?a.slice:a);c.options=k.B.Qp.wl(a.options?a.options:a);c.tableSizes=h.Wu.wl(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};b.prototype.merge=function(a){if(f.v(a))return this;a=b.wl(a);var c=b.wl(this),e;for(e in a)a.hasOwnProperty(e)&&("connectionInfo"==e?f.u.I.ConnectionInfo.tb(a.connectionInfo).ob||(c[e]=a[e]):"options"==e?(this.options.IC(a[e]),
c[e]=k.B.Qp.wl(this.options)):c[e]=a[e]);return b.tb(c)};q.Object.defineProperties(b.prototype,{ob:{configurable:!0,enumerable:!0,get:function(){return f.v(this.connectionInfo)||this.connectionInfo.ob}}});h.ReportValueObject=b;d.customFields=[];h.XH=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return y.Fc.apply(this,arguments)||this}u(d,y.Fc);d.prototype.Taa=function(b){b?this.Da(new h.Y7(b)):this.Da(new h.VO(k.A.j.u7))};d.prototype.zfa=function(b){try{var a=-1;if(-1<(a=b.indexOf("</config>"))){var c=D.aa.create(b.substring(0,a+9));return c?h.ReportValueObject.Qj(c):null}a=b.indexOf("/**----**");return JSON.parse(-1<a?b.substring(0,a):b)}catch(e){return console.error(e),null}};d.prototype.ES=function(b){var a=new f.Sq(new ArrayBuffer(0),
0,f.Sq.RH);a.jKa(b);return a.byteLength};h.WO=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){this.type=f.u.i.kb.NONE;this.Ida=!1;this.Mf=[];this.lk=[];this.IA=[];this.l9=this.HE=this.QE=!1;this.xc=b}d.prototype.clear=function(){this.pB();this.yta()};d.prototype.pB=function(){this.type=f.u.i.kb.NONE;this.query=this.measure=null;this.IA=[]};d.prototype.yta=function(){this.Mf=[];this.lk=[];this.HE=this.QE=!1;this.UA=[];this.mQ=!1};d.prototype.pj=function(b){if(void 0===b?0:b)return this.QE&&(this.lk=[],0<this.Mf.length&&(this.lk=this.oaa(this.Mf)),
this.QE=!1),this.lk;this.HE&&(this.Mf=[],0<this.lk.length&&(this.Mf=this.oaa(this.lk)),this.HE=!1);return this.Mf};d.prototype.yIa=function(b,a){a=void 0===a?!1:a;var c=this.xc.ra.ea(1);c=this.xc.du(c.uniqueName);a?(this.j1(b,c)&&(b=[]),this.HE=!0,this.lk=b,this.Mf=[]):(this.j1(b,c)&&(b=[]),this.QE=!0,this.Mf=b,this.lk=[])};d.prototype.clone=function(){var b=new d(this.xc);b.type=this.type;b.measure=this.measure;b.query=this.query&&this.query.clone?this.query.clone():x.Mc.Vi(this.query);f.v(this.Mf)||
(b.Mf=this.Mf.slice());b.QE=this.QE;f.v(this.lk)||(b.lk=this.lk.slice());b.HE=this.HE;f.v(this.UA)||(b.UA=this.UA.slice());b.mQ=this.mQ;return b};d.prototype.La=function(){var b={};this.$h&&(this.vda?this.b1?b.exclude=this.xc.Fr(this.pj(!0)):b.members=this.xc.Fr(this.pj()):this.pj().length<this.xc.vi/2?b.members=this.xc.Fr(this.pj()):b.exclude=this.xc.Fr(this.pj(!0)));!f.v(this.measure)&&this.ai&&(b.measure=this.measure.La());!f.v(this.query)&&this.wy&&(b.query=this.query.La());0<this.IA.length&&
this.wy&&(b.include=this.xc.Fr(this.IA));return b};d.tb=function(b,a,c){c=void 0===c?!1:c;if(f.v(b))return null;d.Jsa(b);var e=new d(a);e.vda=c;e.type=d.Mva(b,a);e.type==f.u.i.kb.nn?d.CGa(b,e):e.type==f.u.i.kb.Oa?d.cGa(b,e,a.getTimezoneOffset()):e.type==f.u.i.kb.gk?d.oGa(b,e):e.type==f.u.i.kb.fb?d.vGa(b,e):e.type==f.u.i.kb.Yb&&d.AGa(b,e);d.uGa(b,e,a);!f.v(b.include)&&e.wy&&(e.IA=d.f3(b.include,a));return e};d.Jsa=function(b){if("top"==b.type||"bottom"==b.type){var a={};b.query=(a[b.type]=b.quantity,
a);b.type=f.u.i.kb.nn;delete b.quantity}!f.v(b.members)&&b.negation&&(b.exclude=b.members,delete b.members,delete b.negation)};d.Mva=function(b,a){return f.v(b.type)?f.v(b.query)?f.u.i.kb.NONE:f.v(b.measure)?d.tS(a):f.u.i.kb.nn:f.u.i.kb.validate(b.type)};d.f3=function(b,a){if(f.v(b))return null;for(var c=[],e=0;e<b.length;e++)if("number"==typeof b[e]&&-1<b[e])c.push(b[e]);else{var g="string"==typeof b[e]?b[e]:b[e].uniqueName;g=f.u.me.Or(g);g=a.qy(g);-1<g&&c.push(g)}return c};d.tS=function(b){if(f.u.Na.U().fa.Hc&&
f.u.Na.U().fa.Ba!==f.u.i.oa.Nc&&f.u.Na.U().fa.Ba!==f.u.i.oa.API&&f.u.Na.U().fa.Ba!==f.u.i.oa.Gf)return f.u.i.kb.NONE;if(f.u.Na.U().fa.Ba===f.u.i.oa.API||f.u.Na.U().fa.Ba===f.u.i.oa.Gf)return b.type===f.u.i.Gc.Op?f.u.i.kb.fb:b.type===f.u.i.Gc.Oa?f.u.i.kb.Oa:f.u.i.kb.gk;var a=b.ra.ea(1).type;return b.type===f.u.i.Gc.Oa?2!=b.ra.length||a!==f.u.i.eb.Qk&&a!==f.u.i.eb.Hg&&a!==f.u.i.eb.om?f.u.i.kb.Oa:f.u.i.kb.NONE:a===f.u.i.eb.Sc||f.u.Na.U().fa.Hc?f.u.i.kb.gk:a===f.u.i.eb.fb?f.u.i.kb.fb:a===f.u.i.eb.Yb?
f.u.i.kb.Yb:f.u.i.kb.NONE};d.uGa=function(b,a,c){var e=b.members||b.exclude;if(!f.v(e)){var g=[],l=[];b=f.v(b.members);for(var m={},n=0;n<e.length;m={KH:m.KH},n++)if("number"==typeof e[n]&&-1<e[n])g.push(e[n]);else{var p="string"===typeof e[n]?e[n]:e[n].uniqueName;p=f.u.me.Or(p);l.push(p);m.KH=c.jga(p);-1<m.KH&&!g.some(function(t){return function(r){return r==t.KH}}(m))?g.push(m.KH):c.ce&&(c.ce=!1,console.warn("Error in predefined filter or members have not been loaded yet: "+p))}f.u.Na.U().fa.Hc&&
(a.zM=b,a.Zl=l.length>g.length?l:[]);a.yIa(g,b)}};d.CGa=function(b,a){a.query=h.zl.tb(b.query,f.u.i.kb.nn);a.measure="string"==typeof b.measure?new h.Ig(f.u.me.zg(b.measure)):h.Ig.tb(b.measure);if(f.v(a.query)||f.v(a.measure))a.type=f.u.i.kb.NONE,a.measure=null};d.cGa=function(b,a,c){a.query=h.zl.tb(b.query,f.u.i.kb.Oa,c);f.v(a.query)&&(a.type=f.u.i.kb.NONE)};d.oGa=function(b,a){a.query=h.zl.tb(b.query,f.u.i.kb.gk);f.v(a.query)&&(a.type=f.u.i.kb.NONE)};d.vGa=function(b,a){a.query=h.zl.tb(b.query,
f.u.i.kb.fb);f.v(a.query)&&(a.type=f.u.i.kb.NONE)};d.AGa=function(b,a){a.query=h.zl.tb(b.query,f.u.i.kb.Yb);f.v(a.query)&&(a.type=f.u.i.kb.NONE)};d.prototype.j1=function(b,a){var c=this;return 0==a.length?!1:a.reduce(function(e,g){if(b.some(function(m){return m==g}))return e;var l=c.xc.va(g).children;return e&&c.j1(b,l)},!0)};d.prototype.oaa=function(b){for(var a=new f.aE,c=1;c<this.xc.Un;c++)a.add(c);for(c=0;c<b.length;c++){var e=this.xc.va(b[c]);a.delete(e.ordinal);this.MU(a,e);this.ega(a,e.parent)}this.M$(a,
this.xc.yd);this.xc.$t&&this.jHa(a);return a.Ic()};d.prototype.jHa=function(b){for(var a=b.size-1;0<=a;a--){var c=this.xc.va(b[a]);c.parent||b.delete(c.ordinal)}};d.prototype.M$=function(b,a){for(var c=0;c<a.children.length;c++){var e=this.xc.va(a.children[c]);0<e.children.length&&(b.has(e.ordinal)?b.has(e.children[0])&&this.MU(b,e):this.M$(b,e))}};d.prototype.MU=function(b,a){if(a){a=a.children;for(var c=0;c<a.length;c++)b.delete(a[c]),this.MU(b,this.xc.va(a[c]))}};d.prototype.ega=function(b,a){a&&
!a.Wb&&(b.delete(a.ordinal),a.parent&&this.ega(b,a.parent))};d.prototype.Swa=function(){var b=null;this.uy&&(b=this.Pwa(this.query));this.$v&&(b=this.Vwa(this.query));this.IL&&(b=this.Twa(this.query));this.SS&&(b=this.Wwa(this.query));if(!f.v(b)&&0<this.IA.length)for(var a=0;a<this.IA.length;a++)b.add(this.IA[a]);if(!f.v(b)&&0<this.lk.length)for(a=0;a<this.lk.length;a++)b.delete(this.lk[a]),this.MU(b,this.xc.va(this.lk[a]));return b.Ic()};d.prototype.Pwa=function(b){b=b.kR(this.xc.getTimezoneOffset());
var a=new f.aE,c=0<this.Mf.length,e=2<this.xc.ra.length,g=c?this.Mf:null;c&&e&&(g=this.Dca(g));for(var l=c?g.length:this.xc.vi,m=0;m<l;m++){var n=c?g[m]:m;if(e){var p=this.xc.va(n);if(p.level.type===f.u.i.eb.Qk||p.level.type===f.u.i.eb.Cs||p.level.type===f.u.i.eb.Hg)continue}b.ta===f.u.i.wb.an?this.N1(this.xc.aC(n).toLowerCase(),b)&&a.add(n):this.yCa(this.xc.qL(n),b)&&a.add(n)}return a};d.prototype.Vwa=function(b){var a=new f.aE,c=this.xc.nc?this.xc.nc.sb:1,e=0<this.Mf.length,g=2<this.xc.ra.length,
l=e?this.Mf:null;e&&g&&(l=this.Dca(l));for(var m=e?l.length:this.xc.vi,n=0;n<m;n++){var p=e?l[n]:n;1<c&&g&&this.xc.va(e?l[n]:n).level.sb<c||this.N1(this.xc.aC(p).toLowerCase(),b)&&a.add(p)}return a};d.prototype.Twa=function(b){for(var a=new f.aE,c=0<this.Mf.length,e=c?this.Mf:null,g=c?e.length:this.xc.vi,l=0;l<g;l++){var m=c?e[l]:l;this.WT(this.xc.qL(m),b)&&a.add(m)}return a};d.prototype.Wwa=function(b){b=b.Dua();for(var a=new f.aE,c=0<this.Mf.length,e=c?this.Mf:null,g=c?e.length:this.xc.vi,l=0;l<
g;l++){var m=c?e[l]:l;b.ta==f.u.i.wb.an?this.N1(this.xc.aC(m).toLowerCase(),b)&&a.add(m):this.WT(this.xc.qL(m),b)&&a.add(m)}return a};d.prototype.N1=function(b,a){if(f.v(a.value))return!1;if(a.ta===f.u.i.wb.EQUAL)return b===a.value.toLowerCase();if(a.ta===f.u.i.wb.If)return b!==a.value.toLowerCase();if(a.ta===f.u.i.wb.LD)return 0==b.indexOf(a.value.toLowerCase());if(a.ta===f.u.i.wb.$z)return 0!=b.indexOf(a.value.toLowerCase());if(a.ta===f.u.i.wb.Mz){var c=b.lastIndexOf(a.value.toLowerCase());return 0<=
c&&c+a.value.length==b.length}if(a.ta===f.u.i.wb.bA)return c=b.lastIndexOf(a.value.toLowerCase()),0>c||c+a.value.length!=b.length;if(a.ta===f.u.i.wb.an)return c=b.indexOf(a.value.toLowerCase()),0<=c;if(a.ta===f.u.i.wb.aA)return c=b.indexOf(a.value.toLowerCase()),0>c;if(a.ta===f.u.i.wb.GREATER)return b>a.value.toLowerCase();if(a.ta===f.u.i.wb.Kk)return b>=a.value.toLowerCase();if(a.ta===f.u.i.wb.LESS)return b<a.value.toLowerCase();if(a.ta===f.u.i.wb.Lk)return b<=a.value.toLowerCase();if(a.ta===f.u.i.wb.Sg)return c=
a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b>=c&&b<=a:b>=a&&b<=c;if(a.ta===f.u.i.wb.Jg)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b<c||b>a:b<a||b>c};d.prototype.WT=function(b,a){if(f.v(a.value))return!1;if(a.ta===f.u.i.vg.EQUAL)return b===a.value;if(a.ta===f.u.i.vg.If)return b!==a.value;if(a.ta===f.u.i.vg.GREATER)return b>a.value;if(a.ta===f.u.i.vg.Kk)return b>=a.value;if(a.ta===f.u.i.vg.LESS)return b<a.value;if(a.ta===f.u.i.vg.Lk)return b<=a.value;if(a.ta===f.u.i.vg.Sg){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.ta===f.u.i.vg.Jg)return c=Math.min(a.value[0],a.value[1]),a=Math.max(a.value[0],a.value[1]),b<c||b>a};d.prototype.yCa=function(b,a){if(f.v(a.value))return!1;if(a.ta===f.u.i.Ub.JD){var c=a.value.getTime();return b<c}if(a.ta===f.u.i.Ub.KD)return c=a.value.getTime(),b<c+864E5;if(a.ta===f.u.i.Ub.FD)return c=a.value.getTime(),b>=c+864E5;if(a.ta===f.u.i.Ub.GD)return c=a.value.getTime(),b>=c;if(a.ta===f.u.i.Ub.Sg)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.ta===f.u.i.Ub.Jg)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};d.prototype.Iv=function(){if(0<this.Zl.length){for(var b,a=0;a<this.Zl.length;a++){if(this.xc.type!==f.u.i.Gc.Oa||this.xc.ra.ea(1).type!==f.u.i.eb.Oa&&this.xc.ra.ea(1).type!==f.u.i.eb.Dc)b=this.xc.Db(this.Zl[a]);else{if(k.B.C.zr&&"null"===
this.Zl[a])b=null;else if(8>this.Zl[a].length||/\D+/.test(this.Zl[a].slice(1))){b=this.xc.ra.ea(1).type===f.u.i.eb.Dc?k.B.C.Yk:k.B.C.mq;b=this.xc.mapping.Fa(this.xc.uniqueName,"format",b);var c=new f.Gg(this.Zl[a],{yx:!1,format:b});c.dj(x.gh.Sf(b));b=c.getTime()}else b=parseInt(this.Zl[a]);b=this.xc.Ht(b)}null!=b&&(this.zM?this.lk.push(b.ordinal):this.Mf.push(b.ordinal))}this.Zl=[]}};d.prototype.Dca=function(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c]),this.Vfa(a,this.xc.va(b[c]));return a};d.prototype.Vfa=
function(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.Vfa(b,this.xc.va(a[c]))}};q.Object.defineProperties(d.prototype,{b1:{configurable:!0,enumerable:!0,get:function(){return 0<this.lk.length}},$g:{configurable:!0,enumerable:!0,get:function(){return this.$h||this.ai||this.uy||this.$v||this.IL||this.SS}},$h:{configurable:!0,enumerable:!0,get:function(){return 0<this.Mf.length||0<this.lk.length}},wy:{configurable:!0,enumerable:!0,get:function(){return this.ai||
this.uy||this.$v||this.IL||this.SS}},ai:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.nn}},uy:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.Oa}},$v:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.gk}},IL:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.fb}},SS:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.Yb}},vda:{configurable:!0,enumerable:!0,get:function(){return this.l9},
set:function(b){this.l9=b}},Zl:{configurable:!0,enumerable:!0,set:function(b){this.UA=b},get:function(){null==this.UA&&(this.UA=[]);return this.UA}},zM:{configurable:!0,enumerable:!0,get:function(){return this.mQ},set:function(b){this.mQ=b}}});h.Tz=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){this.ta=void 0===b?null:b;this.value=void 0===a?null:a}d.prototype.clone=function(){return new d(this.ta,this.value)};d.tb=function(b,a,c){c=void 0===c?null:c;if(f.v(b))return null;var e=null;a==f.u.i.kb.nn?(f.u.i.tc.Qh.some(function(g){if(!f.v(b[g]))return e=new d(g,parseFloat(b[g])),!0}),f.u.i.tc.rf.some(function(g){if(!f.v(b[g]))return e=new d(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==f.u.i.kb.Oa?(f.u.i.Ub.Qh.some(function(g){if(!f.v(b[g])){var l=
new f.Gg(b[g]);l.dj(c,!1);e=new d(g,l);return!0}}),f.u.i.Ub.rf.some(function(g){if(!f.v(b[g])){var l=new f.Gg(b[g][0]);l.dj(c,!1);var m=new f.Gg(b[g][1]);m.dj(c,!1);if(l&&m)return e=new d(g,l.getTime()<m.getTime()?[l,m]:[m,l]),e.value[1]=e.value[1].B4("day",k.B.C.iy),!0}}),f.u.i.Ub.$w.some(function(g){if(f.u.i.Kz.Cg(b[g]))return e=new d(g,b[g].toLowerCase()),!0}),f.v(b[f.u.i.wb.an])||(e=new d(f.u.i.wb.an,b[f.u.i.wb.an]))):a==f.u.i.kb.gk?(f.u.i.wb.Qh.some(function(g){if(!f.v(b[g]))return e=new d(g,
b[g]),!0}),f.u.i.wb.rf.some(function(g){if(!f.v(b[g]))return e=new d(g,[b[g][0],b[g][1]]),!0})):a==f.u.i.kb.fb?(f.u.i.vg.Qh.some(function(g){if(!f.v(b[g]))return e=new d(g,parseFloat(b[g])),!0}),f.u.i.vg.rf.some(function(g){if(!f.v(b[g]))return e=new d(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==f.u.i.kb.Yb&&(f.u.i.ik.Qh.some(function(g){if(!f.v(b[g]))return e=new d(g,b[g]),!0}),f.u.i.ik.rf.some(function(g){if(!f.v(b[g]))return e=new d(g,[b[g][0],b[g][1]]),!0}),f.v(b[f.u.i.wb.an])||(e=new d(f.u.i.wb.an,
b[f.u.i.wb.an])));return e};d.prototype.La=function(){var b=this.value;b instanceof f.Gg&&(b=b.format("yyyy-MM-dd"));Array.isArray(b)&&b[0]instanceof f.Gg&&(b=[b[0].format("yyyy-MM-dd"),b[1].format("yyyy-MM-dd")]);var a={};return a[this.ta]=b,a};d.prototype.kR=function(b){if(this.ta==f.u.i.Ub.EQUAL||this.ta==f.u.i.Ub.If){b=this.value.clone().Xm();var a=this.value.clone().mz();return new d(this.ta==f.u.i.Ub.If?f.u.i.Ub.Jg:f.u.i.Ub.Sg,[b,a])}return 0<=f.u.i.Ub.$w.indexOf(this.ta)&&f.u.i.Kz.Cg(this.value)?
(b=(new f.Gg).dj(b),this.ta==f.u.i.Ub.MN?b.F4(this.value,k.B.C.iy):this.ta==f.u.i.Ub.KO?(b.B4(this.value,k.B.C.iy),b.setMilliseconds(1E3)):this.ta==f.u.i.Ub.tO&&(b.F4(this.value,k.B.C.iy),b.setMilliseconds(-1),b.F4(this.value,k.B.C.iy)),a=b.clone().B4(this.value,k.B.C.iy),new d(f.u.i.Ub.Sg,[b,a])):this};d.prototype.Dua=function(){return 0<=f.u.i.ik.Qh.indexOf(this.ta)?new d(this.ta,this.D4(this.value)):0<=f.u.i.ik.rf.indexOf(this.ta)?new d(this.ta,[this.D4(this.value[0]),this.D4(this.value[1])]):
this};d.prototype.D4=function(b){var a=b.match(/[s|m|h|d]$/);if(!f.v(a)){var 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.zl=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=h.WO.call(this)||this;b.r_="\x3c!--";b.gba="/**----**";return b}u(d,h.WO);d.prototype.load=function(b,a){var c=this;this.url=b;this.ma=new D.Qi;this.ma.dataType=D.Jz.lA;this.ma.N(y.da.je,function(e){return c.lp(e)});this.ma.N(y.da.Jc,function(){return c.aj()});this.ma.N(y.da.ya,function(){return c.Mb()});this.ma.vh(a);this.ma.load(b)};d.prototype.lp=function(){var b=0;null!=this.ma&&-1<(b=this.ma.response.indexOf("</config>"))&&b+this.gba.length+
1<this.ma.response.length&&this.aj()};d.prototype.aj=function(){if(null!=this.ma){this.ma.Od(y.da.Jc);var b=this.zfa(this.ma.response);if(b instanceof h.ReportValueObject){if(b.connectionInfo instanceof f.u.local.csv.OCSVConnectionInfo&&1==b.connectionInfo.embedded){var a=b.connectionInfo;a.filename=this.ma.url;a.embeddedDataOffset=this.ES(this.ma.response.substring(0,this.ma.response.indexOf("</config>")+9)+"\n");var c=this.ma.response.indexOf(this.r_);a.isOCSV2Data=this.ma.response.substring(c,
c+this.r_.length)==this.r_;b.connectionInfo=a}}else f.v(b)||f.v(b.dataSource)?k.B.C.kia&&this.Mb(k.A.j.v7):1==b.dataSource.embedded&&(b.dataSource.filename=this.ma.url,b.dataSource.embeddedDataOffset=this.ES(this.ma.response.substring(0,this.ma.response.indexOf(this.gba))),b.dataSource.isOCSV2Data=!0);this.Taa(b);this.dispose()}};d.prototype.Mb=function(b){b=void 0===b?"":b;this.ma.Od(y.da.je);this.ma.Od(y.da.Jc);this.ma.Od(y.da.ya);if(f.ha(b)){var a="";null!=this.ma&&null!=this.ma.response&&""!=
this.ma.response&&(a=k.Nb.validate(this.ma.response),a=700<a.length?a.substr(0,700):a,a=f.O.bind(k.A.j.EO,a).replace(/'/g,""));b=k.Nb.valid(this.url)?this.url:k.Nb.validate(this.url);b=f.O.bind(k.A.j.EI,b);this.Da(new h.VO(b,a))}else this.Da(new h.VO(b));this.dispose()};d.prototype.dispose=function(){null!=this.ma&&(this.ma.Od(),this.ma.dispose(),this.ma=null)};h.xpa=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.WO.call(this)||this}u(d,h.WO);d.prototype.load=function(){var b=this;this.file=new D.L6;this.file.N(y.da.to,function(){return b.vFa()});this.file.N(y.da.Jc,function(){return b.aj()});this.file.N(y.da.SV,function(){return b.bU()});this.file.N(y.da.ya,function(){return b.Mb()});this.file.E$([".json",".js",".xml"])};d.prototype.vFa=function(){null!=this.file&&this.file.load(D.uoa.ARRAY_BUFFER)};d.prototype.aj=function(){try{this.Qva();var b=
new f.Sq(this.file.response,0,f.Sq.RH),a=b.IU(b.byteLength),c=this.zfa(a);if(c instanceof h.ReportValueObject){if(c.connectionInfo instanceof f.u.local.csv.OCSVConnectionInfo&&1==c.connectionInfo.embedded){var e=c.connectionInfo;e.embeddedDataToLoad=this.file.response;e.embeddedDataOffset=this.ES(a.substring(0,a.indexOf("</config>")+9)+"\n");c.connectionInfo=e}}else f.v(c)||f.v(c.dataSource)?k.B.C.kia&&this.Mb(k.A.j.v7):1==c.dataSource.embedded&&(c.dataSource.embeddedDataToLoad=this.file.response,
c.dataSource.embeddedDataOffset=this.ES(a.substring(0,a.indexOf("/**----**"))));this.Taa(c);this.dispose()}catch(g){console.error(g),this.Mb()}};d.prototype.Mb=function(b){b=void 0===b?"":b;f.ha(b)&&(b=f.O.bind(k.A.j.EI,""));this.Da(new h.VO(b));this.dispose()};d.prototype.Qva=function(){this.Wa(h.lh.TI)};d.prototype.bU=function(){this.Wa(h.lh.Yq);this.dispose()};d.prototype.dispose=function(){null!=this.file&&(this.file.Od(),this.file.dispose(),this.file=null)};h.tma=d})(k.bb||(k.bb={}))})(f.model||
(f.model={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){}d.rz=function(b){return b==d.aO||b==d.eX||b==d.k5||b==d.eA};d.aO="file";d.eX="server";d.k5="binary";d.eA="plain";h.lo=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.rows=[];this.columns=[];this.pages=[];this.measures=[];this.rowSorting={};this.columnSorting={};this.expandedRows=[];this.expandedColumns=[];this.drilledRows=[];this.drilledColumns=[];this.drillAll=this.expandAll=!1;this.flatOrder=[];this.flatSort=null;this.drillThrough=[];this.memberProperties=[];this.Jm=new f.nb}function b(a,c,e){this.Cj=this.uniqueName="";this.index=-1;this.label="";void 0!=a&&(this.uniqueName=a);void 0!=c&&(this.$=c);void 0!=
e&&(this.index=e)}b.tb=function(a){if(null==a)return null;var c=new b;void 0!=a.uniqueName&&(c.uniqueName=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};b.prototype.La=function(){var a={};a.uniqueName=this.uniqueName;""!==this.$&&(a.aggregation=this.$);return a};q.Object.defineProperties(b.prototype,{$:{configurable:!0,enumerable:!0,get:function(){return this.Cj},set:function(a){f.u.i.ca.rz(a)&&(this.Cj=a)}}});
h.Ig=b;d.Rea=function(a){if(0<=d.$c(a.rows)){var c=d.$c(a.columns);0<=c&&(a.columns[c]=a.columns[0],a.columns.shift())}};d.$c=function(a){for(var c=0;c<a.length;c++)if("[Measures]"==a[c].uniqueName)return c;return-1};d.HU=function(a){for(var c=[],e,g=0;g<a.length;g++){e=[];e.push(null!=a[g].measure?a[g].measure:"");if(null!=a[g].tuple)for(var l=0;l<a[g].tuple.length;l++)e.push(a[g].tuple[l]);c.push(e)}return c};d.GU=function(a){for(var c=[],e,g=0;g<a.length;g++){e=[];e.push(null!=a[g].level?a[g].level:
"");e.push(null!=a[g].measure?a[g].measure:-1);if(null!=a[g].tuple){e.push(a[g].tuple[a[g].tuple.length-1]);for(var l=0;l<a[g].tuple.length;l++)e.push(a[g].tuple[l])}c.push(e)}return c};d.VQ=function(a,c){if(!f.v(c)&&!c.ob)for(var e=0;e<a.length;e++){var g=a[e].uniqueName,l=c.Fa(g,"caption");f.v(l)||delete a[e].caption;g=c.Fa(g,"aggregations");f.v(g)||delete a[e].availableAggregations}};d.tb=function(a,c){c=void 0===c?null:c;if(null==a)return null;a instanceof d||(a=d.wl(a));var e=new d;null!=a.measures&&
a.measures.length&&(e.measures=a.measures);null==c&&(c=k.Ta.U().Ga.fa);null!=a.pages&&a.pages.length&&(e.pages=d.L0(a.pages));null!=a.columns&&a.columns.length&&(e.columns=d.L0(a.columns));null!=a.rows&&a.rows.length&&(e.rows=d.L0(a.rows));null!=a.flatOrder&&a.flatOrder.length&&(e.flatOrder=a.flatOrder);null!=a.flatSort&&a.flatSort.length&&(e.flatSort=a.flatSort);null!=a.drillThrough&&a.drillThrough.length&&(e.drillThrough=a.drillThrough);if(void 0!==a.memberProperties&&Array.isArray(a.memberProperties))for(var g=
0;g<a.memberProperties.length;g++){var l=a.memberProperties[g];null!=l&&(f.v(e.memberProperties)&&(e.memberProperties={}),e.memberProperties[l.levelName]=l.properties)}d.Rea(e);d.VQ(e.measures,c.mapping);d.VQ(e.pages,c.mapping);d.VQ(e.columns,c.mapping);d.VQ(e.rows,c.mapping);null!=a.rowSorting&&(e.rowSorting=a.rowSorting);null!=a.columnSorting&&(e.columnSorting=a.columnSorting);null!=a.expandAll&&(e.expandAll=a.expandAll);null!=a.expandedRows&&a.expandedRows.length&&(e.expandedRows=a.expandedRows);
null!=a.expandedColumns&&a.expandedColumns.length&&(e.expandedColumns=a.expandedColumns);null!=a.drillAll&&(e.drillAll=a.drillAll);null!=a.drilledRows&&a.drilledRows.length&&(e.drilledRows=a.drilledRows);null!=a.drilledColumns&&a.drilledColumns.length&&(e.drilledColumns=a.drilledColumns);return e};d.L0=function(a){for(var c=[],e=0;e<a.length;e++){c[e]={};for(var g in a[e])"sort"==g?c[e].sortName=a[e].sort:c[e][g]=a[e][g]}return c};d.Qj=function(a){var c=new d,e=a.find("defaultSlice axes axis[name=rows]");
c.rows=d.M0(e.find("hierarchy"));c.rowSorting=d.tha(e.find("sort"));c.expandedRows=d.oba(e.find("expanded tuple"));c.drilledRows=d.cba(e.find("drilled tuple"));e=a.find("defaultSlice axes axis[name=columns]");c.columns=d.M0(e.find("hierarchy"));c.columnSorting=d.tha(e.find("sort"));c.expandedColumns=d.oba(e.find("expanded tuple"));c.drilledColumns=d.cba(e.find("drilled tuple"));d.Rea(c);e=a.find("defaultSlice axes axis[name=pages]");c.pages=d.M0(e.find("hierarchy"));c.measures=d.xCa(a.find("defaultSlice measures measure"));
c.flatOrder=d.exa(a.find("defaultSlice flatOrder hierarchyName"));e=a.find("params");0!=e.find("param[name=expandAll]").length&&(c.expandAll=f.O.Rc(e.find("param[name=expandAll]").text()));0!=e.find("param[name=drillAll]").length&&(c.drillAll=f.O.Rc(e.find("param[name=drillAll]").text()));a=a.find("defaultSlice");0!=a.find("expandAll").length&&(c.expandAll=f.O.Rc(a.find("expandAll").text()));0!=a.find("drillAll").length&&(c.drillAll=f.O.Rc(a.find("drillAll").text()));return c};d.M0=function(a){for(var c=
[],e=0;e<a.length;e++){var g=d.lAa(a[e]);c.push(g)}return c};d.lAa=function(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 e=a.find("filter");if(0<e.length){for(var g=[],l=e.find("member"),m=0;m<l.length;m++){var n=l[m].text().trim();g.push(n)}m=
void 0!==e.attr("negation")?f.O.Rc(e.attr("negation")):!1;l=void 0!==e.attr("type")?e.attr("type"):f.u.i.kb.NONE;n=void 0!==e.attr("quantity")?parseInt(e.attr("quantity")):-1;var p=void 0!==e.attr("measure")?e.attr("measure"):"";if(l!=f.u.i.kb.NONE||0<g.length)c.filter={};0<g.length&&(c.filter.members=g,c.filter.negation=m);l!=f.u.i.kb.NONE&&(c.filter.type=l,c.filter.quantity=n,c.filter.measure=p)}m=e.find("properties");if(0<m.length)for(e=m.find("property"),c.predefinedProperties=[],m=0;m<e.length;m++)g=
e[m].find("propertyName").text(),l=e[m].find("levelName").text(),null==c.predefinedProperties[l]&&(c.predefinedProperties[l]=[]),c.predefinedProperties[l].push(g);e=[];l=a.find("sort member");for(m=0;m<l.length;m++)e.push(l[m].text());c.customSorting=e;void 0!==a.attr("filterEnabled")&&(c.filterEnabled="false"!=a.attr("filterEnabled"));e={};a=a.find("group");for(m=0;m<a.length;m++)for(g=a[m].attr("name"),e[g]=[],l=a[m].find("member"),n=0;n<l.length;n++)e[g].push(l[m].text());c.groups=e;return c};
d.tha=function(a){var c={};0<a.length&&(c.type=a.text(),c.tuple=void 0!==a.attr("tuple")?a.attr("tuple").split(","):[],c.measure=new b(a.attr("measure")),void 0!==a.attr("measureAggregation")&&(c.measure.$=a.attr("measureAggregation")));return c};d.oba=function(a){var c=[];if(0<a.length)for(var e=0;e<a.length;e++){var g=a[e],l=g.text().split(",");if(isNaN(parseInt(l[0]))){var m=void 0!==g.attr("measure")?new b(g.attr("measure")):null;void 0!==g.attr("measureAggregation")&&(m.$=g.attr("measureAggregation"));
l.unshift(m)}else m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),l.unshift(m);c.push(l)}return c};d.cba=function(a){var c=[];if(0<a.length)for(var e=0;e<a.length;e++){var g=a[e],l=d.CJa(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")));l.unshift(m);isNaN(parseInt(l[0]))?(m=void 0!==g.attr("measure")?new b(g.attr("measure")):null,void 0!==g.attr("measureAggregation")&&(m.$=g.attr("measureAggregation")),
l.unshift(m)):(m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),l.unshift(m));void 0!==g.attr("levelName")&&(g=g.attr("levelName"),l.unshift(g));c.push(l)}return c};d.CJa=function(a){for(var c=0;c<a.length;c++)a[c]=parseInt(a[c]);return a};d.xCa=function(a){for(var c=[],e=0;e<a.length;e++){var g=d.tCa(a[e]);c.push(g)}return c};d.exa=function(a){for(var c=[],e=0;e<a.length;e++)c.push(a[e].text());return c};d.tCa=function(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")?f.O.Rc(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")?f.O.Rc(a.attr("active")):!0;return c};d.prototype.co=function(a){a=void 0===a?!1:a;var c=D.aa.create("<defaultSlice/>"),e=D.aa.create("<axes/>"),g=D.aa.create("<axis/>");g.attr("name","rows");for(var l=0;l<this.rows.length;l++)g.append(this.P0(this.rows[l],a));null!=this.rowSorting&&null!=this.rowSorting.type&&this.rowSorting.type!=f.u.i.xa.Zc&&(l=D.aa.create("<sort/>").text(this.rowSorting.type),l.attr("tuple",this.rowSorting.tuple.join(",")),
l.attr("measure",this.rowSorting.measure.uniqueName),""!=this.rowSorting.measure.$&&l.attr("measureAggregation",this.rowSorting.measure.$),g.append(l));if(0<this.expandedRows.length){var m=D.aa.create("<expanded/>");for(l=0;l<this.expandedRows.length;l++){var n=this.expandedRows[l].slice(0);var p=n.shift();0!=n.length&&(n=D.aa.create("<tuple/>").append(D.aa.Bh(n.toString())),p&&(n.attr("measure",p.uniqueName),""!=p.$&&n.attr("measureAggregation",p.$)),m.append(n))}g.append(m)}if(0<this.drilledRows.length){var t=
D.aa.create("<drilled/>");for(l=0;l<this.drilledRows.length;l++){n=this.drilledRows[l].slice(0);m="string"==typeof n[0]?n.shift():"";p=n.shift();var r=n.shift();null!=r&&0!=n.length&&(n=D.aa.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.uniqueName),""!=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=D.aa.create("<axis/>");m.attr("name","columns");for(l=0;l<this.columns.length;l++)m.append(this.P0(this.columns[l],
a));null!=this.columnSorting&&this.columnSorting.type&&this.columnSorting.type!=f.u.i.xa.Zc&&(l=D.aa.create("<sort/>").text(this.columnSorting.type),l.attr("tuple",this.columnSorting.tuple.join(",")),l.attr("measure",this.columnSorting.measure.uniqueName),""!=this.columnSorting.measure.$&&l.attr("measureAggregation",this.columnSorting.measure.$),m.append(l));if(0<this.expandedColumns.length){r=D.aa.create("<expanded/>");for(l=0;l<this.expandedColumns.length;l++)n=this.expandedColumns[l].slice(0),
p=n.shift(),0!=n.length&&(n=D.aa.create("<tuple/>").append(D.aa.Bh(n.toString())),p&&(n.attr("measure",p.uniqueName),""!=p.$&&n.attr("measureAggregation",p.$)),r.append(n));m.append(r)}if(0<this.drilledColumns.length){t=D.aa.create("<drilled/>");for(l=0;l<this.drilledColumns.length;l++)n=this.drilledColumns[l].slice(0),p=n.shift(),r=n.shift(),null!=r&&0!=n.length&&(n=D.aa.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.uniqueName),""!=p.$&&n.attr("measureAggregation",p.$)),0<r.length&&
n.attr("memberName",r),t.append(n));m.append(t)}p=D.aa.create("<axis/>");p.attr("name","pages");for(l=0;l<this.pages.length;l++)p.append(this.P0(this.pages[l],a));this.Jm.clear();n=D.aa.create("<measures/>");for(l=0;l<this.measures.length;l++)r=this.measures[l],t=D.aa.create("<measure/>").text(r.uniqueName),null!=r.qe&&""!=r.qe?(t=D.aa.create("<measure/>").append(D.aa.Bh(r.qe)),r.gl&&t.attr("individual","true"),t.attr("caption",r.caption)):(a||r.$!=f.u.i.ca.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.Jm.Pa(r.format,!0):this.Jm.Bb(r.format)&&!0===this.Jm.getItem(r.format)||this.Jm.Pa(r.format,!1)),null!=r.Tc&&0<r.Tc.length&&t.attr("availableAggregations",r.Tc.join(",")),n.append(t);0==g.ob()&&e.append(g);0==m.ob()&&e.append(m);0==p.ob()&&e.append(p);0==e.ob()&&c.append(e);0==n.ob()&&c.append(n);if(0<this.flatOrder.length){e=D.aa.create("<flatOrder/>");for(l=0;l<this.flatOrder.length;l++)e.append(D.aa.create("<hierarchyName/>").text(this.flatOrder[l]));
c.append(e)}(a||this.expandAll)&&c.append(D.aa.create("<expandAll/>").text(this.expandAll));(a||this.drillAll)&&c.append(D.aa.create("<drillAll/>").text(this.drillAll));return c};d.prototype.La=function(a,c){a=void 0===a?!1:a;c=void 0===c?null:c;var e={},g,l=[];for(g=0;g<this.pages.length;g++)l.push(this.O0(this.pages[g],a,c));0<l.length&&(e.reportFilters=l);l=[];for(g=0;g<this.rows.length;g++)l.push(this.O0(this.rows[g],a,c));0<l.length&&(e.rows=l);l=[];for(g=0;g<this.columns.length;g++)l.push(this.O0(this.columns[g],
a,c));0<l.length&&(e.columns=l);l=[];var m=new f.nb,n=k.Zb.Ni.Tya();this.Jm.clear();for(g=0;g<this.measures.length;g++){var p=this.Dea(this.measures[g],a,c);m.Bb(p.uniqueName)||m.Pa(p.uniqueName,new Map);m.getItem(p.uniqueName).set(p.aggregation,!0);l.push(p)}for(g=0;g<n.length;g++){var t=n.ea(g);p=n.qh(g);t=t.keys();t=ja(t);for(var r=t.next();!r.done;r=t.next()){r=r.value;var v=n.getItem(p).get(r);(!m.Bb(p)||m.Bb(p)&&!m.getItem(p).has(r))&&k.B.C.L3&&(l.push({uniqueName:p,aggregation:r,active:!1,
format:v}),this.Jm.Pa(v,!1))}}0<l.length&&(e.measures=l);if(null!=this.rowSorting&&null!=this.rowSorting.type&&this.rowSorting.type!=f.u.i.xa.Zc||null!=this.columnSorting&&this.columnSorting.type&&this.columnSorting.type!=f.u.i.xa.Zc)e.sorting={},null!=this.rowSorting&&null!=this.rowSorting.type&&this.rowSorting.type!=f.u.i.xa.Zc&&(e.sorting.row=this.rowSorting),null!=this.columnSorting&&this.columnSorting.type&&this.columnSorting.type!=f.u.i.xa.Zc&&(e.sorting.column=this.columnSorting);l={};if(a||
this.expandAll)l.expandAll=this.expandAll;if(f.u.Na.U().sa){var z=f.u.Na.U().sa.vb;var B=f.u.Na.U().sa.Cb}0<this.expandedRows.length&&z&&(l.rows=this.nba(this.expandedRows,z,a,c));0<this.expandedColumns.length&&B&&(l.columns=this.nba(this.expandedColumns,B,a,c));x.Mc.og(l)||(e.expands=l);c={};if(a||this.drillAll)c.drillAll=this.drillAll;0<this.drilledRows.length&&(c.rows=this.bba(this.drilledRows,z));0<this.drilledColumns.length&&(c.columns=this.bba(this.drilledColumns,B));x.Mc.og(c)||(e.drills=c);
0<this.flatOrder.length&&(e.flatOrder=this.flatOrder);this.flatSort&&0<this.flatSort.length&&(e.flatSort=this.flatSort);0<this.drillThrough.length&&(e.drillThrough=this.drillThrough);if(this.memberProperties){a=[];for(var C in this.memberProperties)a.push({levelName:C,properties:this.memberProperties[C]});0<a.length&&(e.memberProperties=a)}return e};d.prototype.nba=function(a,c,e,g){e=void 0===e?!1:e;g=void 0===g?null:g;for(var l=[],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 z=c.ea(v).Db(n[v]);r.push(z.Xi)}m.tuple=r;p&&(m.measure=this.Dea(p.uniqueName?p:p.La(),e,g));l.push(m)}return l};d.prototype.bba=function(a,c){var e=[],g=0;a:for(;g<a.length;g++){var l={};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.ea(r).Db(m[r]);if(v)t.push(v.Xi);else continue a}l.tuple=t;p&&(l.measure=p.uniqueName?p:p.La());""!==n&&(l.level=n);e.push(l)}}return e};d.prototype.jBa=
function(a){return f.u.Na.U().fa.Ba===f.u.i.oa.Nc||f.u.Na.U().fa.Ba===f.u.i.oa.Zd?"[Measures].["+a.name+"]"!=a.uniqueName:f.u.Na.U().I instanceof f.u.local.I.fE&&void 0!==f.u.Na.U().I.Ty[a.uniqueName]?!1:a.name!=a.uniqueName};d.prototype.CAa=function(a){if(f.u.Na.U().fa.Ba==f.u.i.oa.API)return!1;if(a.bm.length!==a.Tc.length)return!0;for(var c=0;c<a.Tc.length;c++)if(a.Tc[c]!==a.bm[c])return!0;return!1};d.prototype.Dea=function(a,c,e){e=void 0===e?null:e;var g={};g.uniqueName=a.uniqueName;if(f.ha(a.formula)){if(c||
a.aggregation!=f.u.i.ca.NONE)g.aggregation=a.aggregation;var l=f.u.Na.U().I.nw(a);if(c||this.CAa(l))f.v(e)||e.ob?g.availableAggregations=a.availableAggregations:null==e.Fa(a.uniqueName,"aggregations")&&e.Nh(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.jBa(a)&&(f.v(e)||e.ob?g.caption=a.name:null==e.Fa(a.uniqueName,
"caption")&&void 0===a.formula&&e.Nh(a.uniqueName,"caption",a.name));f.u.I.ek.h0(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.Jm.Pa(a.format,!0):this.Jm.Bb(a.format)&&!0===this.Jm.getItem(a.format)||this.Jm.Pa(a.format,!1));a.filter&&(g.filter=a.filter);return g};d.prototype.bBa=function(a){return"[Measures]"==a.uniqueName?
!1:f.u.Na.U().fa.Ba==f.u.i.oa.Nc||f.u.Na.U().fa.Ba==f.u.i.oa.Zd?a.dimensionName+".["+a.caption+"]"!=a.uniqueName:f.u.Na.U().I instanceof f.u.local.I.fE&&void 0!==f.u.Na.U().I.Ty[a.uniqueName]?!1:a.uniqueName!=a.caption};d.prototype.O0=function(a,c,e){e=void 0===e?null:e;var g={};g.uniqueName=a.uniqueName;this.bBa(a)&&(f.v(e)||e.ob?g.caption=a.caption:null==e.Fa(a.uniqueName,"caption")&&e.Nh(a.uniqueName,"caption",a.caption));null!=a.activeLevelName&&(g.levelName=a.activeLevelName);f.v(a.filter)||
(g.filter={},f.v(a.filter.measure)||(g.filter.measure=a.filter.measure),f.v(a.filter.query)||(g.filter.query=a.filter.query),f.v(a.filter.members)||(g.filter.members=a.filter.members),f.v(a.filter.exclude)||(g.filter.exclude=a.filter.exclude));a.filterEnabled||(g.filterEnabled=!0);x.Mc.og(a.groups)||(g.groups=a.groups);"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=f.u.I.nf.aI)&&(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};d.prototype.P0=function(a,c){var e=D.aa.create("<hierarchy/>");e.append(D.aa.create("<dimensionName/>").text(a.dimensionName));e.append(D.aa.create("<hierarchyName/>").text(a.uniqueName));null!=a.activeLevelName&&e.append(D.aa.create("<levelName/>").text(a.activeLevelName));if(null!=a.filter&&(null!=a.filter.type&&a.filter.type!=f.u.i.kb.NONE&&e.append(this.Xwa(a.filter)),null!=a.filter.members)){var g="string"==
typeof a.filter.members?a.filter.members.split(","):a.filter.members;0<g.length&&(0<e.find("filter").length?this.Dba(g,e.find("filter")[0]):e.append(this.Dba(g)),!0===a.filter.negation&&e.find("filter").attr("negation",a.filter.negation))}a.customSorting&&0<a.customSorting.length&&e.append(this.sva(a.customSorting));a.groups&&this.aAa(a.groups,e);a.filterEnabled||e.attr("filterEnabled","true");"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=f.u.I.nf.aI)&&e.attr("sort",a.sortName);"[Measures]"!=
a.uniqueName&&a.sortAs&&e.attr("sortAs",a.sortAs);return e};d.prototype.Xwa=function(a){var c=void 0===c?null:c;null==c&&(c=D.aa.create("<filter/>"));c.attr("type",a.type);c.attr("quantity",a.quantity);c.attr("measure",a.measure);return c};d.prototype.Dba=function(a,c){c=void 0===c?null:c;null==c&&(c=D.aa.create("<filter/>"));for(var e=0;e<a.length;e++){var g=a[e];c.append(D.aa.create("<member/>").append(D.aa.Bh(g)))}return c};d.prototype.sva=function(a){for(var c=D.aa.create("<sort/>"),e=0;e<a.length;e++){var g=
a[e];c.append(D.aa.create("<member/>").append(D.aa.Bh(g)))}return c};d.prototype.aAa=function(a,c){if(null!=a)for(var e in a){var g=D.aa.create("<group/>");g.attr("name",e);for(var l=0;l<a[e].length;l++){var m=a[e][l];g.append(D.aa.create("<member/>").append(D.aa.Bh(m)))}c.append(g)}};d.wl=function(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.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.rows&&(c.expandedRows=d.HU(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=d.HU(a.expands.columns)));null!=a.drillAll&&(c.drillAll=a.drillAll);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.rows&&(c.drilledRows=d.GU(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=d.GU(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=d.HU(a.expands.rows)),
null!=a.expands.columns&&(c.expandedColumns=d.HU(a.expands.columns))),null!=a.drills&&(null!=a.drills.drillAll&&(c.drillAll=a.drills.drillAll),null!=a.drills.rows&&(c.drilledRows=d.GU(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=d.GU(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};d.prototype.cBa=function(a){for(var c=0;c<this.pages.length;c++)if(this.pages[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.columns.length;c++)if(this.columns[c].uniqueName==a)return!0;return!1};h.SliceValueObject=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.rowSizes={};this.columnSizes={};this.rowHeaderSizes=[];this.columnHeaderSizes=[];this.rowSizesByIdx={};this.columnSizesByIdx={};this.rowFilterSizes=[];this.tD=0}d.tb=function(b){var a=new d;if(null==b)return a;null!=b.columnSizes&&"string"!=typeof b.columnSizes&&(a.columnSizes=b.columnSizes);null!=b.rowSizes&&"string"!=typeof b.rowSizes&&(a.rowSizes=b.rowSizes);null!=b.columnHeaderSizes&&"string"!=typeof b.columnHeaderSizes&&(a.columnHeaderSizes=
b.columnHeaderSizes);null!=b.rowHeaderSizes&&"string"!=typeof b.rowHeaderSizes&&(a.rowHeaderSizes=b.rowHeaderSizes);null!=b.rowFilterSizes&&"string"!=typeof b.rowFilterSizes&&(a.rowFilterSizes=b.rowFilterSizes);null!=b.columnSizesByIdx&&(a.columnSizesByIdx=b.columnSizesByIdx);null!=b.rowSizesByIdx&&(a.rowSizesByIdx=b.rowSizesByIdx);return a};d.wl=function(b){var a={};if(void 0==b)return a;var c;if(null!=b.columns){var e=b.columns;for(c=0;c<e.length;c++)if(null!=e[c].idx&&(null==a.columnSizesByIdx&&
(a.columnSizesByIdx={}),a.columnSizesByIdx[parseInt(e[c].idx)]=parseInt(e[c].width)),null!=e[c].tuple||null!=e[c].measure){null==a.columnSizes&&(a.columnSizes={});var g=null==e[c].tuple?[]:e[c].tuple.slice();null!=e[c].measure&&("string"==typeof e[c].measure?(g.push(e[c].measure),g.push("")):(g.push(e[c].measure.uniqueName?e[c].measure.uniqueName:""),g.push(e[c].measure.aggregation?e[c].measure.aggregation:"")));a.columnSizes[g.join(",")]=parseInt(e[c].width)}}if(null!=b.rows)for(e=b.rows,c=0;c<e.length;c++)if(null!=
e[c].idx&&(null==a.rowSizesByIdx&&(a.rowSizesByIdx={}),a.rowSizesByIdx[parseInt(e[c].idx)]=parseInt(e[c].height)),null!=e[c].tuple||null!=e[c].measure)null==a.rowSizes&&(a.rowSizes={}),g=null==e[c].tuple?[]:e[c].tuple.slice(),null!=e[c].measure&&("string"==typeof e[c].measure?(g.push(e[c].measure),g.push("")):(g.push(e[c].measure.uniqueName?e[c].measure.uniqueName:""),g.push(e[c].measure.aggregation?e[c].measure.aggregation:""))),a.rowSizes[g.join(",")]=parseInt(e[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};d.prototype.La=function(b){var a={};if(null!=this.columnHeaderSizes&&!x.Mc.og(this.columnHeaderSizes)||null!=
this.columnSizes&&!x.Mc.og(this.columnSizes)){a.columns=[];if(null!=this.columnHeaderSizes&&!x.Mc.og(this.columnHeaderSizes))for(var c=0;c<this.columnHeaderSizes.length;c++)null!=this.columnHeaderSizes[c]&&a.columns.push({idx:c,width:this.columnHeaderSizes[c]});if(null!=this.columnSizesByIdx&&!x.Mc.og(this.columnSizesByIdx))for(var e in this.columnSizesByIdx)c=parseInt(e),this.columnSizesByIdx.hasOwnProperty(e)&&!isNaN(c)&&a.columns.push({idx:c,width:this.columnSizesByIdx[e]});e=h.SliceValueObject.$c(b.columns);
if(null!=this.columnSizes&&!x.Mc.og(this.columnSizes))for(var g in this.columnSizes)if(c=g.split(","),0<=e&&1<c.length){var l=c.pop(),m=c.pop();a.columns.push({tuple:c,measure:(new h.Ig(m,l)).La(),width:this.columnSizes[g]})}else a.columns.push({tuple:c,width:this.columnSizes[g]})}if(null!=this.rowFilterSizes&&!x.Mc.og(this.rowFilterSizes)||null!=this.rowHeaderSizes&&!x.Mc.og(this.rowHeaderSizes)||null!=this.rowSizes&&!x.Mc.og(this.rowSizes)){a.rows=[];if(null!=this.rowFilterSizes&&!x.Mc.og(this.rowFilterSizes))for(g=
0;g<this.rowFilterSizes.length;g++)null!=this.rowFilterSizes[g]&&a.rows.push({idx:g,height:this.rowFilterSizes[g]});if(null!=this.rowHeaderSizes&&!x.Mc.og(this.rowHeaderSizes))for(g=0;g<this.rowHeaderSizes.length;g++)null!=this.rowHeaderSizes[g]&&a.rows.push({idx:g,height:this.rowHeaderSizes[g]});if(null!=this.rowSizesByIdx&&!x.Mc.og(this.rowSizesByIdx))for(var n in this.rowSizesByIdx)g=parseInt(n),this.rowSizesByIdx.hasOwnProperty(n)&&!isNaN(g)&&a.rows.push({idx:g,width:this.rowSizesByIdx[n]});b=
h.SliceValueObject.$c(b.rows);if(null!=this.rowSizes&&!x.Mc.og(this.rowSizes))for(var p in this.rowSizes)n=p.split(","),0<=b&&1<n.length?(g=n.pop(),e=n.pop(),a.rows.push({tuple:n,measure:(new h.Ig(e,g)).La(),height:this.rowSizes[p]})):a.rows.push({tuple:n,height:this.rowSizes[p]})}return a};d.prototype.co=function(){var b=D.aa.create("<view/>"),a;if(null!=this.columnHeaderSizes)for(a in this.columnHeaderSizes)if(null!=this.columnHeaderSizes[a]){var c=D.aa.create("<column/>").text(this.columnHeaderSizes[a]);
c.attr("headerIdx",a);b.append(c)}if(null!=this.columnSizes)for(a in this.columnSizes)null!=this.columnSizes[a]&&(c=D.aa.create("<column/>").append(D.aa.Bh(this.columnSizes[a])),b.append(c));if(null!=this.rowFilterSizes)for(a in this.rowFilterSizes)null!=this.rowFilterSizes[a]&&(c=D.aa.create("<row/>").text(this.rowFilterSizes[a]),c.attr("filterIdx",a),b.append(c));if(null!=this.rowHeaderSizes)for(a in this.rowHeaderSizes)null!=this.rowHeaderSizes[a]&&(c=D.aa.create("<row/>").text(this.rowHeaderSizes[a]),
c.attr("headerIdx",a),b.append(c));if(null!=this.rowSizes)for(a in this.rowSizes)null!=this.rowSizes[a]&&(c=D.aa.create("<row/>").append(D.aa.Bh(this.rowSizes[a])),b.append(c));return b};d.prototype.clone=function(){var b=new d,a={},c;for(c in this.columnSizes)a[c]=this.columnSizes[c];b.columnSizes=a;a={};for(var e in this.columnSizesByIdx)a[e]=this.columnSizesByIdx[e];b.columnSizesByIdx=a;e=[];for(var g in this.columnHeaderSizes)e[parseInt(g)]=this.columnHeaderSizes[g];b.columnHeaderSizes=e;g={};
for(var l in this.rowSizes)g[l]=this.rowSizes[l];b.rowSizes=g;l={};for(var m in this.rowSizesByIdx)l[m]=this.rowSizesByIdx[m];b.rowSizesByIdx=l;m=[];for(var n in this.rowHeaderSizes)m[parseInt(n)+this.tD]=this.rowHeaderSizes[n];b.rowHeaderSizes=m;n=[];if(0!=this.tD)for(var p in this.rowFilterSizes)n[parseInt(p)]=this.rowFilterSizes[p];b.rowFilterSizes=n;return b};d.Qj=function(b){var a=new d;a.columnHeaderSizes=d.cda(b.find("view column[headerIdx]"));a.columnSizes=d.oha(b.find("view column"));a.rowHeaderSizes=
d.cda(b.find("view row[headerIdx]"));a.rowSizes=d.oha(b.find("view row"));a.rowFilterSizes=d.Uwa(b.find("view row[filterIdx]"));return a};d.cda=function(b){for(var a=[],c=0;c<b.length;c++){var e=b[c];a[parseInt(e.attr("headerIdx"))]=parseInt(e.text())}return a};d.Uwa=function(b){for(var a=[],c=0;c<b.length;c++){var e=b[c];a[parseInt(e.attr("filterIdx"))]=parseInt(e.text())}return a};d.oha=function(b){for(var a=[],c=0;c<b.length;c++){var e=b[c];f.v(e.attr("headerIdx"))&&f.v(e.attr("filterIdx"))&&0<
e.text().length&&a.push(e.text().split(","))}return a};h.Wu=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.formats=new f.nb;this.conditions=new f.nb;this.Fw=new k.bb.Wu;this.localization=null;this.labels={};this.iKa=this.withDefaults=!1;this.customFields=[]}b.FJa=function(a){if(null===a)return null;var c=new k.bb.ReportValueObject;c.withDefaults=a.withDefaults;c.connectionInfo=a.ub.clone();a.Lb&&(c.slice=a.Lb.G4());c.options=a.B;for(var e=[],g=0;g<a.formats.length;g++)e[g]=a.formats.ea(g).La();c.formats=e;e=[];for(g=0;g<a.conditions.length;g++)e[g]=
a.conditions.ea(g).La();c.conditions=e;c.customFields=a.customFields;c.labels=a.labels;c.Fw=a.Fw.clone();c.localization=a.localization;c.version=f.Ug.qs;c.creationDate=(new Date).toISOString();return c};d.i8=b})(h.W||(h.W={}))})(k.cc||(k.cc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=this;this.vma=35;this.pQ=!1;this.Qqa="a4";this.Pfa=function(){return b.jfa()};this.J_=this.K0=0}d.U=function(){null==d.ne&&(d.ne=new d);return d.ne};d.dispose=function(){d.ne=null};d.prototype.print=function(b){this.pQ||(this.pQ=!0,this.B=(void 0===b?null:b)||new k.$r.S7,k.Ta.U().N(f.eg.fA,this.Pfa),k.Ta.U().Wa(f.eg.UW))};d.prototype.jfa=function(){k.Ta.U().mb(f.eg.fA,this.Pfa);this.pQ=!1};d.prototype.Wf=function(b,a){this.X=b;this.ka=null!=
b?b.ka:null;this.$sa=(void 0===a?"":a)||"";this.start()};d.prototype.start=function(){var b=this;this.Ck=0;var a=k.vc.ax.tG(this.Qqa);this.jQ=a.Sza();this.iY=a.Uya();this.pages=new A.Aa("div");this.js=[];this.kH=this.xn=0;x.Pk.sn({ao:function(){return b.bya()},Ne:function(){return b.finish()}})};d.prototype.clear=function(){this.pQ=!1;this.xn=this.Ck=this.kH=0;this.pages=this.Zr=null;this.J_=this.K0=0};d.prototype.bya=function(){return this.jra()};d.prototype.jra=function(){if(null==this.Zr)this.Zr=
this.paa(),this.CU=this.Zr.find("table");else if(!(this.Zr.cf(!0)<=this.jQ&&0!=this.xn)&&(this.Zr.cf(!0)>this.jQ&&(this.xn--,this.kHa(this.Zr)),this.i$(),this.Zr=this.paa(),this.CU=this.Zr.find("table"),0==this.X.Ai)){var b=this.xn;0!=this.xn&&0<this.X.uo&&(this.xn=0,this.X9(),this.xn=b,this.xn+1<=this.ka.coords.Wk&&(this.xn+=1))}this.X9();if(1==this.shift())this.i$();else return!1;return!0};d.prototype.kHa=function(b){b=b.find("td:last-child",!0);for(var a=0;a<b.length;a++)b[a].remove()};d.prototype.paa=
function(){var b=(new A.Aa("div")).Y("page");b.P("position","absolute").P("left","-9999px");if(null!=this.B.zi){var a=this.yK(this.B.zi);b.append(a)}var c=new A.Aa("table");0==this.Ck&&0<k.B.C.tq.length&&c.append((new A.Aa("caption")).text(k.B.C.tq));b.append(c);if(null!=this.B.Wi){var e=this.yK(this.B.Wi);b.append(e)}this.X.F.append(b);this.K0=null!=a?a.qd():0;this.J_=null!=e?e.qd():0;return b};d.prototype.yK=function(b){var a=new A.Aa("div");b=b.replace(/##PAGE-NUMBER##/gi,(this.Ck+1).toString());
b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());a.html(b);return a};d.prototype.i$=function(){this.Ck++;f.za(!0,k.A.j.kE,this.Ck+" "+k.A.j.y7,!0);this.Zr.detach();this.Zr.P("position","").P("left","").P("padding-top",this.vma.toString()+"px");this.pages.append(this.Zr)};d.prototype.shift=function(){++this.xn;this.xn>=this.X.dg+this.ka.coords.Wk&&(this.xn=0,this.kH+=this.sf-this.X.Ye+1);return 1E3<=this.Ck||this.kH>=this.ka.coords.Po?!0:!1};d.prototype.X9=function(){this.QU=0;var b=this.X.uo+
this.xn;if(!this.ka.coords.On(NaN,b)){var a=this.iY-this.K0-this.J_;for(this.sf=this.X.oi;this.QU<=a&&this.sf<this.ka.coords.Po+this.X.Ye-this.kH;this.sf++)if(this.rowIndex=this.sf<this.X.Ye?this.sf:this.sf+this.kH,!this.ka.coords.On(this.rowIndex,b)){var c=this.ka.Rf(this.rowIndex,b,!0);this.QU+=this.ira(this.sf,c);if(this.QU>=a)break}}};d.prototype.ira=function(b,a){var c=f.K.X.sheet.jh.ts,e=this.CU.find("tr",!0);for(e=0<e.length?e[b]:null;null==e;)this.CU.append(new A.Aa("tr")),e=this.CU.find("tr",
!0)[b];e.height=f.K.X.sheet.jh.Bu;b="<td {0}>"+(a?a.J(!0):"")+"</td>";if(null==a)b=f.O.bind(b,"class='cell' style='width:"+c+"'");else{var g="",l="";a.Wt&&null!=a.style&&(l=a.style.FS(),g=a.style.mS(),this.aZ(a.style.AB));g=a.ci?g+(" rowHeaderCell level"+a.level):a.th?g+" columnHeaderCell":a.wk?g+" filterHeaderCell":a.By&&a.Tj&&""!=a.J(!0)?g+" grandTotalCell":a.Tj&&""!=a.J(!0)?g+" totalCell":g+" cell";""!=g.trim()&&(g="class='"+g.trim()+"'");l=""!=l.trim()?"style='"+l.trim()+"max-width:200px'":"style='width:"+
c+"px;'";b=f.O.bind(b,g+" "+l)}e.element.innerHTML+=b;return e.qd(!0)};d.prototype.aZ=function(b){for(var a=0;a<b.length;a++)0>this.js.indexOf(b[a])&&this.js.push(b[a])};d.prototype.finish=function(){f.za(!0,k.A.j.kE,"Sending pages to printer...",!1,!0);D.R7.print(this.$sa+this.pages.html(),this.R_(),k.B.C.tq);f.za(!1);k.Ta.U().Wa(f.eg.fA);this.clear()};d.prototype.R_=function(){var b="",a=A.Aa.Pb(this.ka.element),c=a.find(".fm-data-sheet");b+=f.O.bind("table{width:100%;border-collapse:collapse;{0}}\n",
f.K.X.W.Yc.ly(a,["font-family","font-size"]));b+=f.O.bind("caption{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.lX,a));b+=f.O.bind("td{white-space:nowrap;{0}}\n",x.Bd().$S?"":"border: 1px solid #eee;");b+=f.O.bind(".cell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we,c));b+=f.O.bind(".totalCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu,c));b+=f.O.bind(".grandTotalCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu+" "+f.K.X.W.ua.tI,c));b+=f.O.bind(".rowHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+
f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku,a));b+=f.O.bind(".columnHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Uz,a));b+=f.O.bind(".filterHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Lp,a));for(c=1;20>=c;c++)b+=f.O.bind(".level{0}{{1}}\n",c,f.K.X.W.Yc.vk(f.K.X.W.ua.Ku+" "+f.K.X.W.ua.qf+c,a,["padding-left"]));for(c=0;c<this.js.length;c++)b+=f.O.bind(".{0}{{1}}\n",this.js[c],f.K.X.W.Yc.vk(this.js[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.nE=d})(k.$r||(k.$r={}))})(f.model||(f.model={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){}d.tb=function(b){var a=new d;null!=b&&(null!=b.header&&(a.zi=b.header),null!=b.footer&&(a.Wi=b.footer));return a};h.S7=d})(k.$r||(k.$r={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;d.Ld=new h.Qp;d.Ld.jD();d.B=new h.Qp;if(d.instance)throw Error("Singleton");return b}u(d,y.Fc);d.U=function(){f.v(d.instance)&&(d.instance=new d);return d.instance};d.dispose=function(){d.DA&&(d.DA.Ld=null);d.DA=null;d.B=null;d.Ld=null;d.instance=null};d.qIa=function(b){d.DA=b};d.Vv=function(b,a){b=void 0===b?!1:b;a=void 0===a?!1:a;var c=void 0===c?!0:c;var e=new h.Qp;b&&e.IC(d.Ld);a&&e.IC(d.DA);e.IC(d.B);!b&&c&&e.qta();
return e};d.clear=function(){this.B=new h.Qp};d.zp=function(b,a,c){a=void 0===a?!0:a;c=void 0===c?!0:c;if(f.v(d.B)||a)a=d.An,d.B=new h.Qp,d.B.la("configuratorOpened",a);b=h.Qp.wl(b);a=!1;d.e_=!0;var e=d.Vv(!0,!0),g;for(g in b)if(void 0!=e[g]&&b[g]!=e[g]&&(a=!0,d.Sy(g))){d.mu=!0;break}d.B.IC(b);f.u.I.nf.aI=d.Gva;d.e_=!1;a&&c&&d.Ya()};d.Sy=function(b){return-1<d.Pqa.indexOf(b)};d.R=function(b){return d.B&&null!=d.B[b]?d.B[b]:d.DA&&null!=d.DA[b]?d.DA[b]:d.Ld?d.Ld[b]:null};d.Ya=function(){d.e_||d.U().Da(new y.da(k.cc.fd.lm))};
q.Object.defineProperties(d,{An:{configurable:!0,enumerable:!0,get:function(){return d.B.R("configuratorOpened")},set:function(b){d.B.la("configuratorOpened",b)}},zF:{configurable:!0,enumerable:!0,get:function(){return d.R("configuratorActive")},set:function(b){if(d.B.R("configuratorActive")!=b){var a=!f.v(d.B.R("configuratorActive"));d.B.la("configuratorOpened",b);d.B.la("configuratorActive",b);a&&d.Ya()}}},IZ:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.configuratorButton:
d.R("configuratorButton")},set:function(b){if(d.B.R("configuratorButton")!=b){var a=!f.v(d.B.R("configuratorButton"));d.B.la("configuratorButton",b);a&&d.Ya()}}},he:{configurable:!0,enumerable:!0,get:function(){return d.R("viewType")},set:function(b){if(d.B.R("viewType")!=b){b=f.K.xd.Cg(b)?b:d.Ld.R("viewType");var a=!(f.v(d.B.R("viewType"))&&d.Ld.R("viewType")==b);d.B.la("viewType",b);a&&d.Ya()}}},Dm:{configurable:!0,enumerable:!0,get:function(){return d.R("chartTitle")},set:function(b){if(d.B.R("chartTitle")!=
b){var a=!f.v(d.B.R("chartTitle"));d.B.la("chartTitle",b);a&&d.Ya()}}},qk:{configurable:!0,enumerable:!0,get:function(){return d.R("gridType")==f.K.X.ie.Cu},set:function(){if(d.B.R("gridType")!=f.K.X.ie.Cu){var b=!f.v(d.B.R("gridType"));d.B.la("gridType",f.K.X.ie.Cu);d.mu=d.Sy("gridType");b&&d.Ya()}}},oc:{configurable:!0,enumerable:!0,get:function(){return d.R("gridType")==f.K.X.ie.ih},set:function(b){if(1==b&&d.B.R("gridType")!=f.K.X.ie.ih){var a=!f.v(d.B.R("gridType"));d.B.la("gridType",f.K.X.ie.ih);
d.mu=d.Sy("gridType");a&&d.Ya()}0==b&&d.B.R("gridType")==f.K.X.ie.ih&&(d.B.la("gridType",f.K.X.ie.Ez),d.mu=d.Sy("gridType"),d.Ya())}},DG:{configurable:!0,enumerable:!0,get:function(){return d.R("gridType")},set:function(b){if(d.B.R("gridType")!=b){var a=!f.v(d.B.R("gridType"));d.B.la("gridType",b);a&&d.Ya()}}},tq:{configurable:!0,enumerable:!0,get:function(){return d.R("gridTitle")},set:function(b){if(d.B.R("gridTitle")!=b){var a=!f.v(d.B.R("gridTitle"));d.B.la("gridTitle",b);a&&d.Ya()}}},OQ:{configurable:!0,
enumerable:!0,get:function(){return d.R("chartType")},set:function(b){b=f.K.td.xe.validate(b);if(d.B.R("chartType")!=b){var a=!f.v(d.B.R("chartType"));d.B.la("chartType",b);a&&d.Ya()}}},Io:{configurable:!0,enumerable:!0,get:function(){return d.R("chartOneLevel")},set:function(b){if(d.B.R("chartOneLevel")!=b){var a=!f.v(d.B.R("chartOneLevel"));d.B.la("chartOneLevel",b);a&&d.Ya()}}},Cv:{configurable:!0,enumerable:!0,get:function(){return d.R("chartOneLevelTuple")},set:function(b){if(d.B.R("chartOneLevelTuple")!=
b){var a=!f.v(d.B.R("chartOneLevelTuple"));d.B.la("chartOneLevelTuple",b);a&&d.Ya()}}},sF:{configurable:!0,enumerable:!0,get:function(){return d.R("chartOneLevelColumnTuple")},set:function(b){if(d.B.R("chartOneLevelColumnTuple")!=b){var a=!f.v(d.B.R("chartOneLevelColumnTuple"));d.B.la("chartOneLevelColumnTuple",b);a&&d.Ya()}}},lK:{configurable:!0,enumerable:!0,get:function(){return d.R("chartMultipleMeasures")},set:function(b){if(d.B.R("chartMultipleMeasures")!=b){var a=!f.v(d.B.R("chartMultipleMeasures"));
d.B.la("chartMultipleMeasures",b);a&&d.Ya()}}},kK:{configurable:!0,enumerable:!0,get:function(){return d.R("chartActiveMeasures")},set:function(b){if(d.B.R("chartActiveMeasures")!=b){var a=!f.v(d.B.R("chartActiveMeasures"));d.B.la("chartActiveMeasures",b);a&&d.Ya()}}},Ho:{configurable:!0,enumerable:!0,get:function(){return d.R("chartActiveMeasure")},set:function(b){if(d.B.R("chartActiveMeasure")!=b){var a=!f.v(d.B.R("chartActiveMeasures"));d.B.la("chartActiveMeasure",b);a&&d.Ya()}}},NQ:{configurable:!0,
enumerable:!0,get:function(){return d.R("chartActiveTupleIndex")},set:function(b){if(d.B.R("chartActiveTupleIndex")!=b){var a=!f.v(d.B.R("chartActiveTupleIndex"));d.B.la("chartActiveTupleIndex",b);a&&d.Ya()}}},nB:{configurable:!0,enumerable:!0,get:function(){return d.R("chartPosition")},set:function(b){if(d.B.R("chartPosition")!=b){var a=!f.v(d.B.R("chartPosition"));d.B.la("chartPosition",b);a&&d.Ya()}}},lZ:{configurable:!0,enumerable:!0,get:function(){return d.R("chartReversedAxes")},set:function(b){if(d.B.R("chartReversedAxes")!=
b){var a=!f.v(d.B.R("chartReversedAxes"));d.B.la("chartReversedAxes",b);a&&d.Ya()}}},Bv:{configurable:!0,enumerable:!0,get:function(){return d.R("chartAutoRange")},set:function(b){if(d.B.R("chartAutoRange")!=b){var a=!f.v(d.B.R("chartAutoRange"));d.B.la("chartAutoRange",b);a&&d.Ya()}}},rF:{configurable:!0,enumerable:!0,get:function(){return d.R("chartAxisShortNumberFormat")},set:function(b){if(d.B.R("chartAxisShortNumberFormat")!=b){var a=!f.v(d.B.R("chartAxisShortNumberFormat"));d.B.la("chartAxisShortNumberFormat",
b);a&&d.Ya()}}},jz:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.showFilter:d.R("showFilter")},set:function(b){if(d.B.R("showFilter")!=b){var a=!f.v(d.B.R("showFilter"));d.B.la("showFilter",b);a&&d.Ya()}}},QIa:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.showFilterInCharts:d.R("showFilterInCharts")},set:function(b){if(d.B.R("showFilterInCharts")!=b){var a=!f.v(d.B.R("showFilterInCharts"));d.B.la("showFilterInCharts",b);a&&d.Ya()}}},hha:{configurable:!0,
enumerable:!0,get:function(){return d.R("showDefaultSlice")},set:function(b){if(d.B.R("showDefaultSlice")!=b){var a=!f.v(d.B.R("showDefaultSlice"));d.B.la("showDefaultSlice",b);a&&d.Ya()}}},Jq:{configurable:!0,enumerable:!0,get:function(){return d.R("useOlapFormatting")},set:function(b){if(d.B.R("useOlapFormatting")!=b){var a=!f.v(d.B.R("useOlapFormatting"));d.B.la("useOlapFormatting",b);a&&d.Ya()}}},YM:{configurable:!0,enumerable:!0,get:function(){return d.R("showMemberProperties")},set:function(b){if(d.B.R("showMemberProperties")!=
b){var a=!f.v(d.B.R("showMemberProperties"));d.B.la("showMemberProperties",b);a&&d.Ya()}}},qH:{configurable:!0,enumerable:!0,get:function(){return d.R("showEmptyData")},set:function(b){if(d.B.R("showEmptyData")!=b){var a=!f.v(d.B.R("showEmptyData"));d.B.la("showEmptyData",b);a&&d.Ya()}}},LIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartDataLabels")},set:function(b){if(d.B.R("showChartDataLabels")!=b){var a=!f.v(d.B.R("showChartDataLabels"));d.B.la("showChartDataLabels",b);a&&
d.Ya()}}},JIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showAllChartLabels")},set:function(b){if(d.B.R("showAllChartLabels")!=b){var a=!f.v(d.B.R("showAllChartLabels"));d.B.la("showAllChartLabels",b);a&&d.Ya()}}},ul:{configurable:!0,enumerable:!0,get:function(){return d.R("showAggregations")},set:function(b){if(d.B.R("showAggregations")!=b){var a=!f.v(d.B.R("showAggregations"));d.B.la("showAggregations",b);a&&d.Ya()}}},su:{configurable:!0,enumerable:!0,get:function(){return d.R("showHierarchyCaptions")},
set:function(b){if(d.B.R("showHierarchyCaptions")!=b){var a=!f.v(d.B.R("showHierarchyCaptions"));d.B.la("showHierarchyCaptions",b);a&&d.Ya()}}},KK:{configurable:!0,enumerable:!0,get:function(){return d.R("drillthroughMaxRows")},set:function(b){if(d.B.R("drillthroughMaxRows")!=b){var a=!f.v(d.B.R("drillthroughMaxRows"));d.B.la("drillthroughMaxRows",b);a&&d.Ya()}}},dha:{configurable:!0,enumerable:!0,get:function(){return d.R("showAllFieldsDrillThrough")},set:function(b){if(d.B.R("showAllFieldsDrillThrough")!=
b){var a=!f.v(d.B.R("showAllFieldsDrillThrough"));d.B.la("showAllFieldsDrillThrough",b);a&&d.Ya()}}},jha:{configurable:!0,enumerable:!0,get:function(){return d.R("showFieldListSearch")},set:function(b){if(d.B.R("showFieldListSearch")!=b){var a=!f.v(d.B.R("showFieldListSearch"));d.B.la("showFieldListSearch",b);a&&d.Ya()}}},XM:{configurable:!0,enumerable:!0,get:function(){return d.R("showExtraTotalLabels")},set:function(b){if(d.B.R("showExtraTotalLabels")!=b){var a=!f.v(d.B.R("showExtraTotalLabels"));
d.B.la("showExtraTotalLabels",b);a&&d.Ya()}}},vl:{configurable:!0,enumerable:!0,get:function(){return d.R("showHeaders")},set:function(b){if(d.B.R("showHeaders")!=b){var a=!f.v(d.B.R("showHeaders"));d.B.la("showHeaders",b);a&&d.Ya()}}},vj:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.sorting:d.R("sorting")},set:function(b){if(d.B.R("sorting")!=b){var a=!f.v(d.B.R("sorting"));d.B.la("sorting",b);a&&d.Ya()}}},A0:{configurable:!0,enumerable:!0,get:function(){return f.u.Na.U().fa.Ba===
f.u.i.oa.API||f.u.Na.U().fa.Hc?!1:d.R("grouping")},set:function(b){if(d.B.R("grouping")!=b){var a=!f.v(d.B.R("grouping"));d.B.la("grouping",b);a&&d.Ya()}}},TF:{configurable:!0,enumerable:!0,get:function(){return d.R("editing")},set:function(b){if(d.B.R("editing")!=b){var a=!f.v(d.B.R("editing"));d.B.la("editing",b);a&&d.Ya()}}},drillThrough:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.drillThrough:d.R("drillThrough")},set:function(b){if(d.B.R("drillThrough")!=b){var a=
!f.v(d.B.R("drillThrough"));d.B.la("drillThrough",b);a&&d.Ya()}}},PIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showDrillThroughConfigurator")},set:function(b){if(d.B.R("showDrillThroughConfigurator")!=b){var a=!f.v(d.B.R("showDrillThroughConfigurator"));d.B.la("showDrillThroughConfigurator",b);a&&d.Ya()}}},rH:{configurable:!0,enumerable:!0,get:function(){return d.R("showHierarchies")},set:function(b){if(d.B.R("showHierarchies")!=b){var a=!f.v(d.B.R("showHierarchies"));d.B.la("showHierarchies",
b);a&&d.Ya()}}},OIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartsWarning")},set:function(b){if(d.B.R("showChartsWarning")!=b){var a=!f.v(d.B.R("showChartsWarning"));d.B.la("showChartsWarning",b);a&&d.Ya()}}},MIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartLegend")},set:function(b){if(d.B.R("showChartLegend")!=b){var a=!f.v(d.B.R("showChartLegend"));d.B.la("showChartLegend",b);a&&d.Ya()}}},fha:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartLegendButton")},
set:function(b){if(d.B.R("showChartLegendButton")!=b){var a=!f.v(d.B.R("showChartLegendButton"));d.B.la("showChartLegendButton",b);a&&d.Ya()}}},L3:{configurable:!0,enumerable:!0,get:function(){return d.R("saveAllFormats")},set:function(b){if(d.B.R("saveAllFormats")!=b){var a=!f.v(d.B.R("saveAllFormats"));d.B.la("saveAllFormats",b);a&&d.Ya()}}},zv:{configurable:!0,enumerable:!0,get:function(){return d.R("calculatedValuesOLAP")},set:function(b){if(d.B.R("calculatedValuesOLAP")!=b){var a=!f.v(d.B.R("calculatedValuesOLAP"));
d.B.la("calculatedValuesOLAP",b);a&&d.Ya()}}},jda:{configurable:!0,enumerable:!0,get:function(){return d.R("includeEmptySubtotalsOLAP")},set:function(b){if(d.B.R("includeEmptySubtotalsOLAP")!=b){var a=!f.v(d.B.R("includeEmptySubtotalsOLAP"));d.B.la("includeEmptySubtotalsOLAP",b);a&&d.Ya()}}},gha:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartOneMeasureSelection")},set:function(b){if(d.B.R("showChartOneMeasureSelection")!=b){var a=!f.v(d.B.R("showChartOneMeasureSelection"));d.B.la("showChartOneMeasureSelection",
b);a&&d.Ya()}}},NIa:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.showChartMeasures:d.R("showChartMeasures")},set:function(b){if(d.B.R("showChartMeasures")!=b){var a=!f.v(d.B.R("showChartMeasures"));d.B.la("showChartMeasures",b);a&&d.Ya()}}},Yf:{configurable:!0,enumerable:!0,get:function(){return d.R("showTotals")},set:function(b){if(d.B.R("showTotals")!=b){var a=!f.v(d.B.R("showTotals"));d.B.la("showTotals",b);d.mu=d.Sy("showTotals");a&&d.Ya()}}},KIa:{configurable:!0,
enumerable:!0,get:function(){return d.R("showAutoCalculationBar")},set:function(b){if(d.B.R("showAutoCalculationBar")!=b){var a=!f.v(d.B.R("showAutoCalculationBar"));d.B.la("showAutoCalculationBar",b);a&&d.Ya()}}},Ef:{configurable:!0,enumerable:!0,get:function(){return d.R("showGrandTotals")},set:function(b){if(d.B.R("showGrandTotals")!=b){var a=!f.v(d.B.R("showGrandTotals"));d.B.la("showGrandTotals",b);d.mu=d.Sy("showGrandTotals");a&&d.Ya()}}},Je:{configurable:!0,enumerable:!0,get:function(){return d.R("strictDataTypes")},
set:function(b){if(d.B.R("strictDataTypes")!==b){var a=!f.v(d.B.R("strictDataTypes"));d.B.la("strictDataTypes",b);a&&d.Ya()}}},yR:{configurable:!0,enumerable:!0,get:function(){return d.R("defaultDateType")},set:function(b){if(d.B.R("defaultDateType")!=b&&f.u.i.input.pa.valid(b)){var a=!f.v(d.B.R("defaultDateType"));d.B.la("defaultDateType",b);a&&d.Ya()}}},mq:{configurable:!0,enumerable:!0,get:function(){return d.R("datePattern")},set:function(b){if(d.B.R("datePattern")!=b){var a=!f.v(d.B.R("datePattern"));
d.B.la("datePattern",b);a&&d.Ya()}}},Yk:{configurable:!0,enumerable:!0,get:function(){return d.R("dateTimePattern")},set:function(b){if(d.B.R("dateTimePattern")!=b){var a=!f.v(d.B.R("dateTimePattern"));d.B.la("dateTimePattern",b);a&&d.Ya()}}},Cp:{configurable:!0,enumerable:!0,get:function(){return d.R("timePattern")},set:function(b){if(d.B.R("timePattern")!=b){var a=!f.v(d.B.R("timePattern"));d.B.la("timePattern",b);a&&d.Ya()}}},Mj:{configurable:!0,enumerable:!0,get:function(){return d.R("dateTimezoneOffset")},
set:function(b){if(d.B.R("dateTimezoneOffset")!=b){var a=!f.v(d.B.R("dateTimezoneOffset"));d.B.la("dateTimezoneOffset",b);a&&d.Ya()}}},eha:{configurable:!0,enumerable:!0,get:function(){return d.R("showCalculatedValuesButton")},set:function(b){if(d.B.R("showCalculatedValuesButton")!=b){var a=!f.v(d.B.R("showCalculatedValuesButton"));d.B.la("showCalculatedValuesButton",b);a&&d.Ya()}}},f4:{configurable:!0,enumerable:!0,get:function(){return d.R("showOutdatedDataAlert")},set:function(b){if(d.B.R("showOutdatedDataAlert")!=
b){var a=!f.v(d.B.R("showOutdatedDataAlert"));d.B.la("showOutdatedDataAlert",b);a&&d.Ya()}}},Gva:{configurable:!0,enumerable:!0,get:function(){return d.R("defaultHierarchySortName")},set:function(b){if(d.B.R("defaultHierarchySortName")!=b){var a=!f.v(d.B.R("defaultHierarchySortName"));d.B.la("defaultHierarchySortName",b);a&&d.Ya()}}},iz:{configurable:!0,enumerable:!0,get:function(){return d.R("showAggregationLabels")},set:function(b){if(d.B.R("showAggregationLabels")!=b){var a=!f.v(d.B.R("showAggregationLabels"));
d.B.la("showAggregationLabels",b);a&&d.Ya()}}},CL:{configurable:!0,enumerable:!0,get:function(){return d.R("grandTotalsPosition")},set:function(b){if(d.B.R("grandTotalsPosition")!=b){var a=!f.v(d.B.R("grandTotalsPosition"));d.B.la("grandTotalsPosition",b);d.mu=d.Sy("grandTotalsPosition");a&&d.Ya()}}},eR:{configurable:!0,enumerable:!0,get:function(){return d.R("columnTotalsPosition")},set:function(b){if(d.B.R("columnTotalsPosition")!=b){var a=!f.v(d.B.R("columnTotalsPosition"));d.B.la("columnTotalsPosition",
b);d.mu=d.Sy("columnTotalsPosition");a&&d.Ya()}}},ZM:{configurable:!0,enumerable:!0,get:function(){return d.R("showReportFiltersArea")},set:function(b){if(d.B.R("showReportFiltersArea")!=b){var a=!f.v(d.B.R("showReportFiltersArea"));d.B.la("showReportFiltersArea",b);a&&d.Ya()}}},GB:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.dragging:d.R("dragging")},set:function(b){if(d.B.R("dragging")!=b){var a=!f.v(d.B.R("dragging"));d.B.la("dragging",b);a&&d.Ya()}}},iy:{configurable:!0,
enumerable:!0,get:function(){return d.R("filterWeekOffset")},set:function(b){if(d.B.R("filterWeekOffset")!=b){var a=!f.v(d.B.R("filterWeekOffset"));d.B.la("filterWeekOffset",b);a&&d.Ya()}}},Cba:{configurable:!0,enumerable:!0,get:function(){return d.R("filterDateFormat")},set:function(b){if(d.B.R("filterDateFormat")!=b){var a=!f.v(d.B.R("filterDateFormat"));d.B.la("filterDateFormat",b);a&&d.Ya()}}},G_:{configurable:!0,enumerable:!0,get:function(){return d.R("filterLiveSearch")},set:function(b){if(d.B.R("filterLiveSearch")!=
b){var a=!f.v(d.B.R("filterLiveSearch"));d.B.la("filterLiveSearch",b);a&&d.Ya()}}},Qm:{configurable:!0,enumerable:!0,get:function(){return d.R("liveFiltering")},set:function(b){if(d.B.R("liveFiltering")!=b){var a=!f.v(d.B.R("liveFiltering"));d.B.la("liveFiltering",b);a&&d.Ya()}}},$F:{configurable:!0,enumerable:!0,get:function(){return d.R("fieldListPosition")},set:function(b){if(d.B.R("fieldListPosition")!=b){var a=!f.v(d.B.R("fieldListPosition"));d.B.la("fieldListPosition",b);a&&d.Ya()}}},GV:{configurable:!0,
enumerable:!0,get:function(){return d.R("validateFormulas")},set:function(b){if(d.B.R("validateFormulas")!=b){var a=!f.v(d.B.R("validateFormulas"));d.B.la("validateFormulas",b);a&&d.Ya()}}},Jx:{configurable:!0,enumerable:!0,get:function(){return d.R("caseSensitiveMembers")},set:function(b){if(d.B.R("caseSensitiveMembers")!=b){var a=!f.v(d.B.R("caseSensitiveMembers"));d.B.la("caseSensitiveMembers",b);a&&d.Ya()}}},XIa:{configurable:!0,enumerable:!0,get:function(){return d.R("simplifyFieldListFolders")},
set:function(b){if(d.B.R("simplifyFieldListFolders")!=b){var a=!f.v(d.B.R("simplifyFieldListFolders"));d.B.la("simplifyFieldListFolders",b);a&&d.Ya()}}},kia:{configurable:!0,enumerable:!0,get:function(){return d.R("validateReportFiles")},set:function(b){if(d.B.R("validateReportFiles")!=b){var a=!f.v(d.B.R("validateReportFiles"));d.B.la("validateReportFiles",b);a&&d.Ya()}}},XY:{configurable:!0,enumerable:!0,get:function(){return d.R("allowBrowsersCache")},set:function(b){if(d.B.R("allowBrowsersCache")!=
b){var a=!f.v(d.B.R("allowBrowsersCache"));d.B.la("allowBrowsersCache",b);a&&d.Ya()}}},ru:{configurable:!0,enumerable:!0,get:function(){return d.R("showEmptyValues")},set:function(b){if(d.B.R("showEmptyValues")!=b){var a=!f.v(d.B.R("showEmptyValues"));d.B.la("showEmptyValues",b);a&&d.Ya()}}},zr:{configurable:!0,enumerable:!0,get:function(){return d.R("distinguishNullUndefinedEmpty")},set:function(b){if(d.B.R("distinguishNullUndefinedEmpty")!=b){var a=!f.v(d.B.R("distinguishNullUndefinedEmpty"));d.B.la("distinguishNullUndefinedEmpty",
b);a&&d.Ya()}}},P4:{configurable:!0,enumerable:!0,get:function(){return d.R("useCaptionsInCalculatedValueEditor")},set:function(b){if(d.B.R("useCaptionsInCalculatedValueEditor")!=b){var a=!f.v(d.B.R("useCaptionsInCalculatedValueEditor"));d.B.la("useCaptionsInCalculatedValueEditor",b);a&&d.Ya()}}},y_:{configurable:!0,enumerable:!0,get:function(){return d.R("expandExecutionTimeout")},set:function(b){if(d.B.R("expandExecutionTimeout")!=b){var a=!f.v(d.B.R("expandExecutionTimeout"));d.B.la("expandExecutionTimeout",
b);a&&d.Ya()}}},readOnly:{configurable:!0,enumerable:!0,get:function(){return d.R("readOnly")},set:function(b){if(d.B.R("readOnly")!=b){var a=!f.v(d.B.R("readOnly"));d.B.la("readOnly",b);a&&d.Ya()}}}});d.mu=!1;d.e_=!1;d.Pqa=["gridType","showTotals","showGrandTotals","grandTotalsPosition","columnTotalsPosition"];d.VA={showFilter:!1,dragging:!1,showFilterInCharts:!1,showChartMeasures:!1,configuratorButton:!1,sorting:"off",drillThrough:!1};h.C=d})(k.B||(k.B={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.Ld={configuratorActive:!1,configuratorOpened:!1,configuratorButton:!0,viewType:f.K.xd.xs,chartTitle:"",gridType:f.K.X.ie.Ez,gridTitle:"",chartType:f.K.td.xe.Dz,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:f.u.i.input.pa.Oa,datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm:ss",dateTimezoneOffset:null,timePattern:null,showCalculatedValuesButton:!0,showOutdatedDataAlert:!1,defaultHierarchySortName:f.u.i.xa.bc,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}}d.prototype.la=function(b,a){this[b]=a};d.prototype.R=function(b){return this[b]};d.prototype.jD=function(){for(var b in this.Ld)this[b]=this.Ld[b]};d.prototype.qta=
function(){if(!f.v(void 0))for(var b=0;b<(void 0).length;b++){var a=(void 0)[b];void 0!=this[a]&&(this[a]==this.Ld[a]||"object"==typeof this[a]&&x.Mc.og(this[a])&&x.Mc.og(this.Ld[a]))&&(this[a]=void 0)}else for(a in this.Ld)if(this[a]==this.Ld[a]||"object"==typeof this[a]&&x.Mc.og(this[a])&&x.Mc.og(this.Ld[a]))this[a]=void 0};d.tb=function(b){var a=new d;if(void 0==b)return a;null!=b.options&&(b=b.options);b instanceof d||(b=d.wl(b));null!=b.configuratorActive&&a.la("configuratorActive",b.configuratorActive);
null!=b.configuratorButton&&a.la("configuratorButton",b.configuratorButton);null!=b.viewType&&f.K.xd.Cg(b.viewType)&&a.la("viewType",b.viewType);null!=b.chartTitle&&a.la("chartTitle",b.chartTitle);null!=b.gridTitle&&a.la("gridTitle",b.gridTitle);null!=b.chartType&&a.la("chartType",f.K.td.xe.validate(b.chartType));null!=b.chartOneLevel&&a.la("chartOneLevel",b.chartOneLevel);null!=b.chartOneLevelTuple&&a.la("chartOneLevelTuple",b.chartOneLevelTuple);null!=b.chartOneLevelColumnTuple&&a.la("chartOneLevelColumnTuple",
b.chartOneLevelColumnTuple);null!=b.chartActiveMeasure&&a.la("chartActiveMeasure",b.chartActiveMeasure);null!=b.chartActiveMeasures&&a.la("chartActiveMeasures",b.chartActiveMeasures);null!=b.chartActiveTupleIndex&&a.la("chartActiveTupleIndex",b.chartActiveTupleIndex);null!=b.chartAutoRange&&a.la("chartAutoRange",b.chartAutoRange);null!=b.chartReversedAxes&&a.la("chartReversedAxes",b.chartReversedAxes);null!=b.chartPosition&&a.la("chartPosition",b.chartPosition);null!=b.chartAxisShortNumberFormat&&
a.la("chartAxisShortNumberFormat",b.chartAxisShortNumberFormat);null!=b.classicView&&1==b.classicView&&a.la("gridType",f.K.X.ie.Cu);null!=b.tableType&&b.tableType==f.K.X.ie.ih&&a.la("gridType",f.K.X.ie.ih);null!=b.flatView&&1==b.flatView&&a.la("gridType",f.K.X.ie.ih);null!=b.gridType&&a.la("gridType",b.gridType);null!=b.showAutoCalculationBar&&a.la("showAutoCalculationBar",b.showAutoCalculationBar);null!=b.liveFiltering&&a.la("liveFiltering",b.liveFiltering);null!=b.fieldListPosition&&a.la("fieldListPosition",
b.fieldListPosition);null!=b.showFilter&&a.la("showFilter",b.showFilter);null!=b.showDefaultSlice&&a.la("showDefaultSlice",b.showDefaultSlice);null!=b.useOlapFormatting&&a.la("useOlapFormatting",b.useOlapFormatting);null!=b.showMemberProperties&&a.la("showMemberProperties",b.showMemberProperties);null!=b.showEmptyData&&a.la("showEmptyData",b.showEmptyData);null!=b.showFilterInCharts&&a.la("showFilterInCharts",b.showFilterInCharts);null!=b.showAggregations&&a.la("showAggregations",b.showAggregations);
null!=b.showHierarchyCaptions&&a.la("showHierarchyCaptions",b.showHierarchyCaptions);null!=b.drillthroughMaxRows&&a.la("drillthroughMaxRows",b.drillthroughMaxRows);null!=b.showAllFieldsDrillThrough&&a.la("showAllFieldsDrillThrough",b.showAllFieldsDrillThrough);null!=b.showFieldListSearch&&a.la("showFieldListSearch",b.showFieldListSearch);null!=b.showChartDataLabels&&a.la("showChartDataLabels",b.showChartDataLabels);null!=b.showAllChartLabels&&a.la("showAllChartLabels",b.showAllChartLabels);null!=
b.chartMultipleMeasures&&a.la("chartMultipleMeasures",b.chartMultipleMeasures);null!=b.showHeaders&&a.la("showHeaders",b.showHeaders);null!=b.showReportFiltersArea&&a.la("showReportFiltersArea",b.showReportFiltersArea);null!=b.showExtraTotalLabels&&a.la("showExtraTotalLabels",b.showExtraTotalLabels);null!=b.grouping&&a.la("grouping",b.grouping);null!=b.editing&&a.la("editing",b.editing);null!=b.drillThrough&&a.la("drillThrough",b.drillThrough);null!=b.showDrillThroughConfigurator&&a.la("showDrillThroughConfigurator",
b.showDrillThroughConfigurator);null!=b.sorting&&(a.la("sorting",b.sorting),"true"==a.R("sorting").toString().toLowerCase()&&a.la("sorting","on"),"false"==a.R("sorting").toString().toLowerCase()&&a.la("sorting","off"));null!=b.dragging&&a.la("dragging",b.dragging);null!=b.showHierarchies&&a.la("showHierarchies",b.showHierarchies);null!=b.showChartsWarning&&a.la("showChartsWarning",b.showChartsWarning);null!=b.showChartLegend&&a.la("showChartLegend",b.showChartLegend);null!=b.showChartLegendButton&&
a.la("showChartLegendButton",b.showChartLegendButton);null!=b.saveAllFormats&&a.la("saveAllFormats",b.saveAllFormats);null!=b.calculatedValuesOLAP&&a.la("calculatedValuesOLAP",b.calculatedValuesOLAP);null!=b.includeEmptySubtotalsOLAP&&a.la("includeEmptySubtotalsOLAP",b.includeEmptySubtotalsOLAP);null!=b.showChartOneMeasureSelection&&a.la("showChartOneMeasureSelection",b.showChartOneMeasureSelection);null!=b.showChartMeasures&&a.la("showChartMeasures",b.showChartMeasures);null!=b.showTotals&&(a.la("showTotals",
b.showTotals),"true"==a.R("showTotals").toString().toLowerCase()&&a.la("showTotals","on"),"false"==a.R("showTotals").toString().toLowerCase()&&a.la("showTotals","off"));null!=b.showGrandTotals&&(a.la("showGrandTotals",b.showGrandTotals),"true"==a.R("showGrandTotals").toString().toLowerCase()&&a.la("showGrandTotals","on"),"false"==a.R("showGrandTotals").toString().toLowerCase()&&a.la("showGrandTotals","off"));null!=b.defaultDateType&&a.la("defaultDateType",b.defaultDateType);null!=b.strictDataTypes&&
a.la("strictDataTypes",b.strictDataTypes);null!=b.datePattern&&a.la("datePattern",b.datePattern);null!=b.dateTimePattern&&a.la("dateTimePattern",b.dateTimePattern);null!=b.dateTimezoneOffset&&a.la("dateTimezoneOffset",b.dateTimezoneOffset);null!=b.timePattern&&a.la("timePattern",b.timePattern);null!=b.showCalculatedValuesButton&&a.la("showCalculatedValuesButton",b.showCalculatedValuesButton);null!=b.showOutdatedDataAlert&&a.la("showOutdatedDataAlert",b.showOutdatedDataAlert);null!=b.defaultHierarchySortName&&
a.la("defaultHierarchySortName",b.defaultHierarchySortName);null!=b.showAggregationLabels&&a.la("showAggregationLabels",b.showAggregationLabels);null!=b.grandTotalsPosition&&a.la("grandTotalsPosition",b.grandTotalsPosition);null!=b.columnTotalsPosition&&a.la("columnTotalsPosition",b.columnTotalsPosition);f.v(b.filterWeekOffset)||a.la("filterWeekOffset",b.filterWeekOffset);f.v(b.filterDateFormat)||a.la("filterDateFormat",b.filterDateFormat);f.v(b.filterLiveSearch)||a.la("filterLiveSearch",b.filterLiveSearch);
f.v(b.caseSensitiveMembers)||a.la("caseSensitiveMembers",b.caseSensitiveMembers);f.v(b.validateFormulas)||a.la("validateFormulas",b.validateFormulas);f.v(b.simplifyFieldListFolders)||a.la("simplifyFieldListFolders",b.simplifyFieldListFolders);f.v(b.validateReportFiles)||a.la("validateReportFiles",b.validateReportFiles);f.v(b.allowBrowsersCache)||a.la("allowBrowsersCache",b.allowBrowsersCache);f.v(b.showEmptyValues)||a.la("showEmptyValues",b.showEmptyValues);f.v(b.distinguishNullUndefinedEmpty)||a.la("distinguishNullUndefinedEmpty",
b.distinguishNullUndefinedEmpty);f.v(b.useCaptionsInCalculatedValueEditor)||a.la("useCaptionsInCalculatedValueEditor",b.useCaptionsInCalculatedValueEditor);!f.v(b.expandExecutionTimeout)&&b.expandExecutionTimeout>a.Ld.expandExecutionTimeout&&a.la("expandExecutionTimeout",parseInt(b.expandExecutionTimeout));f.v(b.readOnly)||a.la("readOnly",b.readOnly);return a};d.wl=function(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.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.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);f.v(b.filterWeekOffset)||(a.filterWeekOffset=b.filterWeekOffset);f.v(b.filterDateFormat)||(a.filterDateFormat=b.filterDateFormat);
f.v(b.filterLiveSearch)||(a.filterLiveSearch=b.filterLiveSearch);f.v(b.validateFormulas)||(a.validateFormulas=b.validateFormulas);f.v(b.caseSensitiveMembers)||(a.caseSensitiveMembers=b.caseSensitiveMembers);f.v(b.simplifyFieldListFolders)||(a.simplifyFieldListFolders=b.simplifyFieldListFolders);f.v(b.validateReportFiles)||(a.validateReportFiles=b.validateReportFiles);f.v(b.allowBrowsersCache)||(a.allowBrowsersCache=b.allowBrowsersCache);f.v(b.showEmptyValues)||(a.showEmptyValues=b.showEmptyValues);
f.v(b.distinguishNullUndefinedEmpty)||(a.distinguishNullUndefinedEmpty=b.distinguishNullUndefinedEmpty);f.v(b.useCaptionsInCalculatedValueEditor)||(a.useCaptionsInCalculatedValueEditor=b.useCaptionsInCalculatedValueEditor);f.v(b.expandExecutionTimeout)||(a.expandExecutionTimeout=b.expandExecutionTimeout);f.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.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)}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=[];var e;Array.isArray(c.activeMeasure)?e=c.activeMeasure:"object"===typeof c.activeMeasure?e=[c.activeMeasure]:"string"===typeof c.activeMeasure&&
(e=c.activeMeasure.split(","));if(!f.v(e))for(var g=0;g<e.length;g++)if(null!=e[g].uniqueName){var l=new k.bb.Ig(e[g].uniqueName);null!=e[g].aggregation&&(l.$=e[g].aggregation);a.chartActiveMeasures.push(l)}else a.chartActiveMeasures.push(new k.bb.Ig(e[g]))}else a.chartActiveMeasure=new k.bb.Ig,null!=c.activeMeasure.uniqueName?(a.chartActiveMeasure.uniqueName=c.activeMeasure.uniqueName,null!=c.activeMeasure.aggregation&&(a.chartActiveMeasure.$=c.activeMeasure.aggregation)):a.chartActiveMeasure.uniqueName=
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)}f.v(b.filter)||(b=b.filter,f.v(b.weekOffset)||(a.filterWeekOffset=b.weekOffset),f.v(b.dateFormat)||(a.filterDateFormat=b.dateFormat),f.v(b.liveSearch)||(a.filterLiveSearch=b.liveSearch));return a};d.prototype.La=function(){var b={};null!=this.viewType&&
(b.viewType=this.viewType);var a={};this.gridType===f.K.X.ie.Ez?a.type=f.K.X.ie.Ez:this.gridType===f.K.X.ie.Cu?a.type=f.K.X.ie.Cu:this.gridType===f.K.X.ie.ih&&(a.type=f.K.X.ie.ih);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);x.Mc.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==f.K.xd.fn&&null!=this.chartPosition&&(a.position=this.chartPosition);this.chartType==f.K.td.xe.Ou&&null!=this.chartActiveTupleIndex&&(a.pieDataIndex=this.chartActiveTupleIndex.toString());if(1==this.chartMultipleMeasures){if(null!=this.chartActiveMeasures){for(var c=[],e=0;e<this.chartActiveMeasures.length;e++){var g=
{};g.uniqueName=this.chartActiveMeasures[e].uniqueName;null!=this.chartActiveMeasures[e].$&&""!==this.chartActiveMeasures[e].$&&(g.aggregation=this.chartActiveMeasures[e].$);c.push(g)}0<c.length&&(a.activeMeasure=c)}}else null!=this.chartActiveMeasure&&(g={},g.uniqueName=this.chartActiveMeasure.uniqueName,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(","));x.Mc.og(a)||(b.chart=a);a={};f.v(this.filterWeekOffset)||(a.weekOffset=this.filterWeekOffset);f.v(this.filterDateFormat)||(a.dateFormat=this.filterDateFormat);f.v(this.filterLiveSearch)||(a.liveSearch=this.filterLiveSearch);x.Mc.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);f.v(this.validateFormulas)||(b.validateFormulas=this.validateFormulas);f.v(this.caseSensitiveMembers)||(b.caseSensitiveMembers=this.caseSensitiveMembers);f.v(this.simplifyFieldListFolders)||(b.simplifyFieldListFolders=this.simplifyFieldListFolders);f.v(this.validateReportFiles)||(b.validateReportFiles=this.validateReportFiles);f.v(this.allowBrowsersCache)||(b.allowBrowsersCache=this.allowBrowsersCache);f.v(this.showEmptyValues)||
(b.showEmptyValues=this.showEmptyValues);f.v(this.distinguishNullUndefinedEmpty)||(b.distinguishNullUndefinedEmpty=this.distinguishNullUndefinedEmpty);f.v(this.useCaptionsInCalculatedValueEditor)||(b.useCaptionsInCalculatedValueEditor=this.useCaptionsInCalculatedValueEditor);!f.v(this.expandExecutionTimeout)&&this.expandExecutionTimeout>this.Ld.expandExecutionTimeout&&(b.expandExecutionTimeout=this.expandExecutionTimeout);f.v(this.readOnly)||(b.readOnly=this.readOnly);return b};d.Qj=function(b){var a=
b.find("params"),c=new d;0!=a.find("param[name=configuratorActive]").length&&c.la("configuratorActive",f.O.Rc(a.find("param[name=configuratorActive]").text()));0!=a.find("param[name=configuratorButton]").length&&c.la("configuratorButton",f.O.Rc(a.find("param[name=configuratorButton]").text()));0!=a.find("param[name=viewType]").length&&c.la("viewType",a.find("param[name=viewType]").text());0!=a.find("param[name=gridTitle]").length&&c.la("gridTitle",a.find("param[name=gridTitle]").text());0!=a.find("param[name=showFilter]").length&&
c.la("showFilter",f.O.Rc(a.find("param[name=showFilter]").text()));0!=a.find("param[name=showFilterInCharts]").length&&c.la("showFilterInCharts",f.O.Rc(a.find("param[name=showFilterInCharts]").text()));0!=a.find("param[name=showAggregations]").length&&c.la("showAggregations",f.O.Rc(a.find("param[name=showAggregations]").text()));0!=a.find("param[name=showHierarchyCaptions]").length&&c.la("showHierarchyCaptions",f.O.Rc(a.find("param[name=showHierarchyCaptions]").text()));0!=a.find("param[name=showHeaders]").length&&
c.la("showHeaders",f.O.Rc(a.find("param[name=showHeaders]").text()));0!=a.find("param[name=showReportFiltersArea]").length&&c.la("showReportFiltersArea",f.O.Rc(a.find("param[name=showReportFiltersArea]").text()));0!=a.find("param[name=showExtraTotalLabels]").length&&c.la("showExtraTotalLabels",f.O.Rc(a.find("param[name=showExtraTotalLabels]").text()));0!=a.find("param[name=editing]").length&&c.la("editing",f.O.Rc(a.find("param[name=editing]").text()));0!=a.find("param[name=grouping]").length&&c.la("grouping",
f.O.Rc(a.find("param[name=grouping]").text()));0!=a.find("param[name=drillThrough]").length&&c.la("drillThrough",f.O.Rc(a.find("param[name=drillThrough]").text()));0!=a.find("param[name=showDrillThroughConfigurator]").length&&c.la("showDrillThroughConfigurator",f.O.Rc(a.find("param[name=showDrillThroughConfigurator]").text()));0!=a.find("param[name=sorting]").length&&c.la("sorting",a.find("param[name=sorting]").text());0!=a.find("param[name=showHierarchies]").length&&c.la("showHierarchies",f.O.Rc(a.find("param[name=showHierarchies]").text()));
0!=a.find("param[name=showTotals]").length&&(c.la("showTotals",a.find("param[name=showTotals]").text()),"true"==c.R("showTotals").toString().toLowerCase()&&c.la("showTotals","on"),"false"==c.R("showTotals").toString().toLowerCase()&&c.la("showTotals","off"));0!=a.find("param[name=showGrandTotals]").length&&(c.la("showGrandTotals",a.find("param[name=showGrandTotals]").text()),"true"==c.R("showGrandTotals").toString().toLowerCase()&&c.la("showGrandTotals","on"),"false"==c.R("showGrandTotals").toString().toLowerCase()&&
c.la("showGrandTotals","off"));0!=a.find("param[name=showDefaultSlice]").length&&c.la("showDefaultSlice",f.O.Rc(a.find("param[name=showDefaultSlice]").text()));0!=a.find("param[name=useOlapFormatting]").length&&c.la("useOlapFormatting",f.O.Rc(a.find("param[name=useOlapFormatting]").text()));0!=a.find("param[name=showMemberProperties]").length&&c.la("showMemberProperties",f.O.Rc(a.find("param[name=showMemberProperties]").text()));0!=a.find("param[name=showEmptyData]").length&&c.la("showEmptyData",
f.O.Rc(a.find("param[name=showEmptyData]").text()));0!=a.find("param[name=showChartDataLabels]").length&&c.la("showChartDataLabels",f.O.Rc(a.find("param[name=showChartDataLabels]").text()));0!=a.find("param[name=showAllChartLabels]").length&&c.la("showAllChartLabels",f.O.Rc(a.find("param[name=showAllChartLabels]").text()));0!=a.find("param[name=strictDataTypes]").length&&c.la("strictDataTypes",f.O.Rc(a.find("param[name=strictDataTypes]").text()));0!=a.find("param[name=defaultDateType]").length&&c.la("defaultDateType",
a.find("param[name = defaultDateType]").text());0!=a.find("param[name=datePattern]").length&&c.la("datePattern",a.find("param[name = datePattern]").text());0!=a.find("param[name=dateTimePattern]").length&&c.la("dateTimePattern",a.find("param[name = dateTimePattern]").text());0!=a.find("param[name=classicView]").length&&1==f.O.Rc(a.find("param[name=classicView]").text())&&c.la("gridType",f.K.X.ie.Cu);b=b.find("dataSource");void 0!==b.attr("tableType")&&b.attr("tableType")==f.K.X.ie.ih&&c.la("gridType",
f.K.X.ie.ih);0!=a.find("param[name=flatView]").length&&1==f.O.Rc(a.find("param[name=flatView]").text())&&c.la("gridType",f.K.X.ie.ih);0!=a.find("param[name=defaultHierarchySortName]").length?c.la("defaultHierarchySortName",f.u.i.xa.Cg(a.find("param[name = defaultHierarchySortName]").text())?a.find("param[name=defaultHierarchySortName]").text():f.u.i.xa.bc):c.la("defaultHierarchySortName",c.R("gridType")==f.K.X.ie.ih?f.u.i.xa.Zc:f.u.i.xa.bc);0!=a.find("param[name=showCalculatedValuesButton]").length&&
c.la("showCalculatedValuesButton",f.O.Rc(a.find("param[name = showCalculatedValuesButton]").text()));0!=a.find("param[name=showOutdatedDataAlert]").length&&c.la("showOutdatedDataAlert",f.O.Rc(a.find("param[name = showOutdatedDataAlert]").text()));if(0!=a.find("param[name=chartType]").length){var e=a.find("param[name=chartType]");c.la("chartType",e.text());if(void 0!==e.attr("activeMeasure")){c.la("chartActiveMeasure",new k.bb.Ig(e.attr("activeMeasure")));void 0!==e.attr("activeMeasureAggregation")&&
c.la("chartActiveMeasure.aggregation",e.attr("activeMeasureAggregation"));var g=[],l=e.attr("activeMeasure").split(","),m=void 0!==e.attr("activeMeasureAggregation")?e.attr("activeMeasureAggregation").split(","):[];for(b=0;b<l.length;b++){var n=new k.bb.Ig(l[b]);m[b]&&(n.$=m[b]);g.push(n)}0<g.length&&c.la("chartActiveMeasures",g)}void 0!==e.attr("pieDataIndex")&&c.la("chartActiveTupleIndex",parseInt(e.attr("pieDataIndex")));void 0!==e.attr("position")&&c.la("chartPosition",e.attr("position"));if(void 0!==
e.attr("chartOneLevelTuple")){e=e.attr("chartOneLevelTuple").split(",");c.la("chartOneLevelTuple",[]);g=[];for(b=0;b<e.length;b++)g[b]=parseInt(e[b]);c.la("chartOneLevelTuple",g)}}0!=a.find("param[name=chartOneLevel]").length&&c.la("chartOneLevel",f.O.Rc(a.find("param[name=chartOneLevel]").text()));0!=a.find("param[name=chartTitle]").length&&c.la("chartTitle",a.find("param[name=chartTitle]").text());0!=a.find("param[name=chartMultipleMeasures]").length&&c.la("chartMultipleMeasures",f.O.Rc(a.find("param[name=chartMultipleMeasures]").text()));
0!=a.find("param[name=chartAutoRange]").length&&c.la("chartAutoRange",f.O.Rc(a.find("param[name=chartAutoRange]").text()));0!=a.find("param[name=chartReversedAxes]").length&&c.la("chartReversedAxes",f.O.Rc(a.find("param[name=chartReversedAxes]").text()));0!=a.find("param[name=showChartsWarning]").length&&c.la("showChartsWarning",f.O.Rc(a.find("param[name=showChartsWarning]").text()));0!=a.find("param[name=showChartOneMeasureSelection]").length&&c.la("showChartOneMeasureSelection",f.O.Rc(a.find("param[name=showChartOneMeasureSelection]").text()));
0!=a.find("param[name=showChartMeasures]").length&&c.la("showChartMeasures",f.O.Rc(a.find("param[name=showChartMeasures]").text()));0!=a.find("param[name=showChartLegendButton]").length&&c.la("showChartLegendButton",f.O.Rc(a.find("param[name=showChartLegendButton]").text()));0!=a.find("param[name=saveAllFormats]").length&&c.la("saveAllFormats",f.O.Rc(a.find("param[name=saveAllFormats]").text()));0!=a.find("param[name=calculatedValuesOLAP]").length&&c.la("calculatedValuesOLAP",f.O.Rc(a.find("param[name=calculatedValuesOLAP]").text()));
0!=a.find("param[name=includeEmptySubtotalsOLAP]").length&&c.la("includeEmptySubtotalsOLAP",f.O.Rc(a.find("param[name=includeEmptySubtotalsOLAP]").text()));return c};d.prototype.co=function(){var b=D.aa.create("<params/>");null!=this.R("configuratorActive")&&b.append(D.aa.create("<param/>").attr("name","configuratorActive").text(this.R("configuratorActive")));null!=this.R("configuratorButton")&&b.append(D.aa.create("<param/>").attr("name","configuratorButton").text(this.R("configuratorButton")));
null!=this.R("viewType")&&b.append(D.aa.create("<param/>").attr("name","viewType").text(this.R("viewType")));null!=this.R("gridTitle")&&b.append(D.aa.create("<param/>").attr("name","gridTitle").text(this.R("gridTitle")));null!=this.R("chartTitle")&&b.append(D.aa.create("<param/>").attr("name","chartTitle").text(this.R("chartTitle")));null!=this.R("showFilter")&&b.append(D.aa.create("<param/>").attr("name","showFilter").text(this.R("showFilter")));null!=this.R("showFilterInCharts")&&b.append(D.aa.create("<param/>").attr("name",
"showFilterInCharts").text(this.R("showFilterInCharts")));null!=this.R("showAggregations")&&b.append(D.aa.create("<param/>").attr("name","showAggregations").text(this.R("showAggregations")));null!=this.R("showHierarchyCaptions")&&b.append(D.aa.create("<param/>").attr("name","showHierarchyCaptions").text(this.R("showHierarchyCaptions")));null!=this.R("chartOneLevel")&&b.append(D.aa.create("<param/>").attr("name","chartOneLevel").text(this.R("chartOneLevel")));null!=this.R("chartAutoRange")&&b.append(D.aa.create("<param/>").attr("name",
"chartAutoRange").text(this.R("chartAutoRange")));null!=this.R("chartReversedAxes")&&b.append(D.aa.create("<param/>").attr("name","chartReversedAxes").text(this.R("chartReversedAxes")));null!=this.R("chartMultipleMeasures")&&b.append(D.aa.create("<param/>").attr("name","chartMultipleMeasures").text(this.R("chartMultipleMeasures")));null!=this.R("showHeaders")&&b.append(D.aa.create("<param/>").attr("name","showHeaders").text(this.R("showHeaders")));null!=this.R("showReportFiltersArea")&&b.append(D.aa.create("<param/>").attr("name",
"showReportFiltersArea").text(this.R("showReportFiltersArea")));null!=this.R("showExtraTotalLabels")&&b.append(D.aa.create("<param/>").attr("name","showExtraTotalLabels").text(this.R("showExtraTotalLabels")));null!=this.R("editing")&&b.append(D.aa.create("<param/>").attr("name","editing").text(this.R("editing")));null!=this.R("grouping")&&b.append(D.aa.create("<param/>").attr("name","grouping").text(this.R("grouping")));null!=this.R("drillThrough")&&b.append(D.aa.create("<param/>").attr("name","drillThrough").text(this.R("drillThrough")));
null!=this.R("showDrillThroughConfigurator")&&b.append(D.aa.create("<param/>").attr("name","showDrillThroughConfigurator").text(this.R("showDrillThroughConfigurator")));null!=this.R("sorting")&&b.append(D.aa.create("<param/>").attr("name","sorting").text(this.R("sorting")));null!=this.R("showTotals")&&b.append(D.aa.create("<param/>").attr("name","showTotals").text(this.R("showTotals")));null!=this.R("showHierarchies")&&b.append(D.aa.create("<param/>").attr("name","showHierarchies").text(this.R("showHierarchies")));
null!=this.R("showGrandTotals")&&b.append(D.aa.create("<param/>").attr("name","showGrandTotals").text(this.R("showGrandTotals")));null!=this.R("defaultDateType")&&b.append(D.aa.create("<param/>").attr("name","defaultDateType").text(this.R("defaultDateType")));null!=this.R("strictDataTypes")&&b.append(D.aa.create("<param/>").attr("name","strictDataTypes").text(this.R("strictDataTypes")));null!=this.R("datePattern")&&b.append(D.aa.create("<param/>").attr("name","datePattern").text(this.R("datePattern")));
null!=this.R("dateTimePattern")&&b.append(D.aa.create("<param/>").attr("name","dateTimePattern").text(this.R("dateTimePattern")));null!=this.R("showChartsWarning")&&b.append(D.aa.create("<param/>").attr("name","showChartsWarning").text(this.R("showChartsWarning")));null!=this.R("showChartOneMeasureSelection")&&b.append(D.aa.create("<param/>").attr("name","showChartOneMeasureSelection").text(this.R("showChartOneMeasureSelection")));null!=this.R("showChartMeasures")&&b.append(D.aa.create("<param/>").attr("name",
"showChartMeasures").text(this.R("showChartMeasures")));null!=this.R("showChartLegendButton")&&b.append(D.aa.create("<param/>").attr("name","showChartLegendButton").text(this.R("showChartLegendButton")));null!=this.R("saveAllFormats")&&b.append(D.aa.create("<param/>").attr("name","saveAllFormats").text(this.R("saveAllFormats")));1==this.R("calculatedValuesOLAP")&&b.append(D.aa.create("<param/>").attr("name","calculatedValuesOLAP").text(this.R("calculatedValuesOLAP")));1==this.R("includeEmptySubtotalsOLAP")&&
b.append(D.aa.create("<param/>").attr("name","includeEmptySubtotalsOLAP").text(this.R("includeEmptySubtotalsOLAP")));null!=this.R("defaultHierarchySortName")&&b.append(D.aa.create("<param/>").attr("name","defaultHierarchySortName").text(this.R("defaultHierarchySortName")));null!=this.R("gridType")&&this.R("gridType")==f.K.X.ie.Cu&&b.append(D.aa.create("<param/>").attr("name","classicView").text(!0));null!=this.R("gridType")&&this.R("gridType")==f.K.X.ie.ih&&b.append(D.aa.create("<param/>").attr("name",
"flatView").text(!0));null!=this.R("showDefaultSlice")&&b.append(D.aa.create("<param/>").attr("name","showDefaultSlice").text(this.R("showDefaultSlice")));null!=this.R("showEmptyData")&&b.append(D.aa.create("<param/>").attr("name","showEmptyData").text(this.R("showEmptyData")));null!=this.R("showMemberProperties")&&b.append(D.aa.create("<param/>").attr("name","showMemberProperties").text(this.R("showMemberProperties")));null!=this.R("useOlapFormatting")&&b.append(D.aa.create("<param/>").attr("name",
"useOlapFormatting").text(this.R("useOlapFormatting")));null!=this.R("showChartDataLabels")&&b.append(D.aa.create("<param/>").attr("name","showChartDataLabels").text(this.R("showChartDataLabels")));null!=this.R("showAllChartLabels")&&b.append(D.aa.create("<param/>").attr("name","showAllChartLabels").text(this.R("showAllChartLabels")));null!=this.R("showCalculatedValuesButton")&&b.append(D.aa.create("<param/>").attr("name","showCalculatedValuesButton").text(this.R("showCalculatedValuesButton")));null!=
this.R("showOutdatedDataAlert")&&b.append(D.aa.create("<param/>").attr("name","showOutdatedDataAlert").text(this.R("showOutdatedDataAlert")));var a=D.aa.create("<param/>").attr("name","chartType").text(null!=this.R("chartType")?this.R("chartType"):this.Ld.chartType);null!=this.R("chartActiveTupleIndex")&&a.attr("pieDataIndex",this.R("chartActiveTupleIndex").toString());a.attr("position",this.R("chartPosition"));if(this.R("chartMultipleMeasures")&&null!=this.R("chartActiveMeasures")){for(var c=[],
e=[],g=0;g<this.R("chartActiveMeasures").length;g++)c.push(this.R("chartActiveMeasures")[g].uniqueName),e.push(this.R("chartActiveMeasures")[g].$);0<c.length&&a.attr("activeMeasure",c.join(","));0<e.length&&a.attr("activeMeasureAggregation",e.join(","))}else null!=this.R("chartActiveMeasure")&&(a.attr("activeMeasure",this.R("chartActiveMeasure").uniqueName),null!=this.R("chartActiveMeasure").$&&""!=this.R("chartActiveMeasure").$&&a.attr("activeMeasureAggregation",this.R("chartActiveMeasure").$));
this.R("chartOneLevel")&&0<this.R("chartOneLevelTuple").length&&a.attr("chartOneLevelTuple",this.R("chartOneLevelTuple").join(","));b.append(a);return b};d.prototype.IC=function(b){for(var a in b)this.Ld.hasOwnProperty(a)&&void 0!=b[a]&&(this[a]=b[a])};h.Qp=d})(k.B||(k.B={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;if(null!=d.instance)throw Error("Singleton");return b}u(d,y.Fc);d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.dispose=function(){d.conditions=null;d.instance=null};d.add=function(b){null!=b&&(d.conditions.Pa(b.id,b),this.Ya())};d.get=function(b){return d.conditions.getItem(b)};d.remove=function(b){d.conditions.removeItem(b);this.Ya()};d.v3=function(){d.conditions=new f.nb;this.Ya()};d.oza=function(){for(var b=
[],a=0;a<d.conditions.length;a++){var c=d.conditions.ea(a);c.n1||b.push(c.La())}return b};d.Ya=function(){d.U().Wa(k.cc.fd.lm)};d.conditions=new f.nb;h.gm=d})(k.ta||(k.ta={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){this.id="";this.qt=this.bs=-1;this.qe=this.hierarchy=this.Xb=this.$=this.measure="";this.Sd=[];this.ZF=null}a.prototype.La=function(){var c={};c.id=this.id;c.row=this.bs;c.column=this.qt;void 0!==this.Tj&&(c.isTotal=this.Tj);c.measure=this.measure;c.aggregation=this.$;c.member=this.Xb;c.hierarchy=this.hierarchy;c.formula=this.qe;null!=this.format&&(c.format=this.format.La(),c.formatCSS=this.format.toString());return c};
a.tb=function(c){var e=new a;e.id=null!=c.id?c.id:f.O.aL();null!=c.row&&(e.bs=c.row);null!=c.column&&(e.qt=c.column);if(null!=c.isTotal){if(1==c.isTotal||1==c.isTotal)e.Tj=!0;if(0==c.isTotal||0==c.isTotal)e.Tj=!1}null!=c.measure&&(e.measure=c.measure);null!=c.aggregation&&(e.$=c.aggregation);null!=c.member&&(e.Xb=f.u.me.Or(c.member));null!=c.hierarchy&&(e.hierarchy=f.u.me.zg(c.hierarchy));e.qe=c.formula;null!=c.format&&(e.format="string"===typeof c.format?b.aS(c.format):b.tb(c.format));c=new x.BI;
e.Sd=c.parse(e.qe);return null==e.Sd?null:e};q.Object.defineProperties(a.prototype,{n1:{configurable:!0,enumerable:!0,get:function(){return-1<this.qe.toLowerCase().indexOf(f.u.i.jc.lP)||-1<this.qe.toLowerCase().indexOf(f.u.i.jc.mP)}}});d.Q5=a;b.tb=function(c){var e=new b;if(null==c)return e;null!=c.backgroundColor&&(e.backgroundColor=b.color(c.backgroundColor));null!=c.color&&(e.color=b.color(c.color));null!=c.fontFamily&&(e.fontFamily=c.fontFamily);null!=c.fontSize&&(e.fontSize=b.size(c.fontSize));
null!=c.italic&&c.italic&&(e.fontStyle="italic");null!=c.fontStyle&&(e.fontStyle=c.fontStyle);null!=c.bold&&c.bold&&(e.fontWeight="bold");null!=c.fontWeight&&(e.fontWeight=c.fontWeight);null!=c.padding&&(e.padding=b.size(Math.round(1.5*c.padding)));null!=c.textAlign&&(e.textAlign=c.textAlign);null!=c.textIndent&&(e.textIndent=b.size(c.textIndent));return e};b.aS=function(c){var e={};c=c.split(";");if(null!=c)for(var g=0;g<c.length;g++){var l=c[g].split(":")[0];""!=l&&(e[l]=c[g].split(":")[1])}return b.tb(e)};
b.prototype.La=function(){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};
b.prototype.Iha=function(){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};b.prototype.toString=function(){var c="",e=this.Iha(),g;for(g in e)c+=g+":"+e[g]+";";return c};b.color=function(c){return c.replace("0x","#")};b.size=function(c){return"number"==typeof c?c+"px":"string"==typeof c&&0>c.indexOf("px")?c.trim()+"px":c};d.TKa=b})(h.W||(h.W={}))})(k.ta||(k.ta={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){var h;(function(d){function b(){var a=y.Fc.call(this)||this;if(null!=b.instance)throw Error("Singleton");return a}u(b,y.Fc);b.U=function(){null==b.instance&&(b.instance=new b);return b.instance};b.dispose=function(){b.rowFilterSizes=null;b.rowHeaderSizes=null;b.rowSizes=null;b.rowSizesByIdx=null;b.sQ=null;b.XE=null;b.columnHeaderSizes=null;b.columnSizes=null;b.columnSizesByIdx=null;b.AP=null;b.CE=null;b.instance=null};b.clear=function(){b.rowSizes={};b.columnSizes={};b.XE=
{};b.sQ={};b.CE={};b.AP={};b.rowSizesByIdx={};b.columnSizesByIdx={};b.rowHeaderSizes=[];b.columnHeaderSizes=[];b.rowFilterSizes=[]};b.cZ=function(a){if(b.C$(a.rowSizes)||b.C$(a.columnSizes))b.XE=b.daa(a.rowSizes),b.CE=b.daa(a.columnSizes),b.Qfa();else if(b.D$(a.rowSizes)||b.D$(a.columnSizes))b.XE=a.rowSizes,b.CE=a.columnSizes,b.Qfa();b.rowSizesByIdx=a.rowSizesByIdx;b.columnSizesByIdx=a.columnSizesByIdx;b.rowHeaderSizes=a.rowHeaderSizes;b.columnHeaderSizes=a.columnHeaderSizes;b.rowFilterSizes=a.rowFilterSizes};
b.Qfa=function(){k.Ta.U().Ga.cD==k.cc.fd.Oh?this.ip():f.u.Na.U().N(f.u.cg.hk,b.ip,1)};b.C$=function(a){var c=/[A-Za-z]+/,e;for(e in a)if(-1<a[e].toString().search(c))return!0;return!1};b.D$=function(a){var c=/[A-Za-z]+/,e;for(e in a)if(-1<e.toString().search(c))return!0;return!1};b.daa=function(a){var c={};if(null!=a)for(var e in a){var g=a[e];if(Array.isArray(g)&&0<g.length){var l=parseInt(g.pop());c[g.toString()]=l}}return c};b.ip=function(){f.u.Na.U().mb(f.u.cg.hk,b.ip);b.rowSizes=b.tb(f.u.i.ia.Ia);
b.XE={};b.columnSizes=b.tb(f.u.i.ia.Sa);b.CE={}};b.tb=function(a){var c={},e=a==f.u.i.ia.Ia?b.XE:b.CE,g=f.u.Na.U().sa.ad(),l;for(l in e){var m=l.split(","),n=e[l],p=f.u.Na.U().sa.axes.getItem(a).Ra;if(p&&!k.B.C.oc)if(f.u.i.ca.rz(m[m.length-1])||""==m[m.length-1]&&(""==m[m.length-2]||null!=g.find(function(E){return E.uniqueName===m[m.length-2]}))){var t=new k.bb.Ig(m[m.length-2],m[m.length-1]);m.splice(m.length-2,2)}else t=new k.bb.Ig(m[m.length-1]),m.splice(m.length-1,1);for(var r=!1,v=[],z=0;z<m.length;z++)if(k.B.C.oc)if(a==
f.u.i.ia.Ia)v.push(m[z]);else{var B=m[z];B=f.u.Na.U().qa.le.indexOf(B);if(-1==B){r=!0;break}v.push(B)}else{B=f.u.me.Or(m[z]);var C=a==f.u.i.ia.Ia?f.u.Na.U().sa.vb.ea(z):f.u.Na.U().sa.Cb.ea(z);if(void 0==C){r=!0;break}B=C.Db(B);if(null==B){r=!0;break}B.Wb?v.push(""):v.push(B.ordinal.toString())}if(!r){if(p&&!k.B.C.oc){p=(p=f.u.Na.U().sa.Zh(t))?p.index:-1;if(-1==p&&""!=t.uniqueName)continue;v.push(p)}c[v.toString()]=n}}return c};b.La=function(a){var c={},e=a==f.u.i.ia.Ia?b.rowSizes:b.columnSizes,g=
f.v(f.u.Na.U().sa)?[]:f.u.Na.U().sa.ad(),l;for(l in e){var m=l.split(","),n=e[l],p=f.u.Na.U().sa.axes.getItem(a).Ra;if(p&&!k.B.C.oc){var t=parseInt(m[m.length-1]);m.splice(m.length-1,1)}for(var r=!1,v=[],z=0;z<m.length;z++)if(k.B.C.oc)if(a==f.u.i.ia.Ia)v.push(m[z]);else{var B=""===m[z]?0:parseInt(m[z]);B=f.u.Na.U().qa.le[B];if(null==B){r=!0;break}v.push(B)}else{B=""===m[z]?0:parseInt(m[z]);var C=a==f.u.i.ia.Ia?f.u.Na.U().sa.vb.ea(z):f.u.Na.U().sa.Cb.ea(z);if(null==C){r=!0;break}B=C.va(B);if(null==
B){r=!0;break}v.push(B.Xi)}if(!r){if(p&&!k.B.C.oc){if(t>=g.length)continue;-1==t&&1==g.length&&(t=0);m=g[t];v.push(m?m.uniqueName:"");v.push(m?m.$:"")}c[v.toString()]=n}}return c};b.zG=function(){var a=new k.bb.Wu;a.rowSizes=h.nd.mga;a.columnSizes=h.nd.U$;a.rowHeaderSizes=h.nd.rowHeaderSizes;a.columnHeaderSizes=h.nd.columnHeaderSizes;a.rowSizesByIdx=h.nd.rowSizesByIdx;a.columnSizesByIdx=h.nd.columnSizesByIdx;a.rowFilterSizes=h.nd.rowFilterSizes;a.tD=h.nd.tD;return a};q.Object.defineProperties(b,{mga:{configurable:!0,
enumerable:!0,get:function(){return this.sQ=b.La(f.u.i.ia.Ia)}},U$:{configurable:!0,enumerable:!0,get:function(){return this.AP=b.La(f.u.i.ia.Sa)}}});b.rowSizes={};b.columnSizes={};b.tD=0;b.rowSizesByIdx={};b.columnSizesByIdx={};b.rowHeaderSizes=[];b.columnHeaderSizes=[];b.rowFilterSizes=[];b.XE={};b.sQ={};b.CE={};b.AP={};d.nd=b})(h=k.size||(k.size={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.load=function(b,a){if(!f.v(d.XR[b]))return a(null,d.XR[b]);var c=new D.r8;c.N(y.da.Jc,function(){try{var e=f.O.Cva(new Uint8Array(c.response)),g=window.btoa(e);d.XR[b]={name:b.substring(b.lastIndexOf("/")+1,b.lastIndexOf(".")),filename:b.substr(b.lastIndexOf("/")+1),content:g};a(null,d.XR[b])}catch(l){a(l)}});c.N(y.da.ya,function(){a({message:k.A.j.fna,name:null})});c.load(b)};d.XR={};h.P6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w=
{}));
(function(f){(function(k){(function(h){function d(b,a){this.jQ=b;this.iY=a}d.prototype.Sza=function(){var b=void 0===b?d.N8:b;return Math.round(this.Yj*b/d.y9)};d.prototype.Uya=function(){var b=void 0===b?d.N8:b;return Math.round(this.bh*b/d.y9)};d.jia=function(b){return void 0!=b&&d.A9.hasOwnProperty(b.toLocaleLowerCase())?b.toLocaleLowerCase():d.Iva};d.tG=function(b){return this.A9[b]};q.Object.defineProperties(d.prototype,{Yj:{configurable:!0,enumerable:!0,get:function(){return this.jQ}},bh:{configurable:!0,
enumerable:!0,get:function(){return this.iY}}});q.Object.defineProperties(d,{Iva:{configurable:!0,enumerable:!0,get:function(){return d.jqa}}});d.y9=25.4;d.jqa="a4";d.N8=72;d.A9={a0:new d(841,1189),a1:new d(594,841),a2:new d(420,594),a3:new d(297,420),a4:new d(210,297),a5:new d(148,210)};h.ax=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e){c=void 0===c?!1:c;e=void 0===e?null:e;switch(a.type){case h.Li.Lu:d.NR(b,a,c,e);break;case h.Li.Vz:d.sba(b,a,c,e);break;case h.Li.dA:d.Jwa(b,a,c,e)}};d.MZ=function(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 e=f.K.X.W.Yc.ly(a[c],["fill","stroke","shape-rendering","stroke-width"]);x.Bd().Di&&(e+="stroke-width: 1px");
a[c].attr("style",e);a[c].attr("class","")}a=b.find("text",!0);for(c=0;c<a.length;c++)b=parseInt(a[c].P("font-size")),a[c].attr("style",f.K.X.W.Yc.ly(a[c],"font-family font-weight fill color text-anchor text-rendering".split(" "))+"white-space:nowrap;"),a[c].attr("font-size",b),a[c].attr("class","")};d.bZ=function(b,a){b.P("font-family",a.P("font-family"));b.P("font-size",a.P("font-size"));b.P("color",a.P("color"));b.P("border-top",a.P("border-top"));b.P("background",a.P("background"));b.P("padding-top",
a.P("padding-top"));b.P("padding-left",a.P("padding-left"));b.P("padding-right",a.P("padding-right"));b.P("padding-bottom",a.P("padding-bottom"));b.P("overflow","auto");for(var c=a.find(".fm-icon-display"),e=b.find(".fm-icon-display",!0),g=0;g<e.length;g++)e[g].P("display",c.P("display")),e[g].P("width",c.P("width")),e[g].P("height",c.P("height")),e[g].P("margin-right",c.P("margin-right")),e[g].P("vertical-align",c.P("vertical-align")),e[g].P("border-radius",c.P("border-radius")),e[g].text("");c=
a.find(".fm-text-display");e=b.find(".fm-text-display",!0);for(g=0;g<e.length;g++)e[g].P("color",c.P("color")),e[g].P("font-family",c.P("font-family")),e[g].P("font-size",c.P("font-size")),e[g].P("vertical-align",c.P("vertical-align")),e[g].P("margin-bottom",c.P("margin-bottom")||0);c=a.find("ul");e=b.find("ul",!0);for(g=0;g<e.length;g++)e[g].P("list-style-type",c.P("list-style-type")),e[g].P("padding-top",c.P("padding-top")||0),e[g].P("padding-right",c.P("padding-right")||0),e[g].P("padding-bottom",
c.P("padding-bottom")||0),e[g].P("padding-left",c.P("padding-left")||0),e[g].P("margin-top",c.P("margin-top")||0),e[g].P("margin-right",c.P("margin-right")||0),e[g].P("margin-bottom",c.P("margin-bottom")||0),e[g].P("margin-left",c.P("margin-left")||0);c=a.find("td");e=b.find("td",!0);for(g=0;g<e.length;g++)e[g].P("padding-top",c.P("padding-top")),e[g].P("padding-right",c.P("padding-right")),e[g].P("padding-bottom",c.P("padding-bottom")),e[g].P("padding-left",c.P("padding-left")),e[g].P("vertical-align",
c.P("vertical-align"));a=a.find("li",!0);e=b.find("li",!0);for(g=0;g<e.length;g++)e[g].P("padding-left",a[g].P("padding-left")),e[g].P("padding-top",a[g].P("padding-top")),e[g].P("padding-bottom",a[g].P("padding-bottom")),e[g].P("white-space","nowrap");b.find("table").P("width","initial")};d.yK=function(b){var a="";f.ha(b)||(a=b.replace(/##PAGE-NUMBER##/gi,d.Ck++ +""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));return a};d.NR=function(b,a,c,e){c=void 0===c?!1:c;e=void 0===e?null:
e;var g=b.Nl.sr.F.find("svg").clone();try{c||d.wx(k.B.C.Dm,g,b.Nl.Dp.F);c&&(g.attr("viewBox","0 0 "+g.attr("width")+" "+g.attr("height")),g.P("width","100%"));b.F.append(g);d.MZ(g);g.w3("class");var l=D.aa.Cc(D.qX.Pb(g.element));g.remove();if(b.Nl.Te){var m=b.Nl.Te.F.clone();d.bZ(m,b.Nl.Te.F);c&&(m.P("max-width",""),m.P("padding-bottom","20px"));l+=m.element.outerHTML}if(c)return null!=e&&e(l),l;b="<!DOCTYPE html><html><head><meta charset='UTF-8'/><title>{0}</title></head><body>{1}{2}{3}</body></html>";
m="";f.ha(a.zi)||(m=a.zi,m=m.replace(/##PAGE-NUMBER##/gi,""),m=m.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));var n="";f.ha(a.Wi)||(n=a.Wi,n=n.replace(/##PAGE-NUMBER##/gi,""),n=n.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));b=f.O.bind(b,f.ha(k.B.C.Dm)?k.A.j.YV:k.B.C.Dm,m,l,n);b=D.aa.format(b);0==a.filename.length&&(a.filename="pivotchart.html");h.en.save(b,a);k.Ta.U().Da(new y.da(f.eg.Tg))}catch(p){console.error("Export Charts error:",p);g.remove();f.Va(k.A.j.ys,k.A.j.ya,
f.rb.ya);if(c)return null!=e&&e(""),"";k.Ta.U().Da(new y.da(f.eg.Tg))}};d.pR=function(b){if(null==b)return null;b=b.replace(/##PAGE-NUMBER##/gi,"");b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());return(new A.Aa("div")).P("background","white").P("text-align","left").P("z-index",-1).html(b)};d.sba=function(b,a,c,e){var g=this;c=void 0===c?!1:c;e=void 0===e?null:e;var l=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];x.Bd().Di&&l.unshift("lib/promise.min.js");x.mn.load(l,function(){var m=
document.createElement("canvas"),n=b.Nl.sr.F.find("svg").clone();try{d.wx(k.B.C.Dm,n,b.Nl.Dp.F);n.prepend((new A.Aa("rect")).P("width","100%").P("height","100%").P("fill","white"));d.bga(n);b.F.append(n);d.MZ(n);canvg(m,D.aa.Cc(D.qX.Pb(n.element)));n.remove();var p=(new A.Aa("img")).attr("src",m.toDataURL());c&&p.P("max-width","100%");var t=new A.Aa("div");f.ha(a.zi)||t.append(g.pR(a.zi));t.append(p);t.P("padding-top","10px");t.P("padding-bottom","10px");if(b.Nl.Te){var r=b.Nl.Te.F.clone();r.width=
b.Nl.width;d.bZ(r,b.Nl.Te.F);c&&(r.tj("100%"),r.P("max-width",""));t.append(r)}f.ha(a.Wi)||t.append(g.pR(a.Wi));if(c)return null!=e&&(t.P("position",b.F.P("position")),t.P("top",b.F.P("top")),t.P("bottom",b.F.P("bottom")),t.P("left",b.F.P("left")),t.P("right",b.F.P("right")),t.width=b.cf(),e(t)),t.html();t.P("position","absolute").P("top",0).P("left",0).P("overflow","hidden").P("text-align","center").P("background","white").P("z-index",-1).tj(f.K.Hb.tu);f.K.Hb.zb.F.prepend(t);t.P("left",-t.left-t.width+
"px");html2canvasV1(t.element).then(function(v){t.remove();a.EB==k.bb.lo.eA?h.en.save(v,a):(v=f.O.Baa(v.toDataURL()),0==a.filename.length&&(a.filename="pivotchart.png"),h.en.save(v,a));k.Ta.U().Da(new y.da(f.eg.Tg))})}catch(v){console.error("Export Charts error:",v),n.remove(),null!=t&&t.remove(),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),c&&null!=e?e(""):k.Ta.U().Da(new y.da(f.eg.Tg))}})};d.wx=function(b,a,c){if(0<b.length){var e=f.K.X.W.Yc.ly(c,["font-family","font-size","font-weight","color"]);b=(new A.Aa("text")).attr("x",
"50%").attr("style","text-anchor:middle;"+e).text(b);a.prepend(b);b.attr("y",c.height);b=a.find("g");e=d3v3.transform(b.attr("transform"));e.translate[1]+=c.height;b.attr("transform",e.toString());a.attr("height",parseInt(a.attr("height"))+c.height)}};d.Jwa=function(b,a,c,e){var g=this;c=void 0===c?!1:c;e=void 0===e?null:e;f.za(!0,k.A.j.kE,"...",!0,!0);var l=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];x.Bd().Di&&l.unshift("lib/promise.min.js");x.mn.load(l,function(){d.lb=a;d.Bq=h.ax.jia(a.Bq);
d.Dd=new jspdf.jsPDF(a.RC,"mm",d.Bq,!x.Bd().Di);d.Ne=e;d.sr=b;d.p3=c;d.bh=d.PB-2*d.yh;d.Yj=d.QB-2*d.yh;d.Pf=d.yh;try{d.I1(function(){d.rR(g.lb.zi,g.lb.Wi,function(){return g.o2()})})}catch(m){console.error("Export PDF error:",m),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}})};d.I1=function(b){f.v(d.lb.WR)?b():h.P6.load(d.lb.WR,function(a,c){f.v(a)?f.v(c)||(d.font=c,d.Dd.addFileToVFS(c.filename,c.content),d.Dd.addFont(c.filename,c.name,"normal")):f.Va(a.message,
k.A.j.ya,f.rb.ya);b()})};d.rR=function(b,a,c){var e=null==b,g=null==a;if(e&&g)c();else{if(!e){b=b.replace(/##PAGE-NUMBER##/gi,(d.Ck+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var l=new A.Aa("div");l.P("position","absolute");l.P("background","white");l.tj(h.Ke.My(d.QB-2*d.ki));l.html(b);f.K.Hb.zb.F.prepend(l);html2canvasV1(l.element,{scale:h.Ke.kh}).then(function(n){l.remove();d.Tl=n;e=!0;g&&c()})}if(!g){a=a.replace(/##PAGE-NUMBER##/gi,(d.Ck+1).toString());a=a.replace(/##CURRENT-DATE##/gi,
(new Date).toLocaleString());var m=new A.Aa("div");m.P("position","absolute");m.P("background","white");m.tj(h.Ke.My(d.QB-2*d.ki));m.html(a);f.K.Hb.zb.F.prepend(m);html2canvasV1(m.element,{scale:h.Ke.kh}).then(function(n){m.remove();d.Wo=n;g=!0;e&&c()})}}};d.KY=function(b,a){b.addImage(a,"JPEG",d.ki,d.ki,h.Ke.Bf(a.width/h.Ke.kh),h.Ke.Bf(a.height/h.Ke.kh))};d.JY=function(b,a){b.addImage(a,"JPEG",d.ki,d.PB-h.Ke.Bf(d.Wo.height/h.Ke.kh)-d.ki,h.Ke.Bf(a.width/h.Ke.kh),h.Ke.Bf(a.height/h.Ke.kh))};d.CQ=function(){null!=
d.Tl&&d.KY(d.Dd,d.Tl);null!=d.Wo&&d.JY(d.Dd,d.Wo);d.bh=d.PB;d.bh-=f.v(d.Tl)?d.yh:h.Ke.Bf(d.Tl.height/h.Ke.kh)+2*d.ki;d.bh-=f.v(d.Wo)?d.yh:h.Ke.Bf(d.Wo.height/h.Ke.kh)+2*d.ki;d.Pf=f.v(d.Tl)?d.yh:h.Ke.Bf(d.Tl.height/h.Ke.kh)+2*d.ki};d.o2=function(){d.CQ();d.IHa()};d.Zsa=function(b){var a=d.sr.Nl.sr.F.find("svg").clone(),c=document.createElement("canvas");a.prepend((new A.Aa("rect")).P("width","100%").P("height","100%").P("fill","white"));d.bga(a);a.attr("width",parseInt(a.attr("width"))*h.Ke.kh);a.attr("height",
parseInt(a.attr("height"))*h.Ke.kh);d.sr.F.append(a);d.MZ(a);canvg(c,D.aa.Cc(D.qX.Pb(a.element)),{scaleWidth:a.width*h.Ke.kh,scaleHeight:a.height*h.Ke.kh});a.detach();b(c)};d.OBa=function(b){if(f.v(d.sr.Nl.Te))b(null);else{var a=d.sr.Nl.Te.F.clone();a.width=d.sr.Nl.width;d.bZ(a,d.sr.Nl.Te.F);a.P("border","none").P("position","absolute").P("top",0).P("left",0).P("overflow","hidden").P("background","white").P("z-index",-1);d.p3&&a.P("width","100%").P("max-width","");f.K.Hb.zb.F.prepend(a);html2canvasV1(a.element,
{scale:h.Ke.kh}).then(function(c){a.remove();b(c)})}};d.IHa=function(){var b=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];x.Bd().Di&&b.unshift("lib/promise.min.js");x.mn.load(b,function(){try{d.Zsa(function(a){d.OBa(function(c){var e=document.createElement("canvas");e.width=a.width;e.height=a.height+(c?h.Ke.My(d.yh)/2+c.height:0);var g=e.getContext("2d");g.fillStyle="#FFFFFF";g.fillRect(0,0,e.width,e.height);g.drawImage(a,0,0);c&&g.drawImage(c,0,e.height-c.height);d.p3&&null!=d.Ne?(k.B.C.he==
f.K.xd.Ki&&0==d.lb.filename.length&&(d.lb.filename="pivotcharts.pdf"),d.Ne(e)):(d.Pf+=h.Ke.wx(k.B.C.Dm,d.Dd,d.Pf,d.font),c=d.wga(h.Ke.Bf(e.width),h.Ke.Bf(e.height),d.Yj,d.bh),d.Dd.addImage(e,"JPEG",d.yh+c.x,d.Pf,c.width,c.height),0==d.lb.filename.length&&(d.lb.filename="pivotcharts.pdf"),d.lb.EB==k.bb.lo.eA?h.en.save(d.Dd,d.lb):h.en.save(f.O.v4(d.Dd.output()),d.lb),d.clear(),k.Ta.U().Da(new y.da(f.eg.Tg)))})})}catch(a){console.error("Export Charts error:",a),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),d.p3&&
null!=d.Ne?d.Ne(null):k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}})};d.clear=function(){d.sr=null;d.lb=null;d.Dd=null;d.Pf=0;d.bh=0;d.Yj=0;d.Ck=0;d.Tl=null;d.Wo=null};d.bga=function(b){b=b.find("title",!0);for(var a=0;a<b.length;a++)b[a].remove()};d.wga=function(b,a,c,e){var g=0;g=void 0===g?0:g;var l={x:0,y:0,width:0,height:0};if(b>c-2*g||a>e-2*g)e=Math.min((c-2*g)/b,(e-2*g)/a),b*=e,a*=e;l.x=g+(c-2*g-b)/2;l.y=g;l.width=b;l.height=a;return l};q.Object.defineProperties(d,{PB:{configurable:!0,enumerable:!0,
get:function(){var b=h.ax.tG(d.Bq);return"portrait"===d.lb.RC?b.bh:b.Yj}},QB:{configurable:!0,enumerable:!0,get:function(){var b=h.ax.tG(d.Bq);return"portrait"===d.lb.RC?b.Yj:b.bh}}});d.font=null;d.Ne=null;d.ki=5;d.yh=15;d.Bq="a4";d.Ck=0;h.Hz=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c){var e=this;c=void 0===c?null:c;var g=["lib/html2canvas.v1.min.js"];x.Bd().Di&&g.unshift("lib/promise.min.js");x.mn.load(g,function(){d.lb=a;e.Yua();var l=b.F.clone(),m=e.pR(l,c);f.K.Hb.zb.F.prepend(m);null==c?m.yp(l.height+e.yca()):m.yp(f.K.Hb.zb.op()+e.yca());m.P("left",-m.left-m.width+"px");try{html2canvasV1(m.element).then(function(n){d.$Ca(n);m.sg()})}catch(n){console.error("Export Image error:",
n),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),m.sg(),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}},function(){k.Ta.U().Da(new y.da(f.eg.Tg));d.clear()})};d.pR=function(b,a){a=(new A.Aa("div")).P("position","absolute").P("top","0px").P("left","0px").P("overflow","hidden").P("text-align","center").P("background","white").tj(f.K.Hb.tu).P("z-index",-1).append(a);null!=d.Rt&&a.append(d.Rt);a.append(b.P("position","relative"));null!=d.It&&a.append(d.It);return a};d.yca=function(){return(null==this.Rt?0:this.Rt.height)+
(null==this.It?0:this.It.height)};d.Yua=function(){var b=h.ax.tG("a4"),a=this.lb.zi,c=this.lb.Wi,e=null==a,g=null==c;e&&g||(e||(a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.Rt=new A.Aa("div"),this.Rt.P("background","white"),this.Rt.P("text-align","left"),this.Rt.P("z-index",-1),this.Rt.tj(h.Ke.My(b.Yj-2*this.ki)),this.Rt.html(a)),g||(c=c.replace(/##PAGE-NUMBER##/gi,""),c=c.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.It=new A.Aa("div"),
this.It.P("background","white"),this.It.P("text-align","left"),this.It.P("z-index",-1),this.It.tj(h.Ke.My(b.Yj-2*this.ki)),this.It.html(c)))};d.$Ca=function(b){if(d.lb.EB==k.bb.lo.eA)h.en.save(b,d.lb);else try{var a=f.O.Baa(b.toDataURL());0==d.lb.filename.length&&(d.lb.filename="pivotgrid.png");f.v(a)||h.en.save(a,d.lb)}catch(c){f.Va("Due to security reason export to image cannot be completed when you run the component from the local folder.",k.A.j.ya,f.rb.ya)}k.Ta.U().Da(new y.da(f.eg.Tg));d.clear()};
d.clear=function(){d.lb=null;d.Rt=null;d.It=null};d.ki=5;h.n6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.Wf=function(b,a,c,e,g){var l=this;g=void 0===g?null:g;f.za(!0,k.A.j.kE,"...",!0,!0);var m=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];x.Bd().Di&&m.unshift("lib/promise.min.js");x.mn.load(m,function(){d.clear();d.JG=k.B.C.oc;d.hT=b instanceof f.K.vf.WD;d.X=b;d.Ed=e;d.Fd=c;d.coords=b.ka.coords;d.lb=a;d.Bq=h.ax.jia(a.Bq);d.Dd=new jspdf.jsPDF(a.RC,"mm",d.Bq,!x.Bd().Di);d.Dv=g;d.b3=null!=g&&k.B.C.he==f.K.xd.Ki;d.bh=d.PB-2*d.yh;d.Yj=d.QB-2*d.yh;
d.J4=d.X.dg+c;d.K4=d.X.Ye+e;d.uz={};d.Pf=d.yh;try{d.I$(),d.t0(),d.I1(function(){d.rR(d.lb.zi,d.lb.Wi,function(){return l.o2()})})}catch(n){console.error("Export PDF error:",n),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}})};d.I1=function(b){f.v(d.lb.WR)?b():h.P6.load(d.lb.WR,function(a,c){f.v(a)?f.v(c)||(d.font=c,d.Dd.addFileToVFS(c.filename,c.content),d.Dd.addFont(c.filename,c.name,"normal")):f.Va(a.message,k.A.j.ya,f.rb.ya);b()})};d.rR=function(b,a,c){var e=
null==b||null!=d.Tl&&-1==b.search(d.NO),g=null==a||null!=d.Wo&&-1==a.search(d.NO);if(e&&g)c();else{if(!e){b=b.replace(d.NO,(d.Ck+1).toString());b=b.replace(d.L5,(new Date).toLocaleString());var l=new A.Aa("div");l.P("position","absolute");l.P("background","white");l.tj(d.My(d.QB-2*d.ki));l.html(b);f.K.Hb.zb.F.prepend(l);html2canvasV1(l.element,{scale:d.kh}).then(function(n){l.remove();d.Tl=n;e=!0;g&&c()})}if(!g){a=a.replace(d.NO,(d.Ck+1).toString());a=a.replace(d.L5,(new Date).toLocaleString());var m=
new A.Aa("div");m.P("position","absolute");m.P("background","white");m.tj(d.My(d.QB-2*d.ki));m.html(a);f.K.Hb.zb.F.prepend(m);html2canvasV1(m.element,{scale:d.kh}).then(function(n){m.remove();d.Wo=n;g=!0;e&&c()})}}};d.KY=function(b,a){b.addImage(a,"JPEG",d.ki,d.ki,d.Bf(a.width/d.kh),d.Bf(a.height/d.kh))};d.JY=function(b,a){b.addImage(a,"JPEG",d.ki,d.PB-d.Bf(a.height/d.kh)-d.ki,d.Bf(a.width/d.kh),d.Bf(a.height/d.kh))};d.CQ=function(){null!=d.Tl&&d.KY(d.Dd,d.Tl);null!=d.Wo&&d.JY(d.Dd,d.Wo);d.bh=d.PB;
d.bh-=f.v(d.Tl)?d.yh:d.Bf(d.Tl.height/d.kh)+2*d.ki;d.bh-=f.v(d.Wo)?d.yh:d.Bf(d.Wo.height/d.kh)+2*d.ki;d.Pf=f.v(d.Tl)?d.yh:d.Bf(d.Tl.height/d.kh)+2*d.ki};d.o2=function(){d.CQ();if(null!=d.Dv){d.Pf+=d.wx(k.B.C.Dm,d.Dd,d.Pf,d.font);var b=h.Hz.wga(d.Bf(d.Dv.width),d.Bf(d.Dv.height),d.Yj,d.bh),a=f.ha(k.B.C.Dm)?d.Pf:d.Pf+5;d.Dd.addImage(d.Dv,"JPEG",d.yh,a,b.width,b.height);d.b3||this.h$()}d.b3?d.ifa():(d.Pf+=d.wx(k.B.C.tq,d.Dd,d.Pf,d.font),d.MGa(),k.B.C.ZM&&d.$K(),x.Pk.sn({ao:function(){return d.Q_()},
Ne:function(){return d.ifa()}}))};d.wx=function(b,a,c,e){if(f.ha(b))return 0;f.v(e)?(e=a.getFont(),a.setFont(e.jxa,"bold")):a.setFont(e.name,"normal");a.setTextColor(0,0,0);a.setFontSize(12);e=12*a.getStringUnitWidth(b)/a.internal.scaleFactor;e=(a.internal.pageSize.getWidth()-e)/2;a.text(b,e,c);return d.Bf(12)};d.W$=function(b,a,c){var e=.8*Math.max(d.Bf(30),6),g=.9*d.fH(d.Iaa);b=d.Dd.splitTextToSize(b,g,d.Ot(c));a=d.Dd.splitTextToSize(a,g,d.Ot(c));c=1<b.length?d.Bf(b.length*(11+2*d.ni)-2*d.ni):d.Bf(11*
b.length-d.ni);a=1<a.length?d.Bf(a.length*(11+2*d.ni)-2*d.ni):d.Bf(11*a.length-d.ni);a=(c>a?c:a)/e;return 1>a?e:(a+1)*e};d.$K=function(){if(!(d.X instanceof f.K.vf.WD||0==f.u.Na.U().sa.pages.length)){var b=k.Ta.U().ga.sa.rc(),a=f.u.Na.U().sa.pages,c=d.yh,e=.9*d.fH(d.Iaa);var g=!0;var l=d.X.ka.Rf(0,0,!0),m=d.SR.clone();m=d.cz(l,m);for(var n=m.fontSize,p=0;p<b.length;p++){var t=b.ea(p);if(a.Bb(t.uniqueName)&&t.filter.$g){var r=d.oy(t);g&&(g=d.W$("",k.A.j.Uq,m),d.ZK(d.Dd.splitTextToSize("",e,d.Ot(m)),
l,m,c,e,g),c+=e,m.fontSize=n,d.ZK(d.Dd.splitTextToSize(k.A.j.Uq,e,d.Ot(m)),l,m,c,e,g),m.fontSize=n,c=d.yh,d.Pf+=g,d.ds+=g);g=d.W$(t.caption,r,m);d.ZK(d.Dd.splitTextToSize(d.S4(t.caption),e,d.Ot(m)),l,m,c,e,g);c+=e;m.fontSize=n;d.ZK(d.Dd.splitTextToSize(d.S4(r),e,d.Ot(m)),l,m,c,e,g);m.fontSize=n;c=d.yh;d.Pf+=g;d.ds+=g;g=!1}}d.Pf=d.Pf>d.yh?d.Pf+2*d.fH(d.Haa):d.Pf;d.ds=d.Pf>d.yh?d.ds+2*d.fH(d.Haa):d.ds}};d.S4=function(b){b=b.replace(/<(?:.|\n)*?>/gi,"");var a=b.match(/&#(\d{3,4});/gi);if(a)for(var c,
e=0;e<a.length;e++)c=parseInt(a[e].substring(2,a[e].length-1)),b=b.replace(a[e],String.fromCharCode(c));return b};d.ZK=function(b,a,c,e,g,l){var m=b.length,n=1<m?d.Bf(b.length*(c.fontSize+2*d.ni)-2*d.ni):d.Bf(b.length*c.fontSize-d.ni);n>d.bh/2&&(n=(d.bh-20)/2,m=Math.floor(d.My(n)/(c.fontSize+2*d.ni)));c.fontSize*=.7;var p=f.K.X.W.Yc.h3(c.backgroundColor);d.Dd.setFillColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=f.K.X.W.Yc.h3(c.borderColor);d.Dd.setDrawColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=f.K.X.W.Yc.h3(c.color);
d.Dd.setTextColor(p[0],p[1],p[2]);f.v(d.font)?(p=d.Dd.getFont(),d.Dd.setFont(p.jxa,"bold"===c.fontWeight?"bold":"normal")):d.Dd.setFont(d.font.name,"normal");d.Dd.setFontSize(c.fontSize);d.Dd.rect(e,d.Pf,g,l,"FD");l=d.Pf+(l-n)/2+d.ni;if("right"==c.textAlign)if(1<b.length)for(c=0;c<m;c++)d.Dd.text(b[c],e+g-d.ni,l,{align:"right"}),l+=2*d.ni;else d.Dd.text(b[0],e+g-d.ni+("("==b[0].charAt(0)&&")"==b[0].charAt(b[0].length-1)?1.5:0),l,{align:"right"});else if(1<b.length)for(c=0;c<m;c++)g=!k.B.C.qk&&null!=
a&&0<a.level?(a.level+1)*d.ni:d.ni,d.Dd.text(b[c],e+g,l),l+=2*d.ni;else g=!k.B.C.qk&&null!=a&&0<a.level?(a.level+1)*d.ni:d.ni,d.Dd.text(b[0],e+g,l)};d.oy=function(b){var a=k.A.j.kI;b.filter.$g&&(a=1==b.cb.length?b.va(b.cb[0]).caption:k.A.j.qI);return a};d.t0=function(){var b=d.X.ka,a=b.find(".fm-data-sheet");d.MQ=f.K.X.W.Yc.dl(f.K.X.W.ua.we,a);d.I4=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu,a);d.z0=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu+" "+f.K.X.W.ua.tI,a);d.I3=f.K.X.W.Yc.dl(f.K.X.W.ua.we+
" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku,A.Aa.Pb(b.element));d.xZ=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Uz,A.Aa.Pb(b.element));d.SR=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Lp,A.Aa.Pb(b.element))};d.jG=function(b){b=d.fH(d.X.ka.coords.Zg(b));b=b<d.Yj?b:d.Yj-1;return.9*b};d.cz=function(b,a){null!=b&&b.Wt&&null!=b.style&&(b=0<b.style.AB.length?f.K.X.W.Yc.dl(b.style.mS()):f.K.X.W.Yc.aS(b.style.FS()),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};d.Ot=function(b){return{fontSize:.85*b.fontSize,fontName:null==b.fontFamily?d.Cla:b.fontFamily,fontStyle:f.K.X.W.Mla.Rya(parseFloat(b.fontWeight))}};d.MGa=function(){d.TS=Array(d.K4);for(var b,a=0,c,e;a<d.K4;){d.X.ka.coords.On(a,NaN)&&(d.TS[a]=0,a++);c=b=0;for(var g=.8*Math.max(d.Bf(d.coords.Nd(a)),6);b<d.J4;){d.X.ka.coords.On(NaN,
b)&&(d.uz[b]=0,b++);e=d.X.ka.Rf(a,b,!0);new f.K.X.W.Yc;var l=d.MQ.clone();l=d.cz(e,l);if(null!=e){var m=e.J();"number"===typeof m&&(e.value=m,m+="",e.numeric=!0);m=m.replace(/<(?:.|\n)*?>/gi,"");e=d.Dd.splitTextToSize(m,null!=d.uz&&null!=d.uz[b]?d.uz[b]:d.jG(b),d.Ot(l));e=(1<e.length?d.Bf(e.length*(11+2*d.ni)-2*d.ni):d.Bf(11*e.length-d.ni))/g;e=1>e?g:(e+1)*g;e=e>d.bh/2?(d.bh-1)/2:e;c=e>c?e:c}b++}d.TS[a]=c;a++}};d.Q_=function(){if(d.tP)return!1;for(var b=0;b<d.Nq;b++){if(d.wM&&(d.h$(),d.tP))return!1;
var a,c=d.yh,e=d.wr-d.uR<d.X.Ye&&d.wr>d.X.uo?d.wr-d.uR:d.wr;if(d.X.ka.coords.On(e,NaN))d.wr++;else{var g=d.TS[e];for(d.ut=d.xr;d.ut<d.Px+d.xr;){var l=(a=d.JG||d.hT?!1:d.ut==d.xr&&d.ut>d.X.uo)?d.X.uo:d.ut;if(d.X.ka.coords.On(NaN,l))d.ut++;else if(!d.$J()&&d.ds+g<=d.bh){a=null!=d.uz&&null!=d.uz[l]?d.uz[l]:d.jG(l);if(.9*(c+a)>d.Yj)break;l=d.X.ka.Rf(e,l,!0);var m=f.v(l)?"":l.J();"number"===typeof m&&(l.value=m,m+="",l.numeric=!0);m=d.S4(m);var n=[m];new f.K.X.W.Yc;if(null!=l&&l.ci){var p=d.I3.clone();
p=d.cz(l,p);n=d.Dd.splitTextToSize(m,a,d.Ot(p))}else null!=l&&l.th?(p=d.xZ.clone(),p=d.cz(l,p),n=d.Dd.splitTextToSize(m,a,d.Ot(p))):null!=l&&l.wk?(p=d.SR.clone(),p=d.cz(l,p)):null!=l&&l.By&&l.Tj&&""!=l.J()?(p=d.z0.clone(),p=d.cz(l,p)):null!=l&&l.Tj&&""!=l.J()?(p=d.I4.clone(),p=d.cz(l,p)):(p=d.MQ.clone(),p=d.cz(l,p),n=d.Dd.splitTextToSize(m,a,d.Ot(p)));d.ZK(n,l,p,c,a,g);d.ut++;c+=a}else{d.wM=!0;break}}d.wM||(d.Pf+=g,d.ds+=g,d.wr++);if(d.FQ()&&d.$J())break}}return d.FQ()&&d.$J()};d.FQ=function(){return d.xr+
d.Px>=d.Fd+d.X.dg};d.$J=function(){return d.wr>=d.Ed+d.X.Ye};d.h$=function(){d.Dd.addPage();d.Ck++;d.wM=!1;d.tP=!0;d.rR(d.lb.zi,d.lb.Wi,function(){d.tP=!1;d.CQ()});d.ds=0;if(null==d.Dv||1<d.Ck)d.HIa(),d.GIa();f.za(!0,k.A.j.kE,d.Ck+1+" "+k.A.j.y7,!0)};d.HIa=function(){d.FQ()&&!d.$J()?(d.wr-=d.X.Ye,d.uR=d.wr):d.wr=d.uR};d.GIa=function(){d.FQ()?d.$J()||(d.xr=0,d.ut=0):(d.xr+=d.Px,d.ut=d.xr);d.I$()};d.I$=function(){d.Px=0;var b=d.xr,a=0;if(d.JG||d.hT?0:d.xr>=d.X.dg){var c=d.jG(d.X.uo);a+=c;d.Px++;d.xr--;
d.ut--}for(;b<d.J4;)if(c=d.jG(b),c>d.Yj/2-d.yh&&(c=(d.Yj+d.yh)/2,d.uz[b]=c),a+=c,a<=d.Yj)d.Px++,b++;else{0==d.Px&&(d.Px=1);break}};d.ifa=function(){0==d.lb.filename.length&&(d.lb.filename="pivot.pdf");if(d.lb.EB==k.bb.lo.eA)h.en.save(d.Dd,d.lb);else{var b=d.Dd.output();b=f.O.v4(b);h.en.save(b,d.lb)}d.clear();k.Ta.U().Da(new y.da(f.eg.Tg))};d.clear=function(){d.X=null;d.lb=null;d.Dd=null;d.font=null;d.Fd=0;d.Ed=0;d.J4=0;d.K4=0;d.Px=0;d.ut=0;d.xr=0;d.wr=0;d.uR=0;d.ds=0;d.Pf=0;d.wM=!1;d.Ck=0;d.bh=0;
d.Yj=0;d.Tl=null;d.Wo=null;d.TS=null;d.JG=!1;d.hT=!1};d.fH=function(b){return.264*b};d.My=function(b){return 3.779*b};d.Bf=function(b){return b/3.779};q.Object.defineProperties(d,{PB:{configurable:!0,enumerable:!0,get:function(){var b=h.ax.tG(d.Bq);return"portrait"===d.lb.RC?b.bh:b.Yj}},QB:{configurable:!0,enumerable:!0,get:function(){var b=h.ax.tG(d.Bq);return"portrait"===d.lb.RC?b.Yj:b.bh}}});d.yh=15;d.wM=!1;d.Ck=0;d.b3=!1;d.Cla="Helvetica";d.font=null;d.Bq="a4";d.Iaa=100;d.Haa=30;d.NO=/##PAGE-NUMBER##/gi;
d.L5=/##CURRENT-DATE##/gi;d.JG=!1;d.hT=!1;d.kh=4;d.ki=5;d.tP=!1;d.Nq=5;d.ni=d.fH(8);h.Ke=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e,g){d.X=b;d.Fd=c;d.Ed=e;d.lb=a;d.Dv=(void 0===g?"":g)||"";try{d.NR()}catch(l){console.error("Export HTML error:",l),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}};d.NR=function(){f.za(!0,k.A.j.Yw);d.Rl=x.xf();d.St="";d.hb=d.X.oi;d.js=[];k.B.C.ZM&&d.$K();x.Pk.sn({ao:function(){return d.Q_()},Ne:function(){return d.hEa()}})};d.R_=function(){var b="",a=d.X.ka,c=a.find(".fm-data-sheet");
b+=f.O.bind("body{{0}}\n",f.K.X.W.Yc.ly(A.Aa.Pb(a.element),["font-family"]));b+=f.O.bind(".grid{border-collapse:collapse;{0}border-top:1px solid #e9e9e9;border-left:1px solid #e9e9e9;}\n",f.K.X.W.Yc.ly(A.Aa.Pb(a.element),["font-family","font-size","color"]));b+=f.O.bind(".title{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.lX,A.Aa.Pb(a.element)));b+=f.O.bind(".cell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we,c));b+=f.O.bind(".totalCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu,c));b+=f.O.bind(".grandTotalCell{{0}}\n",
f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu+" "+f.K.X.W.ua.tI,c));b+=f.O.bind(".rowHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku,A.Aa.Pb(a.element)));b+=f.O.bind(".columnHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Uz,A.Aa.Pb(a.element)));b+=f.O.bind(".filterHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Lp,A.Aa.Pb(a.element)));for(c=1;20>=c;c++)b+=f.O.bind(".level{0}{{1}}\n",c,f.K.X.W.Yc.vk(f.K.X.W.ua.Ku+
" "+f.K.X.W.ua.qf+c,A.Aa.Pb(a.element),["padding-left"]));for(c=0;c<d.js.length;c++)b+=f.O.bind(".{0}{{1}}\n",d.js[c],f.K.X.W.Yc.vk(d.js[c],A.Aa.Pb(a.element)));return b};d.aZ=function(b){for(var a=0;a<b.length;a++)0>d.js.indexOf(b[a])&&d.js.push(b[a])};d.$K=function(){if(!(d.X instanceof f.K.vf.WD||0==f.u.Na.U().sa.pages.length))for(var b=k.Ta.U().ga.sa.rc(),a=f.u.Na.U().sa.pages,c,e,g=!0,l,m="style='min-width:"+d.ECa+"px;'",n=0;n<b.length;n++)e=b.ea(n),l="",a.Bb(e.uniqueName)&&e.filter.$g&&(c=d.oy(e),
g&&(l+="<td {0}></td>",l=f.O.bind(l,"class='filterHeaderCell' "+m),l+="<td {0}>"+k.A.j.Uq+"</td>",l=f.O.bind(l,"class='filterHeaderCell' "+m),d.LB+="<tr>"+l+"</tr>",l=""),l+="<td {0}>"+e.caption+"</td>",l=f.O.bind(l,"class='filterHeaderCell' "+m),l+="<td {0}>"+c+"</td>",l=f.O.bind(l,"class='filterHeaderCell' "+m),d.LB+="<tr>"+l+"</tr>",g=!1)};d.oy=function(b){var a=k.A.j.kI;b.filter.$g&&(a=1==b.cb.length?b.va(b.cb[0]).caption:k.A.j.qI);return a};d.Q_=function(){var b="";if(d.X.ka.coords.On(d.hb,NaN))return d.hb++>=
d.Ed+d.X.Ye;for(var a=d.X.uo;a<d.Fd+d.X.dg;a++)if(!d.X.ka.coords.On(NaN,a)){var c=d.X.ka.Rf(d.hb,a,!0);b+="<td {0}>"+(c?c.J(!0):"")+"</td>";if(null==c)b=f.O.bind(b,"class='cell'");else{var e="",g="";c.Wt&&null!=c.style&&(g=c.style.FS(),e=c.style.mS(),d.aZ(c.style.AB));e=c.ci?e+(" rowHeaderCell level"+c.level):c.th?e+" columnHeaderCell":c.wk?e+" filterHeaderCell":c.By&&c.Tj&&""!=c.J(!0)?e+" grandTotalCell":c.Tj&&""!=c.J(!0)?e+" totalCell":e+" cell";null!=c&&c.wk&&(e+=" level"+c.level);""!=e.trim()&&
(e="class='"+e.trim()+"'");g+="width:"+d.X.ka.coords.Zg(a)+"px;";""!=g.trim()&&(g="style='"+g.trim()+"'");b=f.O.bind(b,e+" "+g)}}d.GM+="<tr>"+b+"</tr>";200<x.xf()-d.Rl&&(f.za(!0,k.A.j.Yw,f.O.bind("{0}%",(d.hb/(d.Ed+d.X.Ye)*100).toFixed(0))),d.Rl=x.xf());return++d.hb>=d.Ed+d.X.Ye};d.hEa=function(){f.za(!1);d.NHa();d.clear()};d.NHa=function(){0==d.lb.filename.length&&(d.lb.filename="pivotgrid.html");var b="";if(!f.ha(d.lb.zi)){var a=d.lb.zi;a=a.replace(/##PAGE-NUMBER##/gi,"");a=a.replace(/##CURRENT-DATE##/gi,
(new Date).toLocaleString());b+=a}f.ha(d.Dv)||(f.ha(k.B.C.Dm)||(b+="<div class='title'>"+k.B.C.Dm+"</div>"),b+=d.Dv);b+="<div class='title'>"+k.B.C.tq+"</div>";b+=0<d.LB.length?"<table class='grid'>"+d.LB+"</table><br><br><table class='grid'>"+d.GM+"</table>":"<table class='grid'>"+d.GM+"</table>";f.ha(d.lb.Wi)||(a=d.lb.Wi,a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),b+=a);d.St="<!DOCTYPE html><html><head><meta charset='UTF-8'/>";d.St+="<title>"+
(f.ha(k.B.C.tq)?k.A.j.YV:k.B.C.tq)+"</title>";d.St+="<style>"+d.R_()+"</style></head>";d.St+="<body>"+b+"</body></html>";h.en.save(d.St,d.lb);k.Ta.U().Da(new y.da(f.eg.Tg))};d.clear=function(){d.hb=0;d.St="";d.LB="";d.GM="";d.Fd=0;d.Ed=0;d.X=null;d.lb=null;d.Dv=""};d.hb=0;d.Rl=0;d.St="";d.LB="";d.GM="";d.ECa=100;d.Nq=10;h.m6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e){d.X=b;d.Fd=c;d.Ed=e;d.lb=a;try{d.Kwa()}catch(g){console.error("Export XLS error:",g),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg))}};d.Kwa=function(){f.za(!0,k.A.j.Yw);d.hb=d.X.oi;d.ve=0;d.Rl=x.xf();d.HM=[];d.mf=new U.Ipa;var b=k.A.j.YV;f.ha(d.lb.v_)?f.ha(k.B.C.tq)||(b=k.B.C.tq):b=d.lb.v_;b=new U.Jpa(b);d.mf.Fg.push(b);d.t0();this.lb.zi?d.d$(this.lb.zi):d.Wra();d.wx();k.B.C.ZM&&
d.wra();x.Pk.sn({ao:function(){return d.cya()},Ne:function(){return d.OFa()}})};d.t0=function(){var b=d.X.ka.element;d.MQ=f.K.X.W.Yc.dl(f.K.X.W.ua.we,A.Aa.Pb(b),!1);d.I4=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu,A.Aa.Pb(b),!1);d.z0=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu+" "+f.K.X.W.ua.tI,A.Aa.Pb(b),!1);d.I3=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku,A.Aa.Pb(b),!1);d.xZ=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Uz,A.Aa.Pb(b),!1);d.SR=f.K.X.W.Yc.dl(f.K.X.W.ua.we+
" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Lp,A.Aa.Pb(b),!1);for(var a=1;20>=a;a++)d.J3[a]=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku+" "+f.K.X.W.ua.qf+a,A.Aa.Pb(b),!1)};d.OFa=function(){d.d$(this.lb.Wi,!0);d.DCa();f.za(!1);d.RHa()};d.RHa=function(){d.hb=d.X.oi;0==d.lb.filename.length&&(d.lb.filename="pivot.xlsx");h.en.save(d.mf.IJa(),d.lb);d.mf=null;d.lb=null;k.Ta.U().Da(new y.da(f.eg.Tg))};d.aKa=function(b){return f.v(b)||f.v(b.measure)||b.measure.type!=f.u.i.Ja.Oa?!1:f.u.i.ca.AD(b.measure.$)||
k.B.C.DG==f.K.X.ie.ih&&!b.Tj?!0:!1};d.AD=function(b){return f.v(b)||f.v(b.measure)||b.measure.type!=f.u.i.Ja.Dc?!1:f.u.i.ca.AD(b.measure.$)||k.B.C.DG==f.K.X.ie.ih&&!b.Tj?!0:!1};d.eo=function(b){return f.v(b)||f.v(b.measure)||b.measure.type!=f.u.i.Ja.Yb?!1:f.u.i.ca.eo(b.measure.$)||k.B.C.DG==f.K.X.ie.ih&&!b.Tj?!0:!1};d.cya=function(){for(var b=d.Ed+d.X.Ye,a=d.X.uo;a<d.Fd+d.X.dg;a++){var c=d.X.ka.Rf(d.hb,a,!0),e=f.v(c)?"":c.J();e=e?e:"";var g=void 0,l=d.aKa(c),m=d.AD(c),n=d.eo(c);f.v(c)||isNaN(c.value)||
(l?g=d.Fua(c.value,c.hierarchy.getTimezoneOffset()):m?g=d.Gua(c.value,c.hierarchy.getTimezoneOffset()):n&&(g=d.Hua(c.value)));"number"===typeof e&&(c.value=e,e+="",c.numeric=!0);var p=null!=c&&(c.ci||c.th);d.lb.kba&&""==e&&null!=c&&null!=c.Xb&&(e=c.Xb.caption);if(""!=e.trim()||p){new f.K.X.W.Yc;p=null!=c&&c.ci?0<c.level&&d.J3[c.level]?d.J3[c.level].clone():d.I3.clone():null!=c&&c.th?d.xZ.clone():null!=c&&c.wk?d.SR.clone():null!=c&&c.By&&c.Tj&&""!=c.J()?d.z0.clone():null!=c&&c.Tj&&""!=c.J()?d.I4.clone():
d.MQ.clone();if(null!=c&&c.Wt&&null!=c.style){var t=0<c.style.AB.length?f.K.X.W.Yc.dl(c.style.mS()):f.K.X.W.Yc.aS(c.style.FS());t.merge(p);p=t}p.color=p.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==p.backgroundColor&&(p.color="rgb(242, 242, 242)");p.backgroundColor=p.backgroundColor||"rgb(255,255,255)";p.fontSize=p.fontSize?d.YGa(p.fontSize):8;var r=new U.md.fonts.Yu(f.v(p.fontFamily)?"Tahoma":p.fontFamily,p.fontSize,f.O.Kn(p.color));r.bold="bold"==p.fontWeight||700<=parseInt(p.fontWeight);r.DC=!1;var v=
null,z=t=!1;if(c.numeric){if(null!=c.measure){v=c.measure.Dh(c.measure.uniqueName,c.measure.$);z=""!=v.YG?!0:z;t=f.u.i.ca.Xd(c.measure.$)||c.measure.Ka&&-1<c.measure.qe.indexOf("percent");var B=v.Sha();if(t||v.Xd)v=v.clone(),v.pd="%",B=v.Sha();v=new U.md.format.Gs(""==B?0:-1,B)}}else l||m?v=c.measure.type==f.u.i.Ja.Dc?new U.md.format.Gs(164,"dd.mm.yyyy h:mm:ss"):new U.md.format.Gs(14,""):n&&(0<=g?v=new U.md.format.Gs(165,d.Cp):(g=Math.abs(g),v=new U.md.format.Gs(166,"-"+d.Cp)));v&&d.mf.styleSheet.xra(v);
r=new U.md.qA(r,f.O.Kn(p.backgroundColor),v,c.Wt&&void 0==p.textAlign&&c.Jh?"right":p.textAlign);!k.B.C.qk&&c&&c.ci&&0<c.level&&(r.textIndent=c.level);d.mf.styleSheet.tv(r);v=null!=c.measure?c.measure.Dh(c.measure.uniqueName,c.measure.$):null;e=f.O.WF(e);c.numeric?null==v||c.label!=v.GG&&c.label!=v.OF?c.Wt&&d.KAa()&&d.lb.hia?(g=c.J(),d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,!isNaN(c.value)&&c.label==g&&c.numeric?d.Pba(c.value,v,t):f.O.WF(g),r)):(g=d.Pba(c.value,v,t),d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,isNaN(c.value)&&
z?c.J():g,r)):d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,c.J(),r):d.lb.qz||!c.Jh||null==c.measure||c.measure.type!=f.u.i.Ja.Oa&&c.measure.type!=f.u.i.Ja.Dc?!d.lb.qz&&c.Jh&&null!=c.measure&&c.measure.$==f.u.i.ca.NONE?d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,c.value,r):!d.lb.qz&&c.Jh&&null!=c.measure&&c.measure.type==f.u.i.Ja.Yb?n?d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,g,r):d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,c.value,r):d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,e,r):l||m?d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,g,r):d.mf.Fg[0].hi(d.hb-d.X.oi+
d.ve,a,c.value,r);null!=c&&(0==d.mf.Fg[0].jG(a)&&d.mf.Fg[0].Lga(a,d.Eua(d.X.ka.coords.Zg(a))),a!=d.X.uo||d.X.ka.coords.xBa(d.hb)||(c=d.wK(d.X.ka.coords.Nd(d.hb)),d.mf.Fg[0].Cw(d.hb+d.ve,c)),e.length>p.width&&d.mf.Fg[0].Lga(a,d.wK(e.length+d.cellPadding)>d.wK(d.T5)?d.wK(d.T5):d.wK(e.length+d.cellPadding)))}}200<x.xf()-d.Rl&&(f.za(!0,k.A.j.Yw,f.O.bind("{1}% ("+k.A.j.OW+")",d.hb.toString(),(d.hb/b*100).toFixed(0))),d.Rl=x.xf());return d.hb++>=b};d.Pba=function(b,a,c){return null==a||!c&&"%"!=a.pd?b:
b/100};d.Fua=function(b,a){b=-d.Zba(b,a)+b;return Math.floor(b/864E5)};d.Gua=function(b,a){return(-d.Zba(b,a)+b)/864E5};d.Zba=function(b,a){return null!=a?Date.parse("1899-12-30")-36E5*a:Date.parse("1899-12-30")+36E5*((new Date(b)).getTimezoneOffset()/60)};d.Hua=function(b){return 1E3*b/864E5};d.YGa=function(b){return.75*b};d.wK=function(b){return 0>=b?0:d.Eva/d.Gaa*b*(d.Gaa/f.K.X.sheet.jh.Bu)};d.Eua=function(b){return 0>=b?0:((b-5)/7*100+.5)/100};d.Wra=function(){var b=k.bb.XH.customFields;if(0<
b.length){var a=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.Uz).element),c=new U.md.fonts.Yu(a.fontFamily,parseInt(a.fontSize)-2,f.O.Kn(a.color));c.bold="bold"===a.fontWeight;c.DC="italic"===a.fontStyle;c=new U.md.qA(c,f.O.Kn(a.backgroundColor));c.textAlign=a.textAlign;d.mf.styleSheet.tv(c);d.mf.Fg[0].hi(d.ve,0,k.A.j.Gka,c);d.mf.Fg[0].hi(d.ve,1,"",c);a=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.we).element);var e=new U.md.fonts.Yu(a.fontFamily,parseInt(a.fontSize)-2,f.O.Kn(a.color));e.bold=
"bold"===a.fontWeight;e.DC="italic"===a.fontStyle;e=new U.md.qA(e,f.O.Kn(a.backgroundColor));e.textAlign=a.textAlign;d.mf.styleSheet.tv(e);for(a=0;a<b.length;a++)d.mf.Fg[0].hi(a+1+d.ve,0,f.O.WF(String(b[a].name)),c),d.mf.Fg[0].hi(a+1+d.ve,1,f.O.WF(String(b[a].value)),c)}d.ve+=0==b.length?0:b.length+2};d.d$=function(b,a){a=void 0===a?!1:a;if(null!=b&&0!=b.length){var c=0;a&&(d.ve+=1,c=d.Ed+d.X.Ye);b=b.split("\n");var e=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.Uz).element),g=new U.md.fonts.Yu(e.fontFamily,
parseInt(e.fontSize)-2,f.O.Kn(e.color));g.bold="bold"===e.fontWeight;g.DC="italic"===e.fontStyle;g=new U.md.qA(g,f.O.Kn(e.backgroundColor));g.textAlign=e.textAlign;d.mf.styleSheet.tv(g);e=d.mf.Fg[0];for(var l=0;l<b.length;l++){var m=c+l+d.ve;e.hi(m,0,f.O.WF(String(b[l])),g);d.HM.push(m)}d.ve+=b.length+(a?0:1)}};d.wx=function(){var b=k.B.C.tq;if(0!=b.length){var a=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.lX).element),c=new U.md.fonts.Yu(a.fontFamily,parseInt(a.fontSize)-2,f.O.Kn(a.color));
c.bold="bold"===a.fontWeight;c.DC="italic"===a.fontStyle;a=new U.md.qA(c,f.O.Kn(a.backgroundColor));a.textAlign="center";d.mf.styleSheet.tv(a);c=d.ve;d.mf.Fg[0].hi(c,0,b,a);d.HM.push(c);d.ve+=1}};d.DCa=function(){for(var b=d.mf.Fg[0],a=0;a<d.HM.length;a++)b.Hea(d.HM[a],0,Math.min(b.Kta,10))};d.KAa=function(){return!f.v(f.K.X.W.Yd.Mv)};d.wra=function(){if(!(d.X instanceof f.K.vf.WD||0==f.u.Na.U().sa.pages.length)){var b=k.Ta.U().ga.sa.rc(),a=f.u.Na.U().sa.pages,c=!0,e=getComputedStyle(f.K.Hb.zb.F.find("."+
f.K.X.W.ua.zj).element),g=new U.md.fonts.Yu(e.fontFamily,parseInt(e.fontSize)-2,f.O.Kn(e.color));g.bold="bold"===e.fontWeight;g.DC="italic"===e.fontStyle;g=new U.md.qA(g,f.O.Kn(e.backgroundColor));g.textAlign=e.textAlign;d.mf.styleSheet.tv(g);e=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.we).element);var l=new U.md.fonts.Yu(e.fontFamily,parseInt(e.fontSize)-2,f.O.Kn("rgb(0,0,0)"));l.bold="bold"===e.fontWeight;l.DC="italic"===e.fontStyle;e=new U.md.qA(l,f.O.Kn(e.backgroundColor));e.textAlign=
"left";d.mf.styleSheet.tv(e);l=d.mf.Fg[0];for(var m=0,n=0;n<b.length;n++){var p=b.ea(n);var t=p.wi.type==f.u.i.Lz.Zz;(a.Bb(p.uniqueName)||d.lb.iV)&&p.filter.$g&&(t=t?d.Wta(p):d.lb.iV?d.uca(p):d.oy(p),c&&(l.hi(m+d.ve,0,"",g),l.hi(m+d.ve,1,k.A.j.Uq,g),m++),l.hi(m+d.ve,0,p.caption,g),l.hi(m+d.ve,1,t,e),m++,c=!1)}if(k.B.C.DG==f.K.X.ie.ih)for(b=k.Ta.U().ga.sa.Of,a=0;a<b.length;a++)(p=k.Ta.U().ga.sa.Vj(b[a].uniqueName))&&p.filter.$g&&(t=d.lb.iV?d.uca(p):d.oy(p),c&&(l.hi(m+d.ve,0,"",g),l.hi(m+d.ve,1,"Filters",
g),m++),l.hi(m+d.ve,0,p.caption,g),l.hi(m+d.ve,1,t,e),m++,c=!1);d.ve+=c?0:m+1}};d.uca=function(b){for(var a=[],c=0;c<b.cb.length;c++)a.push(b.aC(b.cb[c]));return a.join(", ")};d.oy=function(b){var a=k.A.j.kI;b.filter.$g&&(a=1==b.cb.length?b.va(b.cb[0]).caption:k.A.j.qI);return a};d.Wta=function(b){var a,c=[];null!=d.kz&&(d.kz.length=0);d.sha(b.yd);for(var e=d.aua(b),g=!1,l=0;l<d.kz.length;l++){var m=b.va(d.kz[l]);var n=l==d.kz.length-1;if(!g&&-1<b.cb.indexOf(m.ordinal)){g=!0;var p=m}g&&(-1<b.cb.indexOf(m.ordinal)&&
(a=m),-1<e.indexOf(m.ordinal)&&!n||(a=null!=a?a:p,m=d.Y$(p),n=a.uniqueName!=p.uniqueName?":"+d.Y$(a,!0):"",a=p=null,g=!1,c.push(m+n)))}return c.join(", ")};d.sha=function(b){null==d.kz&&(d.kz=[]);b.Wb||d.kz.push(b.ordinal);for(var a=b.hierarchy.uj(b,!1,f.u.i.xa.bc),c=a.length,e,g=0;g<c;g++)e=b.hierarchy.va(a[g]),0<e.children.length?d.sha(e):d.kz.push(e.ordinal)};d.Y$=function(b,a){a=void 0===a?!1:a;var c=b,e=[];for(e.push(b.caption);c&&c.uniqueName!=b.uniqueName&&!c.level.cw&&0<c.children.length;)e.push(c.caption),
c=c.hierarchy.uj(c,!1,f.u.i.xa.bc),c=b.hierarchy.va(a?c[c.length-1]:c[0]);for(c=b.parent;c&&!c.Wb;)e.unshift(c.caption),c=c.parent;return e.join("-")};d.aua=function(b){for(var a=[],c=b.cb,e,g=0;g<c.length;g++)if(e=b.va(c[g]),a.push(e.ordinal),a=a.concat(e.Wx),!(e.parent&&!e.parent.Wb&&-1<a.indexOf(e.parent.ordinal)))for(;e.parent&&!e.parent.Wb;)e=e.parent,a.push(e.ordinal);return a};d.hb=0;d.ve=0;d.cellPadding=3;d.T5=100;d.Cp="[h]:mm:ss";d.J3=[];d.Eva=14.3;d.Gaa=38;d.HM=[];h.q6=d})(k.vc||(k.vc={}))})(f.model||
(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(c,e,g){var l=y.da.call(this,f.eg.jW)||this;l.Dt=c;l.lb=e;l.Fo=g;return l}function a(){}a.Nj=function(c,e,g){e=void 0===e?null:e;g=void 0===g?null:g;a.LX?this.d_.push({type:c,options:e,Ne:g}):(c=c.toLowerCase(),c=d.rz(c)?c:d.xh,k.B.C.he==f.K.xd.Ki&&c==d.JSON?(f.Va(k.A.j.ena,k.A.j.ya),this.Aha()):(k.Ta.U().N(f.eg.Tg,a.qba),a.LX=!0,a.Fo=g,f.v(e)&&(e=new h.p6),e.type=c,c=new b(c,e,g),k.Ta.U().Da(c)))};a.Aha=function(){f.za(!1);k.Ta.U().mb(f.eg.Tg,
a.qba);a.LX=!1};a.SDa=function(){a.Aha();if(0<a.d_.length){var c=a.d_.shift();this.Nj(c.type,c.options,c.Ne)}};a.save=function(c,e){switch(e.EB.toLowerCase()){case k.bb.lo.aO:a.JM(c,e);break;case k.bb.lo.eX:a.UU(c,e);break;case k.bb.lo.k5:break;case k.bb.lo.eA:a.PHa(c,e);break;default:a.JM(c,e)}};a.UU=function(c,e){switch(e.type){case d.Lu:case d.XD:case d.dA:case d.Vz:case d.JSON:case d.xh:a.QHa(c,e);break;default:c=k.Nb.validate(e.type),f.Va("Unknown type of export: '"+c+"'",k.A.j.ya)}};a.JM=function(c,
e){switch(e.type){case d.Lu:var g="text/html;charset=utf-8";e.filename=a.bK(e.filename,".html");break;case d.XD:g="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";e.filename=a.bK(e.filename,".xlsx");break;case d.dA:g="application/pdf";e.filename=a.bK(e.filename,".pdf");break;case d.Vz:g="image/png";e.filename=a.bK(e.filename,".png");break;case d.xh:g="text/csv;charset=utf-8";e.filename=a.bK(e.filename,".csv");break;default:g="text/plain;charset=utf-8"}var l=[c];e.type==d.xh&&l.unshift(f.O.hya());
try{D.uga(new Blob(l,{type:g}),e.filename),a.mN({data:c,filename:e.filename,type:e.type})}catch(m){f.Va(k.A.j.DO,k.A.j.ya,f.rb.ya),a.mN(null,{message:k.A.j.DO})}};a.bK=function(c,e){c.indexOf(e)!=c.length-e.length&&(c+=e);return c};a.KGa=function(c){var e={};null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&null!=c.target.xhr&&(e.response=c.target.response,e.status=c.target.xhr.status);e.message=k.A.j.DO;return e};a.QHa=function(c,e){var g=new x.Es(500);g.N(x.Ze.Nk,function(){f.za(!0,
k.A.j.A7,(g.Qx/10).toString()+" sec")});var l=new D.Qi;l.N(y.da.ya,function(t){t=a.KGa(t);var r=t.hasOwnProperty("response")?k.Nb.validate(t.response):"";r=700<r.length?r.substr(0,700):r;f.Va(f.O.bind(t.message,r),k.A.j.ya,f.rb.ya);g.stop();f.za(!1);a.mN(null,t)});l.N(y.da.Jc,function(){g.stop();f.za(!1);a.mN({data:c,filename:e.filename,type:e.type,response:l.response})});var m=new Blob([c],{type:"application/octet-binary"}),n=new FormData;n.append("filedata",m,e.filename);for(var p in e.C_)n.append(p,
e.C_[p]);l.Dq=D.Fs.Pu;l.data=n;l.contentType=!1;l.vh(e.requestHeaders);l.load(e.url);g.start()};a.PHa=function(c,e){a.mN({data:c,filename:e.filename,type:e.type})};a.mN=function(c,e){null!=a.Fo&&a.Fo.call(null,void 0===c?null:c,void 0===e?null:e)};a.LX=!1;a.d_=[];a.qba=function(){return a.SDa()};h.en=a;u(b,y.da);h.gLa=b;d.rz=function(c){return c===d.Vz||c===d.XD||c===d.Lu||c===d.xh||c===d.JSON||c===d.dA};d.Vz="image";d.XD="excel";d.Lu="html";d.xh="csv";d.JSON="json";d.dA="pdf";h.Li=d})(k.vc||(k.vc=
{}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){this.vl=!0;this.EB=f.model.bb.lo.aO;this.filename="";this.url="()";this.requestHeaders=null;this.type=h.Li.Lu;this.RC="portrait";this.v_="";this.iV=this.kba=!1;this.qz=!0;this.C_={};this.fieldSeparator=",";this.hia=!0;this.s$=!1;this.EB=void 0===b?"file":b}d.tb=function(b){var a=new d;if(f.v(b))return a;f.v(b.showHeaders)||(a.vl="true"===b.showHeaders||!0===b.showHeaders);f.v(b.filename)||(a.filename=b.filename);f.v(b.url)||(a.url=b.url);f.v(b.excelSheetName)||
(a.v_=b.excelSheetName);f.v(b.excelExportAll)||(a.kba=b.excelExportAll);f.v(b.pageOrientation)||"portrait"!==b.pageOrientation.toLowerCase()&&"landscape"!==b.pageOrientation.toLowerCase()||(a.RC=b.pageOrientation.toLowerCase());!f.v(b.destinationType)&&f.model.bb.lo.rz(b.destinationType.toString().toLowerCase())&&(a.EB=b.destinationType.toString().toLowerCase());f.ha(b.pageFormat)||(a.Bq=b.pageFormat);f.ha(b.fieldSeparator)||(a.fieldSeparator=b.fieldSeparator);f.v(b.showFilters)||(a.iV=b.showFilters);
f.v(b.useOlapFormattingInExcel)||(a.qz=b.useOlapFormattingInExcel);f.v(b.extendedParameters)||(a.C_=b.extendedParameters);f.v(b.header)||(a.zi=b.header);f.v(b.footer)||(a.Wi=b.footer);f.v(b.fontUrl)||(a.WR=b.fontUrl);f.v(b.useCustomizeCellForData)||(a.hia=b.useCustomizeCellForData);f.v(b.requestHeader)||(a.requestHeaders=b.requestHeader);f.v(b.requestHeaders)||(a.requestHeaders=b.requestHeaders);f.v(b.alwaysEnclose)||(a.s$=b.alwaysEnclose);return a};h.p6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||
(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e,g){g=void 0===g?null:g;if(!f.v(b)){d.X=b;d.Fd=c;d.Ed=e;d.lb=a;d.Fo=g;try{d.Hwa()}catch(l){console.error("Export CSV error:",l),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}}};d.Vba=function(b,a){if(null!=b&&0!=b.length){0<d.lq.length&&d.lq.push([].join(d.lb.fieldSeparator));b=b.split("\n");for(var c,e=0;e<b.length;e++)c=[],c.push('"'+b[e]+'"'),d.lq.push(c.join(d.lb.fieldSeparator));0<
d.lq.length&&!a&&d.lq.push([].join(d.lb.fieldSeparator))}};d.$K=function(){if(!(d.X instanceof f.K.vf.WD||0==f.u.Na.U().sa.pages.length)){for(var b,a=k.Ta.U().ga.sa.rc(),c=f.u.Na.U().sa.pages,e,g,l=!0,m=0;m<a.length;m++)g=a.ea(m),b=[],c.Bb(g.uniqueName)&&g.filter.$g&&(e=d.oy(g),l&&(b.push('""'),b.push('"'+k.A.j.Uq+'"'),d.lq.push(b.join(d.lb.fieldSeparator)),b=[]),b.push('"'+g.caption+'"'),b.push('"'+e+'"'),d.lq.push(b.join(d.lb.fieldSeparator)),l=!1);0<d.lq.length&&d.lq.push([].join(d.lb.fieldSeparator))}};
d.oy=function(b){var a=k.A.j.kI;b.filter.$g&&(a=1==b.cb.length?b.va(b.cb[0]).caption:k.A.j.qI);return a};d.Hwa=function(){f.za(!0,k.A.j.Yw);d.hb=0;d.Rl=x.xf();d.Vba(this.lb.zi);k.B.C.ZM&&d.$K();x.Pk.sn({ao:function(){return d.Wxa()},Ne:function(){return d.ZCa()}})};d.Wxa=function(){if(d.X.ka.coords.On(d.hb,NaN))return d.hb>=d.Ed+d.X.Ye;var b=[];for(var a=0;a<d.Fd+d.X.dg;a++)if(!d.X.ka.coords.On(NaN,a))for(b=[],a=0;a<d.Fd+d.X.dg;a++)if(!d.X.ka.coords.On(NaN,a)){var c="",e=d.X.ka.Rf(d.hb,a,!0);e&&(c=
e.J());"number"===typeof c&&(e.value=c,c+="",e.numeric=!0);c=f.O.WF(c);0<=c.indexOf(d.lb.fieldSeparator)||this.lb.s$||-1<c.search(/\n|\r/gi)?(c=c.replace(/["]/gi,'""'),b.push('"'+c+'"')):b.push(c)}d.lq.push(b.join(d.lb.fieldSeparator));200<x.xf()-d.Rl&&(b=d.hb/(d.Ed+d.X.Ye)*100,100<b&&(b=100),f.za(!0,k.A.j.Yw,f.O.bind("{1}% ("+k.A.j.OW+")",d.hb.toString(),b.toFixed(0))),d.Rl=x.xf());return++d.hb>=d.Ed+d.X.Ye};d.LHa=function(){var b=d.lq.join("\r\n");0==d.lb.filename.length&&(d.lb.filename="pivot.csv");
h.en.save(b,d.lb);k.Ta.U().Da(new y.da(f.eg.Tg));d.clear()};d.ZCa=function(){f.za(!1);d.Vba(this.lb.Wi,!0);d.LHa()};d.clear=function(){d.X=null;d.hb=0;d.Rl=0;d.lq=[];d.lb=null;d.Fo=null;d.Fd=0;d.Ed=0};d.hb=0;d.Rl=0;d.lq=[];h.l6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e,g){g=void 0===g?null:g;if(!f.v(b)){d.X=b;d.Fd=c;d.Ed=e;d.lb=a;d.Fo=g;try{d.Iwa()}catch(l){console.error("Export JSON error:",l),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}}};d.Iwa=function(){f.za(!0,k.A.j.Yw);d.lc=0;d.Rl=d.startTime=x.xf();x.Pk.sn({ao:function(){return d.$xa()},Ne:function(){return function(){return d.pEa()}}})};d.$xa=function(){for(var b=Math.min(d.lc+
d.Nq,d.Fd+d.X.dg),a;d.lc<b;d.lc++){a=[];for(var c=0;c<d.Ed+d.X.Ye;c++){var e="",g=d.X.ka.Rf(c,d.lc,!0);g&&(e=g.label);a.push(e)}d.t1.push(JSON.stringify(a))}if(50<x.xf()-d.Rl){b=d.lc/(d.Fd+d.X.dg)*100;if(100<b)return!0;d.SIa(b);d.Rl=x.xf()}return d.lc>=d.Fd+d.X.dg};d.SIa=function(b){f.za(!0,k.A.j.Yw,f.O.bind("{0}% ({1} rows)",b.toFixed(0),d.lc.toString()))};d.OHa=function(){var b="["+d.t1.join(",\n")+"]";0==d.lb.filename.length&&(d.lb.filename="pivot.json");h.en.save(b,d.lb);k.Ta.U().Da(new y.da(f.eg.Tg));
d.clear()};d.pEa=function(){f.za(!1);d.OHa()};d.clear=function(){d.X=null;d.lc=0;d.startTime=0;d.Rl=0;d.Fd=0;d.Ed=0;d.t1=[];d.cells=[];d.lb=null;d.Fo=null};d.lc=0;d.startTime=0;d.Rl=0;d.cells=[];d.t1=[];d.Nq=10;h.o6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(){}b.K6="formatchange";h.Q6=b;d.Dh=function(a,c){a=d.Lt.Bb(a)?d.Lt.getItem(a).get(c):void 0;return d.c9(a)};d.lH=function(a,c,e){d.Lt.Bb(c)||d.Lt.Pa(c,new Map);d.Lt.getItem(c).set(e,a)};d.kD=function(a){var c=h.W.pf.tb(a);d.TQ.Pa(c.name,c);if(null!=d.JF&&""!=c.name)c.Iea(d.JF);else if(""==c.name)for(d.JF=a,a=0;a<d.formats.length;a++)d.formats.ea(a).Iea(d.JF);d.formats.Pa(c.name,c)};d.c9=function(a){return d.formats.Bb(a)?d.formats.getItem(a):
""!=a&&d.formats.Bb("")?d.formats.getItem(""):d.$ba()};d.eya=function(){return d.TQ.slice()};d.clear=function(){d.formats=new f.nb;d.TQ=new f.nb;d.JF=null;d.Lt=new f.nb};d.oS=function(){return d.c9("")};d.$ba=function(){return new h.W.pf};d.kxa=function(a,c){return d.Lt.Bb(a)&&d.Lt.getItem(a).has(c)};d.Tya=function(){return d.Lt};d.dispose=function(){d.formats=null;d.TQ=null;d.JF=null;d.Lt=null};d.formats=new f.nb;d.TQ=new f.nb;d.Lt=new f.nb;d.JF=null;h.Ni=d})(k.Zb||(k.Zb={}))})(f.model||(f.model=
{}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.name="";this.Fb={};this.Ld={thousandsSeparator:" ",decimalSeparator:".",decimalPlaces:-1,maxDecimalPlaces:-1,maxSymbols:20,currencySymbol:"",positiveCurrencyFormat:b.Uy.$1,negativeCurrencyFormat:b.Rr["-$1"],negativeNumberFormat:b.gu["-1"],nullValue:"",infinityValue:"Infinity",divideByZeroValue:"Infinity",textAlign:b.textAlign.RIGHT,isPercent:!1,isCount:!1,beautifyFloatingPoint:!0};this.name=void 0===a?"":a}b.prototype.Sha=function(){var a,
c="";if(-1==this.Ql&&""==this.pd){if(this.xq==b.gu["- 1"]||this.xq==b.gu["1-"]||this.xq==b.gu["1 -"]||this.xq==b.gu["(1)"])c=""!=this.thousandsSeparator?"#,##0.0#########":"###0.0#########",c=c+";"+x.Tb.ZR(c,this.xq);return c}if("%"==this.pd){var e=-1==this.Ql?0:this.Ql;c=0<e?"0.":"0";for(a=0;a<e;a++)c+="0";return c+=this.pd}c=""!=this.thousandsSeparator?"#,##0":"###0";if(0<this.Ql)for(c+=".",a=0;a<this.Ql;a++)c+="0";""!=this.pd?(a=this.pd,c=1<a.length?this.ou==b.Uy.$1?"[$"+a+"]\\ "+c+";"+x.Tb.YK(c,
"[$"+a+"]",this.fu):c+"\\ [$"+a+"];"+x.Tb.YK(c,"[$"+a+"]",this.fu):this.ou==b.Uy.$1?"\\"+this.pd+c+";"+x.Tb.YK(c,this.pd,this.fu):c+"\\"+this.pd+";"+x.Tb.YK(c,this.pd,this.fu)):""==this.pd&&(c=c+";"+x.Tb.ZR(c,this.xq));return c};b.prototype.La=function(a){var c={};c.name=this.name;if(void 0===a?0:a)c.thousandsSeparator=this.thousandsSeparator,c.decimalSeparator=this.HF,c.decimalPlaces=this.Ql,c.maxDecimalPlaces=this.mw,c.maxSymbols=this.Jy,c.currencySymbol=this.pd,c.positiveCurrencyFormat=this.ou,
c.negativeCurrencyFormat=this.fu,c.negativeNumberFormat=this.xq,c.nullValue=this.YG,c.infinityValue=this.GG,c.divideByZeroValue=this.OF,c.textAlign=""!==this.textAlign?this.textAlign:b.textAlign.RIGHT,c.isPercent=this.Xd,c.isCount=this.Tf,c.beautifyFloatingPoint=this.gK;else for(var e in this.Fb)c[e]="textAlign"===e?""===this.textAlign?b.textAlign.RIGHT:this.textAlign:this.Fb[e];return c};b.tb=function(a){var c=new b;null!=a.name&&(c.name=a.name);null!=a.thousandsSeparator&&k.Nb.valid(a.thousandsSeparator)&&
(c.thousandsSeparator=k.Nb.validate(a.thousandsSeparator,!0));null!=a.decimalSeparator&&k.Nb.valid(a.decimalSeparator)&&(c.HF=k.Nb.validate(a.decimalSeparator,!0));null!=a.decimalPlaces&&-1<=parseInt(a.decimalPlaces)&&(c.Ql=isNaN(parseInt(a.decimalPlaces))?-1:parseInt(a.decimalPlaces));null!=a.maxDecimalPlaces&&-1<=parseInt(a.maxDecimalPlaces)&&(c.mw=isNaN(parseInt(a.maxDecimalPlaces))?-1:parseInt(a.maxDecimalPlaces));null!=a.maxSymbols&&1<=parseInt(a.maxSymbols)&&(c.Jy=a.maxSymbols);null!=a.currencySymbol&&
k.Nb.valid(a.currencySymbol)&&(c.pd=k.Nb.validate(a.currencySymbol,!0));if(null!=a.currencySymbolAlign&&k.Nb.valid(a.currencySymbolAlign)){var e=k.Nb.validate(a.currencySymbolAlign);e==b.vaa.LEFT?c.ou=b.Uy.$1:e==b.vaa.RIGHT&&(c.ou=b.Uy["1$"])}null!=a.positiveCurrencyFormat&&k.Nb.valid(a.positiveCurrencyFormat)&&(c.ou=k.Nb.validate(a.positiveCurrencyFormat,!0));null!=a.negativeCurrencyFormat&&k.Nb.valid(a.negativeCurrencyFormat)&&(c.fu=k.Nb.validate(a.negativeCurrencyFormat,!0));null!=a.negativeNumberFormat&&
k.Nb.valid(a.negativeNumberFormat)&&(c.xq=k.Nb.validate(a.negativeNumberFormat));null!=a.nullValue&&k.Nb.valid(a.nullValue)&&(c.YG=k.Nb.validate(a.nullValue,!0));null!=a.infinityValue&&k.Nb.valid(a.infinityValue)&&(c.GG=k.Nb.validate(a.infinityValue,!0));null!=a.divideByZeroValue&&k.Nb.valid(a.divideByZeroValue)&&(c.OF=k.Nb.validate(a.divideByZeroValue,!0));null!=a.textAlign&&k.Nb.valid(a.textAlign)&&(c.textAlign=k.Nb.validate(a.textAlign));null!=a.isPercent&&(c.Xd=1==a.isPercent);null!=a.isCount&&
(c.Tf=1==a.isCount);null!=a.beautifyFloatingPoint&&(c.gK=1==a.beautifyFloatingPoint);return c};b.prototype.clone=function(){var a=new b;a.name=this.name;this.Fb.hasOwnProperty("thousandsSeparator")&&(a.thousandsSeparator=this.thousandsSeparator);this.Fb.hasOwnProperty("decimalSeparator")&&(a.HF=this.HF);this.Fb.hasOwnProperty("decimalPlaces")&&(a.Ql=this.Ql);this.Fb.hasOwnProperty("maxDecimalPlaces")&&(a.mw=this.mw);this.Fb.hasOwnProperty("maxSymbols")&&(a.Jy=this.Jy);this.Fb.hasOwnProperty("currencySymbol")&&
(a.pd=this.pd);this.Fb.hasOwnProperty("positiveCurrencyFormat")&&(a.ou=this.ou);this.Fb.hasOwnProperty("negativeCurrencyFormat")&&(a.fu=this.fu);this.Fb.hasOwnProperty("negativeNumberFormat")&&(a.xq=this.xq);this.Fb.hasOwnProperty("nullValue")&&(a.YG=this.YG);this.Fb.hasOwnProperty("infinityValue")&&(a.GG=this.GG);this.Fb.hasOwnProperty("divideByZeroValue")&&(a.OF=this.OF);this.Fb.hasOwnProperty("textAlign")&&(a.textAlign=this.textAlign);this.Fb.hasOwnProperty("isPercent")&&(a.Xd=this.Xd);this.Fb.hasOwnProperty("isPercent")&&
(a.Tf=this.Tf);this.Fb.hasOwnProperty("beautifyFloatingPoint")&&(a.gK=this.gK);var c={},e;for(e in this.Ld)c[e]=this.Ld[e];a.Ld=c;return a};b.prototype.Iea=function(a){for(var c in a)this.Ld[c]=a[c]};q.Object.defineProperties(b.prototype,{Sd:{configurable:!0,enumerable:!0,get:function(){return this.Fb}},thousandsSeparator:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.thousandsSeparator?this.Fb.thousandsSeparator:this.Ld.thousandsSeparator},set:function(a){this.Fb.thousandsSeparator=
a}},HF:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.decimalSeparator?this.Fb.decimalSeparator:this.Ld.decimalSeparator},set:function(a){this.Fb.decimalSeparator=a}},Ql:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.decimalPlaces?this.Fb.decimalPlaces:this.Ld.decimalPlaces},set:function(a){this.Fb.decimalPlaces=a}},mw:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.maxDecimalPlaces?this.Fb.maxDecimalPlaces:this.Ld.maxDecimalPlaces},
set:function(a){this.Fb.maxDecimalPlaces=a}},Jy:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.maxSymbols?this.Fb.maxSymbols:this.Ld.maxSymbols},set:function(a){this.Fb.maxSymbols=a}},pd:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.currencySymbol?this.Fb.currencySymbol:this.Ld.currencySymbol},set:function(a){this.Fb.currencySymbol=a}},ou:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.positiveCurrencyFormat?this.Fb.positiveCurrencyFormat:
this.Ld.positiveCurrencyFormat},set:function(a){this.Fb.positiveCurrencyFormat=a}},fu:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.negativeCurrencyFormat?this.Fb.negativeCurrencyFormat:this.Ld.negativeCurrencyFormat},set:function(a){this.Fb.negativeCurrencyFormat=a}},xq:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.negativeNumberFormat?this.Fb.negativeNumberFormat:this.Ld.negativeNumberFormat},set:function(a){this.Fb.negativeNumberFormat=a}},YG:{configurable:!0,
enumerable:!0,get:function(){return void 0!=this.Fb.nullValue?this.Fb.nullValue:this.Ld.nullValue},set:function(a){this.Fb.nullValue=a}},GG:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.infinityValue?this.Fb.infinityValue:this.Ld.infinityValue},set:function(a){this.Fb.infinityValue=a}},OF:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.divideByZeroValue?this.Fb.divideByZeroValue:this.Ld.divideByZeroValue},set:function(a){this.Fb.divideByZeroValue=a}},textAlign:{configurable:!0,
enumerable:!0,get:function(){return void 0!=this.Fb.textAlign?this.Fb.textAlign:this.Ld.textAlign},set:function(a){this.Fb.textAlign=a}},Xd:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.isPercent?this.Fb.isPercent:this.Ld.isPercent},set:function(a){this.Fb.isPercent=a}},Tf:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.isCount?this.Fb.isCount:this.Ld.isCount},set:function(a){this.Fb.isCount=a}},gK:{configurable:!0,enumerable:!0,get:function(){return void 0!=
this.Fb.beautifyFloatingPoint?this.Fb.beautifyFloatingPoint:this.Ld.beautifyFloatingPoint},set:function(a){this.Fb.beautifyFloatingPoint=a}},waa:{configurable:!0,enumerable:!0,set:function(){},get:function(){return 1<this.pd.length&&"&"==this.pd.charAt(0)&&";"==this.pd.charAt(this.pd.length-1)?1:this.pd.length}}});b.vaa={LEFT:"left",RIGHT:"right"};b.Rr={"-$1":"-$1","-1$":"-1$","$-1":"$-1","$1-":"$1-","1-$":"1-$","1$-":"1$-","($1)":"($1)","(1$)":"(1$)"};b.Uy={$1:"$1","1$":"1$"};b.gu={"-1":"-1","- 1":"- 1",
"1-":"1-","1 -":"1 -","(1)":"(1)"};b.textAlign={LEFT:"left",CENTER:"center",RIGHT:"right"};d.pf=b})(h.W||(h.W={}))})(k.Zb||(k.Zb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.valid=function(b){return b==d.Gf||b==d.Nc||b==d.Zd||b==d.API||b==d.JSON||b==d.xh||b==d.Pp||b==d.EMPTY};d.Hc=function(b){return this.valid(b)&&(b==d.Zd||b==d.Nc||b==d.Gf||b==d.API)};d.J=function(b){return b==d.xh?"CSV":b==d.Pp?"OCSV":b==d.JSON?"JSON":b==d.Nc?"Microsoft Analysis Services":b==d.Zd?"Mondrian":b==d.Gf?"Elasticsearch":b==d.API?"Flexmonster Custom API":""};d.Nc="microsoft analysis services";d.Zd="mondrian";d.xh="csv";d.Pp="ocsv";d.JSON=
"json";d.Gf="elasticsearch";d.API="api";d.EMPTY="";h.oa=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return g.apply(this,arguments)||this}function b(){}function a(){}function c(){}function e(){return g.apply(this,arguments)||this}function g(){}function l(){}l.validate=function(m){if(f.ha(m))return l.NONE;m=m.toLowerCase();return 0<=l.types.indexOf(m)?m:l.NONE};l.pda=function(m,n){switch(m){case h.eb.Sc:return c.Cg(n);case h.eb.fb:return g.Cg(n);case h.eb.Oa:return a.Cg(n)}return!1};l.NONE="none";l.gk="label";l.Oa="date";l.fb="number";l.nn="value";
l.Yb="time";l.types=[l.NONE,l.gk,l.Oa,l.fb,l.nn,l.Yb];h.kb=l;g.Cg=function(m){return f.v(m)?!1:0<=g.Gp.indexOf(m.toLowerCase())};g.EQUAL="equal";g.If="not_equal";g.GREATER="greater";g.Kk="greater_equal";g.LESS="less";g.Lk="less_equal";g.Sg="between";g.Jg="not_between";g.Qh=[g.EQUAL,g.If,g.GREATER,g.Kk,g.LESS,g.Lk];g.rf=[g.Sg,g.Jg];g.Gp=[g.EQUAL,g.If,g.GREATER,g.Kk,g.LESS,g.Lk,g.Sg,g.Jg];h.vg=g;u(e,g);h.ik=e;c.Cg=function(m){return f.v(m)?!1:0<=c.Gp.indexOf(m.toLowerCase())};c.EQUAL="equal";c.If="not_equal";
c.LD="begin";c.$z="not_begin";c.Mz="end";c.bA="not_end";c.an="contain";c.aA="not_contain";c.GREATER="greater";c.Kk="greater_equal";c.LESS="less";c.Lk="less_equal";c.Sg="between";c.Jg="not_between";c.Qh=[c.EQUAL,c.If,c.LD,c.$z,c.Mz,c.bA,c.an,c.aA,c.GREATER,c.Kk,c.LESS,c.Lk];c.rf=[c.Sg,c.Jg];c.Gp=[c.EQUAL,c.If,c.LD,c.$z,c.Mz,c.bA,c.an,c.aA,c.GREATER,c.Kk,c.LESS,c.Lk,c.Sg,c.Jg];h.wb=c;a.Cg=function(m){return f.v(m)?!1:0<=a.Gp.indexOf(m.toLowerCase())};a.EQUAL="equal";a.If="not_equal";a.JD="before";a.KD=
"before_equal";a.FD="after";a.GD="after_equal";a.Sg="between";a.Jg="not_between";a.tO="last";a.MN="current";a.KO="next";a.Qh=[a.EQUAL,a.If,a.JD,a.KD,a.FD,a.GD];a.rf=[a.Sg,a.Jg];a.$w=[a.tO,a.MN,a.KO];a.Gp=[a.EQUAL,a.If,a.JD,a.KD,a.FD,a.GD,a.Sg,a.Jg,a.tO,a.MN,a.KO];h.Ub=a;b.Cg=function(m){return f.v(m)?!1:0<=b.types.indexOf(m.toLowerCase())};b.hm="day";b.eJ="week";b.Hg="month";b.Cs="quarter";b.Qk="year";b.types=[b.hm,b.eJ,b.Hg,b.Cs,b.Qk];h.Kz=b;u(d,g);d.Cg=function(m){return f.v(m)?!1:0<=d.Gp.indexOf(m.toLowerCase())};
d.Bj="top";d.ji="bottom";d.Qh=[d.Bj,d.ji,d.EQUAL,d.If,d.GREATER,d.Kk,d.LESS,d.Lk];d.rf=[d.Sg,d.Jg];d.Gp=[d.Bj,d.ji,d.EQUAL,d.If,d.GREATER,d.Kk,d.LESS,d.Lk,d.Sg,d.Jg];h.tc=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.Cg=function(b){return b==d.Zc||b==d.bc||b==d.Ec};d.xS=function(b,a,c){b=void 0===b?"":b;a=void 0===a?!1:a;return(void 0===c?0:c)?b==k.i.xa.bc?a?k.i.xa.Zc:k.i.xa.Ec:b==k.i.xa.Ec?a?k.i.xa.bc:k.i.xa.Zc:a?k.i.xa.Ec:k.i.xa.bc:b==k.i.xa.Ec?k.i.xa.bc:k.i.xa.Ec};d.Zc="unsorted";d.bc="asc";d.Ec="desc";d.Gna="numericRange";h.xa=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.Ia="rows";d.Sa="columns";d.As="pages";h.ia=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){}d.Zz=1;d.AO=2;h.Lz=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.NB=function(b){var a=d.Eu;switch(b){case h.input.ff.V6.AO:a=d.Op;break;case h.input.ff.V6.Zz:a=d.Oa}return a};d.N_=function(b){return 0<=h.Ja.NK.indexOf(b)?d.Op:"date"==b?d.Oa:d.Eu};d.M_=function(b){var a=d.Eu;switch(b){case h.input.pa.fb:case h.input.pa.Yb:a=d.Op;break;case h.input.pa.gj:case h.input.pa.Np:case h.input.pa.oo:case h.input.pa.Dc:case h.input.pa.Oa:a=d.Oa}return a};d.wD=function(b){var a=h.input.pa.Sc;switch(b){case d.Op:a=h.input.pa.fb;
break;case d.Oa:a=h.input.pa.Oa}return a};d.Eu=0;d.Oa=1;d.Op=2;d.NK=["keyword","date","boolean"];h.Gc=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.NB=function(b){switch(b){case h.input.ff.Wz.Sc:case h.input.ff.Wz.ypa:return d.Sc;case h.input.ff.Wz.io:return d.io;case h.input.ff.Wz.Oa:return d.Oa;case h.input.ff.Wz.Dc:return d.Dc;case h.input.ff.Wz.bpa:return d.Yb;case h.input.ff.Wz.sc:return d.sc}return d.fb};d.xxa=function(b){b=b.toLowerCase();switch(b){case "string":return d.Oa;case "integer":case "number":case "double":return d.fb;default:return d.fb}};d.uxa=function(b){switch(b){case 13:return d.Yb;
case 15:return d.Dc;case 3:return d.io;case 12:return d.fb}return d.sc};d.wxa=function(b){var a=d.sc;switch(b){case "number":a=d.fb;break;case "string":a=d.Sc;break;case "boolean":a=d.io;break;case "date":a=d.Oa;break;case "timestamp":a=d.Yb;break;case "count":a=d.sc}return a};d.N_=function(b){return 0<=h.Gc.NK.indexOf(b)?d.sc:d.fb};d.wD=function(b){switch(b){case d.Sc:return h.input.pa.Sc;case d.io:return h.input.pa.io;case d.Oa:return h.input.pa.Oa;case d.Dc:return h.input.pa.Dc;case d.Yb:return h.input.pa.Yb;
case d.sc:return h.input.pa.Sc}return h.input.pa.fb};d.fb=1;d.Sc=2;d.io=3;d.Oa=4;d.Yb=5;d.Dc=6;d.sc=7;d.NK="long integer short byte double float half_float scaled_float".split(" ");h.Ja=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.oT=function(b){return b===d.fb||b===d.Qk||b===d.hm||b===d.nO||b===d.HO||b===d.dX||b===d.C7||b===d.Dc||b===d.Yb||b===d.Oa};d.MAa=function(b){return b===d.Oa||b===d.Dc||b===d.gj};d.vxa=function(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 d.fb}return d.Sc};d.NB=function(b,a,c){if(void 0===a?0:a)return d.vxa(void 0===c?0:c);switch(b){case h.input.ff.fk.yma:return d.yia;case h.input.ff.fk.zma:case 4178:case 4561:case 4562:return d.fb;
case h.input.ff.fk.Ama:case h.input.ff.fk.Mma:return d.Yb;case h.input.ff.fk.Ema:case h.input.ff.fk.Dma:case h.input.ff.fk.Fma:return d.hm;case h.input.ff.fk.Gma:case 4385:case 4328:case 4329:return d.xW;case h.input.ff.fk.Hma:return d.nO;case h.input.ff.fk.Ima:return d.HO;case h.input.ff.fk.Jma:return d.Hg;case h.input.ff.fk.Kma:case 4336:case 4337:case 4578:return d.Cs;case h.input.ff.fk.Lma:return d.dX;case h.input.ff.fk.Nma:case 4345:case h.input.ff.fk.Oma:case 4344:return d.eJ;case h.input.ff.fk.Pma:case 4759:case 4345:case 4346:return d.Qk;
case h.input.ff.fk.Cma:case h.input.ff.fk.Bma:case 4657:case 4659:case 4292:case 4294:return d.Oa}return d.Sc};d.wD=function(b){switch(b){case d.fb:case d.nO:case d.HO:case d.dX:case d.C7:return h.input.pa.fb;case d.Oa:case d.Qk:case d.Qk:case d.hm:return h.input.pa.Oa;case d.io:return h.input.pa.io;case d.Hg:return h.input.pa.Hg;case d.om:return h.input.pa.om;case d.Yb:return h.input.pa.Yb;case d.Dc:return h.input.pa.Dc;case d.gj:return h.input.pa.gj;default:return h.input.pa.Sc}};d.M_=function(b){switch(b){case h.input.pa.Sc:return d.Sc;
case h.input.pa.fb:return d.fb;case h.input.pa.io:return d.io;case h.input.pa.Hg:return d.Hg;case h.input.pa.om:return d.om;case h.input.pa.Oa:case h.input.pa.Np:case h.input.pa.oo:return d.Oa;case h.input.pa.gj:return d.gj;case h.input.pa.Yb:return d.Yb;case h.input.pa.Dc:return d.Dc;default:return d.Sc}};d.yia=0;d.Sc=1;d.fb=2;d.io=3;d.Oa=4;d.Yb=5;d.Qk=6;d.xW=7;d.Cs=8;d.Hg=9;d.eJ=10;d.om=11;d.hm=12;d.nO=13;d.HO=14;d.dX=15;d.C7=16;d.Dc=17;d.gj=18;h.eb=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.Zz=1;a.AO=2;b.V6=a})(d.ff||(d.ff={}))})(h.input||(h.input={}))})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.fb=1;a.Sc=2;a.io=3;a.Oa=4;a.ypa=5;a.bpa=6;a.sc=7;a.Dc=8;b.Wz=a})(d.ff||(d.ff={}))})(h.input||(h.input={}))})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.yma=1;a.zma=2;a.Ama=4;a.Cma=516;a.Gma=36;a.Hma=772;a.Ima=1028;a.Jma=132;a.Kma=68;a.Lma=2052;a.Mma=4100;a.Nma=260;a.Pma=20;a.Bma=4289;a.Dma=4296;a.Ema=4301;a.Fma=4302;a.Oma=4759;b.fk=a})(d.ff||(d.ff={}))})(h.input||(h.input={}))})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}b.valid=function(a){return-1<b.aK.indexOf(a)};b.M4=function(a){return""===a?b.Sc:"number"!=typeof a&&isNaN(Number(a))?f.O.dT(a)?f.model.B.C.yR:b.Sc:b.fb};b.sxa=function(a){a=a.trim();var c=b.Sc;"+"==a.charAt(0)?c=b.Sc:"t+"==a.substr(0,2)?c=b.Yb:"dt+"==a.substr(0,3)?c=b.Dc:"n+"==a.substr(0,2)?c=b.fb:"-"==a.charAt(0)?c=b.fb:"ds+"==a.substr(0,3)?c=b.gj:"d+"==a.substr(0,2)?c=b.Oa:"m+"==a.substr(0,2)?c=b.Hg:"w+"==a.substr(0,2)?c=b.om:"D+"==
a.substr(0,2)?c=b.Np:"D4+"==a.substr(0,3)?c=b.oo:"id+"==a.substr(0,3)&&(c=b.Vw);return c};b.fb="number";b.Sc="string";b.io="boolean";b.qf="level";b.Hg="month";b.om="weekday";b.Oa="date";b.gj="date string";b.Np="year/month/day";b.oo="year/quarter/month/day";b.Yb="time";b.Dc="datetime";b.Vw="id";b.V5="delete";b.U6="hidden";b.mE="property";b.NH="any";b.aK="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(";");
d.pa=b})(h.input||(h.input={}))})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.jF=function(b){return b===d.Up?f.model.A.j.f8:b===d.sc?f.model.A.j.I5:b===d.hj||b===d.RN?f.model.A.j.gka:b===d.Hp?f.model.A.j.f5:b===d.Mu?f.model.A.j.Rma:b===d.Su?f.model.A.j.Ioa:b===d.Tu?f.model.A.j.Koa:b===d.Bs?f.model.A.j.coa:b===d.MIN?f.model.A.j.sna:b===d.MAX?f.model.A.j.wma:b===d.Wq?f.model.A.j.Pna:b===d.ro||b===d.OO?f.model.A.j.Qna:b===d.Tp?f.model.A.j.aoa:b===d.Rp?f.model.A.j.Xna:b===d.Sp?f.model.A.j.Zna:b===d.li?f.model.A.j.Vla:b===d.dn||
b===d.QN?f.model.A.j.cka:b===d.im?f.model.A.j.eka:b===d.jn||b===d.PO?f.model.A.j.Sna:b===d.km?f.model.A.j.Una:b===d.nm||b===d.SO?f.model.A.j.poa:b===d.ln?f.model.A.j.roa:b===d.NONE?f.model.A.j.Dna:b};d.UY=function(b){b=void 0===b?null:b;var a=[];b=b?b:d.MH;for(var c=0;c<b.length;c++)a.push(d.jF(b[c]));return a};d.q$=function(b){b=void 0===b?null:b;var a=[];b=b?b:d.MH;for(var c=0;c<b.length;c++)b[c]===d.Up?a.push(f.model.A.j.WI):b[c]===d.sc?a.push(f.model.A.j.LN):b[c]===d.hj||b[c]===d.RN?a.push(f.model.A.j.SN):
b[c]===d.Hp?a.push(f.model.A.j.FN):b[c]===d.Mu?a.push(f.model.A.j.HW):b[c]===d.Su?a.push(f.model.A.j.ZO):b[c]===d.Tu?a.push(f.model.A.j.$O):b[c]===d.Bs?a.push(f.model.A.j.QO):b[c]===d.MIN?a.push(f.model.A.j.IO):b[c]===d.MAX?a.push(f.model.A.j.zO):b[c]===d.Wq?a.push(f.model.A.j.QI):b[c]===d.ro||b[c]===d.OO?a.push(f.model.A.j.JI):b[c]===d.Tp?a.push(f.model.A.j.OI):b[c]===d.Rp?a.push(f.model.A.j.MI):b[c]===d.Sp?a.push(f.model.A.j.NI):b[c]===d.li?a.push(f.model.A.j.wI):b[c]===d.dn||b[c]===d.QN?a.push(f.model.A.j.bI):
b[c]===d.im?a.push(f.model.A.j.cI):b[c]===d.jn||b[c]===d.PO?a.push(f.model.A.j.KI):b[c]===d.km?a.push(f.model.A.j.LI):b[c]===d.nm||b[c]===d.SO?a.push(f.model.A.j.RO):b[c]===d.ln?a.push(f.model.A.j.TO):b[c]===d.NONE?a.push("{0}"):-1<d.xz.indexOf(b[c])&&a.push("{0} ("+b[c]+")");return a};d.rz=function(b){return-1!==d.MH.indexOf(b)||b===d.NONE};d.bKa=function(b){return-1!==d.e5.indexOf(b)};d.AD=function(b){return-1!==d.sia.indexOf(b)||b===d.NONE};d.eo=function(b){return-1!==d.tia.indexOf(b)||b===d.NONE};
d.Tf=function(b){return-1!==d.wia.indexOf(b)};d.Xd=function(b){return-1!==d.xia.indexOf(b)};d.OL=function(b){return b===d.dn||b===d.im||b===d.jn||b===d.km};d.UL=function(b){return b===d.nm||b===d.ln};d.Vx=function(b){return b===d.RN||b===d.OO||b===d.QN||b===d.PO||b===d.SO};d.ky=function(b){switch(b){case d.RN:return d.hj;case d.OO:return d.ro;case d.QN:return d.dn;case d.PO:return d.jn;case d.SO:return d.nm;default:return""}};d.YS=function(b){return-1!==d.xz.indexOf(b)||b===d.NONE};q.Object.defineProperties(d,
{MH:{configurable:!0,enumerable:!0,get:function(){return d.xz.concat(d.yz)}},Lia:{configurable:!0,enumerable:!0,get:function(){0===d.vX.length&&(d.vX=d.via.concat(d.yz));return d.vX}},Iia:{configurable:!0,enumerable:!0,get:function(){0===d.uX.length&&(d.uX=d.uia);return d.uX}},e5:{configurable:!0,enumerable:!0,get:function(){0===d.tX.length&&(d.tX=[d.NONE].concat(d.yz));return d.tX}}});d.Up="sum";d.sc="count";d.hj="distinctcount";d.RN="distinct count";d.Hp="average";d.Mu="median";d.Su="stdevp";d.Tu=
"stdevs";d.Wq="percent";d.ro="percentofcolumn";d.Tp="percentofrow";d.Rp="percentofparentcolumntotal";d.Sp="percentofparentrowtotal";d.OO="percent of column";d.Bs="product";d.li="index";d.nm="runningtotalsofcolumn";d.ln="runningtotalsofrow";d.SO="runningtotals";d.MIN="min";d.MAX="max";d.NONE="none";d.dn="differenceofcolumn";d.im="differenceofrow";d.QN="difference";d.jn="%differenceofcolumn";d.km="%differenceofrow";d.PO="%difference";d.xz=[d.Up,d.sc,d.hj,d.Hp,d.Mu,d.Bs,d.MIN,d.MAX,d.Su,d.Tu];d.yz=[d.Wq,
d.ro,d.Tp,d.Rp,d.Sp,d.li,d.dn,d.im,d.jn,d.km,d.nm,d.ln];d.NN=[];d.via=[d.sc,d.hj];d.vX=[];d.uia=[d.MAX,d.MIN,d.sc,d.hj];d.uX=[];d.tX=[];d.Jia=[d.Up,d.sc,d.hj,d.Hp,d.MIN,d.MAX];d.Kia=[d.sc,d.hj];d.wia=[d.sc,d.hj];d.xia=[d.Wq,d.ro,d.Tp,d.Rp,d.Sp,d.jn,d.km];d.sia=[d.Up,d.Hp,d.Mu,d.Bs,d.MIN,d.MAX];d.tia=[d.Up,d.Hp,d.Mu,d.Bs,d.MIN,d.MAX,d.Su,d.Tu,d.dn,d.im,d.nm,d.ln];h.ca=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.AN="+";d.aP="-";d.JO="*";d.dI="/";d.TW="^";d.LESS="<";d.GREATER=">";d.EQUAL="=";d.wka="==";d.If="!=";d.d7="<=";d.R6=">=";d.N7="or";d.X4="and";d.oO="if";d.KV="abs";d.$W="round";d.MIN="min";d.MAX="max";d.Qia="isnan";d.Fna="!isnan";d.nn="value";d.lP="updatedifference";d.mP="updatepercent";h.jc=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.to="select";d.Oz="expand";d.y5="collapse";d.aW="drillUp";d.Fu="drillDown";d.ZV="drillDownTo";d.eI="drillThrough";d.bO="filter";d.cX="search";h.Kd=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){}d.TN=Number.NEGATIVE_INFINITY;h.UN=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=this;this.Gk=function(){return b.Vr()};this.ej=function(){return b.mp()}}d.prototype.aCa=function(b,a,c){try{this.dispose(),this.Ib=c,this.DB=this.Jj=0,this.lw=x.hx.AG(b),this.dN(this.lw,a)}catch(e){this.Mb(e)}};d.prototype.yq=function(){f.za(!1);try{var b=JSON.parse(this.ma.response)}catch(a){b=null}null!=this.Ib&&(this.Ib(b),this.dispose())};d.prototype.sDa=function(){f.za(!0,f.model.A.j.NW,"")};d.prototype.lp=function(b){var a=b.data;if(404==
a.target.status)this.Mb(b);else if(!f.v(this.ma))try{var c=this.ma.response;if(null!=c&&0!=c.length&&(this.Jj!=a.loaded||this.DB!=c.length)){this.Jj=a.loaded;this.DB=c.length;var e=0==a.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(a.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(a.loaded),x.Tb.xg(a.total),(a.loaded/a.total*100).toFixed(0));f.za(!0,f.model.A.j.NW,e)}}catch(g){console.error(g.stack),this.Mb(g)}};d.prototype.Mb=function(){f.za(!1);null!=this.Ib&&(this.Ib(null),this.dispose())};d.prototype.dN=function(b,
a){var c=this;this.timer=new x.Es(100,1E5);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start();var e=new D.Qi;e.dataType=D.Jz.lA;e.N(y.da.Jc,function(){return c.yq()});e.N(y.da.Fz,function(){return c.sDa()});e.N(y.da.je,function(g){return c.lp(g)});e.N(y.da.ya,function(g){return c.Mb(g)});e.vh(a);e.load(b);this.ma=e};d.prototype.Vr=function(){0<this.Jj?this.ag():null!=this.timer&&this.timer.sl&&f.za(!0,f.model.A.j.NW,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/10,
new f.model.Zb.W.pf,!1,!1,1)))};d.prototype.mp=function(){this.timer.sl&&this.ag()};d.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};d.prototype.dispose=function(){this.ag();null!=this.ma&&(this.ma.Od(),this.ma.dispose(),this.ma=null);this.Ib=null};h.vna=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){b=void 0===b?null:b;this.lw=this.mapping=null;this.yt={};this.RT=null;"string"==typeof b?this.lw=b:(this.mapping=b,this.HV());this.yt.filters=!0}(function(b){b.ALa="visible";b.uLa="caption";b.TYPE="type";b.yW="hierarchy";b.qf="level";b.yLa="parent";b.tLa="aggregations";b.vLa="format";b.wLa="interval";b.zLa="time_zone";b.xLa="min_doc_count";b.JLa="isMeasure";b.BLa="filters"})(h.wna||(h.wna={}));d.prototype.HV=function(){for(var b in this.mapping)if("aggregations"===
b)this.Ao=this.mapping[b],delete this.mapping[b];else if(!f.v(this.mapping[b])&&"object"!==typeof this.mapping[b]){var a=k.i.input.pa.M4(this.mapping[b]);this.mapping[b]={uniqueName:b,caption:b,type:a}}};d.prototype.Fa=function(b,a,c){c=void 0===c?null:c;b=x.Mc.resolve(b,this.mapping);var e=null;f.v(b)||(e=b[a]);f.v(e)&&(e=c);f.v(e)&&(e=this.yt[a]);return e};d.prototype.Nh=function(b,a,c){var e=void 0===e?!0:e;var g=x.Mc.resolve(b,this.mapping);e&&f.v(g)&&(this.mapping[b]={},g=this.mapping[b]);f.v(g)||
(g[a]=c)};d.prototype.La=function(b){if((b=void 0===b?!1:b)&&this.Sn)return this.lw;b&&this.Ao&&(this.mapping.aggregations=this.Ao);return this.mapping};d.prototype.nCa=function(b){switch(b){case k.i.oa.API:b=new k.external.kc.DN;break;case k.i.oa.Gf:b=new k.external.De.XN;break;case k.i.oa.Zd:case k.i.oa.Nc:new k.external.yb.MO;default:b=new d}return b};d.prototype.clone=function(b){b=this.nCa(void 0===b?"":b);b.mapping=x.Mc.Vi(this.mapping);b.lw=this.lw;b.Ao=this.Ao;return b};d.prototype.isEqual=
function(b){return JSON.stringify(this.La(!0))===JSON.stringify(b.La(!0))&&b.Sn||JSON.stringify(this.mapping)===JSON.stringify(b.La())};d.prototype.bCa=function(b,a){var c=this;this.Ne=a;this.Sn&&this.ob?(this.RT=new h.vna,this.RT.aCa(this.lw,b,function(e){return c.BEa(e)})):(this.Ne(),this.Ne=null)};d.prototype.BEa=function(b){null!==b&&(this.mapping=b,this.HV());this.Ne();this.Ne=null;this.RT.dispose();this.RT=null};d.nT=function(b){if(f.v(b))return!1;if(!f.v(b.aggregations))return!0;for(var a in b)if(!f.v(b[a])&&
(Array.isArray(b[a])&&d.nT(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};d.prototype.O1=function(b,a){var c=x.Mc.resolve(b,this.mapping);f.v(a)&&(a={});if(Array.isArray(c)){for(var e=
[],g=[],l=[],m,n=0;n<c.length;n++)m=this.v9(c[n],a),f.ha(m.uniqueName)&&(m.uniqueName=b),f.ha(m.caption)&&(m.caption=b),-1!==g.indexOf(m.uniqueName)&&(m.uniqueName=b+"."+n),-1!==l.indexOf(m.caption)&&(m.caption=m.caption+" "+n),g.push(m.uniqueName),l.push(m.caption),e.push(m);return e}return this.v9(c,a)};d.prototype.v9=function(b,a){a=x.Mc.Vi(a);for(var c in b)a[c]=b[c],"aggregations"===c&&(a.availableAggregations=b[c]);return a};q.Object.defineProperties(d.prototype,{ob:{configurable:!0,enumerable:!0,
get:function(){return!this.Dda&&f.v(this.Ao)}},Dda:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.mapping)&&0<Object.keys(this.mapping).length}},Sn:{configurable:!0,enumerable:!0,get:function(){return null!==this.lw&&0<this.lw.length}}});h.Aj=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.requestHeaders=null;this.withCredentials=!1;this.pn=k.i.oa.EMPTY;this.CBa=!1}d.prototype.isEqual=function(b){return b&&this.Ba==b.Ba&&this.withCredentials==b.withCredentials};d.tb=function(b){if(void 0==b||f.model.Ea.pc.oj()==f.model.Ea.po.Bl)return new h.Pz;f.v(b.connectionInfo)||(b=b.connectionInfo);b instanceof d||b instanceof k.local.csv.CSVConnectionInfo||b instanceof k.local.csv.OCSVConnectionInfo||b instanceof k.local.json.JSONConnectionInfo||
b instanceof k.external.yb.OLAPConnectionInfo||b instanceof k.external.De.ESConnectionInfo||b instanceof k.external.kc.APIConnectionInfo||(b=d.wl(b));f.v(b.dataSourceType)||(b.dataSourceType=b.dataSourceType.toLowerCase());b.dataSourceType&&-1<b.dataSourceType.indexOf("pentaho")&&(b.dataSourceType=k.i.oa.Zd);"msolap"==b.dataSourceType&&(b.dataSourceType=k.i.oa.Nc);!k.i.oa.valid(b.dataSourceType)&&b.proxyUrl&&(b.dataSourceType=k.i.oa.Nc);if("es"==b.dataSourceType||"elastic"==b.dataSourceType)b.dataSourceType=
k.i.oa.Gf;!k.i.oa.valid(b.dataSourceType)&&(b.host||b.node)&&b.index&&(b.dataSourceType=k.i.oa.Gf);!k.i.oa.valid(b.dataSourceType)&&(b.url||b.discover&&b.select)&&(b.dataSourceType=k.i.oa.API);if(!f.v(b.filename)&&f.v(b.dataSourceType)){var a=b.filename.split("?")[0].toLowerCase();b.dataSourceType=".csv"==a.substr(-4)?k.i.oa.xh:".ocsv"==a.substr(-5)?k.i.oa.Pp:".json"==a.substr(-5)||".js"==a.substr(-3)?k.i.oa.JSON:k.i.oa.xh}!f.v(b.data)&&Array.isArray(b.data)&&(b.dataSourceType=k.i.oa.JSON,b.data=
b.data.slice());if(b.dataSourceType==k.i.oa.Gf&&f.model.Ea.pc.oj()!=f.model.Ea.po.Gf&&f.model.Ea.pc.oj()!=f.model.Ea.po.WN)return f.model.Ea.pc.oj()!=f.model.Ea.po.Bl&&f.Va(f.model.Ea.na.J(f.model.Ea.na.Ewa),f.model.Ea.na.J(f.model.Ea.na.FC)),new h.Pz;if(b.dataSourceType==k.i.oa.Nc&&f.model.Ea.pc.oj()!=f.model.Ea.po.zia&&f.model.Ea.pc.oj()!=f.model.Ea.po.WN)return f.model.Ea.pc.oj()!=f.model.Ea.po.Bl&&f.Va(f.model.Ea.na.J(f.model.Ea.na.OCa),f.model.Ea.na.J(f.model.Ea.na.FC)),new h.Pz;if(b.dataSourceType==
k.i.oa.Zd&&f.model.Ea.pc.oj()!=f.model.Ea.po.Zd&&f.model.Ea.pc.oj()!=f.model.Ea.po.WN)return f.model.Ea.pc.oj()!=f.model.Ea.po.Bl&&f.Va(f.model.Ea.na.J(f.model.Ea.na.GCa),f.model.Ea.na.J(f.model.Ea.na.FC)),new h.Pz;if((b.dataSourceType==k.i.oa.xh||b.dataSourceType==k.i.oa.Pp||b.dataSourceType==k.i.oa.JSON)&&f.model.Ea.pc.oj()!=f.model.Ea.po.Jja&&f.model.Ea.pc.oj()!=f.model.Ea.po.WN)return f.model.Ea.pc.oj()!=f.model.Ea.po.Bl&&f.Va(f.model.Ea.na.J(f.model.Ea.na.SCa),f.model.Ea.na.J(f.model.Ea.na.FC)),
new h.Pz;switch(b.dataSourceType){case k.i.oa.Pp:return k.local.csv.OCSVConnectionInfo.tb(b);case k.i.oa.xh:return k.local.csv.CSVConnectionInfo.tb(b);case k.i.oa.JSON:return k.local.json.JSONConnectionInfo.tb(b);case k.i.oa.Nc:case k.i.oa.Zd:return k.external.yb.OLAPConnectionInfo.tb(b);case k.i.oa.Gf:return k.external.De.ESConnectionInfo.tb(b);case k.i.oa.API:return k.external.kc.APIConnectionInfo.tb(b);default:return new h.Pz}};d.wl=function(b){var a={};f.ha(b.type)||(a.dataSourceType=b.type);
f.ha(b.dataSourceType)||(a.dataSourceType=b.dataSourceType);f.ha(b.filename)||(a.filename=b.filename);f.ha(b.requestHeader)||(a.requestHeaders=b.requestHeader);f.ha(b.requestHeaders)||(a.requestHeaders=b.requestHeaders);f.ha(b.browseForFile)||(a.browseForFile=b.browseForFile);f.ha(b.requestPermission)||(a.requestPermission=b.requestPermission);f.ha(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator);f.ha(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator);f.ha(b.fieldSeparator)||
(a.fieldSeparator=b.fieldSeparator);f.ha(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter);f.ha(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks);f.ha(b.embedded)||(a.embedded=b.embedded);f.ha(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset);f.ha(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad);f.ha(b.isOCSV2Data)||(a.isOCSV2Data=b.isOCSV2Data);f.v(b.data)||(a.data=b.data);f.ha(b.checkUpdates)||(a.checkUpdates=b.checkUpdates);
f.ha(b.proxyUrl)||(a.proxyUrl=b.proxyUrl);f.ha(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo);f.ha(b.catalog)||(a.catalog=b.catalog);f.ha(b.cube)||(a.cube=b.cube);f.ha(b.subquery)||(a.subquery=b.subquery);f.ha(b.binary)||(a.binary=b.binary);f.ha(b.withCredentials)||(a.withCredentials=b.withCredentials);f.ha(b.roles)||(a.roles=b.roles);f.ha(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier);f.ha(b.effectiveUserName)||(a.effectiveUserName=b.effectiveUserName);f.ha(b.customData)||(a.customData=
b.customData);f.ha(b.url)||(a.url=b.url);f.ha(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl);f.ha(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl);f.ha(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl);f.ha(b.levelsUrl)||(a.levelsUrl=b.levelsUrl);f.ha(b.measuresUrl)||(a.measuresUrl=b.measuresUrl);f.ha(b.membersUrl)||(a.membersUrl=b.membersUrl);f.ha(b.dataUrl)||(a.dataUrl=b.dataUrl);f.ha(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl);f.ha(b.host)||(a.host=b.host);f.ha(b.node)||
(a.node=b.node);f.ha(b.connection)||(a.connection=b.connection);f.ha(b.index)||(a.index=b.index);f.ha(b.mapping)||(a.mapping=b.mapping);f.ha(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint);f.ha(b.useSockets)||(a.useSockets=b.useSockets);f.ha(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader);f.ha(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters);f.ha(b.hash)||(a.hash=b.hash);f.ha(b.username)||(a.username=b.username);f.ha(b.password)||
(a.password=b.password);f.ha(b.dataSource)||(b=b.dataSource,f.ha(b.type)||(a.dataSourceType=b.type),f.ha(b.dataSourceType)||(a.dataSourceType=b.dataSourceType),f.ha(b.filename)||(a.filename=b.filename),f.ha(b.requestHeader)||(a.requestHeaders=b.requestHeader),f.ha(b.requestHeaders)||(a.requestHeaders=b.requestHeaders),f.ha(b.browseForFile)||(a.browseForFile=b.browseForFile),f.ha(b.requestPermission)||(a.requestPermission=b.requestPermission),f.ha(b.fieldSeparator)||(a.fieldSeparator=b.fieldSeparator),
f.ha(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator),f.ha(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator),f.ha(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter),f.ha(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks),f.ha(b.embedded)||(a.embedded=b.embedded),f.ha(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset),f.ha(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad),f.ha(b.isOCSV2Data)||
(a.isOCSV2Data=b.isOCSV2Data),f.v(b.data)||(a.data=b.data),f.ha(b.proxyUrl)||(a.proxyUrl=b.proxyUrl),f.ha(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo),f.ha(b.catalog)||(a.catalog=b.catalog),f.ha(b.cube)||(a.cube=b.cube),f.ha(b.subquery)||(a.subquery=b.subquery),f.ha(b.binary)||(a.binary=b.binary),f.ha(b.withCredentials)||(a.withCredentials=b.withCredentials),f.ha(b.roles)||(a.roles=b.roles),f.ha(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier),f.ha(b.effectiveUserName)||(a.effectiveUserName=
b.effectiveUserName),f.ha(b.customData)||(a.customData=b.customData),f.ha(b.url)||(a.url=b.url),f.ha(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl),f.ha(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl),f.ha(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl),f.ha(b.levelsUrl)||(a.levelsUrl=b.levelsUrl),f.ha(b.measuresUrl)||(a.measuresUrl=b.measuresUrl),f.ha(b.membersUrl)||(a.membersUrl=b.membersUrl),f.ha(b.dataUrl)||(a.dataUrl=b.dataUrl),f.ha(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl),
f.ha(b.host)||(a.host=b.host),f.ha(b.node)||(a.node=b.node),f.ha(b.connection)||(a.connection=b.connection),f.ha(b.index)||(a.index=b.index),f.ha(b.mapping)||(a.mapping=b.mapping),f.ha(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint),f.ha(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader),f.ha(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters),b=b.credentials,null!=b&&(f.ha(b.hash)||(a.hash=b.hash),f.ha(b.username)||(a.username=
b.username),f.ha(b.password)||(a.password=b.password)));return a};d.Qj=function(b){var a=b.find("dataSource"),c=a.attr("type");void 0!==c&&(c=c.toLowerCase());"msolap"==c&&(c=k.i.oa.Nc);c&&-1<c.indexOf("pentaho")&&(c=k.i.oa.Zd);var e=a.find("filename");if(!k.i.oa.valid(c)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(c=k.i.oa.Nc);0<e.length&&0<e.text().length&&(c=k.i.oa.xh)}0<e.length&&0<e.text().length&&".ocsv"==e.text().toLocaleLowerCase().substr(-5)&&(c=k.i.oa.Pp);0<e.length&&0<e.text().length&&
".json"==e.text().toLocaleLowerCase().substr(-5)&&(c=k.i.oa.JSON);0<e.length&&0<e.text().length&&".csv"==e.text().toLocaleLowerCase().substr(-4)&&(c=k.i.oa.xh);switch(c){case k.i.oa.Pp:return k.local.csv.OCSVConnectionInfo.Qj(a[0]);case k.i.oa.xh:return k.local.csv.CSVConnectionInfo.Qj(b);case k.i.oa.JSON:return k.local.json.JSONConnectionInfo.Qj(a[0]);case k.i.oa.Nc:case k.i.oa.Zd:return k.external.yb.OLAPConnectionInfo.Qj(b);default:return k.local.csv.CSVConnectionInfo.Qj(b)}};d.prototype.co=function(){var b=
D.aa.create("<dataSource/>");this.Ba!=k.i.oa.EMPTY&&b.attr("type",this.Ba);return b};q.Object.defineProperties(d.prototype,{Ba:{configurable:!0,enumerable:!0,get:function(){return this.pn},set:function(b){this.pn=b.toLowerCase()}},Hc:{configurable:!0,enumerable:!0,get:function(){return k.i.oa.Hc(this.pn)},set:function(){}},rT:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},ob:{configurable:!0,enumerable:!0,get:function(){return this.pn==k.i.oa.EMPTY},set:function(){}},NL:{configurable:!0,
enumerable:!0,get:function(){return this.pn===k.i.oa.xh&&"this"===this.filename}},RL:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},KG:{configurable:!0,enumerable:!0,get:function(){return!0}},gT:{configurable:!0,enumerable:!0,get:function(){return!0}},fT:{configurable:!0,enumerable:!0,get:function(){return!0}}});h.ConnectionInfo=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(d){this.pb=[];this.Ac=[];this.Wg=[];this.cb=[];this.vd=[];this.Md=[];this.le=[];this.ra=[];this.al=[];this.Yg=[];this.bg=[];this.Ao=[];this.Fx=[];this.pC=[];this.Mm=[];this.Hna=0;this.ofa=[];this.Ti=[];this.uh=[];this.sizes=[];this.filters=[];this.Ew=[];this.Et=[];this.values=[];this.SP=[];this.wa=d}h.prototype.vF=function(){this.Mm=[];this.cb=[];this.pb=[];this.Ac=[];this.al=[];this.ra=[];this.values=[];this.Wg=[];this.filters=[]};h.prototype.uZ=function(){this.le=
[];this.Yg=[];this.bg=[];this.Ao=[];this.Fx=[];this.pC=[]};h.prototype.tr=function(){this.vF();this.uZ();this.vd=[];this.Md=[];this.sizes=[];this.Wg=[]};h.prototype.Pxa=function(d){return isNaN(d[0])};h.prototype.Rxa=function(d){return!isNaN(d[0])};h.prototype.Dxa=function(d){return void 0===d[0]||"string"===typeof d[0]||void 0===d[1]||"string"===typeof d[1]?(null==d[0]||"number"===typeof d[0]&&isNaN(d[0])?"":d[0])+(null==d[1]||"number"===typeof d[1]&&isNaN(d[1])?"":d[1]):d[0]+d[1]};h.prototype.Vxa=
function(d){return d[0]-d[1]};h.prototype.Oxa=function(d){return d[0]*d[1]};h.prototype.Fxa=function(d){return 0==d[1]||isNaN(d[1])?k.i.UN.TN:d[0]/d[1]};h.prototype.Txa=function(d){return Math.pow(d[0],d[1])};h.prototype.Kxa=function(d){return d[0]<d[1]};h.prototype.Hxa=function(d){return d[0]>d[1]};h.prototype.Gxa=function(d){return d[0]==d[1]};h.prototype.Qxa=function(d){return d[0]!=d[1]};h.prototype.Lxa=function(d){return d[0]<=d[1]};h.prototype.Ixa=function(d){return d[0]>=d[1]};h.prototype.Sxa=
function(d){return d[0]||d[1]};h.prototype.Exa=function(d){return d[0]&&d[1]};h.prototype.Jxa=function(d){return d[0]?d[1]:d[2]};h.prototype.Cxa=function(d){return Math.abs(d[0])};h.prototype.Uxa=function(d){return Math.round(d[0])};h.prototype.Nxa=function(d){return Math.min(d[0],d[1])};h.prototype.Mxa=function(d){return Math.max(d[0],d[1])};h.prototype.rr=function(d,b){for(var a=1,c=0,e,g,l=this.Ti.length-1;0<=l;l--)g=this.sizes[this.uh.length+l],0<g&&(e=void 0===b[l]?0:b[l],c+=e*a,a*=g);for(b=
this.uh.length-1;0<=b;b--)g=this.sizes[b],0<g&&(e=d&&void 0!==d[b]?d[b]:0,Math.abs(e*a)>9007199254740991-c&&(a=-a%1E6,0==a&&(a=-g)),c+=e*a,a*=g);return c};h.prototype.u0=function(d,b){for(var a=0,c=!0,e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(a+=g,c=!1)}return c?NaN:a};h.prototype.iza=function(d,b){for(var a=Number.MAX_VALUE,c=!0,e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(g<a&&(a=g),c=!1)}return c?NaN:a};h.prototype.bza=function(d,b){for(var a=Number.NEGATIVE_INFINITY,c=!0,
e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(g>a&&(a=g),c=!1)}return c?NaN:a};h.prototype.xza=function(d,b){for(var a=1,c=!0,e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(a*=g,c=!1)}return c?NaN:a};h.prototype.Yba=function(d,b){for(var a=0,c=0,e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(a+=g,c++)}return 0==c?NaN:a/c};h.prototype.fza=function(d,b){for(var a=[],c=0;c<d.length;c++){var e=this.Ac[b][d[c]];isNaN(e)||a.push(e)}if(0===a.length)return NaN;f.Ha.sort(a,f.Ha.mi);if(1===
a.length%2)return a[Math.floor(a.length/2)];d=a.length/2;return(a[d]+a[d-1])/2};h.prototype.lca=function(d,b){for(var a=this.Yba(d,b),c=0,e=0,g=0;g<d.length;g++){var l=this.Ac[b][d[g]];isNaN(l)||(c+=Math.pow(l-a,2),e++)}return{Paa:c,count:e}};h.prototype.Nza=function(d,b){d=this.lca(d,b);return 0==d.count?NaN:Math.sqrt(d.Paa/d.count)};h.prototype.Oza=function(d,b){d=this.lca(d,b);return 0==d.count?NaN:1==d.count?0:Math.sqrt(d.Paa/(d.count-1))};h.prototype.tza=function(d,b){null==this.SP[b]&&(this.SP[b]=
this.u0(this.cb,b));return Math.abs(100*this.u0(d,b)/this.SP[b])};h.prototype.xya=function(d,b){for(var a=0,c=0;c<d.length;c++){var e=this.Ac[b][d[c]];isNaN(e)||this.Ac[b]instanceof Uint8Array&&0==e||a++}return a};h.prototype.Iya=function(d,b,a){return k.bf.ij.uc("",!1).Fa(d,b,a)};h.prototype.uza=function(d,b,a){return k.bf.ij.uc("",!1).Fa(d,b,a)};h.prototype.cd=function(d,b){for(var a=0;a<d.length;a++){if(void 0===b)return;b=b[d[a]]}return b};h.prototype.YU=function(d,b){for(var a=0;a<d.length;a++)void 0===
b[d[a]]&&(b[d[a]]=[[[]],[],[],void 0,void 0,!1]),b=b[d[a]];return b};h.prototype.Ih=function(d,b){if(0===d.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?-1===b?-1:this.Et[b]:this.Eh(b));d=this.cd(d,this.vd);return void 0===d||void 0===d[0]||void 0===d[0][3]?!1:-1===a||void 0===d[0][3][a]?d[0][3][this.bg.length]:d[0][3][a]};h.prototype.Eh=function(d,b,a){"string"!==typeof d&&(b=d.$,d=d.uniqueName);if(f.model.B.C.oc&&!a||void 0===b||b===k.i.ca.NONE)for(a=0;a<this.bg.length;a++){if(this.bg[a]===
d)return a}else for(a=0;a<this.bg.length;a++)if(this.bg[a]===d&&(void 0===this.Ao[a]||this.Ao[a]===b))return a;return-1};h.prototype.Sj=function(d,b){if(0===d.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?this.Et[b]:this.Eh(b));d=this.cd(d,this.Md);return void 0===d||void 0===d[0]||void 0===d[0][3]?!1:-1===a||void 0===d[0][3][a]?d[0][3][this.bg.length]:d[0][3][a]};h.prototype.collapse=function(d,b,a){0===this.vd.length&&(this.vd=[[this.cb,[],[],void 0,void 0]]);0===this.Md.length&&(this.Md=
[[this.cb,[],[],void 0,void 0]]);1===this.Et.length&&(a=void 0);b===k.i.ia.Ia&&this.Ita(d,a);b===k.i.ia.Sa&&this.Gta(d,a)};h.prototype.Ita=function(d,b){this.J8(this.cd(d,this.vd),b)};h.prototype.Gta=function(d,b){this.J8(this.cd(d,this.Md),b)};h.prototype.J8=function(d,b){void 0!==d&&(void 0===d[0][3]&&(d[0][3]=[]),void 0!==b?d[0][3][this.Eh(b)]=!1:d[0][3][this.bg.length]=!1)};h.prototype.expand=function(d,b,a){0!==this.cb.length&&(1===this.Et.length&&(a=void 0),0===this.vd.length&&(this.vd=[[this.cb,
[],[],void 0,void 0]],this.A_([],a)),0===this.Md.length&&(this.Md=[[this.cb,[],[],void 0,void 0]],this.w_([],a)),b===k.i.ia.Ia&&this.A_(d,a),b===k.i.ia.Sa&&this.w_(d,a))};h.prototype.A_=function(d,b){var a=this.cd(d,this.vd);void 0===a&&this.fB()&&(a=this.YU(d,this.vd));if(void 0!==a){var c=this.uh[d.length];d.length<this.uh.length&&this.yA(a,c,b)}};h.prototype.w_=function(d,b){var a=this.cd(d,this.Md);void 0===a&&this.kF()&&(a=this.YU(d,this.Md));if(void 0!==a){var c=this.Ti[d.length];d.length<this.Ti.length&&
this.yA(a,c,b)}};h.prototype.yA=function(d,b,a){if(void 0!==d){var c=d[0][0];if(0<c.length&&!isNaN(b))for(var e=0;e<c.length;e++){var g=this.ra[b][1]<this.pb.length?this.pb[this.ra[b][1]][c[e]]:0;0!==g&&void 0!==g&&(void 0===d[g]?(d[g]=[[[c[e]],[],[],void 0,void 0,!1]],d[0][1].push(g)):d[0][5]||d[g][0][0].push(c[e]))}void 0===d[0][3]&&(d[0][3]=[]);void 0===a?d[0][3][this.bg.length]=!0:d[0][3][this.Eh(a)]=!0;d[0][5]=!0}};h.prototype.To=function(d,b,a,c){1===this.Et.length&&(c=void 0);a===k.i.ia.Ia&&
this.wwa(d,c);a===k.i.ia.Sa&&this.vwa(d,c)};h.prototype.wwa=function(d,b){var a=this.cd(d,this.vd);d=d.slice(0,-1);this.HX(this.cd(d,this.vd),a,b)};h.prototype.vwa=function(d,b){var a=this.cd(d,this.Md);d=d.slice(0,-1);this.HX(this.cd(d,this.Md),a,b)};h.prototype.tf=function(d,b,a,c){0!==b.children.length&&(1===this.Et.length&&(c=void 0),0===this.vd.length&&(this.vd=[[this.cb,[],[],void 0,void 0]],this.A_([],c)),0===this.Md.length&&(this.Md=[[this.cb,[],[],void 0,void 0]],this.w_([],c)),a===k.i.ia.Ia&&
this.swa(d,b,c),a===k.i.ia.Sa&&this.qwa(d,b,c))};h.prototype.swa=function(d,b,a){var c=this.cd(d,this.vd);void 0===c&&this.fB()&&(c=this.YU(d,this.vd));if(void 0!==c){d=d.slice(0,-1);var e=this.uh[d.length];this.JP(this.cd(d,this.vd),c,e,this.ra[e][b.level.sb+1],a)}};h.prototype.JP=function(d,b,a,c,e){if(void 0!==b&&void 0!==b[0]){var g=b[0][0];if(0<g.length&&!isNaN(c)){void 0===d.indiciesMap&&(d.indiciesMap={});for(var l=0;l<g.length;l++){var m=this.pb[c][g[l]];if(0!==m&&void 0!==m)if(void 0===d[m]){d[m]=
[[[g[l]],[],[],void 0,void 0]];b[0][2].push(m);this.al[a][m]=c;var n={};d.indiciesMap[m]=(n[g[l]]=1,n)}else 1!==d.indiciesMap[m][g[l]]&&(d[m][0][0].push(g[l]),d.indiciesMap[m][g[l]]=1)}}void 0===b[0][4]&&(b[0][4]=[]);void 0===e?b[0][4][this.bg.length]=!0:b[0][4][this.Eh(e)]=!0}};h.prototype.qwa=function(d,b,a){var c=this.cd(d,this.Md);void 0===c&&this.kF()&&(c=this.YU(d,this.Md));d=d.slice(0,-1);var e=this.Ti[d.length];this.JP(this.cd(d,this.Md),c,e,this.ra[e][b.level.sb+1],a)};h.prototype.HX=function(d,
b,a){var c=b[0][2];if(void 0!==c&&0<c.length)for(var e=0;e<c.length;e++){var g=c[e];void 0!==d[g][0][4]&&this.HX(d,d[g],a);d[g]=void 0}b[0][2]=[];b[0][4][this.bg.length]=!1;void 0!==a&&(b[0][4][this.Eh(a)]=!1)};h.prototype.Hh=function(d,b,a){b=this.bg.length;void 0!==a&&(b="number"===typeof a?-1===a?-1:this.Et[a]:this.Eh(a));-1===b&&(b=this.bg.length);d=this.cd(d,this.vd);return void 0!==d&&void 0!==d[0]&&void 0!==d[0][4]&&(d[0][4][b]||d[0][4][this.bg.length])};h.prototype.Rj=function(d,b,a){b=this.bg.length;
void 0!==a&&(b="number"===typeof a?-1===a?-1:this.Et[a]:this.Eh(a));-1===b&&(b=this.bg.length);d=this.cd(d,this.Md);return void 0!==d&&void 0!==d[0]&&void 0!==d[0][4]&&(d[0][4][b]||d[0][4][this.bg.length])};h.prototype.LL=function(d,b,a){var c=this.le.indexOf(b.hierarchy.uniqueName),e=b.Wb?d.slice(0,-1):d.slice(0),g=a===k.i.ia.Ia?this.cd(e,this.vd):this.cd(e,this.Md);1<d.length?(e=d.slice(0,-1),d=(a===k.i.ia.Ia?this.cd(e,this.vd):this.cd(e,this.Md))[0][0]):d=this.cb;c=this.ra[c][b.level.sb+1];a={};
for(e=0;e<g[0][0].length;e++)a[g[0][0][e]]=1;e=[];for(var l=0;l<b.children.length;l++)for(var m=this.Jn(d,[b.children[l]],[c]),n=0;n<m.length;n++)1!==a[m[n]]&&(e.push(m[n]),a[m[n]]=1);for(b=0;b<e.length;b++)g[0][0].push(e[b])};h.prototype.Jn=function(d,b,a){for(var c=0;c<b.length;c++){var e=b[c],g=a[c];if(f.model.B.C.A0){var l=this.slice.rc().getItem(this.le[g]),m=l.va(e);f.v(l.kC)||f.v(this.ra)||f.v(a[c])||f.v(this.ra[a[c]])||(g=this.ra[a[c]][m.level.sb])}g=f.v(this.al[g])||f.v(this.al[g][e])?g:
this.al[g][e];l=[];for(m=0;m<d.length;m++)f.v(this.pb[g])||this.pb[g][d[m]]!==e||l.push(d[m]);d=l}return d};h.prototype.Jca=function(d,b,a){return a.$===k.i.ca.nm?this.Hza(d,b,a):a.$===k.i.ca.ln?this.Iza(d,b,a):NaN};h.prototype.Hza=function(d,b,a){var c=a.Ka?this.slice.ad().findIndex(function(r){return r.uniqueName===a.uniqueName})+this.bg.length:this.Eh(a);null==this.values[c]&&(this.values[c]=[]);var e=this.rr(d,b);if(null==this.values[c][e]){a.$=a.Ll;if(d&&0!=d.length){var g=this.slice.vb.ea(d.length-
1),l=g.va(d[d.length-1]);if(null==l||null==l.parent)return null;g=null==g.nc||l.level.sb>g.nc.sb?g.uj(l.parent,!0):g.du(g.ig);d=d.slice(0,-1);l=this.cd(d,this.vd);if(l[0]&&l[0][1])for(var m=0,n=0;n<g.length;n++){var p=g[n];if(null!=l[p]){d.push(p);p=this.rr(d,b);if(null==this.values[c][p]){var t=this.Fa(d,b,a);isNaN(t)||(m+=t);this.values[c][p]=m}else m=this.values[c][p];d.pop()}}}else this.values[c][e]=this.Fa(d,b,a);a.$=k.i.ca.nm}return this.values[c][e]};h.prototype.Iza=function(d,b,a){var c=a.Ka?
this.slice.ad().findIndex(function(r){return r.uniqueName===a.uniqueName})+this.bg.length:this.Eh(a);null==this.values[c]&&(this.values[c]=[]);var e=this.rr(d,b);if(null==this.values[c][e]){a.$=a.Ll;if(0===b.length)this.values[c][e]=this.Fa(d,b,a);else{var g=this.slice.Cb.ea(b.length-1),l=g.va(b[b.length-1]);if(null===l||null===l.parent)return null;g=null===g.nc||l.level.sb>g.nc.sb?g.uj(l.parent,!0):g.du(g.ig);b=b.slice(0,-1);l=this.cd(b,this.Md);if(l[0]&&l[0][1])for(var m=0,n=0;n<g.length;n++){var p=
g[n];if(void 0!==l[p]){b.push(p);p=this.rr(d,b);if(null==this.values[c][p]){var t=this.Fa(d,b,a);isNaN(t)||(m+=t);this.values[c][p]=m}else m=this.values[c][p];b.pop()}}}a.$=k.i.ca.ln}return this.values[c][e]};h.prototype.pca=function(d,b,a,c,e,g){if(!f.v(d)&&0!=d.length)if(this.uh.length==b.length)this.b0(d,a,c,e,g);else{for(var l=[],m=[],n=this.uh[b.length],p=0;p<d.length;p++){var t=this.pb[n][d[p]];m[t]||0==t||(l.push(t),m[t]=!0)}for(p=0;p<l.length;p++)m=b.slice(0),m.push(l[p]),n=this.Jn(d,m,this.uh),
this.pca(n,m,a,c,e,g)}};h.prototype.oca=function(d,b,a,c){var e=[];this.pca(d,b,a,c,e,[]);return e.length};h.prototype.pS=function(d,b){if(f.v(d)||0==d.length)return 0;var a=this.wa.I.Vj(b.uniqueName);a=this.le.indexOf(2<a.ra.length?a.ra.qh(a.ra.length-1):a.uniqueName);b=this.Yg.indexOf(b.uniqueName);for(var c=[],e=[],g,l=0;l<d.length;l++)g=this.pb[a][d[l]],e[g]||(e[g]=!0,this.Ac[b]&&isNaN(this.Ac[b][d[l]])||this.Ac[b]instanceof Uint8Array&&0==this.Ac[b][d[l]]||c.push(g));return c.length};h.prototype.xv=
function(d,b,a,c){var e=this.cd(d,this.vd),g=this.cd(b,this.Md),l=[];e&&0<e.length&&g&&0<g.length&&(l=d.length*g[0][0].length<b.length*e[0][0].length?this.Jn(g[0][0],d,this.uh):this.Jn(e[0][0],b,this.Ti));return this.qq(l,a,!1,c)};h.prototype.Psa=function(d,b,a){return this.qq([this.cb[d[0]]],b,!1,a)};h.prototype.Wya=function(d,b,a,c,e){a=void 0===a?0:a;c=void 0===c?null:c;e=void 0===e?null:e;var g=void 0===g?!0:g;for(var l=0,m=!0,n=0;n<d.length;n++)a=this.qq([d[n]],b,!1,a,c,e,g),isNaN(a)||(l+=a,
m=!1);return m?NaN:l};h.prototype.qq=function(d,b,a,c,e,g,l){a=void 0===a?!1:a;c=void 0===c?0:c;e=void 0===e?null:e;g=void 0===g?null:g;l=void 0===l?!0:l;if(a)return this.Wya(d,b,c,e,g);if(b[2]){var m=[],n;for(n in b[1]){var p=b[1][n],t=p;Array.isArray(p)&&(t=this.qq(d,p,a,c,e,g,l),t=isNaN(t)&&l&&(b[0]===k.i.jc.AN||b[0]===k.i.jc.aP||b[0]===k.i.jc.JO||b[0]===k.i.jc.TW||b[0]===k.i.jc.dI)?this.Hna:t);m.push(t)}if(b[0]===k.i.jc.nn||b[0]===k.i.jc.mP||b[0]===k.i.jc.lP)return c;if(b[0]===k.i.jc.Qia)return this.Pxa(m);
if(b[0]===k.i.jc.Fna)return this.Rxa(m);if(b[0]===k.i.jc.AN)return this.Dxa(m);if(b[0]===k.i.jc.aP)return this.Vxa(m);if(b[0]===k.i.jc.JO)return this.Oxa(m);if(b[0]===k.i.jc.TW)return this.Txa(m);if(b[0]===k.i.jc.dI)return this.Fxa(m);if(b[0]===k.i.jc.LESS)return this.Kxa(m);if(b[0]===k.i.jc.GREATER)return this.Hxa(m);if(b[0]===k.i.jc.EQUAL||b[0]==k.i.jc.wka)return this.Gxa(m);if(b[0]===k.i.jc.If)return this.Qxa(m);if(b[0]===k.i.jc.d7)return this.Lxa(m);if(b[0]===k.i.jc.R6)return this.Ixa(m);if(b[0]===
k.i.jc.X4)return this.Exa(m);if(b[0]===k.i.jc.N7)return this.Sxa(m);if(b[0]===k.i.jc.oO)return this.Jxa(m);if(b[0]===k.i.jc.$W)return this.Uxa(m);if(b[0]===k.i.jc.KV)return this.Cxa(m);if(b[0]===k.i.jc.MIN)return this.Nxa(m);if(b[0]===k.i.jc.MAX)return this.Mxa(m)}else{a=this.e0(b[1][0],b[0]);if(void 0!==this.Fx[a])return this.qq(d,this.Fx[a],this.pC[a],0,e,g,l);l=b[0];k.i.ca.Vx(l)&&(l=k.i.ca.ky(l));switch(l){case k.i.ca.ro:if(null!=g)return c=this.wa.I.$c(b[1][0]),d=this.Fa([],g,c),c=this.Fa(e,g,
c),100*c/d;break;case k.i.ca.Tp:if(null!=e)return c=this.wa.I.$c(b[1][0]),d=this.Fa(e,[],c),c=this.Fa(e,g,c),100*c/d;break;case k.i.ca.li:if(null!=e&&null!=g)return c=this.wa.I.$c(b[1][0]),d=this.Fa([],[],c),b=this.Fa(e,[],c),l=this.Fa([],g,c),c=this.Fa(e,g,c),Math.abs(d*c/(l*b));break;case k.i.ca.nm:case k.i.ca.ln:return c=this.wa.I.$c(b[1][0]),d=c.$,c.$=l,e=this.Jca(e,g,c),c.$=d,e;case k.i.ca.hj:c=this.wa.I.$c(b[1][0]);if(c.type==k.i.Ja.sc)return this.pS(d,c);break;case k.i.ca.dn:case k.i.ca.im:case k.i.ca.jn:case k.i.ca.km:return c=
this.wa.I.$c(b[1][0]),d=c.$,c.$=l,e=this.Iya(e,g,c),c.$=d,e;case k.i.ca.Rp:case k.i.ca.Sp:return c=this.wa.I.$c(b[1][0]),d=c.$,c.$=l,e=this.uza(e,g,c),c.$=d,e}return this.CA(d,a,l)}};h.prototype.e0=function(d){var b=this.Yg.indexOf(d);-1===b&&-1!=d.indexOf("[Measures]")&&(d=d.slice(12,-1),b=this.Yg.indexOf(d));return b};h.prototype.filter=function(){};h.prototype.select=function(d){d=void 0===d?!0:d;this.gH();this.filter();var b;this.ofa=[];this.uh=[];this.Ti=[];this.sizes=[];this.al=[];this.Et=[];
this.dH=this.slice.axes.getItem(k.i.ia.As);this.ic=this.slice.axes.getItem(k.i.ia.Ia);this.Sb=this.slice.axes.getItem(k.i.ia.Sa);for(b=0;b<this.ic.Ma.length;b++){var a=this.ic.Ma.ea(b);if(!a.Qe){var c=this.le.indexOf(a.uniqueName);this.uh.push(c);this.sizes.push(a.Un);this.al[c]=[]}}this.Sm=this.uh.length;for(b=0;b<this.Sb.Ma.length;b++)a=this.Sb.Ma.ea(b),a.Qe||(c=this.le.indexOf(a.uniqueName),this.Ti.push(c),this.sizes.push(a.Un),this.al[c]=[]);this.Em=this.Ti.length;if(d)for(b=0;b<this.dH.Ma.length;b++)a=
this.dH.Ma.ea(b),c=this.le.indexOf(a.uniqueName),this.ofa.push(c);else this.cb=this.Wg;d=this.slice.ad();for(b=0;b<d.length;b++)c=this.Eh(d[b]),this.Et.push(c)};h.prototype.FE=function(d,b,a,c){try{if(0===b.children.length||1===b.children.length&&(b.hierarchy.va(b.children[0]).caption===f.model.A.j.Mk||b.hierarchy.va(b.children[0]).caption===f.model.A.j.cn))return;this.LL(d,b,c);this.tf(d,b,c,void 0)}catch(p){}for(var e=this.cd(d,this.vd),g=0;g<b.children.length;g++){var l=b.hierarchy.va(b.children[g]);
try{if(l.Bi){d.length<this.uh.length&&this.yA(e,this.uh[a],void 0);var m=d.slice(0);m[m.length-1]=l.ordinal;this.KX(m,a+1,!0)}else{var n=d.slice(0,-1);n.push(l.ordinal);this.FE(n,l,a,c)}}catch(p){}}};h.prototype.expandAll=function(d){if(0===this.vd.length||0<this.vd.length&&this.vd[0][0].length!==this.cb.length)this.vd=[[this.cb,[],[],void 0,void 0]];if(0===this.Md.length||0<this.Md.length&&this.Md[0][0].length!==this.cb.length)this.Md=[[this.cb,[],[],void 0,void 0]];this.V8([],0,d);this.KX([],0,
d)};h.prototype.KX=function(d,b,a){if(void 0!==this.uh[b]){var c=this.uh[b],e=this.cd(d,this.vd),g;d.length<this.uh.length&&this.yA(e,c,void 0);a&&(g=this.ic.Ma.getItem(this.le[c]));if(a&&g&&g.qg){var l=g.yd.children;for(e=0;e<l.length;e++)a=g.va(l[e]),c=d.slice(0),c.push(a.ordinal),this.FE(c,a,b,k.i.ia.Ia)}else for(g=e[0][1],e=0;e<g.length;e++)c=d.slice(0),c.push(g[e]),this.KX(c,b+1,a)}};h.prototype.V8=function(d,b,a){if(void 0!==this.Ti[b]){var c=this.Ti[b],e=this.cd(d,this.Md),g;d.length<this.Ti.length&&
this.yA(e,c,void 0);a&&(g=this.Sb.Ma.getItem(this.le[c]));if(a&&g.qg)for(c=0;c<g.yd.children.length;c++)a=g.va(g.yd.children[c]),e=d.slice(0),e.push(a.ordinal),this.FE(e,a,b,k.i.ia.Sa);else for(g=e[0][1],c=0;c<g.length;c++)e=d.slice(0),e.push(g[c]),this.V8(e,b+1,a)}};h.prototype.Gn=function(d,b,a,c){0===this.vd.length&&(this.expand([],k.i.ia.Ia,void 0),this.expand([],k.i.ia.Sa,void 0));try{if(0!=b.children.length&&(1!=b.children.length||b.hierarchy.va(b.children[0]).caption!=f.model.A.j.Mk&&b.hierarchy.va(b.children[0]).caption!=
f.model.A.j.cn)){this.LL(d,b,a);b.Wb||this.tf(d,b,a,void 0);for(var e=b.hierarchy.ra.getItem(c),g=0;g<b.children.length;g++){var l=b.hierarchy.va(b.children[g]);if(!l.Bi&&l.level.sb<e.sb){var m=d.slice(0,-1);m.push(l.ordinal);var n=this.cd(m,a===k.i.ia.Sa?this.Md:this.vd);void 0!==n&&void 0!==n[0]&&this.Gn(m,l,a,c)}}}}catch(p){}};h.prototype.Fa=function(){return 0};h.prototype.CA=function(d,b){return this.values&&this.values[d[0]]?this.values[d[0]][b]:NaN};h.prototype.b0=function(){};h.prototype.uG=
function(){return this.cb.length};h.prototype.Jl=function(d,b){if(-1!==this.le.indexOf(d))return this.le.indexOf(d);if(void 0===b)this.ra[this.le.length]=[-1,this.le.length];else{var a=this.le.indexOf(b);if(-1===a)return this.Jl(b),this.Jl(d,b);this.ra[a]?this.ra[a].push(this.le.length):this.ra[this.le.length]=[-1,this.le.length]}this.le.push(d);return this.le.length-1};h.prototype.RJ=function(d){-1===this.Yg.indexOf(d.uniqueName)&&this.Yg.push(d.uniqueName)};h.prototype.xx=function(d,b){var a=!1;
if("string"===typeof d)var c=d;else if(c=d.uniqueName,b=d.$,a=d.Ka){var e=d.Sd;var g=d.gl}d=this.bg.indexOf(c);if(-1!==d){if(void 0!==b&&b!==k.i.ca.NONE){if(this.Ao[d]===b)return;d=this.bg.length;this.Ao[d]=b;this.bg[d]=c}}else d=this.bg.length,void 0!==b&&b!==k.i.ca.NONE&&(this.Ao[d]=b),this.bg.push(c);a&&(this.Fx[d]=e,this.pC[d]=g)};h.prototype.fB=function(){return!0===f.model.B.C.ru||"rows"===f.model.B.C.ru};h.prototype.kF=function(){return!0===f.model.B.C.ru||"columns"===f.model.B.C.ru};q.Object.defineProperties(h.prototype,
{slice:{configurable:!0,enumerable:!0,get:function(){return null!=this.Lb?this.Lb:this.wa.sa},set:function(d){this.Lb=d}},result:{configurable:!0,enumerable:!0,get:function(){return[this.vd,this.Md]},set:function(){}},Iw:{configurable:!0,enumerable:!0,get:function(){return this.pb&&this.pb[0]?this.pb[0].length:this.pb[1]?this.pb[1].length:0}}});k.ND=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.Rza=function(d){var b=null;switch(d.Ba){case k.i.oa.Nc:b=d.binary?new k.external.yb.zo.h5(d):new k.external.yb.sD.Goa(d);break;case k.i.oa.Zd:b=d.binary?new k.external.yb.zo.h5(d):new k.external.yb.gp.Cna(d);break;case k.i.oa.xh:b=new k.local.csv.UH;break;case k.i.oa.Pp:b=new k.local.csv.Jna;break;case k.i.oa.JSON:b=!d.CH||d.RL||d.browseForFile?new k.local.json.Xla:new k.local.json.Yla;break;case k.i.oa.Gf:b=new k.external.De.Fka(d);break;case k.i.oa.API:b=
new k.external.kc.Fia(d)}return b};k.Xoa=h})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){k.oE=function(h){this.type=void 0===h?"":h;this.ft=k.i.ia.Ia;this.We=[]}})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.YB=function(d,b){switch(b.Ba){case k.i.oa.Gf:d=new k.external.De.Dka(d,b);break;case k.i.oa.API:d=new k.external.kc.Eia(d,b);break;case k.i.oa.Zd:d=new k.external.yb.gp.GW(d,b);break;default:d=new k.external.yb.sD.GW(d,b)}return d};k.gA=h})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){function h(){}h.gE="members";h.d5="ascendants";h.bka="descendants";h.d8="siblings";h.cX="search";k.qo=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.$_=function(d){var b=null;switch(d.Ba){case k.i.oa.Gf:b=new k.external.De.yka;break;case k.i.oa.API:b=new k.external.kc.Aia;break;case k.i.oa.Nc:b=d.binary?new k.external.yb.zo.g5:new k.external.yb.eh.x8;break;case k.i.oa.Zd:b=d.binary?new k.external.yb.zo.g5:new k.external.yb.eh.x8}return b};k.cW=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){this.values=[];this.values.push("");if(null!=h.instance)throw Error("Singleton");}h.U=function(){null==h.instance&&(h.instance=new h);return h.instance};h.dispose=function(){h.instance=null};h.prototype.Nh=function(d){var b=this.values.indexOf(d);-1==b&&(b=this.values.push(d)-1);return b};h.prototype.Fa=function(d){return d>=this.values.length?"out of bounce: "+d+" of "+this.values.length:this.values[d]};k.kX=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(a){var c=y.da.call(this,b.hk)||this;c.rp=a;return c}function d(a){var c=y.da.call(this,b.QH)||this;c.rp=a;return c}function b(){}b.iX="STRUCTURE_CONNECTED";b.Uu="STRUCTURE_LOADED";b.hX="STRUCTURE_CANCELLED";b.jX="STRUCTURE_LOADING_FAILED";b.QH="BEFORE_QUERY";b.hk="QUERY_COMPLETE";b.Ds="QUERY_ERROR";k.cg=b;u(d,y.da);k.PD=d;u(h,y.da);k.WW=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){this.ZT=[NaN];this.tH=[""];if(null!=h.instance)throw Error("Singleton");}h.U=function(){null==h.instance&&(h.instance=new h);return h.instance};h.dispose=function(){h.instance=null};h.prototype.hz=function(d,b){var a=this.tH.indexOf(d);-1==a&&(this.tH.push(d),a=this.ZT.push(b)-1);return a};h.prototype.Pza=function(d){return isNaN(d)||d>=this.tH.length||void 0==this.tH[d]?"":this.tH[d]};h.prototype.nza=function(d){return isNaN(d)||d>=this.ZT.length?NaN:this.ZT[d]};
h.prototype.clear=function(){this.ZT.length=1;this.tH.length=1};k.HI=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.zg=function(d,b){if(d===b)return d;if(h.yD&&"["===d.slice(0,1)&&"]"===d.slice(-1)){b=d.split("].");1<b.length&&b.shift();d="";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)));d=""==d?c:d+"."+c}}return d};h.Nr=function(d){if("["==d.slice(0,1)&&"]"==d.slice(-1)&&h.yD){var b=d.split("].");if(2>b.length)return h.BH&&!f.model.B.C.Jx?d.toLocaleLowerCase():d;1<b.length&&
b.shift();d="";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)));d=""==d?c:d+"."+c}d=d+"."+b[b.length-1]}return h.BH&&!f.model.B.C.Jx?d.toLocaleLowerCase():d};h.Or=function(d){if("[Measures]"==d.slice(0,10))return h.Nr(d,void 0);h.yD&&(d=d.split(".["),2<d.length?(d.shift(),d="["+d.join(".[")):(d=d.pop(),"]"==d.slice(-1)&&(d=d.slice(0,d.length-1))));return h.BH&&!f.model.B.C.Jx?d.toLocaleLowerCase():d};
h.type=function(d){return k.i.input.pa.valid(d)?d:"hierarchical date"===d?k.i.input.pa.Np:"measure"===d?k.i.input.pa.fb:k.i.input.pa.Sc};h.yD=!1;h.BH=!1;k.me=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.Gb=[];b.gg=[];b.Uc=[];b.Lf=[];b.Bc=[];b.wc=[];b.fi=[];b.yc=[];b.ay=[];b.RU=[];b.ZQ=[];b.SA="";b.se=!1;b.EM=[];b.pv=[];b.pK=[];b.Js=[];b.Wy=function(a){return b.NC(a)};b.hK=function(a){return b.Z1(a)};b.gN=function(){return b.Aq()};b.xm=new f.nb;b.rQ=[];b.zP=[];b.Dl=new f.nb;b.kQ=new f.nb;b.ib=[];b.lj=0;b.EE=!1;b.VE=0;b.lx=0;b.PA=0;b.rp=k.i.Kd.to;b.uQ=!1;b.NX=0;d.counter++;b.ga=k.Na.U();return b}u(d,y.Fc);d.U=function(){null==
d.instance&&(d.instance=new d,d.instance.SA="grid"+d.counter);return d.instance};d.prototype.BQ=function(){this.ga.N(k.cg.hk,this.Wy,1);this.ga.N(k.cg.QH,this.hK);this.ga.N(k.cg.Uu,this.gN,1)};d.prototype.Yy=function(){this.ga.mb(k.cg.hk,this.Wy);this.ga.mb(k.cg.QH,this.hK);this.ga.mb(k.cg.Uu,this.gN)};d.prototype.lL=function(){return this.Kb&&!this.slice.expandAll?this.Kb.zd:[]};d.prototype.Tga=function(b){this.Kb&&!this.slice.expandAll&&(this.Kb.zd=b)};d.prototype.kL=function(){return this.Jb&&
!this.slice.expandAll?this.Jb.zd:[]};d.prototype.Sga=function(b){this.Jb&&!this.slice.expandAll&&(this.Jb.zd=b)};d.prototype.hG=function(){return this.Kb&&this.slice.expandAll?this.Kb.zd:[]};d.prototype.Q3=function(b){this.Kb&&this.slice.expandAll&&(this.Kb.zd=b)};d.prototype.TB=function(){return this.Jb&&this.slice.expandAll?this.Jb.zd:[]};d.prototype.Kga=function(b){this.Jb&&this.slice.expandAll&&(this.Jb.zd=b)};d.prototype.oG=function(){return this.Kb&&!this.slice.drillAll?this.Kb.uf:[]};d.prototype.U3=
function(b){this.Kb&&!this.slice.drillAll&&(this.Kb.uf=b)};d.prototype.nG=function(){return this.Jb&&!this.slice.drillAll?this.Jb.uf:[]};d.prototype.T3=function(b){this.Jb&&!this.slice.drillAll&&(this.Jb.uf=b)};d.prototype.hL=function(){return this.Kb&&this.slice.drillAll?this.Kb.uf:[]};d.prototype.Qga=function(b){this.Kb&&this.slice.drillAll&&(this.Kb.uf=b)};d.prototype.gL=function(){return this.Jb&&this.slice.drillAll?this.Jb.uf:[]};d.prototype.Pga=function(b){this.Jb&&this.slice.drillAll&&(this.Jb.uf=
b)};d.prototype.jS=function(){return null};d.prototype.reset=function(b){b=void 0===b?!0:b;this.se=this.mj=!1;this.ib=[];this.xm=new f.nb;this.Dl=new f.nb;this.kQ=new f.nb;this.rQ=[];this.zP=[];this.gg=[];this.Lf=[];this.Gb=[];this.Uc=[];this.Bc=[];this.wc=[];this.yc=[];this.lx=this.VE=0;this.fi=[];this.ay=[];this.RU=[];this.ZQ=[];b&&(this.Jb&&(this.Jb.zd=[]),this.Kb&&(this.Kb.zd=[]),this.Jb&&(this.Jb.uf=[]),this.Kb&&(this.Kb.uf=[]))};d.prototype.Z1=function(b){b.rp!=k.i.Kd.eI&&(this.rp=b.rp,this.mj=
!1,b.rp==k.i.Kd.to&&this.reset(),b.rp!=k.i.Kd.aW&&b.rp!=k.i.Kd.Fu||this.reset(!1))};d.prototype.NC=function(b){b.rp!=k.i.Kd.eI&&this.load()};d.prototype.Aq=function(){this.mj=!1;this.se||this.reset()};d.prototype.load=function(){if(null==this.qa&&(this.qa=this.ga.qa,null==this.qa))return;if(this.slice){this.Jb=this.slice.Cd(k.i.ia.Sa);this.Kb=this.slice.Cd(k.i.ia.Ia);if(0==this.Uc.length&&0==this.Gb.length||this.rp==k.i.Kd.bO)this.slice.expandAll?this.qa.expandAll(this.slice.drillAll):(this.qa.expand([],
k.i.ia.Ia,void 0),this.qa.expand([],k.i.ia.Sa,void 0)),(0<this.oG().length||0<this.hL().length)&&this.Q8(),(0<this.nG().length||0<this.gL().length)&&this.P8(),(0<this.lL().length||0<this.hG().length||0<this.kL().length||0<this.TB().length)&&this.W8(),(0<this.oG().length||0<this.hL().length)&&this.Q8(),(0<this.nG().length||0<this.gL().length)&&this.P8(),(0<this.lL().length||0<this.hG().length||0<this.kL().length||0<this.TB().length)&&this.W8();this.BU();this.mj=!0}else this.Kb=this.Jb=null};d.prototype.W8=
function(){var b=this.slice.ad();if(this.rp==k.i.Kd.bO)if(this.slice.expandAll){var a=this.hG();if(0<a.length)for(var c=0;c<a.length;c++)try{var e=b[a[c][0]];var g=a[c].slice(1);this.qa.collapse(g,k.i.ia.Ia,e)}catch(l){}a=this.TB();if(0<this.TB().length)for(c=0;c<this.TB().length;c++)try{e=b[a[c][0]],g=a[c].slice(1),this.qa.collapse(g,k.i.ia.Sa,e)}catch(l){}}else{a=this.lL();if(0<a.length)for(c=0;c<a.length;c++)try{e=b[a[c][0]],g=a[c].slice(1),this.qa.expand(g,k.i.ia.Ia,e)}catch(l){}a=this.kL();if(0<
a.length)for(c=0;c<a.length;c++)try{e=b[a[c][0]],g=a[c].slice(1),this.qa.expand(g,k.i.ia.Sa,e)}catch(l){}}};d.prototype.Q8=function(){var b=this.ic.Ma.slice();b.removeItem("[Measures]");var a=this.slice.ad();if(this.slice.drillAll)for(var c=this.hL(),e=0;e<c.length;e++)try{var g=a[c[e][0]];var l=c[e].slice(2);var m=b.ea(l.length-1);var n=m.Db(c[e][1]);this.qa.Hh(l,n,g)&&this.qa.To(l,n,k.i.ia.Ia,g)}catch(r){}else for(c=this.oG(),e=0;e<c.length;e++)try{if("string"==typeof c[e][0]){var p=c[e][0];g=a[c[e][1]];
l=c[e].slice(3);m=b.ea(l.length-1);n=m.Db(c[e][2])}else g=a[c[e][0]],l=c[e].slice(2),m=b.ea(l.length-1),n=m.Db(c[e][1]);if(void 0!==p)if(m.Gt(p).sb<n.level.sb){var t=this.Fsa(n,p);l[l.length-1]=t.ordinal;m.q_(t);this.qa.To(l,t,k.i.ia.Ia,g)}else this.qa.Hh(l,n,g)||(this.qa.LL(l,n,k.i.ia.Ia),this.qa.tf(l,n,k.i.ia.Ia,g));else n.hierarchy.nc&&n.hierarchy.yd&&this.qa.Gn(l.slice(0,-1),n.hierarchy.yd,k.i.ia.Ia,n.hierarchy.ig),this.qa.Hh(l,n,g)||(this.qa.LL(l,n,k.i.ia.Ia),this.qa.tf(l,n,k.i.ia.Ia,g))}catch(r){}};
d.prototype.P8=function(){var b=this.Sb.Ma.slice();b.removeItem("[Measures]");var a=this.slice.ad();if(this.slice.drillAll)for(var c=this.gL(),e=0;e<c.length;e++)try{var g=a[c[e][0]];var l=c[e].slice(2);var m=b.ea(l.length-1);var n=m.Db(c[e][1]);this.qa.Rj(l,n,g)&&this.qa.To(l,n,k.i.ia.Sa,g)}catch(p){}else for(c=this.nG(),e=0;e<c.length;e++)try{g=a[c[e][0]],l=c[e].slice(2),m=b.ea(l.length-1),n=m.Db(c[e][1]),n.hierarchy.nc&&n.hierarchy.yd&&this.qa.Gn(l.slice(0,-1),n.hierarchy.yd,k.i.ia.Sa,n.hierarchy.ig),
this.qa.Rj(l,n,g)||(this.qa.LL(l,n,k.i.ia.Sa),this.qa.tf(l,n,k.i.ia.Sa,g))}catch(p){}};d.prototype.OAa=function(b){if(!b.Ka)return!1;b=x.ws.pL(b.Sd,this.ga.I.measures);for(var a=new Map,c=0;c<b.length;c++)a.set(b[c].$,!0);return a.has(k.i.ca.im)||a.has(k.i.ca.km)};d.prototype.BU=function(){this.uQ=!1;this.slice?(this.ib=this.slice.ad(),this.lj=this.Kb.Ra?this.Kb.He:this.Jb.He,this.xm=this.slice.rows,this.Dl=this.slice.columns,this.kQ=this.slice.pages):(this.ib=[],this.lj=0,this.xm=new f.nb,this.Dl=
new f.nb,this.kQ=new f.nb);this.rQ=[];this.zP=[];this.se?(this.QJa(),this.pv=this.hq(this.gg),this.EM=this.hq(this.Gb),this.Js=this.hq(this.Lf),this.pK=this.hq(this.Uc)):(this.gg=[],this.Gb=[],this.Lf=[],this.Uc=[],this.Bc=[],this.wc=[],this.fi=[],this.yc=[]);this.ay=[];this.lx=this.VE=0;this.RU=[];this.ZQ=[];if(!f.v(this.slice)&&!this.slice.ob){this.PA=-1;f.v(this.Jb.Ff)||this.Jb.Ff.$!==k.i.ca.im&&this.Jb.Ff.$!==k.i.ca.km&&!this.OAa(this.Sb.Ff)?(this.Nfa(),this.Jfa()):(this.Jfa(),this.Nfa());for(var b=
0;b<this.wc.length;b++)this.wc[b]>this.VE&&(this.VE=this.wc[b]);this.VE++;for(b=0;b<this.yc.length;b++)this.yc[b]>this.lx&&(this.lx=this.yc[b]);0<this.Uc.length&&this.lx++;!this.ob&&0<this.slice.Cb.length&&this.Jb.Ra&&this.Tn&&this.lx++;-1==this.PA?this.PA=0==this.He?0:this.lx:this.PA++;this.se&&(this.iHa(),this.hHa(),this.pv=[],this.EM=[],this.Js=[],this.pK=[]);this.se||this.pack();this.uQ&&f.Va(f.model.A.j.p7,f.model.A.j.q7,f.rb.Ik)}};d.prototype.hHa=function(){if(this.Jb.Ra)for(var b=this.Lf[0].length-
1;0<=b;b--){var a=this.nj(b,!0);if(null!==a&&0!=a.length){var c=this.Fa([],a,this.ib[0]);isNaN(c)&&(a=this.VK(this.Uc,a),0<=a&&this.Zy(this.Uc,a),this.Zy(this.Lf,b),this.yc=f.Ha.Iq(this.yc,b),this.Bc=f.Ha.Iq(this.Bc,b))}}else for(b=this.Uc[0].length-1;0<=b;b--)a=this.nj(b),null!==a&&0!=a.length&&(a=this.Fa([],a,this.ib[0]),isNaN(a)&&(this.Zy(this.Uc,b),this.yc=f.Ha.Iq(this.yc,b)))};d.prototype.iHa=function(){if(this.Jb.Ra)for(var b=this.Gb[0].length-1;0<=b;b--){var a=this.Lm(b);null!==a&&0!=a.length&&
(a=this.Fa(a,[],this.ib[0]),isNaN(a)&&(this.Zy(this.Gb,b),this.wc=f.Ha.Iq(this.wc,b),this.fi.splice(b,1)))}else for(b=this.gg[0].length-1;0<=b;b--)if(a=this.Lm(b,!0),null!==a&&0!=a.length){var c=this.Fa(a,[],this.ib[0]);isNaN(c)&&(a=this.VK(this.Gb,a),0<=a&&this.Zy(this.Gb,a),this.Zy(this.gg,b),this.wc=f.Ha.Iq(this.wc,b),this.Bc=f.Ha.Iq(this.Bc,b),this.fi.splice(b,1))}};d.prototype.Zy=function(b,a){for(var c=0;c<b.length;c++)b[c]=f.Ha.Iq(b[c],a)};d.prototype.Nfa=function(){var b=this.qa.result[0];
if(!this.Kb.Ra||1<this.xm.length||this.hl)this.E_(b,[],0),this.se&&this.oHa(this.Gb);if(this.Z3||this.Kb.Ra&&1==this.xm.length){var a=this.vb.ea(0);if(!a||a.Fh)if(0==this.Gb.length&&(this.Gb[0]=[]),!this.se){for(a=0;a<this.Gb.length;a++)this.Gb[a].push(0);this.wc.push(0)}}if(!this.hl)if(this.Kb.Ra&&this.Tn){this.se||(this.wc=[],this.fi=[]);if(1<this.xm.length)for(0!=this.He&&this.UK(b,[],-1,0),a=0;a<this.ib.length;a++){if(this.Z3)if(this.se){var c=this.Yi(this.gg,[],this.pv);0<=c&&(this.wc=f.Ha.ge(this.wc,
0,c),this.Bc=f.Ha.ge(this.Bc,a,c))}else this.Si(this.gg,[],a),this.wc.push(0);else 0!=this.lj||"off"!=f.model.B.C.Ef&&"rows"!=f.model.B.C.Ef||(this.se?(c=this.Yi(this.gg,[],this.pv),0<=c&&(this.wc=f.Ha.ge(this.wc,0,c),this.Bc=f.Ha.ge(this.Bc,a,c))):(this.Si(this.gg,[],a),this.wc.push(0)));0==this.He&&this.UK(b,[],a,1)}if(0==this.He&&(this.Z3||this.Kb.Ra&&1==this.xm.length))for(b=0;b<this.ib.length;b++)this.se?(a=this.Yi(this.gg,[],this.pv),0<=a&&(this.wc=f.Ha.ge(this.wc,0,a),this.Bc=f.Ha.ge(this.Bc,
b,a))):(this.Si(this.gg,[],b),this.wc.push(0))}else this.gg=this.Gb};d.prototype.Jfa=function(){var b=this.qa.result[1];(!this.Jb.Ra||1<this.Dl.length)&&this.xba(b,[],0);if(this.g4||this.Jb.Ra&&1==this.Dl.length){var a=this.Cb.ea(0);if(!a||a.Fh)if(0==this.Uc.length&&(this.Uc[0]=[]),!this.se){for(a=0;a<this.Uc.length;a++)this.Uc[a].push(0);this.yc.push(0)}}if(this.Jb.Ra&&this.Tn){this.se||(this.yc=[]);if(1<this.Dl.length)for(this.ay=[],0!=this.lj&&this.SK(b,[],-1,0),a=0;a<this.ib.length;a++){if(this.g4)if(this.se){var c=
this.Yi(this.Lf,[],this.Js);0<=c&&(this.yc=f.Ha.ge(this.yc,0,c),this.Bc=f.Ha.ge(this.Bc,a,c))}else this.Si(this.Lf,[],a),this.yc.push(0);else 0!=this.lj||"off"!=f.model.B.C.Ef&&"columns"!=f.model.B.C.Ef||(this.se?(c=this.Yi(this.Lf,[],this.Js),0<=c&&(this.yc=f.Ha.ge(this.yc,0,c),this.Bc=f.Ha.ge(this.Bc,a,c))):(this.Si(this.Lf,[],a),this.yc.push(0)));0==this.lj&&this.SK(b,[],a,0)}if(0==this.lj&&(this.g4||this.Jb.Ra&&1==this.Dl.length))for(b=0;b<this.ib.length;b++)this.se?(a=this.Yi(this.Lf,[],this.Js),
0<=a&&(this.yc=f.Ha.ge(this.yc,0,a),this.Bc=f.Ha.ge(this.Bc,b,a))):(this.Si(this.Lf,[],b),this.yc.push(0))}else this.Lf=this.Uc};d.prototype.QJa=function(){this.CV(this.Gb);this.CV(this.gg);this.CV(this.Uc);this.CV(this.Lf);Array.isArray(this.Bc)||(this.Bc=Array.from(this.Bc));Array.isArray(this.wc)||(this.wc=Array.from(this.wc));Array.isArray(this.yc)||(this.yc=Array.from(this.yc))};d.prototype.CV=function(b){for(var a=0;a<b.length;a++)Array.isArray(b[a])||(b[a]=Array.from(b[a]))};d.prototype.pack=
function(){this.vU(this.Gb);this.vU(this.gg);this.vU(this.Uc);this.vU(this.Lf);15<this.Bc.length&&(this.Bc=new Int8Array(this.Bc));15<this.wc.length&&(this.wc=new Uint8Array(this.wc));15<this.yc.length&&"after"!==f.model.B.C.eR&&(this.yc=new Uint8Array(this.yc))};d.prototype.hq=function(b){b=b.slice();for(var a=0;a<b.length;a++)b[a]=b[a].slice();return b};d.prototype.vU=function(b){for(var a=0;a<b.length;a++)if(15<b[a].length){for(var c=0,e=0;e<b[a].length;e++)c=b[a][e]>c?b[a][e]: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]))}};d.prototype.E_=function(b,a,c){var e=a.length;if(e=this.Kb.Ra&&a.length>=this.lj?this.xm.ea(e+1):this.xm.ea(e))0==c&&(this.NX=Date.now()),this.hl?this.Y8(e,e.yd,b,a,c):this.zba(e,e.yd,b,a,c)};d.prototype.Kda=function(b){if(0==b.hierarchy.cb.length)return!0;for(var a=b;!f.v(a);){if(0<=b.hierarchy.cb.indexOf(a.ordinal))return!0;a=a.parent}a=ja(b.hierarchy.cb);for(var c=a.next();!c.done;c=a.next())if(0<=b.Wx.indexOf(c.value))return!0;
return!1};d.prototype.$0=function(b,a,c,e){if(this.ga.fa.Hc&&this.ga.fa.Ba!==k.i.oa.API||this.ga.fa.NL)return!1;if(!0===f.model.B.C.ru||"rows"===f.model.B.C.ru)return!this.Kda(a);if(void 0!==c&&void 0!==e&&!k.i.ca.OL(e.$)&&(e=e.clone(),e.$=c.measure.$,a=this.Fa(b,[],e),!c.WT(a,c.query)))return!0;for(c=0;c<this.measures.length;c++)if(0===c&&this.measures[c].Ka||!isNaN(this.Fa(b,[],this.measures[c]))||k.i.ca.OL(this.measures[c].$))return!1;return!0};d.prototype.Cda=function(b,a,c,e){if(this.ga.fa.Hc&&
this.ga.fa.Ba!==k.i.oa.API||this.ga.fa.NL)return!1;if(!0===f.model.B.C.ru||"columns"===f.model.B.C.ru)return!this.Kda(a);if(void 0!==c&&void 0!==e&&!k.i.ca.OL(e.$)&&(e=e.clone(),e.$=c.measure.$,a=this.Fa([],b,e),!c.WT(a,c.query)))return!0;for(c=0;c<this.measures.length;c++)if(0===c&&this.measures[c].Ka||!isNaN(this.Fa([],b,this.measures[c]))||k.i.ca.OL(this.measures[c].$))return!1;return!0};d.prototype.zba=function(b,a,c,e,g){if(null!=a){if(null!=b.nc&&!this.qa.Hh(e,a)){if(0<e.length){var l=e.slice(0);
l.push(a.ordinal)}else l=e.slice(0);this.qa.Gn(l,a,k.i.ia.Ia,b.ig)}a=null==b.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(b.ig);a=this.o4(b,a,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var m=b.filter;var n=this.slice.$c(m.measure.uniqueName)}l=this.vb.indexOf(b.uniqueName)<this.vb.length-1;for(var p=this.qa.fB(b),t=0;t<a.length;t++){var r=b.va(a[t]);0===t&&this.Aba(r);if((void 0!==c[r.ordinal]||p)&&!r.Wb){var v=e.slice(0);v.push(r.ordinal);if(!this.$0(v,r,m,n)){var z=
l&&this.qa.Ih(v),B=!r.Bi&&this.qa.Hh(v,r);if(this.se){var C=this.Yi(this.Gb,v,this.EM);0<=C&&!this.ic.Ra&&(this.wc=f.Ha.ge(this.wc,g,C));z||this.ic.Ra||this.z3(this.Gb,v)}else this.Si(this.Gb,v),this.wc.push(g);if(Date.now()-this.NX<f.model.B.C.y_)B?this.zba(b,r,c,e,g+1):z&&this.E_(c[r.ordinal],v,g+1);else if(B||z)this.uQ=!0}}}}};d.prototype.z3=function(b,a){for(var c=b[0].length-1;0<=c;c--){for(var e=!0,g=0;g<a.length;g++)if(b[g][c]!=a[g]){e=!1;break}if(e){e=!0;for(g=a.length;g<b.length;g++)if(0!=
b[g][c]){e=!1;break}e?this.hl&&2==this.fi[c]&&(this.fi[c]=3):(this.Zy(b,c),this.wc=f.Ha.Iq(this.wc,c),this.fi.splice(c,1),this.Kb.Ra&&(this.Bc=f.Ha.Iq(this.Bc,c)))}}if(this.hl)for(b=b[0].length,a=0;a<b;a++)3==this.fi[a]&&(this.fi[a]=1,this.wc[a]=this.cca(this.Gb,a))};d.prototype.oHa=function(b){if(b&&0!=b.length)for(var a=b[0].length,c=b.length-1;0<=c;c--){for(var e=0;e<a;e++)if(0!=b[c][e])return;--b.length}};d.prototype.cga=function(b,a){for(var c=b[0].length-1;0<=c;c--){for(var e=!0,g=0;g<a.length;g++)if(b[g][c]!=
a[g]){e=!1;break}if(e){e=!0;for(g=a.length;g<b.length;g++)if(0!=b[g][c]){e=!1;break}e||(this.Zy(b,c),this.yc=f.Ha.Iq(this.yc,c),this.Jb.Ra&&(this.Bc=f.Ha.Iq(this.Bc,c)))}}};d.prototype.Si=function(b,a,c){0===b.length&&(b[0]=[]);if(a.length>b.length)for(var e=b.length;e<a.length;e++){b[e]=[];for(var g=0;g<b[0].length;g++)b[e].push(0)}for(e=0;e<a.length;e++)b[e].push(a[e]);if(b.length>a.length)for(a=a.length;a<b.length;a++)b[a].push(0);void 0!==c&&this.Bc.push(c)};d.prototype.Yi=function(b,a,c,e){c=
void 0===c?null:c;e=void 0===e?0:e;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(var l=0;l<b[0].length;l++)b[g].push(0)}return this.baa(null!==c?c:b,a)?-1:(c=this.bxa(b,a)+e,this.xAa(b,a,c),c)};d.prototype.bxa=function(b,a){var c=0,e=b[0].indexOf(0);0>e&&(e=b[0].length-1);for(var g=0;g<b.length;g++){c=b[g].indexOf(a[g],c);if(-1===c)break;if(c<e)e=b[g].lastIndexOf(a[g],e-1)+1;else break}return e};d.prototype.xAa=
function(b,a,c){for(var e=0;e<b.length;e++)b[e]=f.Ha.ge(b[e],void 0!==a[e]?a[e]:0,c)};d.prototype.baa=function(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(var e=b.length;e<a.length;e++)if(0!=a[e]){c=!1;break}if(!c)return!1;a=a.slice(0,b.length)}return 0<=this.VK(b,a)};d.prototype.VK=function(b,a,c){c=void 0===c?!0:c;for(var e=b[0].length;!c&&a.length<e;)a.push(0);for(c=0;c<e;c++){for(var g=!0,l=0;l<b.length;l++)if(b[l][c]!=a[l]){g=
!1;break}if(g)return c}return-1};d.prototype.gC=function(b,a){if(0==b.length||void 0==b[0][a])return null;for(var c=[],e=0;e<b.length;e++)0!=b[e][a]&&c.push(b[e][a]);return c};d.prototype.UK=function(b,a,c,e){if(!this.hl){var g=a.length;(g=this.Kb.Ra&&a.length>=this.lj?this.xm.ea(g+1):this.xm.ea(g))&&this.RR(g,g.yd,b,a,c,e)}};d.prototype.RR=function(b,a,c,e,g,l){if(null!=a){if(null!=b.nc&&!this.qa.Hh(e,a)){if(0<e.length){var m=e.slice(0,-1);m.push(a.ordinal)}else m=e.slice(0);this.qa.Gn(m,a,k.i.ia.Ia,
b.ig)}m=e.length;a=null==b.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(b.ig);a=this.o4(b,a,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var n=b.filter;var p=this.slice.$c(n.measure.uniqueName)}for(var t,r,v=this.qa.fB(b),z=0;z<a.length;z++)if(t=b.va(a[z]),(null!=c[t.ordinal]||v)&&!t.Wb){var B=e.slice(0);B.push(t.ordinal);if(!this.$0(B,t,n,p)){var C=this.qa.Ih(B,g),E=this.qa.Hh(B,t);if(m<this.lj)if(this.se?(r=this.Yi(this.gg,B,this.pv),0<=r&&(this.wc=f.Ha.ge(this.wc,
l,r),this.Bc=f.Ha.ge(this.Bc,-1,r))):(this.Si(this.gg,B,-1),this.wc.push(l)),m==this.lj-1&&C)for(r=0;r<this.ib.length;r++)this.qa.Hh(B,t,r)?this.RR(b,t,c,e,r,l+2):(this.se?(C=this.Yi(this.gg,B,this.pv),0<=C&&(this.wc=f.Ha.ge(this.wc,l+1,C),this.Bc=f.Ha.ge(this.Bc,r,C))):(this.Si(this.gg,B,r),this.wc.push(l+1)),this.qa.Ih(B)&&this.UK(c[t.ordinal],B,r,l+2));else{for(r=0;r<this.ib.length;r++)if(this.nha(b)||!C&&!E||this.Jt)if(this.se){var K=this.Yi(this.gg,B,this.pv);0<=K&&(this.wc=f.Ha.ge(this.wc,l+
1,K),this.Bc=f.Ha.ge(this.Bc,r,K));C||this.z3(this.gg,B)}else this.Si(this.gg,B,r),this.wc.push(l+1);this.qa.Hh(B,t,g)?this.RR(b,t,c,e,g,l+2):this.qa.Ih(B,g)&&this.UK(c[t.ordinal],B,g,l+2)}else this.se?(r=this.Yi(this.gg,B,this.pv),0<=r&&(this.wc=f.Ha.ge(this.wc,l,r),this.Bc=f.Ha.ge(this.Bc,g,r))):(this.Si(this.gg,B,g),this.wc.push(l)),this.qa.Hh(B,t,g)?this.RR(b,t,c,e,g,l+1):C&&this.UK(c[t.ordinal],B,g,l+1)}}}};d.prototype.Y8=function(b,a,c,e,g){if(null!=a){if(null!=b.nc&&!this.qa.Hh(e,a)){if(0<
e.length){var l=e.slice(0);l.push(a.ordinal)}else l=e.slice(0);this.qa.Gn(l,a,k.i.ia.Ia,b.ig)}a=null==b.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(a.hierarchy.ig);a=this.o4(b,a,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var m=b.filter;var n=this.slice.$c(m.measure.uniqueName)}l=this.qa.fB(b);for(var p=!1,t=0;t<a.length;t++){var r=b.va(a[t]);0===t&&this.Aba(r);if((null!=c[r.ordinal]||l)&&!r.Wb){var v=e.slice(0);v.push(r.ordinal);if(!this.$0(v,r,m,n)){var z=this.qa.Hh(v,
r),B=this.qa.Ih(v);r.ah&&B&&!z&&(B=!1);var C=0<this.Gb.length?this.Gb[0].length:0;!this.se&&this.Sm>v.length&&(this.fi[C]=1,void 0==this.wc[C]&&(this.wc[C]=g));var E=Date.now()-this.NX;if(E<f.model.B.C.y_||E>=f.model.B.C.y_&&0<g)z?this.Y8(b,r,c,e,g+1):B&&this.E_(c[r.ordinal],v,g+1);else if(z||B)this.uQ=!0,0===g&&B&&(this.FHa(v,C),B=!1);z||B?(this.nha(b)&&(this.se?(B=this.Yi(this.Gb,v,this.EM),0<=B?(this.fi.splice(B,0,2),this.wc=f.Ha.ge(this.wc,g,B)):(v=this.VK(this.Gb,v,!1),0<=v&&(this.fi[v]=2))):
(this.Si(this.Gb,v),this.wc[this.Gb[0].length-1]=g,this.fi[this.Gb[0].length-1]=2)),z&&this.wc[C]>g&&(this.wc[C]=g,this.fi[C]=0)):this.se?(z=1<v.length&&this.Bua(this.Gb,e),z=this.Yi(this.Gb,v,this.EM,z?-1:0),0<=z&&(this.fi.splice(z,0,g==this.Sm-1?0:1),this.wc=f.Ha.ge(this.wc,g,z),1<v.length&&(0==t&&(this.fi[z]=1,this.wc[z]=this.cca(this.Gb,z)),0==p&&(z=e.slice(0),z.push(0),z=this.VK(this.Gb,z),0<=z&&2!=this.fi[z]&&(p=!0,this.fi[z]=2,this.wc[z]=g-1)))),B||this.ic.Ra||this.z3(this.Gb,v)):(this.Si(this.Gb,
v),void 0==this.fi[this.Gb[0].length-1]&&(this.fi[this.Gb[0].length-1]=0,this.wc[this.Gb[0].length-1]=g))}}}}};d.prototype.cca=function(b,a){if(0==a)return 0;for(var c=0,e=0;e<b.length&&b[e][a]==b[e][a-1];e++)c++;return c};d.prototype.Bua=function(b,a){a=a.slice(0);a.push(0);for(var c=1;c<a.length;){if(this.baa(b,a))return!0;c++;a[a.length-c]=0}return!1};d.prototype.FHa=function(b,a){this.wc[a]=0;this.qa.collapse(b,this.Kb.uniqueName,void 0);b=[-1,b[0]];a=this.hG().slice(0);a.push(b);this.Q3(a)};
d.prototype.Aba=function(b){this.yba(this.rQ,b)};d.prototype.Mwa=function(b){this.yba(this.zP,b)};d.prototype.yba=function(b,a){-1===b.indexOf(a.level.uniqueName)&&(1>=(null!=a.hierarchy.nc?a.level.sb-a.hierarchy.nc.sb+1:a.level.sb)?b.push(a.level.uniqueName):b.splice(b.indexOf(a.parent.level.uniqueName)+1,0,a.level.uniqueName))};d.prototype.aea=function(b,a){for(var c=0;c<b.length;c++){var e=a.ea(c),g=this.Vya(e,b[c]);if(e.filter.$g){for(var l=-1,m=0;m<g.length;m++){if(0>e.cb.indexOf(g[m])&&1===
g.length)return!1;var n=e.cb.indexOf(g[m]);l=n>l?n:l}if(-1===l)return!1}}return!0};d.prototype.Vya=function(b,a){var c=[];for(b=b.va(a);0!==b.ordinal;)c.push(b.ordinal),b=b.parent;return c};d.prototype.o4=function(b,a,c,e){if(!this.HL)return a;var g=this.wn;if(!this.aea(g,this.Cb))return a;for(var l=[],m=[],n=[],p=[],t,r=this.qa.fB(b),v=0;v<a.length;v++)if(t=b.va(a[v]),(null!=c[t.ordinal]||r)&&!t.Wb){var z=e.slice(0);z.push(t.ordinal);z=this.Fa(z,g,this.Hv);isNaN(z)?n.push(t.ordinal):(l.push(z),m.push(t.ordinal))}b=
this.ui!==k.i.xa.Ec?f.Ha.sort(l,f.Ha.mi|f.Ha.Ru):f.Ha.sort(l,f.Ha.mi|f.Ha.ko|f.Ha.Ru);for(v=0;v<b.length;v++)a=m[b[v]],null!=a&&p.push(a);for(v=0;v<n.length;v++)a=n[v],this.ui==k.i.xa.Ec?p.push(a):p.splice(v,0,a);return p};d.prototype.rha=function(b,a,c,e){if(!this.RS)return a;var g=this.Ek;if(!this.aea(g,this.vb))return a;for(var l=[],m=[],n=[],p=[],t,r=this.qa.kF(b),v=0;v<a.length;v++)if(t=b.va(a[v]),(null!=c[t.ordinal]||r)&&!t.Wb){var z=e.slice(0);z.push(t.ordinal);z=this.Fa(g,z,this.cs);isNaN(z)?
n.push(t.ordinal):(l.push(z),m.push(t.ordinal))}b=this.rl!==k.i.xa.Ec?f.Ha.sort(l,f.Ha.mi|f.Ha.Ru):f.Ha.sort(l,f.Ha.mi|f.Ha.ko|f.Ha.Ru);for(v=0;v<b.length;v++)a=m[b[v]],null!=a&&p.push(a);for(v=0;v<n.length;v++)a=n[v],this.rl==k.i.xa.Ec?p.push(a):p.splice(v,0,a);return p};d.prototype.xba=function(b,a,c){var e=a.length;(e=this.Jb.Ra&&a.length>=this.lj?this.Dl.ea(e+1):this.Dl.ea(e))&&this.wba(e,e.yd,b,a,c)};d.prototype.wba=function(b,a,c,e,g){if(null!=b.nc&&!this.qa.Rj(e,a)){if(0<e.length){var l=e.slice(0);
l.push(a.ordinal)}else l=e.slice(0);this.qa.Gn(l,a,k.i.ia.Sa,b.ig)}a=null==a.hierarchy.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(b.ig);a=this.rha(b,a,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var m=b.filter;var n=this.slice.$c(m.measure.uniqueName)}l=this.qa.kF(b);for(var p=0;p<a.length;p++){var t=b.va(a[p]);0==p&&this.Mwa(t);if((null!=c[t.ordinal]||l)&&!t.Wb){var r=e.slice(0);r.push(t.ordinal);if(!this.Cda(r,t,m,n)){var v=this.qa.Sj(r),z=this.qa.Rj(r,t);if(this.pH(v,
z)&&!z)this.dB(e.length);else if(this.hs(b)||!v||this.Jt)if(this.se){var B=this.Yi(this.Uc,r,this.pK);0<=B&&!this.Sb.Ra&&(this.yc=f.Ha.ge(this.yc,g,B));v||this.Sb.Ra||this.cga(this.Uc,r)}else this.Si(this.Uc,r),this.yc.push(g);else this.hs(b)||this.dB(e.length);z?this.wba(b,t,c,e,g+1):v&&this.xba(c[t.ordinal],r,g+1);this.pH(v,z)&&(this.hs(b)||!v||this.Jt)&&(this.se?(t=this.Yi(this.Uc,r,this.pK),0<=t&&(this.yc=f.Ha.ge(this.yc,-1,t))):(this.Si(this.Uc,r),this.yc.push(-1)))}}}};d.prototype.SK=function(b,
a,c,e){var g=a.length;(g=this.Jb.Ra&&a.length>=this.lj?this.Dl.ea(g+1):this.Dl.ea(g))&&this.QR(g,g.yd,b,a,c,e)};d.prototype.hs=function(b){return f.model.B.C.qk&&void 0!==b&&void 0!==b.Yf?b.Yf:"on"===f.model.B.C.Yf||"columns"===f.model.B.C.Yf};d.prototype.pH=function(b,a){return!b&&!a||this.Jt?!1:"after"===f.model.B.C.eR};d.prototype.nha=function(b){return f.model.B.C.qk&&void 0!==b&&void 0!==b.Yf?b.Yf:"on"===f.model.B.C.Yf||"rows"===f.model.B.C.Yf};d.prototype.QR=function(b,a,c,e,g,l){if(null!=b.nc&&
!this.qa.Rj(e,a)){if(0<e.length){var m=e.slice(0,-1);m.push(a.ordinal)}else m=e.slice(0);this.qa.Gn(m,a,k.i.ia.Sa,b.ig)}m=e.length;var n=null==b.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(b.ig);n=this.rha(a.hierarchy,n,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var p=a.hierarchy.filter;var t=this.slice.$c(p.measure.uniqueName)}var r;a=this.qa.kF(b);for(var v=0;v<n.length;v++){var z=b.va(n[v]);if((null!=c[z.ordinal]||a)&&!z.Wb){var B=e.slice(0);B.push(z.ordinal);
if(!this.Cda(B,z,p,t)){var C=this.qa.Sj(B,g),E=this.qa.Rj(B,z);if(m<this.lj)if(this.Jb.Ra&&this.PA<l+1&&(this.PA=l+1),m==this.lj-1&&C)if(E){for(r=0;r<this.ib.length;r++)this.se?(C=this.Yi(this.Lf,B,this.Js),0<=C&&(this.yc=f.Ha.ge(this.yc,l,C),this.Bc=f.Ha.ge(this.Bc,g,C))):(this.Si(this.Lf,B,r),this.yc.push(l));this.QR(b,z,c,e,g,l+1)}else for(r=0;r<this.ib.length;r++)this.hs(b)||!C||this.Jt?this.se?(E=this.Yi(this.Lf,B,this.Js),0<=E&&(this.yc=f.Ha.ge(this.yc,l,E),this.Bc=f.Ha.ge(this.Bc,r,E))):(this.Si(this.Lf,
B,r),this.yc.push(l)):this.hs(b)||this.dB(m),this.qa.Sj(B,r)&&this.SK(c[z.ordinal],B,r,l+1);else{if(this.pH(C,E)&&!E)this.dB(m);else if(this.hs(b)||!C||this.Jt)for(r=0;r<this.ib.length;r++)if(this.se){var K=this.Yi(this.Lf,B,this.Js);0<=K&&(this.yc=f.Ha.ge(this.yc,l,K),this.Bc=f.Ha.ge(this.Bc,r,K));C||this.cga(this.Lf,B)}else this.Si(this.Lf,B,r),this.yc.push(l);else this.hs(b)||this.dB(m);this.qa.Rj(B,z,g)?this.QR(b,z,c,e,g,l+1):C&&this.SK(c[z.ordinal],B,g,l+1);if(this.pH(C,E)&&(this.hs(b)||!C||
this.Jt))for(r=0;r<this.ib.length;r++)this.se?(z=this.Yi(this.Lf,B,this.Js),0<=z&&(this.yc=f.Ha.ge(this.yc,-1,z),this.Bc=f.Ha.ge(this.Bc,r,z))):(this.Si(this.Lf,B,r),this.yc.push(-1))}else this.pH(C,E)&&!E?this.dB(m):this.hs(b)||!C||this.Jt?this.se?(r=this.Yi(this.Lf,B,this.Js),0<=r&&(this.yc=f.Ha.ge(this.yc,l,r),this.Bc=f.Ha.ge(this.Bc,g,r))):(this.Si(this.Lf,B,g),this.yc.push(l)):this.hs(b)||this.dB(m),this.qa.Rj(B,z,g)?this.QR(b,z,c,e,g,l+1):C&&this.SK(c[z.ordinal],B,g,l+1),this.pH(C,E)&&(this.hs(b)||
!C||this.Jt)&&(this.se?(B=this.Yi(this.Uc,B,this.pK),0<=B&&(this.yc=f.Ha.ge(this.yc,-1,B))):(this.Si(this.Uc,B),this.yc.push(-1)))}}}};d.prototype.dB=function(b){void 0===this.ay[this.yc.length]&&(this.ay[this.yc.length]=[]);-1==this.ay[this.yc.length].indexOf(b)&&this.ay[this.yc.length].push(b)};d.prototype.yS=function(b){return this.hl?this.wc[this.Kb.Ra?Math.floor(b/this.ib.length):b]:this.wc[b]};d.prototype.DS=function(b){return this.hl?this.fi[this.Kb.Ra?Math.floor(b/this.ib.length):b]:this.fi[b]};
d.prototype.Sv=function(){return 1};d.prototype.eL=function(b){return this.yc[b]};d.prototype.Z0=function(b){return this.ay[b]};d.prototype.AS=function(b){return this.Kb.Ra&&(b.length>this.lj||0==this.lj)?b.length:b.length-1};d.prototype.zS=function(b){return this.xm.ea(this.AS(b))};d.prototype.hS=function(b){return this.Jb.Ra&&(b.length>this.lj||0==this.lj)?b.length:b.length-1};d.prototype.iG=function(b){return this.Dl.ea(this.hS(b))};d.prototype.Ih=function(b,a){return this.qa.Ih(b,a)};d.prototype.Sj=
function(b,a){return this.qa.Sj(b,a)};d.prototype.Hh=function(b,a,c){return this.qa.Hh(b,a,c)};d.prototype.Rj=function(b,a,c){return this.qa.Rj(b,a,c)};d.prototype.UB=function(b,a){a=void 0===a?!0:a;b=b.slice(0);var c=(a=a&&this.Jb.Ra)?b.pop():-1,e=this.Lf;if(0<e.length)for(var g=0;g<e[0].length;g++){var l=!0;if(!a||!this.Tn||c==this.Bc[g]){var m=this.gC(e,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){l=!1;break}if(l)return g}}}return-1};d.prototype.eC=function(b,a){a=void 0===
a?!0:a;b=b.slice(0);var c=(a=a&&this.Kb.Ra)?b.pop():-1,e=this.hl?this.Gb:this.gg;if(0<e.length)for(var g=0;g<e[0].length;g++){var l=!0;if(!a||!this.Tn||c==this.Bc[g]){var m=this.gC(e,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){l=!1;break}if(l)return g}}}return-1};d.prototype.Lm=function(b,a){return 0>b||null==this.Kb||null==this.ib?null:(void 0===a?0:a)&&this.Kb.Ra&&this.Tn?this.hl?(b=Math.floor(b/this.ib.length),void 0==this.Gb[0][b]?null:this.gC(this.Gb,b)):void 0==this.gg[0][b]?
null:this.gC(this.gg,b):f.v(this.Gb[0])||f.v(this.Gb[0][b])?null:this.gC(this.Gb,b)};d.prototype.nj=function(b,a){return 0>b||null==this.Jb||null==this.ib?null:(void 0===a?0:a)&&this.Jb.Ra&&this.Tn?void 0==this.Lf[0][b]?null:this.gC(this.Lf,b):void 0==this.Uc[0]?[0]:void 0==this.Uc[0][b]?null:this.gC(this.Uc,b)};d.prototype.X_=function(){return null};d.prototype.CS=function(b){return this.hl&&this.Kb.Ra?void 0==this.Gb[0][Math.floor(b/this.measures.length)]?-1:b%this.ib.length:void 0==this.Bc[b]?
-1:this.Kb.Ra&&this.Tn?this.Bc[b]:-1};d.prototype.iS=function(b){return void 0===this.Bc[b]?-1:this.Jb.Ra&&this.Tn?this.Bc[b]:-1};d.prototype.Zh=function(b,a){if(void 0!==this.ib&&void 0!==this.Kb&&void 0!==this.Jb)return this.Tn?this.Kb.Ra?this.hl?(a=b%this.ib.length,void 0==this.Gb[0][Math.floor(b/this.measures.length)]?this.ib[0]:this.ib[a]):void 0===this.Bc[b]?this.ib[0]:this.ib[this.Bc[b]]:void 0===this.Bc[a]?this.ib[0]:this.ib[this.Bc[a]]:this.ib[0]};d.prototype.drillThrough=function(b,a,c){return this.qa.drillThrough(b,
a,c)};d.prototype.save=function(b,a,c,e,g){return this.qa.save(b,a,c,e,g)};d.prototype.hC=function(b,a,c){return this.qa.hC(b,a,c)};d.prototype.Pt=function(b,a){return this.ga.fa.Hc?null:null==b&&null==a?null:this.qa.zza(b,a)};d.prototype.Fa=function(b,a,c){if(c.$===k.i.ca.Wq)return b=this.qa.Fa(b,a,c),c=this.qa.Fa([],[],c),isNaN(b)&&!isNaN(c)?0:Math.abs(100*b/c);if(c.$===k.i.ca.ro)return b=this.qa.Fa(b,a,c),c=this.qa.Fa([],a,c),isNaN(b)&&!isNaN(c)?0:100*b/c;if(c.$===k.i.ca.Tp)return a=this.qa.Fa(b,
a,c),c=this.qa.Fa(b,[],c),isNaN(a)&&!isNaN(c)?0:100*a/c;if(c.$===k.i.ca.Sp){var e=this.qa.Fa(b,a,c);b=b.slice(0,b.length-1);c=this.qa.Fa(b,a,c);return isNaN(e)&&!isNaN(c)?0:100*e/c}if(c.$===k.i.ca.Rp)return e=this.qa.Fa(b,a,c),a=a.slice(0,a.length-1),c=this.qa.Fa(b,a,c),isNaN(e)&&!isNaN(c)?0:100*e/c;if(c.$===k.i.ca.li){e=this.qa.Fa([],[],c);var g=this.qa.Fa(b,[],c),l=this.qa.Fa([],a,c);c=this.qa.Fa(b,a,c);return Math.abs(e*c/(l*g))}return c.$===k.i.ca.dn?this.mca(b,a,c,!1):c.$===k.i.ca.im?this.nca(b,
a,c,!1):c.$===k.i.ca.jn?this.mca(b,a,c,!0):c.$===k.i.ca.km?this.nca(b,a,c,!0):c.$===k.i.ca.nm||c.$===k.i.ca.ln?this.qa.Jca(b,a,c):this.ga.fa.Ba!==k.i.oa.Nc&&this.ga.fa.Ba!==k.i.oa.Zd||!f.model.B.C.Jq||c.$!==k.i.ca.NONE?this.qa.Fa(b,a,c):(c=this.qa.Fa(b,a,c),k.HI.U().nza(c))};d.prototype.nca=function(b,a,c,e){var g=-1;if(0<this.columns.length){var l=this.Jb.Ra&&1<this.ib.length;g=a.slice();l&&g.push(0);g=this.UB(g,l);if(0==g||0==a.length)return NaN;if(0>g)return 0;l=this.nj(l&&a.length<=this.Jb.He?
g-this.ib.length:g-1,l);if(null==l||a.length!=l.length&&1!=a.length)return NaN;a.length!=l.length&&1==a.length&&(l=this.vza(g,a.length));if(null==l)return NaN;l=this.qa.Fa(b,l,c);isNaN(l)&&!e&&(l=0)}b=this.qa.Fa(b,a,c);isNaN(b)&&0<g&&!e&&(b=0);return e?(b-l)/l*100:b-l};d.prototype.mca=function(b,a,c,e){var g=-1;if(0<this.rows.length){var l=this.Kb.Ra&&1<this.ib.length;g=b.slice();l&&g.push(0);g=this.eC(g,l);if(0==g||0==b.length)return NaN;if(0>g)return 0;l=this.Lm(l&&b.length<=this.Kb.He?g-(this.ib.length+
1):g-1,l);if(null==l||b.length!=l.length&&1!=b.length)return NaN;b.length!=l.length&&1==b.length&&(l=this.wza(g,b.length));if(null==l)return NaN;l=this.qa.Fa(l,a,c);isNaN(l)&&!e&&(l=0)}b=this.qa.Fa(b,a,c);isNaN(b)&&0<g&&!e&&(b=0);return e?(b-l)/l*100:b-l};d.prototype.wza=function(b,a){if(0>b||null==this.Kb||null==this.ib||f.v(this.Gb[0])||f.v(this.Gb[0][b]))return null;b=this.zga(this.Gb,a,b);return 0<=b&&0==this.Gb[a][b]?this.Hca(b,a,this.Gb):null};d.prototype.vza=function(b,a){if(0>b||null==this.Kb||
null==this.ib)return null;if(void 0==this.Uc[0])return[0];if(void 0==this.Uc[0][b])return null;b=this.zga(this.Uc,a,b);return 0<=b&&0==this.Uc[a][b]?this.Hca(b,a,this.Uc):null};d.prototype.Hca=function(b,a,c){for(var e=[],g=0;g<a;g++)e.push(c[g][b]);return e};d.prototype.zga=function(b,a,c){if(b[a]&&0==b[a][c]){for(c--;0!=b[a][c]&&0<=c;)c--;return c}return-1};d.prototype.Yo=function(b,a,c){b=this.qa.Fa(b,a,c);return k.HI.U().Pza(b)};d.prototype.xv=function(b,a,c,e){return this.qa.xv(b,a,c,e)};d.prototype.Qv=
function(b){this.mj&&(this.ga.fa.Hc||this.Gwa(b))};d.prototype.Gwa=function(b){var a=this.slice.rows.Bb(b.uniqueName)?k.i.ia.Ia:k.i.ia.Sa;b=a==k.i.ia.Ia?this.slice.vb.indexOf(b.uniqueName):this.slice.Cb.indexOf(b.uniqueName);if(b+1!=(a==k.i.ia.Ia?this.slice.vb.length:this.slice.Cb.length)){var c=[],e=(a==k.i.ia.Ia?this.slice.vb:this.slice.Cb).slice(0,b+1);this.yL([],e,c);e=a==this.slice.ht.uniqueName?this.slice.ht.He:-1;for(var g=this.slice.ad(),l=0;l<c.length;l++)if(0<=e&&e<=b&&1<g.length)for(var m=
0;m<g.length;m++){var n=g[m];c[l].length>e?this.expand(c[l],a,n,!1):this.expand(c[l],a,void 0,!1)}else this.expand(c[l],a,void 0,!1);this.ga.Da(new k.WW(k.i.Kd.Oz));this.ga.Wa(f.model.cc.fd.lm)}};d.prototype.yL=function(b,a,c,e){e=void 0===e?!0:e;if(0!=a.length){var g=a.ea(0);var l=g.filter.$h?g.cb.length:g.vi;for(var m=0;m<l;m++){var n=g.filter.$h?g.va(g.cb[m]):g.va(m);if(!n.Wb){var p=b.slice(0);p.push(n.ordinal);(e||!e&&1==a.length)&&c.push(p.slice(0));this.yL(p.slice(0),a.slice(1),c,e)}}}};d.prototype.Gv=
function(b){this.mj&&(this.ga.fa.Hc||this.Hta(b))};d.prototype.Hta=function(b){var a=this.slice.rows.Bb(b.uniqueName)?k.i.ia.Ia:k.i.ia.Sa;b=a==k.i.ia.Ia?this.slice.vb.indexOf(b.uniqueName):this.slice.Cb.indexOf(b.uniqueName);if(b+1!=(a==k.i.ia.Ia?this.slice.vb.length:this.slice.Cb.length)){var c=[],e=(a==k.i.ia.Ia?this.slice.vb:this.slice.Cb).slice(0,b+1);this.yL([],e,c,!1);e=a==this.slice.ht.uniqueName?this.slice.ht.He:-1;for(var g=this.slice.ad(),l=0;l<c.length;l++)if(0<=e&&e<=b&&1<g.length)for(var m=
0;m<g.length;m++){var n=g[m];c[l].length>e?this.collapse(c[l],a,n,!1):this.collapse(c[l],a,void 0,!1)}else this.collapse(c[l],a,void 0,!1);this.ga.Da(new k.WW(k.i.Kd.y5));this.ga.Wa(f.model.cc.fd.lm)}};d.prototype.expandAll=function(){this.mj&&(this.ga.fa.Hc?this.ga.select():(this.reset(),this.slice.expandAll?this.qa.expandAll(this.slice.drillAll):this.ga.select()))};d.prototype.sort=function(){this.se=!1;this.BU();this.ga.Wa(f.model.cc.fd.lm)};d.prototype.expand=function(b,a,c,e){e=void 0===e?!0:
e;a==k.i.ia.Ia&&(this.t9=b);a==k.i.ia.Sa&&(this.s9=b);var g=this.slice.Cd(a),l=b.slice(0);l.unshift(c&&g.Ra?c.index:-1);if(this.slice.expandAll)if(a==k.i.ia.Ia){g=this.hG();l=l.toString().toLocaleLowerCase();for(var m=-1,n=0;n<g.length;n++)if(l===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Q3(g)}else{g=this.TB();l=l.toString().toLocaleLowerCase();m=-1;for(n=0;n<g.length;n++)if(l===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Kga(g)}else a==k.i.ia.Ia?
(g=this.lL().slice(0),g.push(l),this.Tga(g)):(g=this.kL().slice(0),g.push(l),this.Sga(g));this.ga.expand(b,a,c,e)};d.prototype.collapse=function(b,a,c,e){e=void 0===e?!0:e;a==k.i.ia.Ia&&(this.t9=b.slice(0,b.length-1));a==k.i.ia.Sa&&(this.s9=b.slice(0,b.length-1));var g=this.slice.Cd(a),l=b.slice(0);l.unshift(c&&g.Ra?c.index:-1);if(this.slice.expandAll)a==k.i.ia.Ia?(g=this.hG().slice(0),g.push(l),this.Q3(g)):(g=this.TB().slice(0),g.push(l),this.Kga(g));else if(a==k.i.ia.Ia){g=this.lL();l=l.toString().toLocaleLowerCase();
for(var m=-1,n=0;n<g.length;n++)if(l===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Tga(g)}else{g=this.kL();l=l.toString().toLocaleLowerCase();m=-1;for(n=0;n<g.length;n++)if(l===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Sga(g)}this.ga.collapse(b,a,c,e);e&&this.ga.Wa(f.model.cc.fd.lm)};d.prototype.To=function(b,a,c,e){var g=this.slice.Cd(c),l=[],m=b.slice(0);m.unshift(a.uniqueName);m.unshift(e&&g.Ra?e.index:-1);if(this.slice.drillAll)c==k.i.ia.Ia?
(l=this.hL().slice(0),l.push(m),this.Qga(l)):(l=this.gL().slice(0),l.push(m),this.Pga(l));else if(c==k.i.ia.Ia){var n=this.oG(),p;for(p in n)g=n[p],"string"==typeof g[0]&&(g=g.slice(1)),g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&l.push(g);this.U3(l)}else{n=this.nG();for(p in n)g=n[p],"string"==typeof g[0]&&(g=g.slice(1)),g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&l.push(g);this.T3(l)}this.ga.To(b,a,c,e);this.ga.Wa(f.model.cc.fd.lm)};d.prototype.Fsa=
function(b,a){for(;void 0!==b&&b.level.uniqueName!=a;)b=b.parent;return b};d.prototype.tf=function(b,a,c,e){var g=this.slice.Cd(c),l=[],m=b.slice(0);m.unshift(a.uniqueName);m.unshift(e&&g.Ra?e.index:-1);if(this.slice.drillAll)if(c==k.i.ia.Ia){var n=this.hL(),p;for(p in n)g=n[p],g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&l.push(g);this.Qga(l)}else{n=this.gL();for(p in n)g=n[p],g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&l.push(g);this.Pga(l)}else c==
k.i.ia.Ia?(l=this.oG().slice(0),l.push(m),this.U3(l)):(l=this.nG().slice(0),l.push(m),this.T3(l));this.ga.tf(b,a,c,e);this.ga.Wa(f.model.cc.fd.lm)};d.prototype.Gn=function(b,a,c,e,g){var l=this.slice.Cd(c),m=b.slice(0);m.unshift(a.uniqueName);m.unshift(e&&l.Ra?e.index:-1);m.unshift(g);c==k.i.ia.Ia?(l=this.oG().slice(0),l.push(m),this.U3(l)):(l=this.nG().slice(0),l.push(m),this.T3(l));this.ga.Gn(b,a,c,e,g)};d.prototype.l1=function(b){return!0===this.RU[b]};d.prototype.fV=function(b){this.RU[b]=!0};
d.prototype.V0=function(b){return!0===this.ZQ[b]};d.prototype.R3=function(b){this.ZQ[b]=!0};d.dispose=function(){d.instance&&(d.instance.Yy(),d.instance.Od());d.instance=null};q.Object.defineProperties(d.prototype,{qa:{configurable:!0,enumerable:!0,get:function(){return null!=this.qJ?this.qJ:this.ga.qa},set:function(b){this.qJ=b}},slice:{configurable:!0,enumerable:!0,get:function(){return null!=this.Lb?this.Lb:this.ga.sa},set:function(b){this.Lb=b}},hl:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.qk},
set:function(){}},rows:{configurable:!0,enumerable:!0,get:function(){return this.xm},set:function(){}},vb:{configurable:!0,enumerable:!0,get:function(){return this.slice.vb},set:function(){}},Tm:{configurable:!0,enumerable:!0,get:function(){return this.rQ},set:function(){}},cR:{configurable:!0,enumerable:!0,get:function(){return this.zP},set:function(){}},columns:{configurable:!0,enumerable:!0,get:function(){return this.Dl},set:function(){}},Cb:{configurable:!0,enumerable:!0,get:function(){return this.slice.Cb},
set:function(){}},pages:{configurable:!0,enumerable:!0,get:function(){return this.kQ},set:function(){}},measures:{configurable:!0,enumerable:!0,get:function(){return this.ib},set:function(){}},He:{configurable:!0,enumerable:!0,get:function(){return this.lj},set:function(){}},mj:{configurable:!0,enumerable:!0,get:function(){return this.slice&&this.EE},set:function(b){this.EE=b}},K3:{configurable:!0,enumerable:!0,get:function(){return this.VE},set:function(){}},kq:{configurable:!0,enumerable:!0,get:function(){return this.lx},
set:function(){}},gM:{configurable:!0,enumerable:!0,get:function(){return this.PA},set:function(){}},ic:{configurable:!0,enumerable:!0,get:function(){return this.Kb},set:function(){}},Sb:{configurable:!0,enumerable:!0,get:function(){return this.Jb},set:function(){}},Sm:{configurable:!0,enumerable:!0,get:function(){return this.Kb?this.Kb.Ra?this.Kb.Ma.length-1:this.Kb.Ma.length:0},set:function(){}},Em:{configurable:!0,enumerable:!0,get:function(){return this.Jb?this.Jb.Ra?this.Jb.Ma.length-1:this.Jb.Ma.length:
0},set:function(){}},Tn:{configurable:!0,enumerable:!0,get:function(){return 1<this.ib.length||this.Jb.Ra&&f.model.B.C.XM},set:function(){}},rl:{configurable:!0,enumerable:!0,set:function(b){this.Kb&&(this.Kb.$f=b)},get:function(){var b=k.i.xa.Zc;this.Kb&&(b=this.Kb.$f,b==k.i.xa.Zc&&this.Kb.ks&&this.Kb.Gq!=k.i.xa.Zc&&(b=this.Kb.Gq));return b}},Ek:{configurable:!0,enumerable:!0,set:function(b){this.Kb&&(this.Kb.Vm=b)},get:function(){if(this.Kb){var b=this.Kb.Vm;this.Kb.$f==k.i.xa.Zc&&this.Kb.ks&&this.Kb.Gq!=
k.i.xa.Zc&&(b=[])}return b}},cs:{configurable:!0,enumerable:!0,set:function(b){this.Kb&&(this.Kb.Ff=b)},get:function(){if(this.Kb){var b=this.Kb.Ff;this.Kb.$f==k.i.xa.Zc&&this.Kb.ks&&this.Kb.Gq!=k.i.xa.Zc&&(b=this.Kb.ks)}return b}},RS:{configurable:!0,enumerable:!0,get:function(){if(this.rl==k.i.xa.Zc||null==this.Ek)return!1;if(1>this.Ek.length)return!0;var b=!1;try{b=this.Ih(this.Ek.slice(0,this.Ek.length-1),this.cs)}catch(a){}return b},set:function(){}},ui:{configurable:!0,enumerable:!0,set:function(b){this.Jb&&
(this.Jb.$f=b)},get:function(){var b=k.i.xa.Zc;this.Jb&&(b=this.Jb.$f,b==k.i.xa.Zc&&this.Jb.ks&&this.Jb.Gq!=k.i.xa.Zc&&(b=this.Jb.Gq));return b}},wn:{configurable:!0,enumerable:!0,set:function(b){this.Jb&&(this.Jb.Vm=b)},get:function(){if(this.Jb){var b=this.Jb.Vm;this.Jb.$f==k.i.xa.Zc&&this.Jb.ks&&this.Jb.Gq!=k.i.xa.Zc&&(b=[])}return b}},Hv:{configurable:!0,enumerable:!0,set:function(b){this.Jb&&(this.Jb.Ff=b)},get:function(){if(this.Jb){var b=this.Jb.Ff;this.Jb.$f==k.i.xa.Zc&&this.Jb.ks&&this.Jb.Gq!=
k.i.xa.Zc&&(b=this.Jb.ks)}return b}},HL:{configurable:!0,enumerable:!0,get:function(){if(this.ui==k.i.xa.Zc||null==this.wn)return!1;if(1>this.wn.length)return!0;var b=!1;try{b=this.Sj(this.wn.slice(0,this.wn.length-1),this.Hv)}catch(a){}return b},set:function(){}},Wh:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},Z3:{configurable:!0,enumerable:!0,get:function(){return"on"===f.model.B.C.Ef||"columns"===f.model.B.C.Ef||0===this.rows.length}},g4:{configurable:!0,enumerable:!0,
get:function(){return"on"===f.model.B.C.Ef||"rows"===f.model.B.C.Ef||0===this.columns.length}},Jt:{configurable:!0,enumerable:!0,get:function(){return!1}},ob:{configurable:!0,enumerable:!0,get:function(){return 0==this.Uc.length&&0==this.Gb.length},set:function(){}},Fd:{configurable:!0,enumerable:!0,get:function(){return 0<this.Uc.length?this.Uc[0].length:0},set:function(){}},Ed:{configurable:!0,enumerable:!0,get:function(){return 0<this.Gb.length?this.Gb[0].length:0},set:function(){}},oq:{configurable:!0,
enumerable:!0,get:function(){return 0<this.Lf.length?this.Lf[0].length:0},set:function(){}},nq:{configurable:!0,enumerable:!0,get:function(){return this.hl?(this.ic&&this.ic.Ra?this.ib.length:1)*(0<this.Gb.length?this.Gb[0].length:0):this.gg&&0<this.gg.length?this.gg[0].length:0},set:function(){}},DT:{configurable:!0,enumerable:!0,get:function(){return this.t9}},BT:{configurable:!0,enumerable:!0,get:function(){return this.s9}}});d.counter=0;h.dJ=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.vJa=function(b){var a=b.R("gridType");return b.R("viewType")===f.K.xd.Ki?"chart":a===f.K.X.ie.ih?"flat":"pivot"};d.uc=function(b,a){b=void 0===b?"":b;a=void 0===a?!0:a;""==b&&(b=f.model.B.C.he==f.K.xd.Ki?"chart":f.model.B.C.oc?"flat":"pivot");b="flat"==b?h.sW.U():"chart"==b?h.VH.U():h.dJ.U();b.BQ();d.G!=b?(d.G&&d.G.Yy(),b.load()):a&&f.model.B.C.mu&&(b.load(),f.model.B.C.mu=!1);d.G=b;return d.G};d.W_=function(b){d.uc("chart");return b?h.Z7.U(d.G):
d.G};d.dispose=function(){h.sW.dispose();h.VH.dispose();h.dJ.dispose();h.Z7.dispose();d.G=null};q.Object.defineProperties(d,{wva:{configurable:!0,enumerable:!0,get:function(){if(d.G)return d.G instanceof h.sW?"flat":d.G instanceof h.VH?"chart":"pivot"}}});d.G=null;h.ij=d;(function(b){b.SMa="pivot";b.ih="flat";b.QKa="chart"})(h.oka||(h.oka={}))})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.ib=[];b.EE=!1;b.Wy=function(){return b.NC()};b.Ut=[];b.sk=[];b.wa=k.Na.U();return b}u(d,y.Fc);d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.prototype.BQ=function(){this.wa.N(k.cg.hk,this.Wy,1)};d.prototype.Yy=function(){this.wa.mb(k.cg.hk,this.Wy)};d.prototype.load=function(){if(null==this.qa&&(this.qa=this.wa.qa,null==this.qa))return;this.slice&&(this.wa.fa.Hc||(this.qa.expand([],k.i.ia.Ia,
void 0),this.qa.expand([],k.i.ia.Sa,void 0)),this.BU(),this.EE=!0)};d.prototype.NC=function(){this.reset();this.load()};d.prototype.BU=function(){var b,a=this.slice?this.slice.flatten(!0,!0):new f.nb;this.sk.length=0;this.oK=new f.nb;this.rc=this.wa.I.rc();this.ib=[];for(b=0;b<a.length;b++){var c=a.ea(b);var e=a.ea(b)instanceof k.I.nf?this.wa.I.Ee(c.uniqueName):a.ea(b);void 0===e&&(e=this.wa.I.mt.getItem(c.uniqueName));e&&this.ib.push(e);e=this.qa.Yg.indexOf(c.uniqueName);if(c.qg)for(var g=1;g<c.ra.length;g++)this.sk.push([e,
g]),this.oK.Pa(c.uniqueName,this.sk.length-1);else this.sk.push(e),this.oK.Pa(c.uniqueName,this.sk.length-1);this.Wh=this.slice.flatSort}this.sort()};d.prototype.jS=function(b){if(f.v(this.Wh))return null;for(var a=0;a<this.Wh.length;a++){var c=this.Wh[a];if(c.measure.uniqueName==b)return c}};d.prototype.reset=function(){this.EE=!1;this.ib=[];this.Ut.length=0;this.sk.length=0;this.oK=new f.nb;this.rc=null};d.prototype.Z0=function(){return null};d.prototype.yS=function(){return 0};d.prototype.DS=function(){return 0};
d.prototype.Sv=function(){return 0};d.prototype.eL=function(){return 1};d.prototype.AS=function(){return 0};d.prototype.zS=function(b){return this.iG(b)};d.prototype.hS=function(){return 0};d.prototype.iG=function(b){f.v(this.rc)&&(this.rc=this.wa.I.rc());return this.rc.getItem(this.qa.Yg[b[0]])};d.prototype.Ih=function(){return!1};d.prototype.Sj=function(){return!1};d.prototype.Hh=function(){return!1};d.prototype.Rj=function(){return!1};d.prototype.UB=function(b){for(var a=0;a<this.sk.length;a++)if(this.sk[a]instanceof
Array){if(this.sk[a][0].toString()==b.toString())return a}else if(this.sk[a].toString()==b.toString())return a;return-1};d.prototype.eC=function(b){if(0<this.Ut.length&&b[0]<this.Ut.length)for(var a=0;a<this.Ut.length;a++){if(this.Ut[a].toString()==b.toString())return a}else return b[0];return-1};d.prototype.Lm=function(b){return 0>b?null:0<this.Ut.length&&b<this.Ut.length?[this.Ut[b]]:[b]};d.prototype.nj=function(b,a,c){return 0>b?null:0<this.sk.length&&b<this.sk.length?(void 0===c||!c)&&this.sk[b]instanceof
Array?[this.sk[b][0]]:[this.sk[b]]:[b]};d.prototype.X_=function(b){var a=void 0===a?!1:a;b=this.oK.getItem(b);return this.nj(b,a)};d.prototype.CS=function(){return 0};d.prototype.iS=function(){return 0};d.prototype.Zh=function(b,a){b=this.nj(a);var c=this.qa.Yg[b[0]];return this.ib.find(function(e){return e.uniqueName===c})};d.prototype.hC=function(b,a,c){return null==b?this.qa.vca(null,c):this.qa.vca(b[0],c)};d.prototype.Fa=function(b,a,c,e){if(null==a&&null==b)return this.qa.Fa([],[],c,!0);if(this.qa instanceof
k.local.xO||this.qa instanceof k.external.kc.Z4)return this.qa.rS(b[0],a[0],c,c.type!=k.i.Ja.sc,e)};d.prototype.Pt=function(b,a){return(null!=b||null!=a)&&this.qa instanceof k.local.xO?this.qa.Pt(b[0]):null};d.prototype.sort=function(){this.uY();this.wa.Wa(f.model.cc.fd.lm)};d.prototype.uY=function(){var b=this;if(this.HL){for(var a=[],c=null,e=null,g=0;g<this.Wh.length;g++){var l=this.Wh[g];l.hierarchy=this.wa.I.Vj(l.measure.uniqueName);e=void 0!==l.hierarchy?l.hierarchy.uniqueName:l.measure.uniqueName;
c=void 0!==l.hierarchy?l.hierarchy.D0:!1;if(-1!=this.oK.indexOf(e)){l.We=this.X_(e);if(l.measure.type==k.i.Ja.sc||c)l.vR=this.Fya(l.hierarchy);a.push(l)}}this.Wh=a;a=[];for(c=0;c<this.nq;c++){e=[];for(g=0;g<this.Wh.length;g++)l=this.Wh[g],e[g]=this.Fza(c,l.We,l.measure,l.hierarchy,!f.v(l.vR));a[c]=[e,c]}a.sort(function(m,n){return b.cJa(m[0],n[0])});this.Ut=a.map(function(m){return m[1]})}else this.Ut.length=0};d.prototype.Fya=function(b){var a=!1;b.type==k.i.Gc.Oa&&2<b.ra.length&&(a=!0);if(b.D0||
!a){a={};for(var c=b.uj(b.yd,!1,k.i.xa.bc),e=0;e<c.length;e++){var g=b.va(c[e]);a[g.uniqueName]=e}return a}return null};d.prototype.Fza=function(b,a,c,e,g){if(null!=e&&e.type==k.i.Gc.Oa&&2<e.ra.length)return g=this.Fa([b],a,c,e.ra.length-1),e.va(g).ec;b=this.Fa([b],a,c);if(c.type!=k.i.Ja.sc)return isNaN(b)?Number.NEGATIVE_INFINITY:b;e=e.va(b);return g?e.uniqueName:e.caption};d.prototype.cJa=function(b,a){for(var c=0,e=0;e<this.Wh.length;e++){var g=this.Wh[e];if(b[e]!=a[e]){c=f.v(g.vR)?"number"==typeof b[e]&&
"number"==typeof a[e]?b[e]-a[e]:f.Ha.localeCompare(b[e],a[e]):g.vR[b[e]]-g.vR[a[e]];g.sort==k.i.xa.Ec&&(c*=-1);break}}return c};d.prototype.xv=function(b,a,c,e){return this.qa.Psa(b,c,e)};d.prototype.Yo=function(){return null};d.prototype.Qv=function(){};d.prototype.Gv=function(){};d.prototype.expandAll=function(){};d.prototype.expand=function(){};d.prototype.collapse=function(){};d.prototype.To=function(){};d.prototype.tf=function(){};d.prototype.drillThrough=function(){return[]};d.prototype.save=
function(b,a,c,e){return this.qa.MHa(b,a,c,e)};d.dispose=function(){d.instance&&(d.instance.Od(),d.instance.Yy());d.instance=null};d.prototype.l1=function(){return!1};d.prototype.fV=function(){};d.prototype.V0=function(){return!1};d.prototype.R3=function(){};q.Object.defineProperties(d.prototype,{qa:{configurable:!0,enumerable:!0,get:function(){return null!=this.qJ?this.qJ:this.wa.qa},set:function(b){this.qJ=b}},slice:{configurable:!0,enumerable:!0,get:function(){return null!=this.Lb?this.Lb:this.wa.sa},
set:function(b){this.Lb=b}},measures:{configurable:!0,enumerable:!0,get:function(){return this.ib},set:function(){}},Tn:{configurable:!0,enumerable:!0,get:function(){return 1<this.ib.length},set:function(){}},mj:{configurable:!0,enumerable:!0,get:function(){return this.slice&&this.EE},set:function(){}},He:{configurable:!0,enumerable:!0,get:function(){return 0},set:function(){}},K3:{configurable:!0,enumerable:!0,get:function(){return 0},set:function(){}},kq:{configurable:!0,enumerable:!0,get:function(){return 0},
set:function(){}},gM:{configurable:!0,enumerable:!0,get:function(){return 0},set:function(){}},rows:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},vb:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},Tm:{configurable:!0,enumerable:!0,get:function(){return[]},set:function(){}},cR:{configurable:!0,enumerable:!0,get:function(){return[]},set:function(){}},columns:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},
Cb:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},pages:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},ic:{configurable:!0,enumerable:!0,get:function(){return new k.I.Mq(k.i.ia.Ia)},set:function(){}},Sb:{configurable:!0,enumerable:!0,get:function(){return new k.I.Mq(k.i.ia.Sa)},set:function(){}},Sm:{configurable:!0,enumerable:!0,get:function(){return 1},set:function(){}},Em:{configurable:!0,enumerable:!0,get:function(){return 0},
set:function(){}},rl:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},Ek:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},cs:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},RS:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},ui:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},wn:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},Hv:{configurable:!0,
enumerable:!0,set:function(){},get:function(){return null}},HL:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.Wh)&&0<this.Wh.length},set:function(){}},Wh:{configurable:!0,enumerable:!0,set:function(b){this.slice.flatSort=b},get:function(){return this.slice.flatSort}},ob:{configurable:!0,enumerable:!0,get:function(){return 0==this.sk.length},set:function(){}},Fd:{configurable:!0,enumerable:!0,get:function(){return this.sk.length},set:function(){}},Ed:{configurable:!0,enumerable:!0,get:function(){return this.qa?
this.qa.result[0]:0},set:function(){}},oq:{configurable:!0,enumerable:!0,get:function(){return this.sk.length},set:function(){}},nq:{configurable:!0,enumerable:!0,get:function(){return this.qa.uG()},set:function(){}},DT:{configurable:!0,enumerable:!0,get:function(){return null}},BT:{configurable:!0,enumerable:!0,get:function(){return null}},hl:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}}});h.sW=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.dJ.call(this)||this}u(d,h.dJ);d.U=function(){null==d.ne&&(d.ne=new d,d.ne.SA="chart"+h.dJ.counter);return d.ne};d.dispose=function(){d.ne&&(d.ne.Yy(),d.ne.Od());d.ne=null};q.Object.defineProperties(d.prototype,{hl:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},Jt:{configurable:!0,enumerable:!0,get:function(){return!0}}});h.VH=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){var a=y.Fc.call(this)||this;a.G=b;return a}u(d,y.Fc);d.U=function(b){null==d.instance&&(d.instance=new d(b));return d.instance};d.dispose=function(){d.instance&&(d.instance.Od(),d.instance.Yy());d.instance=null};d.prototype.BQ=function(){this.G.BQ()};d.prototype.Yy=function(){this.G.Yy()};d.prototype.load=function(){this.G.load()};d.prototype.jS=function(){return null};d.prototype.reset=function(){};d.prototype.Z0=function(){return null};d.prototype.yS=
function(b){return this.G.eL(b)};d.prototype.DS=function(b){return this.G.Sv(b)};d.prototype.eL=function(b){return this.G.yS(b)};d.prototype.Sv=function(b){return this.G.DS(b)};d.prototype.AS=function(b){return this.G.AS(b)};d.prototype.zS=function(b){return this.G.zS(b)};d.prototype.hS=function(b){return this.G.hS(b)};d.prototype.iG=function(b){return this.G.iG(b)};d.prototype.Ih=function(b,a){return this.G.Sj(b,a)};d.prototype.Sj=function(b,a){return this.G.Ih(b,a)};d.prototype.Hh=function(b,a,
c){return this.G.Rj(b,a,c)};d.prototype.Rj=function(b,a,c){return this.G.Hh(b,a,c)};d.prototype.UB=function(b){return this.G.eC(b)};d.prototype.eC=function(b){return this.G.UB(b)};d.prototype.Lm=function(b,a){return this.G.nj(b,void 0===a?!1:a)};d.prototype.nj=function(b,a){return this.G.Lm(b,void 0===a?!1:a)};d.prototype.CS=function(b){return this.G.iS(b)};d.prototype.iS=function(b){return this.G.CS(b)};d.prototype.Zh=function(b,a){return this.G.Zh(b,a)};d.prototype.hC=function(b,a,c){return this.G.hC(b,
a,c)};d.prototype.Pt=function(){return null};d.prototype.Fa=function(b,a,c){return this.G.Fa(a,b,c)};d.prototype.sort=function(){return this.G.sort()};d.prototype.xv=function(b,a,c,e){return this.G.xv(b,a,c,e)};d.prototype.Yo=function(b,a,c){return this.G.Yo(b,a,c)};d.prototype.Qv=function(b){this.G.Qv(b)};d.prototype.Gv=function(b){this.G.Gv(b)};d.prototype.expandAll=function(){};d.prototype.expand=function(b,a,c,e){a=a==k.i.ia.Sa?k.i.ia.Ia:k.i.ia.Sa;this.G.expand(b,a,c,void 0===e?!0:e)};d.prototype.collapse=
function(b,a,c,e){a=a==k.i.ia.Sa?k.i.ia.Ia:k.i.ia.Sa;this.G.collapse(b,a,c,void 0===e?!0:e)};d.prototype.To=function(b,a,c,e){c=c==k.i.ia.Sa?k.i.ia.Ia:k.i.ia.Sa;this.G.To(b,a,c,e)};d.prototype.tf=function(b,a,c,e){c=c==k.i.ia.Sa?k.i.ia.Ia:k.i.ia.Sa;this.G.tf(b,a,c,e)};d.prototype.drillThrough=function(b,a,c){return this.G.drillThrough(b,a,c)};d.prototype.save=function(b,a,c,e,g){return this.G.save(b,a,c,e,g)};d.prototype.X_=function(){return null};d.prototype.l1=function(){return!1};d.prototype.fV=
function(){};d.prototype.V0=function(){return!1};d.prototype.R3=function(){};q.Object.defineProperties(d.prototype,{qa:{configurable:!0,enumerable:!0,get:function(){return this.G.qa},set:function(b){this.G.qa=b}},slice:{configurable:!0,enumerable:!0,get:function(){return this.G.slice},set:function(b){this.G.slice=b}},measures:{configurable:!0,enumerable:!0,get:function(){return this.G.measures},set:function(){}},mj:{configurable:!0,enumerable:!0,get:function(){return this.G.mj},set:function(){}},
He:{configurable:!0,enumerable:!0,get:function(){return this.G.He},set:function(){}},K3:{configurable:!0,enumerable:!0,get:function(){return this.G.kq},set:function(){}},Tn:{configurable:!0,enumerable:!0,get:function(){return 1<this.measures.length},set:function(){}},kq:{configurable:!0,enumerable:!0,get:function(){return this.G.K3},set:function(){}},gM:{configurable:!0,enumerable:!0,get:function(){return this.G.gM},set:function(){}},rows:{configurable:!0,enumerable:!0,get:function(){return this.G.columns},
set:function(){}},vb:{configurable:!0,enumerable:!0,get:function(){return this.G.Cb},set:function(){}},Tm:{configurable:!0,enumerable:!0,get:function(){return this.G.cR},set:function(){}},cR:{configurable:!0,enumerable:!0,get:function(){return this.G.Tm},set:function(){}},columns:{configurable:!0,enumerable:!0,get:function(){return this.G.rows},set:function(){}},Cb:{configurable:!0,enumerable:!0,get:function(){return this.G.vb},set:function(){}},pages:{configurable:!0,enumerable:!0,get:function(){return this.G.pages},
set:function(){}},ic:{configurable:!0,enumerable:!0,get:function(){return this.G.Sb},set:function(){}},Sb:{configurable:!0,enumerable:!0,get:function(){return this.G.ic},set:function(){}},Sm:{configurable:!0,enumerable:!0,get:function(){return this.G.Em},set:function(){}},Em:{configurable:!0,enumerable:!0,get:function(){return this.G.Sm},set:function(){}},rl:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.ui}},Ek:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.wn}},
cs:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.Hv}},RS:{configurable:!0,enumerable:!0,get:function(){return this.G.HL},set:function(){}},ui:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.rl}},wn:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.Ek}},Hv:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.cs}},HL:{configurable:!0,enumerable:!0,get:function(){return this.G.RS},set:function(){}},
Wh:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},ob:{configurable:!0,enumerable:!0,get:function(){return this.G.ob},set:function(){}},Fd:{configurable:!0,enumerable:!0,get:function(){return this.G.Ed},set:function(){}},Ed:{configurable:!0,enumerable:!0,get:function(){return this.G.Fd},set:function(){}},oq:{configurable:!0,enumerable:!0,get:function(){return this.G.nq},set:function(){}},nq:{configurable:!0,enumerable:!0,get:function(){return this.G.oq},set:function(){}},
DT:{configurable:!0,enumerable:!0,get:function(){return null}},BT:{configurable:!0,enumerable:!0,get:function(){return null}},hl:{configurable:!0,enumerable:!0,get:function(){return this.G.hl},set:function(){}}});h.Z7=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){return h.VH.call(this)||this}u(d,h.VH);h.Jka=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){void 0!==b.uniqueName&&(this.uniqueName=b.uniqueName);void 0!==b.caption&&(this.caption=b.caption);void 0!==b.ei&&(this.ei=b.ei);void 0!==b.parent&&(this.parent=b.parent);void 0!==b.ec&&(this.ec=b.ec);void 0!==b.level&&(this.level=b.level);void 0!==b.ordinal&&(this.ordinal=b.ordinal);void 0!==b.ah&&(this.ah=b.ah);void 0!==b.Wb&&(this.Wb=b.Wb);void 0!==b.yf&&(this.yf=b.yf);void 0!==b.value&&(this.value=b.value);void 0!==b.gf&&(this.gf=b.gf)}d.prototype.clone=
function(){return new d(this)};q.Object.defineProperties(d.prototype,{m1:{configurable:!0,enumerable:!0,get:function(){return void 0!==this.parent||void 0!==this.Wb||void 0!==this.gf||void 0!==this.Pg||void 0!==this.yf||void 0!==this.ah?!1:!0}}});h.Rd=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.prototype.BA=function(b){if(this.Ej(b))return this.data[b]};d.prototype.Ws=function(b,a){this.data||(this.data={});this.data[b]=a};d.prototype.eqa=function(){this.data&&delete this.data._descendants_};d.prototype.Ej=function(b){return this.data&&this.data.hasOwnProperty(b)};d.prototype.tb=function(b){for(var a in b)null!=this[a]&&(this[a]=b[a])};h.cJ=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){var c=h.cJ.call(this)||this;c.uniqueName=b;c.caption=a;return c}u(d,h.cJ);d.prototype.toString=function(){return'{uniqueName: "'+this.uniqueName+'", caption: "'+this.caption+'"'};d.prototype.La=function(){var b={};b.uniqueName=this.uniqueName;b.caption=this.caption;return b};q.Object.defineProperties(d.prototype,{uniqueName:{configurable:!0,enumerable:!0,set:function(b){this.KJ=b},get:function(){return this.KJ}},caption:{configurable:!0,enumerable:!0,
set:function(b){f.v(b)&&(b="");b=""+b;""===b.trim()?this.qc=f.model.A.j.Mk:this.qc=b},get:function(){return f.model.Nb.valid(this.qc)?this.qc:f.model.Nb.validate(this.qc)}},label:{configurable:!0,enumerable:!0,get:function(){return this.Ej("_label")?this.BA("_label"):this.caption},set:function(b){""!=b.trim()&&this.Ws("_label",b)}},I0:{configurable:!0,enumerable:!0,get:function(){return this.Ej("_label")}}});h.Ip=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a,c){b=h.Ip.call(this,b,a)||this;b.z8=!1;b.FV=c;return b}u(d,h.Ip);q.Object.defineProperties(d.prototype,{FV:{configurable:!0,enumerable:!0,get:function(){return this.ara},set:function(b){this.ara=b}},active:{configurable:!0,enumerable:!0,get:function(){return this.z8},set:function(b){this.z8=b}}});h.PV=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){b=h.Ip.call(this,b,void 0===a?"":a)||this;b.hg=k.i.Gc.Eu;b.iQ=0;b.Os="";b.HP="";b.br="";b.FA=!0;b.oh=d.aI;b.vQ=null;b.Mf=[];b.Rk=new x.dP(!f.model.B.C.Jx);b.Zu=new x.dP(!f.model.B.C.Jx);b.$s=[];b.cq=[];b.JA=!1;b.nx={};b.vm=new f.nb;b.XX=!1;b.OP=!0;b.cQ=!1;b.dQ=!1;b.oQ=[];b.FP=[];b.tx=[];b.EA={};b.nQ={};b.kj=null;b.cache=[];b.pk=[];b.JE=[];return b}u(d,h.Ip);d.prototype.ph=function(b){b.hierarchy=this;this.FA||b.sb++;this.vm.Pa(b.uniqueName,b);
this.nx[b.uniqueName]=[]};d.prototype.Era=function(b){b.hierarchy=this;this.FA||b.sb++;this.vm.TJ(b.uniqueName,b,1);for(var a=2;a<this.vm.length;a++){var c=this.vm.ea(a);c&&c.sb++}this.nx[b.uniqueName]=[]};d.prototype.Gt=function(b){return this.vm.getItem(b)};d.prototype.$x=function(b){null!=b&&(b.Pg=!0,this.nx[b.level.uniqueName].push(b.ordinal))};d.prototype.q_=function(b){b.Pg=!1;this.nx[b.level.uniqueName].splice(b.ordinal,1);b=b.Wx;for(var a=0;a<b.length;a++){var c=this.va(b[a]);c.Pg&&this.q_(c)}};
d.prototype.JB=function(b){return this.nx[b.uniqueName]};d.prototype.Pra=function(b){var a=void 0===b.ordinal?this.Rk.add(b.uniqueName):this.Rk.add(b.uniqueName,b.ordinal);if(f.v(b.parent))if(f.v(b.ei))var c=this.yd;else c=this.Db(b.ei),null!==c?this.cq[a]=c.ordinal:c=this.yd;else c=b.parent,this.cq[a]=c.ordinal;void 0!==b.ec&&(this.$s[a]=b.ec);void 0!==b.caption&&b.caption!==b.uniqueName&&this.Zu.add(b.caption,a);c.V(a);this.TU(c);this.cache=[];this.pk=[];return a};d.prototype.bC=function(){return new h.Pq(this)};
d.prototype.fc=function(b){if(b.m1){var a=this.Pra(b);return this.va(a)}var c=this.bC();void 0!==b.parent&&(c.parent=b.parent);void 0===b.Wb&&void 0===c.parent&&(c.parent=f.ha(b.ei)?this.yd:this.Db(b.ei));c.parent&&(f.v(c.level)||c.level.sb<=c.parent.level.sb)&&(a=c.parent.level.sb+1,a=new h.$m(c.parent.level.uniqueName+" "+a,this.caption+" "+a,a),this.ph(a),this.$t=!0);void 0!==b.ordinal?(this.Rk.add(b.uniqueName,b.ordinal),c.ordinal=b.ordinal):(a=this.Rk.add(b.uniqueName),c.ordinal=a);void 0!==
b.ec&&(this.$s[c.ordinal]=b.ec,c.ec=b.ec);this.Mf[c.ordinal]=c;void 0!==b.caption&&this.Zu.add(b.caption,c.ordinal);null!=c.parent&&(c.parent.V(c),this.cq[c.ordinal]=c.parent.ordinal,this.TU(c.parent));f.v(b.ah)||(c.ah=b.ah);this.cache=[];this.pk=[];return c};d.prototype.TU=function(b){this.Mf[b.ordinal]=b};d.prototype.vga=function(b){null!=b&&void 0!==b.ordinal&&(void 0!==b.ec&&(this.$s[b.ordinal]=b.ec),void 0!==b.caption&&this.Zu.add(b.caption,b.ordinal),void 0!==b.uniqueName&&this.Rk.add(b.uniqueName,
b.ordinal))};d.prototype.UR=function(b){b=this.Zu.find(b);return-1===b?null:this.va(b)};d.prototype.Db=function(b){b=this.qy(""+b);return-1<b?this.va(b):null};d.prototype.qy=function(b){var a=this.Rk.find(b);-1===a&&this.qg&&(a=this.Rk.find("["+b+"]"));return a};d.prototype.va=function(b){if(void 0===this.Mf[b]){var a=this.bC();a.ordinal=b;a.ec=this.$s[b];a.parent=this.cq[b]?this.va(this.cq[b]):this.yd;return a}return this.Mf[b]};d.prototype.qL=function(b){return this.$s[b]};d.prototype.Ht=function(b){if(f.model.B.C.zr&&
(null===b||"null"===b))return b=this.qy("null"),0<=b?this.va(b):null;"number"!==typeof b&&(b=parseFloat(b));if(isNaN(b))for(var a=1;a<this.$s.length;a++)if(isNaN(this.$s[a]))return this.va(a);b=this.$s.indexOf(b);return 0<=b?this.va(b):null};d.prototype.Fr=function(b){for(var a=[],c,e=0;e<b.length;e++)c=this.va(b[e]),f.v(c)||f.ha(c.Xi)||a.push(c.Xi);return a};d.prototype.o0=function(b){return this.Rk.get(b)};d.prototype.aC=function(b){var a=this.Zu.get(b);void 0===a&&(a=this.Rk.get(b));f.model.Nb.valid(a)||
(a=f.model.Nb.validate(a));return a};d.prototype.jga=function(b){var a=this.type!==k.i.Gc.Oa||this.ra.ea(1).type!==k.i.eb.Oa&&this.ra.ea(1).type!==k.i.eb.Dc?this.ra.ea(1).type===k.i.eb.Yb?this.DHa(b):this.qy(b):this.CHa(b);-1===a&&!f.v(b)&&0<b.indexOf(".")&&(b=b.substring(b.lastIndexOf(".")+1),a=this.qy(b));return a};d.prototype.CHa=function(b){if(f.model.B.C.zr&&"null"===b)b=null;else if(8>b.length||/\D+/.test(b.slice(1))){var a=this.ra.ea(1).type===k.i.eb.Dc?f.model.B.C.Yk:f.model.B.C.mq;a=this.mapping.Fa(this.uniqueName,
"format",a);b=new f.Gg(b,{yx:!1,format:a});b.dj(x.gh.Sf(a));b=b.getTime()}else b=parseInt(b);b=this.Ht(b);return null===b?-1:b.ordinal};d.prototype.DHa=function(b){if(f.model.B.C.zr&&"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"),e=parseInt(c[0]);isNaN(e)||(a+=86400*e);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.Ht(a);return null===b?-1:b.ordinal};d.prototype.rZ=function(){this.Zf=d.aI;this.IJ=null};d.prototype.sZ=function(){this.cache=[]};d.prototype.sort=function(){return this.uj(this.yd)};d.prototype.uj=function(b,a,c){a=void 0===a?!0:a;c=void 0===c?"":c;if(null==b)return[];k.i.xa.Cg(c)||(c=this.oh);if(a){if(null!=this.pk[b.ordinal]){if(null!=this.pk[b.ordinal][c])return this.pk[b.ordinal][c];if(!this.qg){if(c==k.i.xa.Ec&&null!=this.pk[b.ordinal][k.i.xa.bc])return a=
this.pk[b.ordinal][k.i.xa.bc].slice(),this.pk[b.ordinal][k.i.xa.Ec]=a.reverse(),this.pk[b.ordinal][k.i.xa.Ec];if(c==k.i.xa.bc&&null!=this.pk[b.ordinal][k.i.xa.Ec])return a=this.pk[b.ordinal][k.i.xa.Ec].slice(),this.pk[b.ordinal][k.i.xa.bc]=a.reverse(),this.pk[b.ordinal][k.i.xa.bc]}}}else if(null!=this.cache[b.ordinal]){if(null!=this.cache[b.ordinal][c])return this.cache[b.ordinal][c];if(!this.qg){if(c==k.i.xa.Ec&&null!=this.cache[b.ordinal][k.i.xa.bc])return a=this.cache[b.ordinal][k.i.xa.bc].slice(),
this.cache[b.ordinal][k.i.xa.Ec]=a.reverse(),this.cache[b.ordinal][k.i.xa.Ec];if(c==k.i.xa.bc&&null!=this.cache[b.ordinal][k.i.xa.Ec])return a=this.cache[b.ordinal][k.i.xa.Ec].slice(),this.cache[b.ordinal][k.i.xa.bc]=a.reverse(),this.cache[b.ordinal][k.i.xa.bc]}}var e=this.oh;this.oh=c;if(this.oh==k.i.xa.Zc){var g=a?b.Wx:b.children;g=g.slice();0<g.length&&this.va(g[0]).Wb&&g.splice(0,1)}else g=this.nV(b,a);a?(null==this.pk[b.ordinal]&&(this.pk[b.ordinal]=[]),this.pk[b.ordinal][c]=g):(null==this.cache[b.ordinal]&&
(this.cache[b.ordinal]=[]),this.cache[b.ordinal][c]=g);this.oh=e;return g};d.prototype.yqa=function(b){for(var a=[[]],c,e=0;e<b.length;e++)0!==b[e]&&(c=this.cq[b[e]],void 0===c?a[0].push(b[e]):(void 0===a[c]&&(a[c]=[]),a[c].push(b[e])));return a};d.prototype.Vqa=function(b,a){if(f.v(this.IJ)||void 0===this.IJ[b.ordinal]||b.children.length!=this.IJ[b.ordinal].length){var c=this.Rk.sort();this.IJ=this.yqa(c)}b=this.IJ[b.ordinal];c=[];for(var e=0;e<b.length;e++){var g=this.va(b[e]);c.push(g.ordinal);
a&&!g.Bi&&(g=this.uj(g),0<g.length&&(c=c.concat(g)))}return c};d.prototype.hta=function(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.va(b.children[a]).caption.split(" ")[0];if(-1===f.model.A.j.Vq.indexOf(c)&&-1===f.model.A.j.Zw.indexOf(c))return!1}var e=b.hierarchy.ra.indexOf(b.level.uniqueName);if(b.hierarchy.ra.length<e+2)return!1;b.hierarchy.ra.ea(e+1).type=k.i.eb.Hg;return!0}catch(g){}return!1};d.prototype.nV=
function(b,a){var c=this,e=this.ra.ea(b.level.sb+1),g=e&&e.type===k.i.eb.Qk,l=e&&e.type===k.i.eb.xW,m=e&&e.type===k.i.eb.Cs,n=e&&e.type===k.i.eb.Hg,p=e&&e.type===k.i.eb.eJ,t=e&&(e.type===k.i.eb.hm||e.type===k.i.eb.om),r=e&&e.type===k.i.eb.nO,v=e&&e.type===k.i.eb.HO,z=e&&e.type===k.i.eb.fb,B=e&&e.type===k.i.eb.Yb||e&&e.type===k.i.eb.Oa,C=e&&e.type===k.i.eb.Dc,E=this.j4===k.i.xa.Gna;if(!(m||n||p||B||t||r||v||z||C||0!==this.Oo.length||f.pg(this.Ly))){if(1E3<b.children.length)return this.Vqa(b,a);this.hta(b)&&
(n=!0)}var K=this.Mha(b.children);f.pg(this.Ly)?K=this.qha(K):m||n||p||t||r||v||C||l||g?K=this.eJa(K,e?e.type:-1):B?0<this.Oo.length?K.sort(function(J,aa){return c.rva(J,aa)}):K=this.bJa(K):0<this.Oo.length?K.sort(function(J,aa){return c.qva(J,aa)}):z?(this.oh===k.i.xa.bc&&f.Ha.sort(K,f.Ha.mi,function(J){return J.ec}),this.oh===k.i.xa.Ec&&f.Ha.sort(K,f.Ha.ko|f.Ha.mi,function(J){return J.ec})):E?K.sort(this.RCa):(this.oh===k.i.xa.bc&&f.Ha.sort(K,f.Ha.Pw,function(J){return J.caption}),this.oh===k.i.xa.Ec&&
f.Ha.sort(K,f.Ha.ko|f.Ha.Pw,function(J){return J.caption}));e=[];l=K.length;for(m=0;m<l;m++)e.push(K[m].ordinal),a&&!b.Bi&&(g=this.uj(K[m],a),0<g.length&&(e=e.concat(g)));return e};d.prototype.Mha=function(b){for(var a=[],c=0;c<b.length;c++)a.push(this.va(b[c]));return a};d.prototype.eJa=function(b,a){a===k.i.eb.Hg?b=this.dJa(b):a===k.i.eb.hm||a===k.i.eb.om?b=this.fJa(b):a===k.i.eb.Cs||a===k.i.eb.xW||a===k.i.eb.Qk?(this.Zf===k.i.xa.bc&&f.Ha.sort(b,f.Ha.Pw,function(c){return c.caption}),this.Zf===
k.i.xa.Ec&&f.Ha.sort(b,f.Ha.ko|f.Ha.Pw,function(c){return c.caption})):(this.Zf===k.i.xa.bc&&f.Ha.sort(b,f.Ha.mi,function(c){return c.ec}),this.Zf===k.i.xa.Ec&&f.Ha.sort(b,f.Ha.ko|f.Ha.mi,function(c){return c.ec}));return b};d.prototype.dJa=function(b){for(var a=this,c=[],e=[],g=0;g<b.length;++g)this.bqa(b[g].caption)?e.push(b[g]):c.push(b[g]);this.Zf===k.i.xa.bc&&f.Ha.sort(c,f.Ha.Pw,function(l){return l.caption});this.Zf===k.i.xa.Ec&&f.Ha.sort(c,f.Ha.ko|f.Ha.Pw,function(l){return l.caption});e.sort(function(l,
m){return a.Ava(l,m)});return e.concat(c)};d.prototype.fJa=function(b){for(var a=this,c=[],e=[],g=0;g<b.length;++g)this.cqa(b[g].caption)?e.push(b[g]):c.push(b[g]);this.Zf===k.i.xa.bc&&f.Ha.sort(c,f.Ha.Pw|f.Ha.mi,function(l){return l.caption});this.Zf===k.i.xa.Ec&&f.Ha.sort(c,f.Ha.ko|f.Ha.Pw|f.Ha.mi,function(l){return l.caption});e.sort(function(l,m){return a.fKa(l,m)});return e.concat(c)};d.prototype.bqa=function(b){return-1!==f.model.A.j.Vq.indexOf(b)||-1!==f.model.A.j.Zw.indexOf(b)};d.prototype.cqa=
function(b){return-1!==f.model.A.j.oA.indexOf(b)||-1!==f.model.A.j.pA.indexOf(b)};d.prototype.Ava=function(b,a){var c=this.Zf===k.i.xa.bc?f.model.A.j.Vq.indexOf(b.caption):f.model.A.j.Vq.indexOf(a.caption);-1===c&&(c=this.Zf==k.i.xa.bc?f.model.A.j.Zw.indexOf(b.caption):f.model.A.j.Zw.indexOf(a.caption));var e=this.Zf===k.i.xa.bc?f.model.A.j.Vq.indexOf(a.caption):f.model.A.j.Vq.indexOf(b.caption);-1===e&&(e=this.Zf===k.i.xa.bc?f.model.A.j.Zw.indexOf(a.caption):f.model.A.j.Zw.indexOf(b.caption));return c>
e?1:c<e?-1:0};d.prototype.fKa=function(b,a){var c=this.Zf===k.i.xa.bc?f.model.A.j.oA.indexOf(b.caption):f.model.A.j.oA.indexOf(a.caption);-1===c&&(c=this.Zf===k.i.xa.bc?f.model.A.j.pA.indexOf(b.caption):f.model.A.j.pA.indexOf(a.caption));var e=this.Zf===k.i.xa.bc?f.model.A.j.oA.indexOf(a.caption):f.model.A.j.oA.indexOf(b.caption);-1===e&&(e=this.Zf===k.i.xa.bc?f.model.A.j.pA.indexOf(a.caption):f.model.A.j.pA.indexOf(b.caption));return c>e?1:c<e?-1:0};d.prototype.bJa=function(b){this.oh===k.i.xa.bc&&
f.Ha.sort(b,f.Ha.mi,function(a){return a.ec});this.oh===k.i.xa.Ec&&f.Ha.sort(b,f.Ha.mi|f.Ha.ko,function(a){return a.ec});return b};d.prototype.uS=function(b){return f.model.B.C.Jx?this.Oo.indexOf(b):this.Oo.indexOf(b.toLocaleLowerCase())};d.prototype.qva=function(b,a){var c=this.oh===k.i.xa.bc?this.uS(b.caption):this.uS(a.caption);b=this.oh===k.i.xa.bc?this.uS(a.caption):this.uS(b.caption);return c>b?1:c<b?-1:0};d.prototype.rva=function(b,a){var c=this.oh===k.i.xa.bc?this.Oo.indexOf(b.ec.toString()):
this.Oo.indexOf(a.ec.toString());b=this.oh===k.i.xa.bc?this.Oo.indexOf(a.ec.toString()):this.Oo.indexOf(b.ec.toString());return c>b?1:c<b?-1:0};d.prototype.qha=function(b){var a=this;if(f.pg(this.Ly)){var c=this.oh===k.i.xa.Ec?-1:1;b.sort(function(e,g){return a.Ly(e.caption,g.caption)*c})}return b};d.prototype.RCa=function(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};d.prototype.du=function(b){b=this.vm.getItem(b).sb;for(var a=[],c=this.sort(),e=0;e<c.length;e++){var g=this.va(c[e]);g&&g.level.sb===b&&a.push(c[e])}return a};d.prototype.nt=function(){this.filter.clear();this.cb=[]};d.prototype.pB=function(){this.filter.pB();this.cb=[]};d.prototype.Nwa=function(){for(var b=[],a=this.cb,c=0;c<a.length;c++){var e=this.va(a[c]);1===e.level.sb&&b.push(e.ordinal)}return b};d.prototype.Kl=function(b){return void 0===b?"(Total)":b};d.prototype.Iv=
function(){this.u$(this.Gfa);this.filter.Iv()};d.prototype.X$=function(){if(0<this.tx.length){for(var b=0;b<this.tx.length;b++){var a=this.va(parseInt(this.tx[b]));null==a||a.Pg||this.$x(a)}this.tx=[]}};d.prototype.u$=function(b){if(this.groups)for(var a in this.groups)this.oN(a);for(a in b)this.c$(a,b[a])};d.prototype.oN=function(b){var a=this.Db(this.Kl("Others"));if((b="string"==typeof b?this.Db(this.Kl(b)):b)&&a){var c,e=b.children;for(c=0;c<e.length;c++){var g=this.va(e[c]);a.V(g);this.cq[g.ordinal]=
a.ordinal}this.yd.removeChild(b.ordinal);this.Mf[b.ordinal]=null;delete this.EA[b.caption];if(1==this.du(this.kC.uniqueName).length){e=a.children;for(c=0;c<e.length;c++)g=this.va(e[c]),this.yd.V(g),this.cq[g.ordinal]=this.yd.ordinal;this.yd.removeChild(a.ordinal);this.Mf[a.ordinal]=null;this.vm=this.vm.splice(1,1);for(c=1;c<this.vm.length;c++)this.vm.ea(c).sb--}this.cache=[];this.pk=[]}};d.prototype.c$=function(b,a){null!=this.groups[b]&&this.oN(b);if(null==this.kC){var c=new h.$m(this.caption+".groups",
"Groups",1);c.ah=!0;this.Era(c);var e=this.yd.children.slice(0),g=this.fc(new h.Rd({uniqueName:"others",caption:"Others"}));for(c=0;c<e.length;c++){var l=this.va(e[c]);this.yd.removeChild(l.ordinal);g.V(l.ordinal);l.parent=g;this.cq[l.ordinal]=g.ordinal}}else this.ra.ea(1);e=this.fc(new h.Rd({uniqueName:b,ah:!0}));this.EA[b]=[];for(c=0;c<this.Rk.length;c++)g=this.va(c),g.hierarchy=this,!g.Wb&&-1<a.indexOf(g.ordinal)&&(g.ah?this.oN(g):(g.parent&&g.parent.removeChild(g.ordinal),e.V(g),this.EA[b].push(g.ordinal),
this.cq[g.ordinal]=e.ordinal));for(var m in this.groups)this.groups.hasOwnProperty(m)||(g=this.Db(this.Kl(m)))&&0==g.children.length&&this.oN(g);this.$x(e);this.cache=[];this.pk=[]};d.prototype.La=function(){var b={};b.uniqueName=this.uniqueName;b.dimensionName=this.wi.uniqueName;b.activeLevelName=this.ig;b.caption=this.caption;b.filterEnabled=this.F_;b.sortName=this.Zf;b.sortAs=this.j4;b.type=this.type;b.groups=this.groups;b.customSorting=this.Oo;this.filter.$g&&!this.filter.Ida&&(b.filter=this.filter.La());
void 0!==this.Yf&&(b.showTotals=this.Yf);return b};d.prototype.Ji=function(){var b={};b.caption=this.caption;b.dimensionCaption=this.wi.caption;b.dimensionUniqueName=this.wi.uniqueName;b.folder=this.Qc;b.label=this.label;if(2<this.ra.length){b.levels=[];for(var a=1;a<this.ra.length;a++)b.levels.push(this.ra.ea(a).La())}b.sort=this.oh;b.uniqueName=this.uniqueName;return b};d.tb=function(b,a){a=void 0===a?null:a;var c=b.uniqueName;c=k.me.zg(c,b.caption);null==a&&(a=new k.local.I.Yz(c));b.hasOwnProperty("caption")&&
(a.caption=b.caption);b.hasOwnProperty("groups")&&d.$za(b.groups,a);b.hasOwnProperty("sortName")&&(a.Zf=b.sortName);b.hasOwnProperty("sortAs")&&(a.j4=b.sortAs);b.hasOwnProperty("filterEnabled")&&(a.F_=b.filterEnabled);b.hasOwnProperty("type")&&(a.type=b.type);b.hasOwnProperty("origin")&&(a.origin=b.origin);b.hasOwnProperty("folder")&&(a.Qc=b.folder);b.hasOwnProperty("filter")&&(a.filter=f.model.bb.Tz.tb(b.filter,a,!0));b.hasOwnProperty("defaultMemberName")&&(a.xt=b.defaultMemberName);b.hasOwnProperty("allMemberName")&&
(a.tn=b.allMemberName);b.hasOwnProperty("activeLevelName")&&(a.ig=b.activeLevelName);b.hasOwnProperty("predefinedProperties")&&(a.GGa=b.predefinedProperties);b.hasOwnProperty("customSorting")&&d.xaa(b.customSorting,a);b.hasOwnProperty("sortOrder")&&d.xaa(b.sortOrder,a);b.hasOwnProperty("showTotals")&&(a.Yf=!0===b.showTotals);return a};d.$za=function(b,a){var c={},e;for(e in b){var g=b[e];c[e]=[];for(var l=0;l<g.length;l++){var m=k.me.Or(g[l]);(m=a.Db(m))&&c[e].push(m.ordinal)}}a.ce?a.u$(c):a.Gfa=
c};d.xaa=function(b,a){a.Oo=[];for(var c=0;c<b.length;c++)a.Oo.push(k.me.Or(b[c]))};d.prototype.clone=function(){var b=new d(this.uniqueName);b.data=this.data;b.KJ=this.KJ;b.CX=this.CX;b.hg=this.hg;b.iQ=this.iQ;b.Os=this.Os;b.HP=this.HP;b.br=this.br;b.FA=this.FA;b.oh=this.oh;b.vQ=this.vQ;f.v(this.dv)||(b.dv=this.dv.clone());b.Mf=this.Mf.slice();b.Rk=this.Rk.clone();b.Zu=this.Zu.clone();b.$s=this.$s.slice();b.cq=this.cq.slice();var a={},c;for(c in this.nx)a[c]=this.nx[c].slice();b.nx=a;b.vm=this.vm.slice();
b.XX=this.XX;b.OP=this.OP;b.ce=this.ce;b.cQ=this.cQ;b.dQ=this.dQ;b.oQ=this.oQ.slice();b.FP=this.FP.slice();b.tx=this.tx.slice();b.hJ=this.hJ;b.EA=this.EA;b.nQ=this.nQ;b.tY=this.tY;return b};d.prototype.getTimezoneOffset=function(){return null};q.Object.defineProperties(d.prototype,{wi:{configurable:!0,enumerable:!0,set:function(b){this.CX=b},get:function(){return this.CX}},type:{configurable:!0,enumerable:!0,get:function(){return this.hg},set:function(b){this.hg=b}},origin:{configurable:!0,enumerable:!0,
get:function(){return this.iQ},set:function(b){this.iQ=b;this.XX=1==(b&1)}},Un:{configurable:!0,enumerable:!0,get:function(){return this.Rk.length},set:function(){}},vi:{configurable:!0,enumerable:!0,get:function(){return this.Rk.length}},ce:{configurable:!0,enumerable:!0,get:function(){return this.JA},set:function(b){this.JA=b}},Qc:{configurable:!0,enumerable:!0,get:function(){return this.Os},set:function(b){"undefined"==b?this.Os="":this.Os=b}},Fh:{configurable:!0,enumerable:!0,get:function(){return this.FA},
set:function(){}},mapping:{configurable:!0,enumerable:!0,get:function(){return k.Na.U().fa.mapping}},ra:{configurable:!0,enumerable:!0,get:function(){return this.vm},set:function(){}},Yf:{configurable:!0,enumerable:!0,get:function(){return this.tY},set:function(b){this.tY=b}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}},WL:{configurable:!0,enumerable:!0,get:function(){var b=2<this.ra.length&&this.type!==k.i.Gc.Oa?this.ra.ea(1).uniqueName:this.wi.type===
k.i.Lz.Zz?this.wi.uniqueName:this.uniqueName;return f.model.Ta.U().ga.fa.mapping.Fa(b,"filters")}},qg:{configurable:!0,enumerable:!0,get:function(){return this.$t||(this.Fh?2<this.ra.length:1<this.ra.length)},set:function(){}},Qe:{configurable:!0,enumerable:!0,get:function(){return"[Measures]"==this.uniqueName},set:function(){}},$t:{configurable:!0,enumerable:!0,get:function(){return this.cQ},set:function(b){this.cQ=b}},sT:{configurable:!0,enumerable:!0,get:function(){return this.dQ},set:function(b){this.dQ=
b}},F_:{configurable:!0,enumerable:!0,get:function(){return this.OP},set:function(b){this.OP=b}},rwa:{configurable:!0,enumerable:!0,get:function(){for(var b=1;b<this.ra.length;b++){var a=this.ra.ea(b);if(!(this.nc&&a.sb<this.nc.sb)&&0===this.JB(a).length)return b}return 1},set:function(){}},Zf:{configurable:!0,enumerable:!0,get:function(){return this.oh},set:function(b){this.oh=b}},j4:{configurable:!0,enumerable:!0,get:function(){return this.vQ},set:function(b){this.vQ=b}},filter:{configurable:!0,
enumerable:!0,get:function(){f.v(this.dv)&&(this.dv=new f.model.bb.Tz(this));return this.dv},set:function(b){this.dv=b;this.JE=[]}},cb:{configurable:!0,enumerable:!0,get:function(){return 0<this.JE.length?this.JE:this.JE=this.filter.uy||this.filter.$v||this.filter.IL||this.filter.SS?this.filter.Swa():this.filter.pj()},set:function(b){this.JE=b}},tn:{configurable:!0,enumerable:!0,set:function(b){""!==b&&!f.v(b)||this.Qe?this.br=b:(this.br=this.uniqueName+".[(All)]",this.ph(new h.$m(this.uniqueName,
this.caption+" (All)")),this.fc(new h.Rd({uniqueName:this.caption+" (All)",Wb:!0})),this.FA=!1)},get:function(){return this.br}},yd:{configurable:!0,enumerable:!0,get:function(){this.sX||(this.sX=this.Db(this.br),this.$x(this.sX));return this.sX},set:function(){}},xt:{configurable:!0,enumerable:!0,get:function(){return this.HP},set:function(b){this.HP=b}},Gfa:{configurable:!0,enumerable:!0,set:function(b){this.nQ=b},get:function(){return this.nQ}},GGa:{configurable:!0,enumerable:!0,set:function(b){this.oQ=
b},get:function(){return this.oQ}},Oo:{configurable:!0,enumerable:!0,set:function(b){this.sZ();this.FP=b},get:function(){return this.FP}},vw:{configurable:!0,enumerable:!0,set:function(b){this.tx=b},get:function(){return this.tx}},groups:{configurable:!0,enumerable:!0,set:function(b){this.EA=b},get:function(){return this.EA}},kC:{configurable:!0,enumerable:!0,get:function(){for(var b=0;b<this.ra.length;b++)if(this.ra.ea(b).ah)return this.ra.ea(b);return null},set:function(){}},z1:{configurable:!0,
enumerable:!0,get:function(){for(var b=new f.nb,a=0;a<this.vm.length;a++){var c=this.vm.ea(a).gf;b=b.concat(c)}return b},set:function(){}},ig:{configurable:!0,enumerable:!0,set:function(b){this.hJ=b},get:function(){return this.hJ}},nc:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null!=this.hJ?this.Gt(this.hJ):null}},Ly:{configurable:!0,enumerable:!0,get:function(){return this.Hqa},set:function(b){this.sZ();this.Hqa=b}},D0:{configurable:!0,enumerable:!0,get:function(){return f.pg(this.Ly)||
0<this.Oo.length}},pr:{configurable:!0,enumerable:!0,get:function(){for(var b=[],a=0;a<this.vi;a++)b.push(a);return b}}});d.aI="asc";h.nf=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a,c){c=void 0===c?0:c;b=h.Ip.call(this,b,void 0===a?"":a)||this;b.hg=k.i.eb.Sc;b.D9=new f.nb;b.kj=null;b.fY=c;return b}u(d,h.Ip);d.prototype.PY=function(b){this.D9.Pa(b.uniqueName,b)};q.Object.defineProperties(d.prototype,{sb:{configurable:!0,enumerable:!0,set:function(b){this.fY=b},get:function(){return this.fY}},type:{configurable:!0,enumerable:!0,set:function(b){this.hg=b},get:function(){return this.hg}},ah:{configurable:!0,enumerable:!0,set:function(b){this.Aqa=
b},get:function(){return this.Aqa}},cw:{configurable:!0,enumerable:!0,get:function(){return this.xc.ra.length-1==this.fY},set:function(){}},hierarchy:{configurable:!0,enumerable:!0,set:function(b){this.xc=b},get:function(){return this.xc}},gf:{configurable:!0,enumerable:!0,get:function(){return this.D9},set:function(){}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}}});h.$m=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){var a=h.cJ.call(this)||this;a.gY=1;a.u9=0;a.hQ=-1;a.xc=b;return a}u(d,h.cJ);d.prototype.cC=function(){return this.xc.o0(this.ordinal)};d.prototype.pZ=function(){this.Ej("_descendants_")&&this.eqa();this.parent&&this.parent.pZ()};d.prototype.V=function(b){var a=this.children;b.constructor===Number?a.push(b):a.push(b.ordinal);this.Ws("_children_",a);b.constructor!==Number&&(b.parent=this);this.hQ=-1;this.pZ()};d.prototype.removeChild=function(b){var a=
this.children.indexOf(b);-1<a&&this.children.splice(a,1);this.Ws("_children_",this.children);this.hierarchy.va(b).parent=null;this.pZ()};d.prototype.toString=function(){return this.uniqueName+" : "+this.gY};d.prototype.setProperty=function(b,a){this.gf.Pa(b,a)};d.prototype.yza=function(b){return this.gf.getItem(b)};d.prototype.Ws=function(b,a){h.cJ.prototype.Ws.call(this,b,a);this.m1||f.v(this.hierarchy)||this.hierarchy.TU(this)};d.prototype.La=function(){var b={};b.uniqueName=this.uniqueName;b.caption=
this.caption;b.dimensionName=this.hierarchy.wi.uniqueName;b.hierarchyName=this.hierarchy.uniqueName;b.hierarchyCaption=this.hierarchy.caption;this.parent&&(b.parentMember=this.parent.uniqueName);0<this.gf.length&&(b.properties=this.gf.La());return b};d.prototype.VF=function(b){return f.v(b)?!1:f.model.B.C.Jx?this.uniqueName==b:this.uniqueName.toLocaleLowerCase()==b.toLocaleLowerCase()};q.Object.defineProperties(d.prototype,{ordinal:{configurable:!0,enumerable:!0,get:function(){return this.gY},set:function(b){this.gY=
b}},ec:{configurable:!0,enumerable:!0,get:function(){return this.u9},set:function(b){this.u9=b}},hierarchy:{configurable:!0,enumerable:!0,get:function(){return this.xc},set:function(){}},parent:{configurable:!0,enumerable:!0,get:function(){return this.Rqa},set:function(b){this.Rqa=b}},root:{configurable:!0,enumerable:!0,get:function(){if(2>this.level.sb)return this;var b=this;do b=b.parent;while(1<b.level.sb);return b},set:function(){}},caption:{configurable:!0,enumerable:!0,set:function(){},get:function(){var b=
this.xc.aC(this.ordinal);if(this.level.type===k.i.eb.Oa||this.level.type===k.i.eb.gj||this.level.type===k.i.eb.Dc||this.level.type===k.i.eb.Yb){var a=this.xc.qL(this.ordinal);f.v(a)?b=f.model.A.j.XV:this.level.type===k.i.eb.Oa||this.level.type===k.i.eb.gj?(b=this.hierarchy.Yk||this.hierarchy.mapping.Fa(this.hierarchy.uniqueName,"format",f.model.B.C.mq),b=f.O.Gw(a,b,f.model.B.C.Mj)):this.level.type===k.i.eb.Dc?(b=this.hierarchy.Yk||this.hierarchy.mapping.Fa(this.hierarchy.uniqueName,"format",f.model.B.C.Yk),
b=f.O.jN(a,b,f.model.B.C.Mj)):this.level.type===k.i.eb.Yb&&(b=this.hierarchy.Yk||this.hierarchy.mapping.Fa(this.hierarchy.uniqueName,"format",f.model.B.C.Cp),b=f.O.Hw(a,b))}return b}},uniqueName:{configurable:!0,enumerable:!0,get:function(){return this.cC()},set:function(){}},Xi:{configurable:!0,enumerable:!0,get:function(){var b=this.xc.qg?2>this.level.sb?"["+this.cC()+"]":this.cC():"["+this.cC()+"]";return f.model.B.C.Jx?this.hierarchy.uniqueName+"."+b:(this.hierarchy.uniqueName+"."+b).toLocaleLowerCase()}},
level:{configurable:!0,enumerable:!0,get:function(){return f.v(this.parent)?this.hierarchy.ra.ea(0):this.hierarchy.ra.ea(this.parent.level.sb+1)},set:function(){}},Wb:{configurable:!0,enumerable:!0,get:function(){return null!=this.hierarchy.yd&&this.hierarchy.yd.ordinal==this.ordinal},set:function(){}},Pg:{configurable:!0,enumerable:!0,set:function(b){this.Ws("_isDrilledDown_",b)},get:function(){return this.Ej("_isDrilledDown_")?this.BA("_isDrilledDown_"):!1}},ah:{configurable:!0,enumerable:!0,set:function(b){this.Ws("_isGroup_",
b)},get:function(){return this.Ej("_isGroup_")?this.BA("_isGroup_"):!1}},children:{configurable:!0,enumerable:!0,get:function(){return this.Ej("_children_")?this.BA("_children_"):[]},set:function(){}},Wx:{configurable:!0,enumerable:!0,set:function(){},get:function(){if(this.Ej("_descendants_"))return this.BA("_descendants_");var b=[];b.push(this.ordinal);if(0==this.V1)return b;for(var a=this.children.length,c,e=0;e<a;e++)c=this.hierarchy.va(this.children[e]),c.Bi?b.push(c.ordinal):0<c.V1?b=b.concat(c.Wx):
b.push(c.ordinal);0<b.length&&this.Ws("_descendants_",b);return b}},V1:{configurable:!0,enumerable:!0,set:function(){},get:function(){if(-1<this.hQ)return this.hQ;if(!this.Ej("_children_"))return this.hQ=0;for(var b=this.children.length,a=b,c=0;c<b;c++){var e=this.hierarchy.va(this.children[c]);a+=e.V1}return a}},gf:{configurable:!0,enumerable:!0,set:function(b){this.Ws("_properties_",b)},get:function(){this.Ej("_properties_")||(this.gf=new f.nb);return this.BA("_properties_")}},Bi:{configurable:!0,
enumerable:!0,get:function(){return!this.Ej("_children_")||0==this.children.length},set:function(){}},yf:{configurable:!0,enumerable:!0,get:function(){return this.Ej("_hasMissingChildren_")?this.BA("_hasMissingChildren_"):!1},set:function(b){this.Ws("_hasMissingChildren_",b)}},Yra:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.hierarchy.$t?this.uniqueName:this.uniqueName+".[(Total"+(0==this.ordinal?"":this.ordinal)+")]"}},m1:{configurable:!0,enumerable:!0,get:function(){if(this.Ej("_children_")||
this.Ej("_descendants_")||this.Ej("_caption_")||this.Ej("_isDrilledDown_")||this.Ej("_hasMissingChildren_")||this.Ej("_properties_")||this.Ej("_isGroup_"))return!1}}});h.Pq=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){b=h.Ip.call(this,b,void 0===a?"":a)||this;b.VP="";b.Os="";b.Zb="";b.hg=k.i.Ja.fb;b.fv="";b.zE="";b.Cj="";b.Fb=[];b.RP="";b.XP=!1;b.WP=!1;b.PE="";b.i9=-1;b.aQ=!1;b.bQ=!1;b.uP=!0;b.kv=null;b.kj=null;b.qm=[];return b}u(d,h.Ip);d.h0=function(b,a){switch(b){case k.i.ca.Up:return f.O.bind(f.model.A.j.Noa,a);case k.i.ca.sc:return f.O.bind(f.model.A.j.Ija,a);case k.i.ca.Bs:return f.O.bind(f.model.A.j.doa,a);case k.i.ca.hj:return f.O.bind(f.model.A.j.hka,
a);case k.i.ca.Hp:return f.O.bind(f.model.A.j.Mia,a);case k.i.ca.Mu:return f.O.bind(f.model.A.j.Sma,a);case k.i.ca.Su:return f.O.bind(f.model.A.j.Joa,a);case k.i.ca.Tu:return f.O.bind(f.model.A.j.Loa,a);case k.i.ca.MAX:return f.O.bind(f.model.A.j.xma,a);case k.i.ca.MIN:return f.O.bind(f.model.A.j.tna,a);case k.i.ca.Wq:return f.O.bind(f.model.A.j.Wna,a);case k.i.ca.ro:return f.O.bind(f.model.A.j.Rna,a);case k.i.ca.Tp:return f.O.bind(f.model.A.j.boa,a);case k.i.ca.Rp:return f.O.bind(f.model.A.j.Yna,
a);case k.i.ca.Sp:return f.O.bind(f.model.A.j.$na,a);case k.i.ca.li:return f.O.bind(f.model.A.j.Wla,a);case k.i.ca.nm:return f.O.bind(f.model.A.j.qoa,a);case k.i.ca.ln:return f.O.bind(f.model.A.j.soa,a);case k.i.ca.dn:return f.O.bind(f.model.A.j.dka,a);case k.i.ca.im:return f.O.bind(f.model.A.j.fka,a);case k.i.ca.jn:return f.O.bind(f.model.A.j.Tna,a);case k.i.ca.km:return f.O.bind(f.model.A.j.Vna,a)}return a};d.prototype.OU=function(){this.fv=void 0;this.Cj=this.Tc[0]};d.prototype.La=function(){var b=
{};b.uniqueName=this.uniqueName;b.name=this.Yl;this.Ka&&(b.formula=this.qe.trim());b.format=this.format;b.individual=this.gl;b.supportedAggregations=this.bm;b.availableAggregations=this.Tc;b.aggregation=this.$;b.caption=this.caption;b.label=this.label;b.originalCaption=this.Yl;b.grandTotalCaption=this.Ir;b.groupName=this.yg;b.folder=this.Qc;b.type=this.type;b.kpi=this.Lr;b.calculated=this.Ka;b.calculateNaN=this.Eo;b.hidden=this.hidden;return b};d.prototype.F0=function(){var b=new d("","");return this.gl!==
b.gl||this.qe!==b.qe||this.format!==b.format||!1===this.Nm||""!==this.$&&(this.Ir!==d.h0(this.$,this.qc)&&f.model.B.C.iz||!f.model.B.C.iz&&this.Ir!==this.caption)?!1:!0};d.prototype.Dh=function(b,a,c){c=void 0===c?!1:c;var e=f.model.Zb.Ni.Dh(b,a);f.model.Zb.Ni.kxa(b,a)||(e=f.model.Zb.Ni.Dh(b,""));c&&f.v(e.Sd.textAlign)&&this.type!=k.i.Ja.fb&&this.type!=k.i.Ja.Yb&&this.type!=k.i.Ja.Dc&&(e=e.clone(),e.textAlign=f.model.Zb.W.pf.textAlign.LEFT);return e};d.prototype.clone=function(){var b=new d(this.uniqueName);
this.xK(b);return b};d.prototype.xK=function(b){b.data=this.data;b.qc=this.qc;b.VP=this.VP;b.Os=this.Os;b.Zb=this.Zb;b.hg=this.hg;void 0!=this.fv&&(b.fv=this.fv);b.Cj=this.Cj;b.qm=this.qm.slice();b.Fb=this.Fb.slice();b.RP=this.RP;b.XP=this.XP;b.WP=this.WP;b.PE=this.PE;b.aQ=this.aQ;b.bQ=this.bQ;b.uP=this.uP;b.kj=this.kj};d.prototype.dw=function(){return 0<this.Tc.length||this.Ka||this.Bg};d.prototype.Ji=function(){var b={};b.aggregation=this.$;b.availableAggregations=this.Tc;b.availableAggregationsCaptions=
k.i.ca.UY(this.Tc);b.caption=this.caption;if(b.calculated=this.Ka)b.calculateNaN=this.Eo,b.formula=this.qe.trim(),b.individual=this.gl;b.folder=this.Qc;b.format=this.format;b.grandTotalCaption=this.Ir;b.label=this.label;b.name=this.Yl;b.uniqueName=this.uniqueName;b.groupName=this.yg;return b};q.Object.defineProperties(d.prototype,{Yl:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(){}},yg:{configurable:!0,enumerable:!0,get:function(){return this.VP},set:function(b){this.VP=
b}},Qc:{configurable:!0,enumerable:!0,get:function(){return this.Os},set:function(b){this.Os=b}},mapping:{configurable:!0,enumerable:!0,get:function(){return k.Na.U().fa.mapping}},format:{configurable:!0,enumerable:!0,get:function(){return this.Dh(this.uniqueName,this.$).name},set:function(b){this.Zb=b}},gl:{configurable:!0,enumerable:!0,get:function(){return this.XP},set:function(b){this.XP=b}},hidden:{configurable:!0,enumerable:!0,get:function(){return this.WP},set:function(b){this.WP=b}},index:{configurable:!0,
enumerable:!0,get:function(){return this.i9},set:function(b){this.i9=b}},type:{configurable:!0,enumerable:!0,get:function(){return this.hg},set:function(b){this.hg=b}},Nm:{configurable:!0,enumerable:!0,get:function(){return this.kv},set:function(b){this.kv=b}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}},bm:{configurable:!0,enumerable:!0,get:function(){if(this.Ka||this.Bg)return[];var b=this.mapping.Ao;if(f.v(b))return this.hg!=k.i.Ja.fb&&this.hg!=
k.i.Ja.Yb?this.hg==k.i.Ja.Oa||this.hg==k.i.Ja.Dc?k.i.ca.Iia:k.i.ca.Lia:k.i.ca.MH;var a=k.i.Ja.wD(this.hg);return void 0!==b[a]?b[a]:void 0!==b.any?b.any:Array.isArray(b)?b:k.i.ca.MH},set:function(){}},Ir:{configurable:!0,enumerable:!0,set:function(b){this.fv=b},get:function(){return this.fv?this.fv:0==f.model.B.C.iz?this.qc:k.i.ca.NONE===this.Cj?this.qc:d.h0(this.$,this.qc)}},Ll:{configurable:!0,enumerable:!0,get:function(){if(""==this.zE)if(k.i.ca.YS(this.$))this.zE=this.$;else if(-1!=this.Tc.indexOf(k.i.ca.Up))this.zE=
k.i.ca.Up;else for(var b=0;b<this.Tc.length;b++)if(k.i.ca.YS(this.Tc[b])){this.zE=this.Tc[b];break}return this.zE}},$:{configurable:!0,enumerable:!0,get:function(){return""===this.Cj?this.Tc[0]:this.Cj},set:function(b){b&&b.toLowerCase()!==this.Cj?(b=b.toLowerCase(),k.i.ca.Vx(b)&&(b=k.i.ca.ky(b)),k.i.ca.rz(b)||this.Ka&&b==k.i.ca.NONE?(this.zE="",this.Cj=b,this.Ka||-1!=this.Tc.indexOf(b)||(this.Cj=this.Tc[0])):this.OU()):""==b&&this.OU()}},Tc:{configurable:!0,enumerable:!0,set:function(b){if(f.v(b))this.qm=
this.bm;else{for(var a=[],c=0;c<b.length;c++){var e=b[c].trim().toLowerCase();k.i.ca.Vx(e)&&(e=k.i.ca.ky(e));-1!==this.bm.indexOf(e)&&a.push(e)}this.qm=0<a.length?a:this.bm}},get:function(){return 0<this.qm.length?this.qm:this.bm}},Sd:{configurable:!0,enumerable:!0,get:function(){return this.Fb},set:function(b){this.Fb=b}},Ka:{configurable:!0,enumerable:!0,get:function(){return!f.ha(this.qe)},set:function(){}},qe:{configurable:!0,enumerable:!0,get:function(){return this.RP},set:function(b){this.RP=
b}},Lr:{configurable:!0,enumerable:!0,get:function(){return this.PE},set:function(b){this.PE=b}},Bg:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.PE)&&""!=this.PE}},xC:{configurable:!0,enumerable:!0,get:function(){return this.aQ},set:function(b){this.aQ=b}},yC:{configurable:!0,enumerable:!0,get:function(){return this.bQ},set:function(b){this.bQ=b}},Eo:{configurable:!0,enumerable:!0,get:function(){return this.uP},set:function(b){this.uP=b}}});h.ek=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||
(w={}));
(function(f){(function(k){(function(h){function d(b,a){b=h.Ip.call(this,b,void 0===a?"":a)||this;b.kj=null;return b}u(d,h.Ip);q.Object.defineProperties(d.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.MJ},set:function(b){this.MJ=b}},status:{configurable:!0,enumerable:!0,get:function(){return this.Wqa},set:function(b){this.Wqa=b}},ty:{configurable:!0,enumerable:!0,get:function(){return this.xqa},set:function(b){this.xqa=b}},oz:{configurable:!0,enumerable:!0,get:function(){return this.Yqa},set:function(b){this.Yqa=
b}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}}});h.o5=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){b=h.Ip.call(this,b,void 0===a?"":a)||this;b.kj=null;b.Ma=new f.nb;return b}u(d,h.Ip);d.prototype.Uh=function(b){b.wi=this;this.qb.Pa(b.uniqueName,b)};d.prototype.Mg=function(b){return this.qb.getItem(b)};d.tb=function(b,a){a=void 0===a?null:a;var c=b.uniqueName;c=k.me.zg(c,b.caption);null==a&&(a=new k.local.I.h7(c));f.ha(b.caption)?a.caption=b.uniqueName:a.caption=b.caption;return a};q.Object.defineProperties(d.prototype,{Ma:{configurable:!0,
enumerable:!0,set:function(b){this.qb=b},get:function(){return this.qb}},type:{configurable:!0,enumerable:!0,get:function(){return this.hg},set:function(b){this.hg=b}},CG:{configurable:!0,enumerable:!0,set:function(b){this.f9=b},get:function(){return this.f9?this.f9:[]}},Wc:{configurable:!0,enumerable:!0,get:function(){return this.I},set:function(b){this.I=b}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}}});h.Oq=d})(k.I||(k.I={}))})(f.u||(f.u=
{}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.o9=this.JA=!1;this.O8=new f.nb;this.ib=new f.nb;this.$X=new f.nb;this.cG=new h.OD}d.prototype.NY=function(){var b=new h.nf("[Measures]","Measures"),a=new h.Oq("[Measures]","Measures");a.type=k.i.Lz.AO;a.Uh(b);this.dt(a);return a};d.prototype.dt=function(b){null==this.Vo(b.uniqueName)&&(b.Wc=this,this.Xx.Pa(b.uniqueName,b))};d.prototype.Vo=function(b){return this.Xx.getItem(b)};d.prototype.rc=function(b){b=void 0===b?!1:b;for(var a=new f.nb,
c=0;c<this.Xx.length;c++){var e=this.Xx.ea(c);if(b||e.type!=k.i.Lz.AO)a=a.concat(e.Ma)}return a};d.prototype.Mg=function(b){for(var a=0;a<this.Xx.length;a++){var c=this.Xx.ea(a);if(c.Ma.Bb(b))return c.Ma.getItem(b)}};d.prototype.Hj=function(b){this.measures.Pa(b.uniqueName,b)};d.prototype.$c=function(b){return this.measures.getItem(b)};d.prototype.aD=function(b){this.measures.removeItem(b)};d.prototype.clear=function(){this.O8=new f.nb;this.ib=new f.nb;this.$X=new f.nb;this.ce=!1};d.prototype.Vj=
function(){return null};d.prototype.Ee=function(){return null};d.prototype.UJ=function(){};d.prototype.LY=function(b,a){this.$X.Pa(b.uniqueName,b);if(0==f.ha(b.value)){var c=new h.ek(b.value,this.py(b.value,b.caption,f.model.A.j.a7,a));c.yg=f.model.A.j.Ww;c.Qc=b.caption;c.type=k.i.Ja.fb;c.Lr=b.uniqueName;this.Hj(c)}0==f.ha(b.ty)&&(c=new h.ek(b.ty,this.py(b.ty,b.caption,f.model.A.j.W6,a)),c.yg=f.model.A.j.Ww,c.Qc=b.caption,c.type=k.i.Ja.fb,c.Lr=b.uniqueName,this.Hj(c));0==f.ha(b.status)&&(c=new h.ek(b.status,
this.py(b.status,b.caption,f.model.A.j.Y6,a)),c.yg=f.model.A.j.Ww,c.Qc=b.caption,c.type=k.i.Ja.fb,c.Lr=b.uniqueName,c.xC=!0,this.Hj(c));0==f.ha(b.oz)&&(a=new h.ek(b.oz,this.py(b.oz,b.caption,f.model.A.j.Z6,a)),a.yg=f.model.A.j.Ww,a.Qc=b.caption,a.type=k.i.Ja.fb,a.Lr=b.uniqueName,a.yC=!0,this.Hj(a))};d.prototype.py=function(b,a,c,e){e=e.Fa(b,"caption");return f.v(e)?0==b.indexOf("[Measures]")?b.substring(12,b.length-1):a+" "+c:e};d.prototype.nw=function(b,a,c){a=void 0===a?null:a;c=void 0===c?!1:c;
c=f.v(a)||c;var e=b.uniqueName;f.ha(b.formula)&&(e=k.me.zg(e,b.caption));f.v(a)&&(a=new k.local.I.i7(e));b.hasOwnProperty("type")&&(a.type="string"===typeof b.type?k.i.Ja.uxa(parseInt(b.type)):b.type);if(c||a.Ka)b.hasOwnProperty("formula")&&(a.qe=b.formula),b.hasOwnProperty("individual")&&(a.gl=b.individual),b.hasOwnProperty("calculateNaN")&&(a.Eo=b.calculateNaN);b.hasOwnProperty("supportedAggregations")&&(a.bm=b.supportedAggregations);b.hasOwnProperty("availableAggregations")&&(a.Tc=b.availableAggregations);
if(b.hasOwnProperty("aggregation")){if(b.aggregation!==k.i.ca.NONE||k.Na.U().fa.Hc||a.Ka)a.$=b.aggregation}else a.$=a.Ka?k.i.ca.NONE:"";b.hasOwnProperty("format")&&(a.format=b.format,f.model.Zb.Ni.lH(b.format,a.uniqueName,a.$));b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("name")&&(a.caption=b.name);b.hasOwnProperty("grandTotalCaption")&&(a.Ir=b.grandTotalCaption);b.hasOwnProperty("groupName")&&(a.yg=b.groupName);b.hasOwnProperty("folder")&&(a.Qc=b.folder);b.hasOwnProperty("active")?
a.Nm=b.active:b.hasOwnProperty("uniqueName")&&b.hasOwnProperty("caption")&&b.uniqueName!=b.caption&&!b.hasOwnProperty("formula")&&(a.Nm=!1);a.Ka&&(!b.hasOwnProperty("caption")&&c&&(a.caption=a.uniqueName),b=new x.BI,a.Sd=b.parse(a.qe));return a};d.prototype.xIa=function(b){this.mapping=b};q.Object.defineProperties(d.prototype,{ce:{configurable:!0,enumerable:!0,get:function(){return this.JA},set:function(b){this.JA=b}},ew:{configurable:!0,enumerable:!0,get:function(){return this.o9},set:function(b){this.o9=
b}},ob:{configurable:!0,enumerable:!0,get:function(){return 0<this.Xx.length-(this.Xx.Bb("[Measures]")?1:0)||0<this.measures.length||0<this.fea.length?!1:!0}},Xx:{configurable:!0,enumerable:!0,get:function(){return this.O8},set:function(){}},measures:{configurable:!0,enumerable:!0,get:function(){return this.ib},set:function(){}},mt:{configurable:!0,enumerable:!0,set:function(){},get:function(){for(var b=new f.nb,a=0;a<this.ib.length;a++){var c=this.ib.ea(a);c.Ka&&b.Pa(c.uniqueName,c)}return b}},pu:{configurable:!0,
enumerable:!0,set:function(){},get:function(){for(var b=[],a=0;a<this.ib.length;a++){var c=this.ib.ea(a);c.Ka||b.push(c)}return b}},VT:{configurable:!0,enumerable:!0,set:function(){},get:function(){var b=this.Vo("[Measures]");null==b&&(b=this.NY());return b.Mg("[Measures]")}},fea:{configurable:!0,enumerable:!0,get:function(){return this.$X},set:function(){}}});h.rs=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.Qza=function(b){switch(b){case k.i.oa.Nc:case k.i.oa.Zd:return new k.external.yb.I.Ona;case k.i.oa.Gf:return new k.external.De.I.Eka;case k.i.oa.API:return new k.external.kc.I.OH}return new k.local.I.fE};h.Woa=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){this.qb=new f.nb;this.Gq=k.i.xa.Zc;this.Xs=this.qP=null;this.tJ=[];this.NP=[];this.LP=[];this.xA=[];this.vY=k.i.xa.Zc;this.SA=b}d.prototype.wfa=function(b){for(var a=[],c,e,g,l,m,n,p=0;p<b.length;p++){c=b[p].slice(0);e=[];l=-1;g=c.shift();g="string"==typeof g?new f.model.bb.Ig(g):f.model.bb.Ig.tb(g);m=0;if(0<this.Ma.length)for(var t=0;t<c.length;t++){n=this.Ma.ea(m);if(f.v(n))return[];if(!n.ce&&!n.Qe)return this.NP=b.slice(0),[];n.Qe&&(l=(l=this.Zh(g))?
l.index:-1,m++,n=this.Ma.ea(m));if(n)if(n=n.jga(c[t]),0>n){e=null;break}else e.push(n);m++}null!==e&&(e.unshift(l),a.push(e))}return a};d.prototype.e3=function(){0<this.NP.length&&(this.zd=this.wfa(this.NP),this.NP=[]);0<this.LP.length&&(this.uf=this.vfa(this.LP),this.LP=[])};d.prototype.l4=function(b){b.sort(function(a,c){if(a.length!==c.length)return 0;var e=a.length-1;a=a[e];c=c[e];return-1===a?1:-1===c||a<c?-1:a>c?1:0})};d.prototype.Wga=function(b){var a=this.qb.slice();a.removeItem("[Measures]");
for(var c,e=0;e<b.length;e++){var g=b[e].slice(0);"string"===typeof g[0]&&(c=g.shift());var l=a.ea(g.length-3);if(null==l)break;var m=g[1];if("string"===typeof g[1]){var n=l.Db(m);!n&&!isNaN(parseInt(g[1]))&&8>g[1].length&&(m=parseInt(g[1]))}"number"===typeof m&&(n=l.va(m),null==n||n.Wb||(m=n.uniqueName));-1==l.vw.indexOf(m)&&l.vw.push([c,m])}};d.prototype.vfa=function(b){for(var a=[],c,e,g,l,m,n,p,t,r=0;r<b.length;r++){c=b[r].slice(0);e=[];l=-1;g=c.shift();n=c.shift();m="string"==typeof n?new f.model.bb.Ig(n):
f.model.bb.Ig.tb(n);n=c.shift();p=0;if(0<this.Ma.length)for(var v=0;v<c.length;v++){t=this.Ma.ea(p);if(f.v(t))return[];t.Qe&&(l=(l=this.Zh(m))?l.index:-1,p++,t=this.Ma.ea(p));if(!t.ce&&!t.Qe)return this.LP=b.slice(0),this.Wga(b),[];if(t){if(t.type!==k.i.Gc.Oa||t.ra.ea(1).type!==k.i.eb.Oa&&t.ra.ea(1).type!==k.i.eb.Dc)t=t.Db(c[v]);else{if(f.model.B.C.zr&&"null"===c[v])var z=null;else if(8>c[v].length||/\D+/.test(c[v].slice(1))){z=t.ra.ea(1).type===k.i.eb.Dc?f.model.B.C.Yk:f.model.B.C.mq;z=t.mapping.Fa(t.uniqueName,
"format",z);var B=new f.Gg(c[v],{yx:!1,format:z});B.dj(x.gh.Sf(z));z=B.getTime()}else z=parseInt(c[v]);t=t.Ht(z)}t?e.push(t.ordinal):e.push(-1)}p++}if((t=this.Ma.ea(c.length-1))&&t.ce&&null!==t.nc&&null==t.Db(n))for(c=n.slice(1,-1).split("].[");1<c.length;){c.pop();var C=1<c.length?"["+c.join("].[")+"]":c[0];null==b.find(function(E){return E[e.length+2]===C})&&(m=e.slice(0,-1),p=t.Db(C),null!=p&&(m.push(p.ordinal),m.unshift(C),m.unshift(l),""!=g&&m.unshift(g),a.push(m)))}e.unshift(n);e.unshift(l);
""!=g&&e.unshift(g);a.push(e)}return a};d.prototype.toString=function(){return"[Axis:"+this.SA+" ]"};d.iCa=function(b,a,c){"[Measures]"!==b.uniqueName&&(c=c.measures.getItem(b.uniqueName),void 0===c||c.qc===b.caption&&!a.hasOwnProperty("caption")||(c.qc!==b.caption?a.caption=c.qc:a.hasOwnProperty("caption")&&a.caption!==c.qc&&(c.qc=a.caption)))};d.tb=function(b,a,c,e,g,l,m,n){m=void 0===m?null:m;n=void 0===n?!1:n;b=new d(b);m&&(b.Zh=function(z){return m(z)});b.Ma=new f.nb;if(a)for(var p=0;p<a.length;p++)if(null!=
a[p].uniqueName){a[p].uniqueName=k.me.zg(a[p].uniqueName,a[p].caption);var t=l.Mg(a[p].uniqueName);if(null!=t&&(n&&(t=t.clone(),t.sZ(),t.filter.clear()),this.iCa(t,a[p],l),h.nf.tb(a[p],t),!t.Qe||b.uniqueName!==k.i.ia.As)){var r=f.v(a[p].levelName)?f.v(a[p].activeLevelName)?null:a[p].activeLevelName:a[p].levelName;t.ig=r;b.Ma.Pa(t.uniqueName,t)}}if(c){if(null!=c.measure){a="string"===typeof c.measure?new f.model.bb.Ig(k.me.zg(c.measure)):f.model.bb.Ig.tb(c.measure);var v=b.Zh(a)}null!=v&&null!=c.tuple?
b.oD(v,c.tuple,c.type):b.CNa=c}if(e&&0<e.length){c=[];for(a=0;a<e.length;a++){l=e[a];n=[];0<l.length&&n.push(d.fda(l[0]));for(v=1;v<l.length;v++)n.push(d.Gea(l[v]));c.push(n)}e=c}b.zd=e?b.wfa(e):[];if(g&&0<g.length){e=[];for(c=0;c<g.length;c++){a=g[c];l=[];0<a.length&&l.push(d.fda(a[0]));for(n=1;n<a.length;n++)l.push(d.Gea(a[n]));e.push(l)}g=e}b.uf=g?b.vfa(g):[];return b};d.fda=function(b){if("string"===typeof b){var a=parseInt(b);if(isNaN(a)||a.toString()!==b)return k.me.zg(b)}return b};d.Gea=function(b){if("string"===
typeof b){var a=parseInt(b);if(isNaN(a)||a.toString()!==b)return k.me.Or(b)}return b};d.prototype.La=function(){for(var b={},a=[],c=0;c<this.Ma.length;c++){var e=this.Ma.ea(c).La();a.push(e)}b.hierarchies=a;this.$f==k.i.xa.Zc||f.v(this.Vm)||f.v(this.Ff)||(b.sort={type:this.$f,tuple:this.m4,measure:{uniqueName:this.Ff.uniqueName,aggregation:this.Ff.$}});return b};d.prototype.oD=function(b,a,c){this.Ff=b;this.Vm=a;this.$f=c;0==a.length&&(this.Gq=this.$f,this.ks=this.Ff)};d.prototype.rB=function(){this.Vm=
this.Ff=null;this.Gq=this.$f=k.i.xa.Zc;this.ks=null};d.prototype.clone=function(){var b=new d(this.SA);b.caption=this.caption;b.Ma=this.Ma.slice(0);b.ks=this.ks;b.Gq=this.Gq;b.Ff=this.Ff;b.Vm=this.Vm;b.$f=this.$f;b.zd=this.hq(this.zd);b.uf=this.hq(this.uf);return b};d.prototype.hq=function(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a};q.Object.defineProperties(d.prototype,{Vm:{configurable:!0,enumerable:!0,set:function(b){this.Xs=b;this.qP=null},get:function(){if(null!=this.qP)return this.qP;
var b=null;if(null!=this.Xs){var a=0;b=[];for(var c=0;c<this.qb.length;c++){var e=this.Ma.ea(c);if(!e.Qe){if(!this.Xs[a])break;if("number"==typeof this.Xs[a]){b=this.Xs;break}else{var g=this.Xs[a].toString().trim();if(!/\D/.test(g)){b=this.Xs;break}}e=e.Db(k.me.Or(this.Xs[a].toString().trim()));if(null!=e)b.push(e.ordinal);else if(this.Xs[a]){b=null;break}a++}}}return this.qP=b}},m4:{configurable:!0,enumerable:!0,set:function(b){this.Vm=b},get:function(){var b=null,a=this.Vm;if(null!=a){var c=0;b=
[];for(var e=0;e<this.qb.length;e++){var g=this.Ma.ea(e);if(!g.Qe){if(!a[c])break;g=g.va(""===a[c]?0:parseInt(a[c]));if(null!=g)b.push(g.Xi);else if(a[c]){b=null;break}c++}}}return b}},zd:{configurable:!0,enumerable:!0,get:function(){return this.tJ},set:function(b){if(null==b)this.tJ=[];else if(this.Ra)this.tJ=b;else{this.tJ=[];for(var a=0;a<b.length;a++){var c=b[a];c[0]=-1;this.tJ.push(c)}}}},pba:{configurable:!0,enumerable:!0,get:function(){for(var b=[],a,c,e,g,l,m=0;m<this.zd.length;m++){a=this.zd[m].slice(0);
c=[];e=a.shift();g=null;-1<e&&(g=(g=this.Zh(e))?g.La():null);for(var n=e=0;n<a.length;n++)l=this.Ma.ea(e),l.Qe&&(e++,l=this.Ma.ea(e)),l&&l.va(a[n])&&c.push(l.va(a[n]).uniqueName),e++;c.unshift(g);b.push(c)}return b}},uf:{configurable:!0,enumerable:!0,get:function(){return this.xA},set:function(b){if(f.v(b)||0===b.length)this.xA=[];else{if(this.Ra)this.xA=b;else{this.xA=[];for(var a=0;a<b.length;a++){var c=b[a];"string"===typeof c[0]?c[1]=-1:c[0]=-1;this.xA.push(c)}}this.l4(this.xA);this.Wga(this.xA)}}},
dba:{configurable:!0,enumerable:!0,get:function(){for(var b=[],a,c,e,g,l,m,n,p=0;p<this.uf.length;p++){a=this.uf[p].slice(0);c=[];e="";l=null;"string"==typeof a[0]&&(e=a.shift());g=a.shift();m=a.shift();-1<g&&(l=(l=this.Zh(g))?l.La():null);for(var t=g=0;t<a.length;t++)n=this.Ma.ea(g),n.Qe&&(g++,n=this.Ma.ea(g)),(n=n.va(a[t]))&&c.push(n.uniqueName),g++;c.unshift(m);c.unshift(l);c.unshift(e);b.push(c)}return b}},$f:{configurable:!0,enumerable:!0,set:function(b){b=b.toLowerCase();this.vY=b==k.i.xa.bc||
b==k.i.xa.Ec?b:k.i.xa.Zc},get:function(){return this.vY}},uniqueName:{configurable:!0,enumerable:!0,get:function(){return this.SA},set:function(b){this.SA=b}},caption:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(b){this.qc=b}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.qb},set:function(b){this.zd=[];this.uf=[];this.Xs=null;this.vY=k.i.xa.Zc;this.Ff=null;this.qb=b}},He:{configurable:!0,enumerable:!0,get:function(){return this.qb.indexOf("[Measures]")},
set:function(){}},VT:{configurable:!0,enumerable:!0,get:function(){return this.qb.getItem("[Measures]")},set:function(){}},Ra:{configurable:!0,enumerable:!0,get:function(){return-1<this.He},set:function(){}},depth:{configurable:!0,enumerable:!0,get:function(){for(var b=0,a=0;a<this.qb.length;a++){var c=this.qb.ea(a);b+=c.rwa}return b},set:function(){}}});h.Mq=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){this.cr=new f.nb;this.ib=[];this.FE=this.U8=!1;this.AA=[];this.PP=[];this.KP=[];this.memberProperties={};this.M1=!0;this.Wc=b;this.bt(new k.I.Mq(k.i.ia.Ia));this.bt(new k.I.Mq(k.i.ia.Sa));this.bt(new k.I.Mq(k.i.ia.As))}d.prototype.bt=function(b){this.cr.Pa(b.uniqueName,b);b.Ra&&(this.sA=b)};d.prototype.Cd=function(b){return this.cr.getItem(b)};d.prototype.Ywa=function(b){if(-1!=this.ic.Ma.indexOf(b))return this.ic;if(-1!=this.Sb.Ma.indexOf(b))return this.Sb;
if(-1!=this.dH.Ma.indexOf(b))return this.dH};d.prototype.iia=function(){if(null==this.sA){for(var b=0;b<this.cr.length;b++){var a=this.cr.ea(b);if(a.Ra){this.sA=a;break}}null==this.sA&&(this.sA=this.Cd(k.i.ia.Sa))}this.sA.Ra||(b=this.Wc.VT)&&this.sA.Ma.Pa(b.uniqueName,b)};d.prototype.ad=function(){for(var b=[],a=0;a<this.ib.length;a++){var c=this.ib[a];c.hidden||b.push(c)}return b};d.prototype.fz=function(b){this.ib=b};d.prototype.Zh=function(b){for(var a=0;a<this.ib.length;a++)if(b.uniqueName==this.ib[a].uniqueName&&
(""==b.$||b.$===this.ib[a].$))return this.ib[a];return null};d.prototype.$B=function(b){return b instanceof f.model.bb.Ig?this.Zh(b):isNaN(b)?null:this.ib[b]};d.prototype.zca=function(b,a){for(var c=0;c<this.ib.length;c++)if(b==this.ib[c].uniqueName&&(void 0==a||a==this.ib[c].$))return c;return-1};d.prototype.rc=function(b,a,c,e){b=void 0===b?!0:b;a=void 0===a?!0:a;c=void 0===c?!1:c;e=void 0===e?!1:e;for(var g=new f.nb,l=0;l<this.cr.length;l++){var m=this.cr.ea(l);g=g.concat(m.Ma)}b||g.removeItem(this.Wc.VT.uniqueName);
if(!a)for(b=0;b<this.pages.length;b++)g.removeItem(this.pages.qh(b));if(c)for(c=0;c<this.ib.length;c++)b=this.ib[c],b.Ka||b.hidden&&!e||(b=this.Wc.Vj(b.uniqueName),f.v(b)||g.Pa(b.uniqueName,b));return g};d.prototype.clear=function(){for(var b=0;b<this.cr.length;b++)this.cr.ea(b).Ma=new f.nb;this.ib=[]};d.prototype.clone=function(){var b=this,a=new d(this.Wc);a.rows=this.rows.slice();a.columns=this.columns.slice();a.pages=this.pages.slice();a.fz(this.ad());a.flatOrder=this.flatOrder.slice(0);a.flatSort=
this.flatSort.slice(0);a.drillThrough=this.drillThrough.slice(0);a.bt(this.ic.clone());a.ic.Zh=function(c){return b.$B(c)};a.bt(this.Sb.clone());a.Sb.Zh=function(c){return b.$B(c)};a.expandAll=this.expandAll;a.drillAll=this.drillAll;return a};d.y$=function(b,a){var c=!1;c=void 0===c?!0:c;if(null==a)return!0;var e=b.rows.length!=a.rows.length;if(!e)for(var g=0;g<b.rows.length;g++)if(b.rows.ea(g).uniqueName!=a.rows.ea(g).uniqueName){e=!0;break}!e&&c&&b.Cd(k.i.ia.Ia).Ra&&a.Cd(k.i.ia.Ia).Ra&&(e=d.dZ(b,
a));return e};d.x$=function(b,a){var c=!1;c=void 0===c?!0:c;if(null==a)return!0;var e=b.columns.length!=a.columns.length;if(!e)for(var g=0;g<b.columns.length;g++)if(b.columns.ea(g).uniqueName!=a.columns.ea(g).uniqueName){e=!0;break}!e&&c&&b.Cd(k.i.ia.Sa).Ra&&a.Cd(k.i.ia.Sa).Ra&&(e=d.dZ(b,a));return e};d.dZ=function(b,a){if(null==a)return!0;b=b.ad();a=a.ad();var c=b.length!=a.length;if(!c)for(var e=0;e<b.length;e++)if(b[e].uniqueName!=a[e].uniqueName){c=!0;break}return c};d.usa=function(b,a){void 0!==
a.caption&&null!=b&&(b.caption=a.caption)};d.kBa=function(b){return void 0===b.formula?!0:f.model.B.C.zv&&k.Na.U().fa.Ba===k.i.oa.Nc||!k.Na.U().fa.Hc||k.Na.U().fa.Ba===k.i.oa.API};d.tb=function(b,a,c,e){c=void 0===c?!1:c;e=void 0===e?!1:e;for(var g=new d(a),l=[],m=a.rc(),n=b.measures.map(function(r){return r.uniqueName}),p=0;p<b.measures.length;p++)if(void 0!==b.measures[p].uniqueName&&this.kBa(b.measures[p])){f.ha(b.measures[p].formula)&&(a.$c(b.measures[p].uniqueName)||(b.measures[p].uniqueName=
k.me.zg(b.measures[p].uniqueName)));var t=a.measures.getItem(b.measures[p].uniqueName);if(null!=t||!f.ha(b.measures[p].formula)){this.usa(m.getItem(b.measures[p].uniqueName),b.measures[p]);t=a.nw(b.measures[p],t);t.hidden=!1;if(t.Ka&&!a.measures.Bb(t.uniqueName)){if(f.model.B.C.GV&&!g.cKa(t,n))continue;a.Hj(t)}if(null==b.measures[p].active||b.measures[p].active)t=t.clone(),t.index=l.length,l.push(t)}f.model.B.C.oc&&!f.v(b.measures[p].filter)&&(t=m.getItem(b.measures[p].uniqueName),f.v(t)||(t.filter=
f.model.bb.Tz.tb(b.measures[p].filter,t)))}g.T4(l);l=k.I.Mq.tb(k.i.ia.Ia,b.rows,b.rowSorting,b.expandedRows,b.drilledRows,a,function(r){return g.$B(r)},c);m=k.I.Mq.tb(k.i.ia.Sa,b.columns,b.columnSorting,b.expandedColumns,b.drilledColumns,a,function(r){return g.$B(r)},c);c=k.I.Mq.tb(k.i.ia.As,b.pages,null,[],[],a,null,c);g.rows=l.Ma;g.columns=m.Ma;g.pages=c.Ma;g.expandAll=b.expandAll;g.drillAll=b.drillAll;if(k.Na.U().fa&&k.Na.U().fa.KG)if(g.flatOrder=b.flatOrder,f.v(b.flatSort))if(m.$f!=k.i.xa.Zc)g.flatSort=
[{sort:m.$f,measure:m.Ff}];else for(c=b.rows.concat(b.columns.concat(b.pages)),n=0;n<c.length;n++){if(p=c[n],!f.v(p.sortName)&&k.i.xa.Cg(p.sortName)&&p.sortName!=k.i.xa.Zc){g.flatSort=[{sort:p.sortName,measure:a.$c(p.uniqueName)}];break}}else g.flatSort=d.Iba(b.flatSort,a);g.drillThrough=b.drillThrough;g.memberProperties=b.memberProperties;g.bt(l);g.bt(m);g.iia();g.lia();e||g.EHa(g);return g};d.Iba=function(b,a){if(f.v(b))return null;for(var c=[],e=0;e<b.length;e++){var g=b[e],l=a.$c(g&&g.uniqueName?
g.uniqueName:g.measure.uniqueName);g=String(g.sort).toLowerCase();!f.v(l)&&k.i.xa.Cg(g)&&c.push({measure:l,sort:g})}return c};d.prototype.lia=function(){for(var b=f.model.B.C.oc,a=this.ib.filter(function(l){return-1<k.i.ca.yz.indexOf(l.$)}),c=0;c<this.rows.length;c++){var e=this.rows.ea(c),g=e.filter.measure;b&&e.filter.ai&&!f.v(this.Wc.$c(g.uniqueName))||this.cea(e,g,a)||e.filter.pB()}for(c=0;c<this.columns.length;c++)e=this.columns.ea(c),g=e.filter.measure,b&&e.filter.ai&&!f.v(this.Wc.$c(g.uniqueName))||
this.cea(e,g,a)||e.filter.pB()};d.prototype.cea=function(b,a,c){c=c.find(function(e){return a&&e.uniqueName===a.uniqueName});return!(b.filter.ai&&null==this.$c(b.filter.measure.uniqueName)||a&&k.Na.U().fa.Hc&&void 0!==c)};d.prototype.cKa=function(b,a){b=x.mO.PQ(b.qe,b.uniqueName,a);return 0==b.bw?(f.Va(b.errorMessage),!1):!0};d.prototype.EHa=function(b){if(null!=k.Na.U().sa){var a=k.Na.U().sa.ht,c=b.ht;null!=a&&null!=c&&a.uniqueName!=c.uniqueName||null==a.Ff||null==b.Zh(new f.model.bb.Ig(a.Ff.uniqueName,
a.Ff.$,a.Ff.index))||null!=c.Ff||(c.Ff=a.Ff,c.m4=a.m4,c.Vm=a.Vm,c.$f=a.$f)}};d.prototype.G4=function(){var b=new f.model.bb.SliceValueObject,a=this.Cd(k.i.ia.Ia).La(),c=this.Cd(k.i.ia.Sa).La(),e=this.Cd(k.i.ia.As).La();b.rows=a.hierarchies;b.columns=c.hierarchies;b.pages=e.hierarchies;b.measures=[];e=this.Wc.measures;for(var g=this.ad(),l=0;l<g.length;l++){var m=g[l],n=m.La();n.caption=m.Yl;n.active=!0;f.model.B.C.oc&&(m=this.Wc.Vj(m.uniqueName))&&m.filter.$g&&!b.cBa(m.uniqueName)&&(n.filter=m.filter.La());
b.measures.push(n)}l={};for(n=0;n<e.length;l={wz:l.wz},n++)l.wz=e.ea(n),l.wz.hidden&&!l.wz.Ka||l.wz.F0()||g.find(function(p){return function(t){return t.uniqueName===p.wz.uniqueName}}(l))||(m=l.wz.La(),m.active=!1,b.measures.push(m));b.rowSorting=a.sort;b.columnSorting=c.sort;b.expandAll=this.expandAll;b.expandedRows=this.axes.getItem(k.i.ia.Ia).pba;b.expandedColumns=this.axes.getItem(k.i.ia.Sa).pba;b.drillAll=this.drillAll;b.drilledRows=this.axes.getItem(k.i.ia.Ia).dba;b.drilledColumns=this.axes.getItem(k.i.ia.Sa).dba;
b.flatOrder=this.flatOrder;b.flatSort=this.Jba();b.drillThrough=this.drillThrough;b.memberProperties=this.memberProperties;return b};d.prototype.Jba=function(){if(f.v(this.flatSort))return null;for(var b=[],a=0;a<this.flatSort.length;a++){var c=this.flatSort[a];b.push({uniqueName:c.measure.uniqueName,sort:c.sort})}return b};d.prototype.La=function(){var b={};b.rows=[];for(var a=0;a<this.rows.length;a++){var c=this.rows.ea(a).La();b.rows[a]=c}b.columns=[];for(a=0;a<this.columns.length;a++)c=this.columns.ea(a).La(),
b.columns[a]=c;b.pages=[];for(a=0;a<this.pages.length;a++)c=this.pages.ea(a).La(),b.pages[a]=c;b.measures=[];for(a=0;a<this.ib.length;a++)this.ib[a].hidden||(c=this.ib[a].La(),b.measures[a]=c);return b};d.prototype.e3=function(){for(var b=0;b<this.cr.length;b++)this.cr.ea(b).e3()};d.prototype.flatten=function(b,a){b=void 0===b?!1:b;a=void 0===a?!1:a;for(var c=this.rc(!1),e=0;e<this.ib.length;e++)if(!this.ib[e].hidden){var g=this.ib[e];if(a)g.type===k.i.Ja.sc?c.Bb(g.uniqueName)||c.Pa(g.uniqueName,
g):c.Pa(g.uniqueName,g);else{var l=this.Vj(g.uniqueName);null!=l&&c.Pa(l.uniqueName,l);g.Ka&&b&&(l=new h.nf(g.uniqueName,g.caption),c.Pa(g.uniqueName,l))}}return this.msa(c,this.flatOrder)};d.prototype.msa=function(b,a){for(var c=new f.nb,e=0;e<a.length;e++){var g=a[e];b.Bb(g)&&(c.Pa(g,b.getItem(g)),b.removeItem(g))}for(a=0;a<b.length;a++)c.Pa(b.qh(a),b.ea(a));return c};d.prototype.isEqual=function(b){if(null==b)return!1;var a=this.ad(),c=b.ad();if(this.pages.length!=b.pages.length||this.rows.length!=
b.rows.length||this.columns.length!=b.columns.length||a.length!=c.length)return!1;for(var e=0;e<this.pages.length;e++)if(this.pages.qh(e)!=b.pages.qh(e))return!1;for(e=0;e<this.rows.length;e++)if(this.rows.qh(e)!=b.rows.qh(e))return!1;for(e=0;e<this.columns.length;e++)if(this.columns.qh(e)!=b.columns.qh(e))return!1;for(e=0;e<a.length;e++)if(a[e].uniqueName!=c[e].uniqueName||a[e].$!=c[e].$)return!1;return!0};d.prototype.Vj=function(b){return this.Wc.Vj(b)};d.prototype.Ee=function(b){return this.Wc.Ee(b)};
d.prototype.kCa=function(){if(f.model.B.C.oc){this.rows=new f.nb;this.columns=new f.nb;this.pages=new f.nb;for(var b=[],a=[],c=0;c<this.Wc.measures.length;c++){var e=this.Wc.measures.ea(c);a.push(e.uniqueName);e.type==k.i.Ja.sc?(e=this.Wc.Vj(e.uniqueName))&&this.rows.Pa(e.uniqueName,e):(e.index=0,b.push(e))}if(f.v(this.AA)||0==this.AA.length)this.AA=a;this.ib=b}else{for(c=0;c<this.Wc.measures.length&&(e=this.Wc.measures.ea(c),e.type!=k.i.Ja.fb?null==a&&(a=this.Wc.Vj(e.uniqueName)):null==b&&(b=e),
null==a||null==b);c++);null==b?b=this.Wc.measures.ea(0):null==a?(e=this.Wc.measures.ea(0),a=this.Wc.Vj(e.uniqueName)):null==a&&null==b&&0<this.Wc.measures.length&&(b=this.Wc.measures.ea(0),a=this.Wc.Vj(b.uniqueName));null!=a&&null!=b&&(this.pages=new f.nb,this.rows=new f.nb,this.columns=new f.nb,this.rows.Pa(a.uniqueName,a),c=[],b.index=0,c.push(b),this.ib=c)}};d.prototype.xta=function(){this.ic.zd=[];this.Sb.zd=[]};d.prototype.wta=function(){this.ic.uf=[];this.Sb.uf=[]};d.prototype.T4=function(b){void 0===
b&&(b=this.ib);var a=[];if(this.Wc instanceof k.external.kc.I.OH&&0<f.model.ta.gm.conditions.length)for(var c=0;c<f.model.ta.gm.conditions.length;c++){var e=f.model.ta.gm.conditions.ea(c);if((e=x.ws.pL(e.Sd,this.Wc.measures))&&0<e.length)for(var g={},l=0;l<e.length;g={JH:g.JH},l++){var m=e[l];g.JH=this.Wc.measures.getItem(m.uniqueName);if(null!=g.JH){var n=b.find(function(t){return function(r){return r.uniqueName===t.JH.uniqueName}}(g));if(null==n||!n.Ka&&n.$!=m.$)n=g.JH.clone(),n.$=m.$,n.hidden=
!0,a.push(n)}}}c=null;for(e=0;e<b.length;e++)if(c=b[e],c.format=this.Wc.measures.getItem(c.uniqueName).format,a.push(c),c.Ka){if((g=x.ws.pL(c.Sd,this.Wc.measures))&&0<g.length)for(l={},m=0;m<g.length;l={IH:l.IH},m++)if(n=g[m],l.IH=this.Wc.measures.getItem(n.uniqueName),null!=l.IH){var p=b.find(function(t){return function(r){return r.uniqueName===t.IH.uniqueName}}(l));if(null==p||!p.Ka&&p.$!=n.$)p=l.IH.clone(),p.$=n.$,p.hidden=!0,a.push(p)}this.Wc instanceof k.external.kc.I.OH&&(c.Sd=x.ws.pG(c.Sd,
this.Wc.measures))}this.fz(a)};d.prototype.BCa=function(b){f.v(b)||(this.expandAll=b.expandAll,this.drillAll=b.drillAll,d.y$(this,b)?(this.ic.zd=this.xR(b.ic.zd,this.lS(this.ic.Ma,b.ic.Ma)),this.ic.uf=this.xR(b.ic.uf,this.lS(this.ic.Ma,b.ic.Ma)+2)):(this.ic.zd=this.hq(b.ic.zd),this.ic.uf=this.hq(b.ic.uf)),d.x$(this,b)?(this.Sb.zd=this.xR(b.Sb.zd,this.lS(this.Sb.Ma,b.Sb.Ma)),this.Sb.uf=this.xR(b.Sb.uf,this.lS(this.Sb.Ma,b.Sb.Ma)+2)):(this.Sb.zd=this.hq(b.Sb.zd),this.Sb.uf=this.hq(b.Sb.uf)))};d.prototype.aD=
function(b,a){for(var c=[],e=0;e<this.ib.length;e++)(this.ib[e].uniqueName!==b||this.ib[e].$!==a&&void 0!==a)&&c.push(this.ib[e]);this.ib=c};d.prototype.dga=function(b){this.ib[b.index].uniqueName===b.uniqueName&&this.ib[b.index].$===b.$?this.ib.splice(b.index,1):this.aD(b.uniqueName,b.$)};d.prototype.$c=function(b){for(var a=0;a<this.ib.length;a++)if(this.ib[a].uniqueName==b)return this.ib[a]};d.prototype.lS=function(b,a){for(var c=0,e=Math.min(b.length,a.length),g=0;g<e;g++){var l=b.ea(g),m=a.ea(g);
if(l.uniqueName!=m.uniqueName)break;l.Qe||c++}return c};d.prototype.xR=function(b,a){var c=[];if(1<a)for(var e=0;e<b.length;e++){var g=b[e];g.length<=a&&c.push(g.slice())}return c};d.prototype.hq=function(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a};d.prototype.LZ=function(b){return this.eaa(b,this.vb)};d.prototype.KZ=function(b){return this.eaa(b,this.Cb)};d.prototype.eaa=function(b,a){var c=[];if(f.v(b))return c;for(var e=0;e<b.length;e++){var g=a.ea(e);f.v(g)||(g=g.va(b[e]),
f.v(g)||c.push(g.La()))}return c};d.prototype.gAa=function(){for(var b=this.rc(),a=0;a<b.length;a++)if(b.ea(a).qg)return!0;return!1};q.Object.defineProperties(d.prototype,{axes:{configurable:!0,enumerable:!0,get:function(){return this.cr},set:function(){}},ht:{configurable:!0,enumerable:!0,set:function(){},get:function(){this.iia();return this.sA}},pu:{configurable:!0,enumerable:!0,get:function(){for(var b=[],a={},c=0;c<this.ib.length;c++){var e=this.ib[c];e.Ka||void 0!==a[e.uniqueName]||(b.push(e),
a[e.uniqueName]=1)}return b},set:function(){}},mt:{configurable:!0,enumerable:!0,get:function(){for(var b=new f.nb,a=0;a<this.ib.length;a++){var c=this.ib[a];c.Ka&&b.Pa(c.uniqueName,c)}return b},set:function(){}},Of:{configurable:!0,enumerable:!0,get:function(){return this.ib},set:function(b){this.fz(b)}},rows:{configurable:!0,enumerable:!0,get:function(){return this.Cd(k.i.ia.Ia).Ma},set:function(b){var a=this,c=this.Cd(k.i.ia.Ia);null==c&&(c=new h.Mq(k.i.ia.Ia));c.Ma=b;null==b&&(c.Ma=new f.nb);
c.Zh=function(e){return a.$B(e)};this.bt(c)}},columns:{configurable:!0,enumerable:!0,get:function(){return this.Cd(k.i.ia.Sa).Ma},set:function(b){var a=this,c=this.Cd(k.i.ia.Sa);null==c&&(c=new h.Mq(k.i.ia.Sa));c.Ma=b;null==b&&(c.Ma=new f.nb);c.Zh=function(e){return a.$B(e)};this.bt(c)}},pages:{configurable:!0,enumerable:!0,get:function(){return this.Cd(k.i.ia.As).Ma},set:function(b){var a=this.Cd(k.i.ia.As);null==a&&(a=new h.Mq(k.i.ia.As));a.Ma=b;null==b&&(a.Ma=new f.nb);this.bt(a)}},vb:{configurable:!0,
enumerable:!0,set:function(){},get:function(){return this.ht.uniqueName==k.i.ia.Ia?this.rows.splice(this.ht.He,1):this.rows}},Cb:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.ht.uniqueName==k.i.ia.Sa?this.columns.splice(this.ht.He,1):this.columns}},ob:{configurable:!0,enumerable:!0,get:function(){return 0==this.rc(!1).length&&0==this.ib.length}},expandAll:{configurable:!0,enumerable:!0,get:function(){return this.U8},set:function(b){this.U8=b}},drillAll:{configurable:!0,
enumerable:!0,get:function(){return this.FE},set:function(b){this.FE=b}},flatOrder:{configurable:!0,enumerable:!0,get:function(){null==this.AA&&(this.AA=[]);return this.AA},set:function(b){this.AA=b}},flatSort:{configurable:!0,enumerable:!0,get:function(){null==this.PP&&(this.PP=[]);return this.PP},set:function(b){this.PP=b}},drillThrough:{configurable:!0,enumerable:!0,get:function(){null==this.KP&&(this.KP=[]);return this.KP},set:function(b){this.KP=b}},ic:{configurable:!0,enumerable:!0,get:function(){return this.axes.getItem(k.i.ia.Ia)}},
Sb:{configurable:!0,enumerable:!0,get:function(){return this.axes.getItem(k.i.ia.Sa)}},dH:{configurable:!0,enumerable:!0,get:function(){return this.axes.getItem(k.i.ia.As)}}});h.Zq=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(){}b.prototype.m$=function(){throw"Not Implemented";};b.prototype.Ara=function(a,c){f.v(this.ox)&&(this.ox=new f.nb);this.ox.Pa(a,c)};b.prototype.Nca=function(a,c){return!f.v(this.ox)&&this.ox.Bb(a.uniqueName)?this.nR(this.ox.getItem(a.uniqueName),c):this.mG(c)};b.prototype.nR=function(a,c){if("boolean"===typeof a)return!0===a?this.mG(c):null;var e=new d;c=this.mG(c);f.v(a.ed)||(e.ed=a.ed);f.v(a.query)||(e.query="boolean"===typeof a.query?
!0===a.query?c.query:[]:a.query.slice());f.v(a.xl)||(e.xl="boolean"===typeof a.xl?!0===a.xl?c.xl:[]:a.xl.slice());return e};b.prototype.mG=function(a){var c=new d;c.ed=!0;c.xl=k.i.tc.Gp;switch(a){case k.i.kb.gk:c.query=k.i.wb.Gp;break;case k.i.kb.Oa:c.query=k.i.Ub.Gp;break;case k.i.kb.fb:c.query=k.i.vg.Gp;break;case k.i.kb.Yb:c.query=k.i.ik.Gp}return c};q.Object.defineProperties(b.prototype,{VY:{configurable:!0,enumerable:!0,get:function(){return!0},set:function(){}}});h.OD=b;h.Zoa=function(){};d.prototype.merge=
function(a){void 0===this.ed&&(this.ed=a.ed);void 0===this.query&&(this.query=a.query);void 0===this.xl&&(this.xl=a.xl)};q.Object.defineProperties(d.prototype,{Mda:{configurable:!0,enumerable:!0,get:function(){return 1==this.ed}},TL:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.query)&&0<this.query.length}},dea:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.xl)&&0<this.xl.length}}});h.Yoa=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.ConnectionInfo.apply(this,arguments)||this}u(d,h.ConnectionInfo);d.prototype.isEqual=function(b){return b.Ba==k.i.oa.EMPTY};d.prototype.clone=function(){return new d};d.prototype.La=function(){return{}};h.Pz=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=k.I.ConnectionInfo.apply(this,arguments)||this;b.browseForFile=!1;b.requestPermission=!1;b.mapping=new k.I.Aj;return b}u(d,k.I.ConnectionInfo);d.prototype.isEqual=function(b){return k.I.ConnectionInfo.prototype.isEqual.call(this,b)&&this.filename===b.filename&&!1===this.browseForFile&&!1===b.browseForFile&&this.mapping.isEqual(b.mapping)};h.LocalConnectionInfo=d})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=k.ND.apply(this,arguments)||this;b.dh=[];b.Ym=[];b.rX=[{value:"Chrome",BM:.76},{value:"Firefox",BM:.11},{value:"Safari",BM:.05},{value:"Edge/IE",BM:.06},{value:"Opera",BM:.02}];return b}u(d,k.ND);d.prototype.vF=function(){k.ND.prototype.vF.call(this);this.dh=[];this.Ym=[]};d.prototype.Cta=function(){this.dh=[];this.Ym=[];this.values=[]};d.clone=function(b){var a=new d(b.wa);a.Wg=b.Wg.slice(0);a.Mm=b.Mm.slice(0);a.pb=b.pb.slice(0);a.Ac=b.Ac.slice(0);
a.ra=b.ra.slice(0);a.le=b.le.slice(0);a.Yg=b.Yg.slice(0);a.bg=b.bg.slice(0);a.Fx=b.Fx.slice(0);a.pC=b.pC.slice(0);return a};d.prototype.Lva=function(b){var a=this.Mm.indexOf(b);if(!f.v(b)&&-1<a){for(b=0;b<this.Yg.length;b++)void 0===this.dh[b]&&(this.dh[b]=[]),void 0!==this.Ac[b]?(this.Ac[b][a]=NaN,this.dh[b][a]={So:-this.Ac[b][a],Yr:-1}):this.dh[b][a]={So:0,Yr:0};this.Wg=f.Ha.Iq(this.Wg,this.Wg.indexOf(a));this.Mm[a]=null}};d.prototype.update=function(b,a,c){var e=this.Mm.indexOf(c);if(!f.v(c)&&
-1<e){for(c=0;c<this.Yg.length;c++)if(this.Ac[c]&&this.Ac[c][e]!==a[c]){var g=a[c]-this.Ac[c][e];isNaN(g)||(null==this.dh[c]&&(this.dh[c]=[]),this.dh[c][e]={So:g,Yr:g/this.Ac[c][e]})}for(c=0;c<a.length;c++)this.Ac[c][e]=a[c];for(c=0;c<b.length;c++)this.pb[c][e]=b[c]}else{e=this.Iw;f.v(c)||(this.Mm[e]=c);for(c=0;c<this.Yg.length;c++)g=a[c],isNaN(g)||(null==this.dh[c]&&(this.dh[c]=[]),this.dh[c][e]={So:g,Yr:1});this.Wg=f.Ha.Hq(this.Wg,e);for(c=0;c<b.length;c++)this.pb[c]=f.Ha.Hq(this.pb[c],b[c]);for(c=
0;c<a.length;c++)this.Ac[c]=f.Ha.Hq(this.Ac[c],a[c])}};d.prototype.insert=function(b,a,c){if(!(-1<b.indexOf(0))){var e;if(0===this.pb.length)for(e=0;e<b.length;e++)this.pb[e]=[];this.Wg=f.Ha.Hq(this.Wg,this.Iw);f.v(c)||(this.Mm[this.Iw]=c);for(e=0;e<b.length;e++)this.pb[e]=f.Ha.Hq(this.pb[e],b[e]);if(0===this.Ac.length)for(e=0;e<a.length;e++)this.Ac[e]=[];for(e=0;e<a.length;e++)this.Ac[e]=f.Ha.Hq(this.Ac[e],a[e])}};d.prototype.b0=function(b,a,c,e,g){if(0!=b.length){var l;for(l=0;l<b.length;l++){var m=
this.Ac[c][b[l]];isNaN(m)||this.Ac[c]instanceof Uint8Array&&0==m||g[m]||(e.push(m),g[m]=!0)}if(this.Ti.length!=a.length)for(l=0;l<e.length;l++){m=a.slice(0);m.push(e[l]);var n=this.Jn(b,m,this.Ti);this.b0(n,m,c,e,g)}}};d.prototype.MHa=function(b,a,c,e){b=this.cb[b[0]];a=a[0];var g=[];this.dh=[];this.dh[b]=[];this.values=[];this.Ym=[];if(null!=c){var l=c.UR(e);var m=this.Fca(c.va(this.pb[a][b]),"string"==typeof e);if(null==l)if(1==this.haa(a,this.pb[a][b])){l=c.va(this.pb[a][b]);var n=this.c0(c,e);
n.ordinal=l.ordinal;c.vga(n)}else l=null!=c.Db(e)?c.fc(new k.I.Rd({uniqueName:f.O.aL(),caption:e})):c.fc(new k.I.Rd({uniqueName:e,caption:e}));this.pb[a][b]=l.ordinal;n=null!=this.Mm[b]?this.Mm[b]:b;g.push({id:n,field:c.uniqueName,value:e,oldValue:m});c=parseFloat(e)-this.Ac[a][b];this.dh[b][a]={So:c,Yr:c/this.Ac[a][b]};this.Ac[a][b]=parseFloat(e);0<g.length&&this.wa.Gga(g);return l.ordinal}};d.prototype.Fca=function(b,a){return null==b?"":a?b.caption:b.ec};d.prototype.save=function(b,a,c,e,g){var l=
this.cd(b,this.vd),m=this.cd(a,this.Md);g=(b.length*m[0][0].length<a.length*l[0][0].length?this.Jn(m[0][0],b,this.uh):this.Jn(l[0][0],a,this.Ti))[g];b=[];a=this.Yg.indexOf(this.wa.I.Ee(c.uniqueName).uniqueName);this.dh=[];this.dh[a]=[];l=parseFloat(e)-this.Ac[a][g];this.dh[a][g]={So:l,Yr:l/this.Ac[a][g]};this.Ac[a][g]=parseFloat(e);this.values=[];this.Ym=[];if(null!=c){m=this.le.indexOf(c.uniqueName);var n=this.haa(m,this.pb[m][g]);l=c.UR(e);l=null===l?c.Db(e):l;a=this.Fca(c.va(this.pb[m][g]),"string"==
typeof e);null==l&&(1==n?(l=c.va(this.pb[m][g]),n=this.c0(c,e),n.ordinal=l.ordinal,c.vga(n)):l=c.fc(this.c0(c,e)));l.ec=e;this.pb[m][g]=l.ordinal;g=null!=this.Mm[g]?this.Mm[g]:g;b.push({id:g,field:c.uniqueName,value:e,oldValue:a});0<b.length&&this.wa.Gga(b);return l.ordinal}};d.prototype.c0=function(b,a){b=this.wa.I.Ee(b.uniqueName);k.i.Ja.Oa==b.type?(b=f.O.Gw(a,f.model.B.C.mq,f.model.B.C.Mj),a=new k.I.Rd({uniqueName:b,caption:b,ec:a})):k.i.Ja.sc==b.type?a=new k.I.Rd({uniqueName:a.toString(),caption:a.toString()}):
k.i.Ja.Yb==b.type?(b=f.O.Hw(a,f.model.B.C.Cp),a=new k.I.Rd({uniqueName:b,ec:a})):a=new k.I.Rd({uniqueName:a.toString(),caption:a.toString(),ec:a});return a};d.prototype.haa=function(b,a){for(var c=0,e=0;e<this.Iw;e++)this.pb[b][e]==a&&c++;return c};d.prototype.drillThrough=function(b,a){var c=[];c.push(this.le);var e=this.cd(b,this.vd);if(f.v(e)||f.v(e[0])||f.v(e[0][0]))return c;var g=this.cd(a,this.Md);if(f.v(g)||f.v(g[0])||f.v(g[0][0]))return c;b=b.length*g[0][0].length<a.length*e[0][0].length?
this.Jn(g[0][0],b,this.uh):this.Jn(e[0][0],a,this.Ti);for(a=0;a<b.length;a++){e=[];for(g=0;g<this.pb.length;g++)e.push(this.pb[g][b[a]]);c.push(e)}return c};d.prototype.hC=function(b,a,c){b=this.rr(b,a);a=c.Ka?this.slice.ad().findIndex(function(e){return e.uniqueName===c.uniqueName})+this.Yg.length:this.Yg.indexOf(c.uniqueName);return void 0==this.Ym[b]?null:this.Ym[b][a]};d.prototype.vca=function(b,a){if(a.Ka)return null;a=this.Yg.indexOf(a.uniqueName);return null==b?this.nZ(this.cb,a):void 0==this.Ym[b]?
null:this.Ym[b][a]};d.prototype.Pt=function(b){return null==this.cb[b]||null==this.pb[0][this.cb[b]]||""==this.wa.I.id?null:this.Mm[this.cb[b]]};d.prototype.zza=function(b,a){if(0==this.Mm.length)return null;var c=this.cd(b,this.vd);if(f.v(c)||f.v(c[0])||f.v(c[0][0]))return null;var e=this.cd(a,this.Md);if(f.v(e)||f.v(e[0])||f.v(e[0][0]))return null;b=b.length*e[0][0].length<a.length*c[0][0].length?this.Jn(e[0][0],b,this.uh):this.Jn(c[0][0],a,this.Ti);a=[];for(c=0;c<b.length;c++)a.push(this.Mm[b[c]]);
return 0==a.length?null:a};d.prototype.rS=function(b,a,c,e,g){if(this.wa.fa.NL)return 0===this.pb[0][b]&&this.Xxa(b),this.pb[a][b];if(null==this.cb[b]||null==this.pb[0][this.cb[b]])return NaN;if(e)return!c.Ka&&this.dh.length&&(e=this.Yg.indexOf(c.uniqueName),null==this.Ym[b]&&(this.Ym[b]=[]),this.Ym[b][e]=this.nZ([this.cb[b]],e)),c.Ka?this.qq([this.cb[b]],c.Sd,c.gl,0,null,null,c.Eo):this.Ac[a][this.cb[b]];this.Ac.length!=this.pb.length&&(a=this.le.indexOf(this.Yg[a]),void 0!==g&&(a=this.ra[a][g]));
return this.pb[a][this.cb[b]]};d.prototype.Fa=function(b,a,c){var e=this.rr(b,a),g=this.Eh(c);if(f.v(this.values[g])||-1==g)this.values[g]=[];g=this.values[g];if(!g[e]){var l=this.cd(b,this.vd),m=this.cd(a,this.Md);if(null==l||null==l[0]||null==m||null==m[0])return NaN;var n=[],p=this.Yg.indexOf(c.uniqueName);0<m.length&&0<l.length&&b.length*m[0][0].length<a.length*l[0][0].length?n=this.Jn(m[0][0],b,this.uh):0<l.length&&(n=this.Jn(l[0][0],a,this.Ti));if(c.Ka){if(b=this.qq(n,c.Sd,c.gl,0,b,a,c.Eo),
!0===b||!1===b)b=!0===b?1:0}else b=c.$==k.i.ca.hj?c.type==k.i.Ja.sc?this.pS(n,c):this.oca(n,b,a,p):this.CA(n,p,c.$);g[e]=b;0<this.dh.length&&(null==this.Ym[e]&&(this.Ym[e]=[]),this.Ym[e][p]=this.nZ(n,p));return b}return g[e]};d.prototype.nZ=function(b,a){if(void 0==this.dh[a])return null;for(var c=!1,e={So:0,Yr:0},g=0;g<b.length;g++)this.dh[a][b[g]]&&0!=this.dh[a][b[g]].So&&!isNaN(this.dh[a][b[g]].So)&&(e.So+=this.dh[a][b[g]].So,e.Yr+=this.dh[a][b[g]].Yr,c=!0);return c?e:null};d.prototype.pack=function(){if(!this.wa.fa.NL){var b=
this.wa.I.rc(!1);65536>this.Wg.length?this.Wg=new Uint16Array(this.Wg):4294967296>this.Wg.length&&(this.Wg=new Uint32Array(this.Wg));var a;for(a=0;a<b.length;a++){var c=b.ea(a),e=this.le.indexOf(c.uniqueName);-1===e&&(e=this.le.indexOf(c.caption));for(var g=1;g<this.ra[e].length;g++)256>c.vi&&this.pb.hasOwnProperty(this.ra[e][g])?this.pb[this.ra[e][g]]=new Uint8Array(this.pb[this.ra[e][g]]):65536>c.vi&&this.pb.hasOwnProperty(this.ra[e][g])?this.pb[this.ra[e][g]]=new Uint16Array(this.pb[this.ra[e][g]]):
4294967296>c.vi&&this.pb.hasOwnProperty(this.ra[e][g])&&(this.pb[this.ra[e][g]]=new Uint32Array(this.pb[this.ra[e][g]]))}for(a=0;a<this.Yg.length;a++)c=b.getItem(this.Yg[a]),null!=c&&(c=this.wa.I.XB(c.uniqueName),c!==k.i.input.pa.fb&&c!==k.i.input.pa.gj&&c!==k.i.input.pa.Dc&&c!==k.i.input.pa.Yb&&(this.Ac[a]=new Uint8Array(this.Ac[a])))}};d.prototype.filter=function(){this.Md=[];this.vd=[];this.values=[];this.SP=[];this.al=[];this.Ym=[];this.rsa();this.pack();var b=f.model.B.C.oc&&f.model.B.C.he!=
f.K.xd.Ki,a=this.slice.rc(!1,!0,b),c=new f.nb,e=new f.nb,g,l,m=this.slice.ad();for(g=0;g<a.length;g++)(l=a.ea(g))&&l.filter.$g&&(l.filter.ai?(b?e.Pa(l.uniqueName,l):m.find(function(n){return n.uniqueName===l.filter.measure.uniqueName})&&!this.slice.pages.Bb(l.uniqueName)&&e.Pa(l.uniqueName,l),l.filter.$h&&c.Pa(l.uniqueName,l)):c.Pa(l.uniqueName,l));this.dv(c,this.Wg);for(g=0;g<e.length;g++)l=e.ea(g),!b||l.filter.wy&&l.filter.measure&&this.wa.I.mt.Bb(l.filter.measure.uniqueName)?this.zsa(l):this.osa(l);
this.dv(e,this.cb)};d.prototype.dv=function(b,a){for(var c=[],e=[],g=0;g<b.length;g++){var l=b.ea(g),m=this.le.indexOf(l.uniqueName);if(l.filter.$g){c.push(m);e.push(l.Nwa().length/l.yd.children.length);this.filters[m]=[];this.Ew[m]=[];for(var n=0;n<l.cb.length;n++){var p=l.va(l.cb[n]);1===p.level.sb?this.filters[m][p.ordinal]=!0:(void 0===this.Ew[m][p.root.ordinal]&&(this.Ew[m][p.root.ordinal]=[]),void 0===this.Ew[m][p.root.ordinal][p.level.sb]&&(this.Ew[m][p.root.ordinal][p.level.sb]=[]),this.Ew[m][p.root.ordinal][p.level.sb][p.ordinal]=
!0)}}}e=f.Ha.sort(e,f.Ha.Ru|f.Ha.mi);if(0<c.length)for(g=0;g<c.length;g++){b=c[e[g]];l=[];for(m=0;m<a.length;m++)if(n=this.pb[this.ra[b][1]][a[m]],!0===this.filters[b][n])l.push(a[m]);else if(void 0!==this.Ew[b][n])for(p=2;p<this.ra[b].length;p++)if(void 0!==this.Ew[b][n][p]&&!0===this.Ew[b][n][p][this.pb[this.ra[b][p]][a[m]]]){l.push(a[m]);break}a=l}this.cb=a};d.prototype.Wpa=function(b){var a=this.le.indexOf(b.kC.uniqueName),c=this.le.indexOf(b.uniqueName);-1===a&&(a=this.Jl(b.kC.uniqueName,b.uniqueName),
this.ra[c].pop(),this.ra[c].splice(1,0,a));var e=[],g;for(g in b.groups)for(var l=b.Db(b.Kl(g)),m=0;m<b.groups[g].length;m++){var n=b.va(b.groups[g][m]);null!==n&&(e[n.ordinal]=l.ordinal)}b=b.Db(b.Kl("Others"));void 0===this.pb[a]&&(this.pb[a]=[]);for(g=0;g<this.Iw;g++)n=this.pb[c][g],this.pb[a][g]=void 0!==e[n]?e[n]:b.ordinal};d.prototype.dqa=function(b){var a=this.le.indexOf(b.uniqueName);if(this.ra[a]&&this.ra[a].length>b.ra.length)for(var c=0;c<this.ra[a].length;c++)if(!b.ra.Bb(this.le[this.ra[a][c]])){this.ra[a].splice(c,
1);break}};d.prototype.rsa=function(){var b,a,c=this.slice.rc(!1);for(b=0;b<c.length;b++)(a=c.ea(b))&&(null!=a.kC?this.Wpa(a):this.dqa(a))};d.prototype.osa=function(b){if(b.filter.ai){var a=this.wa.I.measures.getItem(b.filter.measure.uniqueName);if(void 0!==a){for(var c=[],e=[],g=this.Yg.indexOf(a.uniqueName),l=0;l<this.cb.length;l++)c.push(this.rS(l,g,a,!0)),e.push(this.rS(l,g,a,!1));b.filter.query.ta==k.i.tc.Bj?b.cb=this.nsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.ji?b.cb=this.esa(c,
e,b.filter.query.value):b.filter.query.ta==k.i.tc.EQUAL?b.cb=this.fsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.If?b.cb=this.lsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.GREATER?b.cb=this.hsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Kk?b.cb=this.gsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.LESS?b.cb=this.jsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Lk?b.cb=this.isa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Sg?b.cb=this.dsa(c,e,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.ta==k.i.tc.Jg&&(b.cb=this.ksa(c,e,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])))}}};d.prototype.nsa=function(b,a,c){var e=[];b=f.Ha.sort(b,f.Ha.ko|f.Ha.Ru|f.Ha.mi);c=Math.min(c,a.length);for(var g=0;g<c;g++)e.push(a[b[g]]);return e};d.prototype.esa=function(b,a,c){var e=[];b=f.Ha.sort(b,f.Ha.Ru|f.Ha.mi);c=Math.min(c,a.length);for(var g=
0;g<c;g++)e.push(a[b[g]]);return e};d.prototype.fsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]==c&&e.push(a[l]);return e};d.prototype.lsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]!=c&&e.push(a[l]);return e};d.prototype.hsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]>c&&e.push(a[l]);return e};d.prototype.gsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]>=c&&e.push(a[l]);return e};d.prototype.jsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]<
c&&e.push(a[l]);return e};d.prototype.isa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]<=c&&e.push(a[l]);return e};d.prototype.dsa=function(b,a,c,e){for(var g=[],l=a.length,m=0;m<l;m++)b[m]>=c&&b[m]<=e&&g.push(a[m]);return g};d.prototype.ksa=function(b,a,c,e){for(var g=[],l=a.length,m=0;m<l;m++)(b[m]<c||b[m]>e)&&g.push(a[m]);return g};d.prototype.zsa=function(b){if(b.filter.ai){var a=this.slice.Zh(b.filter.measure);if(void 0!==a){var c=[],e=[],g=[],l=this.le.indexOf(b.uniqueName);l=this.ra[l][b.nc?
b.nc.sb:1];if(this.al[l])for(var m in this.al[l])g.push(this.al[l][m]);else g=[l];l=[];for(m=0;m<g.length;m++)for(var n=0;n<this.cb.length;n++){var p=this.pb[g[m]][this.cb[n]];null==l[p]&&(l[p]=[]);l[p].push(this.cb[n])}g=this.Yg.indexOf(a.uniqueName);n=b.filter.$h?b.filter.pj():b.pr;p=a.Ka;var t=b.nc?b.nc.sb:1;for(m=0;m<n.length;m++){var r=b.va(n[m]);if(!r.Wb&&r.level.sb==t&&void 0!==l[r.ordinal]){if(p){var v=f.v(this.Fx[g])?a.Sd:this.Fx[g];var z=f.v(this.pC[g])?a.gl:this.pC[g];v=this.qq(l[r.ordinal],
v,z,0,null,null,a.Eo)}else v=l[r.ordinal],v=a.$==k.i.ca.hj?this.pS(v,a):this.CA(v,g,a.$);isNaN(v)&&(v=Number.MIN_VALUE);c.push(v);e.push(r.ordinal)}}b.filter.query.ta==k.i.tc.Bj?b.cb=this.ysa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.ji?b.cb=this.asa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.EQUAL?b.cb=this.bsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.If?b.cb=this.wsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.GREATER?b.cb=this.qsa(c,e,b.filter.query.value):
b.filter.query.ta==k.i.tc.Kk?b.cb=this.psa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.LESS?b.cb=this.tsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Lk?b.cb=this.ssa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Sg?b.cb=this.$ra(c,e,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.ta==k.i.tc.Jg&&(b.cb=this.vsa(c,e,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],
b.filter.query.value[1])))}}};d.prototype.ysa=function(b,a,c){var e=[];b=f.Ha.sort(b,f.Ha.ko|f.Ha.Ru|f.Ha.mi);c=Math.min(c,a.length);for(var g=0;g<c;g++)e.push(a[b[g]]);return e};d.prototype.asa=function(b,a,c){var e=[];b=f.Ha.sort(b,f.Ha.Ru|f.Ha.mi);c=Math.min(c,a.length);for(var g=0;g<c;g++)e.push(a[b[g]]);return e};d.prototype.bsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]==c&&e.push(a[l]);return e};d.prototype.wsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]!=c&&e.push(a[l]);
return e};d.prototype.qsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]>c&&e.push(a[l]);return e};d.prototype.psa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]>=c&&e.push(a[l]);return e};d.prototype.tsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]<c&&e.push(a[l]);return e};d.prototype.ssa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]<=c&&e.push(a[l]);return e};d.prototype.$ra=function(b,a,c,e){for(var g=[],l=a.length,m=0;m<l;m++)b[m]>=c&&b[m]<=e&&g.push(a[m]);
return g};d.prototype.vsa=function(b,a,c,e){for(var g=[],l=a.length,m=0;m<l;m++)(b[m]<c||b[m]>e)&&g.push(a[m]);return g};d.prototype.CA=function(b,a,c){return null===b||-1===a?NaN:0===b.length?c===k.i.ca.sc?0:NaN:c===k.i.ca.NONE?this.Ac[a][b[0]]:c===k.i.ca.sc?this.xya(b,a):c===k.i.ca.hj?this.oca(b,[],[],a):c===k.i.ca.Wq?this.tza(b,a):c===k.i.ca.Su?this.Nza(b,a):c===k.i.ca.Tu?this.Oza(b,a):1===b.length?this.Ac&&this.Ac[a]?this.Ac[a][b[0]]:NaN:c===k.i.ca.Up||c===k.i.ca.ro||c===k.i.ca.Tp||c===k.i.ca.Rp||
c===k.i.ca.Sp||c===k.i.ca.li||c===k.i.ca.dn||c===k.i.ca.im||c===k.i.ca.jn||c===k.i.ca.km||c===k.i.ca.nm||c===k.i.ca.ln?this.u0(b,a):c===k.i.ca.Bs?this.xza(b,a):c===k.i.ca.Hp?this.Yba(b,a):c===k.i.ca.Mu?this.fza(b,a):c===k.i.ca.MAX?this.bza(b,a):c===k.i.ca.MIN?this.iza(b,a):0};d.prototype.yL=function(){return this.pb};d.prototype.gH=function(){this.uZ();for(var b,a=this.wa.I.Z_(),c=0;c<a.length;c++){var e=a[c];b=this.wa.I.VB(e);if(b instanceof h.I.h7)k.i.Lz.Zz==b.type?(this.Jl(e+".Year"),this.Bm(this.wa.I.Ee(e+
".Year")),this.Jl(e+".Month"),this.Bm(this.wa.I.Ee(e+".Month")),this.Jl(e+".Day"),this.Bm(this.wa.I.Ee(e+".Day"))):b.Ma.Bb(e)&&(this.Jl(e),this.Bm(this.wa.I.Ee(e)));else if(b instanceof h.I.Yz)for(this.Jl(e),this.Bm(this.wa.I.Ee(e)),e=2;e<b.ra.length;e++){var g=b.ra.ea(e);this.Jl(g.uniqueName,b.uniqueName)}else b instanceof h.I.FW&&(1===b.sb?(this.Jl(b.hierarchy.uniqueName),this.Bm(this.wa.I.Ee(b.hierarchy.uniqueName))):this.Jl(b.uniqueName,b.hierarchy.uniqueName))}if(this.slice){for(c=0;c<this.wa.I.measures.length;c++)b=
this.wa.I.measures.ea(c),this.Jl(b.uniqueName),this.Bm(b);for(c=0;c<this.slice.Of.length;c++)b=this.slice.Of[c],this.Jl(b.uniqueName),this.Bm(b)}};d.prototype.Bm=function(b){b&&(this.RJ(b),this.xx(b))};d.prototype.b$=function(b){for(var a=this.wa.I.VB("Browser"),c=0;c<b.length;c++)a.fc(new k.I.Rd({uniqueName:b[c].value}))};d.prototype.Xxa=function(b){var a=this.Cfa(b,{from:0,Ep:500,ow:30})+1,c=this.Cfa(b,{from:0,Ep:30,ow:0})+1,e=.3>Math.abs(Math.sin(7*b))?1:0;this.pb[0][b]=this.EGa(5*b,this.rX)+1;
this.pb[1][b]=a*(4>c?c:10>c?Math.round(c/3):Math.round(c/7));this.pb[2][b]=c;this.pb[3][b]=e};d.prototype.P_=function(b){this.b$(this.rX);var a=x.Bd().Vl?5E5:1E6;this.pb=[];this.pb[0]=new Uint8Array(a);this.pb[1]=new Uint16Array(a);this.pb[2]=new Uint8Array(a);this.pb[3]=new Uint8Array(a);this.Wg[a-1]=a;this.vd=[];this.vd=[[this.cb,[],[],void 0,void 0]];this.Md=[[this.cb,[],[],void 0,void 0]];this.b$(this.rX);b()};d.prototype.Cfa=function(b,a){b=Math.abs(Math.sin(1.17*b))*(a.Ep-a.from)+a.from;if(b>=
a.ow){var c=(b-a.ow)/(5*(a.Ep-a.ow));a=(b-a.ow)*c+a.ow}else c=(a.ow-b)/(5*(a.ow-a.from)),a=(a.ow-b)*c+a.from;return Math.round(a)};d.prototype.EGa=function(b,a){b=Math.abs(Math.sin(b));for(var c=0,e=0;e<a.length;e++)if(c+=a[e].BM,c>b)return e;return a.length-1};h.xO=d})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){c=k.I.nf.call(this,a,void 0===c?"":c)||this;c.Je=f.model.B.C.Je;a=new d.FW(a+".[(all)]","All",0);c.ph(a);c.tn="(all member)";c.xt="(all member)";a=new k.I.Rd({uniqueName:"(all member)",caption:"All",Wb:!0});k.I.nf.prototype.fc.call(c,a);return c}u(b,k.I.nf);b.prototype.fc=function(a,c){if(void 0===c)return k.I.nf.prototype.fc.call(this,a);if(f.ha(a.value)||"null"===a.value||"undefined"===a.value)f.model.B.C.zr?a.uniqueName=a.value+
"":(a.uniqueName=void 0===a.parent?"":("["===a.parent.uniqueName.substr(0,1)?a.parent.uniqueName:"["+a.parent.uniqueName+"]")+".[]",a.caption=a.value=""),""===a.caption&&(a.caption=f.model.A.j.Mk);if(c===k.i.input.pa.fb)c=this.Mra(a);else if(c===k.i.input.pa.Sc||c===k.i.input.pa.om||c===k.i.input.pa.Hg)c=this.l$(a);else if(c===k.i.input.pa.Oa)c=this.ora(a);else if(c===k.i.input.pa.qf)c=this.Fra(a,a.level);else if(c===k.i.input.pa.Np)c=this.e$(a,!1);else if(c===k.i.input.pa.oo)c=this.e$(a,!0);else if(c===
k.i.input.pa.gj)c=this.qra(a);else if(c===k.i.input.pa.Dc)c=this.sra(a);else if(c===k.i.input.pa.Yb)c=this.Tra(a);else{if(c===k.i.input.pa.Vw||c===k.i.input.pa.U6||c===k.i.input.pa.mE)return null;c=this.l$(a)}void 0!==a.gf&&c.gf.Cra(a.gf);return c};b.prototype.bC=function(){return new d.sma(this)};b.prototype.Kl=function(a){return(void 0===a?"(Total)":a).toLocaleLowerCase()};b.prototype.getTimezoneOffset=function(){if(this.type!==k.i.Gc.Oa)return null;if(!f.v(this.Yk))return x.gh.Sf(this.Yk);var a=
this.mapping.Fa(this.uniqueName,"format");if(!f.v(a))return x.gh.Sf(a);a=this.ra.ea(1);if(a.type===k.i.eb.Oa||a.type===k.i.eb.gj){if(a=x.gh.Sf(f.model.B.C.mq),null!==a)return a}else if(a.type===k.i.eb.Dc&&(a=x.gh.Sf(f.model.B.C.Yk),null!==a))return a;return f.v(f.model.B.C.Mj)||isNaN(f.model.B.C.Mj)?null:f.model.B.C.Mj};b.prototype.l$=function(a){var c=void 0===a.uniqueName?a.value+"":a.uniqueName,e=this.Db(c);null===e&&(a.uniqueName=c,void 0===a.caption&&(a.caption=a.value+""),e=k.I.nf.prototype.fc.call(this,
a));return e};b.prototype.Mra=function(a){var c=void 0===a.uniqueName?a.value+"":a.uniqueName;if(!this.Je){var e=this.Db(c);null===e&&(a.uniqueName=c,void 0===a.caption&&(a.caption=a.value+""),a.ec=f.model.B.C.zr&&f.v(a.value)?a.value:f.O.C4(a.value),e=k.I.nf.prototype.fc.call(this,a))}return e};b.prototype.sra=function(a){var c=new f.Gg(a.value,{yx:!1});c.dj(this.getTimezoneOffset());this instanceof k.external.kc.I.CN||c.round(this.interval);c=c.getTime();var e=a.uniqueName;if(void 0===a.uniqueName||
f.v(a.parent)&&f.v(a.ei))e=isNaN(c)?f.model.A.j.cn:""+c;var g=this.Db(e);null===g&&(a.uniqueName=e,a.ec=c,g=k.I.nf.prototype.fc.call(this,a));return g};b.prototype.Tra=function(a){var c=parseFloat(a.value),e=this.mapping.Fa(this.uniqueName,"format",f.model.B.C.Cp),g=isNaN(c)||""===String(a.value).trim()||c.toString()!==a.value.toString();e=g?"":f.O.Hw(c,e);g=g?"":""+c;var l=this.Db(g);null===l&&(a.uniqueName=g,a.caption=e,a.ec=c,l=k.I.nf.prototype.fc.call(this,a));return l};b.prototype.qra=function(a){var c=
new f.Gg(a.value,{yx:!1});c.dj(this.getTimezoneOffset());this instanceof k.external.kc.I.CN||c.round(this.interval);var e=c.getTime();c=e;var g=a.uniqueName;if(void 0===a.uniqueName||f.v(a.parent)&&f.v(a.ei))g=isNaN(e)?f.model.A.j.cn:""+e;!f.model.B.C.zr||null!==a.value&&"null"!==a.value||(g="null",c=null);e=this.Db(g);null===e&&(a.uniqueName=g,a.ec=c,e=k.I.nf.prototype.fc.call(this,a));return e};b.prototype.e$=function(a,c){var e=new f.Gg(a.value,{yx:!1});f.v(f.model.B.C.Mj)||e.dj(f.model.B.C.Mj);
var g="";if(null!=e&&!isNaN(e.getTime())&&e.Cg()){var l=f.model.A.j.T7[Math.floor(e.getMonth()/3)];var m=f.model.A.j.Vq[e.getMonth()];var n=e.getDate().toString();var p=e.getFullYear().toString();e=e.getTime()}else return n=f.model.A.j.cn,p=this.Db(n),null===p&&(a.uniqueName=n,a.caption=n,p=k.I.nf.prototype.fc.call(this,a)),p;var t=""+p,r=p;p=this.Db(t);null===p&&(a.uniqueName=t,a.caption=r,p=k.I.nf.prototype.fc.call(this,a));c&&(c="["+t+"].["+l+"]",r=l,g=p,p=this.Db(c),null===p&&(a.uniqueName=c,
a.caption=r,a.parent=g,p=k.I.nf.prototype.fc.call(this,a)),g=".["+l+"]");l=m;m="["+t+"]"+g+".["+m+"]";g=p;p=this.Db(m);null===p&&(a.uniqueName=m,a.caption=l,a.parent=g,p=k.I.nf.prototype.fc.call(this,a));l=n;n=m+".["+n+"]";g=p;p=this.Db(n);null===p&&(a.uniqueName=n,a.caption=l,a.parent=g,a.ec=e,p=k.I.nf.prototype.fc.call(this,a));return p};b.prototype.ora=function(a){var c=[],e=new f.Gg(a.value,{yx:!1});f.v(f.model.B.C.Mj)||e.dj(f.model.B.C.Mj);if(null!==e&&!isNaN(e.getTime())&&e.Cg()){var g=f.model.A.j.Vq[e.getMonth()];
var l=e.getDate().toString();var m=e.getFullYear().toString();var n=e.getTime()}else{l=f.model.A.j.cn;for(n=0;3>n;n++){a=this.wi.Ma.ea(n);var p=a.Db(l);null===p&&(p=a.fc(new k.I.Rd({uniqueName:l})));c.push(p)}return c}a=this.wi.Ma.ea(0);var t=this.wV(m);p=a.Db(t);null===p&&(p=a.fc(new k.I.Rd({uniqueName:m,caption:t,ec:e.getFullYear()})));c.push(p);a=this.wi.Ma.ea(1);m=this.wV(g);p=a.Db(m);null===p&&(p=a.fc(new k.I.Rd({uniqueName:g,caption:m})));c.push(p);a=this.wi.Ma.ea(2);g=this.wV(l);p=a.Db(g);
null===p&&(p=a.fc(new k.I.Rd({uniqueName:l,caption:g,ec:n})));c.push(p);return c};b.prototype.wV=function(a){return a&&0<a.length&&"NaN"!=a?a:f.model.A.j.cn};b.prototype.Fra=function(a,c){var e=void 0===a.parent?this.Db(a.ei):a.parent;null===e&&void 0!==a.ei&&(e=this.UR(a.ei));var g=f.v(a.uniqueName)||!f.v(a.ei)&&"["===a.ei.substr(0,1)||!f.v(a.uniqueName)&&"["===a.uniqueName.substr(0,1)?a.value+"":a.uniqueName;if(1<c.sb){var l=c.hierarchy.ra.ea(c.sb-1);null===e&&(e=c.hierarchy.Db(f.model.A.j.Mk),
null===e&&(e=l.hierarchy.fc(new k.I.Rd({uniqueName:f.model.A.j.Mk,caption:f.model.A.j.Mk}))));g=1===l.sb?"["+e.uniqueName+"].["+g+"]":e.uniqueName+".["+g+"]"}l=c.hierarchy.Db(g);null===l&&(a.uniqueName=g,a.caption=f.v(a.caption)?a.value:a.caption,a.parent=1<c.sb?e:void 0,l=this.fc(a,k.i.eb.wD(c.type)));return l};b.prototype.Ji=function(){var a=k.I.nf.prototype.Ji.call(this);a.type=this.inputType;return a};b.prototype.clone=function(){var a=k.I.nf.prototype.clone.call(this);a.ZP=this.ZP;return a};
q.Object.defineProperties(b.prototype,{interval:{configurable:!0,enumerable:!0,get:function(){return this.type===k.i.Gc.Oa?this.ZP:null},set:function(a){if(this.type===k.i.Gc.Oa){var c=a.substr(-1);if("y"===c||"q"===c||"M"===c||"w"===c)a="1"+c;this.ZP=a}else this.ZP=null}},Yk:{configurable:!0,enumerable:!0,get:function(){return this.hqa},set:function(a){this.hqa=a}},inputType:{configurable:!0,enumerable:!0,get:function(){return this.YP},set:function(a){this.YP=a}},ce:{configurable:!0,enumerable:!0,
get:function(){return!0},set:function(){}}});d.Yz=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(a,c,e){return k.I.$m.call(this,a,void 0===c?"":c,void 0===e?0:e)||this}u(b,k.I.$m);d.FW=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return k.I.Pq.apply(this,arguments)||this}u(b,k.I.Pq);b.prototype.La=function(){var a=k.I.Pq.prototype.La.call(this);a.uniqueName=this.Xi;this.parent&&(a.parentMember=this.parent.Xi);return a};d.sma=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){return k.I.ek.call(this,a,void 0===c?"":c)||this}u(b,k.I.ek);b.prototype.clone=function(){var a=new b(this.uniqueName);this.xK(a);return a};b.prototype.Ji=function(){var a=k.I.ek.prototype.Ji.call(this),c=k.Na.U().I.Vj(this.uniqueName);f.v(c)?a.type=k.i.input.pa.fb:a.type=c.inputType;return a};q.Object.defineProperties(b.prototype,{ac:{configurable:!0,enumerable:!0,get:function(){return f.model.Nb.valid(this.qc)?this.qc:f.model.Nb.validate(this.qc)}},
caption:{configurable:!0,enumerable:!0,get:function(){if(!1===f.model.B.C.iz||this.Ka)return this.ac;switch(this.$){case k.i.ca.sc:return f.O.bind(f.model.A.j.LN,this.ac);case k.i.ca.Bs:return f.O.bind(f.model.A.j.QO,this.ac);case k.i.ca.hj:return f.O.bind(f.model.A.j.SN,this.ac);case k.i.ca.Hp:return f.O.bind(f.model.A.j.FN,this.ac);case k.i.ca.Mu:return f.O.bind(f.model.A.j.HW,this.ac);case k.i.ca.Su:return f.O.bind(f.model.A.j.ZO,this.ac);case k.i.ca.Tu:return f.O.bind(f.model.A.j.$O,this.ac);
case k.i.ca.MAX:return f.O.bind(f.model.A.j.zO,this.ac);case k.i.ca.MIN:return f.O.bind(f.model.A.j.IO,this.ac);case k.i.ca.Wq:return f.O.bind(f.model.A.j.QI,this.ac);case k.i.ca.ro:return f.O.bind(f.model.A.j.JI,this.ac);case k.i.ca.Tp:return f.O.bind(f.model.A.j.OI,this.ac);case k.i.ca.Rp:return f.O.bind(f.model.A.j.MI,this.ac);case k.i.ca.Sp:return f.O.bind(f.model.A.j.NI,this.ac);case k.i.ca.li:return f.O.bind(f.model.A.j.wI,this.ac);case k.i.ca.nm:return f.O.bind(f.model.A.j.RO,this.ac);case k.i.ca.ln:return f.O.bind(f.model.A.j.TO,
this.ac);case k.i.ca.dn:return f.O.bind(f.model.A.j.bI,this.ac);case k.i.ca.im:return f.O.bind(f.model.A.j.cI,this.ac);case k.i.ca.jn:return f.O.bind(f.model.A.j.KI,this.ac);case k.i.ca.km:return f.O.bind(f.model.A.j.LI,this.ac);case k.i.ca.NONE:return this.ac}return f.O.bind(f.model.A.j.WI,this.ac)},set:function(a){this.qc=a}},Yl:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(){}}});d.i7=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){return k.I.Oq.call(this,a,void 0===c?"":c)||this}u(b,k.I.Oq);d.h7=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=k.I.rs.call(this)||this;a.AR="";a.id="";a.ra=[];a.E0=!1;a.QA={};a.GA={};a.NY();a.Pe=new f.nb;a.yv={};a.Ty={};a.mk=new f.nb;a.types={};a.gf=[];a.AR="";a.id="";a.Je=f.model.B.C.Je;return a}u(b,k.I.rs);b.prototype.clear=function(){this.QA={};this.GA={};this.Pe=new f.nb;this.yv={};this.Ty={};this.mk=new f.nb;this.types={};this.id=this.AR="";k.I.rs.prototype.clear.call(this)};b.prototype.Mn=function(a,c){return new d.Yz(a,c)};b.prototype.Cca=
function(a,c){return new d.i7(a,c)};b.prototype.el=function(a,c,e){return new d.FW(a,c,e)};b.prototype.Vj=function(a){return this.QA[a]};b.prototype.Ee=function(a){return this.GA[a]};b.prototype.XB=function(a){if(void 0!==this.types[a])return this.types[a];a=this.Ty[a];if(!f.v(a))return this.types[a]};b.prototype.hca=function(a){return this.gf[a]};b.prototype.VB=function(a){var c=this.Pe.getItem(a);if(f.v(c)){if(a=this.yv[a],Array.isArray(a)){for(var e=[],g=0;g<a.length;g++)c=this.Pe.getItem(a[g]),
f.v(c)||e.push(c);return e}}else return c};b.prototype.Z_=function(a){a=void 0===a?!0:a;var c=this.Pe.Ic(!0);if(a||0===Object.keys(this.yv).length)return c;a=[];for(var e=0;e<c.length;e++)void 0!==this.Ty[c[e]]?-1===a.indexOf(this.Ty[c[e]])&&a.push(this.Ty[c[e]]):a.push(c[e]);return a};b.prototype.UJ=function(a,c){this.Je||(this.QA[a]=this.Mg(c),this.GA[c]=this.$c(a))};b.prototype.wo=function(a,c,e,g){c=this.Cca(a,c);c.type=e;g.hasOwnProperty("supportedAggregations")&&(c.bm=g.supportedAggregations);
c.Tc=g.availableAggregations;this.Hj(c);this.UJ(c.uniqueName,a);return c};b.prototype.k$=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Eu;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(m.caption==f.model.A.j.Mk?g+".[]":g,m.caption,1);a.type=k.i.eb.Sc;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.sc,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.yra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption;a.type=k.i.Lz.Zz;var m=
this.Mn(g,l);m.type=k.i.Gc.Oa;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);var n=g+".Year";a=this.el(n,f.model.A.j.Qk,m.ra.length);a.type=k.i.eb.Qk;m.ph(a);this.mk.Pa(n,a);c.type==k.i.input.pa.oo&&(n=g+".Quarter",a=this.el(n,f.model.A.j.Cs,m.ra.length),a.type=k.i.eb.Cs,m.ph(a),this.mk.Pa(n,a));n=g+".Month";a=this.el(n,f.model.A.j.Hg,m.ra.length);a.type=k.i.eb.Hg;m.ph(a);this.mk.Pa(n,a);n=g+".Day";a=this.el(n,f.model.A.j.hm,m.ra.length);a.type=k.i.eb.hm;m.ph(a);this.mk.Pa(n,a);this.Je||this.wo(g,l,k.i.Ja.sc,
c);f.v(c.interval)?m.interval=this.mapping.Fa(g,"interval","1d"):m.interval=c.interval;this.Pe.Pa(e,m);m.inputType=c.type};b.prototype.g$=function(a,c,e){var g=c.hasOwnProperty("hierarchy")?c.hierarchy:c.uniqueName,l=a.Mg(g);void 0===l&&(l=this.Mn(g,g),void 0!==c.folder&&(l.Qc=c.folder),a.Uh(l));var m=0;if(c.hasOwnProperty("parent")){m=l.Gt(c.parent);void 0===m&&(m=l.Gt(c.parent.toLowerCase()));if(void 0===m){void 0===this.ra[l.uniqueName]&&(this.ra[l.uniqueName]=[]);this.ra[l.uniqueName][c.parent]=
[c,e];return}m=l.ra.indexOf(m.uniqueName)}else l.type=k.i.Gc.M_(c.levelType);var n=c.hasOwnProperty("caption")?c.caption:c.hasOwnProperty("level")?c.level:e;m=this.el(e,n,m+1);m.type=k.i.eb.M_(c.levelType);l.ph(m);this.Je||f.v(this.$c(g))&&this.wo(g,g,k.i.Ja.sc,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);this.ra[l.uniqueName]&&this.ra[l.uniqueName][e]&&this.g$(a,this.ra[l.uniqueName][e][0],this.ra[l.uniqueName][e][1]);f.v(l.inputType)&&(l.inputType=c.type)};b.prototype.nra=function(a,c,e){var g=c.uniqueName,
l=f.ha(c.caption)?e:c.caption;a.type=k.i.Lz.Zz;var m=g+".Year",n=l+"."+f.model.A.j.Qk;var p=this.Mn(m,n);p.type=k.i.Gc.Oa;void 0!==c.folder&&(p.Qc=c.folder);f.v(c.interval)?p.interval=this.mapping.Fa(g,"interval","1d"):p.interval=c.interval;a.Uh(p);var t=this.el(m+"."+n,n,1);t.type=k.i.eb.Qk;p.ph(t);this.mk.Pa(m,t);this.Je||this.wo(m,n,k.i.Ja.sc,c);p.inputType=c.type;m=g+".Month";n=l+"."+f.model.A.j.Hg;p=this.Mn(m,n);void 0!==c.folder&&(p.Qc=c.folder);f.v(c.interval)?p.interval=this.mapping.Fa(g,
"interval","1d"):p.interval=c.interval;a.Uh(p);var r=this.el(m+"."+n,n,1);r.type=k.i.eb.Hg;p.ph(r);this.mk.Pa(m,t);this.Je||this.wo(m,n,k.i.Ja.sc,c);p.inputType=c.type;m=g+".Day";l=l+"."+f.model.A.j.hm;p=this.Mn(m,l);void 0!==c.folder&&(p.Qc=c.folder);f.v(c.interval)?p.interval=this.mapping.Fa(g,"interval","1d"):p.interval=c.interval;a.Uh(p);g=this.el(m+"."+l,l,1);g.type=k.i.eb.hm;p.ph(g);this.mk.Pa(m,t);this.Je||this.wo(m,l,k.i.Ja.sc,c);p.inputType=c.type;this.Pe.Pa(e,a)};b.prototype.Lra=function(a,
c,e,g){var l=c.uniqueName,m=f.ha(c.caption)?e:c.caption;this.Je?g?(l=this.wo(l,m,k.i.Ja.fb,c),f.ha(c.folder)?f.ha(c.dimensionCaption)?f.ha(c.dimensionUniqueName)||(l.yg=c.dimensionUniqueName):l.yg=c.dimensionCaption:l.yg=c.folder,this.Pe.Pa(e,l)):(g=this.Mn(l,m),g.type=k.i.Gc.Op,void 0!==c.folder&&(g.Qc=c.folder),a.Uh(g),l=this.el(l,m,1),l.type=k.i.eb.fb,g.ph(l),this.Pe.Pa(e,g),this.mk.Pa(e,g),g.inputType=c.type):(g=this.Mn(l,m),g.type=k.i.Gc.Op,void 0!==c.folder&&(g.Qc=c.folder),a.Uh(g),a=this.el(l,
m,1),a.type=k.i.eb.fb,g.ph(a),this.wo(l,m,k.i.Ja.fb,c),this.Pe.Pa(e,g),this.mk.Pa(e,g),g.inputType=c.type)};b.prototype.Jra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Oa;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(g,l,1);a.type=k.i.eb.Hg;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.sc,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.Vra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Eu;
void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(g,l,1);a.type=k.i.eb.hm;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.sc,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.pra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Oa;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(g,l,1);a.type=k.i.eb.Oa;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.Oa,c);f.v(c.interval)?m.interval=this.mapping.Fa(g,"interval","1d"):m.interval=c.interval;f.v(c.format)||
(m.Yk=c.format);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.Sra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Op;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(g,l,1);a.type=k.i.eb.Yb;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.Yb,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.rra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Oa;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);
a=this.el(g,l,1);a.type=k.i.eb.Dc;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.Dc,c);f.v(c.interval)?m.interval=this.mapping.Fa(g,"interval","1s"):m.interval=c.interval;f.v(c.format)||(m.Yk=c.format);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.aqa=function(a,c){for(var e=0;e<a.length;e++)if("string"!==typeof a[e])return!1;for(var g in c)if(-1===a.indexOf(g))return!1;return!0};b.prototype.AQ=function(a,c){if(a instanceof k.I.Aj){var e=a;a=a.mapping}else!f.v(c)&&k.I.Aj.nT(a)&&(e=new k.I.Aj(a));
if(void 0!==e){var g={};if(Array.isArray(c)){if(this.aqa(c,a))for(var l=0;l<c.length;l++){var m=c[l];g[m]=e.O1(m,a[m])}for(var n in a)void 0===g[n]&&(g[n]=a[n])}else{for(n in a)g[n]=a[n];for(n in c)g[n]="object"!==typeof a[n]?{uniqueName:n,caption:n,type:k.i.input.pa.M4(c[n])}:a[n]}}void 0===g&&(g=a);for(n in g)if(void 0!==e||"string"!==typeof g[n]&&"number"!==typeof g[n])if(void 0===e&&f.v(g[n]))this.EY(n,k.i.input.pa.Sc);else if(void 0===e&&g[n]instanceof Date)this.EY(n,f.model.B.C.yR);else if(void 0===
e&&Array.isArray(g[n]))this.ux(a[n],n);else if(g[n].hasOwnProperty("formula"))f.ha(g[n].formula)||this.ct(g[n],n);else if(Array.isArray(g[n]))this.ux(g[n],n);else{l=k.i.input.pa.Sc;g[n].hasOwnProperty("type")&&(c=String(g[n].type).trim().toLowerCase(),k.i.input.pa.valid(c),l=k.me.type(c));l!==k.i.input.pa.fb&&(a[n]&&delete a[n].isMeasure,delete g[n].isMeasure);g[n].hasOwnProperty("isMeasure")&&String(g[n].isMeasure).trim();c={};for(var p in g[n])c[p]=g[n][p];c.type=l;this.ux(c,n)}else c=k.i.input.pa.M4(g[n]),
this.EY(n,c);this.ce=!0};b.prototype.ct=function(a,c){c=new k.I.ek(c,void 0==a.caption?c:a.caption);c.qe=a.formula;c.Eo=void 0==a.calculateNaN?c.Eo:a.calculateNaN;a.hasOwnProperty("grandTotalCaption")&&(c.Ir=a.grandTotalCaption);f.model.B.C.GV&&(a=x.mO.PQ(c.qe,c.uniqueName),0==a.bw&&f.Va(a.errorMessage));f.model.Ta.U().ct(c)};b.prototype.EY=function(a,c){this.ux({uniqueName:a,caption:a,FK:a,type:c},a)};b.prototype.ux=function(a,c){c=void 0===c?"":c;if(!Array.isArray(a)){var e={},g;for(g in a)e[g]=
a[g];e.hasOwnProperty("uniqueName")||(e.uniqueName=c);a=this.mapping.O1(c,e)}if(!a.hasOwnProperty("visible")||!1!==a.visible)if(Array.isArray(a))for(this.yv[c]=[],e=0;e<a.length;e++)void 0===a[e].uniqueName&&(a[e].uniqueName=c+"."+e),this.B8(a[e]),this.yv[c].push(a[e].uniqueName),this.Ty[a[e].uniqueName]=c;else this.B8(a)};b.prototype.B8=function(a){var c=a.uniqueName;"[Measures]"===c.substr(0,10)&&(k.me.yD=!1);f.v(a.hierarchy)||a.type===k.i.input.pa.mE||(a.levelType=a.type===k.i.input.pa.qf?k.i.input.pa.Sc:
a.type,a.type=k.i.input.pa.qf);a.type===k.i.input.pa.qf&&!1===k.external.kc.I.ho.GL&&(a.type=k.i.input.pa.Sc,a.hasOwnProperty("level")&&(a.caption=a.level),delete a.hierarchy,delete a.level,delete a.parent);var e=k.i.input.pa.Sc;k.i.input.pa.valid(a.type)&&(e=a.type);var g;a.hasOwnProperty("dimensionUniqueName")?g=this.Vo(a.dimensionUniqueName):e===k.i.input.pa.qf&&a.hasOwnProperty("hierarchy")&&(g=this.Vo(a.hierarchy));var l=!1;a.hasOwnProperty("isMeasure")&&(l=f.O.Rc(String(a.isMeasure).trim()));
this.Je&&l||void 0!==g||(g=k.I.Oq.tb(a),a.uniqueName=k.me.zg(a.uniqueName,a.caption),a.hasOwnProperty("dimensionUniqueName")&&(g.caption=g.uniqueName=a.dimensionUniqueName),a.hasOwnProperty("dimensionCaption")&&(g.caption=a.dimensionCaption),e===k.i.input.pa.qf&&a.hasOwnProperty("hierarchy")&&!a.hasOwnProperty("dimensionUniqueName")&&(g.uniqueName=a.hierarchy),this.dt(g));this.types[c]=e;switch(e){case k.i.input.pa.Sc:this.k$(g,a,c);break;case k.i.input.pa.fb:this.Lra(g,a,c,l);break;case k.i.input.pa.Hg:this.Jra(g,
a,c);break;case k.i.input.pa.om:this.Vra(g,a,c);break;case k.i.input.pa.Oa:this.nra(g,a,c);break;case k.i.input.pa.Dc:this.rra(g,a,c);break;case k.i.input.pa.Yb:this.Sra(g,a,c);break;case k.i.input.pa.qf:this.g$(g,a,c);break;case k.i.input.pa.Np:case k.i.input.pa.oo:this.yra(g,a,c);break;case k.i.input.pa.gj:this.pra(g,a,c);break;case k.i.input.pa.Vw:this.id=c;this.Pe.Pa(c,null);break;case k.i.input.pa.V5:this.AR=c;break;case k.i.input.pa.U6:break;case k.i.input.pa.mE:this.mra(a,c);break;default:this.k$(g,
a,c)}};b.prototype.fc=function(a,c,e,g,l){if(Array.isArray(this.yv[c]))for(e=0;e<this.yv[c].length;e++)this.C8(a,this.yv[c][e],this.XB(this.yv[c][e]),g,l);else return this.C8(a,c,e,g,l)};b.prototype.C8=function(a,c,e,g,l){a=a.clone();if(this.Je&&e===k.i.input.pa.fb)l.push(f.O.C4(a.value));else{var m=c=this.VB(c);if(!f.v(m)){switch(e){case k.i.input.pa.Oa:m=c.Ma.ea(0);var n=m.fc(a,e);break;case k.i.input.pa.qf:var p=c.hierarchy.ra.ea(c.sb-1);0<p.sb&&f.v(a.parent)&&f.v(a.ei)&&(a.parent=c.hierarchy.va(g[this.mk.indexOf(p.uniqueName)]));
a.level=c;p=c.hierarchy.fc(a,e);break;default:p=m.fc(a,e)}switch(e){case k.i.input.pa.fb:this.Je||g.push(p.ordinal);l.push(f.O.C4(a.value));break;case k.i.input.pa.Dc:case k.i.input.pa.gj:g.push(p.ordinal);this.Je||l.push(p.ec);break;case k.i.input.pa.Np:1===p.level.sb?(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.Je||l.push(1);break;case k.i.input.pa.oo:1===p.level.sb?(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.Je||l.push(1);break;case k.i.input.pa.Oa:for(e=0;e<n.length;e++)g.push(n[e].ordinal),this.Je||l.push(1);break;case k.i.input.pa.Yb:g.push(p.ordinal);this.Je||l.push(p.ec);break;case k.i.input.pa.qf:g.push(p.ordinal);this.Je||1===p.level.sb&&l.push(1);break;default:g.push(p.ordinal),this.Je||(f.ha(a.value)?l.push(NaN):l.push(1))}return p}}};b.prototype.mra=function(a,c){this.E0=
!0;a=a.hierarchy;f.v(this.gf[a])&&(this.gf[a]=[]);this.Pe.Pa(c,null);this.gf[a].push(c)};d.fE=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=this;this.TH=1048576;this.vBa=this.mT=!1;this.jB=this.Jj=this.iK=0;this.encoding="UTF-8";this.Hha=function(){return b.FFa()};this.ej=function(){return b.mp()}}d.prototype.dN=function(b,a){var c=this;this.timer=new x.Es(100,1E5);this.timer.N(x.Ze.Nk,this.Hha);this.timer.N(x.Ze.Ok,this.ej);this.timer.start();this.ma=new D.r8;this.ma.responseType="blob";this.ma.N(y.da.Fz,function(){return c.tDa()});this.ma.N(y.da.je,function(e){return c.Mqa(e)});
this.ma.N(y.da.Jc,function(){return c.Kqa()});this.ma.N(y.da.ya,function(e){return c.Lqa(e)});this.vh(this.ma,a);this.ma.load(b)};d.prototype.Mqa=function(b){var a=b.data;404==a.target.status?this.F2(b):(this.Jj=a.loaded,this.iK=a.total,this.zEa(a))};d.prototype.Kqa=function(){var b=this;if(!f.v(this.ma)&&!f.v(this.ma.response)){this.mT=!0;this.jB=0;this.iK=this.ma.response.size;this.encoding=this.ma.vya();var a=new FileReader;a.addEventListener("loadend",function(){return e()});var c=null,e=function(){b.gFa(a.result,
function(){b.jB+=c.size;g()},c.size==b.iK)},g=function(){b.jB>=b.iK?(b.vBa=!0,b.fFa()):(c=b.ma.response.slice(b.jB,b.jB+b.TH),a.readAsText(c,b.encoding))};g()}};d.prototype.Lqa=function(b){this.ag();this.F2(b)};d.prototype.vh=function(b,a){if(!f.v(a))for(var c in a)a.hasOwnProperty(c)&&b.requestHeaders.push(new D.s8(c,a[c]))};d.prototype.FFa=function(){0<this.Jj||this.mT?this.ag():null!=this.timer&&f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/10,new f.model.Zb.W.pf,!1,
!1,1)))};d.prototype.mp=function(){this.timer.sl&&this.ag()};d.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Hha),this.timer.mb(x.Ze.Ok,this.ej))};h.j8=d})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.LocalConnectionInfo.call(this)||this;a.fieldSeparator=null;a.thousandsSeparator="";a.recordsetDelimiter="\n";a.ignoreQuotedLineBreaks=!0;a.Ba=k.i.oa.xh;return a}u(b,h.LocalConnectionInfo);b.prototype.isEqual=function(a){return a==this?!0:h.LocalConnectionInfo.prototype.isEqual.call(this,a)};b.tb=function(a){var c=new b;f.v(a.browseForFile)||(c.browseForFile=a.browseForFile);f.v(a.requestPermission)||(c.requestPermission=a.requestPermission);
f.v(a.filename)||""==a.filename||(c.filename=a.filename);f.v(a.fieldSeparator)||(c.fieldSeparator=a.fieldSeparator);f.v(a.thousandSeparator)||(c.thousandsSeparator=a.thousandSeparator);f.v(a.thousandsSeparator)||(c.thousandsSeparator=a.thousandsSeparator);f.v(a.recordsetDelimiter)||(c.recordsetDelimiter=a.recordsetDelimiter);f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.ignoreQuotedLineBreaks)||(c.ignoreQuotedLineBreaks=a.ignoreQuotedLineBreaks);f.v(a.mapping)||(c.mapping=a.mapping instanceof
k.I.Aj?a.mapping:new k.I.Aj(a.mapping));f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c};b.Qj=function(a){var c=new b,e=a.find("params");0!=e.find("param[name=ignoreQuotedLineBreaks]").length&&(c.ignoreQuotedLineBreaks=f.O.Rc(e.find("param[name=ignoreQuotedLineBreaks]").text()));a=a.find("dataSource");0!=a.find("browseForFile").length&&(c.browseForFile=f.O.Rc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("fieldSeparator").length&&
(c.fieldSeparator=a.find("fieldSeparator").text());0!=a.find("thousandSeparator").length&&(c.thousandsSeparator=a.find("thousandSeparator").text());0!=a.find("thousandsSeparator").length&&(c.thousandsSeparator=a.find("thousandsSeparator").text());0!=a.find("recordsetDelimiter").length&&(c.recordsetDelimiter=a.find("recordsetDelimiter").text());0!=a.find("ignoreQuotedLineBreaks").length&&(c.ignoreQuotedLineBreaks=f.O.Rc(a.find("ignoreQuotedLineBreaks").text()));return c};b.prototype.co=function(a){a=
void 0===a?!1:a;var c=D.aa.create("<dataSource/>");c.attr("type",this.Ba);(a||this.browseForFile)&&c.append(D.aa.create("<browseForFile/>").text(this.browseForFile));this.filename&&c.append(D.aa.create("<filename/>").append(D.aa.Bh(this.filename)));this.fieldSeparator&&c.append(D.aa.create("<fieldSeparator/>").append(D.aa.Bh(this.fieldSeparator)));this.thousandsSeparator&&c.append(D.aa.create("<thousandsSeparator/>").append(D.aa.Bh(this.thousandsSeparator)));this.recordsetDelimiter&&"\n"!=this.recordsetDelimiter&&
c.append(D.aa.create("<recordsetDelimiter/>").append(D.aa.Bh(this.recordsetDelimiter)));(a||0==this.ignoreQuotedLineBreaks)&&c.append(D.aa.create("<ignoreQuotedLineBreaks/>").text(this.ignoreQuotedLineBreaks));return c};b.prototype.La=function(a){a=void 0===a?!1:a;var c={};c.type=this.Ba;if(a||this.browseForFile)c.browseForFile=this.browseForFile;this.filename&&(c.filename=this.filename);this.fieldSeparator&&(c.fieldSeparator=this.fieldSeparator);this.thousandsSeparator&&(c.thousandsSeparator=this.thousandsSeparator);
this.recordsetDelimiter&&"\n"!=this.recordsetDelimiter&&(c.recordsetDelimiter=this.recordsetDelimiter);if(a||0==this.ignoreQuotedLineBreaks)c.ignoreQuotedLineBreaks=this.ignoreQuotedLineBreaks;if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;this.browseForFile&&(a.browseForFile=this.browseForFile);this.filename&&(a.filename=this.filename);this.fieldSeparator&&
(a.fieldSeparator=this.fieldSeparator);this.thousandsSeparator&&(a.thousandsSeparator=this.thousandsSeparator);this.recordsetDelimiter&&"\n"!=this.recordsetDelimiter&&(a.recordsetDelimiter=this.recordsetDelimiter);0==this.ignoreQuotedLineBreaks&&(a.ignoreQuotedLineBreaks=this.ignoreQuotedLineBreaks);if(!this.mapping.ob||this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);this.withCredentials&&(a.withCredentials=this.withCredentials);return a};q.Object.defineProperties(b.prototype,{ob:{configurable:!0,
enumerable:!0,get:function(){return f.ha(this.filename)&&(null==this.browseForFile||0==this.browseForFile)},set:function(){}},RL:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.data)},set:function(){}}});d.CSVConnectionInfo=b})(h.csv||(h.csv={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.LocalConnectionInfo.call(this)||this;a.embedded=!1;a.isOCSV2Data=!1;a.embeddedDataOffset=0;a.Ba=k.i.oa.Pp;return a}u(b,h.LocalConnectionInfo);b.prototype.isEqual=function(a){return h.LocalConnectionInfo.prototype.isEqual.call(this,a)&&0==this.embedded&&0==a.embedded};b.tb=function(a){var c=new b;f.v(a.browseForFile)||(c.browseForFile=a.browseForFile);f.v(a.filename)||""==a.filename||(c.filename=a.filename);f.v(a.requestHeaders)||
(c.requestHeaders=a.requestHeaders);f.v(a.embedded)||(c.embedded=a.embedded);f.v(a.embeddedDataOffset)||(c.embeddedDataOffset=a.embeddedDataOffset);f.v(a.embeddedDataToLoad)||(c.embeddedDataToLoad=a.embeddedDataToLoad);f.v(a.isOCSV2Data)||(c.isOCSV2Data=a.isOCSV2Data);f.v(a.mapping)||(c.mapping=a.mapping instanceof k.I.Aj?a.mapping:new k.I.Aj(a.mapping));return c};b.prototype.co=function(a){a=void 0===a?!1:a;var c=D.aa.create("<dataSource/>");c.attr("type",this.Ba);(a||this.browseForFile)&&c.append(D.aa.create("<browseForFile/>").text(this.browseForFile));
this.filename&&c.append(D.aa.create("<filename/>").append(D.aa.Bh(this.filename)));this.embedded&&c.append(D.aa.create("<embedded/>").text(this.embedded));return c};b.Qj=function(a){var c=new b;0!=a.find("browseForFile").length&&(c.browseForFile=f.O.Rc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("embedded").length&&(c.embedded=f.O.Rc(a.find("embedded").text()));return c};b.prototype.La=function(a){var c={};c.type=this.Ba;if((void 0===
a?0:a)||this.browseForFile)c.browseForFile=this.browseForFile;this.filename&&(c.filename=this.filename);this.embedded&&(c.embedded=this.embedded);return c};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;this.browseForFile&&(a.browseForFile=this.browseForFile);this.filename&&(a.filename=this.filename);this.embedded&&(a.embedded=this.embedded);return a};q.Object.defineProperties(b.prototype,{ob:{configurable:!0,enumerable:!0,get:function(){return f.ha(this.filename)&&(null==this.browseForFile||
0==this.browseForFile)&&(null==this.embedded||0==this.embedded)},set:function(){}},RL:{configurable:!0,enumerable:!0,get:function(){return this.embedded},set:function(){}}});d.OCSVConnectionInfo=b})(h.csv||(h.csv={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){var c=this;this.thousandsSeparator="";this.D_=[".csv"];this.Wva=RegExp('""',"g");this.Vda=!1;this.Ksa=function(){return c.F8()};this.Gk=function(){return c.Vr()};this.ej=function(){return c.mp()};this.Kh=0;this.au=!1;this.A4=null;this.Ifa=0;this.wa=k.Na.U();this.D_=[".csv"]}a.prototype.clear=function(){this.data=[];this.Ev=this.Kh=this.DB=this.Jj=0;this.recordsetDelimiter="\n";this.OR='"';this.tB=[];this.Qe=[];this.JL=
this.PL=this.Pn=this.kT=!1;this.de="";this.hb=0;this.Nq=100;null!=this.ma&&(this.ma.Od(),this.ma.dispose(),this.ma=null);this.ag();f.za(!1)};a.prototype.load=function(c,e,g,l,m){try{this.clear(),this.filename=c.filename,this.Ib=e,this.Xa=g,this.Be=l,this.qF=m,this.fieldSeparator=c.fieldSeparator,this.thousandsSeparator=c.thousandsSeparator,this.ignoreQuotedLineBreaks=c.ignoreQuotedLineBreaks,c.NL?this.P_():(void 0!==this.filename&&""!=this.filename&&"()"!=this.filename.substr(-2)||!1!==c.browseForFile?
this.filename=x.hx.AG(this.filename,!f.model.B.C.XY):this.nl(),!0===c.browseForFile?this.F$(c):(f.za(!0,f.model.A.j.Hf),this.H1(this.filename,c.requestHeaders,c.withCredentials)))}catch(n){console.error(n.stack),this.nl()}};a.prototype.P_=function(){var c=this;this.fs();this.fieldSeparator=",";this.TC("Browser, Duration, Page Views, New Session","Chrome, 100, 3, true",new k.I.Aj({Browser:{type:"string"},Duration:{type:"time"},"Page Views":{type:"number"},"New Session":{type:"number"}}));this.kT=!0;
this.wa.qa.P_(function(){c.Py()})};a.prototype.requestPermission=function(){f.Va(f.model.A.j.lna,f.model.A.j.Sia,f.rb.pO,[f.model.A.j.Jk,f.model.A.j.Tia],[this.Ksa])};a.prototype.F$=function(c){!0===c.requestPermission?this.requestPermission():this.F8()};a.prototype.F8=function(){var c=this;this.Rv=new D.L6;this.Rv.N(y.da.to,function(){return c.WDa()});this.Rv.N(y.da.Jc,function(){return c.nM()});this.Rv.N(y.da.je,function(e){return c.oM(e)});this.Rv.N(y.da.SV,function(){return c.UDa()});this.Rv.N(y.da.ya,
function(){return c.nl()});this.Rv.E$(this.D_)};a.prototype.WDa=function(){f.za(!0,f.model.A.j.Hf,"",!0,!0);this.ma=this.Rv;this.Rv.load();this.Rv=null};a.prototype.H1=function(c,e,g){var l=this;e=void 0===e?null:e;g=void 0===g?!1:g;this.timer=new x.Es(100,1E5);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start();var m=new D.Qi;m.dataType=D.Jz.lA;m.N(y.da.Jc,function(){return l.nM()});m.N(y.da.Fz,function(){return l.i2()});m.N(y.da.je,function(n){return l.oM(n)});m.N(y.da.ya,
function(n){return l.nl(n)});m.vh(e);m.withCredentials=g;m.load(c);this.ma=m};a.prototype.Vr=function(){0<this.Jj||this.Pn||this.PL?this.ag():null!=this.timer&&f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/10,new f.model.Zb.W.pf,!1,!1,1)))};a.prototype.mp=function(){this.timer.sl&&this.ag()};a.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};a.prototype.UDa=function(){null!=this.qF&&(this.qF(),
this.qF=null);this.clear()};a.prototype.nl=function(c){c=void 0===c?null:c;f.za(!1);var e="",g="";null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&(g=f.model.Nb.validate(c.target.response),e=g=700<g.length?g.substr(0,700):g,g=f.O.bind(f.model.A.j.EO,g).replace(/'/g,""));0==this.PL&&(this.PL=!0,c=f.model.Nb.valid(this.filename)?this.filename:f.model.Nb.validate(this.filename),f.Va(f.O.bind(f.model.A.j.EI,c)+g,f.model.A.j.ya,f.rb.ya));null!=this.Xa&&(this.Xa(e),this.Xa=null);
this.ag()};a.prototype.p2=function(){f.za(!1);f.Va(f.O.bind(f.model.A.j.t7),f.model.A.j.ya,f.rb.ya)};a.prototype.oM=function(c){var e=c.data;if(404==e.target.status)this.nl(c);else if(!f.v(this.ma))try{var g=this.ma.response;if(null!=g&&0!=g.length&&(this.Jj!=e.loaded||this.DB!=g.length)&&(this.JL=0<e.total&&e.lengthComputable,this.DB=g.length,this.Jj=e.loaded,1E4<g.length-this.Kh||e.loaded==e.total)){this.Pn=e.loaded==e.total&&e.loaded>=this.ma.response.length;void 0===g||x.Bd().Di||this.Cq(g.substring(this.Kh,
g.length));this.Kh=g.length;var l=0==e.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(e.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(e.loaded),x.Tb.xg(e.total),(e.loaded/e.total*100).toFixed(0));f.za(!0,f.model.A.j.Hf,l)}}catch(m){console.error(m.stack),this.nl()}};a.prototype.i2=function(){f.za(!0,f.model.A.j.Hf,"")};a.prototype.fs=function(){null!=this.Be&&(this.Be(),this.Be=null)};a.prototype.nM=function(){if(!f.v(this.ma)){try{if(0==this.Kh||!this.JL||x.Bd().Di||this.Kh<=this.ma.response.length){var c=this.ma.response;
f.ha(c)&&!this.au?this.Py():(this.Pn=!0,this.au)?this.JL||(this.Kh<c.length?(this.Cq(c.substring(this.Kh,c.length)),this.Kh=c.length):this.data.push(this.de)):this.Cq(c)}}catch(e){console.error(e.stack),this.nl()}this.ma=null}};a.qda=function(c){c=c.toLowerCase();return-1!=c.indexOf("<html>")||-1!=c.indexOf("<config>")||0==c.trim().length||-1!=c.indexOf("<!doctype")?(f.Va(f.model.A.j.hna,f.model.A.j.ya,f.rb.ya),!1):!0};a.prototype.Cq=function(c){var e=this;this.au=!0;this.fs();0===this.Ev&&-1===c.indexOf("\n")&&
-1!==c.indexOf("\r")&&(this.recordsetDelimiter="\r");f.v(this.fieldSeparator)&&(this.fieldSeparator=this.pta(-1==c.indexOf("\n")&&-1==c.indexOf("\r")?c:c.substring(0,c.indexOf(this.recordsetDelimiter))));this.appendData(c);!1===this.kT&&(1<this.data.length||f.model.B.C.qH)&&(this.Vda&&this.data.shift(),this.TC(this.data.shift(),this.data[0],this.wa.fa.mapping),this.wa.qa.gH(),this.kT=!0);0!==this.Kh&&!x.Bd().Di||this.PL||x.Pk.sn({ao:function(){return e.nu()},Ne:function(){return e.Py()}})};a.prototype.Py=
function(){f.za(!1);this.kT?null!=this.Ib&&this.Ib():(f.model.B.C.qH||f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik),null!=this.Xa&&(this.Xa(f.model.A.j.Nu),this.Xa=null));this.clear()};a.prototype.TC=function(c,e,g){if("string"==typeof c&&!a.qda(c)||"object"==typeof c&&!a.qda(c.toString()))this.nl();else try{f.v(this.fieldSeparator)&&(this.fieldSeparator=",");var l="string"==typeof c?a.uha(c,this.fieldSeparator):c,m="string"==typeof e?a.uha(e,this.fieldSeparator):f.v(e)?[]:e;this.Ol=[];for(c=0;c<l.length;c++){var n=
this.kS(m[c]),p=this.Sv(l[c],n,0==m.length),t=this.k0(l[c],n,0==m.length),r=this.fL(l[c]),v=this.dL(r),z={type:p,uniqueName:r,caption:this.rya(l[c])||v,isMeasure:t};void 0!==g&&(z=g.O1(r,z),f.v(g.Fa(r,"hierarchy"))||z.type===k.i.input.pa.mE||(z.type="level"));if(!z.hasOwnProperty("visible")||!1!==z.visible){this.tB[c]=z.type;this.Qe[c]=z.isMeasure;this.Ol[c]=r;if(p===k.i.input.pa.qf){var B=r.split(":");z.hierarchy=B[0];z.level=B.pop();z.parent=B.join(":")}this.wa.I.ux(z,r)}}}catch(C){console.error(C.stack),
this.p2()}};a.prototype.kS=function(c){void 0!==c&&null!==c&&"string"==typeof c&&(this.thousandsSeparator&&0<this.thousandsSeparator.length&&(f.v(this.A4)&&(this.A4=new RegExp(this.thousandsSeparator,"g")),c=c.replace(this.A4,"")),c=c.replace(",","."));return c};a.prototype.dL=function(c){var e=c.split(b.LH);if(1<e.length)return e[1];this.vy(c)&&(e=c.split(":"));return e[e.length-1]};a.prototype.fL=function(c){c=c.trim().split(b.LH)[0];c=this.x3(c);if(-1<this.Ol.indexOf(c)){for(var e=1,g=c;-1<this.Ol.indexOf(g);)g=
c+e,e++;c=g}return c};a.prototype.rya=function(c){c=c.split(b.LH);return 1<c.length?c[1]:null};a.prototype.x3=function(c){return c.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")};a.prototype.Sv=function(c,e,g){var l=k.i.input.pa.fb;c=c.trim();if(f.v(e)&&!g)return k.i.input.pa.Sc;"+"===c.charAt(0)?l=k.i.input.pa.Sc:"t+"===c.substr(0,2)?l=k.i.input.pa.Yb:"dt+"===c.substr(0,3)?l=k.i.input.pa.Dc:"n+"===c.substr(0,2)?l=k.i.input.pa.fb:"-"===c.charAt(0)?l=k.i.input.pa.fb:
"ds+"===c.substr(0,3)?l=k.i.input.pa.gj:"d+"===c.substr(0,2)?l=k.i.input.pa.Oa:"m+"===c.substr(0,2)?l=k.i.input.pa.Hg:"w+"===c.substr(0,2)?l=k.i.input.pa.om:"D+"===c.substr(0,2)?l=k.i.input.pa.Np:"D4+"===c.substr(0,3)?l=k.i.input.pa.oo:"id+"===c.substr(0,3)?l=k.i.input.pa.Vw:""===e||void 0===e?l=k.i.input.pa.Sc:isNaN(Number(e))&&(l=f.O.dT(e)?f.model.B.C.yR:k.i.input.pa.Sc);l===k.i.input.pa.Sc&&this.vy(c)&&(l=k.i.input.pa.qf);return l};a.prototype.k0=function(c,e,g){return!f.model.B.C.Je||f.v(e)&&
!g?!1:"-"===c.trim().charAt(0)};a.prototype.vy=function(c){"+"===c.charAt(0)&&(c=c.substr(1));return 1<c.split(":").length&&-1<this.Ol.indexOf(c.split(":")[0].trim())};a.prototype.nu=function(){if(this.hb>=this.data.length)return this.Pn;var c=this.data[this.hb];if(!f.ha(c)&&this.Ol){for(var e=!1,g="",l=0,m=[],n=[],p,t=0;t<c.length;t++){var r=c.charAt(t);if(t===c.length-1||r===this.fieldSeparator&&!e){if(t===c.length-1&&r!==this.fieldSeparator&&(g+=r),g=g.trim(),g=g.replace("\r",""),g.charAt(0)===
this.OR&&g.charAt(g.length-1)===this.OR&&(g=g.slice(1,g.length-1),g=g.replace(this.Wva,'"')),this.tB[l]===k.i.input.pa.Vw&&(p=g),void 0!==this.Ol[l]&&(this.tB[l]===k.i.input.pa.fb&&(g=this.kS(g)),e=new k.I.Rd({value:g}),this.wa.I.fc(e,this.Ol[l],this.tB[l],m,n)),e=!1,g="",l++,l>=this.Ol.length)break}else r===this.OR?(g+=r,e=!e):g+=r}if(l<this.Ol.length)for(c=l;c<this.Ol.length;c++)e=new k.I.Rd({value:void 0}),this.wa.I.fc(e,this.Ol[c],this.tB[c],m,n);this.wa.qa.insert(m,n,p);0===this.hb%1E3&&this.Pn&&
200<x.xf()-this.Ifa&&(m=f.model.A.j.BO,n=(this.hb/this.data.length*100).toFixed(0),n=f.O.bind(f.model.A.j.CO,x.Tb.jy(this.hb.toFixed(0)),x.Tb.jy(this.data.length.toFixed(0)),n),f.za(!0,m,n),this.Ifa=x.xf())}this.hb++;return this.Pn&&this.hb>=this.data.length};a.prototype.appendData=function(c){void 0!==this.de&&0<this.de.length&&(c=this.de+c);c=this.gJa(c);for(var e=0;e<c.length;e++)this.data.push(c[e]);1!=this.Pn&&(this.de=this.data.pop())};a.prototype.gJa=function(c){var e=!1;c=c.split(this.recordsetDelimiter);
if(0==this.ignoreQuotedLineBreaks)for(var g=0;g<c.length;g++)e?(this.Uda(c[g])&&(e=!1),c[g-1]+="<br/>"+c[g],c.splice(g,1),g--):this.Uda(c[g])&&(e=!0);return c};a.prototype.Uda=function(c){return 1==this.Lua(c,this.OR)%2};a.prototype.Lua=function(c,e){var g=0;if(c)for(var l=0;l<c.length;l++)c.charAt(l)==e&&g++;return g};a.prototype.pta=function(c){if(void 0==this.fieldSeparator){var e=c.indexOf("sep=");if(-1<e){var g='"'===c[0];c=c.trim();c=c.substring(e+4,g?c.length-1:c.length);this.Vda=!0;return c.trim()}return c.split(",").length>
c.split(";").length?",":";"}};a.uha=function(c,e){var g=void 0===g?'"':g;if(null===c)return[];for(var l="",m=!1,n=!1,p=[],t=0;t<c.length;t++){var r=c.charAt(t);t===c.length-1||r===e&&!m?(t===c.length-1&&r===e?(p.push(l),l=""):t===c.length-1&&(l+=r),l=l.trim(),l.charAt(0)===g&&l.charAt(l.length-1)===g&&(l=l.slice(1,l.length-1)),m=n=!1,p.push(l),l=""):r===g?(n||(l+=r),m=!m,n=!0):(l+=r,n=!1)}return p};a.wV=function(c){return c&&0<c.length?c:f.model.A.j.cn};a.prototype.yk=function(){};a.prototype.Uj=
function(){};a.prototype.Iy=function(){};a.prototype.vp=function(){};a.prototype.kB=function(){return!1};a.prototype.cancel=function(){this.clear();this.Be=this.Xa=this.Ib=null};d.UH=a;b.FLOAT="F";b.LH="+T+";d.R5=b})(h.csv||(h.csv={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=this;this.IX=!1;this.L8=0;this.iI=",";this.XW="\n";this.af=k.Na.U();this.aq=0;this.q9=this.p9=!1;this.qqa="\x3c!--";this.rqa="--\x3e";this.JX="/**----**";this.pqa="**--!--**/";this.EP=this.gr="";this.C9=0;this.Gk=function(){return a.Vr()};this.ej=function(){return a.mp()};this.cHa=RegExp("%d%","g");this.eHa=RegExp("%q%","g");this.dHa=RegExp("%n%","g")}b.prototype.load=function(a,c,e,g,l){try{this.clear(),this.ub=a,this.yY=c,this.Be=
g,this.qF=l,this.MP=e,this.IE=this.ub.filename,this.IX=this.ub.embedded,this.L8=this.ub.embeddedDataOffset,this.M8=this.ub.embeddedDataToLoad,this.T8=!1,0==this.IX&&(this.IE=x.hx.AG(this.IE,!f.model.B.C.XY)),this.IX&&null!=this.M8?this.ZBa(this.M8):(f.za(!0,f.model.A.j.Hf),this.H1(this.IE,this.ub.requestHeaders))}catch(m){console.error(m.stack),this.nl(null,m.message?"Error: "+m.message:"")}};b.prototype.H1=function(a,c){var e=this;this.Hl=new x.Es(100,1E5);this.Hl.N(x.Ze.Nk,this.Gk);this.Hl.N(x.Ze.Ok,
this.ej);this.Hl.start();var g=new D.Qi;g.dataType=D.Jz.lA;g.N(y.da.Jc,function(){return e.nM()});g.N(y.da.Fz,function(){return e.i2()});g.N(y.da.je,function(l){return e.oM(l)});g.N(y.da.ya,function(l){return e.nl(l)});g.vh(c);g.load(a);this.Fl=g};b.prototype.mp=function(){this.Hl.sl&&this.ag()};b.prototype.ag=function(){this.Hl&&this.Hl.sl&&(this.Hl.stop(),this.Hl.mb(x.Ze.Nk,this.Gk),this.Hl.mb(x.Ze.Ok,this.ej))};b.prototype.Maa=function(a){this.gr=-1<a.indexOf(this.JX)?this.JX:this.qqa;this.EP=
this.gr==this.JX?this.pqa:this.rqa};b.prototype.ZBa=function(a){var c=this;this.Nq=100;this.si=0;try{var e=new f.Sq(a,this.L8,f.Sq.RH),g=e.byteLength>this.Nq?this.Nq:e.byteLength,l=e.IU(g);this.Maa(l);l.substr(0,this.gr.length)==this.gr&&(this.rJ="",this.rJ+=l.substring(this.gr.length),this.si+=g,this.mJ=e.byteLength,this.si<this.mJ?x.Pk.sn({ao:function(){return c.XBa(e)},Ne:function(){return c.yq()},eZ:e}):this.yq())}catch(m){console.error(m.stack),this.nl(null,m.message?"Parsing error: "+m.message:
"")}};b.prototype.XBa=function(a){var c=this.mJ-this.si>this.Nq?this.Nq:this.mJ-this.si;a=a.IU(c);this.si+=c;this.rJ+=a;this.e4(this.si,this.mJ);return this.si>=this.mJ};b.prototype.e4=function(a,c){a=f.O.bind(f.model.A.j.m7,(a/c*100).toFixed(0));f.za(!0,f.model.A.j.iE,a)};b.prototype.yq=function(){f.za(!1);this.qx=!0;this.UGa(this.rJ)};b.prototype.fs=function(){null!=this.Be&&(this.Be(),this.Be=null)};b.prototype.UGa=function(a){a=f.O.trimLeft(a);this.O$(a)||this.Cq(a)};b.prototype.Vr=function(){if(0<
this.si||this.qx||this.UX)this.ag();else{var a=this.Hl.Qx/10;this.SX?(196<a&&(a=196),a=x.Tb.format(a/2,new f.model.Zb.W.pf,!1,!1,1)+"%"):a=f.O.bind(f.model.A.j.zs,x.Tb.format(a,new f.model.Zb.W.pf,!1,!1,1));f.za(!0,f.model.A.j.Hf,a)}};b.prototype.nl=function(a,c){a=void 0===a?null:a;c=void 0===c?"":c;f.za(!1);var e="";""==c&&null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(e=f.model.Nb.validate(a.target.response),c=e=700<e.length?e.substr(0,700):e,e=f.O.bind(f.model.A.j.EO,
e).replace(/'/g,""));0==this.UX&&(this.UX=!0,a=f.model.Nb.valid(this.IE)?this.IE:f.model.Nb.validate(this.IE),f.Va(f.O.bind(f.model.A.j.EI,a)+e,f.model.A.j.ya,f.rb.ya));null!=this.Xa&&(this.Xa(c),this.Xa=null);this.clear()};b.prototype.O$=function(a){if(0==this.q9&&22<a.length){if(this.nBa(a)){if(0==this.IAa(a.substr(0,a.indexOf(this.XW))))return this.rDa(),!0;this.q9=!0;return!1}this.DAa(a)?(x.Pk.cancel(),null!=this.Fl&&(this.Fl.Od(),this.Fl.dispose(),this.Fl=null),f.Va("OCSV data format is deprecated. Please contact the support team for more information."),
this.clear()):(this.clear(),(new d.UH).load(this.ub,this.yY,this.MP,this.Be,null));return!0}return!1};b.prototype.oM=function(a){if(null!=this.Fl&&!(null!=a.data&&a.data.target&&400<=a.data.target.status)){a=a.data;try{var c=this.Fl.response;if(this.si!=a.loaded&&null!=c&&0!=c.length){this.RX=0<a.total&&a.lengthComputable;this.si=a.loaded;""==this.gr&&this.Maa(c);var e=0;if(-1<(e=c.indexOf(this.gr)))c=c.substring(e+this.gr.length+1),this.T8=!0;else if(this.ub.isOCSV2Data&&!this.T8)return;c=f.O.trimLeft(c);
if(!this.O$(c)&&(1E4<c.length-this.aq||a.loaded==a.total)){this.qx=a.loaded==a.total&&a.loaded>=this.Fl.response.length;void 0===c||x.Bd().Y0||this.Cq(c.substring(this.aq,c.length));this.aq=c.length;var g=0==a.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(a.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(a.loaded),x.Tb.xg(a.total));f.za(!0,f.model.A.j.Hf,g)}}}catch(l){console.error(l.stack),this.nl(null,l.message?"File loading error: "+l.message:"")}}};b.prototype.i2=function(){this.SX=!0;f.za(!0,f.model.A.j.Hf,
"")};b.prototype.nM=function(){if(null!=this.Fl)try{if(0==this.aq||!this.RX||x.Bd().Y0||this.aq<=this.Fl.response.length){var a=this.Fl.response,c=0;-1<(c=a.indexOf(this.gr))&&(a=a.substring(c+this.gr.length+1));if(this.Fl.response instanceof ArrayBuffer){var e=new f.Sq(this.Fl.response,0,f.Sq.RH);a=e.IU(e.byteLength)}this.qx=this.SX=!0;this.p9?this.RX?this.aq<a.length&&(this.Cq(a.substring(this.aq,a.length)),this.aq=a.length):this.aq<a.length?(this.Cq(a.substring(this.aq,a.length)),this.aq=a.length):
this.jk.push(this.sx):this.Cq(a)}}catch(g){console.error(g.stack),this.nl(null,g.message?"ERROR: "+g.message:"")}};b.prototype.Cq=function(a){var c=this;this.p9=!0;this.fs();this.appendData(a);0==this.WX&&1<this.jk.length&&(this.jk.shift(),this.TC(this.jk.shift()),this.WX=!0,x.Pk.sn({ao:function(){return c.nu()},Ne:function(){return c.Py()}}))};b.prototype.nBa=function(a){return"string"==typeof a&&"___ocsv2___"==a.substr(0,11)};b.prototype.DAa=function(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 f.Sq(a,0,f.Sq.RH)).Zfa();if(a instanceof f.Sq)return 1600085871!=a.Zfa()}catch(e){}return!1};b.prototype.appendData=function(a){void 0!==this.sx&&0<this.sx.length&&(a=this.sx+a);a=0<=a.indexOf(this.XW)?a.split(this.XW):[];for(var c=0;c<a.length;c++)f.ha(a[c])||this.jk.push(a[c]);1!=this.qx&&(this.sx=f.ha(a[a.length-1])?a.pop():this.jk.pop(),this.sx=this.sx==this.EP?this.jk.pop():this.sx)};
b.prototype.IAa=function(a){this.xX=a.replace("___ocsv2___","").split("/")[1];return void 0!=this.xX&&1==f.O.fR(this.xX,f.Ug.qs)?!1:!0};b.prototype.TC=function(a){a=a.split(this.iI);this.fr=[];for(var c=0;c<a.length;c++){var e=this.Sv(a[c]),g=this.fL(a[c]),l=this.dL(g);this.Ks[c]=e;this.fr.push(g);l={type:e,caption:l,uniqueName:g};e===k.i.input.pa.qf&&(e=g.split(":"),l.hierarchy=e[0],l.level=e.pop(),l.parent=e.join(":"));this.af.I.ux(l,g)}this.af.qa.gH()};b.prototype.Sv=function(a){var c=k.i.input.pa.sxa(a);
c===k.i.input.pa.Sc&&this.vy(a)&&(c=k.i.input.pa.qf);return c};b.prototype.dL=function(a){var c=a.split(d.R5.LH);if(1<c.length)return c[1];this.vy(a)&&(c=a.split(":"));return c[c.length-1]};b.prototype.vy=function(a){"+"==a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.fr.indexOf(a.split(":")[0].trim())};b.prototype.fL=function(a){a=a.trim().split(d.R5.LH)[0];a=this.x3(a);a=this.Daa(a);if(-1<this.fr.indexOf(a)){for(var c=1,e=a;-1<this.fr.indexOf(e);)e=a+c,c++;a=e}return a};b.prototype.x3=
function(a){return a.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")};b.prototype.nu=function(){if(this.sf>=this.jk.length)return this.qx;var a=this.jk[this.sf];if(!f.ha(a)&&void 0!==this.fr){if(a==this.EP)return!0;if(a.split(this.iI).length<this.fr.length)for(var c=a.split(this.iI).length;c<this.fr.length;c++)a=a.concat(this.iI);var e=[],g=[];a=a.split(this.iI);for(c=0;c<this.fr.length;c++)this.aGa(a[c],c,e,g);this.af.qa.insert(e,g)}this.qx&&200<x.xf()-this.C9&&(c=f.model.A.j.BO,
e=(this.sf/this.jk.length*100).toFixed(0),e=f.O.bind(f.model.A.j.CO,x.Tb.jy(this.sf.toFixed(0)),x.Tb.jy(this.jk.length.toFixed(0)),e),f.za(!0,c,e),this.C9=x.xf());this.jk[this.sf]="";this.sf++;return this.qx&&this.sf>=this.jk.length};b.prototype.aGa=function(a,c,e,g){var l=!0,m=this.af.I.VB(this.fr[c]);if(null!==this.fr[c]){if(this.Ks[c]===k.i.input.pa.Sc||this.Ks[c]===k.i.input.pa.om||this.Ks[c]===k.i.input.pa.Hg){if("^"===a.charAt(0)){var n=parseInt(a.substring(1));!1===isNaN(n)&&(m=m.va(n+1),null!=
m&&(a=m.caption==f.model.A.j.Mk?"":m.caption,l=!1))}}else if(this.Ks[c]==k.i.input.pa.qf)"^"===a.charAt(0)&&(n=parseInt(a.substring(1)),!1===isNaN(n)&&(m=m.hierarchy.va(n+1),null!=m&&(a=m.caption==f.model.A.j.Mk?"":m.caption,l=!1)));else if(this.Ks[c]===k.i.input.pa.Oa||this.Ks[c]===k.i.input.pa.gj||this.Ks[c]===k.i.input.pa.Np||this.Ks[c]===k.i.input.pa.oo)a=1E3*parseInt(a),l=!1;l&&(a=this.Daa(a));a=new k.I.Rd({value:a});this.af.I.fc(a,this.fr[c],this.Ks[c],e,g)}};b.prototype.Daa=function(a){return a.replace(this.cHa,
",").replace(this.eHa,'"').replace(this.dHa,"\n")};b.prototype.Py=function(){f.za(!1);this.WX?this.Ib():(f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik),this.Xa(),this.MP=null);this.clear()};b.prototype.rDa=function(){f.za(!1);f.Va(f.O.bind(f.model.A.j.ina,this.xX),f.model.A.j.ya,f.rb.ya);this.Xa();this.clear()};b.prototype.clear=function(){f.za(!1);this.jk=[];this.EP=this.gr="";this.si=0;this.SX=!1;this.aq=0;this.Ks=[];this.RX=this.UX=this.qx=this.WX=!1;this.sx="";this.sf=0;this.Nq=100;null!=this.Fl&&
(this.Fl.Od(),this.Fl.dispose(),this.Fl=null);this.ag()};b.prototype.Ib=function(){null!=this.yY&&this.yY()};b.prototype.Xa=function(a){null!=this.MP&&this.MP(a)};b.prototype.yk=function(){};b.prototype.Uj=function(){};b.prototype.Iy=function(){};b.prototype.vp=function(){};b.prototype.kB=function(){return!1};b.prototype.cancel=function(){this.clear();this.Be=this.Xa=this.Ib=null};d.Jna=b})(h.csv||(h.csv={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.LocalConnectionInfo.call(this)||this;a.checkUpdates=!1;a.CH=!1;a.Ba=k.i.oa.JSON;return a}u(b,h.LocalConnectionInfo);b.prototype.isEqual=function(a){return a==this?!0:h.LocalConnectionInfo.prototype.isEqual.call(this,a)&&f.v(a.data)};b.tb=function(a){var c=new b;f.v(a.browseForFile)||(c.browseForFile=a.browseForFile);f.v(a.requestPermission)||(c.requestPermission=a.requestPermission);f.ha(a.filename)||(c.filename=a.filename);
f.v(a.data)||(c.data=a.data);f.v(a.checkUpdates)||(c.checkUpdates=a.checkUpdates);f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.mapping)||(c.mapping=a.mapping instanceof k.I.Aj?a.mapping:new k.I.Aj(a.mapping));f.v(a.useStreamLoader)||(c.CH=a.useStreamLoader);f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c};b.Qj=function(a){var c=new b;0!=a.find("browseForFile").length&&(c.browseForFile=f.O.Rc(a.find("browseForFile").text()));0!=a.find("filename").length&&
(c.filename=a.find("filename").text());return c};b.prototype.co=function(a){a=void 0===a?!1:a;var c=D.aa.create("<dataSource/>");c.attr("type",this.Ba);(a||this.browseForFile)&&c.append(D.aa.create("<browseForFile/>").text(this.browseForFile));this.filename&&c.append(D.aa.create("<filename/>").append(D.aa.Bh(this.filename)));return c};b.prototype.La=function(a){a=void 0===a?!1:a;var c={};c.type=this.Ba;if(a||this.browseForFile)c.browseForFile=this.browseForFile;this.filename&&(c.filename=this.filename);
f.v(this.data)||(c.data=this.data);if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);if(a||this.CH)c.useStreamLoader=this.CH;if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;this.browseForFile&&(a.browseForFile=this.browseForFile);this.filename&&(a.filename=this.filename);f.v(this.data)||(a.data=this.data);if(!this.mapping.ob||this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);this.withCredentials&&
(a.withCredentials=this.withCredentials);a.CH=this.CH;return a};q.Object.defineProperties(b.prototype,{ob:{configurable:!0,enumerable:!0,get:function(){return f.ha(this.filename)&&(null==this.browseForFile||0==this.browseForFile)&&f.v(this.data)},set:function(){}},RL:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.data)},set:function(){}}});d.JSONConnectionInfo=b})(h.json||(h.json={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.csv.UH.call(this)||this;a.TH=6553600;a.Dy=!0;a.j3=function(){return a.YEa()};a.isArray=!1;a.xM=0;a.bj=0;a.DGa=0;a.D_=[".js",".json"];return a}u(b,h.csv.UH);b.prototype.load=function(a,c,e,g,l){this.clear();this.CB=this.FF=this.Dn=null;this.DGa=this.bj=0;this.Dy=!0;this.Ib=c;this.Xa=e;this.Be=g;this.qF=l;!0===a.browseForFile?this.F$(a):void 0!==a.filename&&""!=a.filename&&"()"!=a.filename.substr(-2)?h.csv.UH.prototype.load.call(this,
a,c,e,g,l):(this.Pn=!0,this.QJ(a.data))};b.prototype.YEa=function(){if(!(f.v(this.ma)||f.v(this.ma.response)||!this.Dy&&this.ma.response.length<this.TH/100)){var a=this.ma.response.substr(this.Kh,this.TH);this.Cq(a);this.Kh+=a.length}};b.prototype.oM=function(a){var c=a.data;if(404==c.target.status)this.nl(a);else if(!f.v(this.ma)&&!f.v(this.ma.response))try{if(0!==this.ma.response.length&&(this.Jj!=c.loaded||this.DB!=this.ma.response.length)){this.JL=0<c.total&&c.lengthComputable;this.DB=this.ma.response.length;
this.Jj=c.loaded;this.Pn=c.loaded==c.total;var e=0==c.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(c.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(c.loaded),x.Tb.xg(c.total),(c.loaded/c.total*100).toFixed(0));f.za(!0,f.model.A.j.Hf,e);this.JL&&c.total<5*this.TH||x.Bd().Di?this.Dy=!0:this.au||(this.Dy=!1,this.j3())}}catch(g){console.error(g.stack),this.nl()}};b.prototype.nM=function(){if(!f.v(this.ma)&&!f.v(this.ma.response))try{if(this.Pn=!0,0==this.Kh||!this.au||this.Dy){var a=this.ma.response;f.ha(a)&&!this.au?
this.fU():this.Cq(a);this.ma=null}}catch(c){console.error(c.stack),this.nl()}};b.prototype.Cq=function(a){try{if(!this.Dy){if(0==a.length){this.Pn?this.QJ([]):f.pe(this.j3,100);return}a=this.$Y(a)}var c=JSON.parse(a);f.v(c.items)||(c=c.items);if(f.v(c.length)){this.pM();return}}catch(e){this.pM();return}this.QJ(c)};b.prototype.$Y=function(a){void 0!==this.de&&0<this.de.length&&(a=this.de+a);a=a.trim();if("["===a[0]){a=a.substr(1).trim();var c=a[0];a="["!==c&&"{"!==c?"["+a:a}else c=a.trim(),"]"===
c[c.length-1]&&(c=c.slice(0,-1).trim(),a=c[c.length-1],a="]"!==a&&"}"!==a?c+"]":c);c=a.lastIndexOf("},");var e=a.lastIndexOf("],");f.ha(this.de)&&-1===c&&-1===e?a="["+a:(c=c<e?e:c,this.de=a.substr(c+2),a="["+a.substr(0,c+1)+"]");return a};b.prototype.QJ=function(a){var c=this;f.v(a.items)||(a=a.items);(f.v(a)||1>a.length)&&!f.model.B.C.qH?!this.au&&this.Pn&&this.fU():Array.isArray(a)?(this.au?this.data=this.data.concat(a.slice()):(this.au=!0,this.fs(),(this.isArray=!f.v(a[1])&&Array.isArray(a[1]))&&
this.mIa(a[0]),a[0]&&Array.isArray(a[0])?this.TC(a[0],a[1],this.wa.fa.mapping):this.wa.fa.mapping.Dda?this.wa.I.AQ(this.wa.fa.mapping,a[0]):this.wa.I.AQ(a[0],a[1]),this.data=a.slice(),(k.I.Aj.nT(a[0])||this.isArray)&&this.data.shift()),0==this.data.length?this.Dy?this.aH():this.Py(!0):this.Dy?x.Pk.sn({ao:function(){return c.nu()},Ne:function(){return c.aH()}}):this.PL||x.Pk.sn({ao:function(){return c.nu()},Ne:function(){return c.Py()}})):f.Va(f.model.A.j.CI,f.model.A.j.ya)};b.prototype.Py=function(a){(void 0===
a?0:a)||f.v(this.ma)||!(this.ma.response.length>this.Kh)&&this.Pn?(this.au?(f.ha(this.de)||("]"==this.de.substr(-1)&&(this.de=this.de.substr(0,this.de.length-1).trim(),a=this.de.substr(this.de.length-1),this.de="]"!=a&&"}"!=a?this.de+"]":this.de),a=JSON.parse(this.de),this.data.push(a),this.nu()),null!=this.Ib&&(this.clear(),this.Ib())):(f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik),null!=this.Xa&&(this.Xa(f.model.A.j.Nu),this.Xa=null)),this.clear()):f.pe(this.j3,1)};b.prototype.Jd=function(a){if(!(f.v(a)||
1>a.length)){this.wa.qa.Cta();for(var c=1<a.length?a[1]&&Array.isArray(a[1]):a[0]&&Array.isArray(a[0]),e=0;e<a.length;e++)this.insertData(a[e],!0,c)}};b.prototype.aH=function(){this.data=null;f.za(!1);f.pg(this.Ib)&&this.Ib();this.clear()};b.prototype.q0=function(){return x.Bd().Di?0==this.data.length?f.O.bind(f.model.A.j.OW,this.bj):f.O.bind(f.model.A.j.CO,this.bj,this.data.length,(this.bj/this.data.length*100).toFixed(0)):0!=this.Jj?f.O.bind(f.model.A.j.jE,x.Tb.xg(this.Kh),x.Tb.xg(this.Jj),(this.Kh/
this.Jj*100).toFixed(0)):0==this.Jj&&0<this.data.length?f.O.bind(f.model.A.j.CO,this.bj,this.data.length,(this.bj/this.data.length*100).toFixed(0)):f.O.bind(f.model.A.j.Al,x.Tb.xg(this.Kh))};b.prototype.nu=function(){if(0===this.bj%100&&200<x.xf()-this.xM){var a=f.model.A.j.BO,c=this.q0();1==this.Pn&&f.za(!0,a,c);this.xM=x.xf()}if(this.bj>=this.data.length)return!0;f.v(this.data[this.bj])||this.insertData(this.data[this.bj],!1,this.isArray);this.bj++;return this.bj>=this.data.length};b.prototype.S3=
function(){this.Dn=this.wa.I.Z_(!1);this.FF=[];for(var a=0;a<this.Dn.length;a++)this.FF[a]=this.wa.I.XB(this.Dn[a]);this.wa.qa.gH()};b.prototype.mIa=function(a){this.CB=new f.nb;if(Array.isArray(a))for(var c=0;c<a.length;c++)this.CB.Pa(a[c],c);else{c=0;for(var e in a)a.hasOwnProperty(e)&&(f.v(a[e])||f.ha(a[e].uniqueName)?this.CB.Pa(e,c):this.CB.Pa(a[e].uniqueName,c),c++)}};b.prototype.insertData=function(a,c,e){null===this.Dn&&this.S3();var g=[],l=[],m=!1,n=new Map;if(c){var p=this.wa.I.AR;""!==p&&
(e?(m=this.CB.getItem(p),m=!f.v(a[m])):m=!f.v(a[p]))}for(var t=0;t<this.Dn.length;t++){p=this.Dn[t];var r=this.FF[t];if(e){var v=this.CB.getItem(p);var z=a.hasOwnProperty(""+v);v=a[v]}else z=a.hasOwnProperty(p),v=a[p];if(r!==k.i.input.pa.mE)if(r===k.i.input.pa.Vw)var B=v;else if(!m){var C=void 0;this.wa.I.E0&&(C=this.f0(a,p,e));z=z?new k.I.Rd({gf:C,value:v,caption:""+v}):new k.I.Rd({gf:C});r===k.i.input.pa.qf&&(v=this.wa.I.VB(p),v=v.hierarchy.ra.ea(v.sb-1).uniqueName,n.has(v)?z.parent=n.get(v):void 0!==
a[v]&&(z.ei=a[v]));n.set(p,this.wa.I.fc(z,p,r,g,l))}}c?m?this.wa.qa.Lva(B):this.wa.qa.update(g,l,B):this.wa.qa.insert(g,l,B)};b.prototype.f0=function(a,c,e){var g=this;e=void 0===e?!1:e;var l=void 0;(c=this.wa.I.hca(c))&&0<c.length&&c.forEach(function(m){if(e){var n=g.CB.getItem(m);n=a[n]}else n=a[m];f.v(n)||(f.v(l)&&(l={}),l[m]=n)});return l};b.prototype.pM=function(){f.Va(f.model.A.j.CI,f.model.A.j.ya);f.za(!1);f.pg(this.Xa)&&this.Xa(f.model.A.j.CI);this.Ib=this.Xa=null;this.clear()};b.prototype.fU=
function(){f.model.B.C.qH||f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik);f.za(!1);f.pg(this.Xa)&&this.Xa(f.model.A.j.Nu);this.Ib=this.Xa=null;this.clear()};d.Xla=b})(h.json||(h.json={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){this.dY=null;this.sf=0;this.ar=this.GP=this.jk=null;this.$e=0}a.prototype.getData=function(c){this.G8=c;f.za(!0,f.model.A.j.z7);this.NGa();this.gR()};a.prototype.NGa=function(){this.ar=k.Na.U().I.rc();this.dY={};this.El=[];for(this.$e=0;this.$e<this.ar.length;){var c=this.ar.ea(this.$e);var e=k.Na.U().I.Ee(c.uniqueName).type;e!=k.i.Ja.sc&&e!=k.i.Ja.Oa?this.TGa(k.Na.U().I.Ee(c.uniqueName)):this.RGa(c);this.$e++}this.Lta(this.El)};
a.prototype.Lta=function(c){for(var e,g=0;g<c.length;g++)e={},c[g].type!=k.i.input.pa.qf&&(e.caption=c[g].caption),e.type=c[g].type,c[g].type==k.i.input.pa.qf&&this.pGa(c[g],e),this.dY[c[g].uniqueName]=e};a.prototype.pGa=function(c,e){var g=c.uniqueName.split(":");1==g.length?(e.hierarchy=g[0],e.level=g[0]):(e.hierarchy=g[0],e.level=g[g.length-1],e.parent=g[g.length-2],c.uniqueName=e.level)};a.prototype.gR=function(){var c=this;this.sf=0;this.jk=[];this.jk.push(this.dY);this.rn=k.Na.U().qa.yL();x.Pk.sn({ao:function(){return c.kua()},
Ne:function(){return c.ADa()}})};a.prototype.kua=function(){var c=x.xf();this.GP=[];this.Dj=this.$e=0;for(var e=this.rn&&this.rn[0]?this.rn[0].length:0;this.sf<e;){for(this.GP=[];this.$e+this.Dj<this.rn.length&&this.$e<this.El.length;)this.fc(this.mua()),this.$e++;this.sf++;this.jk.push(this.GP);this.Dj=this.$e=0;if(100<x.xf()-c)break}this.UIa(this.sf,e);return this.sf>=e};a.prototype.RGa=function(c){var e=c.inputType;(e==k.i.input.pa.qf||2<c.ra.length)&&e!=k.i.input.pa.Np&&e!=k.i.input.pa.oo?this.SGa(c):
e==k.i.input.pa.Oa?(this.El.push(this.oR(e,c.wi.caption,!1,c.wi.uniqueName)),this.$e+=2):this.El.push(this.oR(e,c.caption,!1,c.uniqueName))};a.prototype.SGa=function(c){c=c.ra;for(var e,g,l,m=1;m<c.length;m++){l=m;e=c.getItem(c.qh(m));for(g=e.caption;1<l;)l--,g=c.getItem(c.qh(l)).uniqueName+":"+g;this.El.push(this.oR(k.i.input.pa.qf,e.caption,!1,g))}};a.prototype.fc=function(c){this.GP.push(c)};a.prototype.mua=function(){var c=this.El[this.$e].type;if(c!=k.i.input.pa.Oa)var e=this.ar.getItem(this.El[this.$e].uniqueName).va(this.rn[this.$e+
this.Dj][this.sf]).caption;if(c==k.i.input.pa.fb)return null!=e?parseFloat(e):"";if(c==k.i.input.pa.Sc||c==k.i.input.pa.om||c==k.i.input.pa.Hg)return null!=e&&e!=f.model.A.j.Mk?e.toString():"";if(c==k.i.input.pa.qf){c=this.ar.getItem(this.El[this.$e].caption);for(var g=0;g<c.ra.length-2;g++)this.fc(e),this.El[this.$e],this.$e++,e=null==this.rn[this.$e+this.Dj][this.sf]||""==this.rn[this.$e+this.Dj][this.sf]+""?"":c.va(this.rn[this.$e+this.Dj][this.sf]).caption}else{if(c==k.i.input.pa.gj)return this.ar.getItem(this.El[this.$e].caption).va(this.rn[this.$e+
this.Dj][this.sf]).ec;if(c==k.i.input.pa.Oa)return e="",c=this.ar.getItem(this.El[this.$e].caption+".Year").va(this.rn[this.$e+this.Dj][this.sf]),e+=c.caption+"-",this.Dj++,c=this.ar.getItem(this.El[this.$e].caption+".Month").va(this.rn[this.$e+this.Dj][this.sf]),e+=f.model.A.j.Vq.indexOf(c.caption)+1+"-",this.Dj++,c=this.ar.getItem(this.El[this.$e].caption+".Day").va(this.rn[this.$e+this.Dj][this.sf]),e+=c.caption;if(c==k.i.input.pa.Np||c==k.i.input.pa.oo)return this.dua(c);if(c==k.i.input.pa.Dc||
c==k.i.input.pa.Yb)return this.ar.getItem(this.El[this.$e].uniqueName).va(this.rn[this.$e+this.Dj][this.sf]).ec}return e};a.prototype.ADa=function(){f.za(!1);null!=this.G8&&this.G8(this.jk)};a.prototype.dua=function(c){this.Dj+=2;this.Dj=c==k.i.input.pa.oo?this.Dj+1:this.Dj;return this.ar.getItem(this.El[this.$e].caption).qL(this.rn[this.$e+this.Dj][this.sf])};a.prototype.TGa=function(c){this.El.push(this.oR(k.i.Ja.wD(c.type),c.Yl,!0,c.uniqueName))};a.prototype.UIa=function(c,e){c=f.O.bind(f.model.A.j.m7,
(c/e*100).toFixed(0));f.za(!0,f.model.A.j.z7,c)};a.prototype.oR=function(c,e,g,l){g=void 0===g?!1:g;var m=new b;m.caption=e;m.type=c;m.rg=g;m.uniqueName=l;return m};d.BW=a;q.Object.defineProperties(b.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.hg},set:function(c){this.hg=c}},caption:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(c){this.qc=c}},rg:{configurable:!0,enumerable:!0,get:function(){return this.Bqa},set:function(c){this.Bqa=c}},uniqueName:{configurable:!0,
enumerable:!0,get:function(){return this.KJ},set:function(c){this.KJ=c}}});d.XKa=b})(h.json||(h.json={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.j8.apply(this,arguments)||this;a.xM=0;a.bj=0;a.Dn=null;a.qT=!1;a.g1=!1;a.isArray=!1;return a}u(b,h.j8);b.prototype.load=function(a,c,e,g,l){this.clear();this.Ib=c;this.Xa=e;this.Be=g;this.qF=l;this.connectionInfo=a;this.filename=a.filename;!f.ha(this.filename)&&"()"!=this.filename.substr(-2)||!1!==a.browseForFile?(this.filename=x.hx.AG(this.filename,!f.model.B.C.XY),f.za(!0,f.model.A.j.Hf),this.dN(this.filename,a.requestHeaders)):
this.F2()};b.prototype.tDa=function(){f.za(!0,f.model.A.j.Hf,"")};b.prototype.zEa=function(a){a=0==a.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(a.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(a.loaded),x.Tb.xg(a.total),(a.loaded/a.total*100).toFixed(0));f.za(!0,f.model.A.j.Hf,a)};b.prototype.F2=function(a){a=void 0===a?null:a;f.za(!1);var c="",e="";null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(e=f.model.Nb.validate(a.target.response),c=e=700<e.length?e.substr(0,700):e,e=f.O.bind(f.model.A.j.EO,
e).replace(/'/g,""));0==this.g1&&(this.g1=!0,a=f.model.Nb.valid(this.filename)?this.filename:f.model.Nb.validate(this.filename),f.Va(f.O.bind(f.model.A.j.EI,a)+e,f.model.A.j.ya,f.rb.ya));null!=this.Xa&&(this.Xa(c),this.Xa=null);this.ag()};b.prototype.gFa=function(a,c,e){var g=this;try{var l=e?JSON.parse(a):JSON.parse(this.$Y(a));Array.isArray(l)?(this.QJ(l),x.Pk.sn({ao:function(){return g.nu()},Ne:c})):this.pM()}catch(m){this.pM()}};b.prototype.$Y=function(a){void 0!==this.de&&0<this.de.length&&(a=
this.de+a);a=a.replace(/^\s+/,"");if("["==a[0]){a=a.substr(1).replace(/^\s+/,"");var c=a[0];a="["!=c&&"{"!=c?"["+a:a}else c=a.replace(/\s+$/,""),"]"==c[c.length-1]&&(c=c.substr(0,c.length-1).replace(/\s+$/,""),a=c[c.length-1],a="]"!=a&&"}"!=a?c+"]":c);c=a.lastIndexOf("},");var e=a.lastIndexOf("],");c=c<e?e:c;this.de=a.substr(c+2);return a="["+a.substr(0,c+1)+"]"};b.prototype.QJ=function(a){f.v(a.items)||(a=a.items);(f.v(a)||1>a.length)&&!f.model.B.C.qH?!this.qT&&this.mT&&this.fU():Array.isArray(a)?
(this.qT?this.data=this.data.concat(a.slice()):(this.qT=!0,this.fs(),this.Ud=k.Na.U().I,this.qa=k.Na.U().qa,this.isArray=a[1]&&Array.isArray(a[1]),this.connectionInfo.mapping.ob?a[0]&&Array.isArray(a[0])?this.TC(a[0],a[1]):this.Ud.AQ(a[0]):this.Ud.AQ(this.connectionInfo.mapping.La()),this.data=a.slice(),(k.I.Aj.nT(a[0])||this.isArray)&&this.data.shift()),0==this.data.length&&this.aH()):f.Va(f.model.A.j.CI,f.model.A.j.ya)};b.prototype.TC=function(a,c){try{var e=f.v(c)?[]:c;this.Ol=[];for(c=0;c<a.length;c++){var g=
this.kS(e[c]),l=this.Sv(a[c],g,0==e.length),m=this.k0(a[c],g,0==e.length),n=this.fL(a[c]),p=this.dL(n),t={type:l,uniqueName:n,caption:p,isMeasure:m};if(!t.hasOwnProperty("visible")||!1!==t.visible){this.tB[c]=t.type;this.Qe[c]=t.isMeasure;this.Ol[c]=n;if(l===k.i.input.pa.qf){var r=n.split(":");t.hierarchy=r[0];t.level=r.pop();t.parent=r.join(":")}this.Ud.ux(t,n)}}}catch(v){console.error(v.stack),this.p2()}};b.prototype.p2=function(){f.za(!1);f.Va(f.O.bind(f.model.A.j.t7),f.model.A.j.ya,f.rb.ya)};
b.prototype.kS=function(a){void 0!==a&&null!==a&&"string"==typeof a&&(a=a.replace(",","."));return a};b.prototype.fL=function(a){a=a.trim();if(-1<this.Ol.indexOf(a)){for(var c=1,e=a;-1<this.Ol.indexOf(e);)e=a+c,c++;a=e}return a};b.prototype.dL=function(a){return this.vy(a)?(a=a.split(":"),a[a.length-1]):a};b.prototype.k0=function(a,c,e){return!f.model.B.C.Je||f.v(c)&&!e?!1:"-"===a.trim().charAt(0)};b.prototype.Sv=function(a,c,e){var g=k.i.input.pa.fb;a=a.trim();if(f.v(c)&&!e)return k.i.input.pa.Sc;
"+"===a.charAt(0)?g=k.i.input.pa.Sc:"t+"===a.substr(0,2)?g=k.i.input.pa.Yb:"dt+"===a.substr(0,3)?g=k.i.input.pa.Dc:"n+"===a.substr(0,2)?g=k.i.input.pa.fb:"-"===a.charAt(0)?g=k.i.input.pa.fb:"ds+"===a.substr(0,3)?g=k.i.input.pa.gj:"d+"===a.substr(0,2)?g=k.i.input.pa.Oa:"m+"===a.substr(0,2)?g=k.i.input.pa.Hg:"w+"===a.substr(0,2)?g=k.i.input.pa.om:"D+"===a.substr(0,2)?g=k.i.input.pa.Np:"D4+"===a.substr(0,3)?g=k.i.input.pa.oo:"id+"===a.substr(0,3)?g=k.i.input.pa.Vw:""==c||void 0===c?g=k.i.input.pa.Sc:
isNaN(Number(c))&&(g=f.O.dT(c)?f.model.B.C.yR:k.i.input.pa.Sc);g===k.i.input.pa.Sc&&this.vy(a)&&(g=k.i.input.pa.qf);return g};b.prototype.vy=function(a){"+"===a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.Ol.indexOf(a.split(":")[0].trim())};b.prototype.nu=function(){if(0===this.bj%100&&200<x.xf()-this.xM){var a=f.model.A.j.BO,c=this.q0();1==this.mT&&f.za(!0,a,c);this.xM=x.xf()}if(this.bj>=this.data.length)return!0;f.v(this.data[this.bj])||this.insertData(this.data[this.bj],this.isArray);
this.data[this.bj]=void 0;this.bj++;return this.bj>=this.data.length};b.prototype.S3=function(){this.Dn=this.Ud.Z_(!1);this.FF=[];for(var a=0;a<this.Dn.length;a++)this.FF[a]=this.Ud.XB(this.Dn[a]);this.qa.gH()};b.prototype.insertData=function(a,c){null===this.Dn&&this.S3();for(var e,g,l=[],m=[],n,p,t,r=0;r<this.Dn.length;r++)if(e=this.Dn[r],g=this.FF[r],c?(t=a.hasOwnProperty(""+r),p=a[r]):(t=a.hasOwnProperty(e),p=a[e]),g!==k.i.input.pa.mE)if(g===k.i.input.pa.Vw)n=p;else{var v=void 0;this.Ud.E0&&(v=
this.f0(a,e,c));p=t?new k.I.Rd({gf:v,value:p,caption:String(p)}):new k.I.Rd({gf:v});g===k.i.input.pa.qf&&(t=this.Ud.VB(e),t=t.hierarchy.ra.ea(t.sb-1).uniqueName,p.ei=a[t]);this.Ud.fc(p,e,g,l,m)}this.qa.insert(l,m,n)};b.prototype.f0=function(a,c,e){var g=this;e=void 0===e?!1:e;var l=void 0;(c=this.Ud.hca(c))&&0<c.length&&c.forEach(function(m){var n=e?a[g.Dn.indexOf(m)]:a[m];f.v(n)||(f.v(l)&&(l={}),l[m]=n)});return l};b.prototype.q0=function(){return f.O.bind(f.model.A.j.Tma,x.Tb.jy(this.bj.toString()),
(this.jB/this.iK*100).toFixed(0))};b.prototype.aH=function(){this.data=null;f.za(!1);f.pg(this.Ib)&&this.Ib();this.clear()};b.prototype.fs=function(){null!=this.Be&&(this.Be(),this.Be=null)};b.prototype.fFa=function(){f.za(!1);if(this.qT){if(!f.ha(this.de)){if("]"==this.de.substr(-1)){this.de=this.de.substr(0,this.de.length-1).trim();var a=this.de.substr(this.de.length-1);this.de="]"!=a&&"}"!=a?this.de+"]":this.de}a=JSON.parse(this.de);this.data.push(a);this.nu()}null!=this.Ib&&(this.clear(),this.Ib())}else f.Va(f.model.A.j.Nu,
f.model.A.j.ya,f.rb.Ik),null!=this.Xa&&(this.Xa(),this.Xa=null);this.clear()};b.prototype.pM=function(){f.Va(f.model.A.j.CI,f.model.A.j.ya);f.za(!1);f.pg(this.Xa)&&this.Xa();this.Ib=this.Xa=null;this.clear()};b.prototype.fU=function(){f.model.B.C.qH||f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik);f.za(!1);f.pg(this.Xa)&&this.Xa();this.Ib=this.Xa=null;this.clear()};b.prototype.clear=function(){this.data=[];this.Jj=0;this.tB=[];this.Qe=[];this.g1=!1;this.de="";null!=this.ma&&(this.ma.Od(),this.ma.dispose(),
this.ma=null);this.ag()};b.prototype.cancel=function(){this.clear();this.Be=this.Xa=this.Ib=null};b.prototype.yk=function(){throw Error("Method not implemented.");};b.prototype.Uj=function(){throw Error("Method not implemented.");};b.prototype.Iy=function(){throw Error("Method not implemented.");};b.prototype.vp=function(){throw Error("Method not implemented.");};b.prototype.kB=function(){throw Error("Method not implemented.");};d.Yla=b})(h.json||(h.json={}))})(k.local||(k.local={}))})(f.u||(f.u=
{}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return k.ND.apply(this,arguments)||this}u(d,k.ND);d.prototype.gH=function(){this.uZ();for(var b=[],a=this.slice.rc(!1),c=0;c<a.length;c++){var e=a.ea(c);this.Jl(e.uniqueName,e.uniqueName);f.model.B.C.oc&&this.Bm(this.wa.I.Ee(e.uniqueName));for(var g=1;g<e.ra.length;g++){var l=e.ra.ea(g);this.Jl(l.uniqueName,e.uniqueName)}}a=f.u.i.oa.Nc===this.wa.fa.Ba?this.Rwa(this.slice.Of):this.slice.Of;for(c=0;c<a.length;c++)this.Bm(a[c],b);if(f.u.i.oa.Nc===this.wa.fa.Ba)for(c=
0;c<a.length;c++)e=a[c],e.Ka&&(this.xx(e.uniqueName,e.Ll),this.RJ(e));this.slice.fz(b)};d.prototype.Rwa=function(b){var a=[],c={};if(void 0!==b)for(var e,g,l,m,n=0;n<b.length;n++)e=b[n].$,g=b[n].uniqueName,l=b[n].hidden,void 0===c[g+"_"+e]?(m=a.length,c[g+"_"+e]={HC:m,Gda:l},a.push(b[n])):(e=c[g+"_"+e],e.Gda&&!l&&(a.splice(e.HC,1),e.HC=a.length,e.Gda=b[n].hidden,a.push(b[n])));return a};d.prototype.Eh=function(b,a,c){if("string"!==typeof b){var e=b.uniqueName;var g=k.i.ca.UL(b.$)?b.$:b.Ll}else e=
b;f.v(a)||(g=a);return k.ND.prototype.Eh.call(this,e,g,c)};d.prototype.Bm=function(b,a){b&&(f.u.i.oa.Nc===this.wa.fa.Ba&&b.Ka||(this.xx(b.uniqueName,b.Ll),k.i.ca.UL(b.$)&&this.xx(b.uniqueName,b.$),this.RJ(b)),b.Ka&&this.T9(b,this.slice.Wc.measures,a),void 0!==a&&a.push(b))};d.prototype.T9=function(b,a,c){if((a=x.ws.pL(b.Sd,a))&&0<a.length)for(var e=0;e<a.length;e++){var g=a[e],l=this.wa.I.$c(g.uniqueName);if(null!=l){var m=this.slice.Zh(g);if(null==m){m=l.clone();m.$=g.$;g=m.hidden=!0;if(void 0!==
c)for(l=0;l<c.length;l++)c[l].uniqueName===m.uniqueName&&(m.$===k.i.ca.NONE||c[l].$===b.$&&c[l].Ll===b.Ll)&&(g=!1);g&&(c.push(m),this.RJ(m),this.xx(m.uniqueName,m.Ll),k.i.ca.UL(m.$)&&this.xx(m.uniqueName,m.$))}}}};d.prototype.fB=function(b){return this.wa.fa.Ba==k.i.oa.Gf&&b&&0==this.wa.fa.mapping.Fa(b.uniqueName,"min_doc_count")};d.prototype.kF=function(b){return this.wa.fa.Ba==k.i.oa.Gf&&b&&0==this.wa.fa.mapping.Fa(b.uniqueName,"min_doc_count")};h.Gu=d})(k.external||(k.external={}))})(f.u||(f.u=
{}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(){}b.NONE=0;b.VV=1;b.aX=2;b.gX=3;b.SH=4;b.bW=5;d.jj=b})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(a){return k.I.Aj.call(this,void 0===a?null:a)||this}u(b,k.I.Aj);d.MO=b})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=k.I.ConnectionInfo.apply(this,arguments)||this;a.binary=!1;a.dataSourceInfo="";a.H8="";a.af="";a.subquery="";a.proxyUrl="";a.roles="";a.localeIdentifier="";a.effectiveUserName="";a.mapping=new d.MO;a.Jw=!0;a.av="";a.version=0;return a}u(b,k.I.ConnectionInfo);b.prototype.isEqual=function(a){return k.I.ConnectionInfo.prototype.isEqual.call(this,a)&&this.proxyUrl===a.proxyUrl&&this.Ae===a.Ae&&this.wa===a.wa&&this.dataSourceInfo===
a.dataSourceInfo&&this.binary===a.binary&&this.subquery===a.subquery&&this.mapping.isEqual(a.mapping)&&this.Jw===a.Jw&&(this.Ba!=k.i.oa.Zd?this.subquery===a.subquery:!0)&&(this.Ba===k.i.oa.Nc?this.localeIdentifier===a.localeIdentifier:!0)&&(this.Ba===k.i.oa.Nc?this.effectiveUserName===a.effectiveUserName:!0)&&(this.Ba===k.i.oa.Nc?this.Fm===a.Fm:!0)};b.tb=function(a){var c=new b;f.v(a.dataSourceType)||(c.Ba=a.dataSourceType);f.v(a.dataSourceInfo)||(c.dataSourceInfo=a.dataSourceInfo);f.v(a.catalog)||
(c.Ae=a.catalog);f.v(a.cube)||(c.wa=a.cube);f.v(a.roles)||(c.roles=a.roles);f.v(a.proxyUrl)||(c.proxyUrl=a.proxyUrl);f.v(a.localeIdentifier)||(c.localeIdentifier=a.localeIdentifier);f.v(a.subquery)||(c.subquery=a.subquery);f.v(a.effectiveUserName)||(c.effectiveUserName=a.effectiveUserName);f.v(a.customData)||(c.Fm=a.customData);f.v(a.binary)||(c.binary=a.binary);f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.mapping)||(c.mapping=a.mapping instanceof d.MO?a.mapping:new d.MO(a.mapping));
f.v(a.useGranularityNamesForDateFilters)||(c.Jw=a.useGranularityNamesForDateFilters);c.credentials=d.eh.w8.tb(a);f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c};b.Qj=function(a){var c=new b;a=a.find("dataSource");var e=a.attr("type");void 0!==e&&(e=e.toLowerCase());"msolap"==e&&(e=k.i.oa.Nc);e&&-1<e.indexOf("pentaho")&&(e=k.i.oa.Zd);if(!k.i.oa.valid(e)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(e=k.i.oa.Nc)}c.Ba=e;0!=a.find("dataSourceInfo").length&&(c.dataSourceInfo=
a.find("dataSourceInfo").text());0!=a.find("catalog").length&&(c.Ae=a.find("catalog").text());0!=a.find("cube").length&&(c.wa=a.find("cube").text());0!=a.find("subquery").length&&(c.subquery=a.find("subquery").text());0!=a.find("roles").length&&(c.roles=a.find("roles").text());0!=a.find("proxyUrl").length&&(c.proxyUrl=a.find("proxyUrl").text());0!=a.find("localeIdentifier").length&&(c.localeIdentifier=a.find("localeIdentifier").text());0!=a.find("effectiveUserName").length&&(c.effectiveUserName=a.find("effectiveUserName").text());
0!=a.find("customData").length&&(c.Fm=a.find("customData").text());0!=a.find("binary").length&&(c.binary=f.O.Rc(a.find("binary").text()));0!=a.find("credentials").length&&(e={},0!=a.find("credentials").find("hash").length&&(e.hash=a.find("credentials").find("hash").text()),0!=a.find("credentials").find("username").length&&(e.username=a.find("credentials").find("username").text()),0!=a.find("credentials").find("password").length&&(e.password=a.find("credentials").find("password").text()),c.credentials=
d.eh.w8.tb(e));return c};b.prototype.co=function(a){a=void 0===a?!1:a;var c=D.aa.create("<dataSource/>");c.attr("type",this.Ba);switch(this.Ba){case k.i.oa.Nc:(a||""!=this.localeIdentifier)&&c.append(D.aa.create("<localeIdentifier/>").text(this.localeIdentifier)),(a||""!=this.effectiveUserName)&&c.append(D.aa.create("<effectiveUserName/>").text(this.effectiveUserName)),(a||""!=this.av)&&c.append(D.aa.create("<customData/>").text(this.av));case k.i.oa.Zd:c.append(D.aa.create("<proxyUrl/>").append(D.aa.Bh(this.proxyUrl))),
(a||""!=this.dataSourceInfo)&&c.append(D.aa.create("<dataSourceInfo/>").text(this.dataSourceInfo)),c.append(D.aa.create("<catalog/>").text(this.Ae)),c.append(D.aa.create("<cube/>").text(this.wa)),c.append(D.aa.create("<binary/>").text(this.binary)),(a||""!=this.roles)&&c.append(D.aa.create("<roles/>").text(this.roles)),this.credentials&&this.credentials.Om&&(a=D.aa.create("<hash/>").text(this.credentials.hash),c.append(D.aa.create("<credentials/>").append(a)))}return c};b.prototype.La=function(a){a=
void 0===a?!1:a;var c={};c.type=this.Ba;switch(this.Ba){case k.i.oa.Nc:if(a||""!=this.localeIdentifier)c.localeIdentifier=this.localeIdentifier;if(a||""!=this.effectiveUserName)c.effectiveUserName=this.effectiveUserName;if(a||""!=this.av)c.customData=this.av;if(a||this.withCredentials)c.withCredentials=this.withCredentials;if(a||1!=this.Jw)c.useGranularityNamesForDateFilters=this.Jw;case k.i.oa.Zd:c.proxyUrl=this.proxyUrl;if(a||""!=this.dataSourceInfo)c.dataSourceInfo=this.dataSourceInfo;c.catalog=
this.Ae;c.cube=this.wa;c.binary=this.binary;if(a||""!=this.roles)c.roles=this.roles;this.credentials&&this.credentials.Om&&(c.credentials={hash:this.credentials.hash})}if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);return c};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;switch(this.Ba){case k.i.oa.Nc:""!==this.localeIdentifier&&(a.localeIdentifier=this.localeIdentifier),""!==this.effectiveUserName&&(a.effectiveUserName=this.effectiveUserName),""!==this.av&&(a.Fm=this.av),
this.withCredentials&&(a.withCredentials=this.withCredentials),1!=this.Jw&&(a.Jw=this.Jw);case k.i.oa.Zd:a.proxyUrl=this.proxyUrl,""!==this.dataSourceInfo&&(a.dataSourceInfo=this.dataSourceInfo),a.Ae=this.Ae,a.wa=this.wa,a.binary=this.binary,""!==this.roles&&(a.roles=this.roles),this.credentials&&this.credentials.Om&&(a.credentials={hash:this.credentials.hash})}if(!this.mapping.ob||this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);return a};q.Object.defineProperties(b.prototype,{Ae:{configurable:!0,
enumerable:!0,get:function(){return this.H8},set:function(a){a=a.replace("[","");this.H8=a=a.replace("]","")}},wa:{configurable:!0,enumerable:!0,get:function(){return this.af},set:function(a){a=a.replace("[","");this.af=a=a.replace("]","")}},Fm:{configurable:!0,enumerable:!0,get:function(){return this.Ba!=k.i.oa.Nc?"":""==this.av&&null!=this.credentials&&this.credentials.Om?"credentials="+this.credentials.hash:this.av},set:function(a){this.av=a}},rT:{configurable:!0,enumerable:!0,get:function(){return this.binary}},
ob:{configurable:!0,enumerable:!0,get:function(){return f.ha(this.proxyUrl)},set:function(){}},RL:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},KG:{configurable:!0,enumerable:!0,get:function(){return!1}},gT:{configurable:!0,enumerable:!0,get:function(){return this.Ba!=k.i.oa.Zd||this.rT?!0:!1}},fT:{configurable:!0,enumerable:!0,get:function(){return this.Ba==k.i.oa.Nc&&this.rT}}});b.sessionId=0;d.OLAPConnectionInfo=b})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||
(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return h.Gu.apply(this,arguments)||this}u(b,h.Gu);b.prototype.XS=function(a,c,e,g,l,m){for(var n=[],p=[],t=0;t<a.length;t++){if(-1===a[t][1])return;p[t]=a[t][1];n[this.ra[this.uh[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.ra[this.Ti[t]][c[t][0]]]=a[t]}c=this.rr(p,a);p=this.pb.length;void 0!==this.values[c]?p=this.axa(n):(this.Wg.push(p),this.pb.push(n));0<g.length&&(n=l===k.i.ia.Ia?this.cd(g,
this.vd):this.cd(g,this.Md),-1===n[0][0].indexOf(p)&&n[0][0].push(p),m===k.i.Kd.ZV&&(g=g.slice(0,-1),l=l===k.i.ia.Ia?this.cd(g,this.vd):this.cd(g,this.Md),-1===l[0][0].indexOf(p)&&l[0][0].push(p)));this.values[c]=e};b.prototype.axa=function(a){for(var c,e=0;e<this.pb.length;e++)if(a.length===this.pb[e].length){c=!0;for(var g=0;g<a.length;g++)if(a[g]!==this.pb[e][g]){c=!1;break}if(c)return e}return this.pb.length};b.prototype.Fa=function(a,c,e){var g=this.rr(a,c),l=this.Eh(e);void 0===this.values[g]&&
(this.values[g]=[]);if(!f.model.B.C.zv||!e.Ka)return f.v(this.values[g][l])?NaN:this.values[g][l];if(void 0==this.values[g][l]){var m=this.cd(a,this.vd),n=this.cd(c,this.Md);if(void 0===m||void 0===m[0]||void 0===n||void 0===n[0])return NaN;a=this.qq([g],e.Sd,e.gl,0,a,c,e.Eo);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][l]=a}return f.v(this.values[g][l])?NaN:this.values[g][l]};b.prototype.yA=function(a,c,e){if(void 0!==a){var g=a[0][0];if(0<g.length&&!isNaN(c))for(var l=0;l<g.length;l++){var m=this.pb[g[l]][this.ra[c][1]];
0!==m&&void 0!==m&&(void 0===a[m]?(a[m]=[[[g[l]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[l]))}void 0===a[0][3]&&(a[0][3]=[]);void 0===e?a[0][3][this.bg.length]=!0:a[0][3][this.Eh(e)]=!0;a[0][5]=!0}};b.prototype.JP=function(a,c,e,g,l){var m=c[0][0];if(0<m.length&&!isNaN(g))for(var n=0;n<m.length;n++){var p=this.pb[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.al[e][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===l?c[0][4][this.bg.length]=!0:c[0][4][this.Eh(l)]=!0};b.prototype.Jn=function(a,c,e){for(var g=0;g<c.length;g++){var l=c[g],m=e[g];if(f.model.B.C.A0){var n=this.slice.rc().getItem(this.le[m]),p=n.va(l);f.v(n.kC)||f.v(this.ra)||f.v(e[g])||f.v(this.ra[e[g]])||(m=this.ra[e[g]][p.level.sb])}m=f.v(this.al[m])||f.v(this.al[m][l])?m:this.al[m][l];n=[];for(p=0;p<a.length;p++)this.pb[a[p]][m]===l&&n.push(a[p]);a=n}return a};b.prototype.Bm=function(a,c){a&&h.Gu.prototype.Bm.call(this,
a,c)};b.prototype.T9=function(a,c,e){a=x.ws.pL(a.Sd,c);for(var g=0;g<a.length;g++){var l=this.wa.I.$c(a[g].uniqueName);null==l||c.Bb(l.uniqueName)||(l.hidden=!0,e.push(l),this.RJ(l),this.xx(l.uniqueName,l.Ll),k.i.ca.UL(l.$)&&this.xx(l.uniqueName,l.$))}};d.Kna=b})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.o5.call(this,c,e)||this}u(a,k.I.o5);b.H7=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.ek.call(this,c,void 0===e?"":e)||this}u(a,k.I.ek);a.prototype.clone=function(){var c=new a(this.uniqueName);this.xK(c);return c};q.Object.defineProperties(a.prototype,{bm:{configurable:!0,enumerable:!0,get:function(){return this.Ka||this.Bg?[]:k.i.ca.e5},set:function(){}},$:{configurable:!0,enumerable:!0,get:function(){return""==this.Cj?this.Tc[0]:this.Cj},set:function(c){c&&c.toLowerCase()!=this.Cj?(c=c.toLowerCase(),
k.i.ca.Vx(c)&&(c=k.i.ca.ky(c)),k.i.ca.bKa(c)||this.Ka&&c==k.i.ca.NONE?(this.fv=void 0,this.Cj=c,-1==this.Tc.indexOf(c)&&(this.Cj=this.Tc[0])):this.OU()):""==c&&this.OU()}},ac:{configurable:!0,enumerable:!0,get:function(){return f.model.Nb.valid(this.qc)?this.qc:f.model.Nb.validate(this.qc)}},caption:{configurable:!0,enumerable:!0,get:function(){if(0==f.model.B.C.iz)return this.ac;switch(this.$){case k.i.ca.Wq:return f.O.bind(f.model.A.j.QI,this.ac);case k.i.ca.ro:return f.O.bind(f.model.A.j.JI,this.ac);
case k.i.ca.Tp:return f.O.bind(f.model.A.j.OI,this.ac);case k.i.ca.Rp:return f.O.bind(f.model.A.j.MI,this.ac);case k.i.ca.Sp:return f.O.bind(f.model.A.j.NI,this.ac);case k.i.ca.li:return f.O.bind(f.model.A.j.wI,this.ac);case k.i.ca.dn:return f.O.bind(f.model.A.j.bI,this.ac);case k.i.ca.im:return f.O.bind(f.model.A.j.cI,this.ac);case k.i.ca.jn:return f.O.bind(f.model.A.j.KI,this.ac);case k.i.ca.km:return f.O.bind(f.model.A.j.LI,this.ac)}return this.ac},set:function(c){""==c.trim()?this.qc=f.model.A.j.Mk:
this.qc=c}},Yl:{configurable:!0,enumerable:!0,get:function(){return this.ac},set:function(){}}});b.cA=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){return k.I.Pq.apply(this,arguments)||this}u(a,k.I.Pq);q.Object.defineProperties(a.prototype,{caption:{configurable:!0,enumerable:!0,get:function(){return this.hierarchy.aC(this.ordinal)},set:function(){}},Bi:{configurable:!0,enumerable:!0,get:function(){return this.level.cw?!0:this.hierarchy.sT||this.hierarchy.$t||this.level.cw?(this.Pg||!this.yf)&&0==this.children.length:!1},set:function(){}},Xi:{configurable:!0,enumerable:!0,
get:function(){return this.uniqueName}}});b.SW=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e,g){return k.I.$m.call(this,c,void 0===e?"":e,void 0===g?0:g)||this}u(a,k.I.$m);b.Nna=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){c=k.I.nf.call(this,c,void 0===e?"":e)||this;c.F9=0;return c}u(a,k.I.nf);a.prototype.fc=function(c){c.uniqueName==this.br&&(c.Wb=!0);return k.I.nf.prototype.fc.call(this,c)};a.prototype.Kl=function(c){c=void 0===c?"(Total)":c;if(this.Fh)return this.tn+".["+c+"]";var e=this.xt.split("].");e.pop();e.push("["+c+"]");return e.join("].")};a.prototype.nV=function(c,e){var g=this.Mha(c.children);g=f.pg(this.Ly)?this.qha(g):this.uY(g);
for(var l=[],m=0;m<g.length;m++)if(l.push(g[m].ordinal),e&&!c.Bi){var n=this.uj(g[m],e);0<n.length&&(l=l.concat(n))}return l};a.prototype.uY=function(c){this.Zf===k.i.xa.bc&&f.Ha.sort(c,f.Ha.mi,function(e){return e.ec});this.Zf===k.i.xa.Ec&&f.Ha.sort(c,f.Ha.ko|f.Ha.mi,function(e){return e.ec});return c};a.prototype.UR=function(c){c=this.Zu.find(c);return this.va(c)};a.prototype.bC=function(){return new b.SW(this)};q.Object.defineProperties(a.prototype,{Un:{configurable:!0,enumerable:!0,get:function(){return this.F9},
set:function(c){this.Fh||(c+=1);this.F9=c}},tn:{configurable:!0,enumerable:!0,set:function(c){""!=c&&!f.v(c)||this.Qe?this.br=c:(this.br=this.uniqueName+".[(All)]",this.ph(new k.I.$m(this.uniqueName,this.caption+" (All)")),this.fc(new k.I.Rd({uniqueName:this.br,caption:this.caption+" (All)",Wb:!0})),this.FA=!1)},get:function(){return this.br}}});b.LO=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.Oq.call(this,c,void 0===e?"":e)||this}u(a,k.I.Oq);b.Lna=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.I.rs.call(this)||this;c.cG=new b.Mna;return c}u(a,k.I.rs);a.prototype.LY=function(c,e){this.fea.Pa(c.uniqueName,c);if(0==f.ha(c.value)){var g=new b.cA(c.value,this.py(c.value,c.caption,f.model.A.j.a7,e));g.yg=f.model.A.j.Ww;g.Qc=c.caption;g.type=k.i.Ja.fb;g.Lr=c.uniqueName;this.Hj(g)}0==f.ha(c.ty)&&(g=new b.cA(c.ty,this.py(c.ty,c.caption,f.model.A.j.W6,e)),g.yg=f.model.A.j.Ww,g.Qc=c.caption,g.type=k.i.Ja.fb,g.Lr=
c.uniqueName,this.Hj(g));0==f.ha(c.status)&&(g=new b.cA(c.status,this.py(c.status,c.caption,f.model.A.j.Y6,e)),g.yg=f.model.A.j.Ww,g.Qc=c.caption,g.type=k.i.Ja.fb,g.Lr=c.uniqueName,g.xC=!0,this.Hj(g));0==f.ha(c.oz)&&(e=new b.cA(c.oz,this.py(c.oz,c.caption,f.model.A.j.Z6,e)),e.yg=f.model.A.j.Ww,e.Qc=c.caption,e.type=k.i.Ja.fb,e.Lr=c.uniqueName,e.yC=!0,this.Hj(e))};a.prototype.nw=function(c,e,g){e=void 0===e?null:e;g=void 0===g?!1:g;var l=e?e:new b.cA(c.uniqueName);return k.I.rs.prototype.nw.call(this,
c,l,f.v(e)||g)};b.Ona=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){(function(b){function a(){return k.I.OD.apply(this,arguments)||this}u(a,k.I.OD);a.prototype.mG=function(c){var e=k.I.OD.prototype.mG.call(this,c);c!=k.i.kb.NONE&&(e.xl=[k.i.tc.Bj,k.i.tc.ji]);return e};b.Mna=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=this;this.gx=20;this.moa=RegExp("<Tuple>(.|\n|\r)*?</Tuple>","gi");this.koa=RegExp("<Cell (.|\n|\r)*?</Cell>","gi");this.loa=RegExp("<row>(.|\n|\r)*?</row>","g");this.W7=RegExp("<soap:Fault(.|\n|\r)*?</soap:Fault>","gi");this.V7=RegExp("<SOAP-ENV:Fault(.|\n|\r)*?</SOAP-ENV:Fault>","gi");this.ga=k.Na.U();this.O4=!0;this.KA=!1;this.Gk=function(){return c.Vr()};this.ej=function(){return c.mp()};this.uba=function(){return c.VDa()};
this.Vy=function(e){return c.lp(e)};this.Xa=function(){return c.Mb()}}a.prototype.load=function(c,e,g){this.fa=c;this.Fj=e;this.Eb=g;this.KA=!1;this.kw()};a.prototype.drillThrough=function(c,e,g,l,m,n){this.fa=c;this.Fj=e;this.Eb=n;this.KA=!0;this.kw()};a.prototype.kw=function(){f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,"0.5"));this.vh();this.qC();b.Kf.ub=this.fa;this.ma.data=D.aa.Cc(b.Kf.Jv(this.Fj.body));this.ma.load(this.fa.proxyUrl);this.timer=new x.Es(500,1E5);this.timer.N(x.Ze.Nk,this.Gk);
this.timer.N(x.Ze.Ok,this.ej);this.timer.start()};a.prototype.OK=function(){f.v(this.fa.withCredentials)||(this.ma.withCredentials=this.fa.withCredentials)};a.prototype.vh=function(){this.ma=new D.Qi;this.ma.Sfa=100;this.ma.contentType=D.Iz.eP;this.ma.dataType=D.Jz.aa;this.ma.Dq=D.Fs.Pu;var c=JSON.parse(JSON.stringify(f.v(this.fa.requestHeaders)?{}:this.fa.requestHeaders));this.O4&&(c.Accept="application/xml");this.OK();this.fa.credentials&&this.fa.credentials.Om&&(c.Authorization="Basic "+this.fa.credentials.hash,
this.ma.withCredentials=!0);this.ma.vh(c)};a.prototype.Vr=function(){null!=this.timer&&f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/2,new f.model.Zb.W.pf,!1,!1,1)))};a.prototype.mp=function(){this.timer.sl&&f.Va("Can't connect to data source!",f.model.A.j.ya)};a.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};a.prototype.qC=function(){this.ma.N(y.da.Jc,this.uba);this.ma.N(y.da.je,this.Vy);
this.ma.N(y.da.ya,this.Xa);this.sj=d.jj.NONE;this.Uc=[];this.Gb=[];this.mB=[];this.IB=[];this.HB=[];this.SF=[];this.bY="";this.gQ=0;this.columns=[];this.rows=[];this.measures=[];this.rc=this.ga.I.rc();this.Of=this.ga.sa.pu;this.MX=this.$E=!1;this.XC=this.WC=-1;this.Ac=[]};a.prototype.VDa=function(){var c=D.aa.Cc(D.aa.create(this.ma.response));this.MX=!0;this.Nqa(c)};a.prototype.lp=function(c){c=c.data;c.loaded!==this.Jj&&(this.ag(),this.Jj=c.loaded,this.e4(c.loaded))};a.prototype.Nqa=function(c){this.Jd(c);
!this.$E&&this.sj>d.jj.NONE&&this.lJa()};a.prototype.Jd=function(c){if(0!=c.length&&this.gQ!=c.length){var e=this.bY+c.substring(this.gQ);if(this.sj===d.jj.NONE){if(this.fa.Ba==k.i.oa.Nc){if(this.W7.test(e)){this.hGa(e.match(this.W7)[0]);this.yq();return}}else if(this.fa.Ba==k.i.oa.Zd&&this.V7.test(e)){this.iGa(e.match(this.V7)[0]);this.yq();return}var g=this.EV(e);-1<g&&(e=e.substr(g))}this.sj==d.jj.bW&&(g=this.EV(e),0>g&&(g=e.lastIndexOf("</row>")+6),5!=g&&(this.UJa(e.substring(0,g),this.IB),e=
e.substr(g)));this.sj==d.jj.VV&&(g=this.EV(e),0>g&&(g=e.lastIndexOf("</Tuple>")+8),7!=g&&(this.fia(e.substring(0,g),this.Uc),e=e.substr(g)));this.sj==d.jj.aX&&(g=this.EV(e),0>g&&(g=e.lastIndexOf("</Tuple>")+8),7!=g&&(this.fia(e.substring(0,g),this.Gb),e=e.substr(g)));this.sj==d.jj.gX&&(g=e.indexOf("<CellData>"),-1<g&&(this.sj=d.jj.SH,e=e.substr(g)));this.sj==d.jj.SH&&(g=e.indexOf("</CellData>"),0>g&&(g=e.lastIndexOf("</Cell>")+7),6!=g&&(this.SJa(e.substring(0,g),this.mB),e=e.substr(g)));this.gQ=c.length;
this.bY=e}};a.prototype.iGa=function(c){c=c.replace(/SOAP-ENV:Fault/gi,"Fault");c=c.replace(/XA:error/gi,"error");c=D.aa.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),f.Va(c,f.model.A.j.ya,f.rb.ya))};a.prototype.hGa=function(c){c=c.replace(/soap:Fault/gi,"Fault");c=D.aa.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),f.Va(c,f.model.A.j.ya,f.rb.ya))};a.prototype.EV=function(c){var e=-1;if(this.KA&&this.sj<d.jj.bW){e=c.indexOf("<row>");this.sj=d.jj.bW;
if(-1<e)return e;f.Va("No data received from the server.",f.model.A.j.ya)}if(this.sj<d.jj.VV&&(e=c.indexOf('<Axis name="Axis0">'),-1<e))return this.sj=d.jj.VV,e;if(this.sj<d.jj.aX&&(e=c.indexOf('<Axis name="Axis1">'),-1<e))return this.sj=d.jj.aX,e;if(this.sj<d.jj.gX&&(e=c.indexOf('<Axis name="SlicerAxis">'),-1<e))return this.sj=d.jj.gX,e;this.sj<d.jj.SH&&(e=c.indexOf("<CellData>"),-1<e&&(this.sj=d.jj.SH));return e};a.prototype.UJa=function(c,e){c=c.match(this.loa);for(var g=0;g<c.length;g++){var l=
c[g].replace(/xsi:/g,"");l=l.replace(/xsd:/g,"");e.push(D.aa.create(l))}};a.prototype.fia=function(c,e){c=c.match(this.moa);if(!f.v(e)&&!f.v(c))for(var g=0;g<c.length;g++){var l=c[g].replace(/xsi:/g,"");e.push(D.aa.create(l))}};a.prototype.SJa=function(c,e){c=c.match(this.koa);if(!f.v(c)&&!f.v(e))for(var g=0;g<c.length;g++)f.v(c[g])||f.ha(c[g])||e.push(c[g])};a.prototype.lJa=function(){var c=this;this.$E=!0;x.Pk.sn({ao:function(){return c.parse()},Ne:function(){return c.yq()}})};a.prototype.parse=
function(){0<this.Uc.length&&this.xU();0<this.Gb.length&&this.zU();this.sj==d.jj.SH&&(0==this.columns.length&&(this.columns=[[[0,0]]]),0==this.rows.length&&(this.rows=[[]]));0<this.mB.length&&this.YFa();0<this.IB.length&&this.dGa();return this.MX&&0==this.Uc.length&&0==this.Gb.length&&0==this.mB.length&&0==this.IB.length};a.prototype.YFa=function(){for(var c,e,g,l,m,n=this.gx>this.mB.length?this.mB.length:this.gx,p=this.mB.splice(0,n),t=f.model.B.C.Jq&&this.fa.Ba===k.i.oa.Nc,r=0;r<n;r++)c=p[r],g=
null===c.match(/<Value.*>(.*)<\/Value>/)?0:parseFloat(c.match(/<Value.*>(.*)<\/Value>/)[1]),t&&(l=c.match(/<FmtValue.*>(.*)<\/FmtValue>/),l=null!=l&&1<l.length?l[1]:""),e=parseInt(c.match(/CellOrdinal="(.*)"/)[1]),c=this.eC(e),e=this.UB(e),m=this.measures[e],c==this.XC&&this.columns[this.WC].toString()==this.columns[e].toString()||-1==this.XC||-1==this.WC||(this.ga.qa.XS(this.rows[this.XC],this.columns[this.WC],this.Ac,this.Fj.We,this.Fj.ft,this.Fj.type),this.Ac=[]),this.Ac[m]=t&&this.Of[m].$==k.i.ca.NONE?
k.HI.U().hz(l,g):g,this.XC=c,this.WC=e;-1!=this.XC&&-1!=this.WC&&this.ga.qa.XS(this.rows[this.XC],this.columns[this.WC],this.Ac,this.Fj.We,this.Fj.ft,this.Fj.type)};a.prototype.dGa=function(){for(var c,e,g=this.gx>this.IB.length?this.IB.length:this.gx;0<g;){c=this.IB.shift();e=[];for(var l=0;l<c.getChildren().length;l++)this.fGa(c.getChildren()[l],e,l);this.HB.push(e);g--}};a.prototype.fGa=function(c,e,g){e[c.localName]=c.text();0>this.SF.indexOf(c.localName)&&this.SF.splice(g,0,c.localName)};a.prototype.FGa=
function(){for(var c=this,e=[],g=0;g<this.SF.length;g++)e[this.SF[g]]=g;for(g=0;g<this.HB.length;g++){var l=this.HB[g],m=[],n;for(n in l)m[e[n]]=l[n];this.HB[g]=m}e=this.SF.map(function(p){return c.eGa(p)});this.HB.unshift(e)};a.prototype.eGa=function(c){c=c.replace(/_x005B_/g,"[");c=c.replace(/_x005D_/g,"]");c=c.replace(/_x0020_/g," ");c=c.replace(/_x0024_/g,"");var e=this.rc.getItem(c);if(null!=e)return e.caption;e=this.Of.find(function(g){return g.uniqueName===c});if(null!=e)return e.caption;e=
c.split("].[");1<e.length&&(c=e[e.length-1].substr(0,e[e.length-1].length-1));return c};a.prototype.UB=function(c){return c%this.columns.length};a.prototype.eC=function(c){return Math.floor(c/this.columns.length)};a.prototype.zU=function(){for(var c,e,g=this.gx>this.Gb.length?this.Gb.length:this.gx;0<g;){this.rowIndex=0;e=[];c=this.Gb.shift();var l=c.find("Member");for(c=0;c<l.length;c++)this.xGa(l[c],e);this.rows.push(e);g--}};a.prototype.xGa=function(c,e){var g=c.find("HIERARCHY_UNIQUE_NAME").text();
g=this.rc.getItem(g);null!=g&&(c=this.Db(c,g),e.push([c.level.sb,c.ordinal]),this.rowIndex++)};a.prototype.xU=function(){for(var c,e,g=this.gx>this.Uc.length?this.Uc.length:this.gx;0<g;){this.Jta=0;c=[];e=this.Uc.shift();e=e.find("Member");for(var l=0;l<e.length;l++)this.$Fa(e[l],c);this.columns.push(c);g--}};a.prototype.$Fa=function(c,e){var g=c.find("HIERARCHY_UNIQUE_NAME").text();if("Measures"!=g&&"[Measures]"!=g){var l=this.rc.getItem(g);null==l&&(l=this.rc.getItem("["+g+"]"));null!=l&&(c=this.Db(c,
l),e.push([c.level.sb,c.ordinal]),this.Jta++)}else{var m=c.find("UName").text();e=this.Of.findIndex(function(n){return n.uniqueName===m});this.measures.push(e)}};a.prototype.Db=function(c,e){var g=c.find("UName").text(),l=e.Db(g);if(f.v(l)){var m=c.find("Caption").text();-1<m.indexOf("(Total")&&(e.Fh?g=g.substring(0,g.lastIndexOf(".[(")):(g=g.substring(0,g.lastIndexOf(".[("))+".[(All)]",null==e.Db(g)&&(g=g.substring(0,g.length-8))),l=e.Db(g))}f.v(l)&&(m=c.find("Caption").text(),c=c.find("PARENT_UNIQUE_NAME").text(),
l=e.fc(new k.I.Rd({uniqueName:g,caption:m,yf:!0,ei:c})));return l};a.prototype.e4=function(c){c=x.Tb.xg(c);f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.Al,c))};a.prototype.yq=function(){f.za(!1);this.Eb&&(this.KA?(this.FGa(),this.Eb(this.HB)):this.Eb());this.clear()};a.prototype.Mb=function(){};a.prototype.clear=function(){this.ma&&(this.ma.mb(y.da.Jc,this.uba),this.ma.mb(y.da.je,this.Vy),this.ma.mb(y.da.ya,this.Xa),this.ma.close(),this.ma=null);this.timer&&this.timer.sl&&this.timer.stop();this.sj=
0;this.Uc=[];this.Gb=[];this.mB=[];this.IB=[];this.HB=[];this.SF=[];this.gQ=0;this.bY="";this.columns=[];this.rows=[];this.measures=[];this.Of=this.rc=null;this.MX=this.$E=!1;this.XC=this.WC=-1;this.Ac=[]};a.prototype.cancel=function(){this.clear();this.Eb=null};b.x8=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=this;this.kl=this.Bk=this.ZG=0;this.gq=5E3;this.Kea=1E3;this.state=k.qo.gE;this.ld="";this.eu=!1;this.kea="";this.faa=function(){return e.vDa()};this.iaa=function(){return e.xDa()};this.yea=function(){return e.aj()};this.Vy=function(g){return e.lp(g)};this.Aga=function(){return e.tFa()};this.Bga=function(g){return e.uFa(g)};this.yga=function(){return e.pFa()};this.gaa=function(g){return e.wDa(g)};this.Xh=function(g){return e.Mb(g)};
b.Kf.ub=this.fa=c}a.prototype.Ul=function(){this.ma=new D.Qi;this.ma.contentType=D.Iz.eP;this.ma.dataType=D.Jz.aa;this.ma.Dq=D.Fs.Pu;this.OK();var c=JSON.parse(JSON.stringify(f.v(this.fa.requestHeaders)?{}:this.fa.requestHeaders));this.fa.credentials&&this.fa.credentials.Om&&(c.Authorization="Basic "+this.fa.credentials.hash,this.ma.withCredentials=!0);this.ma.vh(c)};a.prototype.OK=function(){f.v(this.fa.withCredentials)||(this.ma.withCredentials=this.fa.withCredentials)};a.prototype.LG=function(){return f.ha(this.hierarchy.ig)?
this.hierarchy.Un<this.Kea:this.hierarchy.Un<10*this.Kea};a.prototype.yn=function(){return f.ha(this.fa.subquery)?"["+this.fa.wa+"]":"("+this.fa.subquery+")"};a.prototype.Kua=function(c,e){this.Mua=c;this.Xa=e;c=this.yn();c=f.O.bind("with member [Measures].[CountAllMembers] as Count({0}.allmembers) select NON EMPTY {[Measures].[CountAllMembers]} ON columns FROM {1}",this.hierarchy.uniqueName,c);this.Ul();this.ma.data=D.aa.Cc(b.Kf.Jv(c));this.ma.N(y.da.Jc,this.faa);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};
a.prototype.vDa=function(){var c=D.aa.create(this.ma.response);this.sz(c)&&(this.hierarchy.Un=parseInt(c.find("root CellData Cell Value").text()));this.Mua()};a.prototype.sz=function(c){return 0==c.length?(f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1),!1):0<c.find("root Fault").length?(f.Va(D.aa.Cc(c.find("root Fault faultstring")),"Query error!",f.rb.ya),!1):!0};a.prototype.load=function(c,e,g){this.ld="";this.fD&&(this.fD.length=0);this.kl=this.Bk=this.ZG=0;this.Eb=e;this.Xa=g;this.Xb=c;this.LG()?this.yk():
this.count()};a.prototype.count=function(){var c=this.yn();c=null==this.Xb?f.O.bind("with member [Measures].[CountMembers] as Count({0}.levels(1).allmembers) select  NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",this.hierarchy.uniqueName,c):f.O.bind("with member [Measures].[CountMembers] as Count({0}.children) select NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",this.Xb.uniqueName,c);this.Ul();this.ma.data=D.aa.Cc(b.Kf.Jv(c));this.ma.N(y.da.Jc,this.iaa);this.ma.N(y.da.ya,
this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.xDa=function(){var c=D.aa.create(this.ma.response);this.sz(c)&&(this.ZG=parseInt(c.find("root CellData Cell Value").text()),this.yk())};a.prototype.wB=function(){return""};a.prototype.EZ=function(){return""};a.prototype.yk=function(){var c=this.EZ();this.state=k.qo.gE;this.Ul();this.ma.data=D.aa.Cc(b.Kf.Jv(c));this.ma.N(y.da.Jc,this.yea);this.ma.N(y.da.je,this.Vy);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.aj=function(){this.kl+=
this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;this.sz(c)&&this.UC(c);this.Bk+=this.gq;this.Bk<this.ZG&&!this.LG()?this.yk():this.aU()};a.prototype.UC=function(c){var e=c.find("root");if(0<e.find("Fault").length)f.Va(D.aa.Cc(e.find("Fault faultstring")),"Query error!",f.rb.ya);else{c=[];e=e.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var g=this.hierarchy.vi,l=0;l<e.length;l++)c.push(this.yU(e[l],l+g));return c}};a.prototype.yU=function(){return null};a.prototype.aU=
function(){f.za(!1);this.Eb(this.hierarchy)};a.prototype.lp=function(c){c=x.Tb.xg(c.data.loaded+this.kl);f.za(!0,f.model.A.j.gn,this.hierarchy.caption+", "+f.O.bind(f.model.A.j.Al,c))};a.prototype.Mb=function(c){f.Va(c.message,"Error",f.rb.ya);null!=this.Xa&&(this.Xa(c.message),this.Xa=null)};a.prototype.fZ=function(c,e,g,l,m){var n=this;this.Eb=l;this.Xa=m;this.eu=g;this.hierarchy=c;this.state=k.qo.d5;c=[];for(g=0;g<e.length;g++)c.push(f.O.bind("Ascendants({0})",e[g]));e="{"+c.join(", ")+"}";this.kl=
0;this.Ul();c=this.yn();e=f.O.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",e,c);this.ma.data=D.aa.Cc(b.Kf.Jv(e));this.ma.N(y.da.Jc,function(){return n.Y1()});this.ma.N(y.da.je,this.Vy);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.Y1=function(){this.kl+=this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;if(this.sz(c)){c=this.UC(c);for(var e=0;e<c.length;e++)this.hierarchy.va(c[e]).yf=!0;this.eu?
this.h4(c,this.Xa):this.hierarchy.Iv()}this.eu||this.Eb(this.hierarchy)};a.prototype.Wx=function(c,e,g,l,m){var n=this;this.Eb=l;this.Xa=m;this.hierarchy=c;this.kea=g;this.state=k.qo.bka;this.kl=0;this.Ul();c=this.yn();e=f.O.bind("SELECT Hierarchize(Distinct(Descendants({0}, {1}, SELF_AND_BEFORE))) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {2}",e.uniqueName,g,c);this.ma.data=D.aa.Cc(b.Kf.Jv(e));this.ma.N(y.da.Jc,function(){return n.JDa()});this.ma.N(y.da.je,this.Vy);this.ma.N(y.da.ya,
this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.JDa=function(){this.kl+=this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;if(this.sz(c)){c=this.UC(c);for(var e=0;e<c.length;e++){var g=this.hierarchy.va(c[e]);g.level.uniqueName==this.kea?g.yf=!0:this.hierarchy.$x(g)}}this.Eb(this.hierarchy)};a.prototype.h4=function(c,e){var g=this;this.Xa=e;e=[];for(var l=0;l<c.length;l++)e.push(f.O.bind("{0}.Siblings",this.hierarchy.va(c[l]).uniqueName));c="{"+e.join(", ")+"}";this.state=
k.qo.d8;this.kl=0;this.Ul();e=this.yn();c=f.O.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",c,e);this.ma.data=D.aa.Cc(b.Kf.Jv(c));this.ma.N(y.da.Jc,function(){return g.X2()});this.ma.N(y.da.je,this.Vy);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.X2=function(){this.kl+=this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;this.eu=!1;if(this.sz(c)){c=this.UC(c);for(var e=0;e<c.length;e++)this.hierarchy.va(c[e]).yf=
!0;this.hierarchy.Iv()}this.Eb(this.hierarchy)};a.prototype.search=function(c,e,g){this.ld=c.toLowerCase().replace(RegExp('"',"g"),'""').replace(RegExp("'","g"),"''");this.Eb=e;this.Xa=g;this.kl=this.Bk=this.ZG=0;this.state=k.qo.cX;this.fD&&0<this.fD.length?this.fD.length=0:this.fD=[];this.Pua()};a.prototype.HZ=function(){var c=f.O.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.allmembers, {1}), (INSTR(1, {0}.CurrentMember.member_caption, {2}) > 0))'",this.hierarchy.uniqueName,this.hierarchy.tn,
'"'+this.ld+'"');var e=f.O.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.tn);return c+"\n"+e+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"};a.prototype.Pua=function(){var c=this.yn(),e="MEMBER [Measures].[CountSearchSet] AS 'COUNT([SearchSet])'\nSELECT NON EMPTY {[Measures].[CountSearchSet]} ON COLUMNS FROM {0}";e="WITH "+this.HZ()+"\n"+f.O.bind(e,c);this.Ul();this.ma.data=
D.aa.Cc(b.Kf.Jv(e));this.ma.N(y.da.Jc,this.yga);this.ma.N(y.da.je,this.gaa);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.pFa=function(){var c=D.aa.create(this.ma.response);this.sz(c)&&(this.ZG=parseInt(c.find("root CellData Cell Value").text()),this.vp())};a.prototype.wDa=function(c){f.za(!0,"Counting members...",this.hierarchy.caption+", "+Math.round(c.data.loaded/1E3)+"K loaded")};a.prototype.vp=function(){var c=this.yn(),e="SELECT SUBSET([SearchSet], {0}, {1}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM {2}";
e="WITH "+this.HZ()+"\n"+f.O.bind(e,this.Bk,this.gq,c);this.Ul();this.ma.data=D.aa.Cc(b.Kf.Jv(e));this.ma.N(y.da.Jc,this.Aga);this.ma.N(y.da.je,this.Bga);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.uFa=function(c){c=x.Tb.xg(c.data.loaded+this.kl);f.za(!0,f.model.A.j.gn,this.hierarchy.caption+", "+f.O.bind(f.model.A.j.Al,c))};a.prototype.tFa=function(){this.kl+=this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;this.sz(c)&&this.zGa(c);this.Bk+=this.gq;
this.Bk<this.ZG?this.vp():this.PC()};a.prototype.zGa=function(c){c=c.find("root");if(0<c.find("Fault").length)f.Va(D.aa.Cc(c.find("Fault faultstring")),"Query error!",f.rb.ya);else{c=c.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var e=0;e<c.length;e++)this.yGa(c[e])}};a.prototype.yGa=function(c){var e=c.find("PARENT_UNIQUE_NAME").text();var g=c.find("Caption").text(),l=c.find("UName").text(),m=parseInt(c.find("MEMBER_ORDINAL").text()),n=this.hierarchy.Db(l);if(null==n&&(n=this.hierarchy.fc(new k.I.Rd({uniqueName:l,
caption:g,ec:m,ei:e})),n.level&&0<n.level.gf.length))for(g=0;g<n.level.gf.length;g++)e=n.level.gf.ea(g),n.setProperty(e.uniqueName,c.find(e.FV).text());n.parent&&!n.parent.Wb&&(n.parent.yf=!0);this.fD.push(n.ordinal)};a.prototype.PC=function(){f.za(!1);this.Eb(this.fD)};a.prototype.cancel=function(){this.ma&&(this.ma.mb(y.da.Jc,this.faa),this.ma.mb(y.da.Jc,this.iaa),this.ma.mb(y.da.Jc,this.yea),this.ma.mb(y.da.je,this.Vy),this.ma.mb(y.da.Jc,this.Aga),this.ma.mb(y.da.je,this.Bga),this.ma.mb(y.da.Jc,
this.yga),this.ma.mb(y.da.je,this.gaa),this.ma.mb(y.da.ya,this.Xh),this.ma.close());this.Xa=this.ma=null};b.oP=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=this;this.wa=k.Na.U();this.O4=!0;this.Qaa=function(){return e.cU()};this.Raa=function(g){return e.KDa(g)};this.uCa=function(){return e.HEa()};this.wCa=function(g){return e.JEa(g)};this.Xh=function(g){return e.Mb(g)};this.dda=function(){return e.s2()};this.eda=function(g){return e.kEa(g)};this.mea=function(){return e.C2()};this.nea=function(g){return e.uEa(g)};this.Tfa=function(){return e.cFa()};this.Ufa=function(g){return e.eFa(g)};
this.Eea=function(){return e.I2()};this.Fea=function(g){return e.LEa(g)};this.b7=function(){return e.w2()};this.c7=function(g){return e.qEa(g)};this.fa=c;this.Zk=new D.Qi;this.GC=new D.Qi;this.Zo=new D.Qi;this.ep=new D.Qi;this.$o=new D.Qi;this.cp=new D.Qi;this.qp=new D.Qi}a.prototype.Xo=function(c){return c.find("row")};a.prototype.load=function(c,e,g,l){this.Ib=e;this.Xa=g;this.Be=l;this.F1(this.c2)};a.prototype.Ul=function(c){this.OK(c);this.vh(c)};a.prototype.OK=function(c){f.v(this.fa.withCredentials)||
(c.withCredentials=this.fa.withCredentials)};a.prototype.vh=function(c){c.contentType=D.Iz.eP;c.dataType=D.Jz.aa;c.Dq=D.Fs.Pu;var e=JSON.parse(JSON.stringify(f.v(this.fa.requestHeaders)?{}:this.fa.requestHeaders));this.O4&&(e.Accept="application/xml");this.fa.credentials&&this.fa.credentials.Om&&(e.Authorization="Basic "+this.fa.credentials.hash,c.withCredentials=!0);c.vh(e);return c};a.prototype.Mb=function(c){this.Zk.Od(y.da.ya);this.Zk.Od(y.da.Jc);this.Zk.Od(y.da.je);c=c.target.url.trim();c=f.model.A.j.cna.replace("{0}",
'<u><a href="'+c+'">'+c+"</a></u>");f.Va(c,"",f.rb.ya);this.Xa(c)};a.prototype.fs=function(){null!=this.Be&&(this.Be(),this.Be=null)};a.prototype.F1=function(c){f.za(!0,f.model.A.j.DI);this.MF=c;this.Ul(this.Zk);b.Kf.ub=this.fa;this.Zk.data=D.aa.Cc(b.Kf.Xta());this.Zk.N(y.da.Jc,this.Qaa);this.Zk.N(y.da.je,this.Raa);this.Zk.N(y.da.ya,this.Xh);this.Zk.load(this.fa.proxyUrl)};a.prototype.KDa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.DI,f.O.bind(f.model.A.j.Al,c))};a.prototype.cU=function(){this.fs();
var c=D.aa.create(this.Zk.response);c=this.Xo(c);if(0<c.length){for(var e=0;e<c.length;e++)this.ufa(c[e]);this.MF()}else f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1)};a.prototype.ufa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=this.fa.mapping.Fa(e,"caption",c.find("DIMENSION_CAPTION").text());c=parseInt(c.find("DIMENSION_TYPE").text());e=new k.I.Oq(e,g);e.type=c;this.wa.I.dt(e)};a.prototype.c2=function(){this.fa.Ba==k.i.oa.Nc?this.cCa(this.IEa):this.LT(this.kU)};a.prototype.cCa=function(c){f.za(!0,
f.model.A.j.DI);this.vCa=c;this.Ul(this.GC);b.Kf.ub=this.fa;this.GC.data=D.aa.Cc(b.Kf.lua());this.GC.N(y.da.Jc,this.uCa);this.GC.N(y.da.je,this.wCa);this.GC.N(y.da.ya,this.Xh);this.GC.load(this.fa.proxyUrl)};a.prototype.JEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.DI,f.O.bind(f.model.A.j.Al,c))};a.prototype.HEa=function(){this.fs();var c=D.aa.create(this.GC.response);c=this.Xo(c);for(var e=0;e<c.length;e++)this.rGa(c[e]);this.vCa()};a.prototype.rGa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),
g=c.find("MEASUREGROUP_NAME").text();c=c.find("DIMENSION_GRANULARITY").text();e=this.wa.I.Vo(e);if(null!=e){e.CG||(e.CG=[]);var l=e.CG;l[g]=c;e.CG=l}};a.prototype.IEa=function(){this.LT(this.kU)};a.prototype.LT=function(c){f.za(!0,f.model.A.j.LW);this.KL=c;this.Ul(this.Zo);this.Zo.data=D.aa.Cc(b.Kf.Kv());this.Zo.N(y.da.Jc,this.dda);this.Zo.N(y.da.je,this.eda);this.Zo.N(y.da.ya,this.Xh);this.Zo.load(this.fa.proxyUrl)};a.prototype.s2=function(){var c=D.aa.create(this.Zo.response);c=this.Xo(c);if(0==
c.length)f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1);else{for(var e=0;e<c.length;e++)this.lGa(c[e]);this.KL()}};a.prototype.lGa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),l=this.fa.mapping.Fa(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());e=this.wa.I.Vo(e);
null!=e&&(g=this.fa.Ba==k.i.oa.Nc?new d.I.LO(g,l):new d.gp.I.E7(g,l),g.origin=1,g.Qc=n,g.type=k.i.Gc.NB(m),g.tn=p,g.xt=t,1==c&&(g.sT=!0),2==c&&(g.$t=!0),e.Uh(g))};a.prototype.kEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.LW,f.O.bind(f.model.A.j.Al,c))};a.prototype.kU=function(){this.fM(this.D2)};a.prototype.fM=function(c){f.za(!0,f.model.A.j.MW);this.dM=c;this.Ul(this.cp);this.cp.data=D.aa.Cc(b.Kf.jua());this.cp.N(y.da.Jc,this.mea);this.cp.N(y.da.je,this.nea);this.cp.N(y.da.ya,this.Xh);
this.cp.load(this.fa.proxyUrl)};a.prototype.uEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.MW,f.O.bind(f.model.A.j.Al,c))};a.prototype.C2=function(){var c=D.aa.create(this.cp.response);c=this.Xo(c);if(0==c.length)f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1);else{for(var e=0;e<c.length;e++)this.yfa(c[e]);this.dM()}};a.prototype.D2=function(){f.model.B.C.YM?this.dCa(this.dFa):this.OT(this.qU)};a.prototype.yfa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),
l=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());e=this.wa.I.Vo(e);null!=e&&(g=e.Mg(g),null!=g&&(l=new k.I.$m(n,l,c),l.type=k.i.eb.NB(m),g.ph(l),e.Uh(g)))};a.prototype.dCa=function(c){f.za(!0,f.model.A.j.x7);this.WGa=c;this.Ul(this.qp);this.qp.data=D.aa.Cc(b.Kf.oua());this.qp.N(y.da.Jc,this.Tfa);this.qp.N(y.da.je,this.Ufa);this.qp.N(y.da.ya,this.Xh);this.qp.load(this.fa.proxyUrl)};a.prototype.eFa=
function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.x7,f.O.bind(f.model.A.j.Al,c))};a.prototype.cFa=function(){var c=D.aa.create(this.qp.response);c=this.Xo(c);if(0!=c.length)for(var e=0;e<c.length;e++)this.g3(c[e]);this.WGa()};a.prototype.g3=function(){};a.prototype.dFa=function(){this.OT(this.qU)};a.prototype.OT=function(c){f.za(!0,f.model.A.j.FO);this.hM=c;this.Ul(this.ep);this.ep.data=D.aa.Cc(b.Kf.zn());this.ep.N(y.da.Jc,this.Eea);this.ep.N(y.da.je,this.Fea);this.ep.N(y.da.ya,this.Xh);this.ep.load(this.fa.proxyUrl)};
a.prototype.LEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.FO,f.O.bind(f.model.A.j.Al,c))};a.prototype.I2=function(){var c=D.aa.create(this.ep.response);c=this.Xo(c);if(0==c.length)f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1);else{for(var e=0;e<c.length;e++)this.sGa(c[e]);this.hM()}};a.prototype.sGa=function(c){var e=c.find("MEASURE_UNIQUE_NAME").text(),g=this.fa.mapping.Fa(e,"caption",c.find("MEASURE_CAPTION").text()),l=c.find("MEASUREGROUP_NAME").text();c=c.find("MEASURE_DISPLAY_FOLDER").text()||
"";g=new d.I.cA(e,g);g.type=1;g.yg=l;g.Qc=c;g.Tc=this.fa.mapping.Fa(e,"aggregations");this.wa.I.Hj(g)};a.prototype.qU=function(){this.MT(this.z2)};a.prototype.MT=function(c){f.za(!0,f.model.A.j.w7);this.XL=c;this.Ul(this.$o);this.$o.data=D.aa.Cc(b.Kf.fua());this.$o.N(y.da.Jc,this.b7);this.$o.N(y.da.je,this.c7);this.$o.N(y.da.ya,this.Xh);this.$o.load(this.fa.proxyUrl)};a.prototype.qEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.FO,f.O.bind(f.model.A.j.Al,c))};a.prototype.w2=function(){var c=
D.aa.create(this.$o.response);c=this.Xo(c);if(0!=c.length)for(var e=0;e<c.length;e++)this.nGa(c[e]);this.XL()};a.prototype.nGa=function(c){var e=c.find("KPI_NAME").text(),g=this.fa.mapping.Fa(e,"caption",c.find("KPI_CAPTION").text()),l=c.find("KPI_VALUE").text(),m=c.find("KPI_STATUS").text(),n=c.find("KPI_GOAL").text();c=c.find("KPI_TREND").text();e=new d.I.H7(e,g);e.value=l;e.status=m;e.ty=n;e.oz=c;this.wa.I.LY(e,this.fa.mapping)};a.prototype.z2=function(){f.za(!1);null!=this.Ib&&this.Ib()};a.prototype.yk=
function(c,e,g){var l=this;f.za(!0,f.model.A.j.gn,c.caption);this.Ib=e;this.Xa=g;this.ll.hierarchy=c;this.ll.Kua(function(){l.Uj(c,null,function(m){return l.rj(m)},g)},this.Xa)};a.prototype.rj=function(c){var e=this,g=c.vw;if(0<c.filter.Zl.length)this.eM(c,c.filter.Zl,c.filter.zM,function(m){return e.rj(m)},this.Xa);else if(0<g.length){var l=g.shift();c.vw=g;g=c.Db(l[1]);c.$x(g);null!=l[0]&&""!=l[0]?this.Iy(g,l[0],function(m){return e.rj(m)},this.Xa):this.Uj(c,g,function(m){return e.rj(m)},this.Xa)}else this.Ib(c)};
a.prototype.Uj=function(c,e,g,l){f.za(!0,f.model.A.j.gn,c.caption);this.ll.hierarchy=c;this.ll.load(e,g,l)};a.prototype.eM=function(c,e,g,l,m){this.ll.hierarchy=c;this.ll.fZ(c,e,g,l,m)};a.prototype.Iy=function(c,e,g,l){this.ll.hierarchy=c.hierarchy;this.ll.Wx(c.hierarchy,c,e,g,l)};a.prototype.vp=function(c,e,g,l){this.ll.hierarchy=c;this.ll.search(e,g,l)};a.prototype.kB=function(){return!0};a.prototype.cancel=function(){this.Zk&&(this.Zk.mb(y.da.Jc,this.Qaa),this.Zk.mb(y.da.je,this.Raa),this.Zk.mb(y.da.ya,
this.Xh),this.Zk.close(),this.Zk=null);this.Zo&&(this.Zo.mb(y.da.Jc,this.dda),this.Zo.mb(y.da.je,this.eda),this.Zo.mb(y.da.ya,this.Xh),this.Zo.close(),this.Zo=null);this.cp&&(this.cp.mb(y.da.Jc,this.mea),this.cp.mb(y.da.je,this.nea),this.cp.mb(y.da.ya,this.Xh),this.cp.close(),this.cp=null);this.qp&&(this.qp.mb(y.da.Jc,this.Tfa),this.qp.mb(y.da.je,this.Ufa),this.qp.mb(y.da.ya,this.Xh),this.qp.close(),this.qp=null);this.ep&&(this.ep.mb(y.da.Jc,this.Eea),this.ep.mb(y.da.je,this.Fea),this.ep.mb(y.da.ya,
this.Xh),this.ep.close(),this.ep=null);this.$o&&(this.$o.mb(y.da.Jc,this.b7),this.$o.mb(y.da.je,this.c7),this.$o.mb(y.da.ya,this.Xh),this.$o.close(),this.$o=null);this.ll&&(this.ll.cancel(),this.ll=null);this.Be=this.Xa=this.Ib=null};b.pP=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.Jv=function(c){var e=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),g=D.aa.create("<Catalog/>").text(this.ub.Ae),l=D.aa.create("<AxisFormat/>").text("TupleFormat"),m=D.aa.create("<Content/>").text("Data"),n=D.aa.create("<Format/>").text("Multidimensional");e=a.vr([e,g,l,m,n]);c=D.aa.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement><![CDATA['+c+"]]\x3e</Statement></Command>"+
D.aa.Cc(e)+"</Execute>");return a.Uo(c)};a.Tta=function(){return a.Uo(a.ur(D.aa.create("<RequestType/>").text("DISCOVER_DATASOURCES"),D.aa.create("<Restrictions/>"),D.aa.create("<Properties/>")))};a.rua=function(){var c=D.aa.create("<Content/>").text("Data"),e=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo);c=a.vr([c,e]);return a.Uo(a.ur(D.aa.create("<RequestType/>").text("DISCOVER_PROPERTIES"),D.aa.create("<Restrictions/>").append(D.aa.create("<RestrictionList/>").append(D.aa.create("<PropertyName/>").text("DBMSVersion"))),
c))};a.Nta=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e]);e=D.aa.create("<RequestType/>").text("DBSCHEMA_CATALOGS");var g=D.aa.create("<Restrictions/>");return a.Uo(a.ur(e,g,c))};a.Sta=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);
e=a.Nx([e]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_CUBES");return a.Uo(a.ur(g,e,c))};a.Xta=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_DIMENSIONS");return a.Uo(a.ur(g,e,c))};a.lua=function(){var c=
D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_MEASUREGROUP_DIMENSIONS");return a.Uo(a.ur(g,e,c))};a.Kv=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),
g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_HIERARCHIES");return a.Uo(a.ur(g,e,c))};a.jua=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");
c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_LEVELS");return a.Uo(a.ur(g,e,c))};a.oua=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);
e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_PROPERTIES");return a.Uo(a.ur(g,e,c))};a.fua=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_KPIS");return a.Uo(a.ur(g,
e,c))};a.zn=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_MEASURES");return a.Uo(a.ur(g,e,c))};a.Uo=function(c){var e=D.aa.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>');
e.firstElementChild.appendChild(c);return e};a.vr=function(c){var e=D.aa.create("<PropertyList/>").attr("flexmonster","true"),g=D.aa.create("<Properties/>");if(""!=a.ub.roles){var l=D.aa.create("<Roles/>").text(a.ub.roles);c.push(l)}""!=a.ub.effectiveUserName&&(l=D.aa.create("<EffectiveUserName/>").text(a.ub.effectiveUserName),c.push(l));""!=a.ub.localeIdentifier&&(l=D.aa.create("<LocaleIdentifier/>").text(a.ub.localeIdentifier),c.push(l));""!=a.ub.Fm&&(l=D.aa.create("<CustomData/>").text(a.ub.Fm),
c.push(l));for(l=0;l<c.length;l++)e.append(c[l]);g.append(e);return g};a.Nx=function(c){for(var e=D.aa.create("<RestrictionList/>"),g=D.aa.create("<Restrictions/>"),l=0;l<c.length;l++)e.append(c[l]);g.append(e);return g};a.ur=function(c,e,g){return D.aa.create('<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">'+D.aa.Cc(c)+D.aa.Cc(e)+D.aa.Cc(g)+"</Discover>")};a.Ota=function(c,e,g){var l=D.aa.create('<ClearCache xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"/>'),m=D.aa.create("<Object/>");
null!=c&&m.append(D.aa.create("<DatabaseID/>").text(c));null!=e&&m.append(D.aa.create("<CubeID/>").text(e));null!=g&&m.append(D.aa.create("<MeasureGroupID/>").text(g));l.append(m);return a.Uo(D.aa.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"/>').append(D.aa.create("<Command/>").append(l)).append(D.aa.create("<Properties/>")))};b.Kf=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){this.CM=this.DU="";if(null!=a.instance)throw Error("Singleton");}a.U=function(){null==a.instance&&(a.instance=new a);return a.instance};a.dispose=function(){a.instance=null};a.prototype.Xo=function(c){return c.find("row")};a.prototype.eV=function(){this.ma=new D.Qi;this.ma.contentType=D.Iz.eP;this.ma.Dq=D.Fs.Pu};a.prototype.iC=function(c,e){this.Eb=e;this.CM!=c?this.ica(c,function(){return function(){e(this.DU)}}):this.Eb&&
this.Eb(this.DU);return this.DU};a.prototype.ica=function(c,e){var g=this;this.Eb=e;this.CM=c;this.eV();this.ma.data=D.aa.Cc(b.Kf.Tta());this.ma.N(y.da.Jc,function(){return g.DDa()});this.ma.N(y.da.ya,function(){return g.EDa()});this.ma.load(c)};a.prototype.DDa=function(){if(!f.ha(this.ma.response)){var c=D.aa.create(this.ma.response);c=this.Xo(c);for(var e=[],g=0;g<c.length;g++){var l=c[g].find("DataSourceName").text();this.DU=c[g].find("ProviderName").text();e.push(l)}this.Eb&&this.Eb(e)}};a.prototype.EDa=
function(){var c=f.model.Nb.valid(this.CM)?this.CM:f.model.Nb.validate(this.CM);f.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>",f.model.A.j.ya,f.rb.ya);this.Eb&&this.Eb([])};a.prototype.iya=function(c,e,g){var l=this;this.Eb=g;b.Kf.ub=new d.OLAPConnectionInfo;b.Kf.ub.dataSourceInfo=e;this.eV();this.ma.data=D.aa.Cc(b.Kf.Nta());this.ma.N(y.da.Jc,
function(){return l.aDa()});this.ma.N(y.da.ya,function(){return l.bDa()});this.ma.load(c)};a.prototype.aDa=function(){var c=D.aa.create(this.ma.response);c=this.Xo(c);for(var e=[],g=0;g<c.length;g++){var l=c[g].find("CATALOG_NAME").text();e.push(l)}this.Eb&&this.Eb(e)};a.prototype.bDa=function(){f.Va("Error discovering catalogs",f.model.A.j.ya,f.rb.ya);this.Eb&&this.Eb([])};a.prototype.zya=function(c,e,g,l){var m=this;this.Eb=l;b.Kf.ub=new d.OLAPConnectionInfo;b.Kf.ub.dataSourceInfo=e;b.Kf.ub.Ae=
g;this.eV();this.ma.data=D.aa.Cc(b.Kf.Sta());this.ma.N(y.da.Jc,function(){return m.yDa()});this.ma.N(y.da.ya,function(){return m.zDa()});this.ma.load(c)};a.prototype.yDa=function(){var c=D.aa.create(this.ma.response);c=this.Xo(c);for(var e=[],g=0;g<c.length;g++){var l=c[g].find("CUBE_NAME").text();e.push(l)}this.Eb&&this.Eb(e)};a.prototype.zDa=function(){f.Va("Error discovering cubes",f.model.A.j.ya,f.rb.ya);this.Eb&&this.Eb([])};a.prototype.UQ=function(c,e,g,l,m){var n=this;this.eV();this.ma.data=
D.aa.Cc(b.Kf.Ota(e,g,l));this.ma.N(y.da.Jc,function(){return n.hDa(m)});this.ma.N(y.da.ya,function(){return n.iDa(m)});this.ma.load(c)};a.prototype.hDa=function(c){null!=c&&c({complete:!0,response:this.ma.response})};a.prototype.iDa=function(c){null!=c&&c({complete:!1})};b.v8=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){e=void 0===e?null:e;this.lY=this.LJ=this.KE="";null==e?this.KE=c:(this.LJ=c,this.lY=e)}a.tb=function(c){var e=new a("");c.hasOwnProperty("hash")&&(e.KE=c.hash?c.hash:"");c.hasOwnProperty("username")&&(e.LJ=c.username?c.username:"");c.hasOwnProperty("password")&&(e.lY=c.password?c.password:"");return e};q.Object.defineProperties(a.prototype,{hash:{configurable:!0,enumerable:!0,set:function(){},get:function(){return 0<
this.KE.length?this.KE:x.Via.encode(this.LJ+":"+this.lY)}},Om:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.KE&&0<this.KE.length||this.LJ&&0<this.LJ.length}}});b.w8=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.prototype.ol=function(c){var e=this;if(f.model.Qa.U().G0(f.model.Qa.aJ)){var g=new f.model.Xc(f.model.Qa.aJ,function(l){if(!f.v(l)&&!f.v(l.requestHeaders)){var m=e.connectionInfo.requestHeaders||{},n;for(n in l.requestHeaders)l.requestHeaders.hasOwnProperty(n)&&(m[n]=l.requestHeaders[n]);e.connectionInfo.requestHeaders=m;e.Ve.requestHeaders=m}c(!0)});f.model.Qa.U().Da(g)}else c(!1)};b.HD=a})(d.zo||(d.zo={}))})(h.yb||
(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=b.HD.call(this)||this;e.wa=k.Na.U();e.connectionInfo=c;e.ma=new b.Nia(c);return e}u(a,b.HD);a.prototype.load=function(c,e,g,l){var m=this;this.connectionInfo=c;this.Ib=e;this.Be=l;this.Xa=g;this.Ve=new b.UO(this.connectionInfo.proxyUrl,f.model.Ea.na.J(f.model.Ea.na.EU),!0,this.connectionInfo.requestHeaders,this.connectionInfo.withCredentials);this.Wca=function(){return m.dN()};this.cAa()};a.prototype.cAa=function(){var c=
this;f.za(!0,f.model.A.j.iE);null!=this.Ve&&this.Ve.call("Handshaking",{componentVersion:f.Ug.qs,acceleratorMinVersion:a.ria},function(){return c.Wca()},function(e){return c.Mb(e)},function(e){return c.ol(e)})};a.prototype.dN=function(){var c=this;null!=this.Be&&(this.Be(),this.Be=null);this.MF=function(){return c.c2()};this.F1()};a.prototype.F1=function(){var c=this;null!=this.Ve&&(f.za(!0,f.model.A.j.DI),this.Ve.call("DiscoverDimensions",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,
credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e,g){return c.cU(e,g)},function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.cU=function(c,e){if(null!=this.MF){null!=e&&0<e.sessionId&&(d.OLAPConnectionInfo.sessionId=e.sessionId);
for(e=0;e<c.length;e++){var g=c[e];var l=g.uniqueName;var m=this.connectionInfo.mapping.Fa(l,"caption",g.caption),n=g.type;l=new d.I.Lna(l,m);l.type=n;l.CG=g.granularityNames;l.description=g.description;this.wa.I.dt(l)}this.MF()}};a.prototype.c2=function(){var c=this;this.KL=function(){return c.kU()};this.LT()};a.prototype.LT=function(){var c=this;null!=this.Ve&&(f.za(!0,f.model.A.j.LW),this.Ve.call("DiscoverHierarchies",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,credentials:this.connectionInfo.credentials&&
this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e){return c.s2(e)},function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.s2=function(c){if(null!=this.KL){for(var e=0;e<c.length;e++){var g=c[e],l=g.dimensionUniqueName,m=g.uniqueName,
n=this.connectionInfo.mapping.Fa(m,"caption",g.caption),p=g.type,t=g.allMemberName,r=g.defaultMemberName,v=g.displayFolder||"",z=g.isParentChild||!1,B=g.isRagged||!1;l=this.wa.I.Vo(l);null!=l&&(m=this.connectionInfo.Ba==k.i.oa.Nc?new d.I.LO(m,n):new d.gp.I.E7(m,n),m.origin=1,m.type=k.i.Gc.NB(p),m.tn=t,m.xt=r,m.Qc=v,m.$t=z,m.sT=B,m.description=g.description,l.Uh(m))}this.KL()}};a.prototype.kU=function(){var c=this;this.dM=function(){return c.D2()};this.fM()};a.prototype.fM=function(){var c=this;null!=
this.Ve&&(f.za(!0,f.model.A.j.MW),this.Ve.call("DiscoverLevels",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e){return c.C2(e)},
function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.C2=function(c){if(null!=this.dM){for(var e=0;e<c.length;e++){var g=c[e],l=g.hierarchyUniqueName,m=g.caption,n=g.type,p=g.dbType,t=g.uniqueName,r=g.levelNumber,v=g.properties,z=this.wa.I.Vo(g.dimensionUniqueName);if(null!=z&&(l=z.Mg(l),null!=l&&(m=new d.I.Nna(t,m,r),m.type=f.v(n)?k.i.eb.Sc:k.i.eb.NB(n,!f.v(p)&&0==n,p),m.description=g.description,l.ph(m),z.Uh(l),f.model.B.C.YM&&null!=v&&0<v.length)))for(n=0;n<v.length;n++)g=f.v(v[n].item)?
v[n]:v[n].item,g=new k.I.PV(g[0],g[1]),m.PY(g)}this.dM()}};a.prototype.D2=function(){var c=this;this.hM=function(){return c.qU()};this.OT()};a.prototype.OT=function(){var c=this;null!=this.Ve&&(f.za(!0,f.model.A.j.FO),this.Ve.call("DiscoverMeasures",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,
localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e){return c.I2(e)},function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.I2=function(c){if(null!=this.hM){for(var e,g=0;g<c.length;g++){var l=c[g],m=l.uniqueName;e=this.connectionInfo.mapping.Fa(m,"caption",l.caption);var n="String"==typeof l.type?k.i.Ja.xxa(l.type):k.i.Ja.fb,p=l.groupCaption||l.groupName||"",t=l.displayFolder||"";
e=new d.I.cA(m,e);e.type=n;e.yg=p;e.Qc=t;e.Tc=this.connectionInfo.mapping.Fa(m,"aggregations");e.description=l.description;this.wa.I.Hj(e)}this.hM()}};a.prototype.qU=function(){var c=this;this.connectionInfo.Ba==k.i.oa.Nc?(this.XL=function(){return c.z2()},this.MT()):this.Aq()};a.prototype.MT=function(){var c=this;null!=this.Ve&&(f.za(!0,f.model.A.j.w7),this.Ve.call("DiscoverKpis",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?
this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e){return c.w2(e)},function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.w2=function(c){if(null!=this.XL){for(var e=0;e<c.length;e++){var g=c[e],l=g.uniqueName,m=this.connectionInfo.mapping.Fa(l,"caption",g.caption),
n=g.value,p=g.status,t=g.goal,r=g.trend;l=new d.I.H7(l,m);l.value=n;l.status=p;l.ty=t;l.oz=r;l.description=g.description;this.wa.I.LY(l,this.connectionInfo.mapping)}this.XL()}};a.prototype.z2=function(){this.Aq()};a.prototype.yk=function(c,e){var g=this;f.za(!0,f.model.A.j.gn,c.caption);this.Ib=e;this.Uj(c,null,function(l){return g.rj(l)})};a.prototype.Uj=function(c,e,g){this.ma.hierarchy=c;this.ma.expandAll=this.wa.sa.expandAll;this.ma.drillAll=this.wa.sa.drillAll;this.ma.children(c,e,g,this.Xa)};
a.prototype.rj=function(c){var e=this;if(null!=this.Ib){var g=c.vw;if(0<c.filter.Zl.length)c.vi<c.Un?this.eM(c,c.filter.Zl,c.filter.zM,function(m){return e.rj(m)}):(c.Iv(),this.rj(c));else if(0<g.length){var l=g.shift();0==g.length&&c.X$();c.vw=g;g=c.Db(l[1]);c.$x(g);this.Uj(c,g,function(m){return e.rj(m)})}else c.ce=!0,this.Ib(c)}};a.prototype.eM=function(c,e,g,l){this.ma.hierarchy=c;this.ma.expandAll=this.wa.sa.expandAll;this.ma.drillAll=this.wa.sa.drillAll;this.ma.fZ(c,e,g,l)};a.prototype.Iy=function(){};
a.prototype.vp=function(c,e,g){this.ma.hierarchy=c;this.ma.expandAll=this.wa.sa.expandAll;this.ma.drillAll=this.wa.sa.drillAll;this.ma.search(e,g)};a.prototype.kB=function(){return!0};a.prototype.cancel=function(){this.XL=this.hM=this.dM=this.KL=this.MF=this.Wca=null;null!=this.Ve&&this.Ve.cancel();this.Ve=null;null!=this.ll&&this.ll.cancel();this.ll=null;null!=this.ma&&this.ma.cancel();this.Be=this.Xa=this.Ib=this.ma=null};a.prototype.Aq=function(){f.za(!1);null!=this.Ib&&this.Ib()};a.prototype.Mb=
function(c){var e=this;f.za(!1);var g=null;f.v(c)?(g="Cannot connect to "+(f.model.Nb.valid(this.connectionInfo.proxyUrl)?this.connectionInfo.proxyUrl:f.model.Nb.validate(this.connectionInfo.proxyUrl)),f.Va(g,f.model.A.j.ya)):(g=f.ha(c.message)?f.model.A.j.GO:c.message,"Unknown error."==g?f.Va(f.model.A.j.bna,f.model.A.j.ya):"ERROR_SESSION_EXPIRED"==g?f.model.B.C.f4?f.Va(f.model.A.j.KW,f.model.A.j.fm,f.rb.fm,[f.model.A.j.MD,f.model.A.j.Jk],[function(){return e.Qy()},null]):this.Qy():-1<g.indexOf("2.416")||
-1<g.indexOf("2.400")?f.Va("Your current version of Flexmonster Pivot Table & Charts is not compatible with Flexmonster Accelerator. Please update both products to the latest available version.",f.model.A.j.ya):f.Va(g,f.model.A.j.ya));null!=this.Xa&&this.Xa(g)};a.prototype.Qy=function(){f.model.Ta.U().u3()};a.ria="2.7.11";b.h5=a})(d.zo||(d.zo={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=b.HD.call(this)||this;e.WG=0;e.Ev=0;e.ld="";e.state=k.qo.gE;e.Gk=function(){return e.Vr()};e.ej=function(){return e.mp()};e.jM=[];e.Ky=[];e.iM=0;e.connectionInfo=c;e.Ve=new b.UO(e.connectionInfo.proxyUrl,f.model.Ea.na.J(f.model.Ea.na.EU),!0,e.connectionInfo.requestHeaders,e.connectionInfo.withCredentials);return e}u(a,b.HD);a.prototype.reset=function(){this.ld="";this.Ev=this.iM=this.WG=0;this.Ky=[];this.Xa=this.eu=
this.HJ=this.iJ=this.Xb=this.zZ=this.Eb=null;this.state=""};a.prototype.search=function(c,e){var g=this;this.reset();this.state=k.qo.cX;this.Eb=e;this.ld=c.toLowerCase();this.load(function(){return g.PC()})};a.prototype.PC=function(){for(var c=[],e=0;e<this.Ky.length;e++){var g=this.Ky[e];g.yf=!0;c.push(g.ordinal)}f.za(!1);this.Eb(c)};a.prototype.children=function(c,e,g,l){var m=this;this.reset();this.state=k.qo.gE;this.Eb=g;this.Xa=l;this.Xb=e;this.hierarchy=c;null==this.Xb||this.Xb.yf?this.load(function(){return m.rj()}):
g(this.hierarchy)};a.prototype.rj=function(){null!=this.Xb&&(this.Xb.yf=!1);this.Eb(this.hierarchy)};a.prototype.fZ=function(c,e,g,l){var m=this;this.reset();this.state=k.qo.d5;this.Eb=l;this.iJ=e;this.eu=g;this.hierarchy=c;this.load(function(){return m.Y1()})};a.prototype.Y1=function(){for(var c=[],e=0;e<this.Ky.length;e++){var g=this.Ky[e];g.yf=!0;c.push(g.uniqueName)}this.eu?this.h4(c,this.Eb):(this.hierarchy.Iv(),this.Eb(this.hierarchy))};a.prototype.h4=function(c,e){var g=this;this.reset();this.state=
k.qo.d8;this.Eb=e;this.HJ=c;this.load(function(){return g.X2()})};a.prototype.X2=function(){for(var c=this.Ky,e=0;e<c.length;e++)this.hierarchy.va(c[e]).yf=!0;this.hierarchy.Iv();this.Eb(this.hierarchy)};a.prototype.load=function(c){this.zZ=c;f.za(!0,f.model.A.j.gn);this.yk();this.timer=new x.Es(500,1E4);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start()};a.prototype.wB=function(){for(var c=this.hierarchy.z1,e=[],g=0;g<c.length;g++)e.push(this.hierarchy.uniqueName+".["+
c.ea(g).uniqueName+"]");return 0<e.length?", "+e.join(","):""};a.prototype.yk=function(){var c=this;if(null!=this.Ve){var e=this.wB(this.hierarchy);this.Ve.call("DiscoverMembers",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,subquery:this.connectionInfo.subquery,hierarchyUniqueName:this.hierarchy.uniqueName,properties:e,memberUniqueName:this.Xb?this.Xb.uniqueName:"",allMemberName:this.hierarchy.tn,hasAllMember:this.hierarchy.Fh,loadAll:this.drillAll,searchPhrase:this.ld,chunkIndex:this.Ev,
ascendants:null==this.iJ?"":this.iJ.join(",,"),siblings:null==this.HJ?"":this.HJ.join(",,"),activeLevel:null==this.hierarchy.ig?"":this.hierarchy.ig,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(g){return c.aj(g)},
function(g){return c.Mb(g)},function(g){return c.ol(g)});this.Ev++}};a.prototype.Vr=function(){if(null!=this.timer){var c=this.timer.Qx/2;2<c&&f.za(!0,f.model.A.j.gn,f.O.bind(f.model.A.j.zs,x.Tb.format(c,new f.model.Zb.W.pf,!1,!1,1)))}};a.prototype.mp=function(){this.timer.sl&&f.Va("Can't connect to data source!",f.model.A.j.ya)};a.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};a.prototype.aj=function(c){var e=
this;null!=this.Ve&&(this.ag(),1==this.Ev&&(this.WG=c.count),1>this.hierarchy.Un&&(this.hierarchy.Un=c.all),this.UC(c.members,function(){return e.aH()}))};a.prototype.UC=function(c,e){if(f.v(c))e();else if(this.jM=c,0==this.jM.length)this.aU();else{for(c=this.hierarchy.vi;!this.tGa(c);)c++;e()}};a.prototype.tGa=function(c){var e=this.jM.shift();if(null!=e){var g=e.parentUniqueName,l=e.caption,m=e.uniqueName,n=e.ordinal,p=e.properties;var t=this.hierarchy.Db(m);if(null==t&&(e=new k.I.Rd({uniqueName:m,
caption:l,ei:g,ordinal:n}),""===this.ld&&null==this.iJ&&null==this.HJ&&(e.ec=c),t=this.hierarchy.fc(e),null!=p&&0<p.length))for(g=0;g<p.length;g++)e=f.v(p[g].item)?p[g]:p[g].item,t.setProperty(e[0],e[1]);""!=this.ld||null!=this.iJ||null!=this.HJ?this.Ky.push(t):t.ec=c;null!=t&&!t.Wb&&1E3<this.hierarchy.Un&&!this.drillAll&&(t.yf=!0);this.iM++}return 0>=this.jM.length};a.prototype.aH=function(){var c=0==this.WG?100:Math.round(this.iM/this.WG*100);100<c&&(c=100);f.za(!0,f.model.A.j.gn,this.hierarchy.caption+
" - "+c+"% ("+this.iM+" of "+this.WG+")");this.iM>=this.WG?this.aU():this.yk()};a.prototype.aU=function(){f.za(!1);this.ag();this.zZ();this.jM=[];this.Ky=[]};a.prototype.Mb=function(c){var e=this;this.ag();f.za(!1);c=f.ha(c.message)?f.model.A.j.GO:c.message;"ERROR_SESSION_EXPIRED"==c?f.model.B.C.f4?f.Va(f.model.A.j.KW,f.model.A.j.fm,f.rb.fm,[f.model.A.j.MD,f.model.A.j.Jk],[function(){return e.Qy()},null]):this.Qy():(f.Va(c,f.model.A.j.ya),null!=this.Xa&&(this.Xa(c),this.Xa=null))};a.prototype.Qy=
function(){f.model.Ta.U().u3()};a.prototype.LG=function(){return!1};a.prototype.cancel=function(){null!=this.Ve&&this.Ve.cancel();this.Ve=null;null!=this.timer&&this.ag();this.zZ=this.Xa=this.Eb=this.timer=null};b.Nia=a})(d.zo||(d.zo={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=b.HD.apply(this,arguments)||this;c.af=k.Na.U();c.Gb=[];c.Uc=[];c.Bva=!1;c.Gk=function(){return c.Vr()};c.ej=function(){return c.mp()};return c}u(a,b.HD);a.prototype.load=function(c,e,g){f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,"0.5"));this.connectionInfo=c;this.Fj=e;this.Eb=g;this.mj=this.Ev=0;this.Of=this.af.sa.pu;this.Ve=new b.UO(this.connectionInfo.proxyUrl,f.model.Ea.na.J(f.model.Ea.na.EU),!0,this.connectionInfo.requestHeaders,
this.connectionInfo.withCredentials);this.requestId=f.O.aL();this.kw();this.timer=new x.Es(500,1E4);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start()};a.prototype.kw=function(){var c=this;if(null!=this.Ve){for(var e=[],g=this.af.sa.pu,l=0;l<g.length;l++)e.push(g[l].uniqueName);this.Ve.call("Execute",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,subquery:this.connectionInfo.subquery,queryString:this.Fj.body,columns:this.af.sa.Cb.Ic(!0),rows:this.af.sa.vb.Ic(!0),
measures:e,chunkIndex:this.Ev,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles,expandAll:this.Fj.type==k.i.Kd.to&&this.af.sa.expandAll,formatted:f.model.B.C.Jq,requestId:this.requestId},function(m){return c.ip(m)},
function(m){return c.Mb(m)},function(m){return c.ol(m)});this.Ev++}};a.prototype.Vr=function(){null!=this.timer&&f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/2,new f.model.Zb.W.pf,!1,!1,1)))};a.prototype.mp=function(){this.timer.sl&&f.Va("Can't connect to data source!",f.model.A.j.ya)};a.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};a.prototype.drillThrough=function(c,e,g,l,m,n){var p=
this;f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,"0.5"));this.connectionInfo=c;this.Fj=e;this.Eb=n;this.Of=this.af.sa.pu;this.Ve=new b.UO(this.connectionInfo.proxyUrl,f.model.Ea.na.J(f.model.Ea.na.EU),!0,this.connectionInfo.requestHeaders,this.connectionInfo.withCredentials);c=this.Kya(this.af.sa,g,l);m={catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,subquery:this.connectionInfo.subquery,measureUniqueName:m.uniqueName,members:c,credentials:this.connectionInfo.credentials&&
this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles};this.connectionInfo.Ba==k.i.oa.Nc&&(m.drillThroughMaxRows=f.model.B.C.KK);this.Ve.call("DrillThrough",m,function(t){return p.LDa(t)},function(t){return p.Mb(t)},function(t){return p.ol(t)});this.timer=new x.Es(500,
1E4);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start()};a.prototype.Kya=function(c,e,g){for(var l=[],m,n,p=0;p<c.Cb.length;p++){var t=c.Cb.ea(p);m=[];n=!1;if(!t.Qe){if(null!=g[p]){var r=t.va(g[p]);f.v(r)||f.ha(r.uniqueName)||(m.push(r.uniqueName),n=!0)}if(t.filter.$h&&!n)for(n=0;n<t.cb.length;n++)r=t.va(t.cb[n]),f.v(r)||f.ha(r.uniqueName)||-1==m.indexOf(r.uniqueName)&&m.push(r.uniqueName);0<m.length&&(this.connectionInfo.Ba==k.i.oa.Zd?l.push(m.join(",")):l.push("{"+m.join(",")+
"}"))}}for(p=0;p<c.vb.length;p++)if(t=c.vb.ea(p),n=!1,m=[],!t.Qe){null!=e[p]&&(r=t.va(e[p]),f.v(r)||f.ha(r.uniqueName)||(m.push(r.uniqueName),n=!0));if(t.filter.$h&&!n)for(n=0;n<t.cb.length;n++)r=t.va(t.cb[n]),f.v(r)||f.ha(r.uniqueName)||-1==m.indexOf(r.uniqueName)&&m.push(r.uniqueName);0<m.length&&(this.connectionInfo.Ba==k.i.oa.Zd?l.push(m.join(",")):l.push("{"+m.join(",")+"}"))}for(p=0;p<c.pages.length;p++){t=c.pages.ea(p);m=[];if(t.filter.$h)for(n=0;n<t.cb.length;n++)r=t.va(t.cb[n]),f.v(r)||f.ha(r.uniqueName)||
-1==m.indexOf(r.uniqueName)&&m.push(r.uniqueName);0<m.length&&(this.connectionInfo.Ba==k.i.oa.Zd?l.push(m.join(",")):l.push("{"+m.join(",")+"}"))}return l};a.prototype.LDa=function(c){if(null!=this.Ve){c=c.cellData;if(null!=c&&0<c.length&&null!=c[0].item)for(var e=0;e<c.length;e++)c[e]=c[e].item;this.ag();f.za(!1);this.Eb(c)}};a.prototype.cancel=function(){this.connectionInfo=this.af=null;this.Gb=[];this.Uc=[];this.Bva=!1;this.Eb=this.Fj=null;null!=this.Ve&&this.Ve.cancel();this.Ve=null;this.ag();
this.timer=null};a.prototype.ip=function(c){null!=this.Ve&&(c.isComplete||this.kw(),this.ag(),this.connectionInfo.Ba==k.i.oa.Zd?(this.xU(c.columnsList?JSON.parse(c.columnsList):[]),this.zU(c.rowsList?JSON.parse(c.rowsList):[]),this.sfa(c.cellData?JSON.parse(c.cellData):[],c.cellDataFmt?JSON.parse(c.cellDataFmt):[])):(this.xU(c.columnsList),this.zU(c.rowsList),this.sfa(c.cellData,c.cellDataFmt)),this.mj+=this.Gb.length*this.Uc.length,c.isComplete?(f.za(!1),this.Eb()):(c=null!=c.percent?Math.round(1E4*
c.percent)/100:NaN,f.za(!0,f.model.A.j.Hf,this.mj+" items "+(isNaN(c)||0>=c?"":"("+(100<c?100:c)+"%)"))))};a.prototype.xU=function(c){this.Uc=c;if(f.v(c)||0==this.Uc.length)this.Uc=[[[0,0]]]};a.prototype.zU=function(c){this.Gb=[[]];f.v(c)?this.Gb=[[]]:(this.Gb=c,0==this.Gb.length&&(this.Gb=[[]]))};a.prototype.TAa=function(c,e){if(c.length!=e.length)return!1;for(var g=0;g<c.length;g++)if(1<c[g].length&&c[g][1]!=e[g][1])return!1;return!0};a.prototype.sfa=function(c,e){e=void 0===e?null:e;f.v(c)&&(c=
[]);var g=this.Gb.length,l=this.Uc.length;var m=this.af.sa.pu;for(var n=[],p=0;p<m.length;p++)n[p]=m[p].type;var t=k.kX.U();this.af.sa.rows.ea(1);for(p=0;p<g;p++)if(void 0!=c[p]&&null!=this.Gb[p]){m=[];for(var r=[],v,z,B=!1,C=0;C<l;C++)null!=this.Uc[C]&&(v=r,r=this.Uc[C].slice(0),z=r.pop()[0],this.TAa(r,v)||(B&&this.af.qa.XS(this.Gb[p],v,m,this.Fj.We,this.Fj.ft,this.Fj.type),B=!1,m=[]),void 0!=c[p][C]&&(B=!0),f.model.B.C.Jq&&null!=e&&this.Of[z].$==k.i.ca.NONE?m[z]=k.HI.U().hz(e[p][C],c[p][C]):n[z]==
k.i.Ja.fb?m[z]=c[p][C]:n[z]==k.i.Ja.Oa&&(v=c[p][C]?t.Nh(c[p][C].toString()):0,m[z]=v));B&&this.af.qa.XS(this.Gb[p],r,m,this.Fj.We,this.Fj.ft,this.Fj.type)}};a.prototype.Mb=function(c){var e=this;this.ag();f.za(!1);c=f.ha(c.message)?f.model.A.j.GO:c.message;"ERROR_SESSION_EXPIRED"==c?f.model.B.C.f4?f.Va(f.model.A.j.KW,f.model.A.j.fm,f.rb.fm,[f.model.A.j.MD,f.model.A.j.Jk],[function(){return e.Qy()},null]):this.Qy():f.Va(c,f.model.A.j.ya)};a.prototype.Qy=function(){f.model.Ta.U().u3()};b.g5=a})(d.zo||
(d.zo={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e,g,l,m){this.qu=null;this.withCredentials=!1;this.requestHeaders=null;this.url=c;this.url.lastIndexOf("/")==this.url.length-1&&(this.url=this.url.substr(0,this.url.length-1));(void 0===g||g)&&0>this.url.indexOf("/FlexmonsterProxy")&&this.url.lastIndexOf(":")>this.url.lastIndexOf("/")&&(this.url+="/FlexmonsterProxy");this.requestHeaders=void 0===l?null:l;this.qu=void 0===e?null:e;this.withCredentials=void 0===m?!1:m}a.prototype.call=
function(c,e,g,l,m){var n=this;e=void 0===e?null:e;this.action=c;this.Ib=void 0===g?null:g;this.Xa=void 0===l?null:l;this.nN=void 0===m?null:m;this.Sd=e;x.mn.load("lib/sha1.min.js",function(){n.xhr=new XMLHttpRequest;n.xhr.open("POST",n.url+"/"+c,!0);n.xhr.withCredentials=n.withCredentials;n.xhr.onreadystatechange=function(p){return n.lu(p)};n.xhr.setRequestHeader("Content-type","application/json; charset=UTF-8");n.xhr.setRequestHeader("Accept","application/json");n.dK(n.requestHeaders);n.xhr.send(n.WIa(e))})};
a.prototype.dK=function(c){if(!f.v(c))for(var e in c)c.hasOwnProperty(e)&&this.xhr.setRequestHeader(e,c[e])};a.prototype.WIa=function(c){if(null!=this.qu){delete c.signature;var e=this.getHash(c);e=e.replace(/[^a-zA-Z0-9]/gm,"");var g=new jsSHA("SHA-1","TEXT");g.setHMACKey(this.qu,"TEXT");g.update(e);c.signature=g.getHMAC("B64")}return JSON.stringify(c)};a.prototype.getHash=function(c){var e=[];for(g in c)e.push(g);e.sort();var g="";for(var l=0;l<e.length;l++){var m=c[e[l]];f.v(m)||"string"==typeof m&&
f.ha(m)||Array.isArray(m)&&0==m.length||("sessionId"!=e[l]||0!=m)&&"customData"!=e[l]&&"localeIdentifier"!=e[l]&&"effectiveUserName"!=e[l]&&(g+=e[l]+":"+m)}return g.toLowerCase()};a.prototype.lu=function(){var c=this;if(null!=this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.vH();if(401===this.xhr.status&&f.pg(this.nN))return this.nN(function(e){e?c.call(c.action,c.Sd,c.Ib,c.Xa):c.Xa({message:c.xhr.statusText})});this.Xa({message:this.xhr.statusText})}};a.prototype.vH=function(){var c=
JSON.parse(this.xhr.response);c&&null==c.error?null!=this.Ib&&this.Ib(c.data,c):this.Xa&&c&&this.Xa(c.error)};a.prototype.cancel=function(){null!=this.xhr&&(this.xhr.onerror=null,this.xhr.onreadystatechange=null,this.xhr.abort());this.qu=this.url=this.Ib=this.xhr=this.requestHeaders=null};b.UO=a})(d.zo||(d.zo={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){return d.eh.oP.call(this,c)||this}u(a,d.eh.oP);a.prototype.wB=function(){for(var c=this.hierarchy.z1,e=[],g=0;g<c.length;g++)e.push(this.hierarchy.uniqueName+".["+c.ea(g).uniqueName+"]");return 0<e.length?", "+e.join(","):""};a.prototype.EZ=function(){var c=this.wB(this.hierarchy),e=this.yn();return null==this.Xb?this.LG()?f.O.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{1} on columns FROM {2}",
this.hierarchy.uniqueName,c,e):this.hierarchy.Fh?f.O.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.uniqueName,e,c,this.Bk.toString(),this.gq.toString()):f.O.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{2} on 0 FROM {1}",this.hierarchy.uniqueName,e,c,this.Bk.toString(),this.gq.toString()):f.O.bind("SELECT Subset({0}.children, {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME {2} on columns FROM {1}",
this.Xb.uniqueName,e,c,this.Bk.toString(),this.gq.toString(),this.hierarchy.uniqueName)};a.prototype.yU=function(c,e){var g=c.find("PARENT_UNIQUE_NAME").text();var l=c.find("Caption").text(),m=c.find("UName").text(),n=parseInt(c.find("MEMBER_ORDINAL").text());var p=this.hierarchy.Db(m);if(null==p){p=this.hierarchy.fc(new k.I.Rd({uniqueName:m,caption:l,ei:g}));if(p.level&&0<p.level.gf.length)for(l=0;l<p.level.gf.length;l++){g=p.level.gf.ea(l);p.setProperty(g.uniqueName,c.find(g.FV).text());m=c.getChildren();
for(var t=0;t<m.length;t++){var r=m[t];r.nodeName.toLowerCase()==g.FV.toLowerCase()&&(r=r.text(),p.setProperty(g.uniqueName,r))}}p.ec=isNaN(n)?e:n}else this.state==k.qo.gE&&(p.ec=isNaN(n)?e:n);null==p||p.Wb||(p.yf=!0);p.parent&&!p.parent.Wb&&(p.parent.yf=!1);return p.ordinal};b.Foa=a})(d.sD||(d.sD={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=d.eh.pP.call(this,c)||this;e.ll=new b.Foa(c);return e}u(a,d.eh.pP);a.prototype.cU=function(){var c=D.aa.create(this.Zk.response);c=this.Xo(c);if(0<c.length){this.fs();for(var e=0;e<c.length;e++)this.ufa(c[e]);this.gCa();this.MF()}else c=f.model.A.j.hE,f.Va(c,"",f.rb.ya),f.za(!1),this.Xa(c)};a.prototype.gCa=function(){var c=this;this.BD=new D.Qi;this.BD=this.vh(this.BD);this.BD.data=D.aa.Cc(d.eh.Kf.rua());this.BD.N(y.da.Jc,
function(){return c.MFa()});this.BD.N(y.da.ya,function(e){return c.Mb(e)});this.BD.load(this.fa.proxyUrl)};a.prototype.MFa=function(){var c=D.aa.create(this.BD.response);c=this.Xo(c);this.fa.version=parseFloat(c.find("Value").text().substr(0,5))};a.prototype.yfa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),l=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());
e=this.wa.I.Vo(e);null!=e&&(g=e.Mg(g),null!=g&&(l=new k.I.$m(m,l,n),l.type=k.i.eb.NB(c),g.ph(l),e.Uh(g)))};a.prototype.g3=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),l=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&&(e=this.wa.I.Vo(e),null!=e&&(g=e.Mg(g),null!=g&&(l=g.Gt(l),null!=l&&(m=new k.I.PV(c,m,n),l.PY(m)))))};b.Goa=a})(d.sD||(d.sD={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){this.slice=c;this.fa=e}a.prototype.dS=function(c){return c.$t?"members":"allmembers"};a.prototype.cS=function(c){return c.Fh?c.tn:f.O.bind("{0}.levels(0).{1}",c.uniqueName,this.dS(c))};a.prototype.MS=function(){return 0<this.slice.Cd(k.i.ia.Sa).zd.length};a.prototype.NS=function(){return 0<this.slice.Cd(k.i.ia.Ia).zd.length};a.prototype.zn=function(){for(var c=[],e=this.slice.pu,g=0;g<e.length;g++)c.push(e[g].uniqueName);
return"{"+c.join(", ")+"}"};a.prototype.uB=function(){var c=this.zn();if(0<this.slice.Cb.length){var e=this.qK(this.slice.Cb),g="";this.MS()&&(g=this.Mx(this.slice.Cd(k.i.ia.Sa).zd,this.slice.Cb));return"Crossjoin("+(0<g.length?"Union("+e+", "+g+")":e)+", "+c+")"}return c};a.prototype.xB=function(){if(0<this.slice.vb.length){var c=this.qK(this.slice.vb),e="";this.NS()&&(e=this.Mx(this.slice.Cd(k.i.ia.Ia).zd,this.slice.vb));return 0<e.length?"Union("+c+", "+e+")":c}return""};a.prototype.qK=function(c){for(var e=
[],g=0;g<c.length;g++){var l=c.ea(g);l=this.DZ(l,this.slice.expandAll||0==g,this.slice.drillAll);0<l.length&&e.push(l)}if(1<e.length){c=this.zn();l=e[0];for(g=1;g<e.length;g++)l=f.model.B.C.jda?f.O.bind("Crossjoin({0}, {1})",l,e[g]):f.O.bind("NonEmpty(Crossjoin({0}, {1}), {2})",l,e[g],c);return l}return e[0]};a.prototype.DZ=function(c,e,g){var l=this.cS(c);if(g)e="Hierarchize({"+c.uniqueName+"."+this.dS(c)+"})";else if(e)for(e=null!=c.nc?"Hierarchize({Descendants({"+c.uniqueName+".levels(0)."+this.dS(c)+
"}, "+c.nc.uniqueName+", SELF_AND_BEFORE)})":c.Fh?"Hierarchize({DrilldownLevel({"+l+"})})":"{{"+c.Kl()+","+l+"}}",g=1;g<c.ra.length;g++)l=c.ra.ea(g),l=c.JB(l),0!=l.length&&(l=c.Fr(l).join(","),e=10.5<this.fa.version?"DrilldownMember({{"+e+"}}, {"+l+"},,INCLUDE_CALC_MEMBERS)":"DrilldownMember({{"+e+"}}, {"+l+"})");else{if(c.Fh)return l;e="{{"+c.Kl()+","+l+"}}"}return e};a.prototype.mV=function(c){return c=c.replace(/[\]|\[]/g,"")};a.prototype.Mo=function(c,e,g){for(var l=[],m,n=0;n<e.length;n++){var p=
e.ea(n);if(n==c.length-1)m=p.va(c[n]),m.Wb?(this.DZ(p,!0,!1),l.push(this.DZ(p,!0,!1))):void 0!==g&&null!=p.Gt(g)?l.push("Descendants("+m.uniqueName+", "+g+", SELF_AND_BEFORE)"):m.Pg?l.push(m.uniqueName+".CHILDREN"):l.push(m.uniqueName);else if(n<c.length){m=p.va(c[n]);if(null==m)return"";p=p.Fr(m.children);m=m.ah?"{"+p.join(",")+"}":m.uniqueName;l.push(m)}else l.push(this.cS(p))}return 1<l.length?"Crossjoin({"+l.join("}, {")+"})":l[0]};a.prototype.Mx=function(c,e){for(var g,l=0;l<c.length;l++){var m=
c[l].slice(1);m.push(0);m=this.Mo(m,e);g=g&&!f.ha(m)?f.O.bind("Union({0}, {1})",m,g):m}return g};a.prototype.m_=function(c,e){return 0<this.slice.vb.length?this.Mo(c,this.slice.vb,e):""};a.prototype.l_=function(c,e){var g=this.zn();return 0<this.slice.Cb.length?"Crossjoin("+this.Mo(c,this.slice.Cb,e)+", "+g+")":g};a.prototype.x_=function(c){var e=this.zn();return 0<this.slice.Cb.length?(c=c.slice(0),c.push(0),"Crossjoin("+this.Mo(c,this.slice.Cb)+", "+e+")"):e};a.prototype.B_=function(c){return 0<
this.slice.vb.length?(c=c.slice(0),c.push(0),this.Mo(c,this.slice.vb)):""};a.prototype.Uta=function(c,e){0<=k.i.Ub.$w.indexOf(e.ta)&&(e=e.kR(c.getTimezoneOffset()));if(e.ta==k.i.Ub.EQUAL){var g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<CDate('{2}')))";var l=e.value.clone().Xm();var m=l.clone().GY(1).Xm()}e.ta==k.i.Ub.If&&(g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))",
l=e.value.clone().Xm(),m=l.clone());e.ta==k.i.Ub.JD&&(l=e.value.clone().Xm(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}')))");e.ta==k.i.Ub.KD&&(l=e.value.clone().Xm(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<=CDate('{1}')))");e.ta==k.i.Ub.FD&&(l=e.value.clone().Xm(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>CDate('{1}')))");e.ta==k.i.Ub.GD&&(l=e.value.clone().Xm(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}')))");
e.ta==k.i.Ub.Sg&&(l=e.value[0].clone().Xm(),m=e.value[1].clone().mz(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<=CDate('{2}')))");e.ta==k.i.Ub.Jg&&(l=e.value[0].clone().Xm(),m=e.value[1].clone().mz(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))");e=this.slice.pu[0].yg;var n;this.fa.Jw&&(n=c.wi.CG[e]);f.ha(n)&&(n=c.uniqueName);g=f.O.bind(g,n,l.format("yyyy-MM-dd"),
m?m.format("yyyy-MM-dd"):"",c.Fh?1:0);return[g]};a.prototype.gua=function(c,e){var g,l=e.value,m=l.length;e.ta==k.i.wb.EQUAL&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption='{2}'))");e.ta==k.i.wb.If&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<>'{2}'))");e.ta==k.i.wb.LD&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})='{2}'))");e.ta==k.i.wb.$z&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})<>'{2}'))");e.ta==k.i.wb.Mz&&
(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})='{2}'))");e.ta==k.i.wb.bA&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})<>'{2}'))");e.ta==k.i.wb.an&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')>0))");e.ta==k.i.wb.aA&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')=0))");e.ta==k.i.wb.GREATER&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>'{2}'))");e.ta==k.i.wb.Kk&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'))");
e.ta==k.i.wb.LESS&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<'{2}'))");e.ta==k.i.wb.Lk&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'))");if(e.ta==k.i.wb.Sg){g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'  AND {0}.CurrentMember.member_caption<='{4}'))";l=e.value[0];var n=e.value[1]}e.ta==k.i.wb.Jg&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'  OR {0}.CurrentMember.member_caption>='{4}'))",l=e.value[0],n=e.value[1]);
g=f.O.bind(g,c.uniqueName,c.Fh?1:0,l,m,n);return[g]};a.prototype.Lo=function(c){for(var e=[],g="",l=0;l<c.length;l++){var m=c.ea(l),n=[];m.filter.$h&&(n=m.Fr(m.cb));m.filter.uy&&(n=this.Uta(m,m.filter.query));m.filter.$v&&(n=this.gua(m,m.filter.query));if(!m.Fh){var p=m.Kl();this.ed.Bb(p)||this.ed.Pa(p,this.cS(m))}0<n.length&&e.push("{"+n.join(",")+"}")}0<e.length&&(g="("+e.join(", ")+")");return g};a.prototype.qua=function(c,e,g){for(var l=[],m=c.indexOf(e.uniqueName),n=0;n<m;n++){var p=c.ea(n);
l.push("Hierarchize("+p.uniqueName+".levels("+(p.Fh?1:0)+")."+this.dS(e)+")")}c="Hierarchize({"+this.cS(e)+"})";0<l.length&&(c="CrossJoin("+l.join(",")+", "+c+")");return f.O.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,"["+e.caption+"___0___0]","["+e.caption+"_1_1_1]",e.filter.measure.uniqueName,e.filter.query.value,""+m,g,e.filter.query.ta==k.i.tc.Bj?"TopCount":"BottomCount",", INCLUDE_CALC_MEMBERS")};
a.prototype.Z$=function(c,e){for(var g=0;g<c.length;g++){var l=c.ea(g);l.filter.ai&&this.slice.Of.find(function(m){return m.uniqueName===l.filter.measure.uniqueName})&&(e=this.qua(c,l,e))}return e};a.prototype.yB=function(){if(0==this.ed.length)return"";for(var c="with",e=0;e<this.ed.length;e++)c+=f.O.bind(" member {0} as IIF(IsError(Aggregate({{1}})), null, Aggregate({{1}}))",this.YC(this.ed.qh(e)),this.YC(this.ed.ea(e)));return c};a.prototype.yn=function(c){c=void 0===c?!0:c;var e=f.ha(this.fa.subquery)?
"["+this.fa.wa+"]":"("+this.fa.subquery+")";var g=this.Lo(this.slice.Cb),l=this.Lo(this.slice.vb),m="",n="";if(0!==this.slice.pages.length)for(var p=0;p<this.slice.pages.length;p++){var t=this.slice.pages.ea(p);if(t.filter&&t.filter.$h){var r=t.filter.pj();1==r.length&&c?n=0===n.length?" WHERE ("+t.o0(r[0])+")":n.substring(0,n.length-1)+(", "+t.o0(r[0])+")"):1<r.length&&c&&(n=0===n.length?" WHERE ("+(t.uniqueName+".CurrentMember)"):n.substring(0,n.length-1)+(", "+(t.uniqueName+".CurrentMember)")))}}0<
this.slice.pages.length&&(m=this.Lo(this.slice.pages));0==g.length&&0==l.length&&0==m.length?c=e:(0<g.length&&(g+=" ON COLUMNS"),0<l.length&&(0<g.length?l=", "+l+" ON ROWS":(g=l+" ON COLUMNS",l="")),0<m.length&&(m="SELECT "+m+" ON COLUMNS FROM "+e),0<g.length||0<l.length?(c="SELECT "+g+l+" FROM ",c=0<m.length?c+("("+m+")"):c+e):c=m,c="("+c+")");c=this.Z$(this.slice.vb,c);c=this.Z$(this.slice.Cb,c);0<n.length&&(c+=n);return c};a.prototype.YC=function(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),
"''"));return c};a.prototype.expand=function(c,e){this.ed=new f.nb;c==k.i.ia.Ia?(c=this.uB(),e=this.B_(e)):(c=this.x_(e),e=this.xB());var g=this.yn();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";e=this.zD?0<e.length?", NON EMPTY _ROWS_TOKEN_START_"+e+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<e.length?", NON EMPTY "+e+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"";var l=this.yB();return f.O.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,e,g,this.CZ(),l)};a.prototype.tf=function(c,e,g,l){this.ed=new f.nb;c==k.i.ia.Ia?(c=this.uB(),e=this.m_(e,l)):(c=this.l_(e,l),e=this.xB());l=this.yn();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";e=this.zD?0<e.length?", NON EMPTY _ROWS_TOKEN_START_"+e+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"":0<e.length?", NON EMPTY "+e+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.yB();return f.O.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,e,l,this.CZ(),g)};a.prototype.select=function(){this.ed=new f.nb;var c=this.uB(),e=this.xB(),g=this.yn();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";e=this.zD?0<e.length?", NON EMPTY _ROWS_TOKEN_START_"+e+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"":0<e.length?", NON EMPTY "+e+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var l=this.yB();return f.O.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,e,g,this.CZ(),l)};a.prototype.CZ=function(){return 0==f.model.B.C.Jq||this.fa.Ba!=k.i.oa.Nc?"VALUE":"VALUE, FORMATTED_VALUE"};a.prototype.drillThrough=function(c,e,g){this.ed=new f.nb;for(var l="DRILLTHROUGH MAXROWS "+f.model.B.C.KK+" SELECT {0} ON 0 FROM {1} {2}",m,n=[],p=0;p<this.slice.Cb.length;p++)m=
this.slice.Cb.ea(p),m.Qe||null==e[p]||(m=m.va(e[p]),null!=m&&n.push(m.uniqueName));for(p=0;p<this.slice.vb.length;p++)m=this.slice.vb.ea(p),m.Qe||null==c[p]||(m=m.va(c[p]),null!=m&&n.push(m.uniqueName));c=0<n.length?"where ("+n.join(",")+")":"";e=this.yn(!1);return f.O.bind(l,g.uniqueName,e,c)};q.Object.defineProperties(a.prototype,{zD:{configurable:!0,enumerable:!0,get:function(){return this.fa&&this.fa.binary&&!f.model.B.C.jda?!0:!1}}});b.GW=a})(d.sD||(d.sD={}))})(h.yb||(h.yb={}))})(k.external||
(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){c=d.eh.oP.call(this,c)||this;c.hH=[];return c}u(a,d.eh.oP);a.prototype.HZ=function(){var c=f.O.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.members, {1}), (INSTR(1, lcase({0}.CurrentMember.Caption), {2}) > 0))'",this.hierarchy.uniqueName,this.hierarchy.xt,'"'+this.ld+'"');var e=f.O.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.xt);
return c+"\n"+e+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"};a.prototype.EZ=function(){var c=this.hierarchy.z1,e=[],g=[];if(0<c.length)for(var l=0;l<c.length;l++){var m=c.ea(l).uniqueName;g.push("[Measures].["+m+"]");e.push(f.O.bind('member [Measures].[{0}] as {1}.CurrentMember.Properties("{0}")',m,this.hierarchy.uniqueName))}c=this.yn();0<g.length?(g=0<g.length?g.join(", "):"",e=0<e.length?"with "+e.join(" "):"",e=null==this.Xb?this.LG()?f.O.bind("{3} SELECT crossjoin(DISTINCT({{0}.allmembers}), {{2}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",
this.hierarchy.uniqueName,c,g,e):this.hierarchy.Fh?f.O.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.uniqueName,c,this.Bk.toString(),this.gq.toString(),g,e):f.O.bind("{5} SELECT crossjoin(Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.uniqueName,c,this.Bk.toString(),
this.gq.toString(),g,e):f.O.bind("{5} SELECT crossjoin(Subset({0}.children, {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.Xb.uniqueName,c,this.Bk.toString(),this.gq.toString(),g,e)):e=null==this.Xb?this.LG()?f.O.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.uniqueName,c):this.hierarchy.Fh?f.O.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.uniqueName,c,this.Bk.toString(),this.gq.toString()):f.O.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.uniqueName,c,this.Bk.toString(),this.gq.toString()):f.O.bind("SELECT Subset({0}.children, {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.Xb.uniqueName,c,this.Bk.toString(),this.gq.toString());return e};a.prototype.UC=function(c){var e=c.find("root");if(0<e.find("Fault").length)f.Va(D.aa.Cc(e.find("Fault faultstring")),
"Query error!",f.rb.ya);else{this.hH=[];c=[];for(var g=e.find('Axes Axis[name="Axis0"] Tuples Tuple Member'),l=this.hierarchy.vi,m=0;m<g.length;m++)c.push(this.yU(g[m],m+l));e=e.find("CellData Cell");for(m=0;m<e.length;m++)if(l=e[m],g=parseInt(l.attr("CellOrdinal")),l=l.find("Value").text(),0>l.indexOf("MondrianEvaluationException")&&!f.v(this.hH)&&!f.v(this.hH[g])){var n=this.hH[g][1];g=this.hierarchy.Db(this.hH[g][0]);null!=g&&g.setProperty(n,l)}return c}};a.prototype.yU=function(c,e){var g=c.find("PARENT_UNIQUE_NAME").text();
var l=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]"==l)null!=this.iea&&this.hH.push([this.iea.uniqueName,m]);else return l=this.hierarchy.Db(n),null==l?(l=this.hierarchy.fc(new k.I.Rd({uniqueName:n,caption:m,ei:g})),l.ec=isNaN(c)?e:c):this.state==k.qo.gE&&(l.ec=isNaN(c)?e:c),this.iea=l,null==l||l.Wb||(l.yf=!0),l.parent&&!l.parent.Wb&&(l.parent.yf=!1),l.ordinal};b.Bna=a})(d.gp||(d.gp={}))})(h.yb||
(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=d.eh.pP.call(this,c)||this;e.ll=new b.Bna(c);return e}u(a,d.eh.pP);a.prototype.MT=function(){f.za(!1);null!=this.Ib&&this.Ib()};a.prototype.g3=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),l=c.find("LEVEL_UNIQUE_NAME").text(),m=c.find("PROPERTY_CAPTION").text();c.find("PROPERTY_TYPE").text();c=c.find("PROPERTY_NAME").text();e=this.wa.I.Vo(e);null!=e&&(g=e.Mg(g),
null!=g&&(l=g.Gt(l),null!=l&&(m=new k.I.PV(c,m),l.PY(m))))};b.Cna=a})(d.gp||(d.gp={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){this.slice=c;this.ub=e}a.prototype.MS=function(){return 0<this.slice.Cd(k.i.ia.Sa).zd.length};a.prototype.NS=function(){return 0<this.slice.Cd(k.i.ia.Ia).zd.length};a.prototype.mV=function(c){return c=c.replace(/[\]|\[]/g,"")};a.prototype.YC=function(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c};a.prototype.sK=function(c,e){e=void 0===e?!1:e;var g=[];var l=0!=c.cb.length||c.Fh?c.cb:c.du(c.ra.ea(1).uniqueName);
for(var m=c.Fr(l),n=[],p,t=0;t<l.length;t++)if(p=c.va(l[t]),!f.ha(p.uniqueName)){g.push(p.uniqueName);if(p.Pg||this.slice.drillAll)e?g.push(f.O.bind("Descendants({0})",p.uniqueName)):g.push(f.O.bind("{0}.CHILDREN",p.uniqueName));for(;null!=p.parent;){p=p.parent;for(var r=p.Wx,v=[],z=0;z<r.length;z++){var B=c.va(r[z]).uniqueName;-1<m.indexOf(B)&&v.push(B)}r=!c.Fh&&p.Wb?c.Kl():p.Yra;if(c.type==k.i.Gc.Oa&&!c.Fh){if(p.Wb)continue;r=p.uniqueName}-1==n.indexOf(r)&&n.push(r);this.ed.Bb(r)||c.$t||this.ed.Pa(r,
v.join(","))}}e=this.mV(c.uniqueName)+"FilterSet";this.tg.Pa(e,g.join(", "));c=this.mV(c.uniqueName)+"CalculatedSet";this.tg.Pa(c,n.join(", "));return["["+e+"]","["+c+"]"]};a.prototype.tK=function(c,e,g){if(g)if(c.filter.$h){var l=this.sK(c,!0);g=l[0];l=l[1];e=f.O.bind("Hierarchize(Distinct(Union({0}, {1})))",g,l)}else e="Hierarchize({"+c.uniqueName+".AllMembers})";else{var m=c.Fh?f.O.bind("Union({{0}}, {1}.levels(1).AllMembers)",c.tn,c.uniqueName):c.type==k.i.Gc.Oa?f.O.bind("{0}.levels(0).AllMembers",
c.uniqueName):f.O.bind("Union({{0}}, {1}.levels(0).AllMembers)",c.Kl(),c.uniqueName);var n=this.$ta(c);c.filter.$h||!c.Fh&&c.type!=k.i.Gc.Oa?(l=this.sK(c,e&&0<n.length),g=l[0],l=l[1],e=e?0<n.length?f.O.bind("Hierarchize(Distinct(Union(Intersect({0}, Union({1}, {3})), {2})))",g,n,l,m):f.O.bind("Hierarchize(Distinct(Union({0}, {1})))",g,l):c.Kl()):e=e?0<n.length?f.O.bind("Hierarchize(Distinct(Union({0}, {1})))",m,n):m:f.O.bind("{0}.levels(0).AllMembers",c.uniqueName)}c="set_"+this.slice.rc().indexOf(c.uniqueName)+
"_set";this.tg.Pa(c,e);return"["+c+"]"};a.prototype.$ta=function(c){for(var e=[],g=1;g<c.ra.length;g++){var l=c.ra.ea(g);c.nc&&c.nc.uniqueName==l.uniqueName&&e.push(f.O.bind("Descendants({{0}}, {1}, SELF_AND_BEFORE)",c.xt,c.nc.uniqueName));l=c.JB(l);if(0!=l.length)for(var m=0;m<l.length;m++){var n=c.va(l[m]);c.type!=k.i.Gc.Oa||c.Fh?e.push(f.O.bind("{0}.CHILDREN",n.uniqueName)):(n=c.Fr(n.children),e.push(f.O.bind("{"+n.join(","))+"}"))}}return 0<e.length?(c=this.mV(c.uniqueName)+"DrilledSet",this.tg.Pa(c,
e.join(",")),"["+c+"]"):""};a.prototype.Mx=function(c,e){for(var g="",l=0;l<c.length;l++){var m=c[l].slice(1);m=this.Mo(m,e);""!=m&&(g=g?f.O.bind("Union({0}, {1})",m,g):m)}return g};a.prototype.Mo=function(c,e){for(var g="",l=e.length-1;0<=l;l--){var m=e.ea(l);if(null!=c[l]){var n=m.va(c[l]);if(null==n){g="";break}m.filter.$h?(m=this.sK(m,!0),n=f.O.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",n.uniqueName,m[0],m[1])):n="{"+n.uniqueName+"}"}else n=c.length==l?this.tK(m,!0,!1):this.tK(m,
!1,!1);g=l==e.length-1?n:f.O.bind("CrossJoin({{0}}, {{1}})",n,g)}return g};a.prototype.qK=function(c){var e=[];for(var g=this.slice.ad(),l=0;l<g.length;l++)e.push("isEmpty("+g[l].uniqueName+")");e=e.join(" and ");g="";for(l=0;l<c.length;l++){var m=c.ea(l);m=this.tK(m,this.slice.expandAll||0==l,this.slice.drillAll);m="Filter("+m+", not ("+e+"))";g=0<l?"Crossjoin("+g+","+m+")":m}return g};a.prototype.uB=function(){if(0<this.slice.Cb.length){var c=this.qK(this.slice.Cb);this.tg.Pa("columnHierarchiesSet",
c);c="";this.MS()&&(c=this.Mx(this.slice.Cd(k.i.ia.Sa).zd,this.slice.Cb),0<c.length&&this.tg.Pa("columnExpandedSet",c));this.tg.Pa("columnSet","Crossjoin("+(0<c.length?"Union([columnHierarchiesSet], [columnExpandedSet])":"[columnHierarchiesSet]")+", [measureSet])")}else this.tg.Pa("columnSet","[measureSet]")};a.prototype.xB=function(){if(0<this.slice.vb.length){var c=this.qK(this.slice.vb);this.tg.Pa("rowHierarchiesSet",c);c="";this.NS()&&(c=this.Mx(this.slice.Cd(k.i.ia.Ia).zd,this.slice.vb),0<c.length&&
this.tg.Pa("rowExpandedSet",c));this.tg.Pa("rowSet",0<c.length?"Union([rowHierarchiesSet], [rowExpandedSet])":"[rowHierarchiesSet]")}};a.prototype.x_=function(c){0<this.slice.Cb.length?(c=this.Mo(c,this.slice.Cb),this.tg.Pa("columnSet","Crossjoin("+c+", [measureSet])")):this.tg.Pa("columnSet","[measureSet]")};a.prototype.B_=function(c){0<this.slice.vb.length&&(c=this.Mo(c,this.slice.vb),this.tg.Pa("rowSet",c))};a.prototype.l_=function(c,e){0<this.slice.Cb.length?(c=this.aba(c,e,this.slice.Cb),this.tg.Pa("columnSet",
"Crossjoin("+c+", [measureSet])")):this.tg.Pa("columnSet","[measureSet]")};a.prototype.m_=function(c,e){0<this.slice.vb.length&&(c=this.aba(c,e,this.slice.vb),this.tg.Pa("rowSet",c))};a.prototype.aba=function(c,e,g){var l=[];for(var m=this.slice.ad(),n=0;n<m.length;n++)l.push("isEmpty("+m[n].uniqueName+")");l=l.join(" and ");m="";for(n=g.length-1;0<=n;n--){var p=g.ea(n);if(e.hierarchy.uniqueName==p.uniqueName)if(p.filter.$h){var t=this.sK(p,!0);p=t[0];t=t[1];var r=f.O.bind("Hierarchize(Distinct(Union(Intersect({0}.CHILDREN, {1}), {2})))",
e.uniqueName,p,t)}else r=this.tK(p,!0,!1),r=f.O.bind("Intersect({0}.CHILDREN, {{1}})",e.uniqueName,r);else if(null!=c[n]){r=p.va(c[n]);if(null==r){m="";break}p.filter.$h?(t=this.sK(p,!0),p=t[0],t=t[1],r=f.O.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",r.uniqueName,p,t)):r="{"+r.uniqueName+"}"}else r=this.tK(p,!1,!1);r="Filter("+r+", not ("+l+"))";m=n==g.length-1?r:f.O.bind("CrossJoin({{0}}, {{1}})",r,m)}return m};a.prototype.FZ=function(){for(var c="",e=[],g=0;g<this.slice.pages.length;g++){var l=
this.slice.pages.ea(g);l.filter.$h&&(this.ed.Pa(l.Kl(),l.Fr(l.cb).join(",")),e.push(l.Kl()))}0<e.length&&(c=f.O.bind("where ({0})",e.join(", ")));return c};a.prototype.zn=function(){for(var c=[],e=0;e<this.slice.pu.length;e++)c.push(this.slice.pu[e].uniqueName);this.tg.Pa("measureSet",c.join(", "))};a.prototype.yB=function(){for(var c="with",e=0;e<this.tg.length;e++)c+=f.O.bind(" set [{0}] as '{{1}}'",this.YC(this.tg.qh(e)),this.YC(this.tg.ea(e)));for(e=0;e<this.ed.length;e++)c+=f.O.bind(" member {0} as 'Aggregate({{1}})'",
this.YC(this.ed.qh(e)),this.YC(this.ed.ea(e)));return c};a.prototype.select=function(){this.tg=new f.nb;this.ed=new f.nb;this.zn();this.uB();this.xB();var c=this.FZ();var e=this.zD?this.tg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.tg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.yB();return f.O.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",e,this.ub.wa,c)};a.prototype.expand=function(c,e){this.tg=new f.nb;this.ed=new f.nb;this.zn();c==k.i.ia.Ia?(this.uB(),this.B_(e)):(this.x_(e),this.xB());c=this.FZ();e=this.zD?this.tg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.tg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"";var g=this.yB();return f.O.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",e,this.ub.wa,c)};a.prototype.tf=function(c,e,g){this.tg=new f.nb;this.ed=new f.nb;this.zn();c==k.i.ia.Ia?(this.uB(),this.m_(e,g)):(this.l_(e,g),this.xB());c=this.FZ();e=this.zD?this.tg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"":this.tg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.yB();return f.O.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",e,this.ub.wa,c)};a.prototype.drillThrough=function(){return""};q.Object.defineProperties(a.prototype,{zD:{configurable:!0,enumerable:!0,get:function(){return this.ub&&this.ub.binary?
!0:!1}}});b.GW=a})(d.gp||(d.gp={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){(function(a){function c(){var e=d.I.LO.apply(this,arguments)||this;e.Rk=new x.dP(!1);e.Zu=new x.dP;return e}u(c,d.I.LO);c.prototype.Kl=function(e){e=void 0===e?"(Total)":e;if(this.Fh)return this.tn+".["+e+"]";var g=this.xt.split("].");g.pop();g.push("["+e+"]");return g.join("].")};c.prototype.bC=function(){return new a.Ana(this)};c.prototype.Db=function(e){e=this.Rk.find(e);return-1==e?null:this.va(e)};a.E7=c})(b.I||(b.I={}))})(d.gp||
(d.gp={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){(function(a){function c(){return d.I.SW.apply(this,arguments)||this}u(c,d.I.SW);q.Object.defineProperties(c.prototype,{Bi:{configurable:!0,enumerable:!0,get:function(){return this.level.cw?!0:this.hierarchy.sT||this.hierarchy.$t||this.level.cw?(this.Pg||!this.yf)&&0==this.children.length:!1},set:function(){}}});a.Ana=c})(b.I||(b.I={}))})(d.gp||(d.gp={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.Oq.call(this,c,void 0===e?"":e)||this}u(a,k.I.Oq);b.Aka=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){e=k.I.nf.call(this,c,void 0===e?"":e)||this;e.Nda=!1;e.qfa="";e.YP="";c=new b.f6(c+".[(all)]","All",0);e.ph(c);e.tn="(all member)";e.xt="(all member)";c=new k.I.Rd({uniqueName:"(all member)",caption:"All",Wb:!0});e.fc(c);return e}u(a,k.I.nf);a.prototype.bC=function(){return new b.Cka(this)};a.prototype.fc=function(c){void 0!==c.caption&&f.ha(c.caption)?c.caption=f.model.A.j.Mk:f.ha(c.uniqueName)&&(c.caption=f.model.A.j.Mk);
return k.I.nf.prototype.fc.call(this,c)};a.prototype.va=function(c){return k.I.nf.prototype.va.call(this,c)};a.prototype.Ji=function(){var c=k.I.nf.prototype.Ji.call(this);c.type=this.inputType;return c};q.Object.defineProperties(a.prototype,{inputType:{configurable:!0,enumerable:!0,get:function(){return this.YP},set:function(c){this.YP=c}}});b.Bka=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e,g){return k.I.$m.call(this,c,void 0===e?"":e,void 0===g?0:g)||this}u(a,k.I.$m);b.f6=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.ek.call(this,c,void 0===e?"":e)||this}u(a,k.I.ek);a.prototype.F0=function(){var c=new a("","");return this.format!=c.format||0==this.Nm?!1:!0};a.prototype.clone=function(){var c=new a(this.uniqueName);this.xK(c);return c};a.prototype.Ji=function(){var c=k.I.ek.prototype.Ji.call(this),e=k.Na.U().I.Vj(this.uniqueName);f.v(e)?c.type=k.i.input.pa.fb:c.type=e.inputType;return c};q.Object.defineProperties(a.prototype,
{bm:{configurable:!0,enumerable:!0,get:function(){return this.Ka?[]:this.type==k.i.Ja.fb?k.i.ca.Jia:k.i.ca.Kia},set:function(){}},caption:{configurable:!0,enumerable:!0,get:function(){if(0==f.model.B.C.iz)return this.qc;switch(this.$){case k.i.ca.sc:return f.O.bind(f.model.A.j.LN,this.qc);case k.i.ca.Bs:return f.O.bind(f.model.A.j.QO,this.qc);case k.i.ca.hj:return f.O.bind(f.model.A.j.SN,this.qc);case k.i.ca.Hp:return f.O.bind(f.model.A.j.FN,this.qc);case k.i.ca.Su:return f.O.bind(f.model.A.j.ZO,
this.qc);case k.i.ca.Tu:return f.O.bind(f.model.A.j.$O,this.qc);case k.i.ca.MAX:return f.O.bind(f.model.A.j.zO,this.qc);case k.i.ca.MIN:return f.O.bind(f.model.A.j.IO,this.qc);case k.i.ca.Wq:return f.O.bind(f.model.A.j.QI,this.qc);case k.i.ca.ro:return f.O.bind(f.model.A.j.JI,this.qc);case k.i.ca.Tp:return f.O.bind(f.model.A.j.OI,this.qc);case k.i.ca.Rp:return f.O.bind(f.model.A.j.MI,this.qc);case k.i.ca.Sp:return f.O.bind(f.model.A.j.NI,this.qc);case k.i.ca.li:return f.O.bind(f.model.A.j.wI,this.qc);
case k.i.ca.nm:return f.O.bind(f.model.A.j.RO,this.qc);case k.i.ca.ln:return f.O.bind(f.model.A.j.TO,this.qc);case k.i.ca.dn:return f.O.bind(f.model.A.j.bI,this.qc);case k.i.ca.im:return f.O.bind(f.model.A.j.cI,this.qc);case k.i.ca.jn:return f.O.bind(f.model.A.j.KI,this.qc);case k.i.ca.km:return f.O.bind(f.model.A.j.LI,this.qc);case k.i.ca.NONE:return this.qc}return f.O.bind(f.model.A.j.WI,this.qc)},set:function(c){""==c.trim()?this.qc=f.model.A.j.Mk:this.qc=c}},Yl:{configurable:!0,enumerable:!0,
get:function(){return this.qc},set:function(){}}});b.g6=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){return k.I.Pq.apply(this,arguments)||this}u(a,k.I.Pq);a.prototype.La=function(){var c=k.I.Pq.prototype.La.call(this);c.uniqueName=this.Xi;this.parent&&(c.parentMember=this.parent.Xi);return c};q.Object.defineProperties(a.prototype,{caption:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.hierarchy.aC(this.ordinal)}}});b.Cka=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||
(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.I.rs.call(this)||this;c.QA={};c.GA={};c.NY();return c}u(a,k.I.rs);a.prototype.UJ=function(c,e){this.QA[c]=this.Mg(e);this.GA[e]=this.$c(c)};a.prototype.Vj=function(c){return this.QA[c]};a.prototype.Ee=function(c){return this.GA[c]};a.prototype.nw=function(c,e,g){e=void 0===e?null:e;g=void 0===g?!1:g;var l=e?e:new b.g6(c.uniqueName);return k.I.rs.prototype.nw.call(this,c,l,f.v(e)||g)};a.prototype.clear=function(){this.QA=
{};this.GA={};k.I.rs.prototype.clear.call(this)};b.Eka=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=k.I.ConnectionInfo.call(this)||this;a.node=null;a.index="";a.mapping=new d.XN;a.subquery=null;a.Ba=k.i.oa.Gf;return a}u(b,k.I.ConnectionInfo);b.prototype.isEqual=function(a){return a.connection&&a.connection===this.connection&&this.index==a.index?!0:k.I.ConnectionInfo.prototype.isEqual.call(this,a)&&JSON.stringify(this.node)==JSON.stringify(a.node)&&this.index==a.index&&this.mapping.isEqual(a.mapping)&&JSON.stringify(this.subquery)==
JSON.stringify(a.subquery)};b.prototype.Tv=function(a){if(!f.v(this.connection))return a(this.connection);var c=new Ga.O5({host:this.node,headers:this.requestHeaders,withCredentials:this.withCredentials});a(c)};b.tb=function(a){var c=new b;f.v(a.host)||(c.node=a.host);f.v(a.node)||(c.node=a.node);f.v(a.index)||(c.index=a.index);f.v(a.mapping)||(c.mapping=a.mapping instanceof d.XN?a.mapping:new d.XN(a.mapping));f.v(a.subquery)||(c.subquery=a.subquery);f.v(a.connection)||(c.connection=a.connection);
f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c};b.prototype.La=function(a){a=void 0===a?!1:a;var c={};c.type=this.Ba;f.v(this.node)||(c.node=this.node);f.v(this.index)||(c.index=this.index);if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);f.v(this.subquery)||(c.subquery=this.subquery);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c};b.prototype.clone=function(){var a=new b;
a.Ba=this.Ba;f.v(this.node)||(a.node=this.node);f.v(this.index)||(a.index=this.index);if(!this.mapping.ob||this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);f.v(this.subquery)||(a.subquery=this.subquery);f.v(this.withCredentials)||(a.withCredentials=this.withCredentials);return a};q.Object.defineProperties(b.prototype,{KG:{configurable:!0,enumerable:!0,get:function(){return!1}}});d.ESConnectionInfo=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){this.slice=a;this.connectionInfo=c}b.prototype.select=function(){var a={size:0};f.v(this.connectionInfo.subquery)||(a.query=x.Mc.Vi(this.connectionInfo.subquery));var c=this.slice.vb.Ic(),e=this.slice.Cb.Ic();this.slice.expandAll||(c=c.slice(0,1),e=e.slice(0,1));this.Lo(a);0==c.length&&0==e.length?this.zn(a,this.slice.ad(),!0):this.Kv(a,c.concat(e));0<e.length&&this.Kv(a,e.concat(c),!0);return a};b.prototype.expand=function(a,c){var e=
{size:0};f.v(this.connectionInfo.subquery)||(e.query=x.Mc.Vi(this.connectionInfo.subquery));var g=a==k.i.ia.Ia;a=this.slice.vb.Ic();var l=this.slice.Cb.Ic();this.Lo(e);this.Mo(e,c,g?a:l);if(this.slice.expandAll)return this.Kv(e,a.concat(l)),0<l.length&&this.Kv(e,l.concat(a),!0),e;var m=[];if(g){c=c.length+1;var n=this.tca(k.i.ia.Sa),p=this.Tca(this.slice.Cd(k.i.ia.Sa).zd);for(g=1;g<=n;g++)if(!f.v(p[g])||1==g){var t=x.Mc.Vi(e);1!=g&&this.Mx(t,p[g],l);var r=a.slice(0,c),v=l.slice(0,g);this.Kv(t,r.concat(v));
m.push(t)}}else for(g=c.length+1,n=this.tca(k.i.ia.Ia),p=this.Tca(this.slice.Cd(k.i.ia.Ia).zd),c=1;c<=n;c++)f.v(p[c])&&1!=c||(t=x.Mc.Vi(e),1!=c&&this.Mx(t,p[c],a),r=a.slice(0,c),v=l.slice(0,g),this.Kv(t,r.concat(v)),0<v.length&&this.Kv(t,v.concat(r),!0),m.push(t));return m};b.prototype.Tca=function(a){for(var c={},e=0;e<a.length;e++){var g=a[e].length;f.v(c[g])&&(c[g]=[]);c[g].push(a[e])}return c};b.prototype.drillThrough=function(a,c,e,g){var l=this;g=void 0===g?null:g;e={size:f.model.B.C.KK};f.v(this.connectionInfo.subquery)||
(e.query=x.Mc.Vi(this.connectionInfo.subquery));e._source=g.map(function(m){var n=l.slice.Wc.Mg(m);return n&&n.Nda?n.qfa:m});this.Lo(e);this.Mo(e,a,this.slice.vb.Ic());this.Mo(e,c,this.slice.Cb.Ic());return e};b.prototype.VZ=function(a){f.v(a.query)&&(a.query={});f.v(a.query.bool)&&(a.query.bool={});f.v(a.query.bool.must)?a.query.bool.must=[]:Array.isArray(a.query.bool.must)||(a.query.bool.must=[a.query.bool.must]);f.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])};b.prototype.Mo=function(a,c,e){var g=this;this.VZ(a);c.forEach(function(l,m){m=e[m];l=m.va(l);a.query.bool.must.push(g.uK(m,l))})};b.prototype.tf=function(){return null};b.prototype.tca=function(a){a=this.slice.Cd(a).zd;return 0<a.length?Math.max.apply(Math,a.map(function(c){return c.length})):1};b.prototype.Mx=function(a,c,e){var g=this,l={bool:{should:[]}};c.forEach(function(m){m=m.slice(1);e.forEach(function(n,p){null!=m[p]&&(p=n.va(m[p]),l.bool.should.push(g.uK(n,
p)))})});a.query.bool.must.push(l)};b.prototype.MS=function(){return 0<this.slice.Cd(k.i.ia.Sa).zd.length};b.prototype.NS=function(){return 0<this.slice.Cd(k.i.ia.Ia).zd.length};b.prototype.Kv=function(a,c,e){e=void 0===e?!1:e;for(var g=this.slice.ad(),l=0;l<c.length;l++)if(this.zn(a,g,!0),!e||l!=c.length-1){var m=c[l];this.eua(a,m);a=a.aggs[m.uniqueName]}e||this.zn(a,g)};b.prototype.eua=function(a,c){f.v(a.aggs)&&(a.aggs={});f.v(a.aggs[c.uniqueName])&&(a.aggs[c.uniqueName]={});c.type==k.i.Gc.Oa?
a.aggs[c.uniqueName].date_histogram={field:c.uniqueName,min_doc_count:this.connectionInfo.mapping.Fa(c.uniqueName,"min_doc_count"),interval:this.connectionInfo.mapping.Fa(c.uniqueName,"interval"),time_zone:this.connectionInfo.mapping.Fa(c.uniqueName,"time_zone"),format:this.connectionInfo.mapping.Fa(c.uniqueName,"format",f.model.B.C.mq)}:a.aggs[c.uniqueName].terms={field:c.uniqueName,size:c.Un}};b.prototype.zn=function(a,c,e){var g=this;e=void 0===e?!1:e;f.v(a.aggs)&&(a.aggs={});c.forEach(function(l){var m=
{};a.aggs[(e?"total_":"")+(l.$+"_")+l.uniqueName]=(m[g.dya(l)]={field:l.uniqueName},m)})};b.prototype.dya=function(a){if(a.$!=k.i.ca.Up){if(a.$==k.i.ca.Hp)return"avg";if(a.$==k.i.ca.sc)return"value_count";if(a.$==k.i.ca.hj)return"cardinality";if(a.$==k.i.ca.MIN)return"min";if(a.$==k.i.ca.MAX)return"max"}return"sum"};b.prototype.Lo=function(a){var c=this;this.slice.pages.Ic().forEach(function(e){return c.rK(a,e)});this.slice.Cb.Ic().forEach(function(e){return c.rK(a,e)});this.slice.vb.Ic().forEach(function(e){return c.rK(a,
e)})};b.prototype.rK=function(a,c){if(c.filter.$h){this.VZ(a);for(var e={bool:{should:[]}},g=c.filter.pj(c.filter.b1),l=0;l<g.length;l++){var m=c.va(g[l]);e.bool.should.push(this.uK(c,m))}a.query.bool[c.filter.b1?"must_not":"must"].push(e)}else if(c.filter.$v||c.filter.IL||c.filter.uy)this.VZ(a),e={bool:{should:[]}},c=c.filter.uy?this.Vta(c):this.hua(c),e.bool.should.push(c),a.query.bool[c.isExclude?"must_not":"must"].push(e),delete c.isExclude};b.prototype.Vta=function(a){var c={},e=0<=k.i.Ub.$w.indexOf(a.filter.query.ta)?
a.filter.query.kR(a.getTimezoneOffset()):a.filter.query;if(k.i.Ub.EQUAL===e.ta||k.i.Ub.If===e.ta){var g=e.value,l={};c.range=(l[a.uniqueName]={gte:g.format("yyyy-MM-dd"),lt:g.format("yyyy-MM-dd")+"||+1d/d"},l);c.isExclude=k.i.Ub.If===e.ta}else if(k.i.Ub.JD===e.ta)g={},c.range=(g[a.uniqueName]={lt:e.value.format("yyyy-MM-dd")},g),c.isExclude=!1;else if(k.i.Ub.KD===e.ta)g={},c.range=(g[a.uniqueName]={lt:e.value.format("yyyy-MM-dd")+"||+1d/d"},g),c.isExclude=!1;else if(k.i.Ub.FD===e.ta)g={},c.range=
(g[a.uniqueName]={gte:e.value.format("yyyy-MM-dd")+"||+1d/d"},g),c.isExclude=!1;else if(k.i.Ub.GD===e.ta)g={},c.range=(g[a.uniqueName]={gte:e.value.format("yyyy-MM-dd")},g),c.isExclude=!1;else if(k.i.Ub.Sg===e.ta||k.i.Ub.Jg===e.ta)g=e.value[1],l={},c.range=(l[a.uniqueName]={gte:e.value[0].format("yyyy-MM-dd"),lte:g.format("yyyy-MM-dd")},l),c.isExclude=k.i.Ub.Jg===e.ta;return c};b.prototype.hua=function(a){var c={},e=a.filter.query;if(k.i.wb.LD===e.ta||k.i.wb.$z===e.ta){var g={};c.prefix=(g[a.uniqueName]=
e.value,g);c.isExclude=k.i.wb.$z===e.ta}else if(k.i.wb.EQUAL===e.ta||k.i.wb.If===e.ta)g={},c.match=(g[a.uniqueName]=e.value,g),c.isExclude=k.i.wb.If===e.ta;else if(k.i.wb.Mz===e.ta||k.i.wb.bA===e.ta)g={},c.wildcard=(g[a.uniqueName]="*"+e.value,g),c.isExclude=k.i.wb.bA===e.ta;else if(k.i.wb.an===e.ta||k.i.wb.aA===e.ta)g={},c.wildcard=(g[a.uniqueName]="*"+e.value+"*",g),c.isExclude=k.i.wb.aA===e.ta;else if(k.i.wb.GREATER===e.ta)g={},c.range=(g[a.uniqueName]={gt:e.value},g),c.isExclude=!1;else if(k.i.wb.Kk===
e.ta)g={},c.range=(g[a.uniqueName]={gte:e.value},g),c.isExclude=!1;else if(k.i.wb.LESS===e.ta)g={},c.range=(g[a.uniqueName]={lt:e.value},g),c.isExclude=!1;else if(k.i.wb.Lk===e.ta)g={},c.range=(g[a.uniqueName]={lte:e.value},g),c.isExclude=!1;else if(k.i.wb.Sg===e.ta||k.i.wb.Jg===e.ta)g={},c.range=(g[a.uniqueName]={gte:e.value[0],lte:e.value[1]},g),c.isExclude=k.i.wb.Jg===e.ta;return c};b.prototype.uK=function(a,c){if(a.type==k.i.Gc.Oa){var e={};return{range:(e[a.uniqueName]={gte:c.ec,lt:f.SJ(new Date(c.ec),
this.connectionInfo.mapping.Fa(a.uniqueName,"interval")).getTime()},e)}}e={};return{term:(e[a.uniqueName]=c.caption,e)}};d.Dka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));var Ga;
(function(f){function k(d){w.ha(d)||this.Tba(d)}function h(d){var b=D.Qi.call(this)||this;d||(d={host:"http://localhost:9200"});b.host="string"===typeof d.host?new k(d.host):k.tb(d.host);d.headers&&(b.host.headers=d.headers);b.contentType=D.Iz.c5;b.withCredentials=d.withCredentials;return b}u(h,D.Qi);h.prototype.DY=function(d,b){var a=this;b=void 0===b?w.model.A.j.GO:b;this.Dha=function(){a.mb(y.da.Jc,a.Dha);d(null,JSON.parse(a.response))};this.N(y.da.Jc,this.Dha);this.jba=function(){a.mb(y.da.ya,
a.jba);var c=b;try{var e=JSON.parse(a.response);e&&e.message?c=e.message:e&&e.error&&e.error.reason&&(c=e.error.reason)}catch(g){}c=w.model.Nb.valid(c)?c:w.model.Nb.validate(c);d({message:c},null)};this.N(y.da.ya,this.jba)};h.prototype.search=function(d,b){this.DY(b);this.Dq=D.Fs.Pu;this.vh(this.host.headers);this.data="string"===typeof d.body?d.body:JSON.stringify(d.body);this.load(this.host.QT("/"+d.index+"/_search"));this.data=null};h.prototype.j0=function(d){this.DY(d,this.dca());this.Dq=D.Fs.tW;
this.vh(this.host.headers);this.load(this.host.QT("/_cat/indices?format=json"))};h.prototype.aza=function(d,b){this.DY(b,this.dca());this.Dq=D.Fs.tW;this.vh(this.host.headers);this.load(this.host.QT("/"+d+"/_mapping"))};h.prototype.dca=function(){var d=w.model.A.j.dna,b=this.host.QT();b=w.model.Nb.valid(b)?b:w.model.Nb.validate(b);return w.O.bind(d,b)};f.O5=h;k.prototype.Tba=function(d){d=w.BGa(d);this.host=d.hostname;this.protocol=d.protocol;this.port=d.port;this.path=d.pathname};k.prototype.QT=
function(d){d=void 0===d?"":d;this.host&&-1<this.host.indexOf("http")&&this.Tba(this.host);var b="";this.port!==k.Jva[this.protocol]&&(b=":"+this.port);var a=w.ha(this.path)?"":this.path;"/"!==a.charAt(0)&&(a="/"+a);var c=w.ha(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+d};k.tb=function(d){var b=new k;b.headers=d.headers;b.host=d.host;b.path=d.path;b.port=d.port;b.protocol=d.protocol;return b};k.Jva={http:80,
https:443}})(Ga||(Ga={}));
(function(f){(function(k){(function(h){(function(d){function b(){if(null!=b.instance)throw Error("Singleton");}b.U=function(){null==b.instance&&(b.instance=new b);return b.instance};b.dispose=function(){b.instance=null};b.prototype.j0=function(a,c){(new Ga.O5(a)).j0(function(e,g){if(e)return f.Va(e.message,f.model.A.j.ya,f.rb.ya),c(e,g);if(f.v(g))return console.warn("ESConnector: empty response"),c(e,g);e=g.map(function(l){return l.index}).filter(function(l){return 0>l.indexOf(".kibana")&&0>l.indexOf(".security")});
c(null,e)})};d.xka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.wa=k.Na.U();this.qa=this.wa.qa}b.prototype.load=function(a,c,e,g){var l=this;this.connectionInfo=a;this.query=c;this.Ib=e;this.Xa=g;this.connectionInfo.Tv(function(m){l.Hn=m;l.kw()})};b.prototype.r4=function(a,c,e,g){g=void 0===g?!1:g;for(var l in c){var m=this.wa.I.Mg(l),n=Math.ceil(m.Un/b.II);if(1==n)m=x.Mc.DF(c),delete m[l],this.r4(a,m,e);else for(var p=0;p<n;p++)c[l].forEach(function(t){t.include={partition:p,num_partitions:n}}),
e.push(JSON.stringify(a)),m=x.Mc.DF(c),delete m[l],this.r4(a,m,e);if(g)break}return e};b.prototype.Hba=function(a,c){for(var e in a){var g=this.wa.I.Mg(e);f.v(g)||(f.v(a[e].terms)||(f.v(c[e])&&(c[e]=[]),c[e].push(a[e].terms)),a[e].aggs&&this.Hba(a[e].aggs,c))}return c};b.prototype.kw=function(){var a=this;f.za(!0,f.model.A.j.Hf);if(this.query.type==k.i.Kd.to){var c=this.Hba(this.query.body.aggs,{}),e=this.r4(this.query.body,c,[],!0);0==e.length&&e.push(JSON.stringify(this.query.body));var g=new x.YI;
e.forEach(function(l,m){g.add(function(n){return a.E1(l,m,e.length,n)})});g.Wf(function(){null!=a.Ib&&a.Ib();f.za(!1)})}else Array.isArray(this.query.body)?(g=new x.YI,this.query.body.forEach(function(l){g.add(function(m){return a.E1(l,0,0,m)})}),g.Wf(function(){null!=a.Ib&&a.Ib();f.za(!1)})):this.E1(this.query.body,0,0,function(){null!=a.Ib&&a.Ib();f.za(!1)})};b.prototype.E1=function(a,c,e,g){var l=this;0<c&&f.za(!0,f.model.A.j.Hf,(c/e*100).toFixed(0)+"%");this.Hn.search({index:this.connectionInfo.index,
body:a},function(m,n){if(m)return l.Mb(m.message,l.Xa),g();m=l.wa.sa.vb.Ic();var p=l.wa.sa.Cb.Ic();l.query.type!=k.i.Kd.to||l.wa.sa.expandAll||(m=m.slice(0,1),p=p.slice(0,1));var t=l.wa.sa.ad();l.d3(n.aggregations,m.concat(p),t,0,[],[]);0<p.length&&l.tfa(n.aggregations,p.concat(m),t,0,[],[]);g()})};b.prototype.d3=function(a,c,e,g,l,m){var n=this,p=c[g];if(p&&a.hasOwnProperty(p.uniqueName))a[p.uniqueName].buckets.forEach(function(v){var z=null;p.type==k.i.Gc.Oa&&(z=p.Ht(v.key));f.v(z)&&(z=p.Db(v.key_as_string||
""+v.key));var B=l.slice(),C=m.slice();z&&n.wa.sa.rows.Bb(p.uniqueName)?B.push(z.ordinal):z&&C.push(z.ordinal);n.bda(v,e)?(z=e.map(function(E){return n.i3(v,E)}),n.qa.insert(B,C,z)):n.d3(v,c,e,g+1,B,C)});else if(g<c.length){var t=l.slice(),r=m.slice();this.wa.sa.rows.Bb(p.uniqueName)?t.push(null):r.push(null);this.d3(a,c,e,g+1,t,r)}t=e.map(function(v){return n.i3(a,v,!0)});this.qa.hz(l,m,t)};b.prototype.i3=function(a,c,e){if(0==a.doc_count)return c.$==k.i.ca.sc||c.$==k.i.ca.hj?0:NaN;c=((void 0===
e?0:e)?"total_":"")+c.$+"_"+c.uniqueName;return f.v(a[c])?NaN:a[c].value};b.prototype.tfa=function(a,c,e,g,l,m){var n=this,p=c[g];f.v(a[p.uniqueName])||a[p.uniqueName].buckets.forEach(function(t){var r=k.i.Gc.Oa==p.type?p.Db(""+t.key):p.Db(t.key_as_string||""+t.key),v=l.slice(),z=m.slice();n.wa.sa.rows.Bb(p.uniqueName)?v.push(r.ordinal):z.push(r.ordinal);var B;n.bda(t,e,!0)&&(B=e.map(function(C){return n.i3(t,C,!0)}));n.qa.hz(v,z,B);g<c.length-2&&n.tfa(t,c,e,g+1,v,z)})};b.prototype.OS=function(a,
c){return c&&a.hasOwnProperty(c.uniqueName)};b.prototype.bda=function(a,c,e){return(c=c[0])&&a.hasOwnProperty(((void 0===e?0:e)?"total_":"")+c.$+"_"+c.uniqueName)};b.prototype.drillThrough=function(a,c,e,g,l,m,n){var p=this;f.za(!0,f.model.A.j.Hf,f.model.A.j.Hf);a.Tv(function(t){p.Hn=t;p.Hn.search({index:a.index,body:c.body},function(r,v){if(r)return p.Mb(r.message,n);var z=v.hits.hits.map(function(C){return C._source}),B=c.body._source;z.forEach(function(C,E){z[E]=B.map(function(K){return x.Mc.resolve(K,
C)})});z.unshift(B);m(z)})})};b.prototype.cancel=function(){this.Hn&&this.connectionInfo&&!this.connectionInfo.connection&&this.Hn.close();this.Xa=this.Ib=this.connectionInfo=this.wa=this.Hn=null};b.prototype.Mb=function(a,c){console.error(a);f.za(!1);f.Va(a,f.model.A.j.ya,f.rb.ya);f.pg(c)&&c(a)};b.II=5E4;d.yka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return h.Gu.apply(this,arguments)||this}u(b,h.Gu);b.prototype.Fa=function(a,c,e){a=this.rr(a,c);e=this.Eh(e);return f.v(this.values[a])?NaN:f.v(this.values[a][e])?NaN:this.values[a][e]};b.prototype.hz=function(a,c,e){a=this.rr(a,c);f.v(this.values[a])&&(this.values[a]=e)};b.prototype.CA=function(a,c){return null==a||0==a.length?NaN:this.Ac[c][a[0]]};b.prototype.Gca=function(a,c){var e=a.slice(0);a=a.indexOf(null);0<a&&(e.length=a);e[e.length-
1]=0;return this.cd(e,c)};b.prototype.insert=function(a,c,e){for(;a.length<this.uh.length;)a.push(null);for(;c.length<this.Ti.length;)c.push(null);var g=a.concat(c);if(!(-1<g.indexOf(0))){if(0==this.pb.length)for(var l=0;l<g.length;l++)this.pb[l]=[];(l=this.Gca(a,this.vd))&&l[0]&&l[0].push(this.Iw);(l=this.Gca(c,this.Md))&&l[0]&&l[0].push(this.Iw);this.Wg=f.Ha.Hq(this.Wg,this.Iw);for(l=0;l<g.length;l++)this.pb[l]=f.Ha.Hq(this.pb[l],g[l]);if(0==this.Ac.length)for(l=0;l<e.length;l++)this.Ac[l]=[];for(l=
0;l<e.length;l++)this.Ac[l]=f.Ha.Hq(this.Ac[l],e[l]);this.values[this.rr(a,c)]=e}};b.prototype.filter=function(){};d.zka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(a){a=k.I.Aj.call(this,void 0===a?null:a)||this;a.yt={};a.yt.interval="day";a.yt.min_doc_count=1;a.yt.filters=!0;return a}u(b,k.I.Aj);d.XN=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.wa=k.Na.U();this.II=1E5;this.connectionInfo=a}b.prototype.load=function(a,c,e,g){var l=this;this.Ib=c;this.Be=g;this.Xa=e;f.za(!0,f.model.A.j.iE);a.Tv(function(m){l.Hn=m;l.L1()})};b.prototype.L1=function(){var a=this;this.Hn.aza(this.connectionInfo.index,function(c,e){if(c)return a.Mb(c.message,a.Xa);f.pg(a.Be)&&a.Be();for(var g in e){c=e[g].mappings;for(var l in c)"properties"==l?a.eH(c[l]):a.eH(c[l].properties)}a.Aq()})};b.prototype.eH=
function(a,c,e,g,l){c=void 0===c?null:c;e=void 0===e?"":e;g=void 0===g?"":g;l=void 0===l?"":l;for(var m in a)if(this.connectionInfo.mapping.Fa(e+m,"visible",!0)){var n=a[m];if(this.PAa(n)){var p=c?c:this.dt(m,m);this.eH(n.properties,p,e+m+".",g,l+m+"/")}else if(this.rg(n)){p=c?c:this.dt(m,m);p=this.Uh(p,e+m,m,n,l);var t=this.Hj(e+m,m,n);this.wa.I.UJ(t.uniqueName,p.uniqueName)}else if(this.qg(n)){p=c?c:this.dt(m,m);t=m;var r=!f.ha(g);r&&(t="keyword"==m?g:g+" ("+m+")");p=this.Uh(p,e+m,t,n,l);r&&(p.Nda=
!0,p.qfa=e.substr(0,e.length-1));t=this.Hj(e+m,t,n);this.wa.I.UJ(t.uniqueName,p.uniqueName)}f.v(n.fields)||(p=c?c:this.dt(m,m),this.eH(n.fields,p,e+m+".",m,l+m+"/"))}};b.prototype.dt=function(a,c){var e=this.wa.I.Vo(a);f.v(e)&&(c=this.connectionInfo.mapping.Fa(a,"caption",c),e=new d.I.Aka(a,c),this.wa.I.dt(e));return e};b.prototype.Uh=function(a,c,e,g,l){l=void 0===l?null:l;var m=a.Mg(c);f.v(m)&&(e=this.connectionInfo.mapping.Fa(c,"caption",e),m=new d.I.Bka(c,e),m.type=k.i.Gc.N_(g.type),m.inputType=
g.type,a.Uh(m),f.ha(l)?m.Qc=a.caption:("/"==l.charAt(l.length-1)&&(l=l.substr(0,l.length-1)),m.Qc=l),a=new d.I.f6(c,c,1),m.type==k.i.Gc.Oa?a.type=k.i.eb.Dc:m.type==k.i.Gc.Op&&(a.type=k.i.eb.fb),m.ph(a));return m};b.prototype.Hj=function(a,c,e){var g=this.wa.I.$c(a);f.v(g)&&(c=this.connectionInfo.mapping.Fa(a,"caption",c),g=new d.I.g6(a,c),g.type=k.i.Ja.N_(e.type),g.Tc=this.connectionInfo.mapping.Fa(a,"aggregations"),this.wa.I.Hj(g));return g};b.prototype.rg=function(a){return 0<=k.i.Ja.NK.indexOf(a.type)};
b.prototype.PAa=function(a){return!f.v(a.properties)};b.prototype.qg=function(a){return 0<=k.i.Gc.NK.indexOf(a.type)};b.prototype.Aq=function(){f.za(!1);null!=this.Ib&&this.Ib()};b.prototype.yk=function(a,c,e){var g=this;f.za(!0,f.model.A.j.gn,a.caption);a.type==k.i.Gc.Oa?this.YBa(a,function(l){if(l)return g.Mb(l,e);a.ce=!0;f.za(!1);c(a)}):this.Oua(a,function(l,m){if(l)return g.Mb(l,e);0==m?(a.ce=!0,c(a)):g.xea(a,0,Math.ceil(m/g.II),m,function(n){if(n)return g.Mb(n,e);a.ce=!0;f.za(!1);c(a)})})};b.prototype.Oua=
function(a,c){a={size:0,aggs:{count:{cardinality:{field:a.uniqueName}}}};f.v(this.connectionInfo.subquery)||(a.query=x.Mc.Vi(this.connectionInfo.subquery));this.Hn.search({index:this.connectionInfo.index,body:a},function(e,g){if(e)return c(e.message);c(null,g.aggregations.count.value)})};b.prototype.xea=function(a,c,e,g,l){var m=this,n={};n={size:0,aggs:(n[a.uniqueName]={terms:{field:a.uniqueName,include:{partition:c,num_partitions:e},size:2*this.II}},n)};f.v(this.connectionInfo.subquery)||(n.query=
x.Mc.Vi(this.connectionInfo.subquery));this.Hn.search({index:this.connectionInfo.index,body:n},function(p,t){if(p)return l(p.message);p=t.aggregations[a.uniqueName].buckets;for(t=0;t<p.length;t++)m.fc(a,p[t].key_as_string||p[t].key,p[t].key);c<e-1?(f.za(!0,f.model.A.j.gn,f.O.bind("{0}: {1} of {2} loaded",a.caption,(c+1)*m.II,g)),m.xea(a,c+1,e,g,l)):l()})};b.prototype.YBa=function(a,c){var e=this,g={};g={size:0,aggs:(g[a.uniqueName]={date_histogram:{field:a.uniqueName,min_doc_count:this.connectionInfo.mapping.Fa(a.uniqueName,
"min_doc_count"),interval:this.connectionInfo.mapping.Fa(a.uniqueName,"interval"),time_zone:this.connectionInfo.mapping.Fa(a.uniqueName,"time_zone"),format:this.connectionInfo.mapping.Fa(a.uniqueName,"format",f.model.B.C.mq)}},g)};f.v(this.connectionInfo.subquery)||(g.query=x.Mc.Vi(this.connectionInfo.subquery));this.Hn.search({index:this.connectionInfo.index,body:g},function(l,m){if(l)return c(l.message);l=m.aggregations[a.uniqueName].buckets;for(m=0;m<l.length;m++)e.fc(a,l[m].key_as_string,l[m].key);
c()})};b.prototype.fc=function(a,c,e){"string"!=typeof c&&(c=""+c);var g="number"===typeof e?e:null,l=a.type!==k.i.Gc.Oa?a.Db(c):a.Ht(g);null==l?(c=a.type==k.i.Gc.Oa?new k.I.Rd({uniqueName:String(g),caption:c,ec:g}):new k.I.Rd({uniqueName:c,ec:g}),l=a.fc(c)):l.ec!=e&&a.type==k.i.Gc.Oa&&(l=a.fc(new k.I.Rd({uniqueName:c+"-"+e,caption:c,ec:g})));return l};b.prototype.Uj=function(a,c,e,g){this.yk(a,e,g)};b.prototype.Iy=function(){throw"Not Implemented";};b.prototype.vp=function(){throw"Not Implemented";
};b.prototype.kB=function(){return!1};b.prototype.cancel=function(){this.Hn&&this.connectionInfo&&!this.connectionInfo.connection&&this.Hn.close();this.Be=this.Xa=this.Ib=this.connectionInfo=this.wa=this.Hn=null};b.prototype.Mb=function(a,c){console.error(a);f.za(!1);f.Va(a,f.model.A.j.ya,f.rb.ya);f.pg(c)&&c(a)};d.Fka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=k.I.ConnectionInfo.call(this)||this;a.url=null;a.index=null;a.singleEndpoint=!1;a.mapping=new d.DN;a.Iga="2.8.5";a.Ba=k.i.oa.API;return a}u(b,k.I.ConnectionInfo);b.prototype.isEqual=function(a){return k.I.ConnectionInfo.prototype.isEqual.call(this,a)&&this.url==a.url&&this.index==a.index&&this.singleEndpoint==a.singleEndpoint&&this.mapping.isEqual(a.mapping)};b.tb=function(a){var c=new b;f.v(a.url)||""==a.url||(c.url=a.url);f.v(a.index)||
(c.index=a.index.toString());f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.mapping)||(c.mapping=a.mapping instanceof d.DN?a.mapping:new d.DN(a.mapping));f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);f.v(a.singleEndpoint)||(c.singleEndpoint=a.singleEndpoint);return c};b.prototype.La=function(a){a=void 0===a?!1:a;var c={};c.type=this.Ba;f.v(this.url)||(c.url=this.url);f.v(this.index)||(c.index=this.index);if(a||this.singleEndpoint)c.singleEndpoint=this.singleEndpoint;
if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c};b.prototype.Tv=function(){return new d.zz({url:this.url,singleEndpoint:this.singleEndpoint,requestHeaders:this.requestHeaders,withCredentials:this.withCredentials})};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;f.v(this.url)||(a.url=this.url);f.v(this.index)||(a.index=this.index);f.v(this.singleEndpoint)||(a.singleEndpoint=this.singleEndpoint);if(!this.mapping.ob||
this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);this.withCredentials&&(a.withCredentials=this.withCredentials);return a};q.Object.defineProperties(b.prototype,{KG:{configurable:!0,enumerable:!0,get:function(){return!0}}});d.APIConnectionInfo=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.Oq.call(this,c,void 0===e?"":e)||this}u(a,k.I.Oq);b.qKa=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){c=k.local.I.Yz.call(this,c,void 0===e?"":e)||this;c.ew=!1;return c}u(a,k.local.I.Yz);a.prototype.bC=function(){return new b.Dia(this)};a.prototype.nV=function(c,e){return this.ew?0<c.oZ.length?this.$Ia(c.oZ.slice()):this.aJa(c.children):k.local.I.Yz.prototype.nV.call(this,c,e)};a.prototype.$Ia=function(c){return this.oh===k.i.xa.bc?c:this.oh===k.i.xa.Ec?c.reverse():c};a.prototype.aJa=function(c){this.oh===k.i.xa.bc&&
f.Ha.sort(c,f.Ha.mi);this.oh===k.i.xa.Ec&&f.Ha.sort(c,f.Ha.ko|f.Ha.mi);return c};a.prototype.clone=function(){var c=k.local.I.Yz.prototype.clone.call(this);c.ew=this.ew;return c};q.Object.defineProperties(a.prototype,{D0:{configurable:!0,enumerable:!0,get:function(){return f.pg(this.Ly)||this.ew}},ce:{configurable:!0,enumerable:!0,get:function(){return this.JA},set:function(c){this.JA=c}}});b.CN=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e,g){return k.I.$m.call(this,c,void 0===e?"":e,void 0===g?0:g)||this}u(a,k.I.$m);b.Cia=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){c=k.I.ek.call(this,c,void 0===e?"":e)||this;c.aF=[];c.hv=void 0;return c}u(a,k.I.ek);a.prototype.dAa=function(c){if(void 0===this.hv){this.hv=!1;for(var e=0;e<c.length;e++)if(k.i.ca.YS(c[e])){this.hv=!0;break}}return this.hv};a.prototype.F0=function(){var c=new a("","");return this.qe!=c.qe||this.format!=c.format||0==this.Nm?!1:!0};a.prototype.clone=function(){var c=new a(this.uniqueName);this.xK(c);void 0!=this.aF&&
(c.aF=this.aF.slice());void 0!=this.hv&&(c.hv=this.hv);return c};q.Object.defineProperties(a.prototype,{ac:{configurable:!0,enumerable:!0,get:function(){return f.model.Nb.valid(this.qc)?this.qc:f.model.Nb.validate(this.qc)}},caption:{configurable:!0,enumerable:!0,get:function(){if(0==f.model.B.C.iz)return this.ac;switch(this.$){case k.i.ca.Up:return f.O.bind(f.model.A.j.WI,this.ac);case k.i.ca.sc:return f.O.bind(f.model.A.j.LN,this.ac);case k.i.ca.Bs:return f.O.bind(f.model.A.j.QO,this.ac);case k.i.ca.hj:return f.O.bind(f.model.A.j.SN,
this.ac);case k.i.ca.Hp:return f.O.bind(f.model.A.j.FN,this.ac);case k.i.ca.Mu:return f.O.bind(f.model.A.j.HW,this.ac);case k.i.ca.Su:return f.O.bind(f.model.A.j.ZO,this.ac);case k.i.ca.Tu:return f.O.bind(f.model.A.j.$O,this.ac);case k.i.ca.MAX:return f.O.bind(f.model.A.j.zO,this.ac);case k.i.ca.MIN:return f.O.bind(f.model.A.j.IO,this.ac);case k.i.ca.Wq:return f.O.bind(f.model.A.j.QI,this.ac);case k.i.ca.ro:return f.O.bind(f.model.A.j.JI,this.ac);case k.i.ca.Tp:return f.O.bind(f.model.A.j.OI,this.ac);
case k.i.ca.Rp:return f.O.bind(f.model.A.j.MI,this.ac);case k.i.ca.Sp:return f.O.bind(f.model.A.j.NI,this.ac);case k.i.ca.li:return f.O.bind(f.model.A.j.wI,this.ac);case k.i.ca.nm:return f.O.bind(f.model.A.j.RO,this.ac);case k.i.ca.ln:return f.O.bind(f.model.A.j.TO,this.ac);case k.i.ca.dn:return f.O.bind(f.model.A.j.bI,this.ac);case k.i.ca.im:return f.O.bind(f.model.A.j.cI,this.ac);case k.i.ca.jn:return f.O.bind(f.model.A.j.KI,this.ac);case k.i.ca.km:return f.O.bind(f.model.A.j.LI,this.ac);case k.i.ca.NONE:return this.ac}return-1<
k.i.ca.NN.indexOf(this.$)?this.ac+" ("+this.$+")":f.O.bind(f.model.A.j.WI,this.ac)},set:function(c){this.qc=c}},Ir:{configurable:!0,enumerable:!0,set:function(c){this.fv=c},get:function(){return-1<k.i.ca.NN.indexOf(this.Cj)?this.ac+" ("+this.Cj+")":k.I.ek.prototype.Ir}},Yl:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(){}},bm:{configurable:!0,enumerable:!0,get:function(){return this.aF},set:function(c){this.aF=[];if(!f.v(c))for(var e=0;e<c.length;e++)if("string"==typeof c[e]){var g=
c[e].trim().toLowerCase();k.i.ca.Vx(g)&&(g=k.i.ca.ky(g));k.i.ca.rz(g)&&this.aF.push(g)}}},Tc:{configurable:!0,enumerable:!0,set:function(c){if(f.v(c))this.qm=this.bm,this.type==k.i.Ja.fb&&0<this.qm.length&&(this.qm=this.qm.concat(k.i.ca.yz));else{for(var e=[],g=0;g<c.length;g++){var l=c[g].trim().toLowerCase();k.i.ca.Vx(l)&&(l=k.i.ca.ky(l));(-1!==this.bm.indexOf(l)||this.type==k.i.Ja.fb&&-1!==k.i.ca.yz.indexOf(l))&&e.push(l)}this.qm=0<e.length?e:this.bm}this.hv=void 0;this.dAa(this.qm)||(this.qm=
[])},get:function(){return!1===this.hv||0<this.qm.length?this.qm:this.bm}}});b.b5=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.I.Pq.apply(this,arguments)||this;c.oZ=[];return c}u(a,k.I.Pq);q.Object.defineProperties(a.prototype,{Bi:{configurable:!0,enumerable:!0,get:function(){return this.level.cw?!0:!(this.Pg||this.yf)&&0===this.children.length}}});b.Dia=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.local.I.fE.call(this)||this;c.cG=new b.ho;return c}u(a,k.local.I.fE);a.prototype.Mn=function(c,e){return new b.CN(c,e)};a.prototype.Cca=function(c,e){return new b.b5(c,e)};a.prototype.el=function(c,e,g){return new b.Cia(c,e,g)};a.prototype.nw=function(c,e,g){e=void 0===e?null:e;g=void 0===g?!1:g;var l=e?e:new b.b5(c.uniqueName);return k.local.I.fE.prototype.nw.call(this,c,l,f.v(e)||g)};b.OH=a})(d.I||(d.I={}))})(h.kc||
(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.I.OD.apply(this,arguments)||this;c.D8=!1;return c}u(a,k.I.OD);a.prototype.m$=function(c,e){f.v(this.zA)&&(this.zA=new f.nb);this.zA.Pa(c,e)};a.prototype.Nca=function(c,e){var g=void 0;if(!f.v(this.zA)){var l=k.i.Gc.wD(c.type);this.zA.Bb(l)?g=this.nR(this.zA.getItem(l),e):this.zA.Bb(k.i.input.pa.NH)&&(g=this.nR(this.zA.getItem(k.i.input.pa.NH),e))}return!f.v(this.ox)&&this.ox.Bb(c.uniqueName)?(c=this.nR(this.ox.getItem(c.uniqueName),
e),void 0!==g&&c.merge(g),c):g?g:this.VY?this.mG(e):null};q.Object.defineProperties(a.prototype,{VY:{configurable:!0,enumerable:!0,get:function(){return this.D8},set:function(c){this.D8=c}}});a.FG=!1;b.ho=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.rows={};this.columns={};this.values={};this.filters={};this.slice=a}d.APIFieldObject=function(){this.interval=this.uniqueName=void 0};d.APIValueObject=function(){this.func=void 0;this.field=null};b.prototype.select=function(){var a=this.vB(k.i.ia.Ia),c=this.vB(k.i.ia.Sa),e=this.hR(),g=this.Lo(),l={aggs:{}};!g||Array.isArray(g)&&0===g.length||(l.filter=g);if(0<a.length||0<c.length)l.aggs={by:{}},0<a.length&&(l.aggs.by.rows=a),0<
c.length&&(l.aggs.by.cols=c);l.aggs.values=e;return l};b.prototype.bIa=function(){var a=this.vB(k.i.ia.Ia),c=this.hR(),e=this.Lo(),g={aggs:{}};!e||Array.isArray(e)&&0===e.length||(g.filter=e);g.fields=a;g.aggs.values=c;return g};b.prototype.tf=function(a){var c=this.vB(k.i.ia.Ia),e=this.vB(k.i.ia.Sa),g=this.hR(),l=this.Lo();a={type:k.i.Kd.Fu,axisName:a,aggs:{}};!l||Array.isArray(l)&&0===l.length||(a.filter=l);if(0<c.length||0<e.length)a.aggs={by:{}},0<c.length&&(a.aggs.by.rows=c),0<e.length&&(a.aggs.by.cols=
e);0<g.length&&(a.aggs.values=g);return a};b.prototype.expand=function(a){var c=this.vB(k.i.ia.Ia),e=this.vB(k.i.ia.Sa),g=this.hR(),l=this.Lo();a={type:k.i.Kd.Oz,axisName:a,aggs:{}};!l||Array.isArray(l)&&0===l.length||(a.filter=l);if(0<c.length||0<e.length)a.aggs={by:{}},0<c.length&&(a.aggs.by.rows=c),0<e.length&&(a.aggs.by.cols=e);0<g.length&&(a.aggs.values=g);return a};b.prototype.drillThrough=function(a,c,e){return void 0===e||e?this.uwa(a):this.o_(a,c)};b.prototype.uwa=function(a){a=this.Yta(a);
var c=this.Lo(),e={};e.limit=f.model.B.C.KK;!c||Array.isArray(c)&&0===c.length||(e.filter=c);e.fields=a;return e};b.prototype.o_=function(a,c){for(var e=[],g=this.slice.rc(!1,!0,!0,!0).Ic(),l=[],m={xu:0};m.xu<a.length;m={xu:m.xu},m.xu++){var n={uniqueName:a[m.xu]},p=g.find(function(r){return function(v){return v.uniqueName===a[r.xu]}}(m));if(p){var t=p.ra.ea(1);this.SJ(t,p.interval,n)}e.push(n);void 0!==c[a[m.xu]]&&(n={},n.field={uniqueName:a[m.xu]},p=c[a[m.xu]],k.i.eb.oT(t.type)&&!isNaN(p)&&null!==
p?p=+p:t.type===k.i.eb.Sc&&(p=""+p),n.include=[{member:p}],l.push(n))}f.v(this.filters)||l.push.apply(l,ka(this.Zta()));c={};c.limit=f.model.B.C.KK;0<l.length&&(c.filter=l);c.fields=e;return c};b.prototype.Yta=function(a){for(var c=[],e=this.slice.Wc.rc(!1).Ic(),g=0;g<a.length;g++){var l={uniqueName:a[g]},m=e.find(function(n){return n.uniqueName===a[g]});m&&this.SJ(m.ra.ea(1),m.interval,l);c.push(l)}return c};b.prototype.vB=function(a){var c=[],e=this.slice.rc(!1,!0,!0,!0).Ic();a=a===k.i.ia.Ia?this.rows:
this.columns;for(var g=0;g<e.length;g++){var l=e[g].uniqueName;if(void 0!==a[l])if(0===a[l].length)l={uniqueName:l},this.SJ(e[g].ra.ea(1),e[g].interval,l),c.push(l);else for(var m=0;m<e[g].ra.length;m++){var n=e[g].ra.ea(m).uniqueName;-1!==a[l].indexOf(n)&&c.push({uniqueName:n})}}return c};b.prototype.SJ=function(a,c,e){if(a.type===k.i.eb.Oa||a.type===k.i.eb.Dc)e.interval=c};b.prototype.hR=function(){var a=[],c;for(c in this.values)for(var e=0;e<this.values[c].length;e++)a.push({func:this.values[c][e],
field:{uniqueName:c}});return a};b.prototype.rK=function(a){var c=a.uniqueName,e=a.qg?a.ra.ea(1).uniqueName:c,g={};g.field={uniqueName:e};if(void 0!==this.filters[c].query)if(d.I.ho.FG)Array.isArray(this.filters[c].query)?g={type:"or",value:this.filters[c].query}:g.query=this.filters[c].query;else if(a.qg){var l=Object.keys(this.filters[c].query)[0];k.i.kb.pda(a.ra.ea(1).type,l)&&(g.query=this.filters[c].query)}else g.query=this.filters[c].query;void 0!==this.filters[c].value&&(g.value=this.filters[c].value);
if(void 0!==this.filters[c].include)for(g.include=[],l=0;l<this.filters[c].include.length;l++)g.include.push(this.filters[c].include[l]);if(void 0!==this.filters[c].exclude)for(g.exclude=[],l=0;l<this.filters[c].exclude.length;l++)g.exclude.push(this.filters[c].exclude[l]);if(void 0!==this.filters[c].intersect)if(d.I.ho.FG)void 0!==g.include?g={type:"and",value:[{field:{uniqueName:e},include:this.filters[c].intersect},{field:{uniqueName:e},include:this.filters[c].include}]}:void 0!==g.query||void 0!==
g.exclude||void 0===g.field?g={type:"and",value:[{field:{uniqueName:e},include:this.filters[c].intersect},g]}:g.include=this.filters[c].intersect;else{e={};e.field={uniqueName:a.qg?a.ra.ea(1).uniqueName:c};e.include=[this.filters[c].intersect[0]];if(void 0!==g.include||void 0!==g.exclude||void 0!==g.query)e.include[0].filter=g;g=e}return g};b.prototype.Zta=function(){for(var a=[],c=this.slice.rc(!1,!0,!0).Ic(),e=0;e<c.length;e++)if(void 0!==this.filters[c[e].uniqueName]){var g={};if(this.filters[c[e].uniqueName].intersect)g.include=
this.filters[c[e].uniqueName].intersect;else if(this.filters[c[e].uniqueName]){var l=Object.keys(this.filters[c[e].uniqueName]),m=l[0];g[m]=this.filters[c[e].uniqueName][m];l[1]&&(m=l[1],g[m]=this.filters[c[e].uniqueName][m])}else continue;g.field={uniqueName:c[e].qg?c[e].ra.ea(1).uniqueName:c[e].uniqueName};a.push(g)}return a};b.prototype.Lo=function(){for(var a=[],c=this.slice.rc(!1,!0,!0).Ic(),e=0;e<c.length;e++){var g=c[e];this.HY(g);void 0!==this.filters[g.uniqueName]&&a.push(this.rK(g))}if(!d.I.ho.FG)return a;
if(0<a.length)return{type:"and",value:a}};b.prototype.nk=function(a,c){this.vx(this.rows,a,c)};b.prototype.Il=function(a,c){this.vx(this.columns,a,c)};b.prototype.vx=function(a,c,e){var g=c.uniqueName;void 0===a[g]&&(a[g]=[]);if(void 0===e&&c.qg){if(null!=c.nc||this.slice.drillAll){for(e=1;e<c.ra.length;e++){var l=c.ra.ea(e);-1===a[g].indexOf(l.uniqueName)&&a[g].push(l.uniqueName);if(l==c.nc&&!this.slice.drillAll)break}return}e=c.ra.ea(1)}void 0!==e&&(c=e.uniqueName,-1===a[g].indexOf(c)&&a[g].push(c))};
b.prototype.j$=function(a){var c=this;a.forEach(function(e){c.nk(e)})};b.prototype.W9=function(a){var c=this;a.forEach(function(e){c.Il(e)})};b.prototype.VJ=function(a){if(""!==a.Ll){var c=a.uniqueName,e=a.Ll;void 0===this.values[c]&&(this.values[c]=[]);a.Ka||-1!==this.values[c].indexOf(e)||this.values[c].push(e)}};b.prototype.ura=function(a,c){void 0===this.filters[a.uniqueName]&&(this.filters[a.uniqueName]={});a.filter.uy&&(c=c.kR(a.getTimezoneOffset()));c=this.Yfa(c);if(a.qg&&d.I.ho.FG){for(var e=
[],g=1;g<a.ra.length;g++){var l=Object.keys(c)[0],m=a.ra.ea(g);k.i.kb.pda(m.type,l)&&e.push({field:{uniqueName:m.uniqueName},query:c})}this.filters[a.uniqueName].query=e}else this.filters[a.uniqueName].query=c};b.prototype.vra=function(a,c,e){a=a.uniqueName;void 0===this.filters[a]&&(this.filters[a]={});this.filters[a].query=this.Yfa(c);this.filters[a].value={field:{uniqueName:e.uniqueName},func:e.$}};b.prototype.Yfa=function(a){var c=a.value;c instanceof f.Gg&&(c=c.getTime());Array.isArray(c)&&c[0]instanceof
f.Gg&&(c=[c[0].getTime(),c[1].getTime()]);var e={};return e[a.ta]=c,e};b.prototype.nr=function(a,c,e,g){var l=a.uniqueName;d.I.ho.GL||"intersect"!==e||(e="include");void 0===this.filters[l]&&(this.filters[l]={});void 0===this.filters[l][e]&&(this.filters[l][e]=[]);for(var m,n,p;!c.Wb&&void 0!==c.parent;){var t=c.level.uniqueName;n=c.uniqueName;f.model.B.C.zr&&("null"===n&&(n=null),"undefined"===n&&(n=void 0),"(blank)"===n&&(n=""));f.ha(n)||(n=k.i.eb.oT(c.level.type)&&!isNaN(c.ec)?c.ec:1<c.level.sb?
c.uniqueName.substr(1,c.uniqueName.length-2).split("].[").pop():c.uniqueName);p={};c.parent.Wb?(p.member=n,void 0!==m&&(p.filter=m)):(g?this.nk(a,c.level):this.Il(a,c.level),p.field={uniqueName:t},p.include=[{member:n}],void 0!==m&&(p.include[0].filter=m));m=p;c=c.parent}this.filters[l][e].push(m)};b.prototype.HY=function(a,c,e){c=void 0===c?!1:c;var g=a.filter.clone();if(g.$h&&!c){var l=g.pj().length<a.vi/2;c=l?g.pj():g.pj(!0);for(var m=0;m<c.length;m++){var n=a.va(c[m]);this.nr(a,n,l?"include":
"exclude",e)}}!f.v(g.query)&&g.wy&&(!f.v(g.measure)&&g.ai?(e=this.slice.Wc.$c(g.measure.uniqueName))&&!0!==e.Ka&&(k.i.ca.YS(g.measure.$)||(g.measure.$=e.Ll),this.vra(a,g.query,g.measure)):this.ura(a,g.query))};b.prototype.clone=function(){var a=new b(this.slice);a.rows=x.Mc.Vi(this.rows);a.columns=x.Mc.Vi(this.columns);a.values=x.Mc.Vi(this.values);a.filters=x.Mc.Vi(this.filters);return a};b.AW=["type","axisName"];d.yu=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.slice=a}b.prototype.select=function(){return f.model.B.C.oc&&f.model.B.C.he!==f.K.xd.Ki?this.bua():this.nua()};b.prototype.bua=function(){for(var a=new d.yu(this.slice),c=this.slice.rc(!1,!0,!0,!0),e=0;e<c.length;e++){var g=this.slice.Ee(c.ea(e).uniqueName);this.Jda(g)&&a.VJ(g);g=c.ea(e);if(g.qg)for(var l=1;l<g.ra.length;l++)a.nk(g,g.ra.ea(l));else a.nk(g)}for(e=0;e<this.slice.Of.length;e++)c=this.slice.Of[e],this.Jda(c)&&a.VJ(c);
return a.bIa()};b.prototype.Jda=function(a){return a.type!==k.i.Ja.sc&&a.type!==k.i.Ja.Oa};b.prototype.nua=function(){var a=new d.yu(this.slice),c=this.slice.vb.Ic(),e=this.slice.Cb.Ic();this.slice.expandAll?(0<c.length&&a.j$(c),0<e.length&&a.W9(e)):(0<c.length&&a.nk(c[0]),0<e.length&&a.Il(e[0]));for(c=0;c<this.slice.Of.length;c++)e=this.slice.Of[c],e.Ka||a.VJ(e);return a.select()};b.prototype.Y9=function(a,c){c(a);if(2<a.ra.length){var e=1,g=a.ra.ea(e);for(g=a.JB(g);g&&0<g.length;)g=a.ra.ea(++e),
c(a,g),g=a.JB(g)}};b.prototype.expand=function(a,c){var e=new d.yu(this.slice),g=a==k.i.ia.Ia,l=this.slice.vb.Ic(),m=this.slice.Cb.Ic();if(g){0<m.length&&this.Y9(m[0],function(p,t){return e.Il(p,t)});for(m=0;m<c.length;m++)for(var n=l[m].va(c[m]);!n.Wb;)e.nk(n.hierarchy,n.level),e.nr(l[m],n,"intersect",!0),n=n.parent;n=l[c.length];if(null==n.nc)e.nk(n,n.ra.ea(1));else for(c=1;c<n.ra.length&&(l=n.ra.ea(c),e.nk(n,l),l!=n.nc);c++);}else{0<l.length&&this.Y9(l[0],function(p,t){return e.nk(p,t)});for(l=
0;l<c.length;l++)for(n=m[l].va(c[l]);!n.Wb;)e.Il(n.hierarchy,n.level),e.nr(m[l],n,"intersect",!1),n=n.parent;n=m[c.length];if(null==n.nc)e.Il(n,n.ra.ea(1));else for(c=1;c<n.ra.length&&(l=n.ra.ea(c),e.Il(n,l),l!=n.nc);c++);}for(c=0;c<this.slice.Of.length;c++)n=this.slice.Of[c],n.Ka||e.VJ(n);g=this.S9(e,g?k.i.ia.Sa:k.i.ia.Ia);g.unshift(e.expand(a));return g};b.prototype.tf=function(a,c,e){var g=new d.yu(this.slice),l=a==k.i.ia.Ia,m=this.slice.vb.Ic(),n=this.slice.Cb.Ic();if(l)for(g.j$(m.slice(0,c.length)),
0<n.length&&g.Il(n[0]),n=0;n<c.length-1;n++)g.nr(m[n],m[n].va(c[n]),"intersect",!0);else for(g.W9(n.slice(0,c.length)),0<m.length&&g.nk(m[0]),m=0;m<c.length-1;m++)g.nr(n[m],n[m].va(c[m]),"intersect",!1);c=e;m=c.hierarchy.ra.ea(c.level.sb+1);if(l)for(g.nk(c.hierarchy,m);!c.Wb;)g.nk(c.hierarchy,c.level),c=c.parent;else for(g.Il(c.hierarchy,m);!c.Wb;)g.Il(c.hierarchy,c.level),c=c.parent;g.nr(e.hierarchy,e,"intersect",l);for(e=0;e<this.slice.Of.length;e++)c=this.slice.Of[e],c.Ka||g.VJ(c);e=this.S9(g,
l?k.i.ia.Sa:k.i.ia.Ia);l=this.dra(g,l?k.i.ia.Sa:k.i.ia.Ia);e.concat(l);e.unshift(g.tf(a));return e};b.prototype.S9=function(a,c){for(var e=[],g=c===k.i.ia.Ia,l=this.slice.vb.Ic(),m=this.slice.Cb.Ic(),n=g?this.slice.ic.zd:this.slice.Sb.zd,p=0;p<n.length;p++){var t=n[p],r=a.clone();if(g){for(var v=0;v<t.length-1;v++)r.nk(l[v]),r.nr(l[v],l[v].va(t[v+1]),"intersect",!0);r.nk(l[t.length-1])}else{for(v=0;v<t.length-1;v++)r.Il(m[v]),r.nr(m[v],m[v].va(t[v+1]),"intersect",!1);r.Il(m[t.length-1])}e.push(r.expand(c))}return e};
b.prototype.dra=function(a,c){for(var e=[],g=c===k.i.ia.Ia,l=this.slice.vb.Ic(),m=this.slice.Cb.Ic(),n=g?this.slice.ic.uf:this.slice.Sb.uf,p=0;p<n.length;p++){var t=n[p].slice(),r=a.clone(),v=t.pop();t.shift();if(g){for(var z=0;z<t.length;z++)r.nk(l[z]),r.nr(l[z],l[z].va(t[z+1]),"intersect",!0);t=l[t.length-1];r.nk(t)}else{for(z=0;z<t.length;z++)r.Il(m[z]),r.nr(m[z],m[z].va(t[z+1]),"intersect",!1);t=m[t.length-1];r.Il(t)}v=z=t.va(v);z=t.ra.ea(z.level.sb+1);if(g)for(a.nk(t,z);!v.Wb;)a.nk(t,v.level),
v=v.parent;else for(a.Il(t,z);!v.Wb;)a.Il(t,v.level),v=v.parent;e.push(r.tf(c))}return e};b.prototype.drillThrough=function(a,c,e,g){g=void 0===g?null:g;return this.yAa?this.twa(a,c,g):this.o_(a,c,g)};b.prototype.twa=function(a,c,e){e=void 0===e?null:e;var g=new d.yu(this.slice),l=this.slice.pages.Ic(),m=this.slice.vb.Ic(),n=this.slice.Cb.Ic(),p=this.slice.Of;this.n_(l,[],g,e,!1);this.n_(m,a,g,e,!0);this.n_(n,c,g,e,!1);for(a=0;a<p.length;a++)-1===e.indexOf(p[a].uniqueName)&&e.push(p[a].uniqueName);
return g.drillThrough(e,!0)};b.prototype.n_=function(a,c,e,g,l){for(var m,n=0;n<a.length;n++)if(e.HY(a[n],!f.v(c[n]),l),c[n]&&(m=a[n].va(c[n]))&&e.nr(a[n],m,"intersect",l),a[n].qg){m=g.indexOf(a[n].uniqueName);-1!==m&&g.splice(m,1);for(var p=1;p<a[n].ra.length;p++){var t=a[n].ra.ea(p);-1===g.indexOf(t.uniqueName)&&(-1===m?g.push(t.uniqueName):g.splice(m++,0,t.uniqueName))}}else-1===g.indexOf(a[n].uniqueName)&&g.push(a[n].uniqueName)};b.prototype.o_=function(a,c,e){e=void 0===e?null:e;var g=new d.yu(this.slice),
l=this.slice.pages.Ic(),m=this.slice.vb.Ic(),n=this.slice.Cb.Ic(),p=this.slice.Of,t={};this.p_(l,[],t,g,e);this.p_(m,a,t,g,e);this.p_(n,c,t,g,e);for(a=0;a<p.length;a++)-1===e.indexOf(p[a].uniqueName)&&e.push(p[a].uniqueName);return g.drillThrough(e,t,!1)};b.prototype.p_=function(a,c,e,g,l){for(var m,n,p=0;p<a.length;p++)n=a[p].uniqueName,g.HY(a[p],!f.v(c[p])),c[p]&&(m=a[p].va(c[p]))&&(e[n]=k.i.eb.oT(m.level.type)?m.ec:m.uniqueName),-1===l.indexOf(n)&&l.push(n)};q.Object.defineProperties(b.prototype,
{yAa:{configurable:!0,enumerable:!0,get:function(){return h.kc.I.ho.GL}}});d.Eia=b;d.em=function(a){var c=this;this.page=0;this.tw=null;this.cK=function(e){null!=c.tw?e.pageToken=c.tw:e.page=c.page};f.v(a.tw)||(this.tw=a.tw);f.v(a.page)||(this.page=a.page)}})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return D.Qi.apply(this,arguments)||this}function a(c){this.QG=[];this.withCredentials=this.closed=!1;"string"===typeof c.url?this.url=c.url:f.pg(c.url)&&(this.gia=function(e,g,l){return c.url(e,g,l)});this.singleEndpoint=c.singleEndpoint;this.requestHeaders=c.requestHeaders;this.withCredentials=c.withCredentials}a.prototype.vh=function(c){this.requestHeaders=c;c=ja(this.QG);for(var e=c.next();!e.done;e=c.next())e.value.vh(this.requestHeaders)};
a.prototype.uw=function(c,e,g,l){var m=this;l=void 0===l?null:l;if(f.v(this.url))f.v(this.gia)?f.pe(function(){g(f.model.A.j.ana,null)},1):f.pe(function(){e=m.yaa(e);m.gia(JSON.stringify(e),function(p){if(!m.closed)if("object"==typeof p)g(null,p);else if("string"==typeof p)try{var t=JSON.parse(p);g(null,t)}catch(r){g(r,null)}},function(p){if(!m.closed)if("object"==typeof p)g(p.message||p,null);else if("string"==typeof p)try{var t=JSON.parse(p);g(t.message||t,null)}catch(r){g(r,null)}})},1);else{var n=
this.hva();n.Ne=g;n.nN=l;e=this.yaa(e,n);n.data=JSON.stringify(e);n.load(this.singleEndpoint?this.url:this.url+"/"+c)}};a.prototype.hva=function(){var c=D.Fs.Pu,e=this,g=new b;g.contentType=D.Iz.c5;g.Dq=c;g.withCredentials=this.withCredentials;g.vh(this.requestHeaders);g.N(y.da.Jc,function(){return e.yq(g)});g.N(y.da.ya,function(l){return e.Mb(l,g)});this.QG.push(g);return g};a.prototype.yaa=function(c,e){if(!f.v(a.BK)){var g=JSON.parse(JSON.stringify(c));g.requestHeaders=f.v(this.requestHeaders)?
{}:this.requestHeaders;g=a.BK(g);f.v(g)||(f.v(g.requestHeaders)||(f.v(e)||e.vh(g.requestHeaders),delete g.requestHeaders),c=g)}return c};a.prototype.vZ=function(c){c.close();this.QG.splice(this.QG.indexOf(c),1)};a.prototype.yq=function(c){if("object"==typeof c.response)c.Ne(null,c.response);else if("string"==typeof c.response)try{var e=JSON.parse(c.response);c.Ne(null,e)}catch(g){c.Ne(g,null)}this.vZ(c)};a.prototype.Mb=function(c,e){e.Ne(this.parseError(c.data,e),null);this.vZ(e)};a.prototype.parseError=
function(c,e){var g=f.v(c)?"":c;if("object"==typeof e.response)g+=e.response.message||e.response;else if("string"==typeof e.response)try{var l=JSON.parse(e.response);g+=l.message||l}catch(m){g=f.v(c)?m:c}return g};a.prototype.close=function(){for(this.closed=!0;0<this.QG.length;)this.vZ(this.QG[0])};a.BK=null;d.zz=a;u(b,D.Qi);b.prototype.lu=function(c){var e=this;if(null!=this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.vH();if(401===this.xhr.status&&f.pg(this.nN))return this.nN(function(g){g?
e.retry():e.Mb(c)});this.Mb(c)}null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Da(new y.da(y.da.Fz)))};b.prototype.Mb=function(){var c;0===this.xhr.status?c=f.O.bind(f.model.A.j.$ma,this.url):404===this.xhr.status?c=f.O.bind(f.model.A.j.Vma,this.url):400===this.xhr.status?c=f.O.bind(f.model.A.j.Uma,this.url):500===this.xhr.status&&(c=f.O.bind(f.model.A.j.Wma,this.url));this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText;this.Da(new y.da(y.da.ya,
this,c))}})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}b.prototype.ol=function(a){var c=this;if(f.model.Qa.U().G0(f.model.Qa.aJ)){var e=new f.model.Xc(f.model.Qa.aJ,function(g){if(!f.v(g)&&!f.v(g.requestHeaders)){var l=c.connectionInfo.requestHeaders||{},m;for(m in g.requestHeaders)g.requestHeaders.hasOwnProperty(m)&&(l[m]=g.requestHeaders[m]);c.connectionInfo.requestHeaders=l;c.client.vh(l)}a(!0)});f.model.Qa.U().Da(e)}else a(!1)};d.BN=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||
(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=d.BN.call(this)||this;c.wa=k.Na.U();c.connectionInfo=a;c.client=c.connectionInfo.Tv();return c}u(b,d.BN);b.prototype.load=function(a,c,e,g){this.Ib=c;this.Xa=e;this.Be=g;this.Bha=!1;this.bAa()};b.prototype.bAa=function(){var a=this;this.client.uw("handshake",{type:"handshake",version:f.Ug.qs},function(c,e){c=!0;if(!f.v(e)){a.client.close();var g=e.version;c=a.ota(g);a.connectionInfo.Iga=g;a.client=a.connectionInfo.Tv()}if(c&&!a.Bha)a.L1();
else if(!f.v(g)&&a.zBa(g))return a.Mb(f.O.bind(f.model.A.j.Zma,a.connectionInfo.url,b.fX))},function(c){return a.ol(c)});f.za(!0,f.model.A.j.iE)};b.prototype.ota=function(a){return f.ha(a)?!0:-1!=f.O.fR(a,b.fX)};b.prototype.zBa=function(a){return-1==f.O.fR(a,b.fX)};b.prototype.L1=function(){var a=this;this.Bha=!0;this.client.uw("fields",{index:this.connectionInfo.index,type:"fields"},function(c,e){if(c)return a.Mb(c);a.Aq(e)},function(c){return a.ol(c)});f.za(!0,f.model.A.j.iE)};b.prototype.Aq=function(a){f.za(!1);
null!=this.Be&&this.Be();if(f.v(a)||f.v(a.fields))return this.Mb(f.O.bind(f.model.A.j.Yma,this.connectionInfo.url));a.sorted&&(this.wa.I.ew=!0);var c;f.v(a.aggregations)||(c=this.VFa(a.aggregations));f.v(a.filters)||this.jGa(a.filters);this.eH(a.fields,c);null!=this.Ib&&this.Ib()};b.prototype.VFa=function(a){var c={};if(Array.isArray(a))c[k.i.input.pa.NH]=a.map(function(n){return n.toString()});else for(var e=0;e<k.i.input.pa.aK.length;e++){var g=k.i.input.pa.aK[e];if(!f.v(a[g])&&Array.isArray(a[g])){f.v(c[g])&&
(c[g]=[]);for(var l=0;l<a[g].length;l++){var m=a[g][l].toLowerCase();c[g].push(m);-1===k.i.ca.xz.indexOf(m)&&m!==k.i.ca.NONE&&(k.i.ca.xz.push(m),k.i.ca.NN.push(m))}}}return c};b.prototype.zva=function(a){switch(a){case k.i.input.pa.Sc:var c=k.i.kb.gk;break;case k.i.input.pa.fb:c=k.i.kb.fb;break;case k.i.input.pa.Oa:c=k.i.kb.Oa}return c};b.prototype.jGa=function(a){if(!0===a||!1===a)this.wa.I.cG.VY=a;else{for(var c=0;c<k.i.input.pa.aK.length;c++){var e=k.i.input.pa.aK[c];if(!f.v(a[e])){var g=this.xfa(a[e],
this.zva(e));this.wa.I.cG.m$(e,g)}}d.I.ho.GL=!0===a.advanced;d.I.ho.GL&&(d.I.ho.FG=1==f.O.fR(this.connectionInfo.Iga,"2.8.21"))}};b.prototype.xfa=function(a,c){if(!0===a||!1===a)return a;var e=new k.I.Zoa;f.v(a.members)||(e.ed=!0===a.members);if(!f.v(a.query))if("boolean"===typeof a.query)e.query=a.query;else if(Array.isArray(a.query))for(var g=ja(a.query),l=g.next();!l.done;l=g.next())if(l=l.value,c==k.i.kb.gk&&k.i.wb.Cg(l)||c==k.i.kb.fb&&k.i.vg.Cg(l)||c==k.i.kb.Oa&&k.i.Ub.Cg(l)||f.v(c)&&k.i.wb.Cg(l)&&
k.i.vg.Cg(l)&&k.i.Ub.Cg(l))f.v(e.query)&&(e.query=[]),e.query.push(l);if(!f.v(a.valueQuery))if("boolean"===typeof a.valueQuery)e.xl=a.valueQuery;else if(Array.isArray(a.valueQuery))for(a=ja(a.valueQuery),l=a.next();!l.done;l=a.next())c=l.value,k.i.tc.Cg(c)&&(f.v(e.xl)&&(e.xl=[]),e.xl.push(c));return e};b.prototype.eH=function(a,c){for(var e=0;e<a.length;e++){var g=a[e],l=g.type;if(g.hasOwnProperty("uniqueName")&&!f.v(g.uniqueName)&&"string"===typeof g.uniqueName){var m=g.uniqueName,n=void 0;if(!f.v(g.aggregations)&&
Array.isArray(g.aggregations)){var p=g.aggregations;n=[];for(var t=0;t<p.length;t++){var r=p[t].toLowerCase();n.push(r);-1===k.i.ca.xz.indexOf(r)&&r!==k.i.ca.NONE&&(k.i.ca.xz.push(r),k.i.ca.NN.push(r))}}void 0!==n&&0<n.length?g.supportedAggregations=n:f.v(c)||(f.v(c[l])?f.v(c[k.i.input.pa.NH])||(g.supportedAggregations=c[k.i.input.pa.NH]):g.supportedAggregations=c[l]);g.type===k.i.input.pa.Oa&&(g.type=k.i.input.pa.gj);this.wa.I.ux(g,m);l=this.wa.I.VB(m);l instanceof d.I.CN&&!f.v(g.filters)&&(m=f.model.bb.Tz.tS(l),
g=this.xfa(g.filters,m),this.wa.I.cG.Ara(l.uniqueName,g))}}};b.prototype.Mb=function(a){console.error(a);f.za(!1);a=a.message||a;f.Va(a,f.model.A.j.ya,f.rb.ya);this.Xa&&f.pg(this.Xa)&&(this.Xa(a),this.Xa=null)};b.prototype.yk=function(a,c,e){var g=this,l=this.wa.fa.mapping.Fa(a.uniqueName,"filters");!1===l||!1===l.members?setTimeout(c,1,a):(this.Xa=e,f.za(!0,f.model.A.j.gn,a.caption),a.qg?null!==a.nc||this.wa.sa.drillAll?this.fM(a,function(m){return g.rj(m,c)}):this.Uj(a,a.yd,function(m){return g.rj(m,
c)}):this.K1(a,new d.em({page:0}),function(m){return g.rj(m,c)}))};b.prototype.K1=function(a,c,e){var g=this,l={};if(a.ra.ea(1).type===k.i.eb.Oa||a.ra.ea(1).type===k.i.eb.Dc)l.interval=a.interval;l.uniqueName=a.uniqueName;l={index:this.connectionInfo.index,type:"members",field:l};c.cK(l);this.client.uw("members",l,function(m,n){if(m)return g.Mb(m);if(!g.f3(a,n))return g.Mb(f.O.bind(f.model.A.j.n7,g.connectionInfo.url));f.v(n.nextPageToken)?!f.v(n.pageTotal)&&c.page+1<n.pageTotal?(f.za(!0,f.model.A.j.gn,
a.caption+" - "+Math.round((c.page+1)/n.pageTotal*100)+"%"),g.K1(a,new d.em({page:c.page+1}),e)):(a.ce=!0,e(a)):(f.za(!0,f.model.A.j.gn,a.caption),g.K1(a,new d.em({tw:n.nextPageToken}),e))},function(m){return g.ol(m)})};b.prototype.uK=function(a){for(var c;!a.Wb;){var e={};if(a.level.type===k.i.eb.Oa||a.level.type===k.i.eb.Dc)e.interval=a.level.hierarchy.interval;e.uniqueName=a.level.uniqueName;var g=a.uniqueName;k.i.eb.oT(a.level.type)&&!isNaN(a.ec)?g=a.ec:1<a.level.sb&&(g=a.uniqueName.substr(1,
a.uniqueName.length-2).split("].[").pop());var l=c;c={field:e,include:[{member:g}]};l&&(c.include[0].filter=l);a=a.parent}return c};b.prototype.wea=function(a,c,e,g){var l=this,m={};if(a.type===k.i.eb.Oa||a.type===k.i.eb.Dc)m.interval=a.hierarchy.interval;m.uniqueName=a.uniqueName;m={index:this.connectionInfo.index,type:"members",field:m};var n=this.uK(c);n&&(m.filter=d.I.ho.FG?{type:"and",value:[n]}:n);e.cK(m);this.client.uw("members",m,function(p,t){if(p)return l.Mb(p);if(!l.ZFa(c,t))return l.Mb(f.O.bind(f.model.A.j.n7,
l.connectionInfo.url));!f.v(t.pageTotal)&&e.page+1<t.pageTotal?(f.za(!0,f.model.A.j.gn,a.caption+" - "+(e.page+1)+"/"+t.pageTotal),l.wea(a,c,new d.em({page:e.page+1}),g)):(c.yf=!1,g(a.hierarchy))},function(p){return l.ol(p)})};b.prototype.rj=function(a,c){var e=this,g=a.vw;this.l4(g);if(0<a.filter.Zl.length)this.eM(a,a.filter.Zl,a.filter.zM,function(m){m.Iv();e.rj(m,c)});else if(0<g.length){var l=g.shift();0==g.length&&a.X$();a.vw=g;g=a.Db(l[1]);a.$x(g);this.Uj(a,g,function(m){return e.rj(m,c)})}else a.ce=
!0,c(a)};b.prototype.l4=function(a){a.sort(function(c,e){if(c.length!==e.length)return 0;var g=c.length-1;c=c[g];e=e[g];return f.v(e)||void 0===e.indexOf?1:f.v(c)||void 0===c.indexOf||-1!==e.indexOf(c)?-1:-1!==c.indexOf(e)?1:0})};b.prototype.ZFa=function(a,c){if(f.v(c)||f.v(c.members))return!1;if(0===c.members.length||1===c.members.length&&f.ha(c.members[0].value))return a.yf=!1,a.Pg=!1,!0;for(var e=c.members,g=0;g<e.length;g++){var l=this.fc(a.hierarchy,a,e[g]);c.sorted&&a.oZ.push(l.ordinal);l.yf=
!l.level.cw}c.sorted&&(a.hierarchy.ew=!0);return!0};b.prototype.f3=function(a,c){if(f.v(c)||f.v(c.members))return!1;for(var e=c.members,g=0;g<e.length;g++)this.fc(a,null,e[g]);c.sorted&&(a.ew=!0);return!0};b.prototype.fc=function(a,c,e){var g=String(e.value);var l=a.type===k.i.Gc.Eu&&void 0!==e.id?String(e.id):null===c||c.Wb?g:("["===c.uniqueName.substr(0,1)?c.uniqueName:"["+c.uniqueName+"]")+".["+g+"]";var m=a.Db(l);f.v(m)&&(g=new k.I.Rd({uniqueName:l,caption:g}),f.v(c)||(g.parent=c),g.value=e.value,
a.qg?(c=a.ra.ea(c.level.sb+1),e=c.uniqueName,g.level=c,c=this.wa.I.XB(e)):c=this.wa.I.XB(a.uniqueName),m=a.fc(g,c));a.TU(m);return m};b.prototype.Uj=function(a,c,e){null==c||!c.Wb&&!c.yf||c.Bi?e(a):this.wea(a.ra.ea(c.level.sb+1),c,new d.em({page:0}),function(){c.yf=!1;e(a)})};b.prototype.fM=function(a,c){this.J1(a,new d.em({page:0}),function(){c(a)})};b.prototype.J1=function(a,c,e){for(var g=this,l=[],m=1;m<a.ra.length;m++){var n=a.ra.ea(m);l.push({uniqueName:n.uniqueName});if(n==a.nc)break}n=[];
for(m=0;m<l.length;m++)n.push({field:l[m],func:"count"});l={type:"select",index:this.connectionInfo.index,query:{aggs:{by:{rows:l},values:n}}};c.cK(l);this.client.uw("select",l,function(p,t){p?(g.Mb(p),e(a)):g.qGa(t,a)?f.v(t.nextPageToken)?!f.v(t.pageTotal)&&c.page+1<t.pageTotal?g.J1(a,new d.em({page:c.page+1}),e):e(a):g.J1(a,new d.em({tw:t.nextPageToken}),e):(g.Mb(f.O.bind(f.model.A.j.o7,g.connectionInfo.url)),e(a))},function(p){return g.ol(p)})};b.prototype.qGa=function(a,c){if(f.v(a)||f.v(a.aggs))return!1;
a=a.aggs;for(var e,g,l,m,n,p,t=0;t<a.length;t++){e=a[t].keys;n=void 0;g=[];for(var r in e)m=e[r],g.push(m),l=1===g.length?m:"["+g.join("].[")+"]",p=c.Db(l),null==p&&(l=new k.I.Rd({uniqueName:l,caption:m,parent:n}),p=c.fc(l),p.yf=!p.level.cw),n=p}return!0};b.prototype.eM=function(a,c,e,g){this.Nba(a,c,0,g)};b.prototype.Nba=function(a,c,e,g){var l=this;e===c.length?g(a):this.Oba(a,"["===c[e].substr(0,1)?c[e].substr(1,c[e].length-2).split("].["):[c[e]],0,function(){return l.Nba(a,c,e+1,g)})};b.prototype.Oba=
function(a,c,e,g){var l=this;if(e===c.length)g(a);else{var m="";if(0<e){m=[];for(var n=0;n<=e;n++)m.push("["+c[n]+"]");m=m.join(".")}else m=c[0];a.type===k.i.Gc.Oa?(m=(new f.Gg(m)).getTime(),m=a.Ht(m)):m=a.Db(m);this.Uj(a,m,function(){return l.Oba(a,c,e+1,g)})}};b.prototype.Iy=function(){};b.prototype.vp=function(a,c,e,g){e&&(this.Ib=e);g&&(this.Xa=g);throw"Not Implemented";};b.prototype.kB=function(){return!1};b.prototype.cancel=function(){this.Be=this.Xa=this.Ib=this.connectionInfo=this.wa=null;
this.client&&(this.client.close(),this.client=null)};b.fX="2.8.5";d.Fia=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=d.BN.apply(this,arguments)||this;a.wa=k.Na.U();a.qa=a.wa.qa;return a}u(b,d.BN);b.prototype.load=function(a,c,e,g){this.connectionInfo=a;this.query=c;this.Ib=e;this.Xa=g;this.client=this.connectionInfo.Tv();this.kw()};b.prototype.kw=function(){var a=this;f.za(!0,f.model.A.j.Hf);this.o3=0;if(Array.isArray(this.query.body)){var c=new x.YI;this.query.body.forEach(function(e){c.add(function(g){return a.PT(e,a.query.type,new d.em({page:0}),
g)})});c.Wf(function(){null!=a.Ib&&a.Ib();f.za(!1)})}else this.PT(this.query.body,this.query.type,new d.em({page:0}),function(){null!=a.Ib&&a.Ib();f.za(!1)})};b.prototype.PT=function(a,c,e,g){var l=this,m=this.rta(a);a={type:"select",index:this.connectionInfo.index,query:m};f.model.B.C.oc||(a.querytype=c);e.cK(a);this.client.uw("select",a,function(n,p){if(n)return l.Mb(n,l.Xa),g();if(!l.wGa(p))return l.Mb(f.O.bind(f.model.A.j.o7,l.connectionInfo.url),l.Xa),g();f.v(p.nextPageToken)?!f.v(p.pageTotal)&&
e.page+1<p.pageTotal?(f.za(!0,f.model.A.j.Hf,Math.round((e.page+1)/p.pageTotal*100)+"%"),l.PT(m,c,new d.em({page:e.page+1}),g)):g():l.PT(m,c,new d.em({tw:p.nextPageToken}),g)},function(n){return l.ol(n)})};b.prototype.rta=function(a){a=x.Mc.Vi(a);for(var c=0;c<d.yu.AW.length;c++)a[d.yu.AW[c]]&&delete a[d.yu.AW[c]];return a};b.prototype.wGa=function(a){if(f.v(a))return!1;a.aggs&&(this.WFa(a.aggs,this.JG()),(f.v(a.nextPageToken)&&f.v(a.pageTotal)||1>=a.pageTotal-a.page)&&this.o3++);a.hits&&this.kGa(a.fields,
a.hits);return!0};b.prototype.JG=function(){return f.model.B.C.oc&&f.model.B.C.he!==f.K.xd.Ki};b.prototype.kGa=function(a,c){for(var e=this.m0(this.wa.sa.rc(!1,!0,!0,!0)),g=0;g<c.length;g++){for(var l=[],m=[],n,p=0;p<a.length;p++){n=a[p].uniqueName;var t=this.qa.Eh(n),r=c[g][p];n=e.getItem(n);var v=n.hierarchy;if(v.type===k.i.Gc.Oa){var z=v.Ht(r);z=f.v(z)?-1:z.ordinal}else v.type!==k.i.Gc.Eu?(z=v.Ht(parseFloat(r)),z=null!==z?z.ordinal:-1):z=v.qy(f.ha(r)?"":""+r);if(-1===z)if(v.qg){var B=n.wU;z=[];
for(var C=1;C<v.ra.length;C++){var E=v.ra.ea(C),K=a.findIndex(function(J){return J.uniqueName===E.uniqueName});z.push(c[g][K]);if(B===E.uniqueName)break}B="["+z.join("].[")+"]";C=B+".["+r+"]";1===z.length&&(B=z[0]);z=v.qy(C);-1===z&&(E=n.level,B=v.fc(new k.I.Rd({uniqueName:C,caption:r,value:r,level:E,ei:B}),k.i.eb.wD(E.type)),null!=B&&(z=B.ordinal))}else B=this.wa.I.XB(v.uniqueName),B=v.fc(new k.I.Rd({uniqueName:String(r),caption:String(r),value:r}),B),null!=B&&(z=B.ordinal);l[n.ec]=z;m[t]=v.type===
k.i.Gc.Op?"number"===typeof r?r:NaN:v.type===k.i.Gc.Oa?!f.model.B.C.zr||null!==r&&"null"!==r?"number"===typeof r?r:NaN:null:1}this.qa.wAa(l,m)}};b.prototype.m0=function(a){for(var c,e=new f.nb,g=0,l=0,m=0;m<a.length;m++){c=a.ea(m);if(c.qg){l++;for(var n=1;n<c.ra.length;n++)e.Pa(c.ra.ea(n).uniqueName,{hierarchy:c,ordinal:g,level:c.ra.ea(n),wU:c.ra.ea(n-1).uniqueName,nc:c.nc,ec:l++})}else n=this.wa.fa.mapping.Fa(c.uniqueName,"filters"),e.Pa(c.uniqueName,{hierarchy:c,ordinal:g,level:c.ra.ea(1),ec:l++,
$h:!1!==n&&!1!==n.members});g++}return e};b.prototype.Qsa=function(a){for(var c=0,e=0;e<this.query.We.length;e++){var g=a.ea(e).va(this.query.We[e]);c+=g.level.sb}return c};b.prototype.WFa=function(a,c){var e=this.m0(this.wa.sa.vb),g=this.m0(this.wa.sa.Cb),l=!1;if(Array.isArray(this.query.body)){var m=this.query.body[this.o3];0<this.o3&&(l=!0)}else m=this.query.body;var n=m.type,p=m.axisName;m=0;p!=this.query.ft||n!==k.i.Kd.Oz&&n!==k.i.Kd.Fu||(m=this.Qsa(p===k.i.ia.Ia?this.wa.sa.vb:this.wa.sa.Cb));
for(p=0;p<a.length;p++)if(c){var t=this.Bfa(a[p].values);this.qa.hz(t)}else{t=this.Bfa(a[p].values);var r=this.Afa(a[p].keys,e),v=this.Afa(a[p].keys,g);if(this.bea(r)&&this.bea(v)){if(n===k.i.Kd.Oz||n===k.i.Kd.Fu)if(f.v(a[p].keys)||Object.keys(a[p].keys).length<=m)continue;this.qa.insert(r,v,t,this.query.We,this.query.ft,!l)}}};b.prototype.bea=function(a){for(var c=0;c<a.length;c++)if(f.v(a[c]))return!1;return!0};b.prototype.Bfa=function(a){var c=[],e;for(e in a)if(a.hasOwnProperty(e))for(var g in a[e])if(a[e].hasOwnProperty(g)){var l=
this.qa.Eh(e,g,!0);c[l]=a[e][g]}return c};b.prototype.Afa=function(a,c){var e=[];if(f.v(a))return e;for(var g=c.length,l=0;l<g;l++){var m=c.qh(l);if(void 0!==a[m]){var n=a[m];"string"!==typeof n&&(n=""+n);var p=c.getItem(m),t=[];if(p.level){var r=p.wU;for(1<p.level.sb&&(n="["+n+"]");void 0!==a[r];)n="["+a[r]+"]."+n,r=c.getItem(r).wU}p.hierarchy.type===k.i.Gc.Eu||p.level.type!==k.i.eb.Oa&&p.level.type!==k.i.eb.Dc&&p.level.type!==k.i.eb.Yb&&p.level.type!==k.i.eb.Qk?r=p.hierarchy.qy(n):(r=p.hierarchy.Ht(a[m]),
r=f.v(r)?-1:r.ordinal);var v=c.getItem(p.hierarchy.ra.ea(1).uniqueName).ordinal;if(p.nc||this.wa.sa.drillAll){if(-1===r){var z=p.wU;n=[];for(var B=1;B<p.hierarchy.ra.length;B++){var C=p.hierarchy.ra.ea(B);n.push(a[C.uniqueName]);if(z===C.uniqueName)break}z="["+n.join("].[")+"]";B=z+".["+a[m]+"]";1===n.length&&(z=n[0]);m=p.hierarchy.fc(new k.I.Rd({uniqueName:B,caption:a[m],level:p.level,ei:z}));null!=m&&(r=m.ordinal)}t.push(p.level.sb);t.push(r);void 0===e[v]&&(e[v]=[p.nc?p.hierarchy.ra.length-p.nc.sb:
0]);e[v].push(t)}else p.level?(-1===r&&!1===p.$h&&(m=p.hierarchy.fc(new k.I.Rd({uniqueName:n,caption:a[m]})),null!=m&&(r=m.ordinal)),t.push(p.level.sb),t.push(r),e[v]=t):(-1===r&&!1===p.$h&&(p=p.hierarchy.fc(new k.I.Rd({uniqueName:n,caption:a[m]})),null!=p&&(r=p.ordinal)),t.push(1),t.push(r),e.push(t))}}return e};b.prototype.Mb=function(a,c){console.error(a);f.za(!1);f.Va(a.message||a,f.model.A.j.ya,f.rb.ya);f.pg(c)&&c()};b.prototype.drillThrough=function(a,c,e,g,l,m){f.za(!0,f.model.A.j.Hf);this.connectionInfo=
a;f.v(this.client)&&(this.client=this.connectionInfo.Tv());this.KB=[];this.G1(c,new d.em({page:0}),m)};b.prototype.G1=function(a,c,e){var g=this,l={type:"select",index:this.connectionInfo.index,query:a.body};c.cK(l);this.client.uw("select",l,function(m,n){if(m)return g.Mb(m,e);if(!g.gGa(n))return g.Mb(f.O.bind(f.model.A.j.Xma,g.connectionInfo.url),e);f.v(n.nextPageToken)?!f.v(n.pageTotal)&&c.page+1<n.pageTotal?g.G1(a,new d.em({page:c.page+1}),e):e(g.KB):g.G1(a,new d.em({tw:n.nextPageToken}),e)},function(m){return g.ol(m)})};
b.prototype.gGa=function(a){if(f.v(a))return!1;if(a.fields&&0==this.KB.length){var c=a.fields.map(function(e){return e.uniqueName});this.KB.push(c)}if(a.hits)for(c=0;c<a.hits.length;c++)this.KB.push(a.hits[c]);return!0};b.prototype.cancel=function(){this.Xa=this.query=this.Ib=this.connectionInfo=this.qa=this.wa=null;this.client&&(this.client.close(),this.client=null);this.KB&&(this.KB.length=0,this.KB=null)};d.Aia=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.Gu.apply(this,arguments)||this;a.L4=new f.nb;return a}u(b,h.Gu);b.prototype.vF=function(){this.L4.clear();h.Gu.prototype.vF.call(this)};b.prototype.Fa=function(a,c,e,g){g=(void 0===g?0:g)?0:this.OX(a,c);var l=this.Eh(e);if(f.v(this.values[g]))return k.i.ca.Tf(e.$)?0:NaN;if(e.Ka){this.NE=!1;a=this.qq([g],e.Sd,e.gl,0,a,c,e.Eo);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][l]=a}return f.v(this.values[g][l])?k.i.ca.Tf(e.$)?0:NaN:
this.values[g][l]};b.prototype.xv=function(a,c,e,g){return this.qq([this.OX(a,c)],e,!1,g)};b.prototype.OX=function(a,c){return a+" "+c};b.prototype.hz=function(a){this.values[0]=a};b.prototype.CA=function(a,c){return null===a||0===a.length?NaN:this.values[a[0]]?this.values[a[0]][c]:NaN};b.prototype.e0=function(a,c){var e=this.slice.Zh(new f.model.bb.Ig(a,c));null!=e&&(c=k.i.ca.UL(e.$)?e.$:e.Ll);return this.Eh(a,c,!this.NE)};b.prototype.pS=function(a,c){var e=k.i.ca.hj;c=this.e0(c.uniqueName,e);return this.CA(a,
c,e)};b.prototype.Bm=function(a,c){h.Gu.prototype.Bm.call(this,a,c);this.Jl(a.uniqueName)};b.prototype.insert=function(a,c,e,g,l,m){for(var n=[],p=[],t=[],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.ra[this.uh[r]][a[r][v][0]]]=a[r][v][1]}else{if(-1===a[r][1])return;p[r]=a[r][1];n[this.ra[this.uh[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.ra[this.Ti[r]][c[r][v][0]]]=c[r][v][1];else{if(-1===c[r][1])return;a[r]=c[r][1];n[this.ra[this.Ti[r]][c[r][0]]]=a[r]}p=this.OX(p,a);c=this.pb.length;void 0!==this.values[p]?(n=this.L4.getItem(n.join("-")),void 0!==n&&(c=n),m&&(this.values[p]=e)):(this.Wg.push(c),this.pb.push(n),this.L4.Pa(n.join("-"),this.pb.length-1),this.values[p]=e);0<g.length&&(0===this.vd.length&&(this.expand([],
k.i.ia.Ia,void 0),this.expand([],k.i.ia.Sa,void 0)),e=l===k.i.ia.Ia?this.cd(g,this.vd):this.cd(g,this.Md),void 0!=e&&-1===e[0][0].indexOf(c)&&e[0][0].push(c));if(0<t.length)for(e=0;e<t.length;e++){g=l===k.i.ia.Ia?this.cd(t[e],this.vd):this.cd(t[e],this.Md);if(void 0===g){g=[];m=void 0;for(n=0;n<t[e].length;n++)g.push(t[e][n]),m=l===k.i.ia.Ia?this.cd(g,this.vd):this.cd(g,this.Md),void 0!==m&&void 0!==m[0]&&void 0!==m[0][0]&&(p=t[e][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)}};b.prototype.wAa=function(a,c){var e;if(0===this.pb.length)for(e=0;e<a.length;e++)this.pb[e]=[];this.Wg=f.Ha.Hq(this.Wg,this.Iw);for(e=0;e<a.length;e++)this.pb[e]=f.Ha.Hq(this.pb[e],a[e]);0===this.values.length&&this.hz([]);this.values.push(c)};b.prototype.rS=function(a,c,e,g,l){if(void 0===this.cb[a])return NaN;if(g)return this.NE=!0,e.Ka?this.qq([this.cb[a]+1],e.Sd,e.gl,0,null,null,e.Eo):this.values[this.cb[a]+1][c];c=this.le.indexOf(this.Yg[c]);
void 0!==l&&(c=this.ra[c][l+1]);return void 0===this.pb[c]?NaN:this.pb[c][this.cb[a]]};b.prototype.filter=function(){};b.prototype.yA=function(a,c,e){if(null!==a){var g=a[0][0];if(0<g.length&&!isNaN(c)){for(var l=0;l<g.length;l++){var m=this.pb[g[l]][this.ra[c][1]];0!==m&&void 0!==m&&(void 0===a[m]?(a[m]=[[[g[l]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[l]))}void 0===a[0][3]&&(a[0][3]=[]);void 0===e?a[0][3][this.bg.length]=!0:a[0][3][this.Eh(e)]=!0;a[0][5]=!0}}};b.prototype.JP=
function(a,c,e,g,l){if(void 0!==c&&void 0!==c[0]){var m=c[0][0];if(0<m.length&&!isNaN(g)){for(var n=0;n<m.length;n++){var p=this.pb[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.al[e][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===l?c[0][4][this.bg.length]=!0:c[0][4][this.Eh(l)]=!0}}};d.Z4=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(c){c=k.I.Aj.call(this,void 0===c?null:c)||this;c.HV();return c}function a(){}a.g8={date:"date string","year/month/day":"date string","year/quarter/month/day":"date string"};u(b,k.I.Aj);b.prototype.HV=function(){this.cra();this.bra()};b.prototype.bra=function(){for(var c in this.mapping)Array.isArray(this.mapping[c])&&(this.mapping[c]=this.mapping[c][0])};b.prototype.cra=function(){var c=this.mapping,e;for(e in c)c=this.Fa(e,"type"),null!=
c&&a.g8.hasOwnProperty(c)&&this.Nh(e,"type",a.g8[c])};d.DN=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){if(null!=b.instance)throw Error("Singleton");}b.U=function(){null==b.instance&&(b.instance=new b);return b.instance};b.dispose=function(){b.instance=null};b.prototype.UM=function(a,c){return Ca(new Ba(new wa(function(e){return e.return(new Promise(function(g,l){x.mn.load("lib/sha1.min.js",function(){var m=f.model.Ea.na.J(f.model.Ea.na.sHa);if(null!=m){var n=JSON.stringify(c.La());var p=new jsSHA("SHA-1","TEXT");p.setHMACKey(m,"TEXT");
p.update(n);n=p.getHMAC("B64")}a.vh({"x-flexmonster":n});a.uw("save",null!==c?c.La():{},function(t,r){if(f.v(r))t&&(f.Va(f.O.bind(f.model.A.j.s7,t),f.model.A.j.ya,f.rb.ya),a.close(),l(t));else{t=new URL(location.href);t.searchParams.set("flexmonsterreport",r);var v=t.href;f.Va(f.O.bind(f.model.A.j.jna,v),f.model.A.j.fm,f.rb.fm,[f.model.A.j.l5,f.model.A.j.Jk],[function(){var z=document.createElement("textarea");z.value=v;z.setAttribute("readonly","");z.style.position="fixed";z.style.left="-9999px";
document.body.appendChild(z);z.select();document.execCommand("copy");document.body.removeChild(z)},function(){}]);a.close();g(v)}})})}))})))};b.prototype.eCa=function(a,c,e){var g=new d.zz(a);g.uw("load",c,function(l,m){f.v(m)||e&&e(m);l&&(f.Va(f.O.bind(f.model.A.j.r7,l),f.model.A.j.ya,f.rb.ya),console.error("Can't load the shared file. The URL to the server hasn't been found. "+l),e&&e());g.close()})};d.Y4=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(d,b){var a=A.Vb.ye.call(this)||this;a.f1=!1;a.lT=!1;a.gda="theme/accessible/flexmonster.min.css";a.Zda=!1;a.ja=f.model.Ta.U();a.YF=null;a.width=0;a.height=0;a.w1=0;a.v1=0;a.kN=!1;a.X8=0;a.KF=[];a.Sea=0;a.$aa=!1;a.Gx=function(g){return a.hu(g)};a.Hx=function(g){return a.iu(g)};a.Ix=function(){return a.mM()};a.Ex=null;a.rba=function(){h.zb.mb(k.pi.fo,a.rba);a.Qb.Nj(a.YF.Dt,a.YF.lb,function(g){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];a.Qb.G=null;
a.ja.G=f.u.bf.ij.uc("chart");null!=a.YF.Fo&&a.YF.Fo.apply(null,l);a.YF=null})};a.Uga("fm-pivot-view");null!=a.Ue&&a.Ue.dispose();d.empty();a.Ue=d;h.zb=a;var c=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%";d=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 e=/\d+(?=px|%)/;c=c.match(e)?c:"100%";d=d.match(e)?
d:"500px";a.Ue.P("width",c);a.Ue.P("height",d);a.F.P("width",c);a.F.P("height",d);a.Ue.append(a.F);d=[];b.toolbar?(d=["toolbar/flexmonster.toolbar.js"],a.kN=!0):a.kN=!1;x.K5.eca()||(e=new A.Aa("div","fm-csscheck"),a.Ue.append(e),"flexmonster"!=window.getComputedStyle(e.element).getPropertyValue("font-family")&&'"flexmonster"'!=window.getComputedStyle(e.element).getPropertyValue("font-family")&&d.unshift("flexmonster.css"),e.remove());x.mn.load(d,function(){a.F.requestAnimationFrame(function(){x.Bd().Di||
x.K5.bta(f.Ug.qs)||console.warn("Flexmonster: CSS version mismatch.\nVersions of Flexmonster specified in the CSS and JS files do not match.\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/).");a.toolbar=b.toolbar?new FlexmonsterToolbar(a.Ue.element,f.Ug.instance.kc,"html5",c,f.model.A.Xz.U().fca(),
f.model.Ea.pc.oj()):null;f.Ug.instance.kc.toolbar=a.toolbar;a.ada&&(f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.MV,a.toolbar)),a.toolbar.create());a.kN=!1;a.te();a.gb()})},function(){a.kN=!1});a.ja.Ga.N(f.model.cc.fd.Xw,function(){return a.G2()});a.ja.Ga.N(f.model.cc.fd.DW,function(){return a.TEa()});a.ja.Ga.N(f.model.cc.fd.dW,function(){return a.f2()});a.ja.Ga.N(f.model.cc.fd.cE,function(){return a.E2()});a.ja.Ga.N(f.model.cc.fd.hA,function(){});a.ja.Ga.N(f.model.cc.fd.hk,function(g){return a.BDa(g)});
a.ja.Ga.N(f.model.cc.fd.Oh,function(){return a.O2()});a.ja.Ga.N(f.model.cc.fd.pE,function(){return a.P2()});a.ja.Ga.N(f.model.cc.fd.eE,function(){return a.$G()});a.ja.N(f.eg.jW,function(g){return a.QDa(g)});a.ja.N(f.eg.UW,function(){return a.$Ea()});a.ja.N(k.Ka.yj.s5,function(g){return a.UEa(g)});a.ja.N(k.pi.F5,function(g){return a.VEa(g)});a.N(k.pi.fo,function(){return a.UCa()});f.Pj.addEventListener("fullscreenchange",function(){return a.dU()},!1);f.Pj.addEventListener("mozfullscreenchange",function(){return a.dU()},
!1);f.Pj.addEventListener("webkitfullscreenchange",function(){return a.dU()},!1);f.Pj.addEventListener("MSFullscreenChange",function(){return a.dU()},!1);a.Ue.N("fullscreenchange",function(g){return a.jU(g)},!1);a.Ue.N("mozfullscreenchange",function(g){return a.jU(g)},!1);a.Ue.N("webkitfullscreenchange",function(g){return a.jU(g)},!1);a.Ue.N("MSFullscreenChange",function(g){return a.jU(g)},!1);x.sO.U().N(x.KeyboardEvent.n8,function(){return a.HFa()});return a}u(h,A.Vb.ye);h.prototype.HFa=function(){this.Vga(!this.f1)};
h.prototype.Vga=function(d){this.f1=d;this.Ue.Ua("fm-keyboard-mode",this.f1)};h.prototype.op=function(){return this.KS()&&null!=this.Ml?h.wha-(this.Ml.qd()+this.Ml.F.borderWidth.top)-h.zb.xD:h.wha-h.zb.xD};h.prototype.Eq=function(d){this.Qb&&this.Qb.ka&&this.Qb.ka.Eq(d)};h.prototype.es=function(d){this.Qb&&this.Qb.ka&&this.Qb.ka.es(d)};h.prototype.gb=function(d){var b=this;d=void 0===d?!1:d;this.P$();if(this.$aa||this.Zda&&(f.model.Ea.pc.error||!f.ha(f.model.Ea.pc.Rx))){var a=this.F.requestAnimationFrame(function(){b.P$();
b.FX(d)});this.KF.push(a)}else 500>this.Sea++||(this.kN||f.ha(f.model.Ea.pc.Rx))&&5E3>this.Sea?this.QCa=f.pe(function(){b.gb(d)},10):this.Ue.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&&
(f.model.Ea.pc.pp||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/)")))};h.prototype.P$=function(){for(;0<this.KF.length;)this.F.cancelAnimationFrame(this.KF.pop());this.KF=[];f.Dr(this.QCa);f.Dr(this.fga)};h.prototype.$ha=function(){if(!this.Ue)return!1;
var d=x.jT(),b=this.Ue.cf(),a=this.Ue.qd();a-=this.xD;if(this.w1!==b||this.v1!==a)this.F.P("width",b+"px"),d?this.F.P("height","calc(100% - "+this.xD+"px)"):this.F.P("height",a+"px");return this.w1!==b||this.v1!==a};h.prototype.Z2=function(){this.toolbar&&null!=this.toolbar.applyToolbarLayoutClasses&&this.toolbar.applyToolbarLayoutClasses();this.gb(!0)};h.prototype.G2=function(){this.ja.Ga.hf==f.model.cc.so.INIT&&this.PF()};h.prototype.f2=function(){null!=this.Qb&&this.Qb.ot();this.gb()};h.prototype.E2=
function(){this.ja.Ga.hf!=f.model.cc.so.bJ&&this.ja.Ga.hf!=f.model.cc.so.Gz&&this.PF()};h.prototype.TEa=function(){this.PF()};h.prototype.hfa=function(){this.ja.Ga.fa.Hc&&(null!=this.Qb&&this.Qb.ot(),this.gb())};h.prototype.gfa=function(){this.ja.Ga.hf!=f.model.cc.so.bJ&&this.ja.Ga.hf!=f.model.cc.so.Gz&&this.PF()};h.prototype.Wea=function(){this.ja.Ga.hf!=f.model.cc.so.bJ&&this.ja.Ga.hf!=f.model.cc.so.Gz&&this.PF()};h.prototype.BDa=function(d){this.ja.Ga.hf==f.model.cc.so.INIT||this.ja.Ga.hf==f.model.cc.so.e7||
null==this.Qb||d.data!=f.u.i.Kd.to&&d.data!=f.u.i.Kd.bO||(this.Qb.ot(),this.gb())};h.prototype.$G=function(){null!=this.toolbar&&this.toolbar.updateLabels(f.model.A.Xz.U().fca());null!=this.Yh&&this.Yh.updateLabels()};h.prototype.Qv=function(d){d=this.ja.ga.sa.rc().getItem(d);null!=d&&this.Hda(d)&&(this.Qb.ot(),this.ja.G.Qv(d))};h.prototype.wQ=function(d,b){d=this.ja.ga.sa.Cd(d);for(var a=[],c=0,e=0;e<b.length;e++){var g=d.Ma.ea(c);g.Qe&&(c++,g=d.Ma.ea(c));var l=g.Db(b[e]);f.v(l)&&(l=g.Db(f.u.me.Or(b[e])));
if(f.v(l))return[];a.push(l.ordinal);c++}return a};h.prototype.MR=function(d,b,a){this.Qb.ot();this.ja.G.expand(this.wQ(d,b),d,this.ja.ga.sa.$c(a))};h.prototype.aR=function(d,b,a){this.Qb.ot();this.ja.G.collapse(this.wQ(d,b),d,this.ja.ga.sa.$c(a))};h.prototype.IR=function(d,b,a,c){this.Qb.ot();var e=this.ja.ga.sa.Cd(d),g=e.Ra&&e.He<=b.length?e.Ma.ea(b.length+1):e.Ma.ea(b.length);e=g.Db(c);f.v(e)&&(c=f.u.me.Or(c),e=g.Db(c));f.v(e)||(b=this.wQ(d,b),b.push(e.ordinal),this.ja.G.To(b,e,d,this.ja.ga.sa.$c(a)))};
h.prototype.HR=function(d,b,a,c){this.Qb.ot();var e=this.ja.ga.sa.Cd(d),g=e.Ra&&e.He<=b.length?e.Ma.ea(b.length+1):e.Ma.ea(b.length);e=g.Db(c);f.v(e)&&(c=f.u.me.Or(c),e=g.Db(c));f.v(e)||(b=this.wQ(d,b),b.push(e.ordinal),this.ja.G.tf(b,e,d,this.ja.ga.sa.$c(a)))};h.prototype.Gv=function(d){d=this.ja.ga.sa.rc().getItem(d);null!=d&&this.Hda(d)&&(this.Qb.ot(),this.ja.G.Gv(d))};h.prototype.Hda=function(d){var b=this.ja.ga.sa,a=b.rows.Bb(d.uniqueName)?f.u.i.ia.Ia:f.u.i.ia.Sa;return(a==f.u.i.ia.Ia?b.vb.indexOf(d.uniqueName):
b.Cb.indexOf(d.uniqueName))+1<(a==f.u.i.ia.Ia?b.vb.length:b.Cb.length)};h.prototype.O2=function(){this.ja.Ga.hf==f.model.cc.so.jo?this.PF():this.Ue&&this.gb()};h.prototype.P2=function(){this.Eta()};h.prototype.dU=function(){this.Vca()};h.prototype.jU=function(d){d.stopPropagation();this.Vca()};h.prototype.Vca=function(){function d(){b.Ue.qd()!=parseInt(b.Ue.element.style.height)&&5>c?(c++,b.Ue.requestAnimationFrame(d)):b.$ha()&&b.gb(!0)}var b=this,a=x.jT();null!=f.model.Qa.jsFullScreenHandler&&f.model.Qa.jsFullScreenHandler.call(null,
a);var c=0;this.Ue.requestAnimationFrame(d)};h.prototype.te=function(){var d=this;this.toolbar&&(this.F.height-=this.xD);this.Qb=new k.X.Qla;this.Qb.N(k.pi.Uw,function(b){return d.ZDa(b)});this.Qb.N(k.pi.$V,function(b){return d.Xea(b)});this.V(this.Qb);this.Yh=new k.Vc.mo;this.Yh.N(y.da.OPENED,function(){});this.Yh.N(y.da.CLOSED,function(){});this.Yh.N(k.Vc.mo.ZN,function(){return d.h2()});this.Yh.N(k.Vc.mo.fI,function(b){return d.g2(b)});this.V(this.Yh);f.Pj.addEventListener("keydown",function(b){return d.kp(b)});
this.TE=new x.xoa(this.Ue.parent);this.TE.N(y.da.ZW,function(b){return d.Z2(b)});this.Zda=!0};h.prototype.bHa=function(){k.GN.U().Zt&&k.GN.U().Go()};h.prototype.FX=function(d){d=void 0===d?!1:d;null==this.ja||0==this.Ue.width||d&&A.IK.VN.U().QAa||(this.$ha(),this.bHa(),1>f.model.Ea.pc.oj()||(this.$aa=!0,this.TE.refresh(),this.KS()&&this.Xva(),this.iAa()&&(this.V(this.IV),this.IV.gb()),f.model.B.C.oc&&this.ja.ga.fa&&!this.ja.ga.fa.KG&&(f.model.B.C.oc=!1,f.Va(f.O.bind(f.model.A.j.gna,f.u.i.oa.J(this.ja.ga.fa.Ba)),
f.model.A.j.uO)),f.model.B.C.oc&&f.model.B.C.he==k.xd.fn&&this.ja.ga.fa&&this.ja.ga.fa.Ba==f.u.i.oa.API&&(f.model.B.C.he=k.xd.xs,f.Va(f.O.bind(f.model.A.j.IW),f.model.A.j.uO,f.rb.Ik)),null!=this.Oj&&this.Oj.gb(),f.v(this.ja.Ga.fa)||this.ja.Ga.fa.ob||!f.model.B.C.IZ?this.Yh.$a():this.Yh.show(),d||f.model.B.C.zF||k.Ka.UD.WJ||(f.model.B.C.An=!1),f.v(this.ja.ga.sa)||f.v(this.ja.ga.I)||this.ja.ga.I.ob||!this.ja.ga.sa.ob||(f.model.B.C.An=!0),f.model.B.C.An&&null!=this.ja.Ga.fa&&!this.ja.Ga.fa.ob?this.Yh.open(this.ja.ga.I,
this.ja.ga.sa,this.ja.Ga.fa.Ba):this.Yh.close(),f.model.B.C.he==k.xd.Ki?this.g_(d):f.model.B.C.he==k.xd.fn?this.i_(d):this.h_(d),null!=this.tk&&this.tk.isVisible()&&(f.model.B.C.oc&&f.model.B.C.he===k.xd.xs?this.tk.close():this.tk.r3()),this.w1=this.cf(),this.v1=this.qd()))};h.prototype.PF=function(){f.model.B.C.he==k.xd.Ki?this.g_(!1,!0):f.model.B.C.he==k.xd.fn?this.i_(!1):this.h_(!1,!0);f.v(this.Yh)||(this.Yh.close(),this.Yh.$a())};h.prototype.jV=function(){if(this.ja.Ga.fa.Ba==f.u.i.oa.API&&f.model.B.C.oc&&
f.model.B.C.he==k.xd.Ki){var d=f.model.B.C.Vv(!1,!0);d.la("viewType",k.xd.xs);this.ja.zp(d.La())}else f.model.B.C.he=k.xd.xs,f.model.B.C.oc&&this.Yh&&this.Yh.Zt&&this.Yh.open(this.ja.ga.I,this.ja.ga.sa,this.ja.Ga.fa.Ba),this.h_()};h.prototype.h_=function(d,b){d=void 0===d?!1:d;b=void 0===b?!1:b;null!=this.Qb&&(null!=this.bd&&this.bd.$a(),null!=this.dk&&this.dk.$a(),d||null==this.Oj||this.Oj.close(),this.Qb.G=b?null:this.ja.G=f.u.bf.ij.uc(),this.Qb.F.P("top","").P("left","").P("right","").P("bottom",
""),this.Qb.F.P("position","absolute"),this.Qb.show(),this.Qb.F.P("height",h.jC+"px"),this.Qb.F.P("width",h.tu+"px"),b&&this.Qb.ot(),this.Qb.gb())};h.prototype.WM=function(d,b){d=void 0===d?"":d;b=void 0===b?!1:b;if(this.ja.Ga.fa.Ba==f.u.i.oa.API&&f.model.B.C.oc&&f.model.B.C.he==k.xd.xs){var a=f.model.B.C.Vv(!1,!0);a.la("viewType",k.xd.Ki);a.la("chartType",d);a.la("chartMultipleMeasures",k.td.xe.Oda(d)?b:!1);this.ja.zp(a.La())}else f.model.B.C.he=k.xd.Ki,f.model.B.C.OQ=d,f.model.B.C.lK=k.td.xe.Oda(d)?
b:!1,this.g_()};h.prototype.g_=function(d,b){var a=this;d=void 0===d?!1:d;b=void 0===b?!1:b;x.mn.load("lib/d3.v3.min.js",function(){d||null==a.Oj||a.Oj.close();null!=a.Qb&&a.Qb.$a();null!=a.dk&&a.dk.$a();null==a.bd&&a.hF();a.bd.F.P("top","").P("left","").P("right","").P("bottom","");a.bd.F.P("position","absolute");a.bd.show();a.bd.F.P("height",h.un+"px");a.bd.F.P("width",h.vn+"px");a.bd.G=b?null:a.ja.G=f.u.bf.ij.W_(f.model.B.C.lZ);a.bd.gb();f.model.B.C.oc&&a.Yh&&a.Yh.Zt&&a.Yh.open(a.ja.ga.I,a.ja.ga.sa,
a.ja.Ga.fa.Ba);b||0!=a.KF.length||(a.fga=f.pe(function(){a.Wa(k.pi.YW)},1))})};h.prototype.kV=function(d,b,a){d=void 0===d?"":d;b=void 0===b?"bottom":b;a=void 0===a?!1:a;this.ja.Ga.fa.Ba==f.u.i.oa.API&&f.model.B.C.oc?f.Va(f.O.bind(f.model.A.j.IW),f.model.A.j.uO,f.rb.Ik):(f.model.B.C.he=k.xd.fn,f.model.B.C.OQ=d,f.model.B.C.nB=b,f.model.B.C.lK=a,this.i_())};h.prototype.i_=function(d){var b=this;d=void 0===d?!1:d;x.mn.load("lib/d3.v3.min.js",function(){d||null==b.Oj||b.Oj.close();null!=b.Qb&&(b.Qb.show(),
b.Qb.G=b.ja.G=f.u.bf.ij.uc(),null==b.bd&&b.hF(),b.bd.show(),b.bd.G=f.u.bf.ij.W_(f.model.B.C.lZ),null==b.dk&&b.Rra(),b.dk.show(),b.dk.direction="left"==f.model.B.C.nB||"right"==f.model.B.C.nB?A.iP.pX:A.iP.vI,b.dk.Aua=[150,150,h.tu-150,b.op()-150],b.Zaa(f.model.B.C.nB))})};h.prototype.AFa=function(d){var b=f.model.B.C.nB;this.Zaa(b,"left"==b||"right"==b?d.data.left:d.data.top)};h.prototype.Zaa=function(d,b){d=void 0===d?"bottom":d;b=void 0===b?NaN:b;var a=h.tu-h.zb.aG;isNaN(b)&&(b="left"==d||"right"==
d?Math.round(a/2):Math.round(this.op()/2));switch(d){case "bottom":h.UP=a;h.TP=b;this.Qb.F.P("width",h.FL+"px");this.Qb.F.P("height",h.jC+"px");this.Qb.F.P("top",0).P("left",0).P("right","").P("bottom","");h.wP=a;h.nJ=this.op()-this.Qb.F.qd()-this.dk.qd();this.bd.F.P("width",h.vn+"px");this.bd.F.P("height",h.nJ+"px");this.bd.F.P("bottom",this.KS()&&!f.v(this.Ml)?this.Ml.qd()+"px":0).P("left",0).P("right","").P("top","");this.dk.F.P("top",b+"px").P("left","").P("right","").P("bottom","");break;case "top":h.wP=
a;h.nJ=b;this.bd.F.P("width",h.vn+"px");this.bd.F.P("height",h.un+"px");this.bd.F.P("top",0).P("left",0).P("right","").P("bottom","");h.UP=a;h.TP=this.op()-this.bd.F.qd()-this.dk.qd();this.Qb.F.P("width",h.FL+"px");this.Qb.F.P("height",h.jC+"px");this.Qb.F.P("bottom",this.KS()&&!f.v(this.Ml)?this.Ml.qd()+"px":0).P("left",0).P("right","").P("top","");this.dk.F.P("top",b+"px").P("left","").P("right","").P("bottom","");break;case "left":h.wP=b;h.nJ=this.op();this.bd.F.P("width",h.vn+"px");this.bd.F.P("height",
h.un+"px");this.bd.F.P("top",0).P("left",0).P("right","").P("bottom","");h.UP=a-this.bd.F.cf()-this.dk.cf();h.TP=this.op();this.Qb.F.P("width",h.FL+"px");this.Qb.F.P("height",h.jC+"px");this.Qb.F.P("top",0).P("right",h.zb.aG+"px").P("left","").P("bottom","");this.dk.F.P("left",b+"px").P("top","").P("right","").P("bottom","");break;case "right":h.UP=b,h.TP=this.op(),this.Qb.F.P("width",h.FL+"px"),this.Qb.F.P("height",h.jC+"px"),this.Qb.F.P("top",0).P("left",0).P("right","").P("bottom",""),h.wP=a-this.Qb.F.cf()-
this.dk.cf(),h.nJ=this.op(),this.bd.F.P("width",h.vn+"px"),this.bd.F.P("height",h.un+"px"),this.bd.F.P("top",0).P("right",h.zb.aG+"px").P("left","").P("bottom",""),this.dk.F.P("left",b+"px").P("top","").P("right","").P("bottom","")}this.Qb.F.P("position","absolute");this.bd.F.P("position","absolute");this.Qb.gb();this.bd.gb()};h.prototype.Xea=function(d){null==this.tk&&this.tra();for(var b,a=this.ja.ga.sa.ad(),c=0;c<a.length;c++){var e=a[c];e.uniqueName==d.measure.uniqueName&&e.$==d.measure.$&&(b=
e)}this.tk.Xr(this.ja.G,this.ja.ga.sa,d.lg,d.Qg,b,d.cell)};h.prototype.SFa=function(d){if(null!=this.ja.ga&&null!=this.ja.ga.I){var b=this.ja.ga.I.rc(!1).getItem(d),a=this.ja.ga.sa;null!=b&&(a.pages.Bb(d)||a.rows.Bb(d)||a.columns.Bb(d))&&(d={hierarchy:b.Ji()},f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Uw,d)),this.cH(b))}};h.prototype.tU=function(){f.v(this.ja.Ga.fa)||this.ja.Ga.fa.ob||("right"==f.model.B.C.$F?(f.model.B.C.zF=!0,f.model.B.C.An=!0,this.gb()):this.Yh.open(this.ja.ga.I,this.ja.ga.sa,
this.ja.Ga.fa.Ba))};h.prototype.nK=function(){"right"==f.model.B.C.$F?(f.model.B.C.zF=!1,f.model.B.C.An=!1,this.gb()):this.Yh.close()};h.prototype.g2=function(d){if(!x.Mc.og(this.ja.ga.sa.memberProperties)){var b=new f.model.bb.SliceValueObject;b.memberProperties=this.ja.ga.sa.memberProperties;d.data.memberProperties=b.memberProperties}this.ja.ae(d.data)};h.prototype.FAa=function(){return!f.v(this.ja.Ga.fa)&&(!this.ja.Ga.fa.Hc||this.ja.Ga.fa.Ba===f.u.i.oa.API)&&!this.ja.ga.I.ob||f.model.B.C.zv&&this.ja.Ga.fa.Ba===
f.u.i.oa.Nc};h.prototype.vM=function(d,b){d=void 0===d?null:d;b=void 0===b?null:b;f.v(this.ja.Ga.fa)||this.ja.Ga.fa.ob||!this.FAa()||(f.v(b)||(this.Ex="string"==typeof b?f.model.Qa.xca(b):b),f.ha(d)||f.model.Ta.U().N(k.Ka.yj.Bz,this.Hx),f.model.Ta.U().Da(new k.Ka.WV(d)),f.model.Ta.U().N(k.Ka.yj.Az,this.Gx),f.model.Ta.U().N(k.Ka.yj.Cz,this.Ix))};h.prototype.hu=function(d){f.model.Ta.U().mb(k.Ka.yj.Az,this.Gx);f.v(this.Ex)||this.Ex({uniqueName:d.Nr,isRemoved:!1});this.Ex=null};h.prototype.iu=function(d){f.model.Ta.U().mb(k.Ka.yj.Bz,
this.Hx);f.v(this.Ex)||this.Ex({uniqueName:d.Nr,isRemoved:!0});this.Ex=null};h.prototype.mM=function(){f.model.Ta.U().mb(k.Ka.yj.Cz,this.Ix);this.Ex=null};h.prototype.YDa=function(d){null==this.Oj&&this.IY();this.Oj.F.Ua("fm-charts-filter",!0);this.iU(d)};h.prototype.ZDa=function(d){null==this.Oj&&this.IY();this.Oj.F.Ua("fm-charts-filter",!1);this.iU(d)};h.prototype.iU=function(d){var b={hierarchy:d.hierarchy.Ji()};f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Uw,b));this.cH(d.hierarchy)};h.prototype.cH=
function(d){null==this.Oj&&this.IY();this.Oj.Xr(d)};h.prototype.Eta=function(){null!=this.tk&&this.tk.close()};h.prototype.Xva=function(){null!=this.Ml&&null!=this.BV||this.fra();this.V(this.Ml);this.Ml.Ua("fm-layout-660",660>this.Ml.cf());this.Ml.Ua("fm-layout-520",520>this.Ml.cf());var d="";f.model.Ea.pc.uu&&(d=f.model.Ea.na.J(f.model.Ea.na.Xha)+"("+x.gh.format(f.model.Ea.pc.XF,"MM/dd/yyyy")+")",new Date(Date.now()+432E6)>f.model.Ea.pc.XF&&(d+=f.model.Ea.na.J(f.model.Ea.na.Lwa)));f.model.Ea.pc.Ro&&
(x.Bda()||f.model.Ea.pc.Oaa||(d=f.model.Ea.na.J(f.model.Ea.na.Ova)+f.model.Ea.pc.B1+")"));this.BV.Za(d,!0)};h.prototype.h2=function(){this.tU()};h.prototype.kp=function(d){if(this.Nm||this.C0)73===d.keyCode&&(d.ctrlKey||d.metaKey)&&d.altKey&&this.mha(),72===d.keyCode&&(d.ctrlKey||d.metaKey)&&d.altKey&&this.uIa(!this.lT),27===d.keyCode&&(null!=this.Oj&&this.Oj.close(),null!=this.tk&&(this.tk.Ms.Zt?this.tk.Ms.close():this.tk.close()),null!=this.oF&&this.oF.isVisible()?this.oF.close():this.Yh.close())};
h.prototype.uIa=function(d){var b=this;d?(d=document.querySelector("link[data-fm-hc-theme]"))?(d.disabled=!1,this.lT=!0,this.gb()):x.mn.D1(this.gda,{eK:{"data-fm-hc-theme":""},Wi:!0},function(){b.lT=!0;b.gb()}):(x.mn.PJa(),this.gb(),this.lT=!1)};h.prototype.vIa=function(d){this.gda=d};h.prototype.QDa=function(d){var b=this;this.tk&&this.tk.isVisible()?this.tk.Nj(d.Dt,d.lb,d.Fo):f.model.B.C.he==k.xd.xs?(this.Qb.G=f.u.bf.ij.uc(f.model.B.C.DG==k.X.ie.ih?"flat":"pivot"),this.Qb.Nj(d.Dt,d.lb,d.Fo)):f.model.B.C.he!=
k.xd.Ki||d.Dt!=f.model.vc.Li.xh&&d.Dt!=f.model.vc.Li.XD?f.model.B.C.he==k.xd.Ki?(null==this.bd&&this.hF(),this.bd.Nj(d.lb)):f.model.B.C.he==k.xd.fn&&(d.Dt==f.model.vc.Li.Vz||d.Dt==f.model.vc.Li.Lu||d.Dt==f.model.vc.Li.dA?(null==this.bd&&this.hF(),this.bd.Nj(d.lb,!0,function(a){b.Qb.Nj(d.Dt,d.lb,d.Fo,a)})):this.Qb.Nj(d.Dt,d.lb,d.Fo)):(this.Qb.G=f.u.bf.ij.uc(f.model.B.C.DG==k.X.ie.ih?"flat":"pivot"),this.YF=d,h.zb.N(k.pi.fo,this.rba),this.Qb.gb())};h.prototype.$Ea=function(){var d=this;f.model.B.C.he==
k.xd.xs?this.Qb.print():f.model.B.C.he==k.xd.Ki?(null==this.bd&&this.hF(),this.bd.print()):f.model.B.C.he==k.xd.fn&&(null==this.bd&&this.hF(),this.bd.print(function(b){return d.gDa(b)}))};h.prototype.gDa=function(d){this.Qb.print(d)};h.prototype.KS=function(){f.model.Ea.pc.oj();return f.model.Ea.pc.Cx||f.model.Ea.pc.pp?!1:!0};h.prototype.iAa=function(){return!f.model.Ea.pc.pp&&!f.model.Ea.pc.Ro&&!f.model.Ea.pc.Cx};h.prototype.mha=function(){var d=new Date(parseFloat(f.Ug.NV)/61),b=x.gh.format(d,"MMMM yyyy")+
" (v. "+f.Ug.qs+")";b+=f.model.Ea.na.J(f.model.Ea.na.gB);b+=f.O.bind(f.model.Ea.na.J(f.model.Ea.na.Msa),x.gh.format(d,"MM/dd/yyyy HH:mm:ss"));b+=f.model.Ea.na.J(f.model.Ea.na.gB);b+=f.model.Ea.na.J(f.model.Ea.na.yva)+f.model.Ea.pc.UBa();f.model.Ea.pc.Ro?b+=f.model.Ea.na.J(f.model.Ea.na.UFa)+f.model.Ea.pc.B1:f.model.Ea.pc.pp&&(b+=f.model.Ea.na.J(f.model.Ea.na.Uva)+f.model.Ea.pc.oea);d=!1;f.model.Ea.pc.uu?f.model.Ea.pc.Ro||f.model.Ea.pc.pp?b+=f.model.Ea.na.J(f.model.Ea.na.QBa)+x.gh.format(f.model.Ea.pc.XF,
"MM/dd/yyyy"):(d=!0,b+=f.model.Ea.na.J(f.model.Ea.na.JJa)+x.gh.format(f.model.Ea.pc.XF,"MM/dd/yyyy")):b+=f.model.Ea.na.J(f.model.Ea.na.RBa);d||(b+=f.model.Ea.na.J(f.model.Ea.na.Eha)+x.gh.format(f.model.Ea.pc.vV,"MM/dd/yyyy"));b+=f.model.Ea.na.J(f.model.Ea.na.TBa)+f.model.Ea.pc.Rx;b+=f.model.Ea.na.J(f.model.Ea.na.info);f.Va(b,f.model.Ea.na.J(f.model.Ea.na.Mta),f.rb.pO)};h.prototype.Rf=function(d,b){return this.Qb.Rf(d,b)};h.prototype.sS=function(d,b){return this.Qb.sS(d,b)};h.prototype.xG=function(){return this.Qb.xG()};
h.prototype.gz=function(d,b){this.Qb.gz(d,b)};h.prototype.bD=function(){this.Qb.bD()};h.prototype.UEa=function(d){null==this.oF&&this.hra();this.oF.Xr(d.Nr)};h.prototype.VEa=function(d){null==this.contextMenu&&this.kra();var b=d.data.ACa;b&&0<b.length&&this.contextMenu.Xn(this.F,b,d.data.coords,null,d.data.YJ)};h.prototype.UCa=function(){var d=this;0==this.KF.length&&(this.fga=f.pe(function(){d.Wa(k.pi.YW)},1))};h.prototype.hra=function(){this.oF=new k.Ka.UD;this.V(this.oF)};h.prototype.hF=function(){var d=
this;this.bd=new k.td.Du;this.bd.N(k.pi.Uw,function(b){return d.YDa(b)});this.bd.N(k.pi.$V,function(b){return d.Xea(b)});this.V(this.bd)};h.prototype.tra=function(){this.tk=new k.vf.WD;this.V(this.tk)};h.prototype.IY=function(){this.Oj=new k.filter.Hla;this.Oj.N(y.da.OPENED,function(){});this.Oj.N(y.da.CLOSED,function(){});this.V(this.Oj)};h.prototype.Rra=function(){var d=this;this.dk=new A.iP;this.dk.$a();this.dk.N(A.iP.gW,function(b){return d.AFa(b)});this.V(this.dk)};h.prototype.kra=function(){this.contextMenu=
new A.No.wE(h.zb.F);this.contextMenu.Y("fm-context-menu");this.contextMenu.$a();this.V(this.contextMenu)};h.prototype.fra=function(){var d=this;this.Ml=new A.Vb.ye;this.Ml.Y("fm-branding-bar");this.BV=new A.Oc;this.BV.Y("fm-version-label");this.Ml.V(this.BV);this.AV=new A.Oc;this.AV.Y("fm-link");this.AV.Za(f.model.Ea.na.J(f.model.Ea.na.Dfa),!0);this.Ml.V(this.AV);var b=new A.Aa("span","fm-info-icon");b.N("click",function(){return d.mha()});this.AV.F.append(b);this.IV=new k.Hpa};h.prototype.dispose=
function(){this.ja=null;this.Qb&&this.Qb.dispose();this.bd&&this.bd.dispose();this.tk&&this.tk.dispose();this.F.dispose();this.Ue.dispose();k.GN.dispose();k.filter.M6.dispose();k.VW.dispose();A.IK.VN.dispose();x.sO.dispose();h.zb=null;this.toolbar&&(this.toolbar.dispose&&this.toolbar.dispose(),this.toolbar=null);this.TE&&(this.TE.Od(y.da.ZW),this.TE.dispose(),this.TE=null)};q.Object.defineProperties(h.prototype,{ada:{configurable:!0,enumerable:!0,get:function(){return this.toolbar&&null!=this.toolbar.create}},
xD:{configurable:!0,enumerable:!0,get:function(){if(this.toolbar){var d=A.Aa.Pb(this.Ue.element.querySelector("#fm-toolbar-wrapper"));return null==d?0:d.height}return 0}},aG:{configurable:!0,enumerable:!0,get:function(){return"right"==f.model.B.C.$F&&f.model.B.C.An?this.X8:0},set:function(d){this.X8=d}},EL:{configurable:!0,enumerable:!0,get:function(){return this.Qb.EL}},DL:{configurable:!0,enumerable:!0,get:function(){return this.Qb.DL}}});q.Object.defineProperties(h,{tu:{configurable:!0,enumerable:!0,
get:function(){var d=h.zb.F.borderWidth;return h.zb.Ue.cf(x.jT())-d.left-d.right}},wha:{configurable:!0,enumerable:!0,get:function(){var d=h.zb.F.borderWidth;return h.zb.Ue.qd(x.jT())-d.top-d.bottom}},vn:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.he==k.xd.fn?h.wP:h.tu-h.zb.aG}},un:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.he==k.xd.fn?h.nJ:h.zb.op()}},FL:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.he==k.xd.fn?h.UP:h.tu-h.zb.aG}},jC:{configurable:!0,
enumerable:!0,get:function(){return f.model.B.C.he==k.xd.fn?h.TP:h.zb.op()}}});k.Hb=h})(f.K||(f.K={}))})(w||(w={}));(function(f){(function(k){function h(){}h.Cg=function(d){if(f.v(d)||"string"!=typeof d)return!1;d=d.toLowerCase();return d==h.xs||d==h.Ki||d==h.fn};h.xs="grid";h.Ki="charts";h.fn="grid_charts";k.xd=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(){this.Hl=0;this.ZE=!1;this.sJ=this.RE="";this.cF=!1}h.prototype.show=function(d,b,a,c,e){var g=this;c=void 0===c?!0:c;e=void 0===e?!1:e;d?(e&&this.b4(d,b,a,c),0==this.ZE?(this.ZE=d,this.RE=b,this.sJ=a,this.cF=c,this.Hl=f.pe(function(){return g.Gha()},h.U5)):0==this.Hl?this.b4(d,b,a,c):(this.ZE=d,this.RE=b,this.sJ=a,this.cF=c)):(e&&this.b4(d,b,a,c),1==this.ZE&&(this.ZE=d,this.Hl=f.pe(function(){return g.Gha()},h.U5)))};h.prototype.b4=function(d,b,a,c){this.hga();
this.Hfa(d,b,a,c)};h.prototype.Gha=function(){this.hga();this.Hfa(this.ZE,this.RE,this.sJ,this.cF)};h.prototype.hga=function(){f.Dr(this.Hl);this.Hl=0};h.prototype.Hfa=function(d,b,a,c){k.VW.U()&&k.VW.U().Xr(d,b,a,c)};h.U=function(){null==h.ne&&(h.ne=new h);return h.ne};h.dispose=function(){h.ne=null};h.U5=250;k.ioa=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(){if(null!=h.ne)throw Error("Singleton");var d=A.Vb.mh.call(this,k.Hb.zb.F)||this;d.Y("fm-preloader-view");d.$j("status");d.te();return d}u(h,A.Vb.mh);h.prototype.Xr=function(d,b,a,c){this.RE=void 0===b?"":b;this.sJ=void 0===a?"":a;this.Dqa=void 0===c?!0:c;void 0===d||d?this.open():this.close()};h.prototype.open=function(){A.Vb.mh.prototype.open.call(this);this.gb()};h.prototype.te=function(){this.QC.Y("fm-overlay-preloader");this.QC.mb("click",this.z9);this.h9=
new A.Ca("div","fm-spinner");this.h9.Cm();this.V(this.h9);this.lr=new A.Oc;this.lr.Cm();this.lr.Y("fm-message-label");this.V(this.lr);this.xQ=new A.Oc;this.xQ.Cm();this.xQ.Y("fm-details-label");this.V(this.xQ);this.$a();k.Hb.zb.V(this)};h.prototype.gb=function(){this.QC.AIa(!this.Dqa);this.oH(this.RE);this.pIa(this.sJ);this.hc(this.RE);this.validate()};h.prototype.oH=function(d){this.lr.Za(d)};h.prototype.pIa=function(d){this.xQ.Za(d)};h.prototype.close=function(){A.Vb.mh.prototype.close.call(this);
this.clear()};h.prototype.clear=function(){this.oH("");this.oH("")};h.U=function(){if(null==k.Hb.zb)return null;null==h.ne&&(h.ne=new h);return h.ne};h.dispose=function(){h.ne=null};k.VW=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return A.Vf.vo.apply(this,arguments)||this}function b(){var a=A.Aa.call(this,"div","fm-charts-layout")||this;a.d4=!0;a.gea=f.u.i.ia.Ia;a.$k();a.te();return a}u(b,A.Aa);b.prototype.te=function(){this.WZ();this.bva()};b.prototype.WZ=function(){this.yo=new A.Oc;this.yo.F.display="block";this.yo.Y("fm-chart-title");this.yo.Y("fm-pivot-title");this.yo.gV(!0);this.yo.F.P("position","relative");this.yo.$a();this.cB(this.yo)};b.prototype.bva=function(){var a=
this;this.hr=new A.Ca("div","fm-ui-row fm-header-toolbar");this.cB(this.hr);this.mv=new A.Ca("div","fm-ui-col-2");this.mv.F.display="inline-block";this.hr.V(this.mv);this.Gl=new A.hd.$q;this.Gl.Y("fm-chart-measures-dropdown");this.Gl.N(y.da.Qd,function(c){return a.CEa(c)});this.Gl.$a();this.mv.V(this.Gl);this.nv=new A.hd.$q;this.nv.Y("fm-chart-pie-dropdown");this.nv.N(y.da.Qd,function(c){return a.ZEa(c)});this.nv.$a();this.mv.V(this.nv);this.Ts=new A.Ca("div","fm-ui-col-2 fm-charts-filters-container");
this.Ts.F.display="inline-block";this.hr.V(this.Ts);this.ev=new A.hd.$q;this.ev.zk=!1;this.ev.Y("fm-charts-filters-btn");this.ev.Mh(f.model.A.j.mA);this.ev.N(y.da.Qd,function(c){return a.Zea(c)});this.ev.Lh(this.Qwa);this.hr.V(this.ev)};b.prototype.Qwa=function(a,c){var e=new d;e.setData(a);e.am(c);e.Y("fm-charts-filter");e.F.attr("title",f.model.A.j.mA);return e};b.prototype.resize=function(a,c){this.OA=a;this.NA=c};b.prototype.gb=function(){this.width=this.OA;this.height=this.NA;f.v(this.G)||this.G.ob?
this.RIa&&this.nwa():(f.ha(f.model.B.C.Dm)||this.k_(),null!=this.xb&&(this.hr.F.Ua("fm-fields-list-padding",this.fAa),f.model.B.C.jz&&f.model.B.C.QIa&&this.$va(),this.xb.type!=h.xe.TD&&f.model.B.C.NIa&&this.gwa(),this.xb.type==h.xe.Ou&&1<this.xb.Hk.length&&this.kwa(),f.model.B.C.MIa&&this.xb.Te&&0<this.xb.Te.length&&this.Yaa(),this.Waa(),f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.LV))))};b.prototype.clear=function(){this.yo.$a();this.hr.$a();this.Gl.$a();this.nv.$a();this.Ts.$a();this.ev.$a();this.mv.ud("fm-wide");
this.xo&&(this.xo.sg(!0),this.xo=null);this.um&&(this.um.sg(!0),this.um=null);this.$A&&this.$A.$a()};b.prototype.nwa=function(){null==this.$A&&(this.$A=new A.Oc(f.model.A.j.w5),this.$A.Y("fm-charts-msg"),this.cB(this.$A));this.$A.Za(f.model.A.j.w5);this.$A.show()};b.prototype.k_=function(){this.yo.Za(f.model.B.C.Dm);this.yo.show()};b.prototype.gwa=function(){for(var a=[],c=this.G.measures,e=this.xb.PJ,g=0;g<c.length;g++){var l=c[g],m=new f.model.bb.Ig(l.uniqueName,l.$,l.index);m.label=f.O.In(l.label,
!0,!0);a.push(m)}if(f.model.B.C.gha||!f.model.B.C.gha&&1<a.length){this.Gl.lD(f.model.A.j.cja);this.Gl.GBa=this.Gl.qr&&this.xb.Ny;this.Gl.qr=this.xb.Ny;this.Gl.Cf(a);if(this.xb.Ny){c=[];for(g=0;g<a.length;g++)for(l=a[g],m=0;m<e.length;m++)if(l.uniqueName==e[m].uniqueName&&(l.$==e[m].$||f.ha(e[m].$))&&(l.index==e[m].index||-1==e[m].index)){c.push(g);break}this.Gl.TM(c)}else{a=e[0];var n=new f.model.bb.Ig(a.uniqueName,a.$,a.index);this.Gl.gs(function(p){return p.index===n.index})}this.Gl.show();this.hr.show();
this.xb.type==h.xe.Ou&&1<this.xb.Hk.length?this.Gl.tj(this.mv.cf()/2-10):this.Gl.tj(this.mv.cf()-10)}};b.prototype.kwa=function(){for(var a=[],c=0;c<this.xb.Hk.length;c++)a.push({label:f.O.In(this.xb.Hk[c].label,!0,!0)});this.nv.Cf(a);this.nv.ak(f.model.B.C.NQ);this.nv.show();this.hr.show();this.nv.tj(this.mv.cf()/2-10)};b.prototype.$va=function(){this.Ts.F.ww();if(null!=f.u.Na.U().sa){for(var a=f.u.Na.U().sa.rc(!1),c=0;c<a.length;c++)this.Ts.V(this.Zua(a.ea(c)));this.Ts.show();this.hr.show();for(c=
a=0;c<this.Ts.F.element.children.length;c++){var e=this.Ts.F.element.children.item(c);a+=e.offsetWidth}a>this.Ts.cf()&&this.awa()}};b.prototype.awa=function(){for(var a=[],c=f.u.Na.U().sa.rc(!1),e=0;e<c.length;e++){var g=c.ea(e);a.push({label:g.caption,uniqueName:g.uniqueName,d1:g.filter.$g})}this.ev.Cf(a);this.ev.show();this.Ts.$a();this.mv.Y("fm-wide")};b.prototype.Zua=function(a){var c=this,e=new A.Jf;e.Y("fm-ui-btn-superlight");e.Y("fm-charts-filter");e.F.Ua("fm-filtered",a.filter.$g);e.N(A.sd.Xe,
function(g){return c.Zea(g)});e.Za(a.label);e.F.attr("data-hierarchy",a.uniqueName);e.F.attr("title",f.model.A.j.mA);return e};b.prototype.Waa=function(){var a=this;null!=this.xo&&this.xo.sg(!0);this.xo=h.Qja.lya(this.xb.type);this.cB(this.xo);this.xo.Y3(function(e,g,l){return a.NFa(e,g,l)});var c=this.NA-this.yo.qd(!0)-this.hr.qd(!0)-this.xo.padding.top-this.xo.padding.bottom;this.um&&(c-=this.um.F.element.offsetHeight);this.xo.Jd(this.xb,this.OA-20,c);this.xo.F.P("max-width",this.OA+"px");this.xo.F.P("max-height",
c+"px")};b.prototype.Yaa=function(){var a=this;null!=this.um&&this.um.sg(!0);this.um=new h.Te.Rja(this.d4);this.um.Y("fm-chart-legend");this.um.kIa(function(c,e,g){return a.tEa(c,e,g)});this.um.N(y.da.Qd,function(){return a.sEa()});this.um.lIa(this.xb.Ko);this.um.Jd(this.xb.Te);this.um.OG.P("max-height",(this.NA-this.yo.qd(!0)-this.hr.qd())/2+"px");this.cB(this.um)};b.prototype.sEa=function(){this.d4=!this.d4;this.Yaa();this.Waa()};b.prototype.Zx=function(a,c,e){null==e||e.Wb||e.Bi||((a==f.u.i.ia.Ia?
this.G.Hh(c,e):this.G.Rj(c,e))?this.G.To(c,e,a):this.G.tf(c,e,a))};b.prototype.Ct=function(a,c){a==f.u.i.ia.Ia?this.G.Ih(c)?this.G.collapse(c,f.u.i.ia.Ia):this.G.expand(c,f.u.i.ia.Ia):this.G.Sj(c)?this.G.collapse(c,f.u.i.ia.Sa):this.G.expand(c,f.u.i.ia.Sa)};b.prototype.lba=function(a,c){a==f.u.i.ia.Ia?c.length<=f.model.B.C.Cv.length?this.G.collapse(c,f.u.i.ia.Ia):this.G.expand(c,f.u.i.ia.Ia):c.length<=f.model.B.C.sF.length?this.G.collapse(c,f.u.i.ia.Sa):this.G.expand(c,f.u.i.ia.Sa)};b.prototype.Zea=
function(a){a=a.type==y.da.Qd?a.data.Fk.uniqueName:a.target.F.attr("data-hierarchy");a=f.u.Na.U().I.Mg(a);this.Da(new k.kO(a))};b.prototype.tEa=function(a,c,e){this.gea=this.xb.EC;f.model.B.C.Io?"expand"==a?this.lba(this.xb.EC,c):"drill"==a&&this.Zx(this.xb.EC,c,e):"expand"==a?this.Ct(this.xb.EC,c):"drill"==a&&this.Zx(this.xb.EC,c,e)};b.prototype.NFa=function(a,c,e){var g=this.xb.EC==f.u.i.ia.Sa?f.u.i.ia.Ia:f.u.i.ia.Sa;this.gea=g;f.model.B.C.Io?"expand"==a?this.lba(g,c):"drill"==a&&this.Zx(g,c,e):
"expand"==a?this.Ct(g,c):"drill"==a&&this.Zx(g,c,e)};b.prototype.CEa=function(a){if(this.xb.Ny){for(var c=[],e=this.Gl.vL().slice(),g=0;g<e.length;g++)(a=e[g])&&c.push(a);f.model.B.C.kK=c}else f.model.B.C.Ho=a.data.Fk;this.Wa("chart_changed")};b.prototype.ZEa=function(a){f.model.B.C.NQ=a.data.selectedIndex;this.Wa("chart_changed")};q.Object.defineProperties(b.prototype,{Dp:{configurable:!0,enumerable:!0,get:function(){return this.yo}},Te:{configurable:!0,enumerable:!0,get:function(){return this.um}},
sr:{configurable:!0,enumerable:!0,get:function(){return this.xo}},fAa:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.IZ&&!(f.model.B.C.An&&"right"==f.model.B.C.$F)&&!(f.model.B.C.he==k.xd.fn&&("bottom"==f.model.B.C.nB||"left"==f.model.B.C.nB))}},RIa:{configurable:!0,enumerable:!0,get:function(){return f.model.Ta.U().Ga.cD==f.model.cc.fd.Oh&&(f.v(this.G)||this.G.ob&&!f.model.B.C.hha)}}});h.Uja=b;u(d,A.Vf.vo);d.prototype.gb=function(){var a=this.getData();null==this.label&&(this.label=
new A.Oc,this.label.Y("fm-text-display"),this.F.append(this.label.F));this.label.Za(a[this.rq()],!0);this.F.Ua("fm-filtered",!0===a.d1);this.F.attr("data-hierarchy",a.uniqueName)}})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(){}b.validate=function(a){return a==b.Dz||a==b.ID||a==b.xI||a==b.Ou||a==b.VI||a==b.kA||a==b.TD?a:a==b.Hoa?b.kA:a==b.gja?b.TD:a==b.j5?b.ID:b.Dz};b.Oda=function(a){if("string"!=typeof a||f.ha(a))return!1;a=a.toLowerCase();return a==b.Dz||a==b.ID||a==b.j5||a==b.xI||a==b.VI?!0:!1};b.Dz="column";b.ID="bar_h";b.j5="bar_horizontal";b.xI="line";b.Ou="pie";b.VI="scatter";b.kA="stacked_column";b.Hoa="bar_stack";b.TD="column_line";b.gja="bar_line";
h.xe=b;d.iA="series";d.uE="series_label";d.kma="legend";h.bn=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){if(!f.v(a))for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c])}b.prototype.La=function(){var a={};f.v(this.label)||(a.label=this.label);f.v(this.color)||(a.color=this.color);f.v(this.Xb)||(a.member=this.Xb.La());f.v(this.We)||(a.tuple=this.LJa==f.u.i.ia.Ia?f.model.Ta.U().ga.sa.LZ(this.We):f.model.Ta.U().ga.sa.KZ(this.We));f.v(this.measure)||(a.measure={uniqueName:this.measure.uniqueName,caption:this.measure.caption,aggregation:this.measure.$});
f.v(this.level)||(a.level=this.level);f.v(this.zf)||(a.isExpanded=this.zf);f.v(this.isCollapsed)||(a.isCollapsed=this.isCollapsed);f.v(this.Pg)||(a.isDrilledDown=this.Pg);f.v(this.IG)||(a.isDrilledUp=this.IG);return a};d.g7=b;d.Sja=function(){this.Ny=!1;this.Lw=this.ps=this.os="";this.Hk=[];this.ii=[];this.EC=f.u.i.ia.Sa;this.Zv=[];this.data=[];this.Nv=[];this.pD=this.Bv=this.Yda=this.Sda=this.uda=this.fw=this.Xd=this.Tf=!1}})(h.W||(h.W={}))})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.ye.call(this)||this;b.vn=600;b.un=400;b.Jea=15;b.P1=3;b.Y("fm-chart");return b}u(d,A.Vb.ye);d.prototype.Jd=function(b,a,c){this.vn=a;this.un=c;this.xb=b;this.tAa(this.vn,this.un)};d.prototype.tAa=function(b,a){d3v3.select(k.Hb.zb.Ue.element).select(".fm-chart").selectAll("svg").remove();this.svg=d3v3.select(k.Hb.zb.Ue.element).select(".fm-chart").append("svg").attr("width",b).attr("height",a).append("g")};d.prototype.Y3=function(){};d.prototype.s_=
function(b){this.F.P("overflow-y","auto");d3v3.select(k.Hb.zb.Ue.element).select(".fm-chart").selectAll("svg").attr("height",b)};d.prototype.hba=function(b){this.F.P("overflow-x","auto");d3v3.select(k.Hb.zb.Ue.element).select(".fm-chart").selectAll("svg").attr("width",b)};d.prototype.Vk=function(b,a){if(f.pg(h.Du.BB)){var c=h.Du.BB,e=h.Du.K$,g=this.xb.type;b.each(function(l){l=e(l.data?l.data:l);l.type=a;l.chartType=g;c(this,l)})}};d.prototype.xP=function(b){var a=this;b.forEach(function(c){Infinity===
Math.abs(c.value)&&(c.value=0);c.wh&&a.xP(c.wh)})};h.Au=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=h.Au.call(this)||this;b.os="";b.ps="";b.Lw="";b.vN=0;b.pia=0;b.vha=!1;b.nz=10;b.mF=200;b.ZY=[0,15,30,45,60,75,90];return b}u(d,h.Au);d.prototype.Jd=function(b,a,c){h.Au.prototype.Jd.call(this,b,a,c);this.os=b.os;this.ps=b.ps;this.Lw=b.Lw};d.prototype.Ij=function(b,a){this.rv=this.vn;this.Ps=this.un;this.nz=this.xb.pD?20:10;this.mF=this.rv/5;this.xP(b);this.CY(b,a);this.svg.attr("transform","translate("+this.JV+", "+this.nz+")")};d.prototype.oL=
function(b){return d3v3.max(b,function(a){return d3v3.max(a.wh,function(c){return c.value})})};d.prototype.rL=function(b){return d3v3.min(b,function(a){return d3v3.min(a.wh,function(c){return c.value})})};d.prototype.Y3=function(b){this.pt=b};d.prototype.Ct=function(b){if(!f.v(b)&&this.pt){var a=b.data,c=b.Nv,e=b.Lg||b.ng;b.collapsed||b.wf?this.pt("expand",a,c):e&&this.pt("drill",a,c)}};d.prototype.CY=function(b,a){var c=this.vn,e=this.un,g=this.oL(b),l=this.rL(b);g=0>g&&(!this.xb.Bv||l==g)?0:g;l=
0>l||this.xb.Bv&&l!=g?l:0;this.yl=d3v3.scale.linear().range([e,0]).domain([l,g]).nice();var m=this.xb.Kt,n=this.xb.Tf,p=this.xb.Xd,t=this.xb.fw,r=!0===f.model.B.C.rF||null===f.model.B.C.rF&&1E7<g,v=this.xb.Rba,z=d3v3.svg.axis().scale(this.yl).orient("left").tickFormat(function(Q){return f.O.Eaa(v(Q,m,n,p,t,r))}),B=0,C=0,E=0;b=this.svg.append("g").attr("class","fm-y fm-axis").call(z).each(function(){B=this.getBBox().width});b.append("text").attr("class","fm-y fm-axis fm-axis-label fm-title").text(this.ps).each(function(){C=
this.getBBox().width}).style("text-anchor","end").attr("dy","-0.5em").attr("transform","translate(-"+B+", 0) rotate(-90)");b.each(function(){B=this.getBBox().width;c-=B});this.JV=B;var K=!f.v(a)&&0<a.length;if(K){var J=this.oL(a),aa=this.rL(a);J=0>J&&(!this.xb.Bv||aa==J)?0:J;aa=0>aa||this.xb.Bv&&aa!=J?aa:0;var H=!0===f.model.B.C.rF||null===f.model.B.C.rF&&1E7<J;this.uN=d3v3.scale.linear().range([e,0]).domain([aa,J]).nice();var G=this.xb.L_,F=this.xb.uda,I=this.xb.Sda,N=this.xb.Yda,L=d3v3.svg.axis().scale(this.uN).orient("right").tickFormat(function(Q){return f.O.Eaa(v(Q,
G,F,I,N,H))}),O=0,T=this.svg.append("g").attr("class","fm-y fm-axis fm-axis-2").call(L).each(function(){O=this.getBBox().width});T.append("text").attr("class","fm-y fm-axis fm-axis-label-2 fm-title").text(this.Lw).each(function(){E=this.getBBox().width}).attr("dy","1.3em").attr("transform","translate("+(O+20)+", 0) rotate(90)");T.each(function(){O=this.getBBox().width+2;c-=O}).attr("transform","translate("+c+", 0)")}var M=this.xb.Hk,V=Math.max(M.length*Math.max(this.vha?this.P1:this.xb.Zv.length*
this.P1,this.Jea),c);K&&T.attr("transform","translate("+V+", 0)");a=V>c;this.wj=d3v3.scale.ordinal().rangeRoundBands([0,V],a?0:.1).domain(M.map(function(Q){return Q.id}));M=d3v3.svg.axis().scale(this.wj).tickFormat(function(){return""}).orient("bottom");M=this.svg.append("g").attr("class","fm-x fm-axis").call(M);this.SY(M);var P,W=M.each(function(){P=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.os).attr("transform",
"translate("+(a?0:V/2)+", "+P+")"),ca=this.os;W.each(function(){this.getBBox().width>=V&&W.append("svg:title").text(ca)});e-=this.nz;e=a?e-16:e;var X=!1;M.each(function(){P=this.getBBox().height;e=(X=P>4*e/5)?1*e/5:e-P}).attr("transform","translate(0,"+e+")");b.select(".fm-y.fm-axis-label").style("text-anchor",C<e?"middle":"end").attr("transform","translate(-"+(B-20)+","+(C<e?e/2:0)+") rotate(-90)");K&&T.select(".fm-y.fm-axis-label-2").style("text-anchor",E<e?"middle":"start").attr("transform","translate("+
(O+5)+","+(E<e?e/2:0)+") rotate(90)");X&&this.s_(e+P+this.nz);var ea=Math.min(60,e/2);b.select(".tick").each(function(){var Q=this.getBBox().height;ea=Math.max(ea,Q)});M=Math.floor(e/ea);n&&1>(g-l)/M&&(M=g-l);z.ticks(M);this.yl.range([e,0]);b.call(z);K&&(L.ticks(M),this.uN.range([e,0]),T.call(L));this.vN=0<l&&0<g?this.yl.domain()[0]:0>l&&0>g?this.yl.domain()[1]:0;K&&(this.pia=0<aa&&0<J?this.uN.domain()[0]:0>aa&&0>J?this.uN.domain()[1]:0);this.rv=c;this.Ps=e;var fa=this.yl;g=fa.ticks(M);g.shift();
b.selectAll(".refline").data(g).enter().append("line").attr("class","fm-refline").attr("x1",0).attr("x2",V).attr("y1",function(Q){return fa(Q)}).attr("y2",function(Q){return fa(Q)});a&&this.hba(K?B+V+O:B+V)};d.prototype.SY=function(b){var a=this,c=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.xb.ii).enter().append("g").attr("class","fm-level");var e=b.selectAll("text").data(function(C){return C}).enter().append("text").on("click",function(C){return a.Ct(C)}).attr("class",
"fm-label").style("text-anchor","middle").text(function(C){return C.wf||C.ng?"- "+C.label:C.collapsed||C.Lg?"+ "+C.label:C.label}).style("cursor",function(C){return C.collapsed||C.wf||C.ng||C.Lg?"pointer":"auto"});b.selectAll("text").filter(function(C){return C.kf&&0<C.kf.length||C.collapsed||C.wf||C.ng||C.Lg}).append("svg:title").text(function(C){return C.kf&&0<C.kf.length?C.kf:C.collapsed||C.Lg?f.model.A.j.gP:C.wf||C.ng?f.model.A.j.fP:""});var g=0;for(g=0;g<e.length;g++)this.yM(e[g],0);var l=Math.floor(this.wj.rangeBand()),
m=[],n=0;for(g=0;g<e.length;g++){var p=this.Zya(e[g],l);m.push(p);n=Math.max(n,p)}for(g=0;g<e.length;g++)0!=m[g]&&this.yM(e[g],-n);for(g=0;g<e.length;g++)0!=m[g]&&this.yM(e[g],-n);var t=[],r=6;b.each(function(){r+=this.getBBox().height+6;t.push(this.getBBox().height)});b.attr("transform",function(C,E){r-=t[E]+6;return"translate(0, "+r+")"});t=t.reverse();for(var v=this.wj,z=1<v.range().length?(v.range()[1]-v.range()[0]-v.rangeBand())/2:0,B=0;B<this.xb.ii.length;B++)c.selectAll(".refline").data(this.xb.ii[B].slice(1)).enter().append("line").attr("class",
"fm-refline").attr("x1",function(C){return v(C.id)-z}).attr("x2",function(C){return v(C.id)-z}).attr("y1",function(){return 0}).attr("y2",function(){for(var C=0,E=t.length-B,K=0;K<E;K++)C+=t[K]+6;return C})};d.prototype.yM=function(b,a){for(var c=0;c<b.length;c++)A.Aa.Pb(b[c]).P("text-anchor","middle"),A.Aa.Pb(b[c]).attr("dy","0.38em"),A.Aa.Pb(b[c]).attr("transform",this.v0(b[c])+(0!=a?" rotate("+a+")":""))};d.prototype.v0=function(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;var c=1<
this.wj.range().length?(this.wj.range()[1]-this.wj.range()[0]-this.wj.rangeBand())/2:0;return"translate("+(this.wj(b.id)+this.wj.rangeBand()*b.sB/2+c*(b.sB-1))+", "+a+")"};d.prototype.Zya=function(b,a){var c=0,e=0;b.forEach(function(g){g=g.getBBox();c<g.width&&(c=g.width,e=g.height)});return this.Osa(a,Math.sqrt(c*c+e*e),this.Kha(Math.atan(e/c)))};d.prototype.Osa=function(b,a,c){b=Math.min(90,this.Kha(Math.acos(b/a))+c||0);if(0==b)return 0;for(a=0;a<this.ZY.length;a++)if(this.ZY[a]>b)return this.ZY[a];
return b};d.prototype.Kha=function(b){return 180*b/Math.PI};d.prototype.GR=function(b,a){var c=this.xb.Ko,e=this.wj,g=0;if(0<this.xb.Zv.length){var l=this.xb.Zv;var m=d3v3.scale.ordinal().rangeRoundBands([0,e.rangeBand()],.1).domain(l);l=m.rangeBand();var n=Math.min(l,this.mF);g=l!=n?(l-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",function(r){return"translate("+(e(r.id)+g)+",0)"});var p=this.vN;l=b.selectAll("rect").data(function(r){return r.wh}).enter().append("rect");
l.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 f.v(r.jq)?c(r.id):c(r.jq)}).append("title").text(function(r){return r.kf});this.Vk(l,h.bn.iA);if(this.xb.pD){var t=0;b=b.selectAll("text").data(function(r){return r.wh}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.Br}).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.kf});this.Vk(b,h.bn.uE)}};d.prototype.j_=function(b,a){for(var c=this.wj,e=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 l=f.v(b[g].jq)?this.xb.Ko(b[g].id):this.xb.Ko(b[g].jq),m=this.svg.append("g"),n=m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",l).attr("d",function(p){return e(p.wh)});this.Vk(n,h.bn.iA);l=m.selectAll("circle").data(b[g].wh).enter().append("circle").attr("class","fm-circle").style("stroke",l).attr("cx",function(p){return c(p.id)+c.rangeBand()/2}).attr("cy",function(p){return a(p.value)}).attr("r",4);l.append("title").text(function(p){return p.kf});this.Vk(l,
h.bn.iA);this.xb.pD&&(m=m.selectAll("text").data(b[g].wh).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Br}),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.kf}),this.Vk(m,h.bn.uE))}};h.fj=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=h.Au.call(this)||this;b.os="";b.ps="";b.Lw="";b.vN=0;b.pia=0;b.nz=10;b.mF=200;return b}u(d,h.Au);d.prototype.Jd=function(b,a,c){h.Au.prototype.Jd.call(this,b,a,c);this.os=b.os;this.ps=b.ps;this.Lw=b.Lw};d.prototype.Ij=function(b,a){this.rv=this.vn;this.Ps=this.un;this.mF=this.rv/5;this.xP(b);this.CY(b,a);this.svg.attr("transform","translate("+this.JV+", "+this.nz+")")};d.prototype.oL=function(b){return d3v3.max(b,function(a){return d3v3.max(a.wh,
function(c){return c.value})})};d.prototype.rL=function(b){return d3v3.min(b,function(a){return d3v3.min(a.wh,function(c){return c.value})})};d.prototype.Y3=function(b){this.pt=b};d.prototype.Ct=function(b){if(!f.v(b)&&this.pt){var a=b.data,c=b.Nv,e=b.Lg||b.ng;b.collapsed||b.wf?this.pt("expand",a,c):e&&this.pt("drill",a,c)}};d.prototype.CY=function(b){var a=this.vn,c=this.un,e=this.oL(b),g=this.rL(b);e=0>e&&(!this.xb.Bv||g==e)?0:e;g=0>g||this.xb.Bv&&g!=e?g:0;this.yl=d3v3.scale.linear().range([0,a]).domain([g,
e]).nice();var l=this.xb.Kt,m=this.xb.Tf,n=this.xb.Xd,p=this.xb.fw,t=!0===f.model.B.C.rF||null===f.model.B.C.rF&&1E7<e,r=this.xb.Rba,v=d3v3.svg.axis().scale(this.yl).orient("bottom").tickFormat(function(L){return r(L,l,m,n,p,t)}),z=this.svg.append("g").attr("class","fm-y fm-axis").call(v),B,C;z.each(function(){C=B=this.getBBox().height}).append("text").attr("class","fm-x fm-axis fm-title").attr("dy","1.2em").style("text-anchor","middle").text(this.ps).attr("transform","translate("+a/2+", "+C+")");
c-=this.nz;z.each(function(){B=this.getBBox().height;c-=B});var E=this.xb.Hk,K=Math.max(E.length*Math.max(this.xb.Zv.length*this.P1,this.Jea),c);z.attr("transform","translate(0,"+K+")");b=K>c;this.wj=d3v3.scale.ordinal().rangeRoundBands([0,K],b?0:.1).domain(E.map(function(L){return L.id}));E=d3v3.svg.axis().scale(this.wj).orient("left").tickFormat(function(){return""});var J=0;E=this.svg.append("g").attr("class","fm-x fm-axis").call(E).each(function(){J=this.getBBox().width;a-=J});this.JV=J;this.SY(E);
E.each(function(){J=this.getBBox().width});var aa=E.append("text").attr("class","fm-x fm-axis fm-axis-label fm-title").text(this.os).style("text-anchor",b?"end":"middle").attr("dy","-0.5em").attr("transform","translate(-"+J+", "+(b?0:K/2)+") rotate(-90)"),H=this.os;aa.each(function(){this.getBBox().width>=K&&aa.append("svg:title").text(H)});a=b?a-16:a;var G=!1;E.each(function(){J=this.getBBox().width;a=(G=J>4*a/5)?1*a/5:a-J});G&&this.hba(a+J);this.JV=J;E=10;var F=20,I=0;z.selectAll(".tick").each(function(){F=
this.getBBox().width;I=Math.max(I,F)});a-=F/2;I*=1.8;a/E<I&&(E=Math.floor(a/I));m&&1>(e-g)/E&&(E=e-g);v.ticks(E);this.yl.range([0,a]);z.call(v);z.select(".fm-title").attr("transform","translate("+a/2+", "+C+")");this.vN=0<g&&0<e?this.yl.domain()[0]:0>g&&0>e?this.yl.domain()[1]:0;this.rv=a;this.Ps=c;var N=this.yl;e=N.ticks(E);e.shift();z.selectAll(".refline").data(e).enter().append("line").attr("class","fm-refline").attr("y1",0).attr("y2",-K).attr("x1",function(L){return N(L)}).attr("x2",function(L){return N(L)});
e=B+K+this.nz;b&&this.s_(e)};d.prototype.SY=function(b){var a=this,c=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.xb.ii).enter().append("g").attr("class","fm-level");var e=b.selectAll("text").data(function(r){return r}).enter().append("text").on("click",function(r){return a.Ct(r)}).attr("class","fm-label").style("text-anchor","middle").text(function(r){return r.wf||r.ng?"- "+r.label:r.collapsed||r.Lg?"+ "+r.label:r.label}).style("cursor",function(r){return r.collapsed||
r.wf||r.ng||r.Lg?"pointer":"auto"});b.selectAll("text").filter(function(r){return r.kf&&0<r.kf.length||r.collapsed||r.wf||r.ng||r.Lg}).append("svg:title").text(function(r){return r.kf&&0<r.kf.length?r.kf:r.collapsed||r.Lg?f.model.A.j.gP:r.wf||r.ng?f.model.A.j.fP:""});var g=0;for(g=0;g<e.length;g++)this.yM(e[g],0);var l=[],m=6;b.each(function(){m+=this.getBBox().width+6;l.push(this.getBBox().width)});b.attr("transform",function(r,v){m-=l[v];r="translate("+-m+", 0)";m-=6;return r});l=l.reverse();for(var n=
this.wj,p=1<n.range().length?(n.range()[1]-n.range()[0]-n.rangeBand())/2:0,t=0;t<this.xb.ii.length;t++)c.selectAll(".refline").data(this.xb.ii[t].slice(1)).enter().append("line").attr("class","fm-refline").attr("y1",function(r){return n(r.id)-p}).attr("y2",function(r){return n(r.id)-p}).attr("x1",function(){return 0}).attr("x2",function(){for(var r=0,v=l.length-t,z=0;z<v;z++)r+=l[z]+6;return-r})};d.prototype.yM=function(b,a){for(var c=0;c<b.length;c++)A.Aa.Pb(b[c]).P("text-anchor","end"),A.Aa.Pb(b[c]).attr("dy",
"0.38em"),A.Aa.Pb(b[c]).attr("transform",this.v0(b[c])+(0!=a?" rotate("+a+")":""))};d.prototype.v0=function(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;b=this.wj(b.id)+this.wj.rangeBand()*b.sB/2;return"translate("+a+", "+b+")"};d.prototype.GR=function(b,a){var c=this.xb.Ko,e=this.wj,g=0;if(0<this.xb.Zv.length){var l=this.xb.Zv;var m=d3v3.scale.ordinal().rangeRoundBands([0,e.rangeBand()],.1).domain(l);l=m.rangeBand();var n=Math.min(l,this.mF);g=l!=n?(l-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",
function(r){return"translate(0,"+(e(r.id)+g)+")"});var p=this.vN;l=b.selectAll("rect").data(function(r){return r.wh}).enter().append("rect").attr("class","fm-bar").attr("y",function(r){return m(r.id)}).attr("height",n).attr("x",function(r){return 0>r.value?Math.floor(100*a(r.value))/100:Math.floor(100*a(p))/100}).attr("width",function(r){return Math.floor(100*Math.abs(a(p)-a(r.value)))/100}).style("fill",function(r){return f.v(r.jq)?c(r.id):c(r.jq)});l.append("title").text(function(r){return r.kf});
this.Vk(l,h.bn.iA);if(this.xb.pD){var t=this.F.find("svg").getBoundingClientRect();b=b.selectAll("text").data(function(r){return r.wh}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.Br}).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(){var 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.kf});this.Vk(b,
h.bn.uE)}};d.prototype.j_=function(b,a){for(var c=this.wj,e=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 l=f.v(b[g].jq)?this.xb.Ko(b[g].id):this.xb.Ko(b[g].jq),m=this.svg.append("g");m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",l).attr("d",function(n){return e(n.wh)});m.selectAll("circle").data(b[g].wh).enter().append("circle").attr("class","fm-circle").style("stroke",l).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.kf})}};h.IN=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.fj.call(this)||this}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.Ij=function(b){h.fj.prototype.Ij.call(this,b);this.GR(b,this.yl)};h.P5=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.fj.call(this)||this}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.Ij=function(b){h.fj.prototype.Ij.call(this,b);this.j_(b,this.yl)};h.qma=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.fj.call(this)||this}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.Ij=function(b){h.fj.prototype.Ij.call(this,b);for(var a=this.wj,c=this.yl,e="triangle-up cross circle square triangle-down diamond".split(" "),g=0;g<b.length;g++){var l=f.v(b[g].jq)?this.xb.Ko(b[g].id):this.xb.Ko(b[g].jq),m=e[g%e.length],n=this.svg.append("g");m=d3v3.svg.symbol().type(m);m=n.selectAll(".scatter-point").data(b[g].wh).enter().append("path").attr("class",
"fm-scatter-point").attr("d",m).style("stroke",function(){return l}).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.kf});this.Vk(m,h.bn.iA);this.xb.pD&&(n=n.selectAll("text").data(b[g].wh).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Br}),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.kf}),this.Vk(n,h.bn.uE))}};h.Ooa=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.Au.call(this)||this}u(d,h.Au);d.prototype.Jd=function(b,a,c){h.Au.prototype.Jd.call(this,b,a,c);this.update(b.data)};d.prototype.update=function(b){if(0!=b.length){var a=this.vn,c=Math.max(this.un,70),e=Math.min(a,c)/2;c>this.un&&this.s_(c);var g=this.xb.Ko,l=d3v3.svg.arc().outerRadius(e-20).innerRadius(0),m=d3v3.layout.pie().sort(null).value(function(z){return Math.abs(z.value)});this.svg.attr("transform","translate("+a/2+","+c/2+")");
b=this.svg.selectAll(".arc").data(m(b[0].wh)).enter().append("g").attr("class","fm-arc");b.append("path").attr("d",l).style("fill",function(z){return g(z.data.id)}).append("title").text(function(z){return z.data.kf});var n=d3v3.svg.arc().outerRadius(e-20).innerRadius(e),p=0;e=this.svg.append("g").attr("class","fm-pie-label");e.append("text").text("Test").each(function(){p=this.getBBox().height});e.remove();var t=[],r=[],v=[];b.each(function(z){var B=n.centroid(z);if(f.model.B.C.JIa||0==r.length||
2==r.length&&Math.abs(B[1]-r[1])>p||0<=r[0]&&0>=B[0])v.push(z),t.push(B),r=B});e=this.svg.selectAll(".pie-label").data(v).enter().append("g").attr("class","fm-pie-label");e.append("text").text(function(z){return z.data.label+" ("+z.data.Br+")"}).attr("transform",function(z,B){return"translate("+t[B]+")"}).attr("dy",".35em").style("text-anchor",function(z,B){return 0<t[B][0]?"start":"end"});e.selectAll("text").filter(function(z){return z.data.u1&&0<z.data.u1.length}).append("svg:title").text(function(z){return z.data.u1});
this.Vk(b,h.bn.iA);this.Vk(e,h.bn.uE);b=this.svg[0][0].getBBox();if(b.x+b.width>a/2||b.x<-a/2)e=A.Aa.Pb(this.svg[0][0]),l=d3v3.transform(e.attr("transform")),a=a/2/(a/2+Math.max(-a/2-b.x,b.x+b.width-a/2)),l.scale=[a,a],e.attr("transform",l.toString())}};h.foa=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=h.fj.call(this)||this;b.vha=!0;return b}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.oL=function(b){return d3v3.max(b,function(a){return a.oKa})};d.prototype.rL=function(b){return d3v3.min(b,function(a){return a.nKa})};d.prototype.Ij=function(b){this.xP(b);b.forEach(function(p){var t=0,r=0;p.wh.forEach(function(v){0<=v.value?(v.W4=t,t+=v.value,v.y1=t):(v.y1=r,r+=v.value,v.W4=r)});
p.nKa=r;p.oKa=t});h.fj.prototype.Ij.call(this,b);var a=this.xb.Ko,c=this.wj,e=this.yl;var g=c.rangeBand();0<this.xb.Zv.length&&(g=this.xb.Zv,g=d3v3.scale.ordinal().rangeRoundBands([0,c.rangeBand()],.1).domain([g[0]]),g=g.rangeBand());var l=Math.min(g,this.mF),m=g!=l?(g-l)/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.wh}).enter().append("rect").attr("width",
l).attr("y",function(p){return Math.round(100*e(p.y1))/100}).attr("height",function(p){return Math.round(100*Math.abs(e(p.W4)-e(p.y1)))/100}).style("fill",function(p){return a(p.id)});g.append("title").text(function(p){return p.kf});b.selectAll("path").data(function(p){return p.wh}).enter().append("path").attr("d",function(p){return"M0 "+Math.round(100*e(p.y1))/100+" l"+l+" 0"});this.Vk(g,h.bn.iA);if(this.xb.pD){var n=0;b=b.selectAll("text").data(function(p){return p.wh}).enter().append("text").attr("class",
"fm-data-label").text(function(p){return p.Br}).each(function(){n=Math.max(n,this.getBBox().height)});b.text(function(p){return n+1>Math.round(100*Math.abs(e(p.W4)-e(p.y1)))/100?"":p.Br});g=Math.floor(n);b.style("text-anchor","middle").attr("x",function(){return l/2}).attr("y",function(p){return Math.round(100*e(p.y1))/100}).attr("dy",g+"px");b.append("title").text(function(p){return p.kf});this.Vk(b,h.bn.uE)}};h.Uoa=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.fj.call(this)||this}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data,b.Nv)};d.prototype.Ij=function(b,a){h.fj.prototype.Ij.call(this,b,a);this.GR(b,this.yl);this.j_(a,this.uN)};h.Wja=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.IN.call(this)||this}u(d,h.IN);d.prototype.Jd=function(b,a,c){h.IN.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.Ij=function(b){h.IN.prototype.Ij.call(this,b);this.GR(b,this.yl)};h.Uia=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Vf.vo.call(this)||this;a.UZ();a.zK();return a}u(b,A.Vf.vo);b.prototype.UZ=function(){null==this.oC&&(this.oC=new A.Aa("span","fm-icon-display"))};b.prototype.zK=function(){null==this.bo&&(this.bo=new A.Aa("span","fm-text-display"))};b.prototype.gb=function(){var a=this.getData();this.F.empty();0==a.zf&&this.oC.P("background-color",a.color);this.F.append(this.oC);this.bo.html(a[this.rq()]);var c=a.kf;c&&0<c.length&&this.bo.attr("title",
c);a.isCollapsed||a.IG?this.F.attr("title",f.model.A.j.gP):(a.zf||a.Pg)&&this.F.attr("title",f.model.A.j.fP);this.F.Y("fm-level-"+a.level);this.F.append(this.bo);f.v(a.measure)||isNaN(a.measure.index)||this.F.attr("data-measure-index",a.measure.index);this.F.Ua(k.X.W.ua.UV,a.isCollapsed||a.IG);this.F.Ua(k.X.W.ua.iW,a.zf||a.Pg);this.Vk(this.F.element,h.bn.kma)};b.prototype.Vk=function(a,c){if(f.pg(h.Du.BB)){var e=this.getData().La();e.type=c;e.chartType=f.model.B.C.OQ;h.Du.BB(a,e)}};d.pma=b})(h.Te||
(h.Te={}))})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=A.Vb.ye.call(this)||this;c.$M=!0;c.$M=a;c.F.$k();c.color=d3v3.scale.category20c();f.model.B.C.fha&&(c.VM=new A.Jf,c.$M?c.VM.Y("fm-chart-legend-btn fm-hide"):c.VM.Y("fm-chart-legend-btn fm-show"),c.VM.F.attr("title",c.$M?f.model.A.j.bja:f.model.A.j.dja),c.VM.N(A.sd.Xe,function(){return c.xFa()}),c.V(c.VM));c.OG=new A.Aa("div");c.OG.Y("fm-chart-legend-container");c.$M&&c.F.append(c.OG);return c}u(b,A.Vb.ye);b.prototype.xFa=function(){this.Wa(y.da.Qd)};
b.prototype.lIa=function(a){this.color=a};b.prototype.Jd=function(a){var c=this;if(this.$M){this.OG.ww();this.OG.Ua("fm-legend-btn-shown",f.model.B.C.fha);for(var e=new A.Aa("table"),g=new A.Aa("tr"),l=0;l<a.length;l++){for(var m=0;m<a[l].length;m++)a[l][m].zf||a[l][m].Pg||(a[l][m].color=this.color(a[l][m].id));m=new A.Aa("td");var n=new A.hd.zh;n.Y("fm-legend-lst-"+l);n.Lh(this.bu);n.Xf("label");n.useCache=!1;n.Cf(a[l]);n.N(y.da.Qd,function(p){return c.lU(p)});m.append(n.F);g.append(m)}e.append(g);
this.OG.append(e)}};b.prototype.kIa=function(a){this.pt=a};b.prototype.bu=function(a,c){var e=new d.pma;e.setData(a);e.am(c);return e};b.prototype.lU=function(a){a=a.data.Fk;var c=a.IG||a.Pg;a.isCollapsed||a.zf?this.pt("expand",a.We,a.Xb):c&&this.pt("drill",a.We,a.Xb)};d.Rja=b})(h.Te||(h.Te={}))})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.lya=function(b){switch(b){case h.xe.Dz:b=new h.P5;break;case h.xe.ID:b=new h.Uia;break;case h.xe.xI:b=new h.qma;break;case h.xe.VI:b=new h.Ooa;break;case h.xe.Ou:b=new h.foa;break;case h.xe.kA:b=new h.Uoa;break;case h.xe.TD:b=new h.Wja;break;default:b=new h.P5}return b};h.Qja=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.ye.call(this)||this;b.j7=50;b.model=f.model.Ta.U();b.Y("fm-charts-view");b.ue();b.K8=new h.Tja(b);return b}u(d,A.Vb.ye);d.prototype.dispose=function(){this.model=this.G=null;this.Zp&&this.Zp.dispose();this.Zp=null};d.prototype.gb=function(){if(!(1>f.model.Ea.pc.oj())){null==this.Zp&&(this.Zp=this.Sua(),this.F.V(this.Zp));this.Zp.clear();this.Zp.G=this.G;this.Zp.resize(k.Hb.vn,k.Hb.un);this.Zp.xb=null;if(this.G&&this.G.mj){if(null==this.S_()){f.Va(f.model.A.j.eja,
f.model.A.j.ya);return}this.Zp.xb=this.Rua()}this.Zp.gb()}};d.prototype.Sua=function(){var b=this,a=new h.Uja;a.N("chart_changed",function(){return b.dDa()});a.N(k.pi.Uw,function(c){return b.iU(c)});a.N("dblclick",function(c){return b.fDa(c)});a.N("click",function(c){return b.eDa(c)});return a};d.prototype.dDa=function(){this.gb()};d.prototype.iU=function(b){this.Da(b)};d.prototype.YAa=function(b){b=A.Aa.Pb(b);return b.closest(".fm-charts-filters-container")||b.closest(".fm-charts-filters-btn")?!0:
!1};d.prototype.cH=function(b){b=A.Aa.Pb(b).closest(".fm-charts-filter");null!=b&&(b=f.u.Na.U().I.Mg(b.attr("data-hierarchy")),null!=b&&this.Da(new k.kO(b)))};d.prototype.Nj=function(b,a,c){f.model.vc.Hz.Wf(this,b,void 0===a?!1:a,void 0===c?null:c)};d.prototype.print=function(b){b=void 0===b?null:b;if(this.Xda){var a=f.model.vc.Hz.NR(this,null,!0);a=f.model.vc.Hz.yK(f.model.$r.nE.U().B.zi)+a+f.model.vc.Hz.yK(f.model.$r.nE.U().B.Wi)}else a=f.model.vc.Hz.sba(this,null,!0);!f.ha(f.model.B.C.Dm)&&this.Xda&&
(a="<center><div style='"+k.X.W.Yc.ly(this.F.find(".fm-chart-title"))+"'>"+f.model.B.C.Dm+"</div></center>"+a);null!=b?b(a):(D.R7.print(a,"",f.model.B.C.Dm),f.model.$r.nE.U().jfa());f.model.vc.Hz.clear()};d.prototype.Rua=function(){var b=new h.W.Sja;b.type=f.model.B.C.OQ;b.Bv=f.model.B.C.Bv;b.pD=f.model.B.C.LIa;b.at=this.S_();b.Ny=f.model.B.C.lK&&(b.type==h.xe.Dz||b.type==h.xe.ID||b.type==h.xe.xI||b.type==h.xe.VI);b.Kt=b.at.Dh(b.at.uniqueName,b.at.$).clone();b.Tf=f.u.i.ca.Tf(b.at.$);b.Xd=f.u.i.ca.Xd(b.at.$);
b.Kt.pd=b.at.$==f.u.i.ca.li?"":b.Kt.pd;b.fw=b.at.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(b.at.$);b.Rba=this.Qba;var a="on"==f.model.B.C.Ef||"rows"==f.model.B.C.Ef?this.G.Fd-1:this.G.Fd,c="on"==f.model.B.C.Ef||"columns"==f.model.B.C.Ef?this.G.Ed-1:this.G.Ed;0==a&&(a=1);0==c&&(c=1);var e=3E3<c*a?3E3:-1;b.PJ=b.Ny?this.Xba():[b.at];f.model.B.C.Io&&(null!=this.G.DT&&(f.model.B.C.Cv=this.G.DT),null!=this.G.BT&&(f.model.B.C.sF=this.G.BT),0==this.pza(f.model.B.C.Cv)&&(f.model.B.C.Cv=[]),0==this.qza(f.model.B.C.sF)&&
(f.model.B.C.sF=[]));var g=!1;switch(b.type){case h.xe.Dz:case h.xe.ID:case h.xe.kA:g=this.Kfa(b,a,c,b.PJ,b.data,b.Ny&&1<b.PJ.length,void 0,e);break;case h.xe.xI:case h.xe.VI:g=this.Lfa(b,a,c,b.PJ,b.data,b.Ny&&1<b.PJ.length,void 0,e);break;case h.xe.Ou:g=this.JGa(b,a,c,b.at,e);break;case h.xe.TD:g=0<this.G.measures.length?this.G.measures[0]:null;var l=1<this.G.measures.length?this.G.measures[1]:null;b.Kt=g.Dh(g.uniqueName,g.$).clone();b.Tf=f.u.i.ca.Tf(g.$);b.Xd=f.u.i.ca.Xd(g.$);b.Kt.pd=g.$==f.u.i.ca.li?
"":b.Kt.pd;b.fw=g.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(g.$);f.v(l)||(b.L_=l.Dh(l.uniqueName,l.$).clone(),b.uda=f.u.i.ca.Tf(l.$),b.Sda=f.u.i.ca.Xd(l.$),b.L_.pd=l.$==f.u.i.ca.li?"":b.L_.pd,b.Yda=l.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(l.$));g=this.IGa(b,a,c,g,l,e)}f.model.B.C.OIa&&g&&f.Va(f.model.A.j.fja,f.model.A.j.t8,f.rb.Ik);this.HGa(b);b.type!=h.xe.Ou&&(b.os=this.Uza(),b.type==h.xe.TD?(g=0<this.G.measures.length?this.G.measures[0]:null,l=1<this.G.measures.length?this.G.measures[1]:null,b.ps=null!=g?g.label:
"",b.Lw=null!=l?l.label:""):(f.model.B.C.lK?(a=this.Xba(),b.ps=1==a.length?a[0].label:""):b.ps=this.S_().label,b.Lw=""));return b};d.prototype.HGa=function(b){if(f.v(this.i4)||0==this.i4.length)this.i4=this.qya();b.Ko=d3v3.scale.ordinal().range(this.i4);if(b.Te&&0<b.Te.length){var a=[],c=[],e,g;for(e=0;e<b.Te.length;e++){var l=b.Te[e][0].id;var m=b.Ko(l);b.Te[e][0].zf||(a.push(l),c.push(m));l=[];for(g=1;g<b.Te[e].length;g++)b.Te[e][g].zf||l.push(b.Te[e][g].id);a=a.concat(l);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,l.length+1]).range([g,m]);g=1;for(l=0;g<b.Te[e].length;g++)b.Te[e][g].zf||(c.push(m(l).toString()),l++)}b.Ko=d3v3.scale.ordinal().domain(a).range(c)}};d.prototype.qya=function(){var b=[],a=1,c=new A.Aa("div");c.$a();for(k.Hb.zb.F.V(c);100>a;){c.w3("class");c.Y("fm-charts-color-"+a);var e=window.getComputedStyle(c.element).fill;f.ha(e)&&(e="#000");if("none"!=e)b.push(e);else break;a++}c.remove();return b};d.prototype.S_=function(){var b=
this.G.measures.find(function(l){return l.uniqueName===f.model.B.C.Ho.uniqueName});if(null!=b&&(""!=f.model.B.C.Ho.$||f.model.B.C.Ho.index)){var a=!0,c=!0;for(g=0;g<this.G.measures.length;g++){var e=this.G.measures[g];if(e.uniqueName==f.model.B.C.Ho.uniqueName)if(""==f.model.B.C.Ho.$){b=e;break}else if(e.$==f.model.B.C.Ho.$)if(a=!1,null==f.model.B.C.Ho.index||-1==f.model.B.C.Ho.index){b=e;break}else if(e.index==f.model.B.C.Ho.index){b=e;c=!1;break}}a&&(f.model.B.C.Ho.$="");c&&(f.model.B.C.Ho.index=
-1)}if(null==b)if(f.model.B.C.oc)for(var g=0;g<this.G.measures.length&&(b=this.G.measures[g],b.type==f.u.i.Ja.sc||b.type==f.u.i.Ja.Oa);g++);else b=this.G.measures[0];return b};d.prototype.Xba=function(){var b=[],a=f.model.B.C.kK;if(0<a.length)for(var c=[],e=0;e<a.length;e++){for(var g=a[e],l,m=!0,n=!0,p=0;p<this.G.measures.length;p++){var t=this.G.measures[p];if(t.uniqueName==g.uniqueName)if(-1==c.indexOf(t.index)&&(l=t),""==g.$)break;else if(t.$==g.$)if(m=!1,null==g.index||-1==g.index){if(-1==c.indexOf(t.index)){l=
t;break}}else if(t.index==g.index){l=t;n=!1;break}}m&&(f.model.B.C.kK[e].$="");n&&(f.model.B.C.kK[e].index=-1);null!=l&&(c.push(l.index),b.push(l))}else b=this.G.measures.slice();0==b.length&&(b=this.G.measures.slice(),f.model.B.C.kK=[]);return b};d.prototype.pza=function(b){for(var a=0,c,e=0;e<this.G.Ed;e++)c=this.G.Lm(e),this.RQ(b,c)&&a++;return a};d.prototype.qza=function(b){for(var a=0,c,e=0;e<this.G.Fd;e++)c=this.G.nj(e),this.SQ(b,c)&&a++;return a};d.prototype.RQ=function(b,a){return a.length!=
b.length+1||0!=b.length&&0!=a.join(",").indexOf(b.join(",")+",")?!1:!0};d.prototype.SQ=function(b,a){return a.join()==b.join()||a.length==b.length+1&&(0==b.length||0==a.join(",").indexOf(b.join(",")+","))?!0:!1};d.prototype.Uza=function(){for(var b=[],a=0;a<this.G.rows.length;a++)b.push(this.G.rows.ea(a).label);return b.join(" / ")};d.prototype.wca=function(b){for(var a=[],c,e=0;e<b.length;e++)c=b[e],c=c.Dh(c.uniqueName,c.$).clone(),a.push(c);return a};d.prototype.xL=function(b,a,c,e,g,l){l=void 0===
l?"":l;a=c+": "+a;b.type==h.xe.Ou&&0<l.length&&(a+=" of "+l);c=this.G.Sb.Ra&&1==this.G.columns.length;e=this.G.ic.Ra&&1==this.G.rows.length?"":this.w0(e,f.u.i.ia.Ia,!1,null,!0);g=c?"":this.w0(g,f.u.i.ia.Sa,!1,null,!0);e=this.Wv(e);g=this.Wv(g);0<e.length&&(a=a+"\n"+e);0<g.length&&(a=a+"\n"+g);b.type!=h.xe.Ou&&0<l.length&&(a=a+"\nTotal: "+l);return a};d.prototype.w0=function(b,a,c,e,g){e=void 0===e?null:e;g=void 0===g?!1:g;if((void 0===c?0:c)&&a==f.u.i.ia.Ia)return null!=e?e.hierarchy.label+": "+e.caption:
f.model.A.j.gpa+" "+(b[0]+1).toString();c=[];a=a==f.u.i.ia.Sa?this.G.Cb:this.G.vb;for(var l,m=0;m<b.length;m++)e=a.ea(m),null!=e&&(l=b[m],c.push(this.Aea(e.va(l),g)));return c.join(" - ")};d.prototype.fDa=function(b){this.yda(b.target)&&this.drillThrough(b.target)};d.prototype.eDa=function(b){b=this.nS(b.target,!0);f.v(b)||f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.v5,b))};d.prototype.yda=function(b){if(f.v(f.u.Na.U().fa)||!f.u.Na.U().fa.gT||!f.model.B.C.drillThrough)return!1;b=b.__data__;null!=
b&&b.data&&(b=b.data);return b&&b.measure&&null==this.model.ga.I.$c(b.measure.uniqueName)?!1:b&&b.measure&&b.lg&&b.Qg};d.prototype.drillThrough=function(b){var a=b.__data__;null!=a&&a.data&&(a=a.data);b=new k.d6(a.measure,a.lg,a.Qg,this.nS(b,!0));this.Da(b)};d.prototype.Aea=function(b,a){a=void 0===a?!1:a;var c="";if(!f.v(b)){for(var e=[];!f.v(b.parent);)e.unshift(b.caption),b=b.parent;c=a?b.hierarchy.label+": ":"";c+=e.join("/")}return c};d.prototype.Wv=function(b){return b=b.length<=this.j7?b:b.substr(0,
this.j7)+"..."};d.prototype.Pg=function(b,a){if(0==b.length)return!1;var c=a==f.u.i.ia.Sa?this.G.columns:this.G.rows;if(0==c.length)return!1;c=c.ea((a==f.u.i.ia.Sa?this.G.Sb:this.G.ic).Ra&&(0==b.length||b.length>this.G.He)?b.length:b.length-1).va(b[b.length-1]);return a==f.u.i.ia.Sa?this.G.Rj(b,c):this.G.Hh(b,c)};d.prototype.MY=function(b,a,c){if(0!=a.length){var e=c==f.u.i.ia.Sa?this.G.Sb:this.G.ic,g=c==f.u.i.ia.Sa?this.G.columns:this.G.rows;if(0!=g.length){var l=e.Ra&&1==g.length,m=g.ea(e.Ra&&a.length>
this.G.He?a.length:a.length-1);e=m.va(a[a.length-1]);var n=g=l?m.label:e.caption;g=this.Wv(g);n=g!=n?n:"";g=f.O.In(g,!0,!0);l=l?"":e.level.uniqueName;l=c==f.u.i.ia.Sa?this.G.cR.indexOf(l):this.G.Tm.indexOf(l);var p=this.sq(a),t=c==f.u.i.ia.Sa?this.G.Sj(a):this.G.Ih(a),r=c==f.u.i.ia.Sa?this.G.Rj(a,e):this.G.Hh(a,e),v=a.length<(c==f.u.i.ia.Sa?this.G.Em:this.G.Sm)&&!t&&!r;m=m.qg&&!e.Bi&&!e.Wb&&!e.ah&&!t&&!r;0!=l&&0!=b.length||b.push([]);b[b.length-1].push(new h.W.g7({label:g,id:p,We:a,LJa:c,Xb:e,level:l,
zf:t,isCollapsed:v,Pg:r,IG:m,kf:n}))}}};d.prototype.sq=function(b){return b.join("-")};d.prototype.RY=function(b,a,c,e,g,l){e=void 0===e?!1:e;g=void 0===g?null:g;l=void 0===l?null:l;var m=c==f.u.i.ia.Sa?this.G.Sb:this.G.ic,n=c==f.u.i.ia.Sa?this.G.Cb:this.G.vb,p=m.Ra&&1==n.length,t=a.length-1,r=n.ea(t);if(null==r)return b.Hk.push({label:"",id:this.sq(a)}),"";t=a[a.length-1];t=r.va(t);var v="";if(0<a.length)if(e)v=null!=g?g.caption:(a[0]+1).toString();else if(0<n.length){v=p?r.label:t.caption;var z=
p?"":t.level.uniqueName}g=this.sq(a);var B=this.Wv(p?"":v);b.Hk.push({label:B,id:g});z=this.G.Tm.indexOf(z);null==b.ii[z]&&(b.ii[z]=[]);var C=f.model.B.C.Io?a.length<=f.model.B.C.Cv.length:p?!1:c==f.u.i.ia.Sa?this.G.Sj(a):this.G.Ih(a);var E=c==f.u.i.ia.Sa?this.G.Em:this.G.Sm;b.ii[z].push({label:B,id:g,data:a,Nv:t,wf:C,collapsed:p?!1:!C&&a.length<E,ng:!1,Lg:p?!1:r.qg&&!t.Bi&&!t.Wb&&!t.ah,sB:1,kf:B!=v?v:""});this.QY(b,a,t,c,g);for(e=e?0:a.length-1;0<e;)e--,t=m.Ra&&e+1>this.G.He?e+1:e,r=n.ea(t),t=a[e],
t=r.va(t),z=t.level.uniqueName,z=this.G.Tm.indexOf(z),null==b.ii[z]&&(b.ii[z]=[]),r=p?r.label:t.caption,B=this.Wv(r),r=B!=r?r:"",C=l.pop(),void 0===C?b.ii[z][b.ii[z].length-1].sB++:b.ii[z].push({label:B,id:g,data:C,Nv:t,wf:!0,collapsed:!1,ng:!1,Lg:!1,sB:1,kf:r}),this.QY(b,a,t,c,g);return v};d.prototype.QY=function(b,a,c,e,g){try{c.level.sb}catch(r){c.level.sb}if(c&&1<c.level.sb){var l=this.G.Tm.indexOf(c.parent.level.uniqueName);null==b.ii[l]&&(b.ii[l]=[]);var m=c.parent.caption,n=m;m=this.Wv(m);
n=m!=n?n:"";if(m===(0<b.ii[l].length?b.ii[l][b.ii[l].length-1].label:""))b.ii[l][b.ii[l].length-1].sB++;else{var p=(e==f.u.i.ia.Sa?this.G.Cb:this.G.vb).indexOf(c.hierarchy.uniqueName),t=a.slice(0,p);t[p]=c.parent.ordinal;b.ii[l].push({label:m,id:g,data:t,Nv:c.parent,wf:!1,collapsed:!1,ng:!0,Lg:!1,sB:1,kf:n})}this.QY(b,a,c.parent,e,g)}};d.prototype.J=function(b,a){if(0==b.length)return"";var c=a==f.u.i.ia.Sa?this.G.Sb:this.G.ic,e=a==f.u.i.ia.Sa?this.G.columns:this.G.rows;if(0==e.length)return"";a=
c.Ra&&1==e.length;c=e.ea(c.Ra&&(0==b.length||b.length>this.G.He)?b.length:b.length-1);b=b[b.length-1];return a?c.label:this.Aea(c.va(b))};d.prototype.DQ=function(b,a,c){b.push([]);b[b.length-1].push(new h.W.g7({label:a.label,id:c,measure:a,level:0,zf:!1,isCollapsed:!1,Pg:!1,IG:!1,kf:""}))};d.prototype.Yo=function(b,a,c,e,g,l,m,n){return this.model.Ga.fa.Ba!=f.u.i.oa.Nc&&this.model.Ga.fa.Ba!=f.u.i.oa.Zd||!f.model.B.C.Jq||e.$!=f.u.i.ca.NONE?this.Qba(b,g,l,m,n):this.G.Yo(a,c,e)};d.prototype.Qba=function(b,
a,c,e,g,l){l=void 0===l?!1:l;return g?f.O.Hw(b,f.model.B.C.Cp):e?x.Tb.format(b,a,c,e):l?x.Tb.IIa(b,a,c,e):x.Tb.format(b,a,c,e)};d.prototype.Lfa=function(b,a,c,e,g,l,m,n){var p=!1;l=void 0===l?!1:l;p=void 0===p?!1:p;m=void 0===m?null:m;n=void 0===n?-1:n;var t=!0,r=!p,v=[],z=this.G.Sb.Ra&&1==this.G.columns.length,B=this.G.ic.Ra&&1==this.G.rows.length;var C="";var E=NaN,K,J=e[0],aa=this.wca(e),H=aa[0],G=f.u.i.ca.Tf(J.$),F=f.u.i.ca.Xd(J.$);H.pd=J.$==f.u.i.ca.li?"":H.pd;var I=J.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(J.$);
if(null!=m)var N=this.G.nj(this.model.ga.sa.rows.indexOf(m.uniqueName)),L=this.model.ga.I.Ee(m.uniqueName);var O=!1,T=c;for(c=0;c<a;c++){var M=c;M=this.G.nj(M);if(!f.model.B.C.Io||this.SQ(f.model.B.C.sF,M)||z||0==this.G.columns.length){var V=p?!1:this.Pg(M,f.u.i.ia.Sa);l||p||z||this.MY(v,M,f.u.i.ia.Sa);if(!V){if(!p&&0<this.G.columns.length&&0<M.length){var P=[];if(!l&&(E=this.G.Fa(P,M,J),!this.Ey(E)))continue;C=this.G.Sb.Ra&&(0==M.length||M.length>this.G.He)?M.length:M.length-1;C=this.G.columns.ea(C);
var W=M[M.length-1];C=z?C.label:C.va(W).caption}V=0==M.length?!1:this.G.Sj(M);if(!V){W=[];var ca=[];if(l){for(var X=0;X<e.length;X++){J=e[X];G=f.u.i.ca.Tf(J.$);F=f.u.i.ca.Xd(J.$);aa[X].pd=J.$==f.u.i.ca.li?"":aa[X].pd;I=J.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(J.$);r&&this.DQ(v,J,X.toString());W=[];for(K=0;K<T;K++){P=this.G.Lm(K);var ea=this.sq(P);if(V=0==P.length?!1:this.G.Ih(P))if(ca.push(P),!f.model.B.C.Io)continue;V=this.Pg(P,f.u.i.ia.Ia);if(!V&&(!f.model.B.C.Io||this.RQ(f.model.B.C.Cv,P)||B||0==this.G.rows.length)){V=
t?this.RY(b,P,f.u.i.ia.Ia,null,null,ca.splice(0)):this.J(P,f.u.i.ia.Ia);ca=[];var fa=this.G.Fa(P,M,J);if(this.Ey(fa)){var Q=this.Yo(fa,P,M,J,aa[X],G,F,I);var la=this.xL(b,Q,J.label,P,M);W.push({label:V,value:fa,Br:Q,id:ea,kf:la,measure:{uniqueName:J.uniqueName,$:J.$,index:J.index},Qg:P,lg:M})}if(t&&0<b.Hk.length&&(ea=b.Hk.length,-1<n&&ea>=n)){T=K+1;O=!0;break}}}t=!1;ea=this.sq(M)+"-"+X;K=X.toString();g.push({label:C,value:E,id:ea,jq:K,wh:W})}r=!1}else{for(K=0;K<T;K++){P=this.G.Lm(K)||[];ea=this.sq(P);
if(V=0==P.length?!1:this.G.Ih(P))if(ca.push(P),!f.model.B.C.Io)continue;V=p?!1:this.Pg(P,f.u.i.ia.Ia);if(!V&&(!f.model.B.C.Io||this.RQ(f.model.B.C.Cv,P)||B||0==this.G.rows.length)){if(t){if(null!=m){var ia=this.G.Fa(P,N,L);ia=m.va(ia)}V=this.RY(b,P,f.u.i.ia.Ia,p,ia,ca.slice(0))}else V=this.J(P,f.u.i.ia.Ia);ca=[];fa=this.G.Fa(P,M,J);this.Ey(fa)&&(Q=this.Yo(fa,P,M,J,H,G,F,I),la=this.xL(b,Q,p?J.Yl:J.label,P,M,""),W.push({label:V,value:fa,Br:Q,id:ea,kf:la,measure:{uniqueName:J.uniqueName,$:J.$,index:J.index},
Qg:P,lg:M}));if(t&&0<b.Hk.length&&(ea=b.Hk.length,-1<n&&ea>=n)){T=K+1;O=!0;break}}}t=!1;ea=this.sq(M);g.push({label:C,value:E,id:ea,lg:M,wh:W})}}}}}b.Te=v;return O};d.prototype.Kfa=function(b,a,c,e,g,l,m,n){var p=!1;l=void 0===l?!1:l;p=void 0===p?!1:p;m=void 0===m?null:m;n=void 0===n?-1:n;var t=!p,r=!0,v=[],z=[],B=this.G.ic.Ra&&1==this.G.rows.length,C=this.G.Sb.Ra&&1==this.G.columns.length;var E="";var K=NaN,J,aa,H,G,F=e[0],I=this.wca(e),N=I[0],L=f.u.i.ca.Tf(F.$),O=f.u.i.ca.Xd(F.$);N.pd=F.$==f.u.i.ca.li?
"":N.pd;var T=F.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(F.$);if(null!=m)var M=this.G.nj(this.model.ga.sa.rows.indexOf(m.uniqueName)),V=this.model.ga.I.Ee(m.uniqueName);var P=!1,W=a,ca=[];for(H=0;H<c;H++){var X=this.G.Lm(H)||[];if(!p){if(aa=0==X.length?!1:this.G.Ih(X))if(ca.push(X),!f.model.B.C.Io)continue;if(J=this.Pg(X,f.u.i.ia.Ia))continue}if(!f.model.B.C.Io||this.RQ(f.model.B.C.Cv,X)||B||0==this.G.rows.length){if(null!=m){J=this.G.Fa(X,M,V);var ea=m.va(J)}var fa=this.RY(b,X,f.u.i.ia.Ia,p,ea,ca.slice(0));
ca=[];if(!p){var Q=[];if(!l&&(K=this.G.Fa(X,Q,F),!this.Ey(K)&&!f.u.i.ca.OL(F.$)))continue}var la=[];var ia=this.Yo(K,X,Q,F,b.Kt,b.Tf,b.Xd,b.fw);for(G=0;G<W;G++)if(Q=G,Q=this.G.nj(Q),!f.model.B.C.Io||this.SQ(f.model.B.C.sF,Q)||C||0==this.G.columns.length){var R=this.sq(Q);aa=0==Q.length?!1:this.G.Sj(Q);J=p?!1:this.Pg(Q,f.u.i.ia.Sa);l||(t&&!C&&this.MY(v,Q,f.u.i.ia.Sa),r&&(aa||J||z.push(R)));if(!J&&(!p&&0<this.G.columns.length&&0<Q.length&&(E=this.G.Sb.Ra&&(0==Q.length||Q.length>this.G.He)?Q.length:
Q.length-1,E=this.G.columns.ea(E),J=Q[Q.length-1],E=C?E.label:E.va(J).caption),!aa))if(l){for(var S,Y=0;Y<e.length;Y++){F=e[Y];L=f.u.i.ca.Tf(F.$);O=f.u.i.ca.Xd(F.$);I[Y].pd=F.$==f.u.i.ca.li?"":I[Y].pd;T=F.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(F.$);S=R+"-"+Y;var ba=Y.toString();t&&this.DQ(v,F,Y.toString());r&&(aa||z.push(S));J=this.G.Fa(X,Q,F);if(this.Ey(J)){var Z=this.Yo(J,X,Q,F,I[Y],L,O,T);var ha=b.type==h.xe.kA?ia:"";ha=this.xL(b,Z,F.label,X,Q,ha);la.push({label:E,value:J,Br:Z,id:S,jq:ba,kf:ha,measure:{uniqueName:F.uniqueName,
$:F.$,index:F.index},Qg:X,lg:Q})}if(-1<n&&z.length>=n){W=G+1;break}}t=!1}else if(J=this.G.Fa(X,Q,F),this.Ey(J)&&(Z=this.Yo(J,X,Q,F,N,L,O,T),ha=b.type==h.xe.kA?ia:"",ha=this.xL(b,Z,p?F.Yl:F.label,X,Q,ha),la.push({label:E,value:J,Br:Z,id:R,kf:ha,measure:{uniqueName:F.uniqueName,$:F.$,index:F.index},Qg:X,lg:Q})),-1<n&&z.length>=n){W=G+1;break}}r=t=!1;R=this.sq(X);g.push({label:fa,value:K,id:R,wh:la});X=b.type==h.xe.kA?b.Hk.length:b.Hk.length*a;if(-1<n&&X>=n){P=!0;break}}}b.Te=v;b.Zv=z;return P};d.prototype.JGa=
function(b,a,c,e,g){var l=!1,m=void 0;l=void 0===l?!1:l;m=void 0===m?null:m;g=void 0===g?-1:g;b.EC=f.u.i.ia.Ia;var n=!l,p=[],t=this.G.Sb.Ra&&1==this.G.columns.length,r;var v=r="";var z=NaN,B,C,E=f.model.B.C.NQ;if(E>=a||-1==E)E=f.model.B.C.NQ=0;if(null!=m)var K=this.G.nj(this.model.ga.sa.rows.indexOf(m.uniqueName)),J=this.model.ga.I.Ee(m.uniqueName);var aa=!1;for(C=0;C<a;C++){var H=C;H=this.G.nj(H);if(!l){var G=[];z=this.G.Fa(G,H,e);if(0<this.G.columns.length&&0<H.length){var F=this.G.Sb.Ra&&(0==H.length||
H.length>this.G.He)?H.length:H.length-1;v=this.G.columns.ea(F);F=H[H.length-1];v=t?v.label:v.va(F).caption;v=this.Wv(v)}var I=t?"":this.w0(H,f.u.i.ia.Sa);I=this.Wv(I);b.Hk.push({label:I,id:this.sq(H)});if(!this.Ey(z))continue;if(b.Hk.length-1!=E&&1!=a)continue}var N=[];var L=this.Yo(z,G,H,e,b.Kt,b.Tf,b.Xd,b.fw);I=this.G.ic.Ra&&1==this.G.rows.length;for(B=0;B<c;B++)if(G=this.G.Lm(B)||[],!f.model.B.C.Io||this.SQ(f.model.B.C.Cv,G)||I||0==this.G.rows.length){var O=this.G.Fa(G,H,e);if(this.Ey(O)&&(F=l?
!1:this.Pg(G,f.u.i.ia.Ia),n&&!I&&this.MY(p,G,f.u.i.ia.Ia),!F&&(F=0==G.length?!1:this.G.Ih(G),!F))){if(l){if(null!=m){var T=this.G.Fa(G,K,J);T=m.va(T)}r=null!=T?T.caption:(B+1).toString()}else 0<this.G.rows.length&&(F=this.G.ic.Ra&&(0==G.length||G.length>this.G.He)?G.length:G.length-1,r=this.G.rows.ea(F),F=G[G.length-1],r=I?r.label:r.va(F).caption);F=this.sq(G);var M=this.Yo(O,G,H,e,b.Kt,b.Tf,b.Xd,b.fw);var V=this.xL(b,M,l?e.Yl:e.label,G,H,L);var P=r;r=this.Wv(r);P=I||P==r?"":P;N.push({label:I?"":
r,value:O,Br:M,id:F,kf:V,measure:{uniqueName:e.uniqueName,$:e.$,index:e.index},Qg:G,lg:H,u1:P});O=N.length;if(-1<g&&O>=g){aa=!0;break}}}n=!1;F=this.sq(H);b.data.push({label:v,value:z,id:F,lg:H,wh:N})}b.Te=p;return aa};d.prototype.IGa=function(b,a,c,e,g,l){l=this.Kfa(b,a,c,[e],b.data,!1,null,void 0===l?-1:l);if(!f.v(g)){var m=-1;l&&(m=b.Hk.length);b.Hk=[];b.ii=[];var n=b.Te;b.Te=[];this.Lfa(b,a,c,[g],b.Nv,!1,null,m);0==n.length&&(this.DQ(n,e,"0"),this.DQ(n,g,"1"));b.Te=n;1==b.Nv.length&&(b.Nv[0].jq=
"2")}return l};d.prototype.nS=function(b,a){a=void 0===a?!1:a;var c=b.__data__;null!=c&&c.data&&(c=c.data);if(f.v(c)&&f.model.B.C.lK){var e=A.Aa.Pb(b).closest("li.fm-ui-element");!f.v(e)&&e.attr("data-measure-index")&&(c={HC:parseInt(e.attr("data-measure-index"))})}e=c;a&&(e=d.K$(c),f.v(e)||(e.element=b));return e};d.prototype.Ey=function(b){return!isNaN(b)&&f.u.i.UN.TN!=b};d.K$=function(b){if(f.v(b))return null;var a={};f.v(b.id)||(a.id=b.id);f.v(b.label)||(a.label=b.label);f.v(b.value)||(a.value=
b.value);f.v(b.measure)||(a.measure=f.model.Ta.U().ga.sa.$c(b.measure.uniqueName).Ji());f.v(b.HC)||(a.measureIndex=b.HC);f.v(b.Qg)||(a.rows=f.model.Ta.U().ga.sa.LZ(b.Qg));f.v(b.lg)||(a.columns=f.model.Ta.U().ga.sa.KZ(b.lg));return a};q.Object.defineProperties(d.prototype,{Nl:{configurable:!0,enumerable:!0,get:function(){return this.Zp}},Xda:{configurable:!0,enumerable:!0,get:function(){var b=new A.Aa("div");b.text("FM");b.P("font-size","10px");b.$a();document.body.appendChild(b.element);var a="10px"==
b.P("font-size");b.remove();return a}}});d.BB=null;h.Du=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(a){var c=b.call(this,a.F)||this;c.K=a;c.K.N(h.mc.uI,function(){return c.fEa()});c.K.N(h.mc.vs,function(e){return c.XDa(e)});return c}function b(a){a=A.No.a8.call(this,a)||this;a.Ab=f.model.Ta.U();return a}u(b,A.No.a8);b.prototype.my=function(a){var c=this,e=[];a.Tc.forEach(function(g){e.push({id:"aggregation_"+g,label:f.u.i.ca.jF(g),isSelected:g==a.$,handler:function(){return c.Vea(a,g)}})});return e};b.prototype.Vea=function(a,c){var e=this.Ab.ga.sa.clone();
a=e.ad()[a.index];f.v(a)||(a.$=c,this.Ab.ae(e))};b.prototype.wR=function(a,c,e){f.pg(b.CK)&&(a=b.CK(a.slice(),c,e)||a);return a};b.prototype.ER=function(a,c,e){this.Ab.Wa(f.K.pi.F5,this,{ACa:a,coords:c,YJ:void 0===e?null:e})};b.CK=null;h.WH=b;u(d,b);d.prototype.fEa=function(){var a=this.K.ka.Fq;if(0!=a.length){var c=a[0],e=this.K.F.Sf(),g=e.left+this.K.ka.coords.fl(c.lc,this.K.ka.$b)+this.K.ka.coords.Zg(c.lc);c=e.top+this.K.ka.coords.Nn(c.hb,this.K.ka.$b)+this.K.ka.coords.Nd(c.hb);1==a.length?this.show(a[0],
{left:g,top:c}):this.kha(a,{left:g,top:c})}};d.prototype.XDa=function(a){if(a.B3){var c=this.K.ka.Nt(a.B3.F.element);a=a.B3.F.getBoundingClientRect();this.show(c,{left:a.right,top:a.bottom})}else{c=this.K.ka.Rf(a.hb,a.lc,!0);c.hb=a.hb;c.lc=a.lc;var e=this.K.F.Sf();a=e.left+this.K.ka.coords.fl(c.lc,this.K.ka.$b)+this.K.ka.coords.Zg(c.lc);e=e.top+this.K.ka.coords.Nn(c.hb,this.K.ka.$b)+this.K.ka.coords.Nd(c.hb);this.show(c,{left:a,top:e})}};d.prototype.H2=function(a,c){a=this.K.ka.Nt(a.target)||this.K.ka.bca(c.clientX,
c.clientY);null==a||f.ha(a.label)&&isNaN(a.value)||(this.show(a,{left:c.clientX,top:c.clientY}),this.K.ka.yr())};d.prototype.T2=function(a){var c=this.K.F.Sf(),e=a.clientX-c.left,g=a.clientY-c.top,l=a.clientX,m=a.clientY;if(!(0>e||0>g||e>this.K.cf()||g>this.K.qd())){e=this.K.ka.Nt(a.target)||this.K.ka.bca(a.clientX,a.clientY);g=this.K.ka.Fq;0==a.which&&0!=g.length&&(e=g[0],l=c.left+this.K.ka.coords.fl(e.lc,this.K.ka.$b)+this.K.ka.coords.Zg(e.lc),m=c.top+this.K.ka.coords.Nn(e.hb,this.K.ka.$b)+this.K.ka.coords.Nd(e.hb));
c=!1;if(1<g.length)for(var n=0;n<g.length;n++)if(g[n].hb==e.hb&&g[n].lc==e.lc){c=!0;break}(1<g.length&&c?this.kha(g,{left:l,top:m}):this.show(e,{left:l,top:m}))&&a.preventDefault()}};d.prototype.kha=function(a,c){var e=this;if(f.model.B.C.readOnly)return!1;var g=[],l=this.K;if(this.$Aa(a)){var m=a[0].hierarchy,n=a.map(function(p){return p.Xb.ordinal});g.push({id:"group",label:f.model.A.j.rja,handler:function(){f.NJa({lfa:function(p){m.c$(p,n);e.Ab.ga.select();e.K.ka.yr()},bU:function(){e.K.ka.yr()}})}})}g=
this.wR(g,a.map(function(p){return p.La()}),l.Ai?"flat":"pivot");return 0<g.length?(this.ER(g,c),!0):!1};d.prototype.$Aa=function(a){if(!f.model.B.C.A0)return!1;var c=a[0].hierarchy;if(f.v(c))return!1;for(var e=0;e<a.length;e++){var g=a[e];if(g.hierarchy!=c||f.v(g.Xb))return!1}return!0};d.prototype.show=function(a,c){var e=this;if(f.model.B.C.readOnly)return!1;var g=[],l=this.K,m=f.v(a)||f.ha(a.label)&&isNaN(a.value);!m&&a.Jh&&!isNaN(a.value)&&f.model.B.C.drillThrough&&!f.model.B.C.oc&&f.u.Na.U().fa&&
f.u.Na.U().fa.gT&&g.push({id:"drillthrough",label:f.model.A.j.E5,handler:function(){l.drillThrough(a)}});var n=this.Ab.ga.sa;if(!f.v(n)){!m&&a.wk&&f.model.B.C.jz&&g.push({id:"open_filter",label:f.model.A.j.G5,handler:function(){e.K.Da(new k.kO(a.hierarchy))}});if(!m&&a.wk&&!f.model.B.C.oc){var p=n.Ywa(a.hierarchy.uniqueName);f.v(p)||(p.uniqueName!=f.u.i.ia.Ia&&g.push({id:"move_to_rows",label:f.model.A.j.wja,handler:function(){p.Ma.removeItem(a.hierarchy.uniqueName);n.ic.Ma.Pa(a.hierarchy.uniqueName,
a.hierarchy);e.Ab.ae(n)}}),p.uniqueName!=f.u.i.ia.Sa&&g.push({id:"move_to_columns",label:f.model.A.j.uja,handler:function(){p.Ma.removeItem(a.hierarchy.uniqueName);n.Sb.Ma.Pa(a.hierarchy.uniqueName,a.hierarchy);e.Ab.ae(n)}}),p.uniqueName!=f.u.i.ia.As&&g.push({id:"move_to_report_filters",label:f.model.A.j.vja,handler:function(){p.Ma.removeItem(a.hierarchy.uniqueName);n.dH.Ma.Pa(a.hierarchy.uniqueName,a.hierarchy);e.Ab.ae(n)}}),g.push({id:"remove_field",label:f.O.bind(f.model.A.j.H5,a.hierarchy.caption),
handler:function(){p.Ma.removeItem(a.hierarchy.uniqueName);e.Ab.ae(n)}}))}m||!a.ci&&!a.th||(a.wf&&g.push({id:"collapse",label:f.model.A.j.kja,handler:function(){l.Ct(a)}}),a.collapsed&&g.push({id:"expand",label:f.model.A.j.pja,handler:function(){l.Ct(a)}}),a.hierarchy&&2<a.hierarchy.ra.length&&!n.drillAll&&(a.ng||a.Lg)&&g.push({id:a.ng?"drill_up":"drill_down",label:a.ng?f.model.A.j.nja:f.model.A.j.mja,handler:function(){l.Zx(a)}}));!m&&(a.ci||a.th)&&a.Xb&&a.Xb.ah&&g.push({id:"ungroup",label:f.model.A.j.Gja,
handler:function(){a.hierarchy.oN(a.Xb);e.Ab.ga.select()}});!m&&a.ci&&!a.wk&&a.Wm&&(a.Zn||g.push({id:"sort_row_desc",label:f.model.A.j.Fja,handler:function(){l.n4(a,f.u.i.xa.Ec)}}),a.Yn||g.push({id:"sort_row_asc",label:f.model.A.j.Eja,handler:function(){l.n4(a,f.u.i.xa.bc)}}),(a.Yn||a.Zn)&&g.push({id:"clear_sorting",label:f.model.A.j.D5,handler:function(){l.Ata()}}));!m&&a.th&&!a.wk&&a.Wm&&(a.Zn||g.push({id:"sort_column_desc",label:f.model.A.j.Dja,handler:function(){l.bN(a,f.u.i.xa.Ec)}}),a.Yn||g.push({id:"sort_column_asc",
label:f.model.A.j.Cja,handler:function(){l.bN(a,f.u.i.xa.bc)}}),(a.Yn||a.Zn)&&g.push({id:"clear_sorting",label:f.model.A.j.D5,handler:function(){l.vta()}}));if(!m&&(a.ci||a.th)){if(f.model.B.C.YM&&a.hierarchy&&a.Xb&&0<a.Xb.level.gf.length){var t=this.hza(a.Xb.level.gf,a.Xb.level.uniqueName);0<t.length&&g.push({id:"member_properties",label:f.model.A.j.yja,submenu:t})}a.Xb&&f.model.B.C.jz&&1!==a.Xb.hierarchy.cb.length&&g.push({id:"filter_by",label:f.O.bind(f.model.A.j.qja,a.Xb.caption),handler:function(){a.hierarchy.filter;
e.Ab.tl(a.hierarchy.uniqueName,{members:[a.Xb.Xi]})}})}m||!this.AAa(a)&&!this.zAa(a)||(t=this.my(a.measure),0<t.length&&g.push({id:"aggregation",label:f.model.A.j.C5,submenu:t}));!m&&a.measure&&k.Hb.zb.ada&&(g.push({id:"number_formatting",label:f.model.A.j.xja,handler:function(){e.TFa(a.measure)}}),g.push({id:"conditional_formatting",label:f.model.A.j.lja,handler:function(){e.RFa(a.measure)}}));!m&&a.measure&&a.measure.Ka&&g.push({id:"edit_calculated_value",label:f.O.bind(f.model.A.j.oja,a.measure.caption),
handler:function(){k.Hb.zb.vM(a.measure.uniqueName)}});var r=n.ad();!m&&a.measure&&1<r.length&&!f.model.B.C.oc&&g.push({id:"remove_measure",label:f.model.A.j.zja,handler:function(){n.dga(a.measure);e.Ab.IM(n.G4())}});!m&&a.wk&&f.model.B.C.oc&&(f.v(a.measure)&&f.v(a.hierarchy)||g.push({id:"remove_field",label:f.O.bind(f.model.A.j.H5,a.hierarchy?a.hierarchy.caption:a.measure.caption),handler:function(){a.hierarchy&&n.columns.Bb(a.hierarchy.uniqueName)?n.columns.removeItem(a.hierarchy.uniqueName):a.hierarchy&&
n.rows.Bb(a.hierarchy.uniqueName)?n.rows.removeItem(a.hierarchy.uniqueName):a.hierarchy&&n.pages.Bb(a.hierarchy.uniqueName)&&n.pages.removeItem(a.hierarchy.uniqueName);a.measure&&r.find(function(z){return z.uniqueName===a.measure.uniqueName})&&n.dga(a.measure);e.Ab.ae(n)}}));if(!m&&a.wk&&!f.v(a.hierarchy)&&f.model.B.C.qk&&(m=n.rows.Bb(a.hierarchy.uniqueName),t=n.columns.Bb(a.hierarchy.uniqueName),(m?n.vb.indexOf(a.hierarchy.uniqueName)!=n.vb.length-1:n.Cb.indexOf(a.hierarchy.uniqueName)!=n.Cb.length-
1)&&(m||t))){var v=!0===a.hierarchy.Yf;void 0===a.hierarchy.Yf&&(!m||"on"!=f.model.B.C.Yf&&"rows"!=f.model.B.C.Yf||(v=!0),!t||"on"!=f.model.B.C.Yf&&"columns"!=f.model.B.C.Yf||(v=!0));g.push({id:v?"hide_hierarchy_totals":"show_hierarchy_totals",label:v?f.model.A.j.tja:f.model.A.j.Bja,handler:function(){a.hierarchy.Yf=!v;e.Ab.ae(n)}})}g=this.wR(g,a?a.La():null,l.Ai?"flat":"pivot");return 0<g.length?(this.ER(g,c,function(z){return e.Xra(z,a)}),!0):!1}};d.prototype.Xra=function(a,c){var e=["open_filter",
"drillthrough","number_formatting","conditional_formatting","edit_calculated_value"];if(a&&0<=e.indexOf(a.id))return!1;e=["move_to_rows","move_to_columns","move_to_report_filters","remove_field"];if(a&&0<=e.indexOf(a.id))return!0;this.K.gz(c.hb,c.lc);return!1};d.prototype.TFa=function(a){a=void 0===a?null:a;f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.G7,{measureName:a.uniqueName,aggregation:a.$}))};d.prototype.RFa=function(a){a=void 0===a?null:a;f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.B5,{measureName:a.uniqueName}))};
d.prototype.AAa=function(a){return!f.model.B.C.oc&&f.model.B.C.ul&&a.measure&&!a.measure.Ka&&!a.measure.Bg};d.prototype.zAa=function(a){return f.model.B.C.oc&&f.model.B.C.ul&&a.measure&&!a.measure.Ka&&a.By&&a.Jr&&0<=a.measure.index};d.prototype.hza=function(a,c){for(var e=this,g=[],l=0;l<a.length;l++){var m=a.ea(l);if(m){var n=this.Ab.ga.sa.memberProperties;n&&n[c]&&-1<n[c].indexOf(m.uniqueName)?g.push({id:"hide_member_property",label:f.O.bind(f.model.A.j.sja,m.caption),data:{levelName:c,propertyName:m.uniqueName},
handler:function(p){e.K.lha(p,!1)}}):g.push({id:"show_member_property",label:f.O.bind(f.model.A.j.Aja,m.caption),data:{levelName:c,propertyName:m.uniqueName},handler:function(p){e.K.lha(p,!0)}})}}return g};h.wW=d})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.ye.call(this)||this;b.oi=0;b.ex=0;b.uo=0;b.Ye=0;b.dg=0;b.Ab=f.model.Ta.U();b.conditions=[];b.g9=function(){return b.gEa()};b.zT=function(a){return b.kp(a)};b.Y("fm-grid-view");b.ue();b.$j("grid");b.K8=new h.wW(b);b.Ab.N("reset_grid",b.g9);b.cu=x.sO.U();b.cu.N(x.KeyboardEvent.rO,b.zT);return b}u(d,A.Vb.ye);d.prototype.dispose=function(){this.G=null;this.Ab.mb("reset_grid",this.g9);this.Ab=null;this.ka&&this.ka.dispose();this.Me=null};d.prototype.kp=
function(b){if(this.Nm&&null!=this.cu&&null!=this.Me){var a=b.ctrlKey||b.metaKey;switch(b.keyCode){case 37:this.scroll("left",a);b.np.preventDefault();break;case 38:this.scroll("up",a);b.np.preventDefault();break;case 39:this.scroll("right",a);b.np.preventDefault();break;case 40:this.scroll("down",a);b.np.preventDefault();break;case 13:case 32:null!=this.xG()?this.ka.focus():this.gz(this.ka.coords.Ng,this.ka.coords.Qf),b.stopPropagation()}}};d.prototype.scroll=function(b,a){a=void 0===a?!1:a;switch(b){case "up":a?
this.Me.WHa():this.Me.Eq(this.Me.coords.Ng-1);break;case "down":a?this.Me.THa():this.Me.Eq(this.Me.coords.Ng+1);break;case "left":a?this.Me.UHa():this.Me.es(this.Me.coords.Qf-1);break;case "right":a?this.Me.VHa():this.Me.es(this.Me.coords.Qf+1)}};d.prototype.Wua=function(){var b=this,a=new h.sheet.VD;a.WB=function(c,e){return b.getData(c,e)};a.N(h.mc.hn,function(c){return b.JC(c)});a.N(h.mc.GI,function(c){return b.n2(c)});a.N(h.mc.Iu,function(c){return b.jp(c)});a.N(h.mc.qE,function(c){return b.R2(c)});
a.N(h.mc.rE,function(c){return b.S2(c)});a.N(h.mc.uI,function(c){return b.Da(c)});a.N(h.mc.vs,function(c){return b.Da(c)});this.F.append(a);return a};d.prototype.Tua=function(){var b=this,a=new h.sheet.oB.ON;a.WB=function(c,e){return b.getData(c,e)};a.N(h.mc.hn,function(c){return b.JC(c)});a.N(h.mc.GI,function(c){return b.n2(c)});a.N(h.mc.Iu,function(c){return b.jp(c)});a.N(h.mc.qE,function(c){return b.R2(c)});a.N(h.mc.rE,function(c){return b.S2(c)});a.N(h.mc.uI,function(c){return b.Da(c)});a.N(h.mc.vs,
function(c){return b.Da(c)});this.F.append(a);return a};d.prototype.$ua=function(){var b=this,a=new h.sheet.flat.sI;a.WB=function(c,e){return b.getData(c,e)};a.N(h.mc.hn,function(c){return b.JC(c)});a.N(h.mc.GI,function(c){return b.n2(c)});a.N(h.mc.Iu,function(c){return b.jp(c)});a.N(h.mc.qE,function(c){return b.R2(c)});a.N(h.mc.rE,function(c){return b.S2(c)});a.N(h.mc.uI,function(c){return b.Da(c)});a.N(h.mc.vs,function(c){return b.Da(c)});this.F.append(a);return a};d.prototype.Cya=function(){if(f.model.B.C.qk){if(this.ka&&
this.ka.type==h.sheet.oB.ON.TYPE)return this.ka;null!=this.ka&&this.ka.sg(!0);return this.Tua()}if(f.model.B.C.oc){if(this.ka&&this.ka.type==h.sheet.flat.sI.TYPE)return this.ka;null!=this.ka&&this.ka.sg(!0);return this.$ua()}if(this.ka&&this.ka.type==h.sheet.VD.TYPE)return this.ka;null!=this.ka&&this.ka.sg(!0);return this.Wua()};d.prototype.gb=function(){var b=this;if(!(1>f.model.Ea.pc.oj())&&(this.Me=this.Cya(),null!=this.ka)){this.Me.slice=f.u.Na.U().sa;this.ka.pha=this.Ab.Ga.zH?100:1E3;if(this.G&&
this.G.mj){this.ka.clearData();this.ex=this.uo=this.oi=0;var a=this.G.kq,c=f.model.B.C.qk?0<this.G.vb.length?1:0:this.G.Sm;if(c>=a+1){var e=0;var g=e+c;var l=e+(c-a)-1}else l=0,e=0<this.G.Em?l+(a-c)+1:l,0==this.G.Cb.length&&0==this.G.vb.length&&(e+=1),g=e+c;var m=l;this.oi=Math.min(e,m);this.ex=m;this.uo=0;this.Ye=g;this.dg=this.Ai?0:f.model.B.C.qk?this.G.ic.Ra&&this.G.Tn?this.G.Tm.length+1:this.G.Tm.length:0==this.G.rows.length?0:1;f.model.B.C.su||(this.ex=1==c&&0==this.G.Em?0:-1,this.Ye=a);this.Ai&&
(this.ka.MK.tga=function(n,p,t){return b.saveData(n,p,t)},this.ka.MK.Rga(f.model.B.C.TF));this.Ai&&"on"==f.model.B.C.Ef&&"top"==f.model.B.C.CL&&this.Ye++;g=this.G.nq;this.Ai&&"on"==f.model.B.C.Ef&&"bottom"==f.model.B.C.CL&&(g+=1);m=this.G.oq;0==m&&(m=this.G.columns.length-(this.G.Sb.Ra?1:0));this.ka.Oga(g,m);this.ka.rxa(this.dg);this.ka.Sba(this.Ye);if(this.ka instanceof h.sheet.VD&&(this.ka.coords.wF=this.Ye-this.G.kq-1,this.ka.bR.rowIndex=this.ka.coords.wF,this.ka.bR.dz(this.G.Cb),this.ka.nga.dz(this.G.vb),
this.ka.pfa.dz(this.G.pages),f.model.B.C.Qm)){g=this.G.vb.length;for(m=1;m<=g;m++)this.ka.coords.Cw(this.ka.coords.Vd-m,52);this.ka.coords.Cw(this.ka.coords.wF,52)}this.ka instanceof h.sheet.oB.ON&&(this.ka.coords.wF=this.Ye-this.G.kq-1,this.ka.bR.rowIndex=this.ka.coords.wF,this.ka.bR.dz(this.G.Cb),this.ka.nga.dz(this.G.vb),this.ka.pfa.dz(this.G.pages));(1<this.G.columns.length||!this.G.Sb.Ra)&&f.model.B.C.su&&this.a$(l,this.dg,f.u.i.ia.Sa);(1<this.G.rows.length||!this.G.ic.Ra)&&f.model.B.C.su&&(f.model.B.C.qk?
this.Upa(e):this.a$(e,0,f.u.i.ia.Ia));this.xHa();this.yHa();this.wHa();this.BHa();this.zHa();this.AHa();this.F.jg("rowcount",""+this.ka.coords.Ak);this.F.jg("colcount",""+this.ka.coords.$i)}else this.ka.tr();this.conditions=f.model.ta.gm.conditions.Ic();this.ka.resize(k.Hb.FL,k.Hb.jC);this.ka.gb()}};d.prototype.ot=function(){f.v(this.ka)||(this.ka.uF(0),this.ka.qB(0))};d.prototype.getData=function(b,a,c){c=void 0===c?!1:c;if(null==this.G||!this.G.mj||b<this.ex||a<this.uo)return null;var e=b-this.Ye,
g=a-this.dg;if((e>this.G.nq-1||g>this.G.oq-1)&&!(this.Ai&&"on"==f.model.B.C.Ef&&"bottom"==f.model.B.C.CL&&e==this.G.nq&&g<=this.G.oq-1))return null;var l=this.G.Lm(e,!0),m=this.G.nj(g,!0);if(null==l&&null==m)return null;var n=this.G.Zh(e,g),p;if(this.Ai){var t=this.G.nj(g,!0,!0);t instanceof Array&&(p=t[0][1])}if(this.Ai&&"on"==f.model.B.C.Ef&&"top"==f.model.B.C.CL&&(f.model.B.C.su&&1==b||!f.model.B.C.su&&0==b)||this.Ai&&"on"==f.model.B.C.Ef&&"bottom"==f.model.B.C.CL&&(f.model.B.C.su&&b==this.G.nq+
1||!f.model.B.C.su&&b==this.G.nq))return this.Pya(l,m,n);if(null==l)return c=1==(f.model.B.C.qk?1:this.G.vb.length)&&0==this.G.Em?b-this.ex:b-this.ex-1,0==this.G.vb.length&&0==this.G.Cb.length&&(c=b-this.ex),g=this.G.eL(g),this.sya(m,n,g,c,a,p);t=this.G.yS(e);e=this.G.DS(e);g=this.G.eL(g);return null==m?f.model.B.C.qk?this.wqa(l,n,t,b,a,e):this.Bza(l,n,t,b):this.lG(l,m,n,b,a,c,t,g,e,p)};d.prototype.lG=function(b,a,c,e,g,l,m,n,p,t){l=void 0===l?!1:l;m=void 0===m?NaN:m;n=void 0===n?NaN:n;p=void 0===
p?-1:p;if(f.v(c)){var r=new h.W.Yd;r.Jh=!0;r.lg=a;r.Qg=b;r.jl=this.G.Sm>b.length;r.gw=this.G.Em>a.length;r.vC=0==a.length;r.Jr=0==b.length;return r}var v=c.Dh(c.uniqueName,c.$).clone();c.$==f.u.i.ca.li?v.pd="":f.u.i.ca.Tf(c.$)?v.Tf=!0:f.u.i.ca.Xd(c.$)&&(v.Xd=!0,v.pd="%");r=new h.W.Yd;r.Jh=!0;r.lg=a;r.measure=c;r.hierarchy=this.Ab.ga.I.Vj(c.uniqueName);r.Qg=b;f.model.B.C.qk?0==b.length?r.level=0:(m=this.n0(b),-1<m&&(r.level=m)):f.model.B.C.oc||(r.level=m);t=this.G.Fa(b,a,c,t);r.value=t;this.Ai?(v=
c.type!=f.u.i.Ja.sc?c.Dh(c.uniqueName,c.$).clone():c.Dh(c.uniqueName,c.$,!0).clone(),c.type==f.u.i.Ja.sc?(m=this.G.iG(a).va(t),null!=m&&(r.Xb=m,r.label=m.caption)):c.type==f.u.i.Ja.fb?"string"===typeof t?r.label=t:(r.label=x.Tb.format(t,v),r.numeric=!0):c.type==f.u.i.Ja.Oa?null===t?r.label=f.model.A.j.XV:(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.mq),r.label=f.O.Gw(t,m,f.model.B.C.Mj)):c.type==f.u.i.Ja.Yb?isNaN(t)||(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.Cp),
r.label=f.O.Hw(t,m)):c.type!=f.u.i.Ja.Dc||isNaN(t)||(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.Yk),r.label=f.O.jN(t,m,f.model.B.C.Mj))):(m=(this.Ab.Ga.fa.Ba==f.u.i.oa.Nc||this.Ab.Ga.fa.Ba==f.u.i.oa.Zd)&&f.model.B.C.Jq&&c.$==f.u.i.ca.NONE,m||c.type!=f.u.i.Ja.fb&&c.type!=f.u.i.Ja.sc)?m||c.type!=f.u.i.Ja.Oa?m||c.type!=f.u.i.Ja.Yb?m||c.type!=f.u.i.Ja.Dc?(r.label=m?this.G.Yo(b,a,c):f.u.kX.U().Fa(t),r.numeric=m&&f.u.i.Ja.fb===c.type):isNaN(r.value)||(f.u.i.ca.AD(c.$)?(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,
"format",f.model.B.C.Yk),r.label=f.O.jN(t,m,f.model.B.C.Mj)):r.label=x.Tb.format(t,v)):isNaN(t)||(f.u.i.ca.eo(c.$)?(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.Cp),r.label=f.O.Hw(t,m)):r.label=x.Tb.format(t,v)):isNaN(t)||(f.u.i.ca.AD(c.$)?(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.mq),r.label=f.O.Gw(r.value,m,f.model.B.C.Mj)):r.label=x.Tb.format(t,v)):"string"===typeof t?r.label=t:(r.label=x.Tb.format(t,v),r.numeric=!0);r.DM=this.G.Pt(b,a);m=!1;var z=this.G.Hh(b,
void 0,c);if(this.G.Sm>b.length||z||this.G.Em>a.length){m=!0;r.jl=this.G.Sm>b.length||z;r.gw=this.G.Em>a.length;if("on"!=f.model.B.C.Yf&&!f.model.B.C.qk){var B=this.G.gM;if(0!=b.length&&(this.G.Ih(b)||this.G.Ih(b,c)||z)&&("off"==f.model.B.C.Yf||"columns"==f.model.B.C.Yf)||0!=a.length&&(this.G.Sj(a)||this.G.Sj(a,c))&&("off"==f.model.B.C.Yf||"rows"==f.model.B.C.Yf))return null;if(0==B&&1<this.G.measures.length)if(this.G.ic.Ra&&("off"==f.model.B.C.Yf||"columns"==f.model.B.C.Yf)){if(e<("on"==f.model.B.C.Ef||
"columns"==f.model.B.C.Ef?this.Ye+this.G.nq-this.G.measures.length:this.Ye+this.G.nq)&&this.G.Ih(b,c))return null}else if(this.G.Sb.Ra&&("off"==f.model.B.C.Yf||"rows"==f.model.B.C.Yf)&&g<("on"==f.model.B.C.Ef||"rows"==f.model.B.C.Ef?this.dg+this.G.oq-this.G.measures.length:this.dg+this.G.oq)&&this.G.Sj(a,c))return null}r.Jr=0==b.length;r.vC=0==a.length;r.aT=r.jl&&2==p&&!r.Jr;if(f.model.B.C.qk&&r.By&&"on"!=f.model.B.C.Ef&&("off"==f.model.B.C.Ef||"rows"==f.model.B.C.Ef&&r.Jr||"columns"==f.model.B.C.Ef&&
r.vC))return null}this.G.l1(e)&&(m=!0,r.jl=!0);this.G.V0(g)&&(m=!0,r.gw=!0);r.measure&&(r.measure.yC||r.measure.xC)&&!isNaN(r.value)&&(r.label="",r.yC=r.measure.yC,r.xC=r.measure.xC);if(l)return r;""!=v.textAlign&&r.Sx({"text-align":v.textAlign});if(0<this.conditions.length&&r.measure)for(l=0;l<this.conditions.length;l++)(p=this.conditions[l],p.bs!=e&&-1!=p.bs||p.qt!=g&&-1!=p.qt||!(p.measure==c.uniqueName&&""===p.$||""==p.measure&&r.numeric||p.measure=="[Measures].["+c.uniqueName+"]"||p.measure==
c.uniqueName&&p.$===r.measure.$)||p.Tj!==m&&void 0!==p.Tj||""!=p.hierarchy&&!this.fta(b,a,p.hierarchy,p.Xb))||((this.Ab.Ga.fa.Ba==f.u.i.oa.API?(f.v(p.ZF)&&(p.ZF=x.ws.pG(p.Sd,this.Ab.ga.I.measures)),v=p.ZF.slice(0)):v=p.Sd.slice(0),p.n1)?this.Ab.Ga.zH&&(z=this.G.hC(b,a,c))&&(-1<p.qe.toLowerCase().indexOf(f.u.i.jc.lP)?t=z.So:-1<p.qe.toLowerCase().indexOf(f.u.i.jc.mP)&&(t=100*z.Yr),v=this.G.xv(b,a,v,t),null!=v&&r.zaa(v)):(v=this.G.xv(b,a,v,t),f.v(p.format)||!0!==v&&"truestyle"!==v||(r.Sx(p.format.Iha()),
r.conditions.push(p.id)),r.VIa=!0));"after"===f.model.B.C.eR&&this.G.Rj(a,void 0,c)&&-1!==n&&(r.label="");return r};d.prototype.Pya=function(b,a,c){if(f.v(c))return null;var e=new h.W.Yd;e.Jh=!0;e.lg=a;e.measure=c;e.hierarchy=this.Ab.ga.I.Vj(c.uniqueName);e.Qg=b;if(c.type==f.u.i.Ja.fb||c.type==f.u.i.Ja.Yb||c.type==f.u.i.Ja.Dc){var g=c.Dh(c.uniqueName,c.$).clone();if(c.$==f.u.i.ca.li)g.pd="";else if(f.u.i.ca.Tf(c.$))g.Tf=!0;else if(f.u.i.ca.Xd(c.$)||c.Ka&&-1<c.qe.indexOf("percent"))g.Xd=!0,g.pd="%";
e.value=this.G.Fa(null,null,c);if(c.type==f.u.i.Ja.fb)e.label=x.Tb.format(e.value,g),e.numeric=!0;else if(c.type==f.u.i.Ja.Yb)isNaN(e.value)||(e.label=f.u.i.ca.eo(c.$)?f.O.Hw(e.value,f.model.B.C.Cp):x.Tb.format(e.value,g));else if(c.type==f.u.i.Ja.Dc&&!isNaN(e.value)){var l=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.Yk);e.label=f.u.i.ca.AD(c.$)?f.O.jN(e.value,l,f.model.B.C.Mj):x.Tb.format(e.value,g)}e.Jr=!0;e.jl=!0;""!=g.textAlign&&e.Sx({"text-align":g.textAlign});if(0<this.conditions.length)for(g=
0;g<this.conditions.length;g++){l=this.conditions[g];if(this.Ab.Ga.fa.Ba==f.u.i.oa.API){f.v(l.ZF)&&(l.ZF=x.ws.pG(l.Sd,this.Ab.ga.I.measures));var m=l.ZF.slice(0)}else m=l.Sd.slice(0);if(l.measure==c.uniqueName&&l.n1&&this.Ab.Ga.zH){var n=this.G.hC(b,a,c);if(n){var p;-1<l.qe.toLowerCase().indexOf(f.u.i.jc.lP)?p=n.So:-1<l.qe.toLowerCase().indexOf(f.u.i.jc.mP)&&(p=100*n.Yr);l=this.G.xv(b,a,m,p);null!=l&&e.zaa(l)}}}}return e};d.prototype.fta=function(b,a,c,e){var g=this.G.columns.indexOf(c);if(-1<g){if(g<
a.length)return b=this.G.columns.getItem(c),a[g]&&b.va(a[g]).VF(e)}else if(a=this.G.rows.indexOf(c),-1<a&&a<b.length)return c=this.G.rows.getItem(c),b[a]&&c.va(b[a]).VF(e);return!1};d.prototype.sya=function(b,a,c,e,g,l){return this.Ai?this.vqa(b,a,l):this.uqa(b,a,c,e,g)};d.prototype.yP=function(b){if(b.Bi)return!0;if(1<b.children.length)return!1;b=b.hierarchy.va(b.children[0]);return b.caption!==f.model.A.j.Mk&&b.caption!==f.model.A.j.cn?!1:this.yP(b)};d.prototype.uqa=function(b,a,c,e,g){if(0==b.length){if(this.G.ic.Ra&&
e==this.G.kq-1)return this.qG(a,f.u.i.ia.Sa);b=this.G.oq-this.G.measures.length+1;if(this.G.Sb.Ra&&e==this.G.kq-1&&g>=b&&1==this.G.measures.length)return this.qG(a,f.u.i.ia.Sa);b="on"==f.model.B.C.Ef||"rows"==f.model.B.C.Ef?this.dg+this.G.oq-this.G.measures.length:this.dg+this.G.oq;if(this.G.Sb.Ra&&0==e&&g>=b&&1<this.G.kq){if(g==b){var l=this.ZB();l.label=f.model.A.j.Pla;return l}return this.iL()}return this.G.Sb.Ra&&0==e&&1<this.G.kq?this.qG(a,f.u.i.ia.Sa):this.G.Sb.Ra&&e==this.G.kq-1?g>=b||1==this.G.Sb.Ma.length?
this.qG(a,f.u.i.ia.Sa):this.ZB():this.G.Sb.Ra&&0<e&&g<=b?this.ZB():0<=e?this.iL():null}var m=this.G.Sb.Ra&&(b.length>this.G.He||0==this.G.He)?b.length:b.length-1,n=this.G.columns.ea(m),p,t=this.G.Z0(g-this.dg);void 0!==t&&-1<e&&(m=p=e,this.G.Sb.Ra&&m>=this.G.He&&1<this.G.measures.length&&(p--,m++),p<t[0]&&(t=void 0));this.G.Sb.Ra&&m>this.G.He&&(1==this.G.measures.length?m--:c++);if(c>e&&void 0===t||0>e)return 0<=e?this.iL():null;l=new h.W.Yd;l.th=!0;l.measure=this.G.Sb.Ra&&(1<this.G.measures.length||
f.model.B.C.XM)?a:void 0;var r=!1,v=this.G.gM;if(void 0!==t)if(f.v(b[p]))if(e==v-1)l.label=void 0!==a?a.caption:f.model.A.j.vW,l.SL=!0;else return this.iL();else{var z=b[p];n=this.G.Cb.ea(p)}else z=b[b.length-1];z=n.va(z);l.DM=this.G.Pt([],b);if(this.G.Sb.Ra&&1<this.G.measures.length&&e==v-1||this.G.Sb.Ra&&f.model.B.C.XM&&e==v-1&&1!=v||this.G.Sb.Ra&&f.model.B.C.XM&&e==v&&1==v&&2>this.G.measures.length)l.label=a.label,l.SL=!0,z=null;else{if(this.G.Sb.Ra&&0<a.index&&e<v)return this.iL();c<e?m==e?(r=
b.length-1!=this.G.Em-1&&!z.Wb,l.label=z.caption):(l.label=this.G.kq-1==e&&f.model.B.C.XM?void 0!==a?a.caption:f.model.A.j.vW:"",z=null):(r=b.length-1!=this.G.Em-1&&!z.Wb,l.label=z.caption,this.G.Sb.Ra&&e<v&&1<this.G.measures.length&&(l.measure=a=void 0));void 0!==t&&(t[t.length-1]>=p&&(r=!0),f.v(b[p])&&(r=!1))}e=null==z?!1:this.G.Rj(b,z,a);!z||this.yP(z)||z.Wb||z.Bi||!z.hierarchy.qg||z.level.cw||(r||f.model.B.C.rH?e?l.ng=!0:l.Lg=!0:e?l.wf=!0:l.collapsed=!0);r&&!e&&(this.G.Sj(b,a)||void 0!==t&&-1<
t.indexOf(p)?l.wf=!0:l.collapsed=!0);if("on"==f.model.B.C.vj||"columns"==f.model.B.C.vj){l.Wm=!0;if(f.ha(l.label)||f.v(a))l.Wm=!1;"off"!=f.model.B.C.Yf&&"rows"!=f.model.B.C.Yf||!l.wf||(l.Wm=!1);l.Wm&&this.G.wn&&this.G.wn.toString()==b.toString()&&this.G.Hv==a&&(this.G.ui==f.u.i.xa.Ec?l.Zn=!0:this.G.ui==f.u.i.xa.bc&&(l.Yn=!0))}l.gw=this.G.Em>b.length||l.Lg||l.ng||!f.model.B.C.rH&&(l.wf||l.collapsed);l.gw&&this.G.R3(g);"after"!==f.model.B.C.eR||-1!==c||l.SL||(l.Wm=!1,l.label="",l.wf=!1,l.collapsed=
!1,l.ng=!1,l.Lg=!1);l.We=void 0!==t?b.slice(0,p+1):b;l.hierarchy=n;l.Xb=z;return l};d.prototype.vqa=function(b,a,c){var e=this.G.iG(b);if(void 0===e){if(f.v(a))return null;b=new h.W.Yd;b.th=!0;b.label=a.caption;b.measure=a;this.w$(b,a);return b}var g;void 0!==c&&(g=e.ra.ea(c));var l=new h.W.Yd;l.th=!0;l.wk=!0;l.PS=e.F_;l.cb=e.filter.$g;l.label=void 0===g?e.label:e.label+"."+g.caption;l.We=b;l.hierarchy=e;l.level=c;l.Xb=null;l.measure=a;l.draggable=!0;this.w$(l,a);return l};d.prototype.w$=function(b,
a){if("on"===f.model.B.C.vj||"columns"===f.model.B.C.vj){b.Wm=!0;var c=this.G.jS(a.uniqueName);!f.v(c)&&c.measure&&c.measure.uniqueName==a.uniqueName&&(c.sort==f.u.i.xa.Ec?b.Zn=!0:c.sort==f.u.i.xa.bc&&(b.Yn=!0),1<this.G.Wh.length&&(b.p4=this.G.Wh.indexOf(c)))}};d.prototype.ZB=function(){var b=new h.W.Yd;b.th=!0;return b};d.prototype.iL=function(){var b=this.ZB();b.ob=!0;return b};d.prototype.qG=function(b,a){var c=new h.W.Yd;c.label=void 0===b?f.model.A.j.uW:b.Ir;c.SL=void 0!==b;void 0!==b&&b.I0&&
(c.label=b.label);if(a==f.u.i.ia.Sa){c.th=!0;c.gw=c.vC=!0;if("on"===f.model.B.C.vj||"columns"===f.model.B.C.vj)c.Wm=!0,!this.G.wn||""!==this.G.wn.toString()||void 0!==b&&this.G.Hv!==b||(this.G.ui===f.u.i.xa.Ec?c.Zn=!0:this.G.ui===f.u.i.xa.bc&&(c.Yn=!0));this.G.Sb.Ra?c.measure=b:c.label=f.model.A.j.uW}else{c.ci=!0;c.jl=c.Jr=!0;if("on"===f.model.B.C.vj||"rows"===f.model.B.C.vj)c.Wm=!0,!this.G.Ek||""!==this.G.Ek.toString()||void 0!==b&&this.G.cs!==b||(this.G.rl===f.u.i.xa.Ec?c.Zn=!0:this.G.rl===f.u.i.xa.bc&&
(c.Yn=!0));this.G.ic.Ra?c.measure=b:c.label=f.model.A.j.uW;c.level=0}c.We=[];return c};d.prototype.Bza=function(b,a,c,e){if(0==b.length)return this.qG(a,f.u.i.ia.Ia);var g=this.G.ic.Ra&&b.length>this.G.He?b.length:b.length-1,l=b[b.length-1],m=this.G.rows.ea(g),n=new h.W.Yd;n.ci=!0;var p=!1;l=m.va(l);n.level=c;void 0!==a&&this.G.ic.Ra&&this.G.Tn&&g<=this.G.He?(n.label=a.label,l=null):l&&(p=this.wB(l),n.QS=""!=p,n.label=l.caption+p,p=b.length!=this.G.Sm&&!l.Wb&&!l.ah);c=null==l?!1:this.G.Hh(b,l,a);
!l||l.Wb||!l.hierarchy.qg||l.Bi||this.yP(l)||(f.model.B.C.rH?c?n.ng=!0:n.Lg=!0:c?n.wf=!0:n.collapsed=!0);p&&!c&&(this.G.Ih(b,a)?n.wf=!0:n.collapsed=!0);if("on"==f.model.B.C.vj||"rows"==f.model.B.C.vj)if(!(this.G.ic.Ra&&1<this.G.measures.length&&this.G.He>=b.length)||a&&n.label==a.caption)n.Wm=!0,this.G.Ek&&this.G.Ek.toString()==b.toString()&&this.G.cs==a&&(this.G.rl==f.u.i.xa.Ec?n.Zn=!0:this.G.rl==f.u.i.xa.bc&&(n.Yn=!0));n.jl=this.G.Sm>b.length||n.ng||n.Lg||!f.model.B.C.rH&&(n.wf||n.collapsed);n.We=
b;n.hierarchy=m;n.Xb=l;n.measure=this.G.ic.Ra&&1<this.G.measures.length?a:void 0;n.jl&&this.G.fV(e);return n};d.prototype.wqa=function(b,a,c,e,g,l){if(0===b.length){if(0===g)return this.qG(a,f.u.i.ia.Ia);var m=new h.W.Yd;m.ci=!0;m.jl=m.Jr=!0;m.ob=!0;m.level=c;return m}var n=g;m=this.G.Tm[g];for(var p,t,r=0;r<this.G.vb.length;r++){var v=this.G.vb.ea(r);p=v.Gt(m);if(null!=p){var z=v;n=r;break}}r=null==b[n]?0:b[n];m=new h.W.Yd;m.ci=!0;m.jl=this.G.Sm>b.length;m.aT=m.jl&&2==l;p=!1;c>g&&(p=!0);c>g&&2==
l&&(p=!0);c+1<g&&2==l&&(p=!0);m.level=Math.min(b.length-1,g);var B=b.slice(0);v=!1;if(g==this.G.Tm.length)m.label=a.label,v=!0;else{var C=!1;B=void 0===a?0:a.index;var E=z.va(r);t=this.G.Tm.indexOf(E.level.uniqueName)-g;var K=null!=E&&(E.ah||2!=l);if(0>t)if(E.Wb)v=!0;else return m;else if(0<t)for(r=0;r<t;r++)E=E.parent;E&&(r=this.G.Tm.indexOf(E.level.uniqueName),-1<r&&(m.level=r));m.Xb=E;if(2==l)E&&c==g&&(m.label=this.G.ic.Ra&&1<this.G.measures.length?E.caption+" "+a.label:E.caption+" "+f.model.A.j.vW,
v=!0);else{if(0>t)return f.ha(m.label)&&(m.ob=!0),r=this.n0(b),-1<r&&(m.level=r),m;0<B&&(E=null);E&&0!=E.ordinal&&(r=this.wB(E),m.QS=""!=r,m.label=E.caption+r);C=1==l&&n<this.G.vb.length-1&&0>=B&&!E.ah}m.DM=this.G.Pt(b,[]);B=b.slice(0,n+1);if(K&&E){B[n]=E.ordinal;var J=this.G.Hh(B,E,a);E.Wb||!E.hierarchy.qg||E.Bi||2==l&&(!E.ah||J)||this.yP(E)||(f.model.B.C.rH?J?m.ng=!0:(m.Lg=!0,m.jl=!0):J?m.wf=!0:(m.collapsed=!0,m.jl=!0))}C&&!J&&(this.G.Ih(B,a)?m.wf=!0:m.collapsed=!0)}if(p)m.label="",m.Yn=m.Zn=m.collapsed=
m.wf=m.ng=m.Lg=!1;else if(m.We=B,m.hierarchy=z,m.measure=this.G.ic.Ra&&1<this.G.measures.length?a:void 0,"on"==f.model.B.C.vj||"rows"==f.model.B.C.vj)m.Wm=!0,!this.G.Ek||this.G.Ek.toString()!=B.toString()||this.G.cs!=a||m.wf||m.ng||this.G.ic.Ra&&1<this.G.measures.length&&(!(this.G.ic.Ra&&1<this.G.measures.length)||null!=m.Xb&&!m.aT)||(this.G.rl==f.u.i.xa.Ec?m.Zn=!0:this.G.rl==f.u.i.xa.bc&&(m.Yn=!0));v&&(r=this.n0(b),-1<r&&(m.level=r));f.ha(m.label)&&(m.ob=!0,m.WAa=2==l&&E&&g-1>c?!1:!0);m.jl&&this.G.fV(e);
return m};d.prototype.n0=function(b){return(b=this.G.zS(b).va(b[b.length-1]))?this.G.Tm.indexOf(b.level.uniqueName):-1};d.prototype.wB=function(b){if(this.Ab.Ga.fa.Ba!==f.u.i.oa.Nc&&this.Ab.Ga.fa.Ba!==f.u.i.oa.Zd||!f.model.B.C.YM)return"";var a=this.Ab.ga.sa.memberProperties[b.level.uniqueName];if(void 0===a||0===a.length)return"";for(var c=[],e=0;e<a.length;e++){var g=b.level.gf.getItem(a[e]),l=b.yza(a[e]);f.ha(l)||null==g||c.push('<br/><span class="fm-member-property-label">'+g.caption+':</span> <span class="fm-member-property-value">'+
l+"</span>")}return 0<c.length?c.join("")+"<br/>":""};d.prototype.JC=function(b){f.v(b.cell)||f.model.B.C.readOnly||!b.cell.th&&!b.cell.ci||(b.cell.bB==h.W.Mp.Y5?this.Zx(b.cell):b.cell.bB==h.W.Mp.vO&&b.cell.hBa||(f.v(b.cell.Xb)||b.cell.bB==h.W.Mp.UI?b.cell.bB==h.W.Mp.UI&&(b.cell.th&&this.bN(b.cell,null,!x.Oi.Qn&&b.np.ctrlKey||x.Oi.Qn&&b.np.metaKey),b.cell.ci&&this.n4(b.cell)):f.model.B.C.rH||b.cell.Xb.Bi?this.Ct(b.cell):this.Zx(b.cell)))};d.prototype.jp=function(b){f.model.B.C.jz&&b.hierarchy.WL&&
this.Da(new k.kO(b.hierarchy))};d.prototype.Zx=function(b){if(b.Lg||b.ng||b.wf||b.collapsed){var a=b.We,c=f.model.B.C.qk?void 0:b.measure,e=b.Xb;if(null!=e&&!e.Wb&&!e.Bi){if(b.ci){b=f.u.i.ia.Ia;var g=this.G.Hh(a,e,c)}else b=f.u.i.ia.Sa,g=this.G.Rj(a,e,c);g?this.G.To(a,e,b,c):this.G.tf(a,e,b,c)}}};d.prototype.Ct=function(b){if(!f.v(this.ka)&&(b.wf||b.collapsed)){var a=b.We,c=b.th?f.u.i.ia.Sa:f.u.i.ia.Ia,e=f.model.B.C.qk&&c==f.u.i.ia.Ia?void 0:b.measure;b.wf?(this.ka.clearData(),this.G.collapse(a,c,
e)):b.collapsed&&(this.ka.clearData(),this.G.expand(a,c,e));b.th?this.ka.uF(b.lc+1):this.ka.qB(b.hb+1)}};d.prototype.n2=function(b){b.Wda?this.YIa(b.cell):(f.model.B.C.drillThrough&&!f.model.B.C.oc&&this.Ab.ga.fa&&this.Ab.ga.fa.gT&&this.drillThrough(b.cell),this.Vva(b.cell))};d.prototype.drillThrough=function(b){b.Jh&&void 0!==b.measure&&(b=new k.d6({uniqueName:b.measure.uniqueName,$:b.measure.$},b.lg,b.Qg,b.La()),this.Da(b))};d.prototype.YIa=function(b){var a=b.La();this.WU(a,b.lc,b.hb);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.u5,
a))};d.prototype.Vva=function(b){var a=b.La();this.WU(a,b.lc,b.hb);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.KN,a))};d.prototype.WU=function(b,a,c){b.x=this.ka.coords.fl(a,this.ka.$b);b.y=this.ka.coords.Nn(c,this.ka.$b);b.width=this.ka.coords.Zg(a);b.height=this.ka.coords.Nd(c)};d.prototype.n4=function(b,a){a=void 0===a?"":a;var c=b.We;b=b.measure;void 0===b&&(b=this.G.measures[0]);this.G.Ek&&this.G.Ek.toString()==c.toString()&&this.G.cs==b?this.G.rl=this.G.rl==f.u.i.xa.Ec?f.u.i.xa.bc:f.u.i.xa.Ec:
(this.G.rl=f.u.i.xa.Ec,this.G.Ek=c,this.G.cs=b);""!=a&&(this.G.rl=a);this.G.sort();this.ka.uF(0);this.gb()};d.prototype.bN=function(b,a,c){a=void 0===a?"":a;c=void 0===c?!1:c;f.model.B.C.oc?(a=this.G.jS(b.measure.uniqueName),f.v(a)?(b={measure:b.measure,sort:f.u.i.xa.xS("",b.measure.type!=f.u.i.Ja.sc,!0)},!f.v(this.G.Wh)&&c?this.G.Wh.push(b):this.G.Wh=[b]):(a.sort=f.u.i.xa.xS(a.sort,b.measure.type!=f.u.i.Ja.sc,!0),a.sort==f.u.i.xa.Zc?this.G.Wh.splice(this.G.Wh.indexOf(a),1):c||(this.G.Wh=[a]))):(this.G.wn=
b.We,this.G.Hv=f.v(b.measure)?this.G.measures[0]:b.measure,this.G.ui=f.ha(a)?f.u.i.xa.xS(this.G.ui):a);this.G.sort();this.ka.qB(0);this.gb()};d.prototype.vta=function(){this.G.ui=f.u.i.xa.Zc;this.G.wn=null;this.G.Hv=void 0;this.G.Sb.rB();this.G.sort();this.ka.qB(0);this.gb()};d.prototype.Ata=function(){this.G.rl=f.u.i.xa.Zc;this.G.Ek=null;this.G.cs=void 0;this.G.ic.rB();this.G.sort();this.ka.uF(0);this.gb()};d.prototype.lha=function(b,a){var c=this.Ab.ga.sa.memberProperties;c||(c={});c[b.levelName]||
(c[b.levelName]=[]);var e=c[b.levelName].indexOf(b.propertyName);a?-1==e&&(c[b.levelName].push(b.propertyName),this.Ab.ga.sa.memberProperties=c):-1<e&&c[b.levelName].splice(e,1);this.ka.clearData();this.ka.qB(0);this.gb()};d.prototype.saveData=function(b,a,c){b=this.getData(b,a);b.label!=c&&b.value!=c&&(this.G.save(b.Qg,b.lg,b.hierarchy,c),this.Ai&&this.gb())};d.prototype.a$=function(b,a,c){for(var e=c==f.u.i.ia.Sa?this.G.Cb:this.G.vb,g,l=0,m=0;m<e.length;m++){var n=e.ea(m);n.Qe||(g=new h.W.Yd,g.label=
n.label,g.wk=!0,g.draggable=!0,g.PS=!0,g.cb=n.filter.$g,g.level=l,g.hierarchy=n,c==f.u.i.ia.Sa?(g.isFrozen=!this.Ai,this.ka.G.XU(b,a+m,g)):(g.ci=!0,this.ka.G.XU(b+l,a,g),l++))}};d.prototype.Upa=function(b){for(var a=this.G.vb,c,e=0,g=this.G.ic.Ra&&1<this.G.measures.length?this.dg-1:this.dg,l=0;l<a.length;l++){var m=a.ea(l);c=new h.W.Yd;c.label=m.label;c.wk=!0;c.draggable=!0;c.PS=!0;c.cb=m.filter.$g;c.hierarchy=m;this.ka.G.XU(b,0+e,c);e++;if(2<m.ra.length)for(var n=null==m.nc?2:m.nc.sb+1;n<m.ra.length;n++){var p=
m.ra.ea(n);-1!=this.G.Tm.indexOf(p.uniqueName)&&(c=new h.W.Yd,c.label=p.caption,c.ci=!0,c.PS=!0,this.ka.G.XU(b,0+e,c),e++);if(e>=g)break}if(e>=g)break}};d.prototype.Nj=function(b,a,c,e){c=void 0===c?null:c;e=void 0===e?null:e;b==f.model.vc.Li.Vz&&f.model.vc.n6.Wf(this,a,e);b==f.model.vc.Li.Lu&&f.model.vc.m6.Wf(this,a,this.ka.coords.Wk,this.ka.coords.Po,e);b==f.model.vc.Li.xh&&f.model.vc.l6.Wf(this,a,this.ka.coords.Wk,this.ka.coords.Po,c);b==f.model.vc.Li.JSON&&f.model.vc.o6.Wf(this,a,this.ka.coords.Wk,
this.ka.coords.Po,c);b==f.model.vc.Li.dA&&f.model.vc.Ke.Wf(this,a,this.ka.coords.Wk,this.ka.coords.Po,e);b==f.model.vc.Li.XD&&(a.qz=a.qz&&(this.Ab.Ga.fa.Ba==f.u.i.oa.Nc||this.Ab.Ga.fa.Ba==f.u.i.oa.Zd)&&f.model.B.C.Jq,f.model.vc.q6.Wf(this,a,this.ka.coords.Wk,this.ka.coords.Po))};d.prototype.print=function(b){b=void 0===b?"":b;f.model.$r.nE.U().Wf(this,b)};d.prototype.Rf=function(b,a){b=this.sS(b,a);a=b.La();this.WU(a,b.lc,b.hb);return a};d.prototype.sS=function(b,a){var c=null;this.ka&&(c=this.ka.Rf(b,
a,!0));if(null==c){c=new h.W.Yd;c.hb=b;c.lc=a;var e=this.getData(b,a,!0);c.value=e?e.value:NaN;isNaN(c.value)||(c.label=x.Tb.format(c.value))}-1==c.hb&&(c.hb=b);-1==c.lc&&(c.lc=a);return c};d.prototype.xG=function(){if(f.v(this.ka))return null;var b=this.ka.Fq.map(function(a){return a.La()});if(0==b.length)return null;if(1<b.length)return b;b=b[0];this.WU(b,b.columnIndex,b.rowIndex);return b};d.prototype.gz=function(b,a){f.v(this.ka)||this.ka.select(b,a,b,a)};d.prototype.bD=function(){f.v(this.ka)||
this.ka.yr()};d.prototype.R2=function(b){this.w9(b.data.lc,b.data.width)};d.prototype.S2=function(b){this.x9(b.data.hb,b.data.height)};d.prototype.w9=function(b,a){if(b<this.dg)0<a?f.model.size.nd.columnHeaderSizes[b]=a:delete f.model.size.nd.columnHeaderSizes[b];else{var c=this.G.nj(b-this.dg,!0);null!=c&&(b=this.G.iS(b-this.dg),this.G.Sb.Ra&&c.push(b),0<a?f.model.size.nd.columnSizes[c.join(",")]=a:delete f.model.size.nd.columnSizes[c.join(",")])}};d.prototype.xHa=function(){var b=f.model.size.nd.columnSizesByIdx;
f.model.size.nd.columnSizesByIdx={};var a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)]=b[c]);for(var e in a)this.ka.D3(parseInt(e),a[e]),this.w9(parseInt(e),a[e])};d.prototype.yHa=function(){var b=f.model.size.nd.columnHeaderSizes,a=[],c;for(c in b)isNaN(b[c])||(a[c]=b[c]);for(var e in a)b=parseInt(e),b<this.dg&&this.ka.D3(b,a[b])};d.prototype.wHa=function(){var b=f.model.size.nd.columnSizes,a=[],c;for(c in b)if(!isNaN(b[c])){var e=this.G.UB(""==c?[]:c.split(","));-1!=e&&(e+=this.dg,a[e]=b[c])}for(var g in a)this.ka.D3(parseInt(g),
a[g])};d.prototype.BHa=function(){var b=f.model.size.nd.rowSizesByIdx;f.model.size.nd.rowSizesByIdx={};var a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)]=b[c]);for(var e in a)this.ka.G3(parseInt(e),a[e]),this.x9(parseInt(e),a[e])};d.prototype.zHa=function(){f.model.size.nd.tD=this.oi;var b=f.model.size.nd.rowHeaderSizes,a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)+this.oi]=b[c]);for(var e in a)parseInt(e)<this.Ye&&this.ka.G3(parseInt(e),a[e])};d.prototype.AHa=function(){var b=f.model.size.nd.rowSizes,
a=[],c;for(c in b)if(!isNaN(b[c])){var e=this.G.eC(""==c?[]:c.split(","));-1!=e&&(e+=this.Ye,a[e]=b[c])}for(var g in a)this.ka.G3(parseInt(g),a[g])};d.prototype.x9=function(b,a){f.model.size.nd.tD=this.oi;if(b<this.oi)0<a?f.model.size.nd.rowFilterSizes[b]=a:delete f.model.size.nd.rowFilterSizes[b];else if(b<this.Ye)0<a?f.model.size.nd.rowHeaderSizes[b-this.oi]=a:delete f.model.size.nd.rowHeaderSizes[b-this.oi];else{var c=this.G.Lm(b-this.Ye,!0);null!=c&&(b=this.G.CS(b-this.Ye),this.G.ic.Ra&&c.push(b),
0<a?f.model.size.nd.rowSizes[c.join(",")]=a:delete f.model.size.nd.rowSizes[c.join(",")])}};d.prototype.gEa=function(){this.ka&&(this.ka.Eq(0),this.ka.es(0),this.ka.yr())};q.Object.defineProperties(d.prototype,{Ai:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.oc}},ka:{configurable:!0,enumerable:!0,get:function(){return this.Me}},EL:{configurable:!0,enumerable:!0,get:function(){return this.G.mj?this.G.nq+this.Ye:0}},DL:{configurable:!0,enumerable:!0,get:function(){return this.G.mj?
this.G.oq+this.dg:0}}});h.Qla=d})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(l,m){var n=y.da.call(this,g.zI)||this;n.zg=l;n.value=m;return n}function b(l,m,n){n=void 0===n?null:n;var p=y.da.call(this,g.vs)||this;p.hb=l;p.lc=m;p.B3=n;return p}function a(l,m,n){n=void 0===n?null:n;var p=y.da.call(this,g.Iu)||this;p.hierarchy=l;p.cell=m;p.element=n;return p}function c(l,m,n){n=void 0===n?null:n;var p=y.da.call(this,g.GI)||this;p.cell=l;p.Wda=m;p.element=n;return p}function e(l,m,n){m=void 0===m?null:m;n=void 0===n?null:n;var p=
y.da.call(this,g.hn)||this;p.cell=l;p.element=m;p.np=n;return p}function g(){}g.hn="mclick";g.GI="singledoubleclick";g.a6="dthclosed";g.Iu="filter_click";g.zI="live_filter_change";g.qE="resize_c";g.rE="resize_r";g.noa="request_data_doubleclick";g.X5="dragndrop_remove";g.W5="dragndrop_move";g.vs="filter_keyboard_select";g.uI="grid_keyboard_select";h.mc=g;u(e,y.da);h.S6=e;u(c,y.da);h.T6=c;u(a,y.da);h.iO=a;u(b,y.da);h.jO=b;u(d,y.da);h.rma=d})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.validate=function(b){return b==d.Ez||b==d.Cu||b==d.ih?b:d.Ez};d.Ez="compact";d.Cu="classic";d.ih="flat";h.ie=d})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(){if(null!=h.ne)throw Error("Singleton");var d=A.Vb.mh.call(this,k.Hb.zb.F)||this;d.Y("fm-alert-view");d.$j("alertdialog");d.te();return d}u(h,A.Vb.mh);h.U=function(){null==h.ne&&(h.ne=new h);return h.ne};h.dispose=function(){h.ne=null};h.prototype.te=function(){var d=this;this.QC.Y("fm-overlay-alert");this.lJ=[];var b=new A.Ca("div","fm-content");this.V(b);this.mr=new A.Oc;this.mr.Y("fm-popup-title");b.V(this.mr);this.lr=new A.Oc;b.V(this.lr);this.Zs=new A.Ca("div",
"fm-ui-btns-row");b.V(this.Zs);this.HA=new A.Ca("div","fm-alert-icon");this.HA.Cm();this.V(this.HA);f.Pj.addEventListener("keydown",function(a){return d.kp(a)})};h.prototype.Xr=function(d,b,a,c,e,g){d=void 0===d?"":d;b=void 0===b?"":b;a=void 0===a?f.rb.Ik:a;c=void 0===c?null:c;e=void 0===e?null:e;g=void 0===g?!1:g;this.clear();this.aha(b);this.oH(d);this.wIa(a);this.iIa(c,e);k.Hb.zb.V(this);this.h1=g;this.open();this.fxa();this.Go()};h.prototype.fxa=function(){var d=this.Zs.F.find(".fm-ui-btn-dark");
null==d&&(d=this.Zs.F.find(".fm-ui-btn"));d&&d.focus({preventScroll:!0})};h.prototype.clear=function(){this.aha("");for(this.oH("");0<this.lJ.length;)this.lJ.pop().sg();this.F.Ua("fm-alert",!1);this.F.Ua("fm-confirmation",!1);this.F.Ua("fm-error",!1);this.F.Ua("fm-info",!1);this.F.Ua("fm-question",!1)};h.prototype.aha=function(d){this.mr.gV(!1);this.mr.Za(d)};h.prototype.oH=function(d){this.lr.Za(d,!0)};h.prototype.iIa=function(d,b){var a=this;null==d&&(d=[f.model.A.j.OV]);d.reverse();null!=b&&b.reverse();
this.QX=b;for(var c=0;c<d.length;c++)b=new A.Jf,b.Za(d[c]),b.N(A.sd.Xe,function(e){return a.Nsa(e)}),this.lJ.push(b),this.isPrimary(d[c])&&b.Y("fm-ui-btn-dark"),this.isPrimary(d[c])&&(x.Oi.Qn||x.Oi.wC)?this.Zs.V(b):this.isPrimary(d[c])?this.Zs.F.prepend(b.F):this.Zs.V(b)};h.prototype.isPrimary=function(d){switch(d){case f.model.A.j.OV:case f.model.A.j.n5:case f.model.A.j.l5:case f.model.A.j.MD:return!0}return!1};h.prototype.Nsa=function(d){d=d.target;for(var b=-1,a=0;a<this.lJ.length;a++)if(this.lJ[a]==
d){b=a;break}if(!(0>b)&&(this.close(),null!=this.QX&&null!=this.QX[b]))this.QX[b]()};h.prototype.wIa=function(d){this.HA.F.ww();d==f.rb.Ik?this.HA.F.V(this.cva()):d==f.rb.fm?this.HA.F.V(this.dva()):d==f.rb.ya?this.HA.F.V(this.eva()):d==f.rb.pO&&this.HA.F.V(this.fva())};h.prototype.dva=function(){var d=new A.Aa("span","fm-circle");d.V(new A.Aa("span","fm-ui-icon fm-icon-notif_confirm"));return d};h.prototype.fva=function(){var d=new A.Aa("span","fm-circle");d.V(new A.Aa("span","fm-ui-icon fm-icon-notif_info"));
return d};h.prototype.cva=function(){var d=new A.Aa("span","fm-triangle-wrap");d.V(new A.Aa("span","fm-triangle"));d.V(new A.Aa("span","fm-ui-icon fm-icon-notif_warning"));return d};h.prototype.eva=function(){var d=new A.Aa("span","fm-hexagon");d.V(new A.Aa("span","fm-ui-icon fm-icon-notif_arrow"));return d};h.prototype.close=function(){A.Vb.mh.prototype.close.call(this);this.clear()};h.prototype.L2=function(){this.h1||A.Vb.mh.prototype.L2.call(this)};h.prototype.kp=function(d){27===d.keyCode&&(A.Vb.mh.prototype.close.call(this),
this.clear())};k.GN=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(){if(null!=h.ne)throw Error("Singleton");var d=A.Vb.mh.call(this,k.Hb.zb.F)||this;d.Y("fm-prompt-view");d.te();return d}u(h,A.Vb.mh);h.U=function(){null==h.ne&&(h.ne=new h);return h.ne};h.dispose=function(){h.ne=null};h.prototype.te=function(){var d=this;this.QC.Y("fm-overlay-alert");var b=new A.Ca("div","fm-content");this.V(b);this.lr=new A.Oc;this.lr.Y("fm-message-label");b.V(this.lr);this.JJ=new A.Pi;this.JJ.Y("fm-prompt-input");b.V(this.JJ);this.Zs=new A.Ca("div",
"fm-ui-btns-row");b.V(this.Zs);b=new A.Jf("fm-ui-btn-dark");b.Za(f.model.A.j.OV);b.N(A.sd.Xe,function(){return d.MC()});this.Zs.V(b);b=new A.Jf;b.Za(f.model.A.j.Jk);b.N(A.sd.Xe,function(){return d.Sr()});this.Zs.V(b,x.Oi.Qn||x.Oi.wC)};h.prototype.Xr=function(d,b){this.B=b=void 0===b?null:b;this.lr.Za(void 0===d?"":d);this.JJ.cj(b&&b.defaultValue?b.defaultValue:"");k.Hb.zb.V(this);this.open();this.Go();this.JJ.F.element.focus()};h.prototype.MC=function(){this.B&&this.B.lfa&&this.B.lfa(this.JJ.yi());
this.close()};h.prototype.Sr=function(){this.B&&this.B.bU&&this.B.bU();this.close()};k.joa=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.value=NaN;this.label="";this.level=NaN;this.Zn=this.Yn=this.Wm=this.ng=this.Lg=this.draggable=this.collapsed=this.wf=this.cb=this.QS=this.PS=this.VIa=this.hBa=this.Jh=this.aT=this.vC=this.Jr=this.gw=this.jl=this.SL=this.th=this.ci=this.isFrozen=this.wk=this.Wt=this.numeric=!1;this.lc=this.hb=this.p4=-1;this.DM=null;this.il=this.WAa=this.ob=!1;this.conditions=[];this.xC=this.yC=!1;this.bB=d.Mp.i5}b.prototype.Jya=function(){return this.ng||
this.Lg?this.hierarchy.ra.ea(this.Xb.level.sb+1).caption:""};b.prototype.J=function(a){a=void 0===a?!1:a;if(null!=b.Mv){var c=new Ha;c.clear();c.tag="div";c.text+=this.KR;b.Mv(c.node,this.La());var e=c.text;e=f.model.Nb.valid(e)?e:f.model.Nb.validate(e);this.Wt=e!=this.label?!0:this.Wt;c.clear();c=document.createElement("div");c.innerHTML=e;e=c.textContent&&"number"!=typeof e?c.textContent.trim():e;a&&!this.QS&&(e=f.O.In(e,!0,!0));return e}return a?this.KR:this.label};b.prototype.Sx=function(a){this.Wt=
!0;null==this.style&&(this.style=new d.M5);this.style.gra(a)};b.prototype.zaa=function(a){this.Wt=!0;null==this.style&&(this.style=new d.M5);this.style.tv(a);this.style.lra(a)};b.prototype.La=function(){if(this.Tea)return this.Tea;var a=f.model.Ta.U().ga.sa,c=[];f.model.B.C.oc||f.v(a)||(c=a.KZ(this.th&&this.We?this.We:this.lg));var e=[];f.model.B.C.oc||f.v(a)||(e=a.LZ(this.ci&&this.We?this.We:this.Qg));a={columnIndex:this.lc,columns:c,label:this.label,escapedLabel:this.KR,measure:this.measure?this.measure.Ji():
null,hierarchy:this.hierarchy?this.hierarchy.Ji():null,member:this.Xb?this.Xb.La():null,rowIndex:this.hb,rows:e,type:this.th||this.ci||this.wk?"header":"value",value:this.value,expanded:this.wf,collapsed:this.collapsed,drilledUp:this.Lg,drilledDown:this.ng,recordId:this.DM,isTotal:this.Tj,isTotalRow:this.jl,isTotalColumn:this.gw,isClassicTotalRow:this.aT,isGrandTotal:this.By,isGrandTotalRow:this.Jr,isGrandTotalColumn:this.vC,isDrillThrough:this.il};isNaN(this.level)||(a.level=this.level);0<this.conditions.length&&
(a.conditions=this.conditions);return this.Tea=a};q.Object.defineProperties(b.prototype,{KR:{configurable:!0,enumerable:!0,get:function(){return this.QS?this.label:f.O.In(this.label,!0,!0)}},Tj:{configurable:!0,enumerable:!0,get:function(){return this.jl||this.gw}},By:{configurable:!0,enumerable:!0,get:function(){return this.Jr||this.vC}}});b.Mv=null;d.Yd=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.tV=[];this.AB=[];this.P={}}b.prototype.tv=function(a){-1==this.tV.indexOf(a)&&this.tV.push(a)};b.prototype.lra=function(a){-1==this.AB.indexOf(a)&&this.AB.push(a)};b.prototype.gra=function(a){for(var c in a)this.P[c]=a[c]};b.prototype.mS=function(){return this.AB.join(" ")};b.prototype.FS=function(){var a="",c;for(c in this.P)a+=c+":"+this.P[c]+";";return a};d.M5=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){}a.Rya=function(c){return 500<c?a.Ria:a.Ena};a.Ena="";a.Ria="Bold";d.Mla=a;b.prototype.merge=function(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};b.prototype.clone=function(){var c=new b;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};b.Axa=function(c,e){e=void 0===e?null:e;var g=new b;if(null==e||null!=e&&e.P("color")!=c.P("color"))g.color=c.P("color");if(null==e||null!=e&&e.P("background-color")!=c.P("background-color"))g.backgroundColor=c.P("background-color");if(null==e||null!=e&&e.P("background-image")!=c.P("background-image"))g.backgroundImage=
c.P("background-image");if(null==e||null!=e&&e.P("border-color")!=c.P("border-color"))g.borderColor=c.P("border-color");if(null==e||null!=e&&e.P("font-size")!=c.P("font-size"))g.fontSize=parseInt(c.P("font-size"));if(null==e||null!=e&&e.P("font-weight")!=c.P("font-weight"))g.fontWeight=c.P("font-weight");if(null==e||null!=e&&e.P("fill")!=c.P("fill"))g.fill=c.P("fill");if(null==e||null!=e&&e.P("text-align")!=c.P("text-align"))g.textAlign=c.P("text-align");if(null==e||null!=e&&e.P("font-family")!=c.P("font-family"))g.fontFamily=
c.P("font-family");if(null==e||null!=e&&e.P("width")!=c.P("width"))g.width=parseInt(c.P("width"));if(null==e||null!=e&&e.P("max-width")!=c.P("max-width"))g.maxWidth=parseInt(c.P("max-width"));if(null==e||null!=e&&e.P("min-width")!=c.P("min-width"))g.minWidth=parseInt(c.P("min-width"));if(null==e||null!=e&&e.P("height")!=c.P("height"))g.height=parseInt(c.P("height"));if(null==e||null!=e&&e.P("max-height")!=c.P("max-height"))g.maxHeight=parseInt(c.P("max-height"));if(null==e||null!=e&&e.P("min-height")!=
c.P("min-height"))g.minHeight=parseInt(c.P("min-height"));return g};b.dl=function(c,e,g){e=void 0===e?null:e;g=void 0===g?!0:g;var l=new A.Aa("div");l.Y(c).$a();c=new A.Aa("div");null==e?k.Hb.zb.F.append(l).append(c):e.append(l).append(c);e=b.Axa(l,g?c:null);l.remove();c.remove();return e};b.aS=function(c){var e=new b,g;for(c=c.replace(/ /g,";");-1<(g=c.indexOf(";"));)this.Kva(c.substring(0,g),e),c=c.substring(g+1);return e};b.VS=function(c){c=c.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,
g,l,m){return g+g+l+l+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)+")"};b.Kva=function(c,e){-1<c.indexOf("background-color")?e.backgroundColor=this.VS(c.substring(17,c.length)):-1<c.indexOf("background-image")?e.backgroundImage=c.substring(17,c.length):-1<c.indexOf("border-color")?e.borderColor=this.VS(c.substring(13,c.length)):-1<c.indexOf("color")?e.color=this.VS(c.substring(6,c.length)):-1<c.indexOf("font-size")?
e.fontSize=parseInt(c.substring(10,c.length)):-1<c.indexOf("fill")?e.fill=this.VS(c.substring(5,c.length)):-1<c.indexOf("text-align")?e.textAlign=c.substring(11,c.length):-1<c.indexOf("max-width")?e.maxWidth=parseInt(c.substring(10,c.length)):-1<c.indexOf("max-height")?e.maxHeight=parseInt(c.substring(11,c.length)):-1<c.indexOf("width")&&(e.width=parseInt(c.substring(6,c.length)))};b.ly=function(c,e,g){e=void 0===e?null:e;g=void 0===g?null:g;var l="";null==e&&(e=b.Zja);for(var m=0;m<e.length;m++)if(null==
g||null!=g&&c.P(e[m])!=g.P(e[m]))l+=e[m]+":"+c.P(e[m])+";";return l};b.vk=function(c,e,g){e=void 0===e?null:e;g=void 0===g?null:g;var l=new A.Aa("div");l.Y(c).$a();if(void 0===m){var m=new A.Aa("div");m.$a()}null==e?k.Hb.zb.F.append(l).append(m):e.append(l).append(m);c=b.ly(l,g,m);l.remove();null!=m&&m.remove();return c};b.h3=function(c){var e=[],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++)e[g]=parseInt(c[g]);void 0==e[3]&&(e[3]=1);return e};
b.Zja="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(" ");d.Yc=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}b.lX="fm-pivot-title";b.we="fm-cell";b.TV="fm-empty";b.YO="fm-sheet-header";b.zj="fm-header";b.Uz="fm-header-c";b.Ku="fm-header-r";b.Qma="fm-measure-header";b.Lp="fm-filter-header";b.yI="fm-live-filtering-header";b.pI="fm-filter-icon";b.nW="fm-filtered";b.jI="fm-filtered-icon";b.Vu="fm-total";b.mpa="fm-total-r";b.lpa="fm-total-c";b.tI="fm-grand-total";b.Ola="fm-grand-total-r";b.Nla="fm-grand-total-c";b.yW="fm-hierarchy-link";b.vO="fm-link";
b.zpa="fm-v-sort";b.Cpa="fm-v-sort-icon";b.Apa="fm-v-sort-asc";b.Bpa="fm-v-sort-desc";b.Rla="fm-h-sort";b.Ula="fm-h-sort-icon";b.Sla="fm-h-sort-asc";b.Tla="fm-h-sort-desc";b.jA="fm-sort-icon";b.e8="fm-with-order";b.iW="fm-expanded";b.j6="fm-expanded-icon";b.UV="fm-collapsed";b.z5="fm-collapsed-icon";b.qf="fm-level-";b.jka="fm-drilled-up";b.ika="fm-drilled-down";b.zW="fm-icon";b.X6="fm-kpi";b.Zla="fm-kpi-status-bad-icon";b.cma="fm-kpi-status-risk-icon";b.ama="fm-kpi-status-ok-icon";b.bma="fm-kpi-status-rising-icon";
b.$la="fm-kpi-status-good-icon";b.dma="fm-kpi-trend-bad-icon";b.hma="fm-kpi-trend-risk-icon";b.fma="fm-kpi-trend-ok-icon";b.gma="fm-kpi-trend-rising-icon";b.ema="fm-kpi-trend-good-icon";d.ua=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(){}b.jma="left icon";b.UI="right icon";b.gk="label";b.Y5="drill";b.vO="link";b.i5="backgroud";d.Mp=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){var a=k.X.WH.call(this,b.F)||this;a.bd=b;return a}u(d,k.X.WH);d.prototype.H2=function(b,a){this.show(b.target,{left:a.clientX,top:a.clientY},b)};d.prototype.T2=function(b){this.show(b.target,{left:b.clientX,top:b.clientY},b)};d.prototype.cza=function(b){b=this.bd.nS(b);var a=this.Ab.ga.sa.ad();if(b&&!isNaN(b.HC))return a[b.HC];if(b&&b.measure)for(var c=0;c<a.length;c++)if(a[c].uniqueName==b.measure.uniqueName&&a[c].$==b.measure.$&&a[c].index==b.measure.index)return a[c];
return null};d.prototype.show=function(b,a,c){var e=this;if(!f.model.B.C.readOnly){var g=[];this.bd.yda(c.target)&&g.push({id:"drillthrough",label:f.model.A.j.E5,handler:function(){e.bd.drillThrough(c.target)}});this.bd.YAa(c.target)&&g.push({id:"open_filter",label:f.model.A.j.G5,handler:function(){e.bd.cH(c.target)}});var l=this.cza(b);l&&!l.Ka&&!l.Bg&&f.model.B.C.ul&&(l=this.my(l),0<l.length&&g.push({id:"aggregation",label:f.model.A.j.C5,submenu:l}));g=this.wR(g,this.bd.nS(b,!0),"charts");0<g.length&&
c.preventDefault();this.ER(g,a)}};d.prototype.Vea=function(b,a){var c=this.Ab.ga.sa.clone();b=c.ad()[b.index];b.$=a;f.model.B.C.Ho.$=b.$;this.Ab.ae(c)};h.Tja=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.rows=[];this.columns=[]}function a(){this.bv=this.cv=-1;this.wF=this.H_=this.xV=this.aN=this.scrollLeft=this.scrollTop=this.Qf=this.Ng=this.Vd=this.Hd=this.Po=this.Wk=this.sY=this.tQ=0;this.WA=15E5;this.YA=this.XA=1;this.Ri=[];this.Is=[];this.Us=[];this.er=[];this.Vs=[];this.BE=[];this.YE=[];this.WA=this.Jza();this.tQ=a.c8;this.sY=a.b8;this.jD();this.Yga()}a.prototype.Yga=function(){if(void 0===this.qY||void 0===this.pY){var c=
this.Kza();c&&(this.qY=c.width,this.pY=c.height)}};a.prototype.Kza=function(){return x.Bd().Vl?this.J$():x.Bd().Y0?{width:15,height:15}:x.Oi.Qn||x.Bd().$S||x.Bd().Rda?this.J$():{width:17,height:17}};a.prototype.J$=function(){if(null==k.Hb.zb.F.element.offsetParent)return null;var c=document.createElement("div");c.style.width="100%";c.style.height="100px";var e=document.createElement("div");x.Oi.Qn&&e.classList.add("fm-scrollbars");e.style.position="absolute";e.style.top="0px";e.style.left="0px";e.style.visibility=
"hidden";e.style.width="50px";e.style.height="50px";e.style.overflow="hidden";e.appendChild(c);k.Hb.zb.F.element.appendChild(e);var g=c.offsetWidth;e.style.overflow="scroll";var l=c.offsetWidth;g==l&&(l=e.clientWidth);c.style.width="100px";c.style.height="100%";e.style.overflow="hidden";var m=c.offsetHeight;e.style.overflow="scroll";c=c.offsetHeight;m==c&&(c=e.clientHeight);k.Hb.zb.F.element.removeChild(e);e=g-l;m-=c;x.Bd().QL&&(m=e);return{width:e,height:m}};a.prototype.Jza=function(){return x.BR().$S||
x.BR().QL?1E7:15E5};a.prototype.uF=function(c){this.Is.length-1>=c&&(this.Is.length=c);this.er.length-1>=c&&(this.er.length=c);this.BE.length-1>=c&&(this.BE.length=c);for(var e in this.Ri)this.Ri.hasOwnProperty(e)&&!f.v(this.Ri[e])&&this.Ri[e].length-1>=c&&(this.Ri[e].length=c);this.cv=-1};a.prototype.qB=function(c){this.Us.length-1>=c&&(this.Us.length=c);this.Vs.length-1>=c&&(this.Vs.length=c);this.YE.length-1>=c&&(this.YE.length=c);this.Ri.length-1>=c&&(this.Ri.length=c);this.bv=-1};a.prototype.reset=
function(){this.Is.length=0;this.Us.length=0;this.er.length=0;this.Vs.length=0;this.BE.length=0;this.YE.length=0;this.bv=this.cv=-1;this.H_=this.xV=this.scrollLeft=this.scrollTop=this.Qf=this.Ng=this.Vd=this.Hd=this.Po=this.Wk=0;this.tQ=a.c8;this.sY=a.b8;this.YA=this.XA=1;this.aN=this.Ri.length=0;this.jD()};a.prototype.jD=function(){var c=k.X.W.Yc.dl(x.Bd().Vl?"fm-grid-column-mobile":"fm-grid-column");isNaN(c.minWidth)||(a.SD=c.minWidth);isNaN(c.width)||(a.ts=Math.max(a.SD,c.width));isNaN(c.maxWidth)||
(a.Kp=0>=c.maxWidth?0:Math.max(a.SD,c.maxWidth));var e=k.X.W.Yc.dl(x.Bd().Vl?"fm-grid-row-mobile":"fm-grid-row");isNaN(e.minHeight)||(a.RD=e.minHeight);isNaN(e.height)||(a.Bu=Math.max(a.RD,e.height));isNaN(e.maxHeight)||(a.Qq=0>=c.maxHeight?0:Math.max(a.RD,e.maxHeight))};a.prototype.setScale=function(){var c=this.jt(this.Vd,this.Vd+this.Po);this.YA=c>this.WA?this.WA/c:1;c=this.kt(this.Hd,this.Hd+this.Wk);this.XA=c>this.WA?this.WA/c:1};a.prototype.resize=function(c,e){this.OA=c;this.NA=e};a.prototype.Nd=
function(c){var e=isNaN(this.Us[c])?a.Bu:this.Us[c];return 0<a.Qq&&!this.BC(c)?Math.min(a.Qq,e):e};a.prototype.Cw=function(c,e,g,l){0!=e&&(e=Math.max(e,a.RD));if(void 0===g?0:g){if(isNaN(this.Vs[c])||e>this.Vs[c])this.Vs[c]=e}else this.Us[c]=e,this.bv=-1;(void 0===l?0:l)&&(this.YE[c]=!0)};a.prototype.vHa=function(c){if(this.BC(c)){delete this.Us[c];delete this.Vs[c];delete this.YE[c];this.bv=-1;for(var e in this.Ri)this.Ri.hasOwnProperty(e)&&delete this.Ri[e]}};a.prototype.Zg=function(c){if(-1==c)return this.Hr();
if(c>=this.$i)return Math.max(100,a.ts);var e=isNaN(this.Is[c])?a.ts:this.Is[c];return 0<a.Kp&&!this.tC(c)?Math.min(a.Kp,e):e};a.prototype.WK=function(c,e,g){return 0>=g?Math.max(e,c):Math.min(g,Math.max(e,c))};a.prototype.QM=function(c,e,g,l){0!=e&&(e=this.WK(e,a.SD,a.Kp));if(void 0===g?0:g){if(isNaN(this.er[c])||e>this.er[c])this.er[c]=e}else-1==c?this.tQ=e:this.Is[c]=e,this.cv=-1;(void 0===l?0:l)&&(this.BE[c]=!0)};a.prototype.tHa=function(c){if(this.tC(c)){delete this.Is[c];delete this.er[c];delete this.BE[c];
this.cv=-1;for(var e in this.Ri)this.Ri.hasOwnProperty(e)&&(f.v(this.Ri[e])||delete this.Ri[e][c])}};a.prototype.tC=function(c){return!0===this.BE[c]};a.prototype.BC=function(c){return!0===this.YE[c]};a.prototype.IQ=function(){var c=new b;for(m in this.Vs){var e=parseInt(m);if(!isNaN(e)&&!this.BC(e)){var g=this.Vs[e];!isNaN(g)&&g>this.Nd(e)&&(this.Cw(e,g),c.rows.push(e))}}this.Vs.length=0;for(var l in this.er){var m=parseInt(l);isNaN(m)||this.tC(m)||(e=this.er[m],!isNaN(e)&&e>this.Zg(m)&&(this.QM(m,
e),c.columns.push(m)))}this.er.length=0;return c};a.prototype.uL=function(c,e){e=void 0===e?!1:e;var g=c/this.vt*(this.Mr/this.YA-this.Mr)*this.YA;if(1!=this.YA&&c+g>=this.vt-this.Mr){e=this.Ak;for(g=this.vt;g>c;)g-=this.Nd(e),e--;return e+1}e=e?0:this.Vd;for(var l=0;l<c+g;)l+=this.Nd(e)*this.YA,e++;return e};a.prototype.cL=function(c,e){var g=c/this.wt*(this.bp/this.XA-this.bp)*this.XA;if(1!=this.XA&&c+g>=this.wt-this.bp){e=this.$i;for(g=this.wt;g>c;)g-=this.Zg(e),e--;return e+1}e=(void 0===e?0:
e)?0:this.Hd;for(var l=0;l<c+g;)l+=this.Zg(e)*this.XA,e++;return e};a.prototype.Qca=function(c){for(var e=0,g=0,l=this.Ed;g<l;)g+=this.Nd(c+e),e++;return e};a.prototype.Pca=function(c){for(var e=0,g=0,l=this.Fd;g<l;)g+=this.Zg(c+e),e++;return e};a.prototype.kt=function(c,e){if(c>=e)return 0;var g=0,l=0,m;for(m in this.Is){var n=parseInt(m);!isNaN(n)&&!isNaN(this.Is[n])&&n>=c&&n<e&&(l++,g+=this.Zg(n))}g+=(Math.min(e,this.$i)-c-l)*(0<a.Kp?Math.min(a.Kp,a.ts):a.ts);e>=this.$i&&(g+=(e-this.$i)*this.Zg(e));
return g};a.prototype.jt=function(c,e){if(c>=e)return 0;var g=0,l=0,m;for(m in this.Us){var n=parseInt(m);!isNaN(n)&&!isNaN(this.Us[n])&&n>=c&&n<e&&(l++,g+=this.Nd(n))}return g+=(e-c-l)*(0<a.Qq?Math.min(a.Qq,a.Bu):a.Bu)};a.prototype.uta=function(){this.Ri.length=0};a.prototype.rda=function(c,e){return f.v(this.Ri[c])?!1:!0===this.Ri[c][e]};a.prototype.jIa=function(c,e){f.v(this.Ri[c])&&(this.Ri[c]=[]);this.Ri[c][e]=!0};a.prototype.UQ=function(){this.cv=this.bv=-1};a.prototype.Hr=function(){return f.model.B.C.vl?
this.tQ:0};a.prototype.Qt=function(){return f.model.B.C.vl?this.sY:0};a.prototype.oya=function(){for(var c=[],e=this.Hd;e<this.Wk&&(this.sda(e)||(c.push(e),!(50<=c.length)));e++);return c};a.prototype.pya=function(c){var e=[];c.bottom=Math.min(c.bottom,this.Ak);for(var g=c.left;g<=c.right;g++)for(var l=c.top;l<=c.bottom;l++)if(!this.rda(l,g)){e.push(g);break}return e};a.prototype.sda=function(c,e){return!isNaN(this.Is[c])||(void 0===e||e?!isNaN(this.er[c]):!1)};a.prototype.fC=function(c,e){e=void 0===
e?!1:e;var g=f.model.B.C.vl&&e?this.Qt():0;return g+=this.jt(e?0:this.Vd,c)};a.prototype.SB=function(c,e){e=void 0===e?!1:e;var g=f.model.B.C.vl&&e?this.Hr():0;return g+=this.kt(e?0:this.Hd,c)};a.prototype.Ln=function(c){c=void 0===c?!1:c;return new d.QD(this.fG(c),this.gG(c),this.RB(c),this.ny(c))};a.prototype.gG=function(c){return this.Av?this.Vd:(void 0===c?0:c)?Math.max(this.Vd,this.Ng-a.X7):Math.max(this.Vd,this.Ng)};a.prototype.fG=function(c){return this.Av?this.Hd:(void 0===c?0:c)?Math.max(this.Hd,
this.Qf-a.A5):Math.max(this.Hd,this.Qf)};a.prototype.ny=function(c){c=void 0===c?!1:c;var e=this.Qca(this.Ng);return this.Av?this.mC?this.Ak:this.Ng+e:c?Math.min(this.Ng+e+(this.mC?a.X7:0),this.mC?this.Ak:Number.MAX_VALUE):this.Ng+e};a.prototype.RB=function(c){var e=this.Pca(this.Qf);return this.Av?this.lC?this.$i:this.Qf+e:(void 0===c?0:c)?Math.min(this.Qf+e+(this.lC?a.A5:0),this.lC?this.$i:Number.MAX_VALUE):this.Qf+e};a.prototype.zC=function(c){c=void 0===c?NaN:c;isNaN(c)&&(c=this.RB());return 0<
this.scrollLeft&&c>=this.$i};a.prototype.AC=function(c){c=void 0===c?NaN:c;isNaN(c)&&(c=this.ny());return 0<this.scrollTop&&c>=this.Ak};a.prototype.bL=function(c){c=void 0===c?NaN:c;isNaN(c)&&(c=this.Qf);return this.zC()?this.wt-this.scrollLeft-this.kt(c,this.$i):0};a.prototype.tL=function(c){c=void 0===c?NaN:c;isNaN(c)&&(c=this.Ng);return this.AC()?this.vt-this.scrollTop-this.jt(c,this.Ak):0};a.prototype.BS=function(c,e){if(c<this.ke)return NaN;if(f.model.B.C.vl&&c<this.ke+this.Qt())return-1;var g=
0,l=this.ke+this.Qt();c>this.iq&&(g=this.Ng,l=this.ke+this.iq,e&&g>this.Vd?(e=this.scrollTop-this.fC(g-1),0<e&&(l-=e,g--)):e||(c-=this.tL()));for(;l<c;)l+=this.Nd(g),g++;return g-1};a.prototype.gS=function(c,e){if(f.model.B.C.vl&&c<this.Hr())return-1;var g=0,l=this.Hr();c>this.tp&&(g=this.Qf,l=this.tp,e&&g>this.Hd?(e=this.scrollLeft-this.SB(g-1)+this.aN,0<e&&(l-=e,g--)):e||(c-=this.bL()));for(;l<c;)l+=this.Zg(g),g++;return g-1};a.prototype.Nn=function(c,e,g){g=void 0===g?!0:g;var l=0,m=(g?this.ke:
0)+this.Qt();c>this.Vd&&(l=this.Ng,m=(g?this.ke:0)+this.iq,l<=c&&(m+=e?this.fC(this.Ng)-this.scrollTop:this.tL()));return m+=this.jt(l,c)};a.prototype.fl=function(c,e){var g=0,l=this.Hr();c>this.Hd&&(g=this.Qf,l=this.tp,g<=c&&(l+=e?this.SB(this.Qf)-this.scrollLeft-this.aN:this.bL()));return l+=this.kt(g,c)};a.prototype.xBa=function(c){return isNaN(this.Us[c])};a.prototype.On=function(c,e){return!isNaN(c)&&0==this.Nd(c)||!isNaN(e)&&0==this.Zg(e)?!0:!1};q.Object.defineProperties(a.prototype,{ke:{configurable:!0,
enumerable:!0,get:function(){return this.xV+this.H_}},eD:{configurable:!0,enumerable:!0,get:function(){return this.mC?this.qY:0}},dD:{configurable:!0,enumerable:!0,get:function(){return this.lC?this.pY:0}},bp:{configurable:!0,enumerable:!0,get:function(){return this.OA}},Mr:{configurable:!0,enumerable:!0,get:function(){return this.NA}},Ax:{configurable:!0,enumerable:!0,get:function(){return this.NA-this.dD-this.ke}},et:{configurable:!0,enumerable:!0,get:function(){return this.OA-this.eD}},Fd:{configurable:!0,
enumerable:!0,get:function(){return this.OA-this.tp}},Ed:{configurable:!0,enumerable:!0,get:function(){return this.NA-this.iq-this.ke}},$i:{configurable:!0,enumerable:!0,get:function(){return this.Hd+this.Wk}},Ak:{configurable:!0,enumerable:!0,get:function(){return this.Vd+this.Po}},wt:{configurable:!0,enumerable:!0,get:function(){return 0<=this.cv?this.cv:this.cv=1>this.XA?this.WA:this.kt(this.Hd,this.Hd+this.Wk)}},vt:{configurable:!0,enumerable:!0,get:function(){return 0<=this.bv?this.bv:this.bv=
1>this.YA?this.WA:this.jt(this.Vd,this.Vd+this.Po)}},FCa:{configurable:!0,enumerable:!0,get:function(){for(var c=0,e=this.Hd+this.Wk,g=this.Hd;g<e;g++)if(c+=this.Zg(g),c>a.D7)return a.D7;return c}},tp:{configurable:!0,enumerable:!0,get:function(){for(var c=this.Hr(),e=0;e<this.Hd;e++)c+=this.Zg(e);return c}},iq:{configurable:!0,enumerable:!0,get:function(){for(var c=this.Qt(),e=0;e<this.Vd;e++)c+=this.Nd(e);return c}},lC:{configurable:!0,enumerable:!0,get:function(){return this.wt+(this.vt>this.Ed?
this.qY:0)>this.Fd}},mC:{configurable:!0,enumerable:!0,get:function(){return this.vt+(this.wt>this.Fd?this.pY:0)>this.Ed}},Av:{configurable:!0,enumerable:!0,get:function(){return x.Bd().Di?!1:500>Math.max(this.$i,this.et/a.ts)*Math.max(this.Ak,this.Ax/a.Bu)}},Wsa:{configurable:!0,enumerable:!0,get:function(){return x.Bd().Di?!1:(this.mC||this.lC)&&1E5>this.$i*this.Ak}},qxa:{configurable:!0,enumerable:!0,get:function(){return this.scrollLeft+this.Fd-this.wt-this.eD}},pxa:{configurable:!0,enumerable:!0,
get:function(){return this.scrollTop+this.Ed-this.vt-this.dD}}});a.X7=5;a.A5=5;a.ts=100;a.SD=50;a.Kp=480;a.Bu=30;a.RD=30;a.Qq=100;a.b8=25;a.c8=25;a.D7=200;d.jh=a;d.eNa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){var e=A.Aa.call(this,"div")||this;e.TX=!1;e.cell=new Ha;e.ba=a;e.tm=c;e.element.addEventListener("click",function(g){return e.rU(g)});return e}u(b,A.Aa);b.prototype.Dx=function(a){a=void 0===a?!1:a;for(var c=!1,e=this.element.children,g=0;g<e.length;g++){var l=e.item(g);c=this.dia(l,!0)||c;l=l.children;for(var m=0;m<l.length;m++){var n=l.item(m);c=this.pN(n,a)||c}}this.TX=c};b.prototype.dia=function(a,c){c=void 0===c?!1:c;if(null!=
this.ba){var e=!1,g=parseInt(a.getAttribute("data-r"));if(isNaN(g)||this.ba.BC(g))return!1;var l=a.clientHeight;a=a.offsetHeight;var m=a-l;a-this.ba.Nd(g)>m?(this.ba.Cw(g,Math.ceil(a),c),e=!0):l<=d.jh.Bu&&this.ba.Cw(g,d.jh.Bu,c);return e}};b.prototype.pN=function(a,c,e){c=void 0===c?!1:c;e=void 0===e?!1:e;if(null!=this.ba){var g=!1,l=parseInt(a.getAttribute("data-c")),m=parseInt(a.getAttribute("data-r"));if(isNaN(l)||a.classList.contains(h.W.ua.YO)&&0<=l||this.ba.tC(l)||this.ba.rda(m,l)&&!e)return!1;
a=a.offsetWidth;if(a>this.ba.Zg(l)){if(1<a-this.ba.Zg(l)||1==window.devicePixelRatio||1!=window.devicePixelRatio&&this.ba.Zg(l)==d.jh.ts)this.ba.QM(l,Math.ceil(a+3),c),g=!0}else-1!=l&&a<=d.jh.ts&&!this.ba.sda(l,!0)&&this.ba.QM(l,d.jh.ts,c);this.ba.jIa(m,l);return g}};b.prototype.Ox=function(a,c){var e=this.tm?this.tm(a,c):null;this.cell.clear();this.cell.tag="div";if(this.ba.On(a,c))return this.cell.style.display="none",this.cell;this.cell.Y(h.W.ua.we);var g=a>=this.ba.Ak||c>=this.ba.$i;!e&&g?this.cell.Y(h.W.ua.TV):
(this.cell.attr.role="gridcell",this.cell.attr["aria-rowindex"]=a+1,this.cell.attr["aria-colindex"]=c+1);e&&!isNaN(e.level)&&this.cell.Y(h.W.ua.qf+e.level);e&&e.ci&&(this.cell.Y(h.W.ua.zj),this.cell.Y(h.W.ua.Ku),this.cell.Y(h.W.ua.qf+e.level),this.cell.attr.role="rowheader");e&&e.th&&(this.cell.Y(h.W.ua.zj),this.cell.Y(h.W.ua.Uz),this.cell.attr.role="columnheader");e&&e.SL&&this.cell.Y(h.W.ua.Qma);e&&e.Tj&&this.cell.Y(h.W.ua.Vu);e&&e.gw&&this.cell.Y(h.W.ua.lpa);e&&e.jl&&this.cell.Y(h.W.ua.mpa);e&&
e.By&&this.cell.Y(h.W.ua.tI);e&&e.vC&&this.cell.Y(h.W.ua.Nla);e&&e.Jr&&this.cell.Y(h.W.ua.Ola);e&&e.wf&&(this.cell.Y(h.W.ua.iW),this.cell.text+=this.Cn(h.W.ua.j6,f.model.A.j.fP));e&&e.collapsed&&(this.cell.Y(h.W.ua.UV),this.cell.text+=this.Cn(h.W.ua.z5,f.model.A.j.gP));e&&e.yC&&(this.cell.Y(h.W.ua.X6),-.75>=e.value?this.cell.Y(h.W.ua.dma):-.25>=e.value?this.cell.Y(h.W.ua.hma):.25>e.value?this.cell.Y(h.W.ua.fma):.75>e.value?this.cell.Y(h.W.ua.gma):1>=e.value&&this.cell.Y(h.W.ua.ema));e&&e.xC&&(this.cell.Y(h.W.ua.X6),
-.75>=e.value?this.cell.Y(h.W.ua.Zla):-.25>=e.value?this.cell.Y(h.W.ua.cma):.25>e.value?this.cell.Y(h.W.ua.ama):.75>e.value?this.cell.Y(h.W.ua.bma):1>=e.value&&this.cell.Y(h.W.ua.$la));this.cell.text+=e?e.KR:"";e&&(e.Lg||e.ng)&&(this.cell.text+='<span class="'+h.W.ua.yW+'" title="'+(e.Lg?f.model.A.j.dpa:f.model.A.j.epa)+'">'+e.Jya()+"</span>",e.Lg&&this.cell.Y(h.W.ua.jka),e.ng&&this.cell.Y(h.W.ua.ika));if(e&&e.th){if(e.Wm&&!e.ob){var l="";0<=e.p4&&(l="<span>"+(e.p4+1)+"</span>");var m=f.v(e.measure)||
e.measure.type!=f.u.i.Ja.sc;this.cell.text=e.Yn?this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Apa,f.ha(l)?"":h.W.ua.e8],this.sG(f.u.i.xa.bc,m,f.model.B.C.oc),l):e.Zn?this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Bpa,f.ha(l)?"":h.W.ua.e8],this.sG(f.u.i.xa.Ec,m,f.model.B.C.oc),l):this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Cpa],this.sG(f.u.i.xa.Zc,m,f.model.B.C.oc))}e.ob&&this.cell.Y(h.W.ua.TV);e.ob||this.cell.Y(h.W.ua.zpa)}e&&e.ci&&(e.Wm&&!e.ob&&(this.cell.text=e.Yn?this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Sla],
this.sG(f.u.i.xa.bc)):e.Zn?this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Tla],this.sG(f.u.i.xa.Ec)):this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Ula],this.sG(f.u.i.xa.Zc))),this.cell.Y(h.W.ua.Rla));this.cell.attr["data-c"]=c;this.cell.attr["data-r"]=a;this.cell.attr["data-n"]=0==a%2?"even":"odd";0!=c||f.model.B.C.vl||(this.cell.style.height=this.ba.Nd(a)+"px");if(e&&e.style){for(l=0;l<e.style.tV.length;l++)this.cell.Y(e.style.tV[l]);l=e.style.P;for(var n in l)this.cell.style[n]=l[n]}this.Jga(this.cell,a,c,
e&&e.Jh);null==h.W.Yd.Mv||g||(null==e&&(e=new h.W.Yd,e.hb=a,e.lc=c),h.W.Yd.Mv(this.cell.node,e.La()));return this.cell};b.prototype.sG=function(a,c,e){a=f.u.i.xa.xS(a,void 0===c?!0:c,void 0===e?!1:e);return a==f.u.i.xa.bc?f.model.A.j.hpa:a==f.u.i.xa.Ec?f.model.A.j.ipa:a==f.u.i.xa.Zc?f.model.A.j.kpa:f.model.A.j.jpa};b.prototype.T0=function(a,c){return this.tm?(a=this.tm(a,c),f.v(a)||f.ha(a.label)):!0};b.prototype.Jga=function(a,c,e,g){g=void 0===g?!1:g;this.ba.tC(e)||this.ba.BC(c)?(a.style.width=this.ba.Zg(e)+
"px",a.style.height=this.ba.Nd(c)+"px"):(a.style["min-width"]=this.ba.Zg(e)+"px",a.style[g?"height":"min-height"]=this.ba.Nd(c)+"px");!this.ba.tC(e)&&0<d.jh.Kp&&(a.style["max-width"]=d.jh.Kp+"px");!this.ba.BC(c)&&0<d.jh.Qq&&(a.style["max-height"]=d.jh.Qq+"px")};b.prototype.Cn=function(a,c,e){c=void 0===c?null:c;e=void 0===e?"":e;Array.isArray(a)&&(a=a.join(" "));a='<i aria-hidden="true" class="'+h.W.ua.zW+" "+a+'"';c&&(a+='title="'+c+'"');return a+(">"+e+"</i>")};b.prototype.mva=function(){this.cell.clear();
this.cell.tag="div";this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.YO);this.cell.style.width=this.ba.Hr()+"px";this.cell.style.height=this.ba.Qt()+"px";this.cell.attr["aria-hidden"]="true";return this.cell};b.prototype.maa=function(a){this.cell.clear();this.cell.tag="div";if(this.ba.On(-1,a))return this.cell.style.display="none",this.cell;this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.YO);this.cell.text+=a+1;this.cell.style.width=this.ba.Zg(a)+"px";0<d.jh.Kp&&!this.ba.tC(a)&&(this.cell.style["max-width"]=d.jh.Kp+
"px");this.cell.style.height=this.ba.Qt()+"px";this.cell.attr["data-r"]=-1;this.cell.attr["data-c"]=a;this.cell.attr["aria-hidden"]="true";return this.cell};b.prototype.tR=function(a){this.cell.clear();this.cell.tag="div";if(this.ba.On(a,-1))return this.cell.style.display="none",this.cell;this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.YO);this.cell.text+=a+1;this.cell.style["min-width"]=this.ba.Hr()+"px";this.cell.style.height=this.ba.Nd(a)+"px";this.cell.style["line-height"]=this.ba.Nd(a)-2+"px";0<d.jh.Qq&&
!this.ba.BC(a)&&(this.cell.style["max-height"]=d.jh.Qq+"px");this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=-1;this.cell.attr["aria-hidden"]="true";return this.cell};b.prototype.V_=function(a,c){a=this.ba.cL(a)-1;c=this.ba.uL(c)-1;var e=null;null!=this.tm&&(e=this.tm(c,a));null==e&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};b.prototype.Nt=function(a){for(;!a.Lc(h.W.ua.we);)if(a=a.parent,null==a)return null;var c=parseInt(a.attr("data-c"));a=parseInt(a.attr("data-r"));var e=null!=this.tm?this.tm(a,
c):k.Hb.zb.sS(a,c);null==e&&(e=new h.W.Yd,e.hb=a,e.lc=c);return e};b.prototype.rU=function(a){var c=A.Aa.Pb(a.target),e=this.Nt(c)||this.V_(a.offsetX,a.offsetY);switch(a.type){case "click":var g=new h.S6(e,c,a)}g&&this.Da(g)};b.prototype.dispose=function(){A.Aa.prototype.dispose.call(this);this.ba=this.tm=null};q.Object.defineProperties(b.prototype,{uC:{configurable:!0,enumerable:!0,get:function(){return this.TX}}});d.zu=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){a=d.zu.call(this,a,c)||this;a.dNa=1E3;a.fQ=!1;a.Y("fm-sheet-canvas");a.Sk=new Ia;a.V(a.Sk);a.Cl=new d.QD;a.Rh=new d.QD;return a}u(b,d.zu);b.prototype.gb=function(){};b.prototype.Yx=function(){};b.prototype.Fha=function(){0!=this.$b&&(this.Cl.reset(),this.Rh.reset(),this.gb())};b.prototype.tF=function(){this.Cl.reset()};b.prototype.sta=function(){this.Rh.reset()};b.prototype.Fv=function(){this.tF();this.sta()};b.prototype.Dx=function(a){a=
void 0===a?!1:a;for(var c=!1,e=this.Sk.content.element.children,g=0;g<e.length;g++){var l=e.item(g);c=this.dia(l,a)||c;l=l.children;for(var m=0;m<l.length;m++){var n=l.item(m);c=this.pN(n,a)||c}}this.TX=c};b.prototype.bz=function(){this.Sk.content.width=this.rv-this.ba.eD;this.Sk.content.height=this.Ps-this.ba.dD};b.prototype.jya=function(a,c){a=this.ba.gS(a,this.$b);c=this.ba.BS(c,this.$b);var e=null;null!=this.tm&&(e=this.tm(c,a));null==e&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};b.prototype.rU=function(a){var c=
this.parent.Sf();var e=a.clientX-c.left;var g=a.clientY-c.top;c=a.target;c==this.jb.placeholder.element&&(this.jb.placeholder.P("pointer-events","none"),c=document.elementFromPoint(a.clientX,a.clientY),this.jb.placeholder.P("pointer-events",""));c=A.Aa.Pb(c);e=this.Nt(c)||this.jya(e,g);null!=e&&null!=c&&(g=h.W.Mp.i5,c.Lc(h.W.ua.yW)?g=h.W.Mp.Y5:c.Lc(h.W.ua.j6)||c.Lc(h.W.ua.z5)?g=h.W.Mp.jma:c.Lc(h.W.ua.jA)?g=h.W.Mp.UI:c.Lc(h.W.ua.vO)&&(g=h.W.Mp.vO),e.bB=g);switch(a.type){case "click":var l=new h.S6(e,
c,a)}l&&this.Da(l)};b.prototype.EF=function(a,c,e){c=void 0===c?!1:c;e=void 0===e?!1:e;var g=[],l=new Ha;e&&g.push(this.Uua(a));for(e=a.top;e<a.bottom;e++){l.tag="div";l.Y("fm-row");l.attr["data-r"]=e;e<this.ba.Ak&&this instanceof d.c6&&(l.attr.role="row");c&&(l.text+=Ja(this.tR(e)));for(var m=a.left;m<a.right;++m)l.text+=Ja(this.Ox(e,m));g.push(Ja(l))}return g.join("")};b.prototype.Uua=function(a){for(var c="",e=a.left;e<a.right;++e)c+=Ja(this.maa(e));a=new Ha;a.tag="div";a.Y("fm-row");a.text=c;
return c=Ja(a)};b.prototype.Mca=function(){var a=this.ba.gG();return this.$b?this.ba.jt(this.Rh.top,a)-this.jb.BF:this.ba.tL(a)};b.prototype.Lca=function(){var a=this.ba.fG();return this.$b?this.ba.kt(this.Rh.left,a)-this.jb.rt:this.ba.bL(a)};b.prototype.dispose=function(){this.jb.dispose();d.zu.prototype.dispose.call(this)};q.Object.defineProperties(b.prototype,{$b:{configurable:!0,enumerable:!0,get:function(){return this.fQ},set:function(a){this.fQ!=a&&(this.fQ=a,this.Wa(this.$b?b.i6:b.hW))}},jb:{configurable:!0,
enumerable:!0,get:function(){return this.Sk}},width:{configurable:!0,enumerable:!0,get:function(){return this.rv},set:function(a){this.rv!=a&&(this.element.style.minWidth=a+"px",this.rv=a,this.Sk.width=a)}},height:{configurable:!0,enumerable:!0,get:function(){return this.Ps},set:function(a){this.Ps!=a&&(this.element.style.height=a+"px",this.Ps=a,this.Sk.height=a)}}});b.i6="switched_to_smooth";b.hW="switched_to_simple";d.Jp=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c,e,g){this.left=void 0===a?0:a;this.top=void 0===c?0:c;this.right=void 0===e?0:e;this.bottom=void 0===g?0:g}b.prototype.set=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};b.prototype.reset=function(){this.bottom=this.right=this.top=this.left=0};b.prototype.contains=function(a){return this.left<=a.left&&this.top<=a.top&&this.right>=a.right&&this.bottom>=a.bottom};b.prototype.clone=function(){return new b(this.left,
this.top,this.right,this.bottom)};d.QD=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.OB=[];this.data=[];this.coords=a}b.prototype.reset=function(){this.data=[];this.OB=[]};b.prototype.setData=function(a,c,e,g){e.hb=a;e.lc=c;if(c<this.coords.Hd||(void 0===g?0:g))null==this.data[a]&&(this.data[a]=[]),this.data[a][c]=e};b.prototype.XU=function(a,c,e){null==this.OB[a]&&(this.OB[a]=[]);this.OB[a][c]=e};b.prototype.Ysa=function(a,c){void 0===this.data[a]&&(this.data[a]=[]);return void 0!==this.data[a][c]};b.prototype.getData=
function(a,c,e){e=void 0===e?!0:e;if(0==this.Ysa(a,c)){var g=this.WB(a,c);null!=g&&(g.hb=a,g.lc=c);if(e)this.data[a][c]=g;else return g}if(null!==this.data[a][c])return this.data[a][c]};b.prototype.Gya=function(a,c){return this.OB[a]&&this.OB[a][c]?this.OB[a][c]:null};b.prototype.tta=function(a,c){null!=this.data[a]&&(this.data[a][c]=this.getData(a,c))};b.prototype.dispose=function(){this.reset();this.WB=null};d.Roa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(c,e){this.x=void 0===c?0:c;this.y=void 0===e?0:e}function a(c){var e=this;this.bF=this.px=null;this.Zi=new f.nb;this.DJ={};this.pJ={};this.zT=function(g){return e.kp(g)};this.ka=c;this.coords=this.ka.coords;this.$l=new d.Poa(this,this.ka);this.dIa=new d.Pia;this.cu=x.sO.U();this.cu.N(x.KeyboardEvent.rO,this.zT)}a.prototype.dispose=function(){null!=this.Zi&&0<this.Zi.length&&this.qZ();this.cu.mb(x.KeyboardEvent.rO,this.zT);this.cu=this.ka=
null;this.$l.dispose()};a.prototype.gb=function(){this.$l.r3()};a.prototype.Efa=function(c,e){this.$l.uT?this.JHa(c,e):this.sga(c,e);this.gb()};a.prototype.Ffa=function(c,e){this.$l.cT||(null==this.$l.wp&&(this.$l.wp=new d.h8(this.ka)),this.$l.wp.Kx=c.toString()+"|"+e.toString(),this.gb())};a.prototype.select=function(c,e){this.yr();this.px=c;this.bF=e;this.Efa(c,e)};a.prototype.JHa=function(c,e){this.tda(c,e)&&!this.Zi.Bb(this.xF(c,e))&&(this.qZ(),this.sga(c,e))};a.prototype.sga=function(c,e){null!=
this.$l.wp&&(this.$l.wp.remove(),this.$l.wp=null);if(!this.$l.cT||this.tda(c,e))if(this.Zi.Bb(this.xF(c,e)))g=this.Zi.getItem(this.xF(c,e)),null!=g.up&&delete this.DJ[c.y.toString()],null!=g.Jo&&delete this.pJ[c.x.toString()],g.remove(),this.Zi.removeItem(this.xF(c,e));else if(null!=c&&null!=e){var g=new d.h8(this.ka);g.Kx=this.xF(c,e);this.Zi.Pa(g.Kx,g)}};a.prototype.qZ=function(){for(;0<this.Zi.length;)this.Zi.ea(0).remove(),this.Zi.A3(0);this.DJ={};this.pJ={}};a.prototype.xF=function(c,e){return c.x.toString()+
"|"+c.y.toString()+"|"+e.x.toString()+"|"+e.y.toString()};a.prototype.IF=function(c){c=c.split("|");var e={};4==c.length?(e.from=new f.K.X.sheet.Xq(parseInt(c[0]),parseInt(c[1])),e.Ep=new f.K.X.sheet.Xq(parseInt(c[2]),parseInt(c[3]))):2==c.length&&(e.bs=parseInt(c[0]),e.qt=parseInt(c[1]));return e};a.prototype.Tda=function(c){return this.DJ.hasOwnProperty(c.y.toString())&&this.pJ.hasOwnProperty(c.x.toString())&&this.DJ[c.y.toString()]==d.N5.EN&&this.pJ[c.x.toString()]==d.N5.EN};a.prototype.tda=function(c,
e){return null==c||null==e||!c.VF(e)||this.Tda(c)||this.Tda(e)||0>c.x*c.y||0>e.x*e.y?!1:!0};a.prototype.selectAll=function(){this.select(new b(0,0),new b(this.coords.Wk+this.coords.Hd-1,this.coords.Po+this.coords.Vd-1))};a.prototype.Fga=function(c){if(!(null==this.px||this.px.VF(c)&&this.Zi.Bb(this.xF(this.px,c)))){var e=this.px;this.yr();this.px=e;this.bF=c;this.Efa(e,c)}};a.prototype.cIa=function(c){this.yr();this.Ffa(c,-1)};a.prototype.$Ha=function(c){this.yr();this.Ffa(-1,c)};a.prototype.yr=function(){!this.$l.cT&&
0<this.Zi.length&&!this.$l.uT&&this.qZ();null!=this.$l.wp&&(this.$l.wp.remove(),this.$l.wp=null);this.bF=this.px=null};a.prototype.clear=function(){this.yr();this.gb()};a.prototype.GAa=function(c){return c.Jh&&!isNaN(c.value)||c.il&&c.Jh&&""!=c.label};a.prototype.Asa=function(c){if(null==c)return!1;for(var e=0,g=0;g<c.length;g++)if(this.GAa(c[g])&&e++,2<=e)return!0;return!1};a.prototype.txa=function(c,e){return c&&e?Math.min(c.x,e.x):-1};a.prototype.uJa=function(c,e){return c&&e?Math.max(c.x,e.x):
-1};a.prototype.Bxa=function(c,e){return c&&e?Math.min(c.y,e.y):-1};a.prototype.GJa=function(c,e){return c&&e?Math.max(c.y,e.y):-1};a.prototype.move=function(c,e,g){g=void 0===g?!1:g;switch(c){case 37:this.KCa(g);break;case 38:this.NCa(g);break;case 39:this.LCa(g);break;case 40:this.JCa(g)}};a.prototype.KCa=function(c){this.Oea(-1,void 0===c?!1:c)};a.prototype.LCa=function(c){this.Oea(1,void 0===c?!1:c)};a.prototype.NCa=function(c){this.Pea(-1,void 0===c?!1:c)};a.prototype.JCa=function(c){this.Pea(1,
void 0===c?!1:c)};a.prototype.Oea=function(c,e){e=void 0===e?!1:e;if(1==this.Zi.length){var g=this.IF(this.Zi.ea(0).Kx),l=g.from,m=g.Ep;g=e?m.x:l.x;var n=e?m.x:l.x;g=this.cxa(g+c,e?m.y:l.y);g<this.coords.Qf?(c=Math.max(g,this.coords.Hd),this.ka.es(c)):g>=this.coords.Pca(this.coords.Qf)+this.coords.Qf-1&&(c=this.coords.Qf+(g-n),this.ka.es(c+1));c=e?m.y:l.y;m=g;this.select(new b(e?l.x:g,l.y),new b(m,c))}};a.prototype.Pea=function(c,e){e=void 0===e?!1:e;if(1==this.Zi.length){var g=this.IF(this.Zi.ea(0).Kx),
l=g.from,m=g.Ep;g=e?m.y:l.y;var n=e?m.y:l.y;g=this.dxa(g+c,e?m.x:l.x);g<this.coords.Ng?(c=Math.max(g,this.coords.Vd),this.ka.Eq(c)):g>=this.coords.Qca(this.coords.Ng)+this.coords.Ng-1&&(c=this.coords.Ng+(g-n),this.ka.Eq(c+1));c=g;m=e?m.x:l.x;this.select(new b(l.x,e?l.y:g),new b(m,c))}};a.prototype.dxa=function(c,e){return Math.max(e<this.coords.Hd?this.coords.Vd:this.coords.wF+1,Math.min(c,this.coords.Ak-1))};a.prototype.cxa=function(c,e){return Math.max(e<this.coords.Vd?this.coords.Hd:this.coords.Hd-
1,Math.min(c,this.coords.$i-1))};a.prototype.kp=function(c){if(null!=this.cu&&(this.ka.Nm||this.cu.Fda)){var e=c.ctrlKey||c.metaKey;switch(c.keyCode){case 13:case 32:e||this.ka.Wa(h.mc.uI);break;case 65:e&&(this.selectAll(),c.np.preventDefault());break;case 37:case 39:case 38:case 40:this.move(c.keyCode,c.ctrlKey,c.shiftKey),c.np.preventDefault()}!e||c.altKey||c.shiftKey||this.cu.Fda||67!==c.keyCode||this.DF()}};a.prototype.DF=function(){var c="";if(0<this.Zi.length)for(var e,g=0;g<this.Zi.length;g++)e=
this.Zi.ea(g),null!=e.Kj&&(e=this.IF(e.Kx),c+=this.Iua(e.from,e.Ep),g<this.Zi.length-1&&(c+="\n"));0<c.length&&this.cu.DF(c)};a.prototype.Iua=function(c,e){var g="";if(null==c||null==e)return g;var l=Math.min(c.x,e.x),m=Math.max(c.x,e.x),n=Math.max(c.y,e.y);for(e=Math.min(c.y,e.y);e<=n;e++){for(var p=l;p<=m;p++){p>l&&(g+="\t");c=this.ka.Rf(e,p,!0);if(null==c&&(c=e<this.coords.Ng&&p>=this.coords.Qf?this.ka.Rf(e,p-this.coords.Qf+this.coords.Hd,!0):null,null==c))continue;g+=null==c?"":c.J()}e<n&&(g+=
"\n")}return g};q.Object.defineProperties(a.prototype,{Fq:{configurable:!0,enumerable:!0,get:function(){return this.Zi}},Ep:{configurable:!0,enumerable:!0,get:function(){return this.bF},set:function(c){this.bF=c}},from:{configurable:!0,enumerable:!0,get:function(){return this.bF},set:function(c){this.px=c}},oga:{configurable:!0,enumerable:!0,get:function(){return this.DJ}},V$:{configurable:!0,enumerable:!0,get:function(){return this.pJ}},Hsa:{configurable:!0,enumerable:!0,get:function(){return this.dIa}}});
d.Qoa=a;b.prototype.VF=function(c){return c.x==this.x&&c.y==this.y};d.Xq=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(e){this.ka=this.CJ=this.oJ=this.WE=this.AE=this.vP=null;this.ka=e;this.vP=this.AK()}function a(){}function c(e,g){var l=this;this.$E=this.cT=!1;this.Yp=this.N9=null;this.B$=5;this.XHa=17;this.uT=!1;this.XG=function(m){return l.rU(m)};this.Mea=function(m){return l.J2(m)};this.di=e;this.ka=g;this.coords=this.ka.coords;this.Yp=new d.Oia;this.Yp.$a();this.ka.V(this.Yp);this.ka.element.addEventListener("mousedown",this.XG);this.ka.element.addEventListener("mouseup",
this.XG)}c.prototype.rU=function(e){if(1==e.which||3==e.which){var g=A.Aa.Pb(e.target);if("mousedown"!=e.type||!(g.Lc(h.W.ua.Lp)||g.Lc(h.W.ua.pI)||g.Lc(h.W.ua.jI)||null!=g.closest(".fm-filters")||null!=g.closest("."+h.W.ua.yI))){var l=this.ka.Sf();g=e.clientX-l.left;l=e.clientY-l.top;if(!(g>this.coords.et||l>this.coords.ke+this.coords.Ax||(l=this.coords.BS(l,this.ka.$b),g=this.coords.gS(g,this.ka.$b),isNaN(l)||isNaN(g))))switch(this.cT=!x.Oi.Qn&&e.ctrlKey||x.Oi.Qn&&e.metaKey,this.uT=3==e.which,e.type){case "mousedown":this.rw(l,
g);break;case "mousemove":this.sw(l,g);break;case "mouseup":this.zq(l,g)}}}};c.prototype.J2=function(e){var g=A.Aa.Pb(this.ka.element),l=e.clientX;e=e.clientY;(l<g.left||e<g.top||l>g.left+this.ka.width||e>g.top+this.ka.height)&&this.nJa()};c.prototype.select=function(e,g,l,m){this.uD=!1;this.di.select(new d.Xq(g,e),new d.Xq(m,l))};c.prototype.nJa=function(){this.uD=!1};c.prototype.rw=function(e,g){this.uD=!0;this.di.select(new d.Xq(g,e),new d.Xq(g,e));this.ka.element.addEventListener("mousemove",
this.XG);f.Pj.addEventListener("mousemove",this.Mea)};c.prototype.zq=function(e,g){this.uD&&(this.uD=!1,this.uT||(-1==e?this.di.$Ha(g):-1==g?this.di.cIa(e):this.di.from&&!this.di.from.VF(new d.Xq(g,e))&&this.di.Fga(new d.Xq(g,e))))};c.prototype.sw=function(e,g){this.uD&&(!this.di.Ep||this.di.Ep.x==g&&this.di.Ep.y==e||this.di.Fga(new d.Xq(g,e)))};c.prototype.dispose=function(){this.ka.element&&this.ka.element.removeEventListener("mousedown",this.XG);this.ka.element&&this.ka.element.removeEventListener("mouseup",
this.XG);this.Yp.dispose();this.coords=this.ka=this.di=null;null!=this.wp&&(this.wp.remove(),this.wp=null)};c.prototype.r3=function(){this.Yp.uHa();for(var e=0;e<this.di.Fq.length;e++){var g=this.di.Fq.ea(e);var l=this.di.IF(this.di.Fq.qh(e));this.Tqa(g,l.from,l.Ep)}this.Uqa(this.Yp);this.bwa(this.wp)};c.prototype.bwa=function(e){if(null!=e){e.$a();var g=this.di.IF(e.Kx);-1!=g.bs&&this.mwa(g.bs,e);-1!=g.qt&&this.lwa(g.qt,e)}};c.prototype.Uqa=function(e){e.$a();if(f.model.B.C.KIa&&e.JAa()&&null!=f.u.Na.U()&&
null!=f.u.Na.U().I){var g=this.ka.Fq;if(this.di.Asa(g)&&(e.jCa(),this.RJa(e,g),!e.BAa())){e.show();e.sv.tj("auto");e.top=e.Uk.bottom;g=this.coords.fl(this.coords.Hd,this.ka.$b);for(var l=0,m=0;m<e.Bo.length;m++)l+=e.Bo.ea(m).width;l=l+2*this.B$+2*(e.Bo.length-1)*this.B$;e.sv.width=l;g-e.Uk.right+l>this.coords.scrollLeft?e.Uk.right=e.Uk.left+l:g>e.Uk.right-l?(e.sv.P("left","auto"),e.sv.right=0,l=e.Uk.right-g):e.Uk.lga>=this.coords.et&&(e.sv.P("left","right"),e.sv.left=0,l=l-(e.Uk.lga-this.coords.et)-
1,l=0>l?0:l);this.coords.ke+this.coords.Ax<=e.Uk.bottom+e.height&&(e.top=e.Uk.bottom-this.XHa);e.left=e.Uk.right-l;e.$fa.width=l;e.width=l}}};c.prototype.RJa=function(e,g){this.di.Hsa.aHa(e,g)};c.prototype.Tqa=function(e,g,l){e.$a();var m=Math.min(g.x,l.x),n=Math.min(g.y,l.y),p=Math.max(g.x,l.x);g=Math.max(g.y,l.y);this.QGa(m,p,n,g,e);f.model.B.C.vl&&this.ewa(m,p,n,g,e);l=this.coords.et;var t=this.coords.ke+this.coords.Ax,r=Math.max(this.coords.ke,this.coords.Nn(n,this.ka.$b)-1),v=this.coords.Nn(g+
1,this.ka.$b),z=Math.min(t,v),B=Math.max(0,this.coords.fl(m,this.ka.$b)-1),C=this.coords.fl(p+1,this.ka.$b),E=Math.min(l,C),K=z-r,J=E-B;2>=J||2>=K?null!=e.Kj&&e.Kj.$a():B<l&&r<t?(null!=e.Kj&&(e.Kj.show(),e.Kj.top=r,e.Kj.left=B,e.Kj.width=J,e.Kj.height=K,this.Yp.Uk.bottom*this.Yp.Uk.right<=E*z&&(this.Yp.Uk.left=B,this.Yp.Uk.right=E,this.Yp.Uk.bottom=z,this.Yp.Uk.lga=C)),n<this.coords.Vd&&C>E&&(e.jaa(),e.rk.top=r,e.rk.left=E,e.rk.width=Math.min(C,this.coords.bp)-E,e.rk.height=Math.min(z,this.coords.ke+
this.coords.iq)-r,e.rk.Ua("fm-clear-border-bottom",g>this.coords.Vd),e.rk.Ua("fm-clear-border-right",C>this.coords.bp),e.rk.ud("fm-clear-border"),e.rk.show()),m<this.coords.Hd&&v>z&&(e.qaa(),e.Dk.top=z,e.Dk.left=B,e.Dk.width=Math.min(E,this.coords.tp)-B,e.Dk.height=Math.min(v,this.coords.Mr)-z,e.Dk.Ua("fm-clear-border-bottom",v>this.coords.Mr),e.Dk.Ua("fm-clear-border-right",p>this.coords.Hd),e.Dk.ud("fm-clear-border"),e.Dk.show()),null!=e.Kj&&(e.Kj.Ua("fm-clear-border-right",C>E),e.Kj.Ua("fm-clear-border-bottom",
v>z))):null!=e.Kj&&e.Kj.$a()};c.prototype.mwa=function(e,g){if(!isNaN(e)){null==g.up&&g.raa();var l=this.coords.Nn(e,this.ka.$b);e=this.coords.Nn(e+1,this.ka.$b);var m=Math.min(this.coords.ke+this.coords.Ax,e);l<this.coords.ke+this.coords.Ax?(g.up.left=0,g.up.top=l,g.up.width=this.coords.et,g.up.height=m-l,g.up.show(),e>m&&(g.qaa(),g.Dk.top=m,g.Dk.left=0,g.Dk.width=this.coords.tp,g.Dk.height=Math.min(e,this.coords.Mr)-m,g.Dk.Y("fm-clear-border"),g.Dk.show())):g.up.$a()}};c.prototype.lwa=function(e,
g){if(!isNaN(e)){null==g.Jo&&g.kaa();var l=this.coords.fl(e,this.ka.$b);e=this.coords.fl(e+1,this.ka.$b);var m=Math.min(this.coords.et,e);l<this.coords.et?(g.Jo.left=l,g.Jo.top=this.coords.ke,g.Jo.width=m-l,g.Jo.height=this.coords.Ax,g.Jo.show(),e>m&&(g.jaa(),g.rk.top=this.coords.ke,g.rk.left=m,g.rk.width=Math.min(e,this.coords.bp)-m,g.rk.height=this.coords.iq,g.rk.Y("fm-clear-border"),g.rk.show())):g.Jo.$a()}};c.prototype.ewa=function(e,g,l,m,n){this.cwa(n.Jo,e,g);this.dwa(n.up,l,m)};c.prototype.QGa=
function(e,g,l,m,n){if(!this.di.oga.hasOwnProperty(l.toString())){n.raa();for(var p=l;p<=m;p++)this.di.oga[p.toString()]=l==m&&e==g?a.M7:a.EN}if(!this.di.V$.hasOwnProperty(e.toString()))for(n.kaa(),p=e;p<=g;p++)this.di.V$[p.toString()]=l==m&&e==g?a.M7:a.EN};c.prototype.cwa=function(e,g,l){null!=e&&(g=this.coords.fl(g,this.ka.$b),l=Math.min(this.coords.bp,this.coords.fl(l+1,this.ka.$b)),g<this.coords.bp?(e.left=g,e.top=this.coords.ke,e.width=l-g,e.height=this.coords.Qt(),e.show()):e.$a())};c.prototype.dwa=
function(e,g,l){null!=e&&(g=this.coords.Nn(g,this.ka.$b),l=Math.min(this.coords.Mr,this.coords.Nn(l+1,this.ka.$b)),e.left=0,e.top=g,e.width=this.coords.Hr(),e.height=l-g,e.show())};q.Object.defineProperties(c.prototype,{uD:{configurable:!0,enumerable:!0,get:function(){return this.$E},set:function(e){this.$E=e;this.uD||(this.ka.element.removeEventListener("mousemove",this.XG),document.removeEventListener("mousemove",this.Mea))}},wp:{configurable:!0,enumerable:!0,get:function(){return this.N9},set:function(e){this.N9=
e}}});d.Poa=c;a.M7=1;a.EN=2;d.N5=a;b.prototype.AK=function(){var e=new A.Aa("div","fm-sheet-selection-canvas");e.$a();this.ka.V(e);return e};b.prototype.kaa=function(){null==this.AE&&(this.AE=this.AK(),this.AE.Y("fm-sheet-selection-header"))};b.prototype.raa=function(){null==this.WE&&(this.WE=this.AK(),this.WE.Y("fm-sheet-selection-header"))};b.prototype.qaa=function(){null==this.CJ&&(this.CJ=this.AK(),this.CJ.Y("fm-clear-border-top"))};b.prototype.jaa=function(){null==this.oJ&&(this.oJ=this.AK(),
this.oJ.Y("fm-clear-border-left"))};b.prototype.$a=function(){this.Jo&&this.Jo.$a();this.up&&this.up.$a();this.rk&&this.rk.$a();this.Dk&&this.Dk.$a();this.Kj&&this.Kj.$a()};b.prototype.remove=function(){null!=this.Kj&&(this.Kj.remove(),this.vP=null);null!=this.Jo&&(this.Jo.remove(),this.AE=null);null!=this.up&&(this.up.remove(),this.WE=null);null!=this.rk&&(this.rk.remove(),this.oJ=null);null!=this.Dk&&(this.Dk.remove(),this.CJ=null);this.ka=null};q.Object.defineProperties(b.prototype,{Kx:{configurable:!0,
enumerable:!0,get:function(){return this.Ypa},set:function(e){this.Ypa=e}},Dk:{configurable:!0,enumerable:!0,get:function(){return this.CJ}},rk:{configurable:!0,enumerable:!0,get:function(){return this.oJ}},up:{configurable:!0,enumerable:!0,get:function(){return this.WE},set:function(e){this.WE=e}},Jo:{configurable:!0,enumerable:!0,get:function(){return this.AE},set:function(e){this.AE=e}},Kj:{configurable:!0,enumerable:!0,get:function(){return this.vP},set:function(e){this.vP=e}}});d.h8=b})(h.sheet||
(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.b9=null}b.prototype.aHa=function(a,c){this.Km=this.$wa(c);var e=null==this.Km?f.model.Zb.Ni.oS().clone():this.Km.Dh(this.Km.uniqueName,this.Km.$).clone();e.Ql=e.Ql==f.model.Zb.Ni.$ba().Ql?2:e.Ql;for(var g=0;g<a.Hy.length;g++){var l=this.Rsa(a.Hy[g],c);0!=l?a.Nh(a.Hy[g],this.Sya(l,a.Hy[g],e.clone())):a.jAa(a.Hy[g])}this.Km=null};b.prototype.Sya=function(a,c,e){var g="count"==c||null!=this.Km&&f.u.i.ca.Tf(this.Km.$),l="count"!=c&&
null!=this.Km&&f.u.i.ca.Xd(this.Km.$),m=null!=this.Km&&this.Km.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(this.Km.$);e.Xd="count"==c?!1:e.Xd;e.pd=null!=this.Km&&this.Km.$==f.u.i.ca.li?"":e.pd;return m&&!isNaN(a)&&"count"!=c?f.O.Hw(a,f.model.B.C.Cp):x.Tb.format(a,e,g,l)};b.prototype.Rsa=function(a,c){switch(a){case "sum":return this.Usa(c);case "average":return this.Ssa(c);case "count":return this.Tsa(c)}return 0};b.prototype.Usa=function(a){for(var c=0,e=0;e<a.length;e++)c+=a[e].Jh&&!isNaN(a[e].value)&&this.pT(a[e])?
a[e].value:0;return c};b.prototype.Ssa=function(a){for(var c=0,e=0,g=0;g<a.length;g++)a[g].Jh&&!isNaN(a[g].value)&&this.pT(a[g])&&(c+=a[g].value,e++);return 0==e?0:c/e};b.prototype.Tsa=function(a){for(var c=0,e=0;e<a.length;e++)(a[e].Jh&&!isNaN(a[e].value)||a[e].il&&a[e].Jh&&""!=a[e].label)&&c++;return c};b.prototype.$wa=function(a){for(var c=null,e=0;e<a.length;e++)if(this.pT(a[e])&&null==c&&!f.v(a[e].measure))c=a[e].measure;else if(this.pT(a[e])&&null!=c&&c.uniqueName!=a[e].measure.uniqueName){c=
null;break}return c};b.prototype.pT=function(a){return a.il&&a.Jh&&!isNaN(a.value)||a.Jh&&null!=a.measure&&!isNaN(a.value)&&f.u.i.Ja.sc!=a.measure.type&&f.u.i.Ja.Oa!=a.measure.type&&f.u.i.Ja.Dc!=a.measure.type};q.Object.defineProperties(b.prototype,{Km:{configurable:!0,enumerable:!0,get:function(){return this.b9},set:function(a){this.b9=a}}});d.Pia=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var c=A.Aa.call(this,"div","fm-auto-calculation-bar-content")||this;c.display="inline-block";c.te();return c}function a(c){c=void 0===c?null:c;var e=A.Aa.call(this,"div","fm-auto-calculation-bar")||this;e.cY=["average","count","sum"];e.EQ={};e.CP={right:-1E3,bottom:1E3};e.Vpa=new f.nb;e.cY=null==c?e.cY:c;e.rAa();e.te();return e}u(a,A.Aa);a.prototype.rAa=function(){this.EQ.average=f.model.A.j.f5;this.EQ.sum=f.model.A.j.f8;this.EQ.count=
f.model.A.j.I5};a.prototype.te=function(){this.nY=new A.Aa("div");this.nY.P("position","relative");this.V(this.$fa);this.Tpa=new A.Aa("div","fm-auto-calculation-bar-conainer");this.sv.P("position","absolute");this.nY.V(this.sv);for(var c,e=0;e<this.Hy.length;e++)c=new b,c.fIa(this.EQ[this.Hy[e]]),this.sv.V(c),this.Bo.Pa(this.Hy[e],c)};a.prototype.JAa=function(){return-1E3!=this.CP.right&&1E3!=this.CP.bottom};a.prototype.Nh=function(c,e){this.Bo.getItem(c).gIa(e)};a.prototype.jAa=function(c){this.Bo.getItem(c).$a()};
a.prototype.jCa=function(){for(var c,e=0;e<this.Bo.length;e++)c=this.Bo.ea(e),c.visible||c.show()};a.prototype.BAa=function(){for(var c=0;c<this.Bo.length;c++)if(this.Bo.ea(c).visible)return!1;return!0};a.prototype.uHa=function(){this.CP={right:-1E3,bottom:1E3}};a.prototype.clear=function(){for(;0<this.Bo.length;)this.Bo.ea(0).dispose(),this.Bo.A3(0);this.dispose()};q.Object.defineProperties(a.prototype,{Bo:{configurable:!0,enumerable:!0,get:function(){return this.Vpa}},sv:{configurable:!0,enumerable:!0,
get:function(){return this.Tpa}},$fa:{configurable:!0,enumerable:!0,get:function(){return this.nY}},Uk:{configurable:!0,enumerable:!0,get:function(){return this.CP}},Hy:{configurable:!0,enumerable:!0,get:function(){return this.cY}}});d.Oia=a;u(b,A.Aa);b.prototype.te=function(){this.o$=new A.Aa("div","fm-auto-calculation-bar-content-text");this.V(this.o$);this.p$=new A.Aa("div","fm-auto-calculation-bar-content-results");this.V(this.p$)};b.prototype.show=function(){this.element.style.display=this.display};
b.prototype.fIa=function(c){this.o$.text(c+":")};b.prototype.gIa=function(c){this.p$.text(c)};d.rKa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));function Ia(){var f=A.Aa.call(this,"div","fm-scroll-pane")||this;f.M9=function(){return f.U2()};f.SE=!1;f.zX=0;f.AX=0;x.Oi.Qn&&f.Y("fm-scrollbars");f.Ss=new A.Aa("div","fm-scroll-placeholder");f.BP=new A.Aa("div","fm-scroll-content");f.V(f.Ss);f.V(f.BP);f.element.addEventListener("scroll",f.M9,!0);return f}u(Ia,A.Aa);
Ia.prototype.U2=function(){if(this.SE)return this.SE=!1;this.Wa(Ka)};Ia.prototype.dispose=function(){this.element&&this.element.removeEventListener("scroll",this.M9);A.Aa.prototype.dispose.call(this)};
q.Object.defineProperties(Ia.prototype,{CF:{configurable:!0,enumerable:!0,get:function(){return this.Ss.width},set:function(f){this.Ss.width=f}},caa:{configurable:!0,enumerable:!0,get:function(){return this.Ss.height},set:function(f){this.Ss.height=f}},scrollLeft:{configurable:!0,enumerable:!0,get:function(){return this.element.scrollLeft},set:function(f){this.SE=!1;this.element.scrollLeft=Math.max(0,f)}},LM:{configurable:!0,enumerable:!0,set:function(f){this.SE=!0;this.element.scrollLeft=Math.max(0,
f)}},scrollTop:{configurable:!0,enumerable:!0,get:function(){return this.element.scrollTop},set:function(f){this.SE=!1;this.element.scrollTop=Math.max(0,f)}},OM:{configurable:!0,enumerable:!0,set:function(f){this.SE=!0;this.element.scrollTop=Math.max(0,f)}},placeholder:{configurable:!0,enumerable:!0,get:function(){return this.Ss}},content:{configurable:!0,enumerable:!0,get:function(){return this.BP}},rt:{configurable:!0,enumerable:!0,get:function(){return this.zX},set:function(f){this.zX=f;this.BP.left=
-this.zX}},BF:{configurable:!0,enumerable:!0,get:function(){return this.AX},set:function(f){this.AX=f;this.BP.top=-this.AX}},mAa:{configurable:!0,enumerable:!0,set:function(f){this.element.style.overflowX=f?"scroll":"hidden"}},dKa:{configurable:!0,enumerable:!0,set:function(f){this.element.style.overflowY=f?"scroll":"hidden"}}});var Ka="fm_scroll_event";
(function(f){(function(k){(function(h){(function(d){function b(a){var c=d.zu.call(this,a,null)||this;c.ba=a;return c}u(b,d.zu);b.prototype.gb=function(){var a=[],c=new Ha;if(f.model.B.C.vl){c.tag="div";c.Y("fm-row");c.text+=Ja(this.mva());for(var e=0;e<this.ba.Hd;e++)c.text+=Ja(this.maa(e));a.push(Ja(c));for(e=0;e<this.ba.Vd;e++)c.text=Ja(this.tR(e)),a.push(Ja(c))}a=a.join("");this.element.innerHTML!=a&&this.html(a)};b.prototype.clear=function(){};d.Soa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||
(f.K={}))})(w||(w={}));
function La(){this.text=this.tag="";this.style={};this.attr={};this.classes=[];this.addClass=function(f){0>this.classes.indexOf(f)&&this.classes.push(f)};this.toHtml=function(){var f="<"+this.tag,k=[],h;for(h in this.style)k.push(h+":"+this.style[h]);0<k.length&&(f+=' style="'+k.join(";")+';"');0<this.classes.length&&(f+=' class="'+this.classes.join(" ")+'"');for(var d in this.attr)f+=" "+d+'="'+this.attr[d]+'"';return f+=">"+(this.text||"")+"</"+this.tag+">"};this.tag="div"}
function Ha(f){f=void 0===f?"div":f;this.Jqa=new La;this.clear();this.tag=f}Ha.prototype.Y=function(f){this.node.addClass(f)};Ha.prototype.clear=function(){this.tag="div";this.text="";this.style={};this.attr={};this.node.classes=[]};function Ja(f,k){k=void 0===k?!0:k;var h=f.node.toHtml();k&&f.clear();null!=w.K.X.W.Yd.Mv&&(h=w.model.Nb.valid(h)?h:w.model.Nb.validate(h));return h}
q.Object.defineProperties(Ha.prototype,{node:{configurable:!0,enumerable:!0,get:function(){return this.Jqa}},tag:{configurable:!0,enumerable:!0,get:function(){return this.node.tag},set:function(f){this.node.tag=f}},text:{configurable:!0,enumerable:!0,get:function(){return this.node.text},set:function(f){this.node.text=f}},style:{configurable:!0,enumerable:!0,get:function(){return this.node.style},set:function(f){this.node.style=f}},attr:{configurable:!0,enumerable:!0,get:function(){return this.node.attr},
set:function(f){this.node.attr=f}}});
(function(f){(function(k){(function(h){(function(d){function b(){return d.Jp.apply(this,arguments)||this}u(b,d.Jp);b.prototype.gb=function(){this.bz();var a=this.Ln();if(this.$b||this.ba.AC(a.bottom)||this.ba.zC(a.right)||!this.Cl.contains(a)){var c=a.clone();0!=this.ba.$i&&(c.right=Math.min(c.right,this.ba.$i));0!=this.ba.Ak&&(c.bottom=Math.min(c.bottom,this.ba.Ak));if(!this.$b||!this.Rh.contains(c)||!this.ba.Av&&(a.left>this.ba.Hd&&a.left<=this.Rh.left||a.top>this.ba.Vd&&a.top<=this.Rh.top))this.ba.zC(a.right)&&
(a.left=Math.max(a.left-1,this.ba.Hd)),this.ba.AC(a.bottom)&&(a.top=Math.max(a.top-1,this.ba.Vd)),this.jb.content.html(this.EF(a)),this.$b=!1,this.Cl.set(a)}};b.prototype.XJ=function(){this.$b?(this.jb.BF=this.ba.scrollTop-this.ba.jt(this.ba.Vd,this.Rh.top),this.jb.rt=this.ba.scrollLeft-this.ba.kt(this.ba.Hd,this.Rh.left)):(this.jb.BF=-this.ba.tL(this.Cl.top),this.jb.rt=-this.ba.bL(this.Cl.left))};b.prototype.Yx=function(){var a=this.jb.CF;this.bz();a=this.jb.CF-a;var c=this.Ln(!0);if(!(this.$b&&
this.ba.Av&&this.Rh.contains(c))){var e=this.Mca(),g=this.Lca(),l=this.Ln();this.Rh=c;this.jb.content.html(this.EF(c));this.jb.BF=this.ba.jt(this.Rh.top,l.top)-e;this.jb.rt=this.ba.kt(this.Rh.left,l.left)-g;this.$b||this.ba.AC(this.Cl.bottom)||(this.jb.OM=this.ba.fC(this.ba.Ng,!1));this.$b||(this.ba.zC(this.Cl.right)?(this.ba.aN=a,this.jb.rt+=a):this.jb.LM=this.ba.SB(this.ba.Qf,!1));this.$b=!0}};b.prototype.Ln=function(a){a=void 0===a?!1:a;var c=new d.QD;c.top=this.ba.gG(a);c.left=this.ba.fG(a);c.bottom=
this.ba.ny(a);c.right=this.ba.RB(a);return c};b.prototype.bz=function(){this.jb.CF=Math.max(this.ba.wt,this.ba.Fd-this.ba.eD);this.jb.caa=Math.max(this.ba.vt,this.ba.Ed-this.ba.dD);this.jb.content.right=this.ba.eD;this.jb.content.bottom=this.ba.dD;this.jb.mAa=this.ba.lC;this.jb.dKa=this.ba.mC};b.prototype.AM=function(a,c){for(var e=this,g=[],l=this.Ln(!0),m=l.top;m<l.bottom;m++)for(var n=0;n<a.length;n++){var p=a[n];this.T0(m,p)||(p=this.Ox(m,p),delete p.attr.tabindex,g.push(Ja(p)))}var t=this.Sk.content.element.querySelector(".fm-row-hidden");
null==t&&(t=document.createElement("div"),t.classList.add("fm-row"),t.classList.add("fm-row-hidden"),this.Sk.content.element.appendChild(t),this.Sk.content.element.insertBefore(t,this.Sk.content.element.childNodes[0]));t.innerHTML=g.join("");this.requestAnimationFrame(function(){for(var r=0;r<t.children.length;r++)e.pN(t.children.item(r),!1,!0);c()})};b.prototype.dispose=function(){d.Jp.prototype.dispose.call(this);this.jb.dispose()};d.c6=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||
(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return d.Jp.apply(this,arguments)||this}u(b,d.Jp);b.prototype.gb=function(){this.bz();var a=this.Ln();if(this.$b||this.ba.AC(a.bottom)||!this.Cl.contains(a)){var c=a.clone();0!=this.ba.Ak&&(c.bottom=Math.min(c.bottom,this.ba.Ak));this.$b&&this.Rh.contains(c)||(this.ba.AC(a.bottom)&&(a.top=Math.max(a.top-1,this.ba.Vd)),this.jb.content.html(this.EF(a,f.model.B.C.vl)),this.fQ=!1,this.Cl.set(a))}};b.prototype.tR=function(a){this.cell=d.Jp.prototype.tR.call(this,
a);this.cell.style["min-height"]=this.cell.style.height;delete this.cell.style.height;delete this.cell.style["line-height"];return this.cell};b.prototype.XJ=function(){this.jb.BF=this.$b?this.ba.scrollTop-this.ba.jt(this.ba.Vd,this.Rh.top):-this.ba.tL(this.Cl.top)};b.prototype.Ln=function(a){a=void 0===a?!1:a;var c=new d.QD;c.top=this.ba.gG(a);c.left=0;c.bottom=this.ba.ny(a);c.right=this.ba.Hd;a&&c.bottom==this.ba.Ak&&c.bottom++;return c};b.prototype.Yx=function(){var a=this.Ln(!0);if(!(this.$b&&
this.ba.Av&&this.Rh.contains(a))){var c=this.Mca(),e=this.Ln();this.Rh=a;this.jb.content.html(this.EF(a,f.model.B.C.vl));this.jb.BF=this.ba.jt(this.Rh.top,e.top)-c;this.$b||this.ba.AC(this.Cl.bottom)||(this.ba.scrollTop=this.jb.OM=this.ba.fC(this.ba.Ng,!1));this.$b=!0}};b.prototype.YJa=function(a){for(var c=0;c<a.columns.length;c++)for(var e=this.jb.content.element.querySelectorAll('[data-c="'+c+'"]'),g=0;g<e.length;g++)e.item(g).style.minWidth=this.ba.Zg(c)+"px"};b.prototype.bz=function(){this.jb.caa=
this.ba.vt+this.ba.dD;this.jb.content.bottom=0;this.jb.scrollTop=this.ba.scrollTop};b.prototype.V_=function(a,c){a=this.ba.cL(a,!0)-1;c=this.ba.uL(c)-1;var e=this.tm(c,a);null==e&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};d.yoa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){a=d.Jp.call(this,a,c)||this;a.wm=new d.EW(a);a.QP=new d.Lla(a);return a}u(b,d.Jp);b.prototype.gb=function(){x.cancelIdleCallback(this.jJ);this.bz();var a=this.Ln();if(this.$b||this.ba.zC(a.right)||!this.Cl.contains(a)){var c=a.clone();0!=this.ba.$i&&(c.right=Math.min(c.right,this.ba.$i));this.$b&&this.Rh.contains(c)||(this.ba.zC(a.right)&&(a.left=Math.max(a.left-1,this.ba.Hd)),this.wm.yw(),this.QP.yw(),this.jb.content.html(this.EF(a,
!1,f.model.B.C.vl)),this.wm.$y(),this.QP.$y(),this.$b=!1,this.Cl.set(a))}};b.prototype.XJ=function(){this.jb.rt=this.$b?this.ba.scrollLeft-this.ba.kt(this.ba.Hd,this.Rh.left):-this.ba.bL(this.Cl.left)};b.prototype.Ln=function(a){a=void 0===a?!1:a;var c=new d.QD;c.top=0;c.left=this.ba.fG(a);c.bottom=this.ba.Vd;c.right=this.ba.RB(a);a&&c.right==this.ba.$i&&c.right++;return c};b.prototype.Yx=function(){var a=this.jb.CF;this.bz();a=this.jb.CF-a;var c=this.Ln(!0);if(!(this.$b&&this.ba.Av&&this.Rh.contains(c))){x.cancelIdleCallback(this.jJ);
var e=this.Lca(),g=this.Ln();this.Rh=c;this.wm.yw();this.QP.yw();this.jb.content.html(this.EF(c,!1,f.model.B.C.vl));this.wm.$y();this.QP.$y();this.jb.rt=this.ba.kt(this.Rh.left,g.left)-e;this.$b||(this.ba.zC(this.Cl.right)?this.jb.rt+=a:this.jb.LM=this.ba.SB(this.ba.Qf,!1));this.$b=!0}};b.prototype.bz=function(){this.jb.CF=this.ba.wt+this.ba.eD;this.jb.content.right=0};b.prototype.Isa=function(){var a=this;x.cancelIdleCallback(this.jJ);this.jJ=x.requestIdleCallback(function(){return a.E8()})};b.prototype.E8=
function(){var a=this,c=this.ba.oya();if(0!=c.length){for(var e=[],g=0;g<this.ba.Vd;g++)for(var l=0;l<c.length;l++){var m=c[l];this.T0(g,m)||(m=this.Ox(g,m),delete m.attr.tabindex,e.push(Ja(m)))}var n=this.Sk.content.element.querySelector(".fm-row-hidden");null==n&&(n=document.createElement("div"),n.classList.add("fm-row"),n.classList.add("fm-row-hidden"),this.Sk.content.element.insertBefore(n,this.Sk.content.element.childNodes[0]));n.innerHTML=e.join("");this.requestAnimationFrame(function(){for(var p=
0;p<n.children.length;p++)a.pN(n.children.item(p),!1,!0);a.jJ=x.requestIdleCallback(function(){return a.E8()})})}};b.prototype.AM=function(a,c){for(var e=this,g=[],l=0;l<this.ba.Vd;l++)for(var m=0;m<a.length;m++){var n=a[m];this.T0(l,n)||(n=this.Ox(l,n),delete n.attr.tabindex,g.push(Ja(n)))}var p=this.Sk.content.element.querySelector(".fm-row-hidden");null==p&&(p=document.createElement("div"),p.classList.add("fm-row"),p.classList.add("fm-row-hidden"),this.Sk.content.element.insertBefore(p,this.Sk.content.element.childNodes[0]));
p.innerHTML=g.join("");this.requestAnimationFrame(function(){for(var t=0;t<p.children.length;t++)e.pN(p.children.item(t),!1,!0);c()})};b.prototype.V_=function(a,c){a=this.ba.cL(a)-1;c=this.ba.uL(c,!0)-1;var e=this.tm(c,a);null==e&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};b.prototype.mK=function(){x.cancelIdleCallback(this.jJ)};b.prototype.dispose=function(){this.mK();d.Jp.prototype.dispose.call(this)};d.PN=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Aa.call(this,"div","fm-grid-layout")||this;a.pha=1E3;a.zx=[];a.vJ=!1;a.wZ=function(c){return a.qDa(c)};a.pga=function(c){return a.mFa(c)};a.cha=function(c){return a.wFa(c)};a.XQ=0;a.$k();a.ba=new d.jh;a.sm=new d.Roa(a.ba);a.zm=new d.Qoa(a);a.te();a.ue(-1);a.preventScroll();return a}u(b,A.Aa);b.prototype.te=function(){this.WZ();this.nva();this.laa();this.lva();this.Xua();this.kva()};b.prototype.WZ=function(){this.kr=new A.Oc;
this.kr.F.display="block";this.kr.Y("fm-grid-title");this.kr.Y("fm-pivot-title");this.kr.gV(!0);this.kr.F.P("position","relative");this.kr.$a();this.cB(this.kr)};b.prototype.nva=function(){this.jr=new d.Soa(this.ba);this.jr.Y("fm-sheet-headers");this.V(this.jr)};b.prototype.laa=function(){var a=this;this.gd=new d.PN(this.ba,function(c,e){return a.Rf(c,e)});this.gd.Y("fm-cols-sheet");this.gd.jb.element.addEventListener("wheel",this.wZ);this.gd.N(h.mc.hn,function(c){return a.Wj(c)});x.Bd().Vl&&(this.gd.jb.P("overflow",
"scroll"),this.gd.jb.placeholder.P("z-index","1"),this.gd.jb.N(Ka,function(){return a.oDa()},!0));this.V(this.gd)};b.prototype.lva=function(){var a=this;this.oe=new d.yoa(this.ba,function(c,e){return a.Rf(c,e)});this.oe.Y("fm-rows-sheet");this.oe.jb.element.addEventListener("wheel",this.pga);this.oe.N(h.mc.hn,function(c){return a.Wj(c)});x.Bd().Vl&&(this.oe.jb.P("overflow","scroll"),this.oe.jb.placeholder.P("z-index","1"),this.oe.jb.N(Ka,function(){return a.lFa()},!0));this.V(this.oe)};b.prototype.Xua=
function(){var a=this;this.Pc=new d.c6(this.ba,function(c,e){return a.Rf(c,e)});this.Pc.Y("fm-data-sheet");this.Pc.jb.N(Ka,function(){return a.CDa()},!0);this.Pc.N(d.Jp.hW,function(c){return a.ffa(c)});this.Pc.N(d.Jp.i6,function(c){return a.ffa(c)});this.Pc.N(h.mc.hn,function(c){return a.Wj(c)});this.V(this.Pc)};b.prototype.kva=function(){var a=this;this.dr=new d.Xja(this);this.dr.Y("fm-cols-resize");this.dr.N(h.mc.qE,function(c){return a.lDa(c)});this.V(this.dr);this.ir=new d.zoa(this);this.ir.Y("fm-rows-resize");
this.ir.N(h.mc.rE,function(c){return a.kFa(c)});this.V(this.ir);this.element.addEventListener("dblclick",this.cha)};b.prototype.gb=function(a){var c=this;a=void 0===a?!1:a;this.ba.Yga();this.ba.UQ();this.Pc.width&&this.Pc.height||this.RF();this.ba.setScale();this.ba.aN=0;this.n$();f.Dr(this.GX);this.f_();this.zx.push(this.requestAnimationFrame(function(){return c.FX(a)}))};b.prototype.f_=function(){for(;0<this.zx.length;)this.cancelAnimationFrame(this.zx.pop())};b.prototype.FX=function(a){var c=this;
a=void 0===a?!1:a;this.Wa(k.pi.Nw,this,{smooth:!1});k.Hb.zb.Wa(k.pi.Nw,this,{smooth:!1});var e=this.ba.IQ();this.$b&&this.oe.YJa(e);this.QF();this.vJ&&(this.iZ()&&(this.ba.IQ(),this.gd.tF(),this.oe.tF(),this.QF()),this.vJ=!1);this.JK();f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.fo,{smooth:!1}));this.zx.push(this.requestAnimationFrame(function(){c.RF();c.zm.gb()}));this.zx.push(this.requestAnimationFrame(function(){var g=!a&&c.hZ();g?(c.gd.tF(),c.oe.tF(),c.Pc.tF(),c.gb(!0)):c.ba.Wsa&&(f.Dr(c.GX),
c.GX=f.pe(function(){return c.Yx()},c.pha));!g&&f.model.B.C.GB&&c.UG()}));this.zx.push(this.requestAnimationFrame(function(){c.Wa(k.pi.fo,c,{smooth:!1});k.Hb.zb.Wa(k.pi.fo,c,{smooth:!1})}))};b.prototype.QF=function(){this.k_();this.ba.xV=this.$ca()?this.kr.qd(!0):0;this.gd.gb();this.gd.XJ();this.oe.gb();this.oe.XJ()};b.prototype.JK=function(){this.jr.gb();this.zm.gb();this.dr.gb();this.ir.gb();this.Pc.gb();this.Pc.XJ()};b.prototype.k_=function(){this.$ca()?(this.kr.Za(f.model.B.C.tq),this.kr.show()):
this.kr.$a()};b.prototype.$ca=function(){return!(f.ha(f.model.B.C.tq)||this instanceof d.flat.sI&&this.il)};b.prototype.iZ=function(){this.gd.Dx(!0);this.oe.Dx(!0);return this.gd.uC||this.oe.uC};b.prototype.hZ=function(){this.Pc.Dx(!0);this.gd.Dx(!0);this.oe.Dx(!0);return this.Pc.uC||this.gd.uC||this.oe.uC};b.prototype.Yx=function(){var a=this;this.f_();this.zx.push(this.requestAnimationFrame(function(){return a.lqa()}))};b.prototype.lqa=function(){var a=this;this.AM(function(){k.Hb.zb.Wa(k.pi.Nw,
a,{smooth:!0});a.gd.Yx();a.oe.Yx();a.Pc.Yx();a.ba.scrollLeft=a.Pc.jb.scrollLeft;a.ba.scrollTop=a.Pc.jb.scrollTop;f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.fo,{smooth:!0}));a.type==d.flat.sI.TYPE&&f.model.B.C.GB&&a.UG();a.ba.Av||0!=a.ba.scrollLeft||a.gd.Isa();a.zx.push(a.requestAnimationFrame(function(){k.Hb.zb.Wa(k.pi.fo,a,{smooth:!0})}))})};b.prototype.AM=function(a){var c=this,e=this.ba.pya(this.ba.Ln(!0));0==e.length?a():this.gd.AM(e,function(){c.Pc.AM(e,a)})};b.prototype.ffa=function(a){var c=
this;a.type==d.Jp.hW&&this.requestAnimationFrame(function(){c.gd.Fha();c.oe.Fha()})};b.prototype.CDa=function(){this.W3(this.Pc.jb.scrollTop,this.Pc.jb.scrollLeft)};b.prototype.lFa=function(){this.W3(this.oe.jb.scrollTop)};b.prototype.oDa=function(){this.W3(NaN,this.gd.jb.scrollLeft)};b.prototype.mFa=function(a){if(this.coords.mC){var c=a.wheelDeltaY||a.deltaY||a.wheelDelta||0;x.Bd().QL&&(c*=-40);x.Bd().Di&&(c*=-1);isNaN(c)||0==c||(this.Pc.jb.scrollTop=this.ba.scrollTop-c);a.preventDefault()}};b.prototype.qDa=
function(a){if(this.coords.lC){var c=a.wheelDeltaX||a.deltaX||0;x.Bd().QL&&(c*=-40);x.Bd().Di&&(c*=-1);0!=c&&(this.Pc.jb.scrollLeft=this.ba.scrollLeft-c);a.preventDefault()}};b.prototype.preventScroll=function(){this.element.addEventListener("scroll",function(a){a.target.scrollTo(0,0)})};b.prototype.RF=function(){this.width=this.coords.bp;this.height=this.coords.Mr;this.dr.left=0;this.dr.top=this.coords.ke;this.dr.right=0;this.dr.height=this.coords.Qt();this.ir.left=0;this.ir.top=this.coords.ke;this.ir.bottom=
0;this.ir.width=this.coords.Hr()};b.prototype.Lza=function(a,c,e){if(c&&e)for(var g=this.zm.Bxa(c,e);g<=this.zm.GJa(c,e);g++)for(var l=this.zm.txa(c,e);l<=this.zm.uJa(c,e);l++){var m=this.Rf(g,l,!0);null==m&&(m=new h.W.Yd,m.hb=g,m.lc=l);a.push(m)}};b.prototype.Rf=function(a,c,e){e=void 0===e?!1:e;var g=this.sm.getData(a,c,!e);return e&&null==g?this.sm.Gya(a,c):g};b.prototype.insertCell=function(a,c,e,g){this.sm.setData(a,c,e,void 0===g?!1:g)};b.prototype.resize=function(a,c){this.ba.resize(a,c,!0)};
b.prototype.Oga=function(a,c){this.ba.Po=a;this.ba.Wk=c};b.prototype.Sba=function(a){a!=this.ba.Vd&&(this.ba.Ng=a+(this.ba.Ng-this.ba.Vd));this.ba.Vd=a};b.prototype.rxa=function(a){a!=this.ba.Hd&&(this.ba.Qf=a+(this.ba.Qf-this.ba.Hd));this.ba.Qf<a&&(this.ba.Qf=a);this.ba.Hd=a};b.prototype.tr=function(){this.vJ=!0;this.sm.reset();this.ba.reset();this.gd.Fv();this.oe.Fv();this.Pc.Fv();this.zm.clear();this.Pc.jb.scrollTop=0;this.Pc.jb.scrollLeft=0;this.mK()};b.prototype.clearData=function(){this.sm.reset();
this.gd.Fv();this.oe.Fv();this.Pc.Fv();this.ba.UQ();this.ba.uta()};b.prototype.uF=function(a){this.vJ=!0;this.ba.uF(a)};b.prototype.qB=function(a){this.vJ=!0;this.ba.qB(a)};b.prototype.select=function(a,c,e,g){this.zm.select(new d.Xq(c,a),new d.Xq(g,e));this.element.focus({preventScroll:!0})};b.prototype.yr=function(){this.zm.clear();this.element.blur()};b.prototype.mK=function(){this.f_();f.Dr(this.GX);f.Dr(this.Dta);this.gd.mK()};b.prototype.dispose=function(){this.sm.dispose();this.zm.dispose();
this.mK();this.gd.jb.element&&this.gd.jb.element.removeEventListener("wheel",this.wZ);this.gd.dispose();this.oe.jb.element&&this.oe.jb.element.removeEventListener("wheel",this.pga);this.oe.dispose();this.Pc.dispose();this.dr.dispose();this.ir.dispose();this.element&&this.element.removeEventListener("dbclick",this.cha);A.Aa.prototype.dispose.call(this)};b.prototype.Wj=function(a){null!=a.cell&&this.Da(a);this.jDa(a)};b.prototype.jp=function(a){this.Da(a)};b.prototype.jDa=function(a){var c=this;this.XQ++;
1==this.XQ&&(this.Dta=f.pe(function(){if(1==c.XQ){if(a.cell){var e=new h.T6(a.cell,!0,a.element);c.Da(e)}}else a.cell&&(e=new h.T6(a.cell,!1,a.element),c.Da(e));c.XQ=0},300))};b.prototype.W3=function(a,c){a=void 0===a?NaN:a;c=void 0===c?NaN:c;var e=!1;isNaN(a)||a==this.coords.scrollTop||(this.coords.scrollTop=a,this.coords.Ng=this.coords.uL(a),this.oe.jb.OM=a,e=!0);isNaN(c)||c==this.coords.scrollLeft||(this.coords.scrollLeft=c,this.coords.Qf=this.coords.cL(c),this.gd.jb.LM=c,e=!0);e&&this.gb()};b.prototype.lDa=
function(a){this.Da(a);this.ba.IQ();0<a.data.width?this.ba.QM(a.data.lc,a.data.width,!1,!0):this.ba.tHa(a.data.lc);this.FR()};b.prototype.kFa=function(a){this.Da(a);this.ba.IQ();0<a.data.height?this.ba.Cw(a.data.hb,a.data.height,!1,!0):this.ba.vHa(a.data.hb);this.FR()};b.prototype.wFa=function(a){if(0!=f.model.B.C.vl){var c=this.Sf(),e=a.clientX-c.left;a=a.clientY-c.top;e>this.coords.Hr()&&a>this.coords.ke+this.coords.Qt()||(a=this.coords.BS(a,this.$b),e=this.coords.gS(e,this.$b),-1!=a||isNaN(e)||
this.dr.Wa(h.mc.qE,this,{width:-1,lc:e}),-1!=e||isNaN(a)||(this.ir.Wa(h.mc.rE,this,{height:-1,hb:a}),this.Wa(h.mc.noa,this,{height:-1,hb:a})))}};b.prototype.FR=function(){this.gd.Fv();this.oe.Fv();this.Pc.Fv();this.n$();this.gb()};b.prototype.n$=function(){if(0<this.coords.scrollLeft&&0<this.coords.qxa){var a=Math.max(0,this.coords.wt-this.coords.Fd+this.coords.eD);this.coords.scrollLeft=a;this.coords.Qf=this.coords.cL(a);this.Pc.jb.LM=a;this.gd.jb.LM=a}0<this.coords.scrollTop&&0<this.coords.pxa&&
(a=Math.max(0,this.coords.vt-this.coords.Ed+this.coords.dD),this.coords.scrollTop=a,this.coords.Ng=this.coords.uL(a),this.Pc.jb.OM=a,this.oe.jb.OM=a)};b.prototype.Nt=function(a){var c=A.Aa.Pb(a);a=c.closest(".fm-cell");return null!=a?(c=parseInt(a.attr("data-r")),a=parseInt(a.attr("data-c")),this.Rf(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.pages.ea(a),c=new h.W.Yd,c.label=a.caption,
c.wk=!0,c.hierarchy=a,c):null};b.prototype.bca=function(a,c){c=this.coords.BS(c-this.offset().top,!1);a=this.coords.gS(a-this.offset().left,!1);var e=this.Rf(c,a,!0);f.v(e)&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};b.prototype.Eq=function(a){this.Pc.jb.scrollTop=this.coords.fC(a)};b.prototype.es=function(a){this.Pc.jb.scrollLeft=this.coords.SB(a)};b.prototype.THa=function(){this.Pc.jb.scrollTop+=this.coords.Ed};b.prototype.WHa=function(){this.Pc.jb.scrollTop-=this.coords.Ed};b.prototype.VHa=function(){this.Pc.jb.scrollLeft+=
this.coords.Fd};b.prototype.UHa=function(){this.Pc.jb.scrollLeft-=this.coords.Fd};b.prototype.D3=function(a,c){this.coords.QM(a,c,!1,!0)};b.prototype.G3=function(a,c){this.coords.Cw(a,c,!1,!0)};b.prototype.UG=function(){var a=this;this.Ar({Xl:function(c,e,g,l){return a.Xl(c,e,g,l)},Wl:function(c,e,g,l){return a.Wl(c,e,g,l)},ml:function(c,e,g,l){return a.ml(c,e,g,l)}})};b.prototype.naa=function(a){var c=new A.Aa("span");c.Y("fm-helper");c.Y("fm-draggable");c.Y("fm-header-helper");c.P("position","absolute");
c.P("z-index",100);c.text(a.element.firstChild.textContent);a=new A.Aa("i","fm-remove-icon");c.V(a);return c};b.prototype.Wl=function(a,c,e,g){a&&a.Ua("fm-drag-remove",!1);c&&c.Ua("fm-drag-remove",!1);a=A.Aa.Pb(g.target);a.Lc("fm-header-drop-indicator")||this.qD(a,a)};b.prototype.ml=function(a,c){this.ql();a&&a.Ua("fm-drag-remove",!0);c&&c.Ua("fm-drag-remove",!0)};b.prototype.Xl=function(){};b.prototype.qD=function(){};b.prototype.Lv=function(){return this.od?this.od:new A.Aa("div","fm-header-drop-indicator")};
b.prototype.ql=function(){this.od&&(this.od.sg(!0),this.od=null)};b.prototype.pU=function(a){f.Dr(this.WBa);var c=this.slice.Wc.Mg(a.zg);if(!f.v(c)){var e=this.gva(c,a.value);if(c.filter.wy||null!=e)c.filter.wy&&a.value==c.filter.query.value||(this.WBa=f.pe(function(){f.model.Ta.U().tl(c.uniqueName,e);c.filter.Ida=!0},300))}};b.prototype.gva=function(a,c){var e={};if(f.model.bb.Tz.tS(a)==f.u.i.kb.fb){a=parseFloat(c);if(isNaN(a))return null;e.query={equal:a}}else{if(f.ha(c))return null;e.query={contain:c}}return e};
q.Object.defineProperties(b.prototype,{slice:{configurable:!0,enumerable:!0,get:function(){return this.Lb},set:function(a){this.Lb=a}},type:{configurable:!0,enumerable:!0,get:function(){return this.hg}},coords:{configurable:!0,enumerable:!0,get:function(){return this.ba}},Fq:{configurable:!0,enumerable:!0,get:function(){var a=[];if(0<this.P3.Fq.length)for(var c,e=0;e<this.zm.Fq.length;e++)null!=this.zm.Fq.ea(e).Kj&&(c=this.zm.IF(this.zm.Fq.ea(e).Kx),this.Lza(a,c.from,c.Ep));return a}},WB:{configurable:!0,
enumerable:!0,set:function(a){this.sm.WB=a}},$b:{configurable:!0,enumerable:!0,get:function(){return this.Pc.$b}},G:{configurable:!0,enumerable:!0,get:function(){return this.sm}},P3:{configurable:!0,enumerable:!0,get:function(){return this.zm}}});d.xj=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=d.zu.call(this,a,null)||this;c.ba=a;c.qb=[];c.Y("fm-filters");c.N(h.mc.hn,function(e){return c.Wj(e)});c.N("keydown",function(e){return c.LC(e)});c.wm=new d.EW(c);return c}u(b,d.zu);b.prototype.gb=function(){for(var a=[],c=new Ha,e=0;e<this.ba.Vd;e++){c.tag="div";c.Y("fm-row");for(var g=0;g<this.ba.Hd;g++)if(f.model.B.C.su){var l=e-this.ba.Vd+this.qb.length;c.text+=Ja(this.qR(e,g,0<=l?this.qb[l]:null))}else c.text+=Ja(this.Ox(e,
g));a.push(Ja(c))}a=a.join("");this.element.innerHTML!=a&&(this.wm.yw(),this.html(a),this.wm.$y())};b.prototype.qR=function(a,c,e){var g=this.qb.indexOf(e);this.cell.clear();this.cell.tag="div";this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.zj);this.cell.Y(h.W.ua.Ku);e?(this.cell.Y(h.W.ua.qf+g),this.cell.text=f.O.In(e.caption,!0,!0).replace(/\n/g,"<br>"),e.WL&&(f.model.B.C.Qm?(this.xy(this.cell,e),this.cell.Y(h.W.ua.yI),this.cell.attr["data-h-name"]=e.uniqueName,this.cell.text+=this.wm.TZ(e)):f.model.B.C.jz&&
(this.cell.attr.title=f.model.A.j.mA,this.xy(this.cell,e)))):this.cell.Y(h.W.ua.TV);this.Jga(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};b.prototype.xy=function(a,c){a.Y(h.W.ua.Lp);c.filter.$g&&(a.Y(h.W.ua.nW),a.text+=this.Cn(h.W.ua.jI,f.model.A.j.mX));a.text+=this.Cn(h.W.ua.pI)};b.prototype.dz=function(a){for(var c=this.qb.length=0;c<a.length;c++){var e=a.ea(c);0==e.Qe&&this.qb.push(e)}};b.prototype.Wj=
function(a){if(!f.model.B.C.Qm){var c=a.element;c.Lc(h.W.ua.Lp)&&(c=parseInt(c.attr("data-h")),isNaN(c)||this.Da(new h.iO(this.qb[c],a.cell)))}};b.prototype.LC=function(a){if(!f.model.B.C.Qm&&(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.Da(new h.jO(a,c))}};b.prototype.clear=function(){this.qb.length=0;this.gb()};d.bX=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=d.zu.call(this,a,null)||this;c.rowIndex=0;c.ba=a;c.qb=[];c.Y("fm-filters");c.$a();c.N(h.mc.hn,function(e){return c.Wj(e)});c.N("keydown",function(e){return c.LC(e)});c.wm=new d.EW(c);return c}u(b,d.zu);b.prototype.gb=function(){this.wm.yw();this.ww();if(f.model.B.C.su){var a=new Ha("div");a.Y("fm-row");a.style.height=this.ba.Nd(this.rowIndex)+"px";for(var c=0;c<this.qb.length;c++)a.text+=Ja(this.qR(this.rowIndex,c,this.qb[c]));
this.html(Ja(a));this.wm.$y();0==this.qb.length?this.$a():this.show()}else this.$a()};b.prototype.qR=function(a,c,e){this.cell.clear();this.cell.tag="div";this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.zj);e&&(this.cell.text=f.O.In(e.caption,!0,!0).replace(/\n/g,"<br>"),e.WL&&(f.model.B.C.Qm?(this.xy(this.cell,e),this.cell.Y(h.W.ua.yI),this.cell.attr["data-h-name"]=e.uniqueName,this.cell.text+=this.wm.TZ(e)):f.model.B.C.jz&&(this.cell.attr.title=f.model.A.j.mA,this.xy(this.cell,e))));this.cell.style["min-height"]=
this.ba.Nd(a)+"px";this.cell.style["max-height"]=this.ba.Nd(a)+"px";this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=this.ba.Qf+c;this.cell.attr["data-h"]=c;this.cell.attr.tabindex="0";return this.cell};b.prototype.xy=function(a,c){a.Y(h.W.ua.Lp);c.filter.$g&&(a.Y(h.W.ua.nW),a.text+=this.Cn(h.W.ua.jI,f.model.A.j.mX));a.text+=this.Cn(h.W.ua.pI)};b.prototype.dz=function(a){for(var c=this.qb.length=0;c<a.length;c++){var e=a.ea(c);0==e.Qe&&this.qb.push(e)}0==this.qb.length?this.$a():this.show()};b.prototype.Wj=
function(a){if(!f.model.B.C.Qm&&(a=a.element,a.Lc(h.W.ua.Lp))){var c=parseInt(a.attr("data-h"));isNaN(c)||this.Da(new h.iO(this.qb[c],null,a))}};b.prototype.LC=function(a){if(!f.model.B.C.Qm&&(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.Da(new h.jO(a,c))}};b.prototype.clear=function(){this.qb.length=0;this.gb()};d.Yja=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(c,e){e=void 0===e?!1:e;var g=A.sd.call(this)||this;g.m9=!1;g.F.Od();g.xc=c;g.m9=e;g.Za(g.xc.caption);g.ud("fm-ui-btn");g.Y(h.W.ua.Lp);g.Y(h.W.ua.zj);g.F.attr("title",f.model.A.j.mA);g.Z8=new A.Aa("i",h.W.ua.zW);g.Z8.Y(h.W.ua.pI);g.F.append(g.Z8);g.a9=new A.Aa("i",h.W.ua.zW);g.a9.Y(h.W.ua.jI);g.F.append(g.a9);g.d1=g.xc.filter.$g;g.m9&&(g.kj=new A.Oc,g.kj.Za(g.Oya()),g.kj.Y("fm-filter-desc"),g.V(g.kj));return g}function a(){var c=A.Aa.call(this)||
this;c.qb=[];c.Y("fm-ui-hgroup");c.Y("fm-filters");c.$a();return c}u(a,A.Aa);a.prototype.gb=function(){var c=this;this.ww();if(f.model.B.C.jz&&f.model.B.C.ZM){for(var e=[],g={},l=0;l<this.qb.length;g={Mw:g.Mw},l++){var m=this.qb[l];m.WL?(g.Mw=new b(m,!0),g.Mw.F.attr("data-h",l),g.Mw.N("click",function(n){return function(){return c.Wj(n.Mw)}}(g)),g.Mw.N("keydown",function(n){return function(p){return c.LC(p,n.Mw)}}(g)),this.V(g.Mw.F)):e.push(l)}0==this.qb.length||e.length==this.qb.length?this.$a():
this.show()}else this.$a()};a.prototype.dz=function(c){for(var e=this.qb.length=0;e<c.length;e++){var g=c.ea(e);0==g.Qe&&this.qb.push(g)}this.gb()};a.prototype.Wj=function(c){this.Da(new h.iO(c.hierarchy,null,c.F))};a.prototype.LC=function(c,e){f.model.B.C.Qm||32!=c.keyCode&&13!=c.keyCode||this.Da(new h.jO(0,0,e))};a.prototype.clear=function(){this.qb.length=0;this.gb()};q.Object.defineProperties(a.prototype,{ob:{configurable:!0,enumerable:!0,get:function(){return 0==this.qb.length}}});d.eoa=a;u(b,
A.sd);b.prototype.Oya=function(){var c=f.model.A.j.kI;this.hierarchy.filter.$g&&(c=1==this.hierarchy.cb.length?this.hierarchy.va(this.hierarchy.cb[0]).caption:f.model.A.j.qI);return c};q.Object.defineProperties(b.prototype,{hierarchy:{configurable:!0,enumerable:!0,get:function(){return this.xc}},d1:{configurable:!0,enumerable:!0,get:function(){return this.F.Lc("fm-filtered")},set:function(c){this.F.Ua("fm-filtered",c)}}});d.DLa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w=
{}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=d.xj.call(this)||this;a.hg=b.TYPE;a.Y("fm-compact-view");return a}u(b,d.xj);b.prototype.te=function(){d.xj.prototype.te.call(this);this.jva();this.saa();this.Vua()};b.prototype.Vua=function(){var a=this;this.Kg=new d.Yja(this.ba);this.Kg.Y("fm-cols-filter");this.Kg.N(h.mc.Iu,function(c){return a.jp(c)});this.Kg.N(h.mc.zI,function(c){return a.pU(c)});this.Kg.N(h.mc.vs,function(c){return a.Da(c)});this.V(this.Kg)};b.prototype.saa=function(){var a=
this;this.$d=new d.bX(this.ba);this.$d.Y("fm-rows-filter");this.$d.N(h.mc.Iu,function(c){return a.jp(c)});this.$d.N(h.mc.hn,function(c){return a.Wj(c)});this.$d.N(h.mc.zI,function(c){return a.pU(c)});this.$d.N(h.mc.vs,function(c){return a.Da(c)});this.V(this.$d)};b.prototype.jva=function(){var a=this;this.ti=new d.eoa;this.ti.Y("fm-page-filter");this.ti.N(h.mc.Iu,function(c){return a.jp(c)});this.ti.N(h.mc.vs,function(c){return a.Da(c)});this.V(this.ti)};b.prototype.QF=function(){this.ba.H_=this.ti.ob?
0:this.ti.element.offsetHeight;d.xj.prototype.QF.call(this);this.$d.gb()};b.prototype.JK=function(){d.xj.prototype.JK.call(this);this.Kg.gb()};b.prototype.iZ=function(){this.$d.Dx(!0);return d.xj.prototype.iZ.call(this)||this.$d.uC};b.prototype.hZ=function(){this.$d.Dx(!0);return d.xj.prototype.hZ.call(this)||this.$d.uC};b.prototype.RF=function(){d.xj.prototype.RF.call(this);this.ti.ob||(this.ti.top=this.ba.xV,this.ti.left=0,this.ti.right=0);this.jr.top=this.ba.ke;this.jr.left=0;this.jr.width=this.ba.tp;
this.jr.height=this.ba.iq;this.$d.left=this.ba.SB(0,!0);this.$d.top=this.ba.ke+this.ba.fC(0,!0);this.Kg.top=this.ba.ke+this.ba.fC(this.Kg.rowIndex,!0);this.Kg.left=this.ba.tp;this.Kg.right=Math.max(0,this.ba.bp-this.ba.fl(this.ba.$i,this.$b));this.dr.top=this.XGa()?this.ba.ke:this.Kg.qd();this.ir.top=this.ba.ke;this.gd.left=this.ba.tp;this.gd.top=this.ba.ke;this.gd.width=this.ba.Fd;this.gd.height=this.ba.Mr-this.ba.ke;this.oe.left=0;this.oe.top=this.ba.iq+this.ba.ke;this.oe.width=this.ba.bp;this.oe.height=
this.ba.Ed;this.Pc.left=this.ba.tp-parseInt(this.Pc.P("border-left-width"));this.Pc.top=this.ba.iq+this.ba.ke-parseInt(this.Pc.P("border-top-width"));this.Pc.width=this.ba.Fd;this.Pc.height=this.ba.Ed};b.prototype.XGa=function(){return!(this.Kg.visible&&!f.model.B.C.vl)};b.prototype.FR=function(){d.xj.prototype.FR.call(this);this.$d.gb();this.Kg.gb()};b.prototype.UG=function(){var a=this;d.xj.prototype.UG.call(this);for(var c={Bn:function(l){return a.naa(l)},ju:function(l){return a.ju(l)}},e=this.Kg.find(".fm-header:not(.fm-empty)",
!0),g=0;g<e.length;g++)e[g].draggable(c);e=this.$d.find(".fm-header:not(.fm-empty)",!0);for(g=0;g<e.length;g++)e[g].draggable(c);e=this.ti.find(".fm-header:not(.fm-empty)",!0);for(g=0;g<e.length;g++)e[g].draggable(c)};b.prototype.ju=function(a){if(a.Lc("fm-drag-remove")){var c=parseInt(a.attr("data-h")),e=a.closest(".fm-filters");a=this.slice.clone();e==this.Kg?(c=a.Cb.ea(c).uniqueName,a.columns.removeItem(c)):e==this.$d?(c=a.vb.ea(c).uniqueName,a.rows.removeItem(c)):e==this.ti&&a.pages.A3(c);f.model.Ta.U().ae(a)}};
b.prototype.Xl=function(a,c,e){e=this.rca(e);if(null==e)this.ql();else{var g=this.Lya(e,this.od);this.ql();if(!isNaN(g)){var l=parseInt(a.attr("data-h")),m=a.closest(".fm-filters");c=this.slice.clone();if(m==this.Kg){var n=c.Cb.ea(l);l=c.columns.indexOf(n.uniqueName)}else m==this.$d?(n=c.vb.ea(l),l=c.rows.indexOf(n.uniqueName)):m==this.ti&&(n=c.pages.ea(l),l=c.pages.indexOf(n.uniqueName));null!=n&&(e==m&&l<g&&g--,e!=m||l!=g)&&(a.$a(),e==m?e==this.Kg?(g=0<c.columns.length&&c.columns.vS().Qe&&g>=c.columns.length-
1?c.columns.length-2:g,c.columns.T1(l,g)):e==this.$d?(g=0<c.rows.length&&c.rows.vS().Qe&&g>=c.rows.length-1?c.rows.length-2:g,c.rows.T1(l,g)):e==this.ti&&c.pages.T1(l,g):(c.columns.removeItem(n.uniqueName),c.rows.removeItem(n.uniqueName),c.pages.removeItem(n.uniqueName),e==this.Kg?(g=0<c.columns.length&&c.columns.vS().Qe&&g>=c.columns.length?c.columns.length-1:g,c.columns.TJ(n.uniqueName,n,g)):e==this.$d?(g=0<c.rows.length&&c.rows.vS().Qe&&g>=c.rows.length?c.rows.length-1:g,c.rows.TJ(n.uniqueName,
n,g)):e==this.ti&&c.pages.TJ(n.uniqueName,n,g)),1<c.columns.length&&c.columns.ea(0).Qe&&(a=c.columns.ea(0),c.columns.splice(0,1),c.columns.TJ(a.uniqueName,a,c.columns.length)),f.model.Ta.U().ae(c))}}};b.prototype.Lya=function(a,c){return a==this.Kg?this.tya(c):a==this.$d?this.Ica(c):a==this.ti?this.rza(c):NaN};b.prototype.tya=function(a){if(null!=a){a=a.index();if(a>this.slice.columns.length)return this.slice.columns.length;var c=this.slice.columns.indexOf("[Measures]");0<=c&&c<=a&&0!=a&&a++;return a}return NaN};
b.prototype.Ica=function(a){if(null!=a){a=a.parent.Lc("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};b.prototype.rza=function(a){return null!=a?(a=a.index(),a>this.slice.pages.length?this.slice.pages.length:a):NaN};b.prototype.rca=function(a){var c=a.closest(".fm-filters");if(null==c){var e=a.closest(".fm-cell");
null!=e?(e.attr("data-r"),a=parseInt(e.attr("data-c")),this.oBa(a)?c=this.Kg:this.pBa(a)&&(c=this.$d)):(a=a.closest(".fm-resize-handles"),null!=a&&(a.Lc("fm-cols-resize")?c=this.Kg:a.Lc("fm-rows-resize")&&(c=this.$d)))}return c};b.prototype.oBa=function(a){return a>=this.coords.Hd};b.prototype.pBa=function(a){return a<=this.coords.Hd};b.prototype.qD=function(a,c){a=this.rca(a);if(null==a)this.ql();else{var e=c.closest(".fm-header:not(.fm-empty)");null!=c.closest(".fm-filters")&&null!=e?(this.od=this.Lv(),
a==this.ti?e.before(this.od):c.before(this.od)):(this.od=this.Lv(),a==this.Kg?this.Kg.find(".fm-row").append(this.od):a==this.$d?null!=c.closest(".fm-filters")?this.$d.find(".fm-header").before(this.od):this.hg==d.oB.ON.TYPE?this.$d.find(".fm-header").parent.append(this.od):this.$d.append(this.od):a==this.ti&&this.ti.append(this.od))}};b.prototype.tr=function(){d.xj.prototype.tr.call(this);this.Kg.clear();this.ti.clear();this.$d.clear()};b.prototype.dispose=function(){this.Kg.Od();this.Kg.dispose();
this.$d.Od();this.$d.dispose();this.ti.Od();d.xj.prototype.dispose.call(this)};q.Object.defineProperties(b.prototype,{bR:{configurable:!0,enumerable:!0,get:function(){return this.Kg}},nga:{configurable:!0,enumerable:!0,get:function(){return this.$d}},pfa:{configurable:!0,enumerable:!0,get:function(){return this.ti}}});b.TYPE="compact";d.VD=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=A.Aa.call(this,"div","fm-resize-handles")||this;c.zJ=function(e){return c.rw(e)};c.Qs=function(e){return c.zq(e)};c.RA=function(e){return c.sw(e)};c.AY=function(e){return c.Y2(e)};c.gv=new Ha;c.Me=a;c.ba=a.coords;c.element.addEventListener("mousedown",c.zJ);c.element.addEventListener("touchstart",c.zJ);f.Im.addEventListener("mouseup",c.Qs);f.Im.addEventListener("touchend",c.Qs);f.Im.addEventListener("touchcancel",c.Qs);c.jv=new A.Aa("div",
"fm-indicator");c.jv.$a();c.V(c.jv);c.aB=new A.Aa("div","fm-wrapper");c.aB.attr("title",f.model.A.j.l8);c.V(c.aB);x.Bd().Vl&&c.Y("fm-pointer-events-none");c.jg("hidden","true");return c}u(b,A.Aa);b.prototype.gb=function(){this.aB.attr("title",f.model.A.j.l8)};b.prototype.st=function(a){this.gv.tag="div";this.gv.Y("fm-handle");this.gv.attr["data-idx"]=a;this.gv.attr.title=f.model.A.j.fpa;return this.gv};b.prototype.rw=function(a){if(a.target.classList.contains("fm-handle")){this.$u=a.target;this.$u.classList.add("fm-active");
this.tA=this.Sf();f.Im.addEventListener("mousemove",this.RA);f.Im.addEventListener("touchmove",this.AY);a.stopImmediatePropagation();var c=parseInt(this.$u.getAttribute("data-idx"));this.eN(c);a.preventDefault();a.stopImmediatePropagation()}};b.prototype.eN=function(){};b.prototype.zq=function(){f.Im.removeEventListener("mousemove",this.RA);f.Im.removeEventListener("touchmove",this.AY);if(this.$u){this.$u.classList.remove("fm-active");var a=parseInt(this.$u.getAttribute("data-idx"));this.fN(this.$u,
a);this.$u=null;this.jv.$a()}};b.prototype.fN=function(){};b.prototype.Y2=function(a){a=a.touches[0];this.AU(this.$u,a.clientX-this.tA.left,a.clientY-this.tA.top);this.jv.show()};b.prototype.sw=function(a){var c=a.clientX-this.tA.left,e=a.clientY-this.tA.top;0>c||0>e||c>this.ba.bp||e>this.ba.Mr?this.zq(a):(this.AU(this.$u,c,e),this.jv.show())};b.prototype.AU=function(){};b.prototype.dispose=function(){this.element&&this.element.removeEventListener("mousedown",this.zJ);f.Im.removeEventListener("mousemove",
this.RA);f.Im.removeEventListener("mouseup",this.Qs);f.Im.removeEventListener("touchmove",this.AY);f.Im.removeEventListener("touchend",this.Qs);f.Im.removeEventListener("touchcancel",this.Qs);A.Aa.prototype.dispose.call(this)};d.bx=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return d.bx.apply(this,arguments)||this}u(b,d.bx);b.prototype.gb=function(){d.bx.prototype.gb.call(this);this.aB.ww();for(var a="",c=0;c<this.ba.Vd;c++)a+=Ja(this.st(c),!0);var e=this.ba.Ng;for(c=Math.min(this.ba.Ak,this.ba.ny());e<c;e++)a+=Ja(this.st(e),!0);this.aB.html(a)};b.prototype.st=function(a){d.bx.prototype.st.call(this,a);this.gv.style.top=this.ba.Nn(a,this.Me.$b,!1)+this.ba.Nd(a)+"px";return this.gv};b.prototype.eN=function(a){this.xY=
this.ba.Nn(a,this.Me.$b,!1)};b.prototype.fN=function(a,c){a=Math.round(a.offsetTop+a.clientHeight/2-this.xY);a=this.ba.WK(a,d.jh.RD,d.jh.Qq);this.Wa(h.mc.rE,this,{height:a,hb:c})};b.prototype.AU=function(a,c,e){e=this.ba.WK(e,this.xY+d.jh.RD,this.xY+d.jh.Qq);a.style.top=e+"px";this.jv.top=e;this.jv.width=this.ba.et};d.zoa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return d.bx.apply(this,arguments)||this}u(b,d.bx);b.prototype.gb=function(){d.bx.prototype.gb.call(this);this.aB.ww();for(var a="",c=0;c<this.ba.Hd;c++)a+=Ja(this.st(c),!0);c=Math.min(this.ba.$i,this.ba.RB());for(var e=this.ba.Qf;e<c;e++)a+=Ja(this.st(e),!0);this.aB.html(a)};b.prototype.st=function(a){d.bx.prototype.st.call(this,a);this.gv.style.left=this.ba.fl(a,this.Me.$b)+this.ba.Zg(a)+"px";return this.gv};b.prototype.eN=function(a){this.wY=
this.ba.fl(a,this.Me.$b)};b.prototype.fN=function(a,c){a=Math.round(a.offsetLeft+a.clientWidth/2-this.wY);a=this.ba.WK(a,d.jh.SD,d.jh.Kp);this.Wa(h.mc.qE,this,{width:a,lc:c})};b.prototype.AU=function(a,c){c=this.ba.WK(c,this.wY+d.jh.SD,this.wY+d.jh.Kp);a.style.left=c+"px";this.jv.left=c;this.jv.height=this.ba.Ax};d.Xja=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=this;this.k9=!1;this.Dl=[];this.xm=[];this.iba=function(){return c.NDa()};this.uaa=function(){return c.MDa()};this.Mba=function(){return c.ODa()};this.Me=a;this.ba=a.coords;this.Me.N(h.mc.hn,function(e){return c.JC(e)})}b.prototype.gb=function(){this.Xaa(this.nh)};b.prototype.Rga=function(a){this.k9=void 0===a?!0:a};b.prototype.zha=function(){this.M3();null!=this.nh&&(this.nh.sg(!0),this.nh=null)};b.prototype.JC=function(a){this.stop();
this.RAa(a.cell.lc)&&a.cell.Jh&&this.fba(a.cell)};b.prototype.RAa=function(a){return this.k9||-1<this.Dl.indexOf(a)};b.prototype.clear=function(){this.Dl=[];this.xm=[];this.jd=null};b.prototype.fba=function(a){!f.model.B.C.TF||null!=this.jd&&this.jd.hb==a.hb&&this.jd.lc==a.lc||(this.jd=a,this.Zva(),this.Me.P3.gb())};b.prototype.Gra=function(a){this.jd.label=a+"\n"};b.prototype.stop=function(){f.model.B.C.TF&&(this.zha(),this.jd=null)};b.prototype.save=function(a){if((f.model.B.C.TF||this.Ada)&&null!=
this.jd){a=a.replace(/\n/gi,"<br>");if(this.jd.measure.type==f.u.i.Ja.Oa)this.jd.value=Date.parse(a);else if(this.jd.measure.type!=f.u.i.Ja.sc){a=a.replace(/,/gi,".");a=a.replace(/[^\d|\.|\-]/gi,"");this.jd.value=parseFloat(a);var c=this.jd.measure.Dh(this.jd.measure.uniqueName,this.jd.measure.$).clone();this.jd.label=x.Tb.format(this.jd.value,c)}else this.jd.label=a;null!=this.L9&&this.L9(this.jd.hb,this.jd.lc,this.jd.measure.type!=f.u.i.Ja.sc?this.jd.value:a);null!=this.jd&&this.Me.G.tta(this.jd.hb,
this.jd.lc)}};b.prototype.Zva=function(){null!=this.jd&&this.jd.Jh&&(null!=this.nh&&(this.nh.Od(),this.nh.sg(),this.nh=null),this.jd.hb<this.ba.gG()||this.jd.lc<this.ba.fG()||this.jd.hb>this.ba.ny()||this.jd.lc>this.ba.RB()||(this.nh=new A.Xu,this.nh.Y("fm-editing-cell"),this.Me.cB(this.nh),this.Xaa(this.nh),this.jd.label=this.jd.label.replace(/<br\s*[\/]?>/gi,"\n"),this.nh.cj(this.Mya(this.jd)),this.nh.N(A.Xu.Nz,this.iba),this.nh.N(A.Xu.eW,this.uaa),this.nh.N(A.Xu.fW,this.Mba),this.nh.F.focus(),
this.nh.selectAll(),this.nh.show()))};b.prototype.Mya=function(a){return a.measure.type==f.u.i.Ja.sc?a.label:isNaN(a.value)?"":a.measure.type==f.u.i.Ja.Oa?(new Date(a.value)).toISOString().substr(0,10):a.value.toString()};b.prototype.Xaa=function(a){if(a){this.jd.hb<this.ba.gG()||this.jd.lc<this.ba.fG()||this.jd.hb>this.ba.ny()||this.jd.lc>this.ba.RB()?a.$a():a.show();var c=Math.min(this.ba.Zg(this.jd.lc),this.ba.et-this.ba.fl(this.jd.lc,this.Me.$b));a.F.P("left",this.ba.fl(this.jd.lc,this.Me.$b)-
1+"px");a.F.P("top",this.ba.Nn(this.jd.hb,this.Me.$b)-1+"px");a.tj(c+1);a.yp(this.ba.Nd(this.jd.hb)+1)}};b.prototype.NDa=function(){this.aga();this.M3();var a=this.Me.Rf(this.jd.hb+1,this.jd.lc);this.stop();null!=a?(a.hb>this.ba.ny()-3&&this.Me.Eq(this.ba.Ng+1),this.fba(a)):this.stop()};b.prototype.ODa=function(){this.aga();this.M3();this.stop()};b.prototype.MDa=function(){this.Ada&&this.Gra(this.nh.yi());this.nh.cj(this.jd.label)};b.prototype.M3=function(){null!=this.nh&&this.save(this.nh.yi());
null!=this.jd&&(this.Me.clearData(),this.Me.gb())};b.prototype.aga=function(){this.nh.mb(A.Xu.Nz,this.iba);this.nh.mb(A.Xu.eW,this.uaa);this.nh.mb(A.Xu.fW,this.Mba)};q.Object.defineProperties(b.prototype,{tga:{configurable:!0,enumerable:!0,set:function(a){this.L9=a}},Ada:{configurable:!0,enumerable:!0,get:function(){return null!=this.jd}}});d.Hka=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=this;this.focused=null;this.CC=!1;this.target=a;this.target.N("keyup",function(e){return c.$ea(e)});this.target.N("paste",function(e){return c.$ea(e)});this.target.N("focusout",function(){return c.m2()})}b.prototype.TZ=function(a){return"<div><input type='text' class='fm-ui-text-input' value='"+((a.filter.wy?a.filter.query.value:"")+"'></div>")};b.prototype.yw=function(){if(f.model.B.C.Qm&&(this.CC=!0,document.activeElement&&
"input"==document.activeElement.tagName.toLowerCase())){var a=document.activeElement,c=a.parentElement.parentElement.getAttribute("data-h-name");f.ha(c)?this.focused=null:this.focused={zg:c,selectionStart:a.selectionStart,selectionEnd:a.selectionEnd,value:a.value}}};b.prototype.$y=function(){if(f.model.B.C.Qm){if(null!=this.focused){var a=this.target.element.querySelector("."+h.W.ua.yI+'[data-h-name="'+this.focused.zg+'"] input');a&&(a.focus(),a.value=this.focused.value,a.selectionStart=this.focused.selectionStart,
a.selectionEnd=this.focused.selectionEnd)}this.CC=!1}};b.prototype.m2=function(){this.CC||(this.focused=null)};b.prototype.$ea=function(a){a=a.target;var c=a.parentElement.parentElement.getAttribute("data-h-name");this.target.Da(new h.rma(c,a.value))};d.EW=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=this;this.focused=null;this.CC=!1;this.target=a;this.target.N("focusin",function(){return c.yw()});this.target.N("focusout",function(){return c.m2()})}b.prototype.yw=function(){if(!f.model.B.C.Qm&&(this.CC=!0,document.activeElement&&"columnheader"==document.activeElement.getAttribute("role"))){var a=document.activeElement,c=a.getAttribute("data-c");this.focused=(a=a.getAttribute("data-r"))||c?{tNa:c,bs:a}:null}};b.prototype.$y=
function(){if(!f.model.B.C.Qm){if(null!=this.focused){var a=document.querySelector("."+h.W.ua.Lp+('[data-c="'+this.focused.col+'"][data-r="'+this.focused.row+'"]'));a&&a.focus()}this.CC=!1}};b.prototype.m2=function(){this.CC||(this.focused=null)};d.Lla=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=d.VD.call(this)||this;c.hg=a.TYPE;c.ud("fm-compact-view");c.Y("fm-classic-view");return c}u(a,d.VD);a.prototype.saa=function(){var c=this;this.$d=new b.Vja(this.ba);this.$d.Y("fm-rows-filter");this.$d.N(h.mc.Iu,function(e){return c.jp(e)});this.$d.N(h.mc.hn,function(e){return c.Wj(e)});this.$d.N(h.mc.zI,function(e){return c.pU(e)});this.$d.N(h.mc.vs,function(e){return c.Da(e)});this.V(this.$d)};a.prototype.QF=function(){this.HAa?
d.VD.prototype.QF.call(this):(f.Va(f.model.A.j.nna,f.model.A.j.fm,f.rb.fm),f.model.Ta.U().zp({gridType:h.ie.Ez}),f.model.Ta.U().refresh())};a.prototype.Ica=function(c){var e=this.slice;if(null!=c){c=c.index();if(c>e.rows.length)return e.rows.length;e=e.rows.indexOf("[Measures]");0<=e&&e<=c&&0!=c&&c++;return c}return NaN};q.Object.defineProperties(a.prototype,{HAa:{configurable:!0,enumerable:!0,get:function(){return this.ba.Fd>this.ba.FCa}}});a.TYPE="classic";b.ON=a})(d.oB||(d.oB={}))})(h.sheet||(h.sheet=
{}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){return d.bX.call(this,c)||this}u(a,d.bX);a.prototype.gb=function(){for(var c=[],e=new Ha,g=0;g<this.ba.Vd;g++){e.tag="div";e.Y("fm-row");for(var l=0;l<this.ba.Hd;l++)e.text=f.model.B.C.su?e.text+Ja(this.qR(g,l,g==this.ba.Vd-1?this.qb[l]:null)):e.text+Ja(this.Ox(g,l));c.push(Ja(e))}this.wm.yw();this.html(c.join(""));this.wm.$y()};b.Vja=a})(d.oB||(d.oB={}))})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||
(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=d.xj.call(this)||this;c.KA=!1;c.GB=!1;c.hg=a.TYPE;c.Y("fm-flat-view");c.S8=new d.Hka(c);return c}u(a,d.xj);a.prototype.laa=function(){var c=this;this.gd=new b.Jla(this.ba,function(e,g){return c.Rf(e,g)});this.gd.Y("fm-cols-sheet");this.gd.jb.element.addEventListener("wheel",this.wZ);this.gd.jb.N(Ka,function(){return c.pDa()});this.gd.N(h.mc.hn,function(e){return c.Wj(e)});this.gd.N(h.mc.Iu,function(e){return c.jp(e)});this.gd.N(h.mc.zI,
function(e){return c.pU(e)});this.gd.N(h.mc.vs,function(e){return c.Da(e)});this.V(this.gd)};a.prototype.pDa=function(){this.Pc.jb.scrollLeft=this.gd.jb.scrollLeft};a.prototype.Wj=function(c){this.GB||d.xj.prototype.Wj.call(this,c)};a.prototype.jp=function(c){this.GB||d.xj.prototype.jp.call(this,c)};a.prototype.RF=function(){d.xj.prototype.RF.call(this);this.jr.top=this.ba.ke;this.jr.left=0;this.jr.width=this.ba.tp;this.jr.height=this.ba.iq;this.gd.left=this.ba.tp;this.gd.top=this.ba.ke;this.gd.width=
this.ba.Fd;this.gd.height=this.ba.Mr-this.ba.ke;this.oe.left=0;this.oe.top=this.ba.iq+this.ba.ke;this.oe.width=this.ba.bp;this.oe.height=this.ba.Ed;this.Pc.left=this.ba.tp-parseInt(this.Pc.P("border-left-width"));this.Pc.top=this.ba.iq+this.ba.ke-parseInt(this.Pc.P("border-top-width"));this.Pc.width=this.ba.Fd;this.Pc.height=this.ba.Ed+parseInt(this.Pc.P("border-top-width"))};a.prototype.JK=function(){d.xj.prototype.JK.call(this);this.S8.gb()};a.prototype.UG=function(){var c=this;if(!this.il||f.u.Na.U().fa.fT){d.xj.prototype.UG.call(this);
for(var e={Bn:function(m){return c.naa(m)},ju:function(m){return c.ju(m)},qw:function(m,n){return c.qw(m,n)},eU:function(m){return c.eU(m)}},g=this.gd.find(".fm-header",!0),l=0;l<g.length;l++)g[l].draggable(e)}};a.prototype.zda=function(c){if(f.v(c))return!1;c=this.Nt(c.element);return f.v(c)?!0:1===c.level||void 0===c.level};a.prototype.qD=function(c,e){c=e.closest(".fm-cell");this.zda(c)?(c=parseInt(c.attr("data-c")),c=Math.min(c,this.coords.Wk),this.od=this.Lv(),this.od.left=this.coords.fl(c,this.$b)-
(c==this.coords.Wk?0:this.od.width),this.od.top=this.ba.ke+this.coords.Nn(0,this.$b)-1,this.od.height=this.coords.Nd(0)+1,this.append(this.od)):this.ql()};a.prototype.qw=function(c,e){return"input"==e.target.tagName.toLowerCase()||1<this.Nt(c.element).level?!1:!0};a.prototype.eU=function(){this.P3.clear();this.GB=!0};a.prototype.ju=function(c){var e=this;setTimeout(function(){e.GB=!1},100);if(c.Lc("fm-drag-remove"))if(c=parseInt(c.attr("data-c")),this.il)this.Wa(h.mc.X5,this,{index:c});else{var g=
this.slice.clone(),l=g.flatten(!0),m=l.ea(c);l.removeItem(m.uniqueName);g.columns.Bb(m.uniqueName)?g.columns.removeItem(m.uniqueName):g.rows.Bb(m.uniqueName)?g.rows.removeItem(m.uniqueName):g.pages.Bb(m.uniqueName)&&g.pages.removeItem(m.uniqueName);g.ad().find(function(n){return n.uniqueName===m.uniqueName})&&g.aD(m.uniqueName);g.flatOrder=l.Ic(!0);f.model.Ta.U().ae(g)}};a.prototype.Xl=function(c,e,g){this.ql();var l=g.closest(".fm-cell");if(null!=l){e=parseInt(c.attr("data-c"));g=parseInt(l.attr("data-c"));
c=this.Nt(c.element);var m=this.Nt(l.element),n=c.hierarchy?c.hierarchy.ra.length:0;g=g>e?g-(0<n?n-2:0):g;e!==g&&(this.il?this.Wa(h.mc.W5,this,{zxa:e,BJa:g}):this.zda(l)&&(l=this.slice.clone(),0==l.flatOrder.length&&(l.flatOrder=l.flatten(!0).Ic(!0)),l.gAa&&void 0===c.level&&(n=e>g?1:-1,e=l.flatOrder.indexOf(c.hierarchy.uniqueName),g=null===m?g:l.flatOrder.indexOf(m.hierarchy.uniqueName),g=e===g?g+n:g),g=Math.max(0,Math.min(g,l.flatOrder.length)),e<g&&g--,f.Ha.S1(l.flatOrder,e,g),f.model.Ta.U().ae(l)))}};
q.Object.defineProperties(a.prototype,{MK:{configurable:!0,enumerable:!0,get:function(){return this.S8}},il:{configurable:!0,enumerable:!0,get:function(){return this.KA},set:function(c){this.KA=c}}});a.TYPE="flat";b.sI=a})(d.flat||(d.flat={}))})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){var g=d.PN.call(this,c,e)||this;g.N(h.mc.hn,function(l){return g.jp(l)});g.N("keydown",function(l){return g.LC(l)});g.N("focusin",function(l){return g.l2(l)});return g}u(a,d.PN);a.prototype.l2=function(c){var e=this.jb.content.element.scrollLeft;0!=e?(this.jb.content.BIa(),this.jb.scrollLeft=this.jb.element.scrollLeft+e):(c=parseInt(c.target.getAttribute("data-c")),!isNaN(c)&&this.ba.SB(c,this.$b)<this.ba.scrollLeft&&
(this.jb.scrollLeft-=this.ba.Fd/2))};a.prototype.jp=function(c){null!=c.cell&&c.cell.wk&&null!=c.cell.hierarchy&&c.cell.bB!=h.W.Mp.UI&&(f.model.B.C.Qm||this.Da(new h.iO(c.cell.hierarchy,c.cell)))};a.prototype.LC=function(c){if(!f.model.B.C.Qm&&(32==c.keyCode||13==c.keyCode)){var e=c.target;c=parseInt(e.getAttribute("data-r"));e=parseInt(e.getAttribute("data-c"));isNaN(c)||isNaN(e)||this.Da(new h.jO(c,e))}};a.prototype.Ox=function(c,e){this.cell=d.PN.prototype.Ox.call(this,c,e);(c=this.tm?this.tm(c,
e):null)&&c.wk&&c.hierarchy.WL&&(f.model.B.C.Qm?(this.xy(this.cell,c.hierarchy),this.cell.Y(h.W.ua.yI),this.cell.text+=this.wm.TZ(c.hierarchy),this.cell.attr["data-h-name"]=c.hierarchy.uniqueName):f.model.B.C.jz&&(this.xy(this.cell,c.hierarchy),this.cell.attr.title=f.model.A.j.mA,this.cell.attr.tabindex="0",this.cell.text+=this.Cn(h.W.ua.pI)));return this.cell};a.prototype.xy=function(c,e){c.Y(h.W.ua.Lp);e.filter.$g&&(c.Y(h.W.ua.nW),c.text+=this.Cn(h.W.ua.jI,f.model.A.j.mX))};b.Jla=a})(d.flat||(d.flat=
{}))})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){f=f.K||(f.K={});f=f.Vc||(f.Vc={});f=f.gqa||(f.gqa={});f=f.Dla||(f.Dla={});f[f.$Ka=0]="DESELECT";f[f.aLa=1]="DESELECT_ALL";f[f.hNa=2]="TOGGLE_EXPANDED";f[f.iNa=3]="TOGGLE_SELECTED";f[f.BMa=4]="MOVE_UP";f[f.wMa=5]="MOVE_DOWN";f[f.zMa=6]="MOVE_TO_ROWS";f[f.xMa=7]="MOVE_TO_COLUMNS";f[f.yMa=8]="MOVE_TO_FILTERS";f[f.AMa=9]="MOVE_TO_VALUES";f[f.cLa=10]="EDIT_CALCULATED_VALUE";f[f.YMa=11]="SELECT_AGGREGATION"})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div")||this;b.KT=function(c){return b.J2(c)};b.list=new A.hd.zh;b.list.zk=!0;b.list.Lh(b.bu);b.list.Xf("caption");b.list.ue();b.list.N(y.da.Qd,function(c){return b.ku(c)});b.V(b.list);b.F.$k();b.F.N("keydown",function(c){27==c.keyCode&&(b.close(),c.stopImmediatePropagation())});var a=new A.Aa("div","fm-arrow");b.F.V(a);return b}u(d,A.Ca);d.prototype.Xn=function(b,a,c){this.origin=a;this.RK=b;this.tba=void 0===c?-1:c;this.setData(b);
this.show();this.F.N("mouseleave",this.KT);f.Im.addEventListener("mousedown",this.KT);b=a.Sf(this.F.element.offsetParent);this.F.P("right",this.F.element.offsetParent.clientWidth-b.left+"px");this.F.P("top",b.top-this.qd()/2+a.qd()/2+"px");this.ov=document.activeElement;this.list.focus()};d.prototype.J2=function(b){"mousedown"==b.type&&this.F.iR(b)||(this.F.mb("mouseleave",this.KT),f.Im.removeEventListener("mousedown",this.KT),this.close())};d.prototype.setData=function(b){for(var a=0,c=[],e=0;e<
b.Tc.length;e++){var g={caption:b.fK[e],$:b.Tc[e]};void 0!=b.vv&&(g.zV=b.vv[e]);c.push(g);b.Tc[e]==b.$&&(a=e)}this.list.Cf(c);this.list.ak(a);this.list.F.Dw(0)};d.prototype.ku=function(b){this.close();this.Wa(y.da.Qd,this,{RK:this.RK,tba:this.tba,TY:b.data.Fk,origin:this.origin})};d.prototype.bu=function(b,a){var c=new A.Vf.XI;c.setData(b);c.am(a);return c};d.prototype.close=function(){this.$a();this.ov&&this.ov.focus({preventScroll:!0})};h.PH=d})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.Ns=this.Am=null}b.prototype.update=function(a,c,e,g){this.Ud=a;this.Lb=c;this.pn=e;this.Ns=g;this.Lx();this.Fp();this.rN()};b.prototype.Fp=function(){this.pages=this.dC();this.rows=this.vG();this.Cea(this.rows);this.columns=this.kG();this.Cea(this.columns);this.measures=this.ad();this.oCa(this.measures);this.tZ()};b.prototype.rN=function(){this.qb=[];this.Le=[];this.zra(this.qb,this.dG());this.wBa&&this.mHa(this.qb);this.Ira(this.qb,
this.Er());f.model.B.C.XIa&&this.nHa(this.qb);this.sH(this.qb);if(b.z_){b.z_=!1;var a=this.qb.find(function(c){return c.uniqueName==="/"+f.model.A.j.z6});null!=a&&this.mba(a)}this.zk(this.pages);this.zk(this.columns);this.zk(this.rows);this.zk(this.measures)};b.prototype.hu=function(a){if(null!=this.Ud){var c=this.Er().find(function(g){return g.uniqueName===a});if(null!=c){c.rg=!0;c.ul=this.Cy;var e=this.measures.findIndex(function(g){return g.uniqueName===a});0<=e?(c.U0=!0,this.measures[e]=c):this.measures.push(c)}this.rN()}};
b.prototype.iu=function(a){if(null!=this.Lb&&null!=this.Ud){var c=this.measures.findIndex(function(e){return e.uniqueName===a});-1<c&&this.measures.splice(c,1);this.u4();this.rN()}};b.prototype.tZ=function(){this.Am=null};b.prototype.u4=function(){this.Am={pages:this.pages,rows:this.rows,columns:this.columns,measures:this.measures}};b.prototype.Cea=function(a){a=a.find(function(c){return"[Measures]"===c.uniqueName});null!=a&&(a.caption=f.model.A.j.Rz,a.yT=!0)};b.prototype.oCa=function(a){for(var c=
0;c<a.length;c++)a[c].rg=!0,a[c].ul=f.model.B.C.ul&&!a[c].Bg};b.prototype.zk=function(a){for(var c,e=0;e<a.length;e++){a[e].rd=!0;c=this.Fba(a[e].uniqueName,a[e].rg);var g=this.Lb.rc().getItem(a[e].uniqueName);if(null!=c&&(this.Hi(c,!0),c.Ci))for(var l=0;l<c.children.length;l++)g.ig==c.children[l].uniqueName&&this.Hi(c.children[l],!0);a[e].Ci&&null!=g.nc&&(a[e].caption=a[e].caption+" / "+g.nc.caption)}};b.prototype.Hi=function(a,c){a.rd=c;null!=a.parent&&a.parent.rd!=c&&(1==c?this.Hi(a.parent,c):
0==this.hAa(a.parent.children)&&this.Hi(a.parent,c));if(a.Ci&&0==c)for(var e=0;e<a.children.length;e++)this.Hi(a.children[e],c)};b.prototype.hAa=function(a){for(var c=0;c<a.length;c++)if(!0===a[c].rd)return!0;return!1};b.prototype.Bra=function(a,c){var e=null;c=c.split(/[\/\\]/);for(var g="",l=null,m=0;m<c.length;m++){var n=c[m];if(!f.ha(n)){g=g+(f.ha(g)?"":"/")+n;var p="[Folder]."+g;(e=this.Le.find(function(t){return t.uniqueName===p}))?l=e:(e=new h.W.Mi,e.df=!0,e.uniqueName=p,e.caption=n,e.children=
[],this.Le.push(e),l?(e.level=l.level+1,e.parent=l,l.children.push(e)):(e.level=0,a.push(e)),l=e)}}return e};b.prototype.zra=function(a,c){for(var e,g,l,m=0;m<c.length;m++){l=this.Ud.Ee(c[m].uniqueName);var n=null!=l&&l.type!=f.u.i.Ja.sc,p=this.pn==f.u.i.oa.Gf||this.pn==f.u.i.oa.API||this.pn==f.u.i.oa.JSON||this.pn==f.u.i.oa.xh||this.pn==f.u.i.oa.Pp;c[m].Qda=null!=l&&l.type==f.u.i.Ja.fb;c[m].fw=null!=l&&l.type==f.u.i.Ja.Yb;c[m].NAa=null!=l&&l.type==f.u.i.Ja.Dc;f.ha(c[m].Qc)||!n&&!p?(e=a.find(function(t){return t.uniqueName===
c[m].FK}),null==e&&(e=new h.W.Mi,e.df=!0,e.uniqueName=c[m].FK,e.caption=c[m].LF,e.children=[],e.level=0,e.description=e.description,a.push(e),this.Le.push(e)),c[m].qj?(l=f.ha(c[m].Qc)?e:g,l=l.children.find(function(t){return t.uniqueName===c[m].zg}),c[m].level=l.level+1,c[m].parent=l,null==l.children&&(l.children=[]),l.children.push(c[m]),l.Ci=!0):f.ha(c[m].Qc)?(c[m].level=1,c[m].parent=e,e.children.push(c[m])):(g=e.children.find(function(t){return t.uniqueName===e.uniqueName+c[m].Qc}),null==g&&(g=
new h.W.Mi,g.df=!0,g.uniqueName=e.uniqueName+c[m].Qc,g.caption=c[m].Qc,g.children=[],g.level=1,g.parent=e,g.description=e.description,e.children.push(g),this.Le.push(g)),c[m].level=2,c[m].parent=g,g.children.push(c[m]))):(g=c[m].qj?this.Le.find(function(t){return t.uniqueName===c[m].zg}):this.Le.find(function(t){return t.uniqueName==="[Folder]."+c[m].Qc}),null==g&&(g=this.Bra(a,c[m].Qc)),c[m].level=g.level+1,c[m].parent=g,f.v(g.children)&&(g.children=[]),g.children.push(c[m]));this.Le.push(c[m])}};
b.prototype.Ira=function(a,c){for(var e={fh:0};e.fh<c.length;e={fh:e.fh},e.fh++){c[e.fh].rg=!0;c[e.fh].ul=f.model.B.C.ul&&!c[e.fh].Bg;c[e.fh].Ka&&(c[e.fh].yg=f.model.A.j.z6);var g=null;if(this.Cy){var l=this.Lha(c[e.fh].uniqueName);g=this.Le.find(function(m){return m.uniqueName===l&&!m.df})}this.Cy&&null!=g?(g.Dg=c[e.fh],g.Dg.WS=g,c[e.fh].parent=g.parent):""!==c[e.fh].yg?(g=this.Le.find(function(m){return function(n){return n.uniqueName==="[Folder]."+c[m.fh].yg+"/"+c[m.fh].Qc}}(e)),null==g&&(g=this.Hra(a,
c[e.fh].yg,c[e.fh].Qc,c[e.fh].Bg,c[e.fh].Ka)),c[e.fh].level=g.level+1,c[e.fh].parent=g,g.children.push(c[e.fh])):(c[e.fh].level=0,a.push(c[e.fh]));this.Le.push(c[e.fh])}};b.prototype.Hra=function(a,c,e,g,l){g=void 0===g?!1:g;l=void 0===l?!1:l;var m=null;e=e.split(/[\/\\]/);e.unshift(c);c="";for(var n=null,p=0;p<e.length;p++){var t=e[p];if(!f.ha(t)){c=c+(f.ha(c)?"":"/")+t;var r="[Folder]."+c;m=this.Le.find(function(v){return v.uniqueName===r});f.v(m)&&0==p&&(m=this.Le.find(function(v){return v.caption===
t}))&&!m.df&&(m=null);m?n=m:(m=new h.W.Mi,m.df=!0,m.uniqueName=r,m.caption=t,m.children=[],m.Yt=!0,m.Bg=g,m.HG=l,this.Le.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};b.prototype.mHa=function(a){for(var c,e=0;e<a.length;e++)if(!0===a[e].df&&1==a[e].children.length&&!0!==a[e].children[0].df&&!a[e].children[0].Ka&&(c=a[e].children[0],c.level=0,c.parent=null,a.splice(e,1,c),c.children))for(var g=0;g<c.children.length;g++)--c.children[g].level};b.prototype.nHa=
function(a){for(var c=0;c<a.length;c++)!0===a[c].df&&!0!==a[c].HG&&(a[c]=this.H9(a[c].children,a[c]))};b.prototype.H9=function(a,c){for(var e=0;e<a.length;e++)!0===a[e].df&&(a[e]=this.H9(a[e].children,a[e]));return 1==a.length&&!0!==a[0].df?(a=a[0],a.level=c.level,a.parent=c.parent,a):c};b.prototype.sH=function(a){var c=this;this.Ud.ew||(f.v(this.Ns)?a.sort(function(e,g){var l=c.mL(e),m=c.mL(g);return l==m?e.caption.localeCompare(g.caption):m-l}):a.sort(function(e,g){return c.Ns(h.W.Mi.yV(e),h.W.Mi.yV(g),
"pivot")}))};b.prototype.mL=function(a){return!0===a.qj?0:f.model.B.C.Je?a.HG?-1:0:!0===a.df&&!0!==a.Yt?3:!0!==a.df&&!0!==a.rg?2:!0===a.df&&!0===a.Yt?1:0};b.prototype.S$=function(a){if(!this.Rn){for(var c=this.qb.indexOf(a)+1,e=0;e<a.children.length;e++)!0===a.children[e].zf&&this.S$(a.children[e]);this.qb.splice(c,a.children.length);a.zf=!1}};b.prototype.mba=function(a){if(!this.Rn){var c=this.qb.indexOf(a)+1;a.Ci&&f.v(this.Ns)||this.sH(a.children);f.Ha.insert(this.qb,a.children,c);a.zf=!0}};b.prototype.Lha=
function(a){a=this.Ud.Vj(a);return null!=a?a.uniqueName:""};b.prototype.DJa=function(a){a=this.Ud.Ee(a);return null!=a?a.uniqueName:""};b.prototype.Mg=function(a){for(var c=0;c<this.Le.length;c++)if(!this.Le[c].rg&&!this.Le[c].df&&this.Le[c].uniqueName==a)return this.Le[c]};b.prototype.$c=function(a){for(var c=0;c<this.Le.length;c++)if(this.Le[c].rg&&!this.Le[c].df&&this.Le[c].uniqueName==a)return this.Le[c]};b.prototype.Fba=function(a,c){return(void 0===c?0:c)?this.$c(a):this.Mg(a)};b.prototype.o1=
function(){return 0<this.measures.length};b.prototype.wL=function(){var a=new h.W.Toa;a.pages=this.pages.map(function(e){return h.W.cP.$R(e)});a.rows=this.rows.map(function(e){return h.W.cP.$R(e)});a.columns=this.columns.map(function(e){return h.W.cP.$R(e)});a.measures=this.measures.map(function(e){return h.W.cP.$R(e)});a.flatOrder=this.Lb?this.Lb.flatOrder:[];a.flatSort=this.Lb?this.Lb.flatSort:[];if(this.Lb){if(this.Lb.ic.Ff){var c=this.Lb.ic.La();void 0===a.vj&&(a.vj={});a.vj.row=c.sort}this.Lb.Sb.Ff&&
(c=this.Lb.Sb.La(),void 0===a.vj&&(a.vj={}),a.vj.column=c.sort)}return a};b.prototype.wT=function(a){return null==this.Lb?!0:this.eT(a.pages,this.Lb.pages.Ic())||this.eT(a.rows,this.Lb.rows.Ic())||this.eT(a.columns,this.Lb.columns.Ic())||this.eT(a.measures,this.Lb.ad())};b.prototype.eT=function(a,c){if(a.length!=c.length)return!0;for(var e=0;e<c.length;e++)if(a[e].uniqueName!=c[e].uniqueName||a[e].$!=c[e].$||a[e].ig!=c[e].ig||a[e].U0)return!0;return!1};b.prototype.R$=function(){if(!this.Rn){for(var a=
0;a<this.qb.length;a++)if(this.qb[a].df||this.qb[a].Yt||this.qb[a].Ci)this.qb[a].zf=!1;var c=[];for(a=0;a<this.qb.length;a++)0==this.qb[a].level&&c.push(this.qb[a]);this.qb.splice(0,this.qb.length);f.Ha.insert(this.qb,c,0)}};b.prototype.expandAll=function(){if(!this.Rn){this.R$();for(var a=0;a<this.qb.length;a++)(this.qb[a].df||this.qb[a].Ci)&&this.sqa(this.qb[a],a+1)}};b.prototype.sqa=function(a,c){a.zf=!0;null!=a.children&&0<a.children.length&&(this.sH(a.children),f.Ha.insert(this.qb,a.children,
c))};b.prototype.dC=function(){return null!==this.Am?this.Am.pages:null!=this.Lb?this.lR(this.Lb.pages):[]};b.prototype.vG=function(){return null!==this.Am?this.Am.rows:null!=this.Lb?this.lR(this.Lb.rows):[]};b.prototype.kG=function(){return null!==this.Am?this.Am.columns:null!=this.Lb?this.lR(this.Lb.columns):[]};b.prototype.ad=function(){return null!==this.Am?this.Am.measures:null!=this.Lb?h.W.Mi.vK(this.Lb.ad()):[]};b.prototype.dG=function(){return null!=this.Ud?this.lR(this.Ud.rc(!1),!0):[]};
b.prototype.Er=function(){return null!=this.Ud?h.W.Mi.vK(this.Ud.measures.Ic()):[]};b.prototype.lR=function(a,c){c=void 0===c?!1:c;for(var e=[],g=0;g<a.length;g++){var l=a.ea(g),m=this.Ud.Ee(l.uniqueName),n=new h.W.Mi;c||null==l.nc?(n.uniqueName=l.uniqueName,n.caption=l.caption,n.FK=l.wi.uniqueName,n.LF=l.wi.caption,n.Qc=l.Qc,n.qj=!1,n.Ci=l.qg&&c):(n.uniqueName=l.nc.uniqueName,n.caption=l.nc.caption,n.FK=l.wi.uniqueName,n.LF=l.wi.caption,n.zg=l.uniqueName,n.N0=l.caption,n.qj=!0,n.Ci=!1);n.dw=m?m.dw():
!1;n.description=l.description;e.push(n);if(l.qg&&c)for(m=0;m<l.ra.length;m++)if(0!=m){var p=l.ra.ea(m);n=new h.W.Mi;n.uniqueName=p.uniqueName;n.caption=p.caption;n.FK=l.wi.uniqueName;n.LF=l.wi.caption;n.Qc=l.Qc;n.zg=l.uniqueName;n.N0=l.caption;n.qj=!0;n.Ci=!1;n.dw=!1;n.description=p.description;e.push(n)}}return e};b.prototype.search=function(a){a=a.toLowerCase();if(this.ld!=a){this.ld=a;this.az=[];for(var c=this.Le.length,e=0;e<c;e++){var g=this.Le[e];g.df||g.rg&&this.Cy&&!g.Ka||!f.O.contains(g.caption,
a)||(g.ld=a,this.Ora(g,this.az),this.az.push(g))}}};b.prototype.Ora=function(a,c){if(a.parent&&0>c.indexOf(a.parent)){for(var e=[];null!=a.parent;)e.push(a.parent),a=a.parent;e=e.reverse();for(a=0;a<e.length;a++)0>c.indexOf(e[a])&&c.push(e[a])}};b.prototype.Lx=function(){this.ld="";this.az=null};b.prototype.nD=function(a){this.Lb=a};q.Object.defineProperties(b.prototype,{Cy:{configurable:!0,enumerable:!0,get:function(){var a=this.pn;return a==f.u.i.oa.xh&&!f.model.B.C.Je||a==f.u.i.oa.Pp&&!f.model.B.C.Je||
a==f.u.i.oa.JSON&&!f.model.B.C.Je||a==f.u.i.oa.Gf||a==f.u.i.oa.API}},iT:{configurable:!0,enumerable:!0,get:function(){for(var a=0;a<this.qb.length;a++)if((this.qb[a].df||this.qb[a].Yt||this.qb[a].Ci)&&!this.qb[a].zf)return!0;return!1}},Xca:{configurable:!0,enumerable:!0,get:function(){for(var a=0;a<this.qb.length;a++)if(this.qb[a].df||this.qb[a].Yt||this.qb[a].Ci)return!0;return!1}},wBa:{configurable:!0,enumerable:!0,get:function(){return f.model.Ta.U().Ga.fa.Ba!=f.u.i.oa.Nc}},Rn:{configurable:!0,
enumerable:!0,get:function(){return!f.ha(this.ld)}},vT:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.jha||this.Le&&50<this.Le.length}},sC:{configurable:!0,enumerable:!0,get:function(){return(!f.model.Ta.U().Ga.fa.Hc||f.model.Ta.U().Ga.fa.Ba===f.u.i.oa.API)&&f.model.B.C.eha||f.model.B.C.zv&&f.model.Ta.U().Ga.fa.Ba===f.u.i.oa.Nc}},ZS:{configurable:!0,enumerable:!0,get:function(){return this.sC&&!this.Wc.ob}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.Rn?this.az:
this.qb}},Wc:{configurable:!0,enumerable:!0,get:function(){return this.Ud}}});b.z_=!1;d.Q7=b})(h.Rs||(h.Rs={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){var e=y.Fc.call(this)||this;e.type="pivot";e.wJ=!1;e.Gx=function(g){return e.hu(g)};e.Hx=function(g){return e.iu(g)};e.Ix=function(){return e.mM()};e.model=new d.Q7;e.wJ=c;e.view=e.Fe?new d.hoa:new d.goa(e,a);e.view.N(y.da.CLOSED,function(g){return e.Da(g)});e.hd=[e.view.Uf,e.view.ef,e.view.Af,e.view.Ob];e.view.Ah&&e.view.Ah.N(A.sd.Xe,function(){return e.MC()});e.view.ze&&e.view.ze.N(A.sd.Xe,function(){return e.Sr()});null!=e.view.Nf&&
e.view.Nf.N(y.da.Qd,function(g){return e.W1(g)});e.view.ab&&(e.view.ab.F.N("click",function(g){return e.t2(g)}),e.view.ab.F.N("keydown",function(g){return e.u2(g)}),e.view.ab.Ar({Xl:function(g){return e.iEa(g)},e2:function(g,l){return e.cfa(g,l)},Wl:function(g,l){return e.cfa(g,l)},ml:function(g,l,m,n){return e.ml(g,l,m,n)},Fy:"li"}),e.view.ab.F.$k());a={Xl:function(g,l,m,n){return e.Xl(g,l,m,n)},Wl:function(g,l,m,n){return e.Wl(g,l,m,n)},ml:function(g,l,m,n){return e.ml(g,l,m,n)},Fy:"li",scroll:!0};
e.view.Uf&&(e.view.Uf.Ar(a),e.view.Uf.F.N("dblclick",function(g){return e.gU(g)}),e.view.Uf.F.N("keydown",function(g){return e.hU(g,e.view.Uf)}),e.view.Uf.F.$k());e.view.ef&&(e.view.ef.Ar(a),e.view.ef.F.N("dblclick",function(g){return e.gU(g)}),e.view.ef.F.N("keydown",function(g){return e.hU(g,e.view.ef)}),e.view.ef.F.$k());e.view.Af&&(e.view.Af.Ar(a),e.view.Af.F.N("dblclick",function(g){return e.gU(g)}),e.view.Af.F.N("keydown",function(g){return e.hU(g,e.view.Af)}),e.view.Af.F.$k());e.view.Ob&&(e.view.Ob.F.N("click",
function(g){return e.GEa(g)}),e.view.Ob.F.N("dblclick",function(g){return e.gU(g)}),e.view.Ob.F.N("keydown",function(g){return e.hU(g,e.view.Ob)}),e.view.Ob.Ar(a),e.view.Ob.F.$k());e.view.Vh&&e.view.Vh.N(A.sd.Xe,function(){return e.$T()});e.view.hB&&e.view.hB.N(A.sd.Xe,function(){return e.$T()});e.view.it&&e.view.it.N(A.sd.Xe,function(){return e.nDa()});e.view.Wd&&(e.view.Wd.VU(500),e.view.Wd.N(A.Pi.Qw,function(){return e.sM()}));e.view.ee&&(e.view.ee.N("click",function(){return e.Tr()}),e.view.ee.N("keydown",
function(g){return e.Ry(g,!1)}));e.view.Gi&&(e.view.Gi.N("click",function(){return e.Ur()}),e.view.Gi.N("keydown",function(g){return e.Ry(g,!0)}));return e}u(b,y.Fc);b.prototype.Sr=function(){this.Fe?f.Ug.instance.nK():this.view.close()};b.prototype.MC=function(){this.ae();this.view.close()};b.prototype.Ry=function(a,c){if(32===a.keyCode||13===a.keyCode)c?this.Ur():this.Tr()};b.prototype.Tr=function(){this.view.Ie.Y("fm-search-opened");this.view.Wd.F.focus()};b.prototype.Ur=function(){this.view.Ie.ud("fm-search-opened");
this.view.Wd.clear();this.view.ee.F.focus()};b.prototype.sM=function(){this.model.search(this.view.Wd.yi());this.view.ab.F.Ua("fm-searched",this.model.Rn);this.view.ab.Cf(this.model.Ma);this.Zm(this.view.ab);this.view.it&&this.view.it.isVisible(this.model.Xca&&!this.model.Rn)};b.prototype.ae=function(){var a=this.model.wL();this.model.wT(a)&&(a=f.u.I.Zq.tb(f.model.bb.SliceValueObject.tb(a.La()),this.model.Wc),this.Fe&&(a.M1=!1,f.Ug.instance.bD(),this.model.nD(a)),f.model.Ta.U().ae(a))};b.prototype.hu=
function(a){f.model.Ta.U().mb(k.Ka.yj.Az,this.Gx);this.model.hu(a.Nr);this.cm();this.Fe&&this.ae()};b.prototype.iu=function(a){f.model.Ta.U().mb(k.Ka.yj.Bz,this.Hx);this.model.iu(a.Nr);this.cm();this.Fe&&this.ae()};b.prototype.mM=function(){this.view.lN=!1;f.model.Ta.U().mb(k.Ka.yj.Cz,this.Ix);this.view.ab.focus({preventScroll:!0})};b.prototype.$T=function(){this.bH()};b.prototype.nDa=function(){this.model.iT?this.model.expandAll():this.model.R$();this.Zm(this.view.ab);this.view.Df()};b.prototype.gU=
function(a){var c=A.Aa.Pb(a.target).closest("ul");null!=c&&(c=this.Uv(c),a=A.Aa.Pb(a.target).closest("li"),null!=a&&(a=parseInt(a.attr("data-index")),this.LU(c,a)))};b.prototype.GEa=function(a){a=A.Aa.Pb(a.target);var c=a.closest("li");if(null!=c){c=parseInt(c.attr("data-index"));var e=this.model.measures[c];a.Lc("fm-aggr-display")?this.view.Nf.Xn(e,a,c):a.Lc("fm-calc-display")&&this.bH(e.uniqueName)}};b.prototype.W1=function(a){this.ez(a.data.RK,a.data.TY)};b.prototype.ez=function(a,c){a.$=c.$;a.caption=
f.model.B.C.iz?f.O.bind(c.zV,a.name):a.name;this.view.Ob.Kq(a);var e=this.model.Ma.find(function(g){return g.uniqueName===a.uniqueName});null!=e&&(this.model.Cy&&null!=e.Dg&&(e=e.Dg),e.$=a.$,e.caption=a.caption,this.view.ab.Kq(function(g){return g.uniqueName===e.uniqueName}));this.Fe&&this.ae()};b.prototype.bH=function(a){a=void 0===a?null:a;this.view.lN=!0;f.model.Ta.U().Da(new k.Ka.WV(a));f.model.Ta.U().N(k.Ka.yj.Az,this.Gx);f.model.Ta.U().N(k.Ka.yj.Cz,this.Ix);f.ha(a)||f.model.Ta.U().N(k.Ka.yj.Bz,
this.Hx)};b.prototype.my=function(a){for(var c=this,e=[],g={},l=0;l<a.Tc.length;g={xN:g.xN},l++)g.xN={caption:a.fK[l],$:a.Tc[l]},void 0!=a.vv&&(g.xN.zV=a.vv[l]),e.push({label:f.u.i.ca.jF(a.Tc[l]),isSelected:a.Tc[l]==a.$,handler:function(m){return function(){return c.ez(a,m.xN)}}(g)});return e};b.prototype.hU=function(a,c){var e=this;if(32===a.keyCode||13===a.keyCode){if(this.view.xi){var g=c.Mt();if(f.v(g))return;var l=[];!0!==g.data.yT&&l.push({label:f.model.A.j.lW,handler:function(){return e.sh(0,
g.data,g.index,c)}});0<g.index&&l.push({label:f.model.A.j.w6,handler:function(){return e.sh(4,g.data,g.index,c)}});g.index<c.uc().length-1&&l.push({label:f.model.A.j.r6,handler:function(){return e.sh(5,g.data,g.index,c)}});g.data.rg&&!g.data.Ka&&l.push({label:f.model.A.j.kW,submenu:this.my(g.data)});c!=this.view.ef&&this.Xt(g.data,c,this.view.ef)&&l.push({label:f.model.A.j.u6,handler:function(){return e.sh(6,g.data,g.index,c)}});c!=this.view.Af&&this.Xt(g.data,c,this.view.Af)&&l.push({label:f.model.A.j.s6,
handler:function(){return e.sh(7,g.data,g.index,c)}});c!=this.view.Uf&&this.Xt(g.data,c,this.view.Uf)&&l.push({label:f.model.A.j.t6,handler:function(){return e.sh(8,g.data,g.index,c)}});c!=this.view.Ob&&this.Xt(g.data,c,this.view.Ob)&&l.push({label:f.model.A.j.v6,handler:function(){return e.sh(9,g.data.Dg,g.index,c)}});g.data.Ka&&l.push({label:f.model.A.j.mW,handler:function(){return e.sh(10,g.data,g.index)},preventFocusRestore:!0});this.view.xi.Xn(this.view.F,l,g.element.Sf(),{top:10,left:10})}a.preventDefault()}};
b.prototype.u2=function(a){var c=this;if(32===a.keyCode||13===a.keyCode){if(this.view.xi){var e=this.view.ab.Mt();if(f.v(e))return;if(e.data.df){this.sh(2,e.data,e.index);return}var g=[];e.data.Ci&&g.push({label:e.data.zf?f.model.A.j.Kka:f.model.A.j.Lka,handler:function(){return c.sh(2,e.data,e.index)}});this.c1(e.data)&&g.push({label:f.model.A.j.lW,handler:function(){return c.sh(1,e.data,e.index)}});this.Xt(e.data,this.view.ab,this.view.ef)&&g.push({label:f.model.A.j.u6,handler:function(){return c.sh(6,
e.data,e.index,c.view.ab)}});this.Xt(e.data,this.view.ab,this.view.Af)&&g.push({label:f.model.A.j.s6,handler:function(){return c.sh(7,e.data,e.index,c.view.ab)}});this.Xt(e.data,this.view.ab,this.view.Uf)&&g.push({label:f.model.A.j.t6,handler:function(){return c.sh(8,e.data,e.index,c.view.ab)}});if(this.Xt(e.data,this.view.ab,this.view.Ob)){var l={label:f.model.A.j.v6,handler:function(){return c.sh(9,e.data.Dg,e.index,c.view.ab)}};e.data.Qda?g.splice(this.c1(e.data)?1:0,0,l):g.push(l)}e.data.Ka&&
g.push({label:f.model.A.j.mW,handler:function(){return c.sh(10,e.data,e.index)},preventFocusRestore:!0});this.view.xi.Xn(this.view.F,g,e.element.Sf(),{top:10,left:10})}a.preventDefault()}};b.prototype.sh=function(a,c,e,g){g=void 0===g?null:g;var l=void 0===l?null:l;1==a?(1==c.rd&&(this.model.Hi(c,!1),this.Ft(c)),null!=c.Dg&&1==c.Dg.rd&&(this.model.Hi(c.Dg,!1),this.Ft(c.Dg)),this.R4(this.view.ab,e),this.ms(),this.Fe&&this.ae()):0==a?(this.LU(g,e),g.gi(Math.min(e,g.uc().length-1))):6==a?(g==this.view.ab?
this.vx(g,this.view.ef,e,this.model.rows.length):this.Qr(g,this.view.ef,e,this.model.rows.length),g.gi(Math.min(e,g.uc().length-1))):7==a?(g==this.view.ab?this.vx(g,this.view.Af,e,this.model.columns.length):this.Qr(g,this.view.Af,e,this.model.columns.length),g.gi(Math.min(e,g.uc().length-1))):8==a?(g==this.view.ab?this.vx(g,this.view.Uf,e,this.model.pages.length):this.Qr(g,this.view.Uf,e,this.model.pages.length),g.gi(Math.min(e,g.uc().length-1))):9==a?(g==this.view.ab?this.vx(g,this.view.Ob,e,this.model.measures.length):
this.Qr(g,this.view.Ob,e,this.model.measures.length),g.gi(Math.min(e,g.uc().length-1))):4==a?(this.Qr(g,g,e,e-1),g.gi(e-1)):5==a?(this.Qr(g,g,e,e+2),g.gi(e+1)):2==a?(c.zf?this.model.S$(c):this.model.mba(c),this.Zm(this.view.ab),this.view.Df()):10==a?this.bH(c.uniqueName):11==a&&this.view.Nf.Xn(c,l.find(".fm-aggr-display"))};b.prototype.t2=function(a){var c=this.view.ab.MB(a.target);if(!f.v(c))if(a=A.Aa.Pb(a.target),a.Lc("fm-aggr-display"))this.view.Nf.Xn(c.data,a);else if(a.Lc("fm-calc-display"))this.sh(10,
c.data,c.index);else if(c.data.df||c.data.Ci&&!a.Lc("fm-moreicon-display"))this.sh(2,c.data,c.index);else{if(this.c1(c.data))1==c.data.rd&&(this.model.Hi(c.data,!1),this.Ft(c.data)),null!=c.data.Dg&&1==c.data.Dg.rd&&(this.model.Hi(c.data.Dg,!1),this.Ft(c.data.Dg));else if(c.data.rg&&c.data.dw){this.model.Hi(c.data,!0);a=[];for(var e in c.data)c.data[e]instanceof h.W.Mi&&a.push(e);e=x.Mc.Vi(c.data,a);this.model.measures.push(e);this.Zm(this.view.Ob)}else if(c.data.Dg&&c.data.dw&&c.data.Dg.type!=f.u.i.Ja.sc&&
c.data.Dg.type!=f.u.i.Ja.Oa){this.model.Hi(c.data.Dg,!0);a=[];for(e in c.data.Dg)c.data.Dg[e]instanceof h.W.Mi&&a.push(e);e=x.Mc.Vi(c.data.Dg,a);this.model.measures.push(e);this.Zm(this.view.Ob)}else{if(c.data.qj)for(c.data.parent.rd&&this.Ft(c.data.parent),e=0;e<c.data.parent.children.length;e++)a=c.data.parent.children[e],a.uniqueName!=c.data.uniqueName&&(a.rd&&this.Ft(a),a.rd=!1);this.model.Hi(c.data,!0);this.model.rows.push(c.data);this.Zm(this.view.ef)}this.R4(this.view.ab,c.index);this.ms();
this.Fe&&this.ae()}};b.prototype.R4=function(a,c){a.ls(c);c=a.uc()[c];null!=c.parent&&this.tN(a,c.parent);if(c.Ci)for(var e=0;e<c.children.length;e++)a.Kq(c.children[e]);if(c.qj)for(e=0;e<c.parent.children.length;e++)a.Kq(c.parent.children[e])};b.prototype.tN=function(a,c,e){a.Kq((void 0===e?null:e)||c);c.parent&&this.tN(a,c.parent);if(c.Ci)for(e=0;e<c.children.length;e++)a.Kq(c.children[e]);if(c.qj)for(e=0;e<c.parent.children.length;e++)a.Kq(c.parent.children[e])};b.prototype.qw=function(){return!0};
b.prototype.iEa=function(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.Uv(a.closest("ul"));a!=this.view.ab&&this.LU(a,c)}};b.prototype.cfa=function(a,c){a&&a.closest("ul")&&(a=this.Uv(a.closest("ul")),a!=this.view.ab&&(c&&c.Y("fm-drag-remove"),a.F.Lc("fm-droppable")?c&&c.Y("fm-droppable-valid"):c&&c.Y("fm-droppable-invalid")))};b.prototype.Wl=function(a,c,e,g){if(g instanceof MouseEvent){var l=A.Aa.Pb(g.target);g=g.clientY}else g=g.changedTouches[0],l=A.Aa.Pb(document.elementFromPoint(g.clientX,
g.clientY)),g=g.clientY;if(!l.Lc("fm-drop-indicator")&&(this.ql(),c&&(c.ud("fm-no-drop"),c.ud("fm-drag-remove")),a&&a.closest("ul"))){e instanceof A.hd.zh||(e=this.Uv(e));var m=this.Uv(a.closest("ul"));m.F.Lc("fm-droppable")&&(this.Xt(this.gca(a,m),m,e)?this.qD(l,g):c.Y("fm-no-drop"))}};b.prototype.c1=function(a){return a.rd||a.Dg&&a.Dg.rd};b.prototype.Xt=function(a,c,e){return a.yT&&e!=this.view.Af&&e!=this.view.ef||!1===a.dw&&e==this.view.Ob||0==this.model.Cy&&(e!=this.view.Ob&&(a.rg||a.Bg)||e==
this.view.Ob&&!a.rg&&!a.Bg)||a.Ka&&e!=this.view.Ob||a.children&&0<a.children.length&&e==this.view.Ob?!1:a.Ka&&e==this.view.Ob&&c==this.view.Ob?!0:a.Ka&&e==this.view.Ob?f.v(this.view.Ob.uc().find(function(g){return g.uniqueName===a.uniqueName})):c==this.view.ab&&null!=e.uc().find(function(g){return g.uniqueName===a.uniqueName})&&e!=this.view.Ob?!1:!0};b.prototype.gca=function(a,c){a=parseInt(a.attr("data-index"));return c.uc()[a]};b.prototype.ml=function(a,c){this.ql();c&&(c.ud("fm-no-drop"),c.ud("fm-drag-remove"));
if(a&&a.closest("ul")&&c){c.ud("fm-droppable-valid");c.ud("fm-droppable-invalid");var e=this.Uv(a.closest("ul"));a.Lc("fm-values")||e==this.view.ab||c.Y("fm-drag-remove")}};b.prototype.Xl=function(a,c){if(null!=this.od)if(a&&a.closest("ul")){c=c instanceof A.hd.zh?c:this.Uv(c);var e=this.Uv(a.closest("ul"));if(0==this.Xt(this.gca(a,e),e,c))this.ql();else{var g=c.uc().length;this.od.element.previousElementSibling?g=parseInt(this.od.element.previousElementSibling.getAttribute("data-index"))+1:this.od.element.nextElementSibling&&
(g=parseInt(this.od.element.nextElementSibling.getAttribute("data-index")));this.ql();a=parseInt(a.attr("data-index"));e==this.view.ab&&c!=this.view.ab?this.vx(e,c,a,g):this.Qr(e,c,a,g);a=c.F.element.scrollTop;this.mia();c.F.Dw(a);c.NM(g)}}else this.ql()};b.prototype.ju=function(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.Uv(a.closest("ul"));a!=this.view.ab&&this.LU(a,c)}};b.prototype.qD=function(a,c){var e=a.closest("li");null!=e?(this.od=this.Lv(),a=e.getBoundingClientRect(),
c>a.top+.75*a.height?e.after(this.od):e.before(this.od)):(c=a.closest("ul"),null!=c&&(this.od=this.Lv(),c.append(this.od)))};b.prototype.Lv=function(){return new A.Aa("div","fm-drop-indicator")};b.prototype.ql=function(){this.od&&(this.od.sg(!0),this.od=null)};b.prototype.Qr=function(a,c,e,g){var l=a.uc()[e];a==c?(a=c.uc(),e<g&&--g,a.splice(g,0,a.splice(e,1)[0])):(l=a.uc()[e],a.uc().splice(e,1),a.Lq(),c==this.view.Ob&&(this.model.Hi(l,!1),l=this.model.$c(this.model.DJa(l.qj?l.zg:l.uniqueName)),null!=
l.WS&&this.model.Hi(l.WS,!1)),a==this.view.Ob&&(-1==a.uc().findIndex(function(m){return m.uniqueName===l.uniqueName})&&this.model.Hi(l,!1),l=this.model.Mg(this.model.Lha(l.uniqueName)),null!=l.Dg&&this.model.Hi(l.Dg,!1)),null!=l&&(this.model.Hi(l,!0),this.Ft(l,null,!0),c.uc().splice(g,0,l)));this.Zm(c);this.ms();this.Fe&&this.ae()};b.prototype.vx=function(a,c,e,g){var l=a.uc()[e];if(l.qj){l.parent.rd&&this.Ft(l.parent);for(e=0;e<l.parent.children.length;e++){var m=l.parent.children[e];m.uniqueName!=
l.uniqueName&&(m.rd&&this.Ft(m),m.rd=!1)}this.tN(this.view.ab,l)}this.model.Cy&&c==this.view.Ob&&null!=l.Dg&&(l=l.Dg);l.rd&&!l.rg?(this.model.Hi(l,!1),this.Ft(l,a,!0),this.model.Hi(l,!0)):(this.model.Hi(l,!0),a=this.view.ab.uc().findIndex(function(p){return p.uniqueName===l.uniqueName}),this.R4(this.view.ab,a));if(this.model.Cy&&c==this.view.Ob&&l.rg){a=[];for(var n in l)l[n]instanceof h.W.Mi&&a.push(n);l=x.Mc.Vi(l,a)}c.uc().splice(g,0,l);this.Zm(c);this.ms();this.Fe&&this.ae()};b.prototype.LU=function(a,
c){if(!(a.uc().length<=c)){var e=a.uc()[c];if(!e.yT){a.uc().splice(c,1);this.Zm(a);if(!(e.rg&&-1<this.view.Ob.uc().findIndex(function(l){return l.uniqueName===e.uniqueName}))){a=this.model.Fba(e.uniqueName,e.rg);if(null!=a){this.model.Hi(a,!1);var g=null!=a.WS?a.WS:a;this.tN(this.view.ab,g,function(l){return l.uniqueName===g.uniqueName});a.qj&&(this.model.Hi(a.parent,!1),this.tN(this.view.ab,a.parent))}this.ms()}this.Fe&&this.ae()}}};b.prototype.Ft=function(a,c,e){c=void 0===c?null:c;e=void 0===e?
!1:e;for(var g=-1,l=0;l<this.hd.length;l++)if(this.hd[l]!=c&&(this.hd[l]!=this.view.Ob||!e))for(var m=!0;m||-1<g;)m=!1,g=this.hd[l].uc().findIndex(function(n){return n.uniqueName===a.uniqueName||n.zg===a.uniqueName}),-1==g&&(g=this.hd[l].uc().findIndex(function(n){return n.uniqueName===a.uniqueName||n.zg===a.uniqueName})),-1<g&&(this.hd[l].uc().splice(g,1),this.Zm(this.hd[l]))};b.prototype.Uv=function(a){return a.element==this.view.ab.F.element?this.view.ab:a.element==this.view.Uf.F.element?this.view.Uf:
a.element==this.view.ef.F.element?this.view.ef:a.element==this.view.Af.F.element?this.view.Af:a.element==this.view.Ob.F.element?this.view.Ob:null};b.prototype.update=function(a,c,e,g){(void 0===g||g)&&this.model.update(a,c,void 0===e?"":e,h.mo.PR);this.cm(!0)};b.prototype.ms=function(){this.view.Ah&&this.view.Ah.xp(this.model.o1())};b.prototype.cm=function(a){var c=this;a=void 0===a?!1:a;this.view.reset&&this.view.reset();this.view.Vh&&(this.view.Vh.isVisible(this.model.sC),this.view.Vh.xp(this.model.ZS));
this.view.hB&&(this.view.hB.isVisible(this.model.sC),this.view.hB.xp(this.model.ZS));this.view.ab&&this.view.ab.Cf(this.model.Ma,!1);this.view.Uf&&this.view.Uf.Cf(this.model.pages,!1);this.view.ef&&this.view.ef.Cf(this.model.rows,!1);this.view.Af&&this.view.Af.Cf(this.model.columns,!1);this.view.Ob&&this.view.Ob.Cf(this.model.measures,!1);this.view.it&&this.view.it.isVisible(this.model.Xca);this.view.Ie&&this.view.Ie.isVisible(this.model.vT);this.view.Wd&&(this.view.Wd.clear(!1),this.model.Lx());
this.view.Df();this.view.F.requestAnimationFrame(function(){c.mia();a&&f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.ZD))})};b.prototype.Zm=function(a){var c=this;a.Lq();var e={qw:function(l){return c.qw(l)},Bn:function(l){return c.view.Bn(l)}};x.Bd().Vl&&(e.JS=".fm-drag-handle");var g=a.F.find("li",!0);if(a==this.view.ab)for(a=0;a<g.length;a++)g[a].Lc("fm-folder")&&!g[a].Lc("fm-level-folder")||g[a].draggable(e);else for(a.Ar({Xl:function(l,m,n,p){return c.Xl(l,m,n,p)},Wl:function(l,m,n,p){return c.Wl(l,
m,n,p)},ml:function(l,m,n,p){return c.ml(l,m,n,p)},Fy:"li",scroll:!0}),e.ju=function(l){return c.ju(l)},a=0;a<g.length;a++)g[a].draggable(e)};b.prototype.mia=function(){try{this.ms(),this.Zm(this.view.ab),this.Zm(this.view.Uf),this.Zm(this.view.ef),this.Zm(this.view.Af),this.Zm(this.view.Ob)}catch(a){}};q.Object.defineProperties(b.prototype,{Fe:{configurable:!0,enumerable:!0,get:function(){return this.wJ}},iT:{configurable:!0,enumerable:!0,get:function(){return this.model.iT}}});d.P7=b})(h.Rs||(h.Rs=
{}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){var e=A.Vb.mh.call(this,c)||this;e.xD=0;e.controller=a;e.Y("fm-pivot-fields");e.te();e.F.$k();e.F.Fi({lV:[A.Fi.Ph.ji,A.Fi.Ph.bE,A.Fi.Ph.tE],jR:k.Hb.zb.F,WY:!0,resize:function(g){return e.uM(g)},complete:function(){return e.Go()}});return e}u(b,A.Vb.mh);b.prototype.uM=function(a){a.rD==A.Fi.Ph.bE||a.rD==A.Fi.Ph.tE?(this.tj(a.size.width+(a.size.width-a.c3.width)),this.Go()):a.rD==A.Fi.Ph.ji&&this.yp(a.size.height);this.eB()};b.prototype.te=
function(){var a=this,c=new A.Ca("div","fm-popup-header fm-ui-row");this.V(c);var e=new A.Ca("div","fm-ui-col fm-vam");c.V(e);this.jw=new A.Oc(f.model.A.j.Sw);this.jw.Y("fm-popup-title");e.V(this.jw);this.iw=new A.Oc(f.model.A.j.B6);this.iw.Y("fm-popup-subtitle");e.V(this.iw);e=new A.Ca("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");c.V(e);this.Vh=new A.Jf("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");this.Vh.Za(f.model.A.j.Qz);e.V(this.Vh);this.ze=new A.Jf;this.ze.Za(f.model.A.j.Jk);this.Ah=
new A.Jf("fm-ui-btn-dark");this.Ah.Za(f.model.A.j.Ow);x.Oi.wC||x.Oi.Qn?(e.V(this.ze),e.V(this.Ah)):(e.V(this.Ah),e.V(this.ze));c=new A.Ca("div","fm-popup-content");this.V(c);var g=new A.Ca("div","fm-ui-row");c.V(g);e=new A.Ca("div","fm-ui-col-3");g.V(e);var l=new A.Ca("div","fm-list-wrap fm-list-wrap-all");e.V(l);var m=new A.Ca("div","fm-list-header fm-list-header-wide");l.V(m);e=new A.Ca("div","fm-list-header-label-wrap");m.V(e);this.$L=new A.Oc(f.model.A.j.Hu);e.V(this.$L);this.it=new A.sd("fm-ui-link-btn fm-btn-collapse-expand-all");
this.it.ud("fm-ui-btn");this.it.Za(f.model.A.j.x6);e.V(this.it);this.Ie=new A.Ca("div","fm-search-wrap");m.V(this.Ie);this.ee=new A.Ca("a","fm-search-btn");this.ee.ue(0);this.ee.$j("button");this.Ie.V(this.ee);e=new A.Ca("span","fm-ui-icon fm-icon-act_search");this.ee.V(e);this.Wd=new A.Pi;this.Wd.Y("fm-search-inp");this.Ie.V(this.Wd);this.Gi=new A.Ca("span","fm-close-search fm-ui-icon fm-icon-act_close");this.Gi.ue(0);this.Gi.$j("button");this.Ie.V(this.Gi);m=new A.Ca("div","fm-list-content");l.V(m);
this.ab=new A.hd.zh;this.ab.ue();this.ab.Y("fm-lst-hierarchies");this.ab.Lh(function(n,p){return a.gD(n,p)});this.ab.dV(function(n){return n.caption});m.V(this.ab);e=new A.Ca("div","fm-ui-col-3");g.V(e);l=new A.Ca("div","fm-list-wrap fm-list-wrap-pages");e.V(l);m=new A.Ca("div","fm-list-header");l.V(m);this.bM=new A.Oc(f.model.A.j.Uq);m.V(this.bM);m=new A.Ca("div","fm-list-content");l.V(m);this.Uf=new A.hd.zh;this.Uf.ue();this.Uf.Y("fm-lst-pages");this.Uf.Lh(function(n,p){return a.Cr(n,p)});this.Uf.Xf("caption");
m.V(this.Uf);this.IT=new A.Oc(f.model.A.j.Rw);this.IT.Y("fm-prompt");this.IT.Cm();l.V(this.IT);l=new A.Ca("div","fm-list-wrap fm-list-wrap-rows");e.V(l);m=new A.Ca("div","fm-list-header");l.V(m);this.cM=new A.Oc(f.model.A.j.$D);m.V(this.cM);m=new A.Ca("div","fm-list-content");l.V(m);this.ef=new A.hd.zh;this.ef.ue();this.ef.Y("fm-lst-rows");this.ef.Lh(function(n,p){return a.Cr(n,p)});this.ef.Xf("caption");m.V(this.ef);this.JT=new A.Oc(f.model.A.j.Rw);this.JT.Y("fm-prompt");this.JT.Cm();l.V(this.JT);
e=new A.Ca("div","fm-ui-col-3");g.V(e);l=new A.Ca("div","fm-list-wrap fm-list-wrap-columns");e.V(l);m=new A.Ca("div","fm-list-header");l.V(m);this.ZL=new A.Oc(f.model.A.j.YD);m.V(this.ZL);m=new A.Ca("div","fm-list-content");l.V(m);this.Af=new A.hd.zh;this.Af.ue();this.Af.Y("fm-lst-columns");this.Af.Lh(function(n,p){return a.Cr(n,p)});this.Af.Xf("caption");m.V(this.Af);this.FT=new A.Oc(f.model.A.j.Rw);this.FT.Y("fm-prompt");this.FT.Cm();l.V(this.FT);l=new A.Ca("div","fm-list-wrap fm-list-wrap-measures");
e.V(l);m=new A.Ca("div","fm-list-header");l.V(m);this.aM=new A.Oc(f.model.A.j.Rz);m.V(this.aM);this.hB=new A.Jf("fm-btn-add-measure-2 fm-icon-act_calc");m.V(this.hB);m=new A.Ca("div","fm-list-content");l.V(m);this.Ob=new A.hd.zh;this.Ob.ue();this.Ob.Y("fm-lst-measures");this.Ob.Lh(function(n,p){return a.Cr(n,p)});this.Ob.Xf("caption");m.V(this.Ob);this.HT=new A.Oc(f.model.A.j.Rw);this.HT.Y("fm-prompt");this.HT.Cm();l.V(this.HT);this.Nf=new h.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();c.V(this.Nf);
this.xi=new A.No.wE(c.F);this.xi.$a();c.V(this.xi)};b.prototype.Df=function(){this.jw.Za(f.model.A.j.Sw);this.iw.Za(f.model.A.j.B6);this.ze.Za(f.model.A.j.Jk);this.Ah.Za(f.model.A.j.Ow);this.$L.Za(f.model.A.j.Hu);this.bM.Za(f.model.A.j.Uq);this.cM.Za(f.model.A.j.$D);this.ZL.Za(f.model.A.j.YD);this.aM.Za(f.model.A.j.Rz);this.Vh.Za(f.model.A.j.Qz);this.Vh.Mh(f.model.A.j.Qz);this.hB.Mh(f.model.A.j.Qz);this.IT.Za(f.model.A.j.Rw);this.JT.Za(f.model.A.j.Rw);this.FT.Za(f.model.A.j.Rw);this.HT.Za(f.model.A.j.Rw);
this.it.Za(this.controller.iT?f.model.A.j.Nka:f.model.A.j.x6);this.hc(f.model.A.j.Sw);this.jw.Cm();this.iw.Cm();this.ab.hc(f.model.A.j.Hu);this.Uf.hc(f.model.A.j.Uq);this.ef.hc(f.model.A.j.$D);this.Af.hc(f.model.A.j.YD);this.Ob.hc(f.model.A.j.Rz);this.ee.hc(f.model.A.j.$N);this.Wd.hc(f.model.A.j.$N);this.Gi.hc(f.model.A.j.A6)};b.prototype.Cr=function(a,c){var e=new h.Vf.qW;e.setData(a);e.am(c);return e};b.prototype.gD=function(a,c){a=new h.Vf.bP(a,c);a.am(c);return a};b.prototype.reset=function(){this.Ie.ud("fm-search-opened");
this.Wd.clear(!1)};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");c.Y("fm-draggable");c.Ua("fm-values",a.Lc("fm-values"));c.P("width",a.P("width"));c.P("position","absolute");c.P("z-index",100);c.attr("data-index",a.attr("data-index"));var e=new A.Aa("span","fm-label");e.text(a.text());c.V(e);c.V(new A.Aa("i","fm-drag-icon"));return c};b.prototype.eB=function(){A.Vb.mh.prototype.eB.call(this,!0)};d.goa=b})(h.Rs||(h.Rs={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||
(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Vb.ye.call(this)||this;a.xD=0;a.Y("fm-pivot-fields");a.Y("fm-instant-view");a.te();a.F.$k();return a}u(b,A.Vb.ye);b.prototype.te=function(){var a=this,c=new A.Ca("div","fm-popup-content");this.V(c);var e=new A.Ca("div","fm-list-wrap fm-list-wrap-all");c.V(e);var g=new A.Ca("div","fm-list-header fm-list-header-wide");e.V(g);var l=new A.Ca("div","fm-list-header-label-wrap");g.V(l);this.$L=new A.Oc(f.model.A.j.Hu);l.V(this.$L);this.Vh=
new A.Jf("fm-btn-add-measure");g.V(this.Vh);this.ze=new A.Jf("fm-btn-close-fields");g.V(this.ze);g=new A.Ca("div","fm-list-content");e.V(g);this.ab=new A.hd.zh;this.ab.Y("fm-lst-hierarchies");this.ab.ue();this.ab.Lh(function(m,n){return a.gD(m,n)});this.ab.Xf("caption");g.V(this.ab);l=new A.Ca("div","fm-ui-row");c.V(l);g=new A.Ca("div","fm-ui-col-2");l.V(g);e=new A.Ca("div","fm-list-wrap fm-list-wrap-pages");g.V(e);g=new A.Ca("div","fm-list-header");e.V(g);this.bM=new A.Oc(f.model.A.j.Uq);g.V(this.bM);
g=new A.Ca("div","fm-list-content");e.V(g);this.Uf=new A.hd.zh;this.Uf.Y("fm-lst-pages");this.Uf.ue();this.Uf.Lh(function(m,n){return a.Cr(m,n)});this.Uf.Xf("caption");g.V(this.Uf);g=new A.Ca("div","fm-ui-col-2");l.V(g);e=new A.Ca("div","fm-list-wrap fm-list-wrap-columns");g.V(e);g=new A.Ca("div","fm-list-header");e.V(g);this.ZL=new A.Oc(f.model.A.j.YD);g.V(this.ZL);g=new A.Ca("div","fm-list-content");e.V(g);this.Af=new A.hd.zh;this.Af.Y("fm-lst-columns");this.Af.ue();this.Af.Lh(function(m,n){return a.Cr(m,
n)});this.Af.Xf("caption");g.V(this.Af);l=new A.Ca("div","fm-ui-row");c.V(l);e=new A.Ca("div","fm-list-wrap fm-list-wrap-rows");l.V(e);g=new A.Ca("div","fm-list-header");e.V(g);this.cM=new A.Oc(f.model.A.j.$D);g.V(this.cM);g=new A.Ca("div","fm-list-content");e.V(g);this.ef=new A.hd.zh;this.ef.Y("fm-lst-rows");this.ef.ue();this.ef.Lh(function(m,n){return a.Cr(m,n)});this.ef.Xf("caption");g.V(this.ef);l=new A.Ca("div","fm-ui-row");c.V(l);e=new A.Ca("div","fm-list-wrap fm-list-wrap-measures");l.V(e);
g=new A.Ca("div","fm-list-header");e.V(g);this.aM=new A.Oc(f.model.A.j.Rz);g.V(this.aM);g=new A.Ca("div","fm-list-content");e.V(g);this.Ob=new A.hd.zh;this.Ob.Y("fm-lst-measures");this.Ob.ue();this.Ob.Lh(function(m,n){return a.Cr(m,n)});this.Ob.Xf("caption");g.V(this.Ob);this.Nf=new h.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();c.V(this.Nf);this.xi=new A.No.wE(c.F);this.xi.$a();c.V(this.xi)};b.prototype.Df=function(){this.$L.Za(f.model.A.j.Hu);this.bM.Za(f.model.A.j.Uq);this.cM.Za(f.model.A.j.$D);
this.ZL.Za(f.model.A.j.YD);this.aM.Za(f.model.A.j.Rz);this.Vh.Mh(f.model.A.j.Qz);this.hc(f.model.A.j.Sw);this.ab.hc(f.model.A.j.Hu);this.Uf.hc(f.model.A.j.Uq);this.ef.hc(f.model.A.j.$D);this.Af.hc(f.model.A.j.YD);this.Ob.hc(f.model.A.j.Rz);this.ze.hc(f.model.A.j.hI)};b.prototype.Cr=function(a,c){var e=new h.Vf.qW;e.setData(a);e.am(c);return e};b.prototype.gD=function(a,c){a=new h.Vf.bP(a,c);a.am(c);return a};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");
c.Y("fm-draggable");c.Ua("fm-values",a.Lc("fm-values"));c.P("width",a.P("width"));c.P("position","absolute");c.P("z-index",100);c.attr("data-index",a.attr("data-index"));var e=new A.Aa("span","fm-label");e.text(a.text());c.V(e);c.V(new A.Aa("i","fm-drag-icon"));return c};b.prototype.open=function(){this.show();this.Wa(y.da.OPENED)};b.prototype.close=function(){this.$a();this.Wa(y.da.CLOSED)};b.prototype.reset=function(){};d.hoa=b})(h.Rs||(h.Rs={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this)||this;b.YQ=function(){return b.tM()};b.Y("fm-fields-view-wrap");b.te();return b}u(d,A.Ca);d.prototype.te=function(){var b=this;this.Wr=new A.Jf("fm-btn-open-fields");this.Wr.Mh(f.model.A.j.hP);this.Wr.hc(f.model.A.j.ZD);this.Wr.N(A.sd.Xe,function(){return b.K2()});this.V(this.Wr)};d.prototype.updateLabels=function(){this.Wr.Mh(f.model.A.j.hP);this.Wr.hc(f.model.A.j.ZD)};d.prototype.open=function(b,a,c){c=void 0===c?"":c;!this.Fe||
this.oda||this.Eda||this.wda||f.v(this.AJ)?(this.controller&&this.controller.mb(y.da.CLOSED,this.YQ),this.close(),this.controller&&this.controller.N(y.da.CLOSED,this.YQ),this.F.Ua("fm-fields-opened",!0),this.F.Ua("fm-fields-instant",this.Fe),this.Fe&&this.F.yp(k.Hb.zb.op()),f.model.B.C.An=!0,this.controller=this.wya(),this.controller.update(b,a,c,this.eAa),this.controller.view.Y("fm-fields-view"),this.V(this.controller.view),this.isVisible()||this.show(),this.controller.view.open(),!this.controller.view.lN&&
this.controller.view.ab&&this.controller.view.ab.focus({preventScroll:!0}),k.Hb.zb.aG=this.Fe?this.controller.view.cf():0,this.kv=!0,this.AJ=f.u.Na.U().sa?f.u.Na.U().sa.clone():null,this.ub=f.u.Na.U().fa,this.Cqa=f.u.Na.U().I&&f.u.Na.U().I.ce,this.NE=f.model.B.C.oc,this.zqa=f.model.B.C.he==k.xd.Ki,this.NE&&f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.ZD))):this.F.yp(k.Hb.zb.op())};d.prototype.wya=function(){var b=this,a=null,c=f.model.B.C.oc&&f.model.B.C.he!=k.xd.Ki,e=k.Hb.zb.F;null==this.controller?
a=c?new h.flat.lO(e,this.Fe):new h.Rs.P7(e,this.Fe):!c||"flat"==this.controller.type&&this.controller.Fe==this.Fe?c||"pivot"==this.controller.type&&this.controller.Fe==this.Fe||(a=new h.Rs.P7(e,this.Fe)):a=new h.flat.lO(e,this.Fe);if(null==a)return this.controller;this.controller&&this.controller.Od();a.N(y.da.CLOSED,this.YQ);a.N(d.fI,function(g){return b.X1(g)});return a};d.prototype.X1=function(b){this.Da(b)};d.prototype.tM=function(){this.kv=void 0;this.ub=null;this.NE=void 0;this.controller.mb(y.da.CLOSED,
this.YQ);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.hI));f.model.B.C.U();f.model.B.C.IZ?this.show():this.$a();f.model.B.C.An=!1;this.Wa(y.da.CLOSED);this.F.Ua("fm-fields-opened",!1);this.F.yp("")};d.prototype.close=function(){this.controller&&this.controller.view.close()};d.prototype.K2=function(){this.Wa(d.ZN)};q.Object.defineProperties(d.prototype,{Fe:{configurable:!0,enumerable:!0,get:function(){return"right"==f.model.B.C.$F}},Eda:{configurable:!0,enumerable:!0,get:function(){return this.NE!=
f.model.B.C.oc||f.model.B.C.oc&&this.zqa!=(f.model.B.C.he==k.xd.Ki)}},oda:{configurable:!0,enumerable:!0,get:function(){return this.kv!=f.model.B.C.An}},wda:{configurable:!0,enumerable:!0,get:function(){return null==this.ub||null==f.u.Na.U().I||this.Cqa!=f.u.Na.U().I.ce||!this.ub.isEqual(f.u.Na.U().fa)}},ABa:{configurable:!0,enumerable:!0,get:function(){return null==f.u.Na.U().sa&&null!=this.AJ||null!=f.u.Na.U().sa&&null==this.AJ||f.u.Na.U().sa&&this.AJ&&!f.u.Na.U().sa.isEqual(this.AJ)}},eAa:{configurable:!0,
enumerable:!0,get:function(){return this.oda||this.wda||this.ABa||this.Eda}},Zt:{configurable:!0,enumerable:!0,get:function(){return this.kv}}});d.fI="EVENT_APPLY_SLICE";d.ZN="EVENT_OPEN";h.mo=d})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Vf.vo.call(this)||this;a.zK();return a}u(b,A.Vf.vo);b.prototype.zK=function(){null==this.bo&&(this.bo=new A.Aa("span","fm-text-display"))};b.prototype.PZ=function(){null==this.uv&&(this.uv=new A.Aa("span","fm-aggr-display"),this.uv.attr("title",f.model.A.j.m8),this.uv.jg("hidden","true"))};b.prototype.QZ=function(){null==this.wv&&(this.wv=new A.Aa("span","fm-calc-display"),this.wv.attr("title",f.model.A.j.k8),this.wv.jg("hidden",
"true"))};b.prototype.RZ=function(){null==this.Ov&&(this.Ov=new A.Aa("span","fm-drag-handle"),this.Ov.jg("hidden","true"))};b.prototype.y4=function(a,c){return null==a?a:a.replace(new RegExp("("+c.ld+")","i"),'<b class="fm-search-highlight">$&</b>')};b.prototype.gb=function(){var a=this.getData();this.F.empty();var c=null!=this.hw?(0,this.hw)(a):a.qj?a.N0+" / "+a[this.rq()]:a[this.rq()];this.bo.html(void 0!==a.ld?this.y4(c,a):c);this.bo.attr("title",c+(f.ha(a.description)?"":"\n"+a.description));
this.hc(c);this.F.append(this.bo);1==a.rg&&!a.Bg&&1==a.ul&&1<a.Tc.length&&f.model.B.C.ul&&(this.PZ(),this.F.append(this.uv));!0===a.rg&&!0===a.Ka&&(this.QZ(),this.F.append(this.wv));this.RZ();this.F.append(this.Ov);this.F.Ua("fm-measure",!0===a.rg);this.F.Ua("fm-values",!0===a.yT);this.F.Ua("fm-selected",!0===a.rd);this.F.Ua("fm-level",!0===a.qj)};d.qW=b})(h.Vf||(h.Vf={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=void 0===a?null:a;var c=A.Vf.vo.call(this)||this;c.data=a;c.UZ();c.zK();return c}u(b,A.Vf.vo);b.prototype.UZ=function(){null==this.oC&&(this.oC=new A.Aa("span","fm-icon-display"),this.oC.jg("hidden","true"))};b.prototype.iva=function(){null==this.Q1&&(this.Q1=new A.Aa("span","fm-moreicon-display"),this.Q1.jg("hidden","true"))};b.prototype.zK=function(){null==this.bo&&(this.bo=new A.Aa("span","fm-text-display"))};b.prototype.PZ=function(){null==
this.uv&&(this.uv=new A.Aa("span","fm-aggr-display"),this.uv.attr("title",f.model.A.j.m8),this.uv.jg("hidden","true"))};b.prototype.QZ=function(){null==this.wv&&(this.wv=new A.Aa("span","fm-calc-display"),this.wv.attr("title",f.model.A.j.k8),this.wv.jg("hidden","true"))};b.prototype.RZ=function(){null==this.Ov&&(this.Ov=new A.Aa("span","fm-drag-handle"),this.Ov.jg("hidden","true"))};b.prototype.y4=function(a,c){return null==a?a:a.replace(new RegExp("("+c.ld+")","i"),'<b class="fm-search-highlight">$&</b>')};
b.prototype.gb=function(){var a=this.getData();this.F.empty();this.F.append(this.oC);a.Ci&&(this.iva(),this.F.append(this.Q1));var c=this.J();this.bo.html(void 0!==a.ld?this.y4(c,a):c);this.bo.attr("title",this.J()+(f.ha(a.description)?"":"\n"+a.description));this.F.append(this.bo);!0===a.rg&&!a.Bg&&!0!==a.Ka&&1<a.Tc.length&&f.model.B.C.ul&&"right"!=f.model.B.C.$F&&(this.PZ(),this.F.append(this.uv));!0!==a.rg||!0!==a.Ka||!0!==a.ul&&!f.model.B.C.zv||(this.QZ(),this.F.append(this.wv));a.df||a.Yt?null!=
this.Ov&&this.Ov.remove():(this.RZ(),this.F.append(this.Ov));c=!0===a.rd||null!=a.Dg&&!0===a.Dg.rd;for(var e=1;10>e;e++)this.F.Ua("fm-level-"+e,a.level===e);this.F.Ua("fm-selected",!0===c);this.F.Ua("fm-checked",!0!==a.df&&!0!==a.qj&&!0===c||1==a.qj&&!0===c);this.F.Ua("fm-unchecked",!0!==a.df&&!0!==a.qj&&!0!==c||1==a.qj&&!0!==c);this.F.Ua("fm-measure",a.dw&&(!0===a.rg&&!0!==a.Bg||a.Qda||a.fw||a.NAa));this.F.Ua("fm-folder",!0===a.df||!0===a.Ci);this.F.Ua("fm-level-folder",!0===a.Ci);this.F.Ua("fm-level",
!0===a.qj);this.F.Ua("fm-measures-folder",!0===a.Yt&&!0!==a.Bg);this.F.Ua("fm-measures-calculated-folder",!0===a.Yt&&!0!==a.Bg&&!0===a.HG);this.F.Ua("fm-kpis-folder",!0===a.Bg&&!0===a.df);this.F.Ua("fm-kpi",!0===a.Bg&&!0!==a.df);this.F.Ua("fm-calculated",!0===a.Ka);this.F.Ua(k.X.W.ua.UV,(!0===a.df||!0===a.Ci)&&!0!==a.zf);this.F.Ua(k.X.W.ua.iW,(!0===a.df||!0===a.Ci)&&!0===a.zf);this.hc(this.J());this.A$(!0===c);!0!==a.df&&!0!==a.Ci||this.z$(!0===a.zf)};d.bP=b})(h.Vf||(h.Vf={}))})(k.Vc||(k.Vc={}))})(f.K||
(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){}function c(){}c.prototype.La=function(){var e={};f.v(this.pages)||(e.pages=this.pages.map(function(g){return g.La()}));f.v(this.rows)||(e.rows=this.rows.map(function(g){return g.La()}));f.v(this.columns)||(e.columns=this.columns.map(function(g){return g.La()}));f.v(this.measures)||(e.measures=this.measures.map(function(g){return g.La()}));f.v(this.flatOrder)||(e.flatOrder=this.flatOrder.slice());f.v(this.flatSort)||(e.flatSort=
this.flatSort.slice());f.v(this.vj)||(e.sorting=this.vj);return e};d.Toa=c;a.prototype.La=function(){var e={};f.v(this.uniqueName)||(e.uniqueName=this.uniqueName);f.v(this.$)||(e.aggregation=this.$);f.v(this.ig)||(e.activeLevelName=this.ig);return e};a.$R=function(e){var g=new a;g.uniqueName=e.uniqueName;e.rg&&(g.$=e.$,g.U0=e.U0);e.qj&&(g.ig=e.uniqueName,g.uniqueName=e.zg);return g};d.cP=a;b.vK=function(e){for(var g=[],l=0;l<e.length;l++)g.push(b.mR(e[l]));return g};b.yV=function(e){return e.Ci||
e.df?b.AJa(e):b.HJa(e)};b.AJa=function(e){var g={caption:e.caption,isFolder:!0};void 0!==e.HG&&e.HG&&(g.isCalculated=e.HG);void 0!==e.Yt&&(g.isMeasureFolder=e.Yt);f.v(e.parent)||(g.folder=void 0!==e.LF?e.LF:e.parent.caption);void 0!==e.Bg&&e.Bg&&(g.isKPI=e.Bg);return g};b.HJa=function(e){var g={caption:e.caption,isFolder:!1};void 0!==e.Ka&&e.Ka&&(g.isCalculated=e.Ka);void 0!==e.Bg&&e.Bg&&(g.isKPI=e.Bg);void 0!==e.yg&&void 0!==e.Qc&&e.Bg?g.folder=e.yg+"/"+e.Qc:void 0!==e.yg?g.folder=e.yg:void 0!==
e.Qc&&0<e.Qc.length?g.folder=e.Qc:!f.v(e.parent)&&e.parent.qj?g.folder=e.N0:f.v(e.parent)||(g.folder=e.LF);return g};b.mR=function(e){var g=e.Tc,l=new d.Mi;l.uniqueName=e.uniqueName;l.caption=e.caption;l.name=e.Yl;l.type=e.type;l.$=e.$;l.Ka=e.Ka;l.Qc=e.Qc;l.yg=e.yg;l.Lr=e.Lr;l.Bg=e.Bg;l.Tc=g;l.fK=f.u.i.ca.UY(g);l.vv=f.u.i.ca.q$(g);l.dw=e.dw();l.description=e.description;return l};d.Mi=b})(h.W||(h.W={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.Aoa=40;this.Ns=null;this.pn=a}b.prototype.o1=function(){return 0<this.Mza().length};b.prototype.Lx=function(){this.ld="";this.az=null};b.prototype.search=function(a){a=a.toLowerCase();if(this.ld!=a){this.ld=a;this.az=[];for(var c=0;c<this.qb.length;c++){var e=this.qb[c];f.O.contains(e.caption,a)&&(e.ld=this.ld,this.az.push(e))}}};b.prototype.r0=function(){for(var a=0,c=0;c<this.Ma.length;c++)this.Ma[c].rd&&a++;return 0==a?0:a==
this.Ma.length?1:-1};b.prototype.Mza=function(){var a=[];if(!f.v(this.qb))for(var c=0;c<this.qb.length;c++)this.qb[c].rd&&a.push(this.qb[c]);return a};b.prototype.sH=function(a,c){var e=this;if(0!==c.length||!f.v(this.Ns))if(f.v(this.Ns))a.sort(function(p,t){return e.Kaa(p,t,c)});else{var g=[],l=[];if(0<c.length){for(var m=0;m<a.length;m++)a[m].rd?g.push(a[m]):l.push(a[m]);g.sort(function(p,t){return e.Kaa(p,t,c)})}else l=a;var n=this.Nya();l.sort(function(p,t){return e.Ns(h.W.Mi.yV(p),h.W.Mi.yV(t),
n)});this.Ma=[].concat(ka(g),ka(l))}};b.prototype.Nya=function(){return this instanceof d.N6?"flat":"drillThrough"};b.prototype.Kaa=function(a,c,e){var g=this.mL(a,e);e=this.mL(c,e);return g==e?a.caption.localeCompare(c.caption):e-g};b.prototype.mL=function(a,c){return a.rd?c.length-c.indexOf(a.uniqueName):0};b.prototype.zk=function(a){for(var c=0;c<this.Ma.length;c++)this.Ma[c].rd=0<=a.indexOf(this.Ma[c].uniqueName)};b.prototype.Qya=function(a){return this.EJa(this.Ma,a)};b.prototype.EJa=function(a,
c){for(var e=[],g=0;g<c.length;g++){var l=a[c[g]];l.rd&&e.push({uniqueName:l.uniqueName,$:l.$})}return e};b.prototype.Nha=function(a,c){for(var e=[],g=0;g<c.length;g++){var l=a[c[g]];l.rd&&e.push(l)}return e};q.Object.defineProperties(b.prototype,{Wc:{configurable:!0,enumerable:!0,get:function(){return this.Ud},set:function(a){this.Ud=a}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.Rn?this.az:this.qb},set:function(a){this.qb=a}},vT:{configurable:!0,enumerable:!0,get:function(){return(f.model.B.C.jha||
this.Ma&&this.Ma.length>this.Aoa)&&this.pn!=f.u.i.oa.Nc}},Rn:{configurable:!0,enumerable:!0,get:function(){return!f.ha(this.ld)}},sC:{configurable:!0,enumerable:!0,get:function(){return(!f.model.Ta.U().Ga.fa.Hc||f.model.Ta.U().Ga.fa.Ba===f.u.i.oa.API)&&f.model.B.C.eha||f.model.B.C.zv&&f.model.Ta.U().Ga.fa.Ba===f.u.i.oa.Nc}},ZS:{configurable:!0,enumerable:!0,get:function(){return this.sC&&!this.Wc.ob}}});d.HN=b})(h.flat||(h.flat={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=d.HN.call(this,a)||this;a.Am=null;return a}u(b,d.HN);b.prototype.update=function(a,c,e){this.Ud=a;this.Lb=c;this.Ns=e;this.rN();this.Fp()};b.prototype.rN=function(){this.Ma=[];for(var a=this.Ud.rc(!1),c=0;c<a.length;c++){var e=a.ea(c),g=this.Ud.Ee(e.uniqueName);f.v(g)||g.type==f.u.i.Ja.sc||g.type==f.u.i.Ja.Oa||this.Lb.rows.Bb(g.uniqueName)||this.Lb.columns.Bb(g.uniqueName)||this.Lb.pages.Bb(g.uniqueName)?this.Ma.push(this.Cua(e)):
this.Ma.push(this.mR(g))}a=this.Ud.mt;for(c=0;c<a.length;c++)g=a.ea(c),this.Ma.push(this.mR(g))};b.prototype.Fp=function(){if(null!==this.Am)this.Ma=this.Am.hierarchies,this.tZ();else{var a=this.Lb.flatten(!0,!0).Ic(!0);this.zk(a);this.hIa(this.Lb.ad());this.sH(this.Ma,a)}};b.prototype.hIa=function(a){for(var c=0;c<a.length;c++){var e=this.Zwa(a[c].uniqueName);f.v(e)||(e.$=a[c].$)}};b.prototype.Zwa=function(a){for(var c=0;c<this.qb.length;c++)if(this.qb[c].uniqueName==a)return this.qb[c];return null};
b.prototype.mR=function(a){var c=new h.W.Mi;c.uniqueName=a.uniqueName;c.caption=a.Yl;c.$=a.$;c.Ka=a.Ka;a=a.Tc;c.Tc=a;c.fK=f.u.i.ca.UY(a);c.vv=f.u.i.ca.q$(a);c.rg=!0;c.ul=f.model.B.C.ul;return c};b.prototype.Cua=function(a){var c=new h.W.Mi;c.uniqueName=a.uniqueName;c.caption=a.caption;return c};b.prototype.wL=function(a){var c=this.Lb.clone(),e=this.Nha(this.Ma,a),g=e.map(function(r){return r.uniqueName}),l=c.flatten(!0,!0);a=c.ad();for(var m={},n=0;n<l.length;m={ED:m.ED},n++){var p=l.ea(n).uniqueName;
0>g.indexOf(p)&&(c.pages.Bb(p)&&c.pages.removeItem(p),c.columns.Bb(p)&&c.columns.removeItem(p),c.rows.Bb(p)&&c.rows.removeItem(p),m.ED=this.Ud.Ee(p),f.v(m.ED)&&(m.ED=this.Ud.mt.getItem(p)),f.v(m.ED)||(p=a.findIndex(function(r){return function(v){return v.uniqueName===r.ED.uniqueName}}(m)),-1<p&&a.splice(p,1)))}for(n=0;n<e.length;n++)if(p=e[n].uniqueName,!l.Bb(p)){m=this.Ud.Mg(p);var t=this.Ud.$c(p);f.v(t)||f.v(m)||t.type==f.u.i.Ja.sc||m.type==f.u.i.Gc.Oa?f.v(m)?this.Ud.mt.Bb(p)&&a.push(this.Ud.mt.getItem(p)):
c.rows.Pa(p,m):a.push(t)}for(n=0;n<e.length;n++)if(l=e[n],l.$)for(p=0;p<a.length;p++)a[p].uniqueName==l.uniqueName&&(a[p].$=l.$);c.flatOrder=g;for(e=0;e<a.length;e++)a[e].index=e;c.fz(a);return c};b.prototype.Er=function(){return null!=this.Ud?h.W.Mi.vK(this.Ud.measures.Ic()):[]};b.prototype.hu=function(a){if(null!=this.Lb&&null!=this.Ud){var c=this.Er().find(function(l){return l.uniqueName===a});if(null!=c){c.rd=!0;for(var e=0,g=0;g<this.Ma.length;g++)this.Ma[g].rd&&(e=g);this.Ma=[].concat(ka(this.Ma.slice(0,
e+1)),[c],ka(this.Ma.slice(e+1)))}}};b.prototype.iu=function(a){if(null!=this.Lb&&null!=this.Ud){var c=this.Ma.findIndex(function(e){return e.uniqueName===a});this.Ma.splice(c,1);this.u4()}};b.prototype.tZ=function(){this.Am=null};b.prototype.u4=function(){this.Am={hierarchies:this.Ma}};b.prototype.wT=function(a){var c=this.Lb.flatten(!0,!0).Ic();if(a.length!=c.length)return!0;for(var e=0;e<a.length;e++){var g=a[e],l=c[e];if(g.uniqueName!=l.uniqueName||void 0!=g.$&&void 0!=l.$&&g.$!=l.$)return!0}return!1};
b.prototype.nD=function(a){this.Lb=a};d.N6=b})(h.flat||(h.flat={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){var e=y.Fc.call(this)||this;e.type="flat";e.wJ=!1;e.Gx=function(g){return e.hu(g)};e.Hx=function(g){return e.iu(g)};e.Ix=function(){return e.mM()};e.Ab=e.sR(f.u.Na.U().fa.Ba);e.wJ=c;e.view=e.taa(a);e.view.N(y.da.CLOSED,function(g){return e.Da(g)});e.view.Ah&&e.view.Ah.N(A.sd.Xe,function(){return e.MC()});e.view.ze&&e.view.ze.N(A.sd.Xe,function(){return e.Sr()});null!=e.view.Nf&&e.view.Nf.N(y.da.Qd,function(g){return e.W1(g)});e.view.ab&&
(e.view.ab.F.N("click",function(g){return e.t2(g)}),e.view.ab.F.N("keydown",function(g){return e.u2(g)}),e.view.ab.F.Ar({Xl:function(g,l,m,n){return e.Xl(g,l,m,n)},Wl:function(g,l,m,n){return e.Wl(g,l,m,n)},ml:function(g,l,m,n){return e.ml(g,l,m,n)},Fy:"li",scroll:!0}));e.view.Pd&&e.view.Pd.N(y.da.Qd,function(){return e.W2()});e.view.Vh&&e.view.Vh.N(A.sd.Xe,function(){return e.$T()});e.view.Wd&&(e.view.Wd.VU(500),e.view.Wd.N(A.Pi.Qw,function(){return e.sM()}));e.view.ee&&(e.view.ee.N("click",function(){return e.Tr()}),
e.view.ee.N("keydown",function(g){return e.Ry(g,!1)}));e.view.Gi&&(e.view.Gi.N("click",function(){return e.Ur()}),e.view.Gi.N("keydown",function(g){return e.Ry(g,!0)}));return e}u(b,y.Fc);b.prototype.taa=function(a){return this.Fe?new d.Kla:new d.rW(a)};b.prototype.sR=function(a){return new d.N6(a)};b.prototype.Ry=function(a,c){if(32===a.keyCode||13===a.keyCode)c?this.Ur():this.Tr()};b.prototype.Tr=function(){this.view.Ie.Y("fm-search-opened-flat");this.view.Wd.F.focus()};b.prototype.Ur=function(){this.view.Ie.ud("fm-search-opened-flat");
this.view.Wd.clear();this.view.ee.F.focus()};b.prototype.Wl=function(a,c,e,g){g instanceof MouseEvent?(e=A.Aa.Pb(g.target),g=g.clientY):(g=g.changedTouches[0],e=A.Aa.Pb(document.elementFromPoint(g.clientX,g.clientY)),g=g.clientY);e.Lc("fm-drop-indicator")||(this.ql(),a&&a.closest("ul")&&(c&&c.Y("fm-droppable-valid"),a.Y("fm-drag-over"),this.qD(e,g)))};b.prototype.ml=function(a,c){this.ql();a&&a.closest("ul")&&(c&&c.ud("fm-droppable-valid"),c&&c.ud("fm-droppable-invalid"),a.ud("fm-drag-over"))};b.prototype.sM=
function(){this.Ab.search(this.view.Wd.yi());this.view.ab.F.Ua("fm-searched",this.Ab.Rn);this.view.ab.Cf(this.Ab.Ma);this.PK()};b.prototype.W1=function(a){this.ez(a.data.RK,a.data.TY)};b.prototype.ez=function(a,c){a.$=c.$;a.caption=a.name;this.view.ab.Kq(a);c=this.Ab.Ma.find(function(e){return e.uniqueName===a.uniqueName});null!=c&&(c.$=a.$,c.caption=a.caption);this.Fe&&this.ae()};b.prototype.Xl=function(a){if(null!=this.od)if(a&&a.closest("ul")){a=parseInt(a.attr("data-index"));var c=this.view.ab.uc()[a],
e=this.view.ab.uc().length;this.od.element.previousElementSibling?e=parseInt(this.od.element.previousElementSibling.getAttribute("data-index"))+1:this.od.element.nextElementSibling&&(e=parseInt(this.od.element.nextElementSibling.getAttribute("data-index")));this.ql();this.Qr(a,e);this.view.ab.gi(this.view.ab.uc().indexOf(c));this.view.ab.F.Dw(this.view.ab.F.element.scrollTop);this.view.ab.NM(e)}else this.ql()};b.prototype.Qr=function(a,c){if(a!=c){var e=this.view.ab.uc();a<c&&--c;e.splice(c,0,e.splice(a,
1)[0]);this.view.ab.Lq();this.ms();this.PK();this.Fe&&this.ae()}};b.prototype.Sr=function(){this.Fe?f.Ug.instance.nK():this.view.close()};b.prototype.MC=function(){this.view.Wd&&this.Ab.Rn&&(this.view.Wd.clear(!1),this.Ab.Lx(),this.view.ab.Cf(this.Ab.Ma),this.PK());this.ae();this.view.close()};b.prototype.W2=function(){for(var a=this.view.Pd.checked,c=this.Ab.Ma,e=0;e<c.length;e++)c[e].rd=a;this.view.ab.Lq();this.ms();this.PK();this.Fe&&this.ae()};b.prototype.u2=function(a){var c=this;if(32===a.keyCode||
13===a.keyCode){if(this.view.xi){var e=this.view.ab.Mt();if(f.v(e))return;var g=[];g.push({label:e.data.rd?f.model.A.j.lW:f.model.A.j.Mka,handler:function(){return c.sh(3,e.data,e.index)}});0<e.index&&g.push({label:f.model.A.j.w6,handler:function(){return c.sh(4,e.data,e.index)}});e.index<this.view.ab.uc().length-1&&g.push({label:f.model.A.j.r6,handler:function(){return c.sh(5,e.data,e.index)}});e.data.rg&&g.push({label:f.model.A.j.kW,submenu:this.my(e.data)});e.data.Ka&&g.push({label:f.model.A.j.mW,
handler:function(){return c.sh(10,e.data,e.index)}});this.view.xi.Xn(this.view.F,g,e.element.Sf(),{top:10,left:10})}a.preventDefault()}};b.prototype.my=function(a){for(var c=this,e=[],g={},l=0;l<a.Tc.length;g={yN:g.yN},l++)g.yN={caption:a.fK[l],$:a.Tc[l]},void 0!=a.vv&&(g.yN.zV=a.vv[l]),e.push({label:f.u.i.ca.jF(a.Tc[l]),isSelected:a.Tc[l]==a.$,handler:function(m){return function(){return c.ez(a,m.yN)}}(g)});return e};b.prototype.sh=function(a,c,e){3==a?(c.rd=!c.rd,this.view.ab&&this.view.ab.ls(e),
this.view.Pd&&this.view.Pd.jf(this.Ab.r0()),this.ms(),this.Fe&&this.ae()):4==a?(this.Qr(e,e-1),this.view.ab.gi(e-1)):5==a?(this.Qr(e,e+2),this.view.ab.gi(e+1)):10==a&&this.bH(c.uniqueName)};b.prototype.t2=function(a){var c=this.view.ab.MB(a.target);f.v(c)||(a=A.Aa.Pb(a.target),a.Lc("fm-aggr-display")?this.view.Nf.Xn(c.data,a):a.Lc("fm-calc-display")?this.sh(10,c.data,c.index):this.sh(3,c.data,c.index))};b.prototype.bH=function(a){a=void 0===a?null:a;this.view.lN=!0;f.model.Ta.U().Da(new k.Ka.WV(a));
f.model.Ta.U().N(k.Ka.yj.Cz,this.Ix);f.model.Ta.U().N(k.Ka.yj.Az,this.Gx);f.model.Ta.U().N(k.Ka.yj.Bz,this.Hx)};b.prototype.$T=function(){this.bH()};b.prototype.hu=function(a){f.model.Ta.U().mb(k.Ka.yj.Az,this.Gx);this.Ab.hu(a.Nr);this.cm();this.Fe&&this.ae()};b.prototype.iu=function(a){f.model.Ta.U().mb(k.Ka.yj.Bz,this.Hx);this.Ab.iu(a.Nr);this.cm();this.Fe&&this.ae()};b.prototype.mM=function(){this.view.lN=!1;f.model.Ta.U().mb(k.Ka.yj.Cz,this.Ix);this.view.ab.focus({preventScroll:!0})};b.prototype.cm=
function(){this.view.reset&&this.view.reset();this.view.Ie&&this.view.Ie.isVisible(this.Ab.vT);this.view.Wd&&(this.view.Wd.clear(!1),this.Ab.Lx());this.view.ab&&(this.view.ab.Cf(this.Ab.Ma),this.ms(),this.PK());this.view.Vh&&(this.view.Vh.isVisible(this.Ab.sC),this.view.Vh.xp(this.Ab.ZS))};b.prototype.PK=function(){var a=this,c={Bn:function(l){return a.view.Bn(l)}};x.Bd().Vl&&(c.JS=".fm-drag-handle");for(var e=this.view.ab.F.find("li",!0),g=0;g<e.length;g++)e[g].draggable(c)};b.prototype.update=function(a,
c){f.v(a)||f.v(c)||(this.Ab.update(a,c,h.mo.PR),this.cm(),this.view.Pd&&this.view.Pd.jf(this.Ab.r0()),this.view.Df())};b.prototype.ms=function(){this.view.Ah&&this.view.Ah.xp(this.Ab.o1())};b.prototype.ae=function(){for(var a=[],c=this.view.ab.F.find("li",!0),e=0;e<c.length;e++){var g=parseInt(c[e].attr("data-index"));a.push(g)}c=this.Ab.Qya(a);this.Ab.wT(c)&&(a=this.Ab.wL(a),this.Fe&&a instanceof f.u.I.Zq&&(a.M1=!1,f.Ug.instance.bD(),this.Ab.nD(a)),f.model.Ta.U().ae(a))};b.prototype.qD=function(a,
c){var e=a.closest("li");null!=e?(this.od=this.Lv(),a=e.getBoundingClientRect(),c>a.top+a.height/2?e.after(this.od):e.before(this.od)):(c=a.closest("ul"),null!=c&&(this.od=this.Lv(),c.append(this.od)))};b.prototype.Lv=function(){return new A.Aa("div","fm-drop-indicator")};b.prototype.ql=function(){this.od&&(this.od.sg(!0),this.od=null)};q.Object.defineProperties(b.prototype,{Fe:{configurable:!0,enumerable:!0,get:function(){return this.wJ}}});d.lO=b})(h.flat||(h.flat={}))})(k.Vc||(k.Vc={}))})(f.K||
(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=A.Vb.mh.call(this,a)||this;c.Y("fm-flat-fields");c.te();c.F.$k();c.F.Fi({lV:[A.Fi.Ph.ji],jR:k.Hb.zb.F,WY:!0,resize:function(e){return c.uM(e)},complete:function(){return c.Go()}});return c}u(b,A.Vb.mh);b.prototype.uM=function(a){a.rD==A.Fi.Ph.ji&&this.yp(a.size.height)};b.prototype.te=function(){var a=new A.Ca("div","fm-popup-header fm-ui-row");this.V(a);var c=new A.Ca("div","fm-ui-col fm-vam");a.V(c);this.jw=new A.Oc(f.model.A.j.Sw);
this.jw.Y("fm-popup-title");c.V(this.jw);this.iw=new A.Oc(f.model.A.j.y6);this.iw.Y("fm-popup-subtitle");c.V(this.iw);c=new A.Ca("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.V(c);this.Vh=new A.Jf("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");c.V(this.Vh);this.ze=new A.Jf;this.ze.Za(f.model.A.j.Jk);this.Ah=new A.Jf("fm-ui-btn-dark");this.Ah.Za(f.model.A.j.Ow);x.Oi.wC||x.Oi.Qn?(c.V(this.ze),c.V(this.Ah)):(c.V(this.Ah),c.V(this.ze));a=new A.Ca("div","fm-popup-content");this.V(a);c=new A.Ca("div",
"fm-list-wrap");a.V(c);var e=new A.Ca("div","fm-list-header");c.V(e);this.Pd=new A.$I;this.Pd.Y("fm-select-all-cbx");this.Pd.Za(f.model.A.j.Ju);e.V(this.Pd);this.Ie=new A.Ca("div","fm-search-wrap");e.V(this.Ie);this.ee=new A.Ca("a","fm-search-btn");this.ee.ue(0);this.ee.$j("button");this.Ie.V(this.ee);e=new A.Ca("span","fm-ui-icon fm-icon-act_search");this.ee.V(e);this.Wd=new A.Pi;this.Wd.Y("fm-search-inp-flat");this.Ie.V(this.Wd);this.Gi=new A.Ca("span","fm-close-search fm-ui-icon fm-icon-act_close");
this.Gi.ue(0);this.Gi.$j("button");this.Ie.V(this.Gi);e=new A.Ca("div","fm-list-content");c.V(e);this.ab=new A.hd.zh;this.ab.Y("fm-lst-hierarchies");this.ab.ue();this.ab.Lh(this.gD);this.ab.Xf("caption");e.V(this.ab);this.Nf=new h.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();a.V(this.Nf);this.xi=new A.No.wE(a.F);this.xi.$a();a.V(this.xi)};b.prototype.gD=function(a,c){var e=new h.Vf.bP(a,c);e.setData(a);e.am(c);return e};b.prototype.Df=function(){this.jw.Za(f.model.A.j.Sw);this.iw.Za(f.model.A.j.y6);
this.ze.Za(f.model.A.j.Jk);this.Ah.Za(f.model.A.j.Ow);this.Pd.Za(f.model.A.j.Ju);this.Vh.Mh(f.model.A.j.Qz);this.hc(f.model.A.j.Sw);this.jw.Cm();this.iw.Cm();this.ab.hc(f.model.A.j.Hu);this.ee.hc(f.model.A.j.$N);this.Wd.hc(f.model.A.j.$N);this.Gi.hc(f.model.A.j.A6)};b.prototype.reset=function(){this.Ie.ud("fm-search-opened-flat");this.Wd.clear(!1)};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");c.Y("fm-draggable");c.Ua("fm-values",a.Lc("fm-values"));c.P("width",
a.P("width"));c.P("position","absolute");c.P("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c};d.rW=b})(h.flat||(h.flat={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Vb.ye.call(this)||this;a.Y("fm-flat-fields");a.Y("fm-instant-view");a.te();return a}u(b,A.Vb.ye);b.prototype.te=function(){var a=new A.Ca("div","fm-popup-content");this.V(a);var c=new A.Ca("div","fm-list-wrap fm-list-wrap-all");a.V(c);var e=new A.Ca("div","fm-list-header");c.V(e);this.Pd=new A.$I;this.Pd.Y("fm-select-all-cbx");this.Pd.Za(f.model.A.j.Ju);e.V(this.Pd);this.Vh=new A.Jf("fm-btn-add-measure");e.V(this.Vh);this.ze=
new A.Jf("fm-btn-close-fields");e.V(this.ze);e=new A.Ca("div","fm-list-content");c.V(e);this.ab=new A.hd.zh;this.ab.Y("fm-lst-hierarchies");this.ab.ue();this.ab.Lh(this.gD);this.ab.Xf("caption");e.V(this.ab);this.Nf=new h.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();a.V(this.Nf);this.xi=new A.No.wE(a.F);this.xi.$a();a.V(this.xi)};b.prototype.gD=function(a,c){var e=new h.Vf.bP(a,c);e.setData(a);e.am(c);return e};b.prototype.Df=function(){this.Pd.Za(f.model.A.j.Ju);this.Vh.Mh(f.model.A.j.Qz);this.hc(f.model.A.j.Sw);
this.ab.hc(f.model.A.j.Hu);this.ze.hc(f.model.A.j.hI)};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");c.Y("fm-draggable");c.Ua("fm-values",a.Lc("fm-values"));c.P("width",a.P("width"));c.P("position","absolute");c.P("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c};b.prototype.open=function(){this.show();this.Wa(y.da.OPENED)};b.prototype.close=function(){this.$a();this.Wa(y.da.CLOSED)};d.Kla=b})(h.flat||(h.flat={}))})(k.Vc||
(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.mh.call(this,k.Hb.zb.F)||this;b.eKa=function(){return b.tM()};b.Y("fm-calculated-view");b.F.$k();b.QC.Y("fm-calculated-view-overlay");b.Ce=new h.Kja;b.Ce.N(y.da.x5,function(){return b.close()});b.V(b.Ce.view);b.N(y.da.CLOSED,b.eKa);return b}u(d,A.Vb.mh);d.prototype.tM=function(){f.model.Ta.U().Da(new k.Ka.Oja)};d.prototype.Xr=function(b){this.Ce.update(b);this.open();this.Ce.view.wq.focus({preventScroll:!0});this.Df()};d.prototype.Df=
function(){this.hc(f.model.A.j.RV)};d.prototype.close=function(){A.Vb.mh.prototype.close.call(this);this.Ce.clear()};d.WJ=!1;h.UD=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return y.da.call(this,e.Cz)||this}function b(g){g=void 0===g?null:g;var l=y.da.call(this,e.s5)||this;l.Nr=g;return l}function a(g){var l=y.da.call(this,e.Bz)||this;l.Nr=g;return l}function c(g){var l=y.da.call(this,e.Az)||this;l.Nr=g;return l}function e(){}e.Az="event_calculated_value_added";e.Bz="event_calculated_value_removed";e.s5="calculated_view_open";e.Cz="calculated_view_close";h.yj=e;u(c,y.da);h.Mja=c;u(a,y.da);h.Nja=a;u(b,y.da);h.WV=b;u(d,
y.da);h.Oja=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.$qa="- 2";this.ja=f.model.Ta.U();this.O_=[{name:"_addBtn",label:"+",Re:"CALCULATED_VIEW_FUNC_ADD",func:f.u.i.jc.AN},{name:"_subtractBtn",label:"-",Re:"CALCULATED_VIEW_FUNC_SUBTRACT",func:f.u.i.jc.aP},{name:"_multiplyBtn",label:"\u00d7",Re:"CALCULATED_VIEW_FUNC_MULTIPLY",func:f.u.i.jc.JO},{name:"_divideBtn",label:"\u00f7",Re:"CALCULATED_VIEW_FUNC_DIVIDE",func:f.u.i.jc.dI},{name:"_powerBtn",label:"^",Re:"CALCULATED_VIEW_FUNC_POWER",func:f.u.i.jc.TW},
{name:"_equalBtn",label:"=",Re:"CALCULATED_VIEW_FUNC_EQUAL",func:f.u.i.jc.EQUAL},{name:"_lessBtn",label:"<",Re:"CALCULATED_VIEW_FUNC_LESS",func:f.u.i.jc.LESS},{name:"_greaterBtn",label:">",Re:"CALCULATED_VIEW_FUNC_GREATER",func:f.u.i.jc.GREATER},{name:"_lessOrEqualBtn",label:"\u2264",Re:"CALCULATED_VIEW_FUNC_LESS_EQUAL",func:f.u.i.jc.d7},{name:"_greaterOrEqualBtn",label:"\u2265",Re:"CALCULATED_VIEW_FUNC_GREATER_EQUAL",func:f.u.i.jc.R6},{name:"_notEqualBtn",label:"!=",Re:"CALCULATED_VIEW_FUNC_NOT_EQUAL",
func:f.u.i.jc.If},{name:"_orBtn",label:"OR",Re:"CALCULATED_VIEW_FUNC_OR",func:f.u.i.jc.N7},{name:"_andBtn",label:"AND",Re:"CALCULATED_VIEW_FUNC_AND",func:f.u.i.jc.X4},{name:"_ifBtn",label:"IF",Re:"CALCULATED_VIEW_FUNC_IF",func:f.u.i.jc.oO},{name:"_absBtn",label:"ABS",Re:"CALCULATED_VIEW_FUNC_ABS",func:f.u.i.jc.KV},{name:"_roundBtn",label:"RD",Re:"CALCULATED_VIEW_FUNC_ROUND",func:f.u.i.jc.$W},{name:"_minBtn",label:"MIN",Re:"CALCULATED_VIEW_FUNC_MIN",func:f.u.i.jc.MIN},{name:"_maxBtn",label:"MAX",Re:"CALCULATED_VIEW_FUNC_MAX",
func:f.u.i.jc.MAX}]}d.prototype.search=function(b){b=b.toLowerCase().trim();if(this.ld!==b){this.ld=b;this.O3=[];for(var a=this.Le.length,c=0;c<a;c++){var e=this.Le[c];f.O.contains(e.caption,b)&&(e.ld=b,this.O3.push(e))}}};d.prototype.Lx=function(){this.ld="";this.O3=null};d.prototype.update=function(b){this.Le=k.Vc.W.Mi.vK(this.ja.ga.I.measures.Ic());this.Lx();f.ha(b)||(this.Ui=this.ja.ga.I.$c(b))};d.prototype.Er=function(){f.v(this.Le)&&(this.Le=k.Vc.W.Mi.vK(this.ja.ga.I.measures.Ic()));return this.Rn?
this.O3:this.Le};d.prototype.aD=function(b){h.UD.WJ=!0;this.ja.Xy(b.uniqueName);this.ja.Da(new h.Nja(b.uniqueName));f.pe(function(){h.UD.WJ=!1},1E3)};d.prototype.Hj=function(b,a,c){c=void 0===c?!1:c;a=(void 0===a?"":a).trim();a=0<a.length?a:this.aya();if(null!=this.Ui){if(this.Ui.caption!=a||this.Ui.qe!=b||this.Ui.gl!=c)var e={uniqueName:this.Ui.uniqueName,caption:a,formula:b,individual:c,type:this.Ui.type}}else{do a=null!=this.ja.ga.I.measures.getItem(a)?a+" "+this.$qa:a;while(null!=this.ja.ga.I.measures.getItem(a));
e={uniqueName:a,caption:a,formula:b,individual:c,type:f.u.i.Ja.fb}}null!=e&&(h.UD.WJ=!0,k.Vc.Rs.Q7.z_=!0,this.ja.ga.ct(e,!1),this.ja.Da(new h.Mja(e.uniqueName)),f.pe(function(){h.UD.WJ=!1},1E3))};d.prototype.aya=function(){for(var b=f.model.A.j.JN+" #",a=0,c=this.ja.ga.I.mt,e=new RegExp(f.model.A.j.JN+" #"),g=0;g<c.length;g++){var l=c.ea(g).uniqueName;e.test(l)&&(a=Math.max(a,Number(l.substr(f.model.A.j.JN.length+2))))}return b+(a+1)};q.Object.defineProperties(d.prototype,{Rn:{configurable:!0,enumerable:!0,
get:function(){return!f.ha(this.ld)}},ul:{configurable:!0,enumerable:!0,get:function(){return!this.ja.ga.fa.Hc||this.ja.ga.fa.Ba==f.u.i.oa.API}},c4:{configurable:!0,enumerable:!0,get:function(){return this.ja.ga.fa.Ba!=f.u.i.oa.API}}});h.Lja=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.E9=new RegExp(/(["])(?:(?=(\\?))\2.)*?\1/g);b.ja=new h.Lja;b.view=new h.Pja(b);b.view.xw&&b.view.xw.N(A.sd.Xe,function(){return b.hFa()});b.view.Wd&&(b.view.Wd.VU(500),b.view.Wd.N(A.Pi.Qw,function(){return b.sM()}));b.view.ee&&(b.view.ee.N("click",function(){return b.Tr()}),b.view.ee.N("keydown",function(g){return b.Ry(g,!1)}));b.view.Gi&&(b.view.Gi.N("click",function(){return b.Ur()}),b.view.Gi.N("keydown",function(g){return b.Ry(g,
!0)}));b.view.Ob&&(b.view.Ob.F.N("click",function(g){return b.DEa(g)}),b.view.Ob.F.N("dblclick",function(g){return b.EEa(g)}),b.view.Ob.F.N("keydown",function(g){return b.KEa(g)}),b.view.Ob.Lh(function(g,l){return b.Cr(g,l)}));b.view.Ch&&b.view.Ch.F.Ar({Xl:function(g){return b.FEa(g)},e2:function(){return b.afa()},Wl:function(){return b.afa()},ml:function(){return b.bEa()},Fy:"li"});b.view.Ah&&b.view.Ah.N(A.sd.Xe,function(){return b.MC()});b.view.ze&&b.view.ze.N(A.sd.Xe,function(){return b.Sr()});
b.view.Nf&&b.view.Nf.N(y.da.Qd,function(g){return b.VCa(g)});if(b.view.bS)for(var a={},c=ja(b.view.bS),e=c.next();!e.done;a={wN:a.wN},e=c.next())a.wN=e.value,a.wN.N(A.sd.Xe,function(g){return function(){return b.cEa(g.wN)}}(a));return b}u(d,y.Fc);d.prototype.sM=function(){this.ja.search(this.view.Wd.yi());this.view.Ob.F.Ua("fm-searched",this.ja.Rn);this.cia()};d.prototype.Tr=function(){this.view.Ie.Y("fm-search-opened");this.view.Wd.F.focus()};d.prototype.Ry=function(b,a){if(32===b.keyCode||13===
b.keyCode)a?this.Ur():this.Tr()};d.prototype.Ur=function(){this.view.Ie.ud("fm-search-opened");this.view.Wd.clear();this.view.ee.F.focus()};d.prototype.DEa=function(b){var a=A.Aa.Pb(b.target);a.Lc("fm-aggr-display")&&(b=this.view.Ob.MB(b.target),f.v(b)||this.view.Nf.Xn(b.data,a))};d.prototype.EEa=function(b){b=this.view.Ob.MB(b.target);f.v(b)||this.OY(b.data)};d.prototype.KEa=function(b){var a=this;if(32===b.keyCode||13===b.keyCode){if(this.view.xi){var c=this.view.Ob.Mt();if(f.v(c))return;var e=
[];e.push({label:f.model.A.j.Wia,handler:function(){a.OY(c.data)}});e.push({label:f.model.A.j.kW,submenu:this.my(c.data)});this.view.xi.Xn(this.view.content.F,e,c.element.Sf(),{top:10,left:10})}b.preventDefault()}};d.prototype.my=function(b){for(var a=this,c=[],e={},g=0;g<b.Tc.length;e={zN:e.zN},g++)e.zN={caption:b.fK[g],$:b.Tc[g]},void 0!=b.vv&&(e.zN.zV=b.vv[g]),c.push({label:f.u.i.ca.jF(b.Tc[g]),isSelected:b.Tc[g]==b.$,handler:function(l){return function(){return a.ez(b,l.zN)}}(e)});return c};d.prototype.afa=
function(){this.view.Ch.Y("fm-droppable-over")};d.prototype.bEa=function(){this.view.Ch.ud("fm-droppable-over")};d.prototype.FEa=function(b){this.view.Ch.ud("fm-droppable-over");b=parseInt(b.attr("data-index"));b=this.view.Ob.uc()[b];this.OY(b)};d.prototype.Cr=function(b,a){var c=new k.Vc.Vf.qW;c.setData(b);c.am(a);c.dV(function(e){return e.name+" ("+f.u.i.ca.jF(e.$)+")"});return c};d.prototype.update=function(b){this.ja.update(b);this.view.lB.isVisible(this.ja.c4);null!=this.ja.Ui?(this.view.F.Ua("fm-with-delete-btn",
!0),this.view.wq&&this.view.wq.cj(this.ja.Ui.caption),this.view.Ch&&(b=f.model.B.C.P4?this.rHa(this.ja.Ui.qe):this.ja.Ui.qe,this.view.Ch.cj(b)),this.view.xw&&this.view.xw.isVisible(!0)):(this.view.F.Ua("fm-with-delete-btn",!1),this.view.xw&&this.view.xw.isVisible(!1));this.view.lB&&this.ja.c4&&(this.view.lB.checked=this.ja.Ui?this.ja.Ui.gl:!1);this.view.Wd&&(this.view.Ie.ud("fm-search-opened"),this.view.Wd.clear(!1),this.ja.Lx());this.view.Df();this.cia()};d.prototype.cia=function(){for(var b=this,
a=this.ja.Er(),c=[],e=0;e<a.length;e++)null!=this.ja.Ui&&this.ja.Ui.uniqueName==a[e].uniqueName||a[e].Bg||(a[e].rg=!0,a[e].ul=this.ja.ul&&!a[e].Ka,c.push(a[e]));c.sort(this.yZ);if(this.view.Ob)for(this.view.Ob.Cf(c),a={Bn:function(g){return b.view.Bn(g)}},x.Bd().Vl&&(a.JS=".fm-drag-handle"),c=this.view.Ob.F.find("li",!0),e=0;e<c.length;e++)c[e].draggable(a)};d.prototype.clear=function(){this.view.wq&&this.view.wq.cj("");this.view.Ch&&this.view.Ch.cj("");this.ja.Ui=null};d.prototype.yZ=function(b,
a){return b.name>a.name?1:-1};d.prototype.hFa=function(){x.Bd().Vl?this.N2():this.TIa()};d.prototype.TIa=function(){var b=this;if(x.Oi.wC||x.Oi.Qn){var a=[f.model.A.j.m5,f.model.A.j.MD];var c=[null,function(){return b.N2()}]}else a=[f.model.A.j.MD,f.model.A.j.m5],c=[function(){return b.N2()},null];var e=f.model.Nb.valid(this.ja.Ui.caption)?this.ja.Ui.caption:f.model.Nb.validate(this.ja.Ui.caption);f.Va(f.model.A.j.Yia,f.O.bind(f.model.A.j.Zia,e),f.rb.Ik,a,c)};d.prototype.N2=function(){this.ja.aD(this.ja.Ui);
this.close()};d.prototype.OY=function(b){if(void 0!==b){var a=f.model.B.C.P4?b.name:b.uniqueName;b.$===f.u.i.ca.NONE||void 0===b.$?this.zy(f.O.bind('"{0}"',a)):this.zy(f.O.bind('{0}("{1}")',b.$,a))}};d.prototype.VCa=function(b){this.ez(b.data.RK,b.data.TY)};d.prototype.ez=function(b,a){b.$=a.$;b.caption=a.caption+" of "+b.name;this.view.Ob.Kq(b)};d.prototype.cEa=function(b){b=b.data.func;b==f.u.i.jc.oO||b==f.u.i.jc.KV||b==f.u.i.jc.MIN||b==f.u.i.jc.MAX||b==f.u.i.jc.nn||b==f.u.i.jc.$W?this.Qra(b):this.Nra(b)};
d.prototype.Sr=function(){this.close()};d.prototype.MC=function(){var b=f.model.B.C.P4?this.qHa(this.view.Ch.yi()):this.view.Ch.yi();if(f.model.B.C.GV){var a=x.mO.PQ(b,this.ja.Ui?this.ja.Ui.uniqueName:this.view.wq.yi());if(0==a.bw){f.Va(a.errorMessage);return}}a=this.ja.c4?this.view.lB.checked:!1;this.ja.Hj(b,this.view.wq.yi(),a);this.close()};d.prototype.qHa=function(b){b=b.slice(0);for(var a=b.match(this.E9),c=f.u.Na.U().I.measures,e,g,l=0;l<a.length;l++){e=a[l].substring(1,a[l].length-1);for(g=
0;g<c.length&&e!==c.ea(g).Yl;g++);g<c.length&&(b=b.replace('"'+e+'"','"'+c.ea(g).uniqueName+'"'))}return b};d.prototype.rHa=function(b){b=b.slice(0);for(var a=b.match(this.E9),c=f.u.Na.U().I.measures,e,g=0;g<a.length;g++)e=a[g].substring(1,a[g].length-1),b=b.replace('"'+e+'"','"'+c.getItem(e).Yl+'"');return b};d.prototype.close=function(){this.Wa(y.da.x5)};d.prototype.zy=function(b,a){a=void 0===a?0:a;var c=this.view.Ch.F.element.selectionStart,e=this.view.Ch.yi();-1==c&&(c=this.Kh);0==c||" "==e.charAt(c-
1)?(this.view.Ch.zy(b+" "),this.Kh=c+b.length+1):(this.view.Ch.zy(" "+b+" "),this.Kh=c+b.length+2);this.Kh-=a;this.view.Ch.jf(this.Kh)};d.prototype.Nra=function(b){this.zy(b)};d.prototype.Qra=function(b){var a=this.view.Ch.F.element.selectionStart,c=this.view.Ch.F.element.selectionEnd,e=this.view.Ch.yi();if(f.u.i.jc.oO==b)this.zy(b+"("+e.slice(a,c)+", , )",6);else{var g=f.u.i.jc.MIN==b||f.u.i.jc.MAX==b?",":"";this.zy(b+"("+e.slice(a,c)+g+")",2+g.length)}};q.Object.defineProperties(d.prototype,{O_:{configurable:!0,
enumerable:!0,get:function(){return this.ja.O_}}});h.Kja=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var a=A.Jf.call(this,"fm-ui-col-9 fm-calc-action")||this;a.ud("fm-ui-btn");return a}function b(a){var c=A.Ca.call(this)||this;c.controller=a;c.te();return c}u(b,A.Ca);b.prototype.te=function(){var a=this,c=new A.Ca("div","fm-popup-header fm-ui-row");this.V(c);var e=new A.Ca("div","fm-ui-col fm-vam");c.V(e);this.Dp=new A.Oc(f.model.A.j.RV);this.Dp.Y("fm-popup-title");e.V(this.Dp);this.uV=new A.Oc(f.model.A.j.r5);this.uV.Y("fm-popup-subtitle");e.V(this.uV);
e=new A.Ca("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");c.V(e);this.xw=new A.Jf("fm-ui-btn-light fm-icon-act_trash fm-remove-btn");this.xw.F.attr("title",f.model.A.j.t5);e.V(this.xw);this.ze=new A.Jf("fm-ui-btn");this.ze.Za(f.model.A.j.Jk);this.Ah=new A.Jf("fm-ui-btn-dark");this.Ah.Za(f.model.A.j.Ow);x.Oi.wC||x.Oi.Qn?(e.V(this.ze),e.V(this.Ah)):(e.V(this.Ah),e.V(this.ze));this.content=c=new A.Ca("div","fm-popup-content");this.V(c);this.wq=new A.Pi;this.wq.Y("fm-name-input");this.wq.lD(f.model.A.j.QV);
c.V(this.wq);e=new A.Ca("div","fm-list-header fm-list-header-wide");c.V(e);var g=new A.Ca("div","fm-list-header-label-wrap");e.V(g);var l=new A.Oc(f.model.A.j.Hu);g.V(l);this.Ie=new A.Ca("div","fm-search-wrap");e.V(this.Ie);this.ee=new A.Ca("a","fm-search-btn");this.ee.ue(0);this.ee.$j("button");this.Ie.V(this.ee);e=new A.Ca("span","fm-ui-icon fm-icon-act_search");this.ee.V(e);this.Wd=new A.Pi;this.Wd.Y("fm-search-inp");this.Ie.V(this.Wd);this.Gi=new A.Ca("span","fm-close-search fm-ui-icon fm-icon-act_close");
this.Gi.ue(0);this.Gi.$j("button");this.Ie.V(this.Gi);e=new A.Ca("div","fm-list-content");c.V(e);this.Ob=new A.hd.zh;this.Ob.Y("fm-lst-measures");this.Ob.ue();this.Ob.useCache=!1;this.Ob.Xf("caption");e.V(this.Ob);this.lB=new A.$I;this.lB.Za(f.model.A.j.p5);c.V(this.lB);this.Uba=new A.Ca("div","fm-ui-row fm-func-btn-group");c.V(this.Uba);this.bS=[];e=this.controller.O_;for(g=0;g<e.length;g++)l=new d,l.data=e[g],l.F.attr("data-index",g),l.Za(e[g].label),l.Mh(f.model.A.j[l.data.Re]),l.hc(f.model.A.j[l.data.Re]),
this.Uba.V(l),this.bS.push(l);e=new A.Ca("div","fm-formula-wrap");c.V(e);this.Ch=new A.Xu;this.Ch.Y("fm-formula-input");this.Ch.N(A.Pi.Qw,function(){return a.aEa()});e.V(this.Ch);this.GT=new A.Oc(f.model.A.j.q5);this.GT.Y("fm-prompt");e.V(this.GT);this.Nf=new k.Vc.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();c.V(this.Nf);this.xi=new A.No.wE(c.F);this.xi.$a();c.V(this.xi)};b.prototype.Df=function(){this.Dp.Za(f.model.A.j.RV);this.uV.Za(f.model.A.j.r5);this.Ah.Za(f.model.A.j.Ow);this.ze.Za(f.model.A.j.Jk);
this.wq.lD(f.model.A.j.QV);this.lB.Za(f.model.A.j.p5);this.GT.Za(f.model.A.j.q5);this.xw.Mh(f.model.A.j.t5);this.Dp.Cm();this.uV.Cm();this.wq.hc(f.model.A.j.QV);this.Ob.hc(f.model.A.j.Xia);this.Ch.hc(f.model.A.j.JN);for(var a=ja(this.bS),c=a.next();!c.done;c=a.next())c=c.value,c.Mh(f.model.A.j[c.data.Re]),c.hc(f.model.A.j[c.data.Re])};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");c.Y("fm-draggable");c.P("width",a.P("width"));c.P("position","absolute");c.P("z-index",
100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c};b.prototype.aEa=function(){this.GT.isVisible(0==this.Ch.yi().length)};h.Pja=b;u(d,A.Jf);h.FLa=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.mh.call(this,k.Hb.zb.F)||this;b.oi=0;b.ex=0;b.uo=0;b.Ye=0;b.dg=0;b.Y("fm-drillthrough-view");b.te();return b}u(d,A.Vb.mh);d.prototype.te=function(){var b=this;this.LE=new A.Vb.ye("fm-header-container");this.V(this.LE);this.mr=new A.Oc;this.mr.Y("fm-popup-title");this.mr.gV(!1);this.LE.V(this.mr);this.uA=new A.Jf;this.uA.Y("fm-ui-btn-close");this.uA.Mh(f.model.A.j.cpa);this.uA.N(A.sd.Xe,function(){return b.close()});this.LE.V(this.uA);
this.wA=new A.Vb.ye("fm-details-container");this.V(this.wA);this.fF=new A.Oc;this.fF.Y("fm-ui-label-light");this.wA.V(this.fF);this.dF=new A.Oc;this.dF.Y("fm-ui-label-light");this.wA.V(this.dF);this.eF=new A.Oc;this.eF.Y("fm-ui-label-light");this.wA.V(this.eF);this.GJ=new A.Vb.ye("fm-grid-container");this.V(this.GJ);this.ka=new k.X.sheet.flat.sI;this.ka.ue(-1);this.ka.il=!0;this.GJ.F.V(this.ka);this.K8=new h.qka(this);this.Ms=new h.pq.ska;this.GJ.V(this.Ms)};d.prototype.r3=function(){f.v(this.Ce)||
this.Ce.cm()};d.prototype.Xr=function(b,a,c,e,g,l){a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?null:e;g=void 0===g?null:g;l=void 0===l?null:l;this.G=void 0===b?null:b;f.v(this.Ce)&&(this.Ce=new h.rka(this));this.Ce.update(a,c,e,g,l)};d.prototype.close=function(){A.Vb.mh.prototype.close.call(this);this.Wa(k.X.mc.a6);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Z5))};d.prototype.Nj=function(b,a,c,e){c=void 0===c?null:c;e=void 0===e?null:e;f.v(this.Ce)||this.Ce.Nj(b,a,c,e)};d.prototype.dispose=
function(){this.G=null;this.ka&&(this.ka.dispose(),this.ka=null);this.Ce&&(this.Ce.dispose(),this.Ce=null);this.Ms.Od();this.Ms.sg();this.Ms=null;this.mr.sg();this.mr=null;this.fF.sg();this.fF=null;this.dF.sg();this.dF=null;this.eF.sg();this.eF=null;this.LE.sg();this.LE=null;this.GJ.sg();this.GJ=null;this.wA.sg();this.wA=null;this.uA.sg();this.uA.Od();this.uA=null;this.Od()};h.WD=d})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){var a=this;this.view=b;this.view.N(k.X.mc.a6,function(){return a.kDa()});this.view.ka.N(k.X.mc.GI,function(c){return a.JC(c)});this.view.ka.N(k.X.mc.X5,function(c){return a.eEa(c)});this.view.ka.N(k.X.mc.W5,function(c){return a.dEa(c)});this.view.Ms.N(k.Vc.mo.ZN,function(){return a.h2()});this.view.Ms.N(k.Vc.mo.fI,function(c){return a.g2(c)})}d.prototype.sR=function(b){return f.model.Ta.U().Ga.fa.Hc?f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.Nc?new h.Pr.PW(b):
f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.API?new h.Pr.Bia(b):f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.Zd?new h.Pr.zna(b):new h.Pr.RW(b):new h.us(b)};d.prototype.update=function(b,a,c,e,g){var l=this;b=void 0===b?null:b;a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?null:e;g=void 0===g?null:g;f.v(this.model)||this.model.dispose();this.model=this.sR(this.view.G);this.model.cell=g;this.model.N(h.us.YN,function(){return l.ip()});this.model.update(b,a,c,e);this.view.ka.slice=b;this.view.ka.WB=function(m,n){return l.model.getData(m,
n)};this.view.ka.MK.tga=function(m,n,p){return l.saveData(m,n,p)}};d.prototype.ip=function(){function b(){a.view.ka.mb(k.pi.fo,b);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.b6,a.model.cell))}var a=this;this.view.open();this.view.ka.N(k.pi.fo,b);this.cm()};d.prototype.cm=function(){this.model.s3();this.bia();this.view.Ms.isVisible(this.model.XAa);this.view.tj(k.Hb.tu-70);var b=k.Hb.zb.F.qd(!0)-this.view.wA.F.qd(!0)-this.view.LE.F.qd(!0)-30-this.view.F.padding.top-this.view.F.padding.bottom-40,a=this.view.cf()-
(parseInt(this.view.F.P("border-left-width"))+parseInt(this.view.F.P("border-right-width")));this.view.ka.tr();this.view.ka.resize(a,b);this.view.ka.width=a;this.view.ka.height=b;this.view.ka.Sba(1);this.view.ka.MK.Rga(f.model.B.C.TF&&!f.u.Na.U().fa.Hc);this.view.ka.Oga(this.model.FM,this.model.T$);this.view.ka.gb();this.view.Go()};d.prototype.bia=function(){this.view.mr.Za(f.model.A.j.mka);var b=this.model.Eza();this.view.fF.Za(b,!0);this.view.fF.isVisible(!f.ha(b));b=this.model.nya();this.view.dF.Za(b,
!0);this.view.dF.isVisible(!f.ha(b));b=this.model.dza();this.view.eF.Za(b,!0);this.view.eF.isVisible(!f.ha(b))};d.prototype.JC=function(b){f.model.Ta.U().Ga.fa.Hc||b.Wda||this.Sva(b.cell);b.cell&&b.cell.th&&b.cell.bB==k.X.W.Mp.UI&&(this.model.bN(b.cell),this.view.ka.clearData(),this.view.ka.gb())};d.prototype.Sva=function(b){if(f.model.Qa.U().G0(f.model.Qa.KN)&&!f.v(b)){var a=this.model.Cza(b.hb);f.v(a)||(b.il=!0,b=b.La(),b.rowData=a,f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.KN,b)))}};d.prototype.eEa=
function(b){this.model.Pv.lHa(b.data.index);this.model.Fp(this.model.Pv)};d.prototype.dEa=function(b){var a=b.data.zxa;b=b.data.BJa;b=Math.max(0,Math.min(b,this.model.Pv.selected.length));a<b&&b--;a!=b&&(this.model.Pv.MCa(a,b),this.model.Fp(this.model.Pv))};d.prototype.h2=function(){this.view.Ms.open(this.model.Pv)};d.prototype.g2=function(b){this.model.Fp(b.data)};d.prototype.Nj=function(b,a,c,e){var g=this.model.T$,l=0<this.model.FM?this.model.FM+1:0;b==f.model.vc.Li.Vz&&f.model.vc.n6.Wf(this.view,
a,e);b==f.model.vc.Li.Lu&&f.model.vc.m6.Wf(this.view,a,g,l,e);b==f.model.vc.Li.xh&&f.model.vc.l6.Wf(this.view,a,g,l,c);b==f.model.vc.Li.JSON&&f.model.vc.o6.Wf(this.view,a,g,l,c);b==f.model.vc.Li.dA&&f.model.vc.Ke.Wf(this.view,a,g,l,e);b==f.model.vc.Li.XD&&(a.qz=a.qz&&(f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.Nc||f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.Zd)&&f.model.B.C.Jq,f.model.vc.q6.Wf(this.view,a,g,l))};d.prototype.saveData=function(b,a,c){var e=this;this.timer&&this.timer.sl&&this.timer.stop();null==this.timer&&
(this.timer=new x.Es(1E3,1));this.timer.N(x.Ze.Ok,function(){return e.DFa()});this.timer.start();this.model.saveData(b,a,c);this.cm()};d.prototype.DFa=function(){this.bia();this.timer.stop()};d.prototype.kDa=function(){this.view.ka.MK.zha();f.model.B.C.TF&&this.model.XZ&&(this.model.XZ=!1,f.u.Na.U().refresh())};d.prototype.dispose=function(){this.timer&&(this.timer.stop(),this.timer=null);this.model&&(this.model.dispose(),this.model=null);this.view=null};h.rka=d})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||
(w={}));
(function(f){(function(k){(function(h){function d(b){var a=y.Fc.call(this)||this;a.jH=NaN;a.VG={};a.XZ=!1;a.cell=null;a.sm=b;return a}u(d,y.Fc);d.prototype.update=function(b,a,c,e){b=void 0===b?null:b;a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?null:e;this.Lb=b;this.fg=this.SZ(b);this.Qg=c;this.lg=a;this.measure=e;this.VG={};this.Jd()};d.prototype.Fp=function(b){this.fg=b;b=[];if(this.fg.Wn&&0<this.fg.Wn.length){for(var a=0;a<this.fg.Wn.length;a++){var c=this.fg.Wn[a].level;b.push(void 0===c?
this.fg.Wn[a].hierarchy:c)}this.Lb.drillThrough=b}else this.Lb.drillThrough=this.fg.selected;this.Jd()};d.prototype.SZ=function(b){for(var a=new h.pq.e6,c=this.Lb.Wc.rc(!1),e=0;e<c.length;e++){var g=c.ea(e);a.Pe.Pa(g.uniqueName,{uniqueName:g.uniqueName,caption:g.caption,ra:g.ra.Ic(!0).slice(1)})}e=null!=b.drillThrough&&0<b.drillThrough.length?b.drillThrough:null!=f.model.Ta.U().Ga.HS&&0<f.model.Ta.U().Ga.HS.length?f.model.Ta.U().Ga.HS:b.flatten().Ic(!0);for(c=0;c<e.length;c++)g=e[c],a.Pe.Bb(g)&&a.iF(g);
e={};for(c=0;c<b.Of.length;c++)g=b.Of[c],g.Ka&&0<g.Sd.length&&this.aca(g.Sd,e);for(var l in e)c=b.Wc.$c(l),f.v(c)||c.Ka||a.iF(l);return a};d.prototype.aca=function(b,a){if(void 0!==b[2]){var c,e;for(e in b[1]){var g=c=b[1][e];Array.isArray(c)&&(g=this.aca(c,a));if(g==f.u.i.UN.TN&&b[0]==f.u.i.jc.dI)break;void 0!==g&&(a[g]=1)}}};d.prototype.s3=function(){this.Jd(!1)};d.prototype.Jd=function(b){b=void 0===b?!0:b;this.data=this.sm.drillThrough(this.Qg,this.lg,this.measure);this.keys=this.data.shift();
var a=this.sm.Pt(this.Qg,this.lg);this.CCa(a);this.rZ();b&&this.Wa(d.YN)};d.prototype.CCa=function(b){this.jH=NaN;if(!f.v(b))if(Array.isArray(b)){this.jH=this.data[0].length;for(var a=0;a<b.length;a++)this.data[a].push(b[a])}else f.v(this.data[0])||(this.jH=this.data[0].length,this.data[0].push(b))};d.prototype.bN=function(b){var a=b.measure&&b.measure.type==f.u.i.Ja.sc?f.u.i.xa.bc:f.u.i.xa.Ec,c=!0;this.dR==b.hierarchy?(this.ui=this.ui==f.u.i.xa.bc?f.u.i.xa.Ec:this.ui==f.u.i.xa.Ec?f.u.i.xa.bc:a,c=
!0):(this.ui=a,c=!1);this.dR=b.hierarchy;var e=this.Aca(b.hierarchy),g=b.hierarchy.uj(b.hierarchy.yd,!0,this.ui);c?this.data.reverse():this.data.sort(function(l,m){return g.indexOf(l[e])-g.indexOf(m[e])})};d.prototype.Cza=function(b){if(f.v(this.data)||f.v(this.data[b-1]))return null;for(var a=[],c=0;c<this.Pv.Pe.length;c++){var e=this.Dza(b,this.fg.Pe.qh(c));a.push(null==e?e:e.La())}return a};d.prototype.Dza=function(b,a){a=this.Lb.Wc.Mg(a);if(null==a)return null;var c=this.Lb.Ee(a.uniqueName);return null==
c?null:this.qca(b,-1,a,c)};d.prototype.rZ=function(){this.ui=this.dR=null};d.prototype.Eza=function(){for(var b,a=[],c=0;c<this.Qg.length;c++){b=this.Lb.vb.ea(c);if(null==b)return null;b=b.va(this.Qg[c]);a.push(f.O.In(b.caption,!0,!0))}a=0<a.length?f.O.bind(f.model.A.j.lka,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi," ")};d.prototype.nya=function(){for(var b,a=[],c=0;c<this.lg.length;c++){b=this.Lb.Cb.ea(c);if(null==b)return null;b=b.va(this.lg[c]);a.push(f.O.In(b.caption,!0,!0))}a=0<a.length?
f.O.bind(f.model.A.j.kka,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi," ")};d.prototype.dza=function(){var b=this.measure.Dh(this.measure.uniqueName,this.measure.$).clone(),a=this.sm.Fa(this.Qg,this.lg,this.measure);this.measure.$==f.u.i.ca.li?b.pd="":f.u.i.ca.Tf(this.measure.$)?b.Tf=!0:f.u.i.ca.Xd(this.measure.$)&&(b.Xd=!0,b.pd="%");var c=f.u.i.Ja.Yb==this.measure.type&&f.u.i.ca.eo(this.measure.$),e=f.u.i.Ja.Oa==this.measure.type||f.u.i.Ja.Dc==this.measure.type;b=c?f.O.Hw(a,f.model.B.C.Cp):
e?this.cell.label:x.Tb.format(a,b);b=f.O.bind(f.model.A.j.nka,f.O.In(this.measure.label,!0,!0),b);return b=b.replace(/<br\s*[\/]?>/gi," ")};d.prototype.getData=function(b,a){return f.v(this.fg)?null:0==b?this.ZB(a):0>a||a>=this.fg.Wn.length?null:this.lG(b,a)};d.prototype.ZB=function(b){var a=new k.X.W.Yd;a.il=!0;a.th=!0;if(0>b||b>=this.fg.Wn.length)return null;var c=this.fg.Wn[b].level;b=this.Lb.Wc.Mg(this.fg.Wn[b].hierarchy);if(null==b)return null;void 0!==c&&(c=b.Gt(c),null!=c&&(a.label=b.caption+
" / "+c.caption));f.ha(a.label)&&(a.label=b.caption);a.hierarchy=b;a.measure=this.Lb.Wc.Ee(b.uniqueName);this.BBa&&(a.Wm=!0,a.hierarchy==this.dR&&(a.Yn=this.ui==f.u.i.xa.bc,a.Zn=this.ui==f.u.i.xa.Ec));return a};d.prototype.lG=function(b,a){if(f.v(this.data)||f.v(this.data[b-1]))return null;var c=this.Lb.Wc.Mg(this.fg.Wn[a].hierarchy);if(null==c)return null;var e=this.Lb.Ee(c.uniqueName);return null==e?null:this.qca(b,a,c,e)};d.prototype.qca=function(b,a,c,e){var g=new k.X.W.Yd;g.hb=b;g.lc=a;g.il=
!0;g.Jh=!0;var l=c.va(this.mza(b,this.Aca(c)));g.label=this.gza(l,-1!=a?this.fg.Wn[a].level:void 0);g.hierarchy=c;a=this.wS(e);e.type!=f.u.i.Ja.fb&&e.type!=f.u.i.Ja.Yb&&e.type!=f.u.i.Ja.Oa&&e.type!=f.u.i.Ja.Dc||f.v(l)||(g.value=l.ec,g.label=e.type==f.u.i.Ja.fb?x.Tb.format(g.value,a):l.caption,g.numeric=g.numeric||e.type!=f.u.i.Ja.fb?g.numeric:!0);f.ha(a.textAlign)||g.Sx({"text-align":a.textAlign});g.DM=this.Pt(b);g.measure=e;return g};d.prototype.Pt=function(b){return isNaN(this.jH)?void 0:this.data[b-
1][this.jH]};d.prototype.wS=function(b){f.v(this.VG[b.uniqueName])&&(this.VG[b.uniqueName]=b.Dh(b.uniqueName,b.$,!0).clone());return this.VG[b.uniqueName]};d.prototype.mza=function(b,a){for(;null==this.data[b-1][a];)a--;return this.data[b-1][a]};d.prototype.gza=function(b,a){var c="";if(f.v(b))return c;c=b.caption;if(!f.ha(a))for(;b;){if(b.level.uniqueName==a){c=b.caption;break}b=b.parent}return c};d.prototype.Aca=function(b){var a=this.keys.indexOf(b.uniqueName);2<b.ra.length&&(a=this.keys.indexOf(b.ra.qh(b.ra.length-
1)));return a};d.prototype.saveData=function(b,a,c){(a=this.getData(b,a))&&a.label!=c&&a.value!=c&&(c=this.sm.save(this.Qg,this.lg,a.hierarchy,c,b-1),this.data[b-1][this.keys.indexOf(a.hierarchy.uniqueName)]=c,this.XZ=!0)};d.prototype.dispose=function(){this.keys=this.data=this.measure=this.Qg=this.lg=this.fg=this.Lb=this.sm=null;this.jH=NaN;this.VG=this.ui=this.dR=null};q.Object.defineProperties(d.prototype,{Pv:{configurable:!0,enumerable:!0,get:function(){return this.fg}},T$:{configurable:!0,enumerable:!0,
get:function(){return f.v(this.Pv)?0:this.Pv.Wn.length}},FM:{configurable:!0,enumerable:!0,get:function(){return f.v(this.data)?0:this.data.length}},XAa:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.PIa?f.u.Na.U().fa.fT:!1}},BBa:{configurable:!0,enumerable:!0,get:function(){return!f.model.Ta.U().Ga.fa.Hc&&f.model.Ta.U().Ga.fa.Ba!=f.u.i.oa.Gf&&f.model.Ta.U().Ga.fa.Ba!=f.u.i.oa.API}}});d.YN="dataloaded";h.us=d})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return k.X.wW.apply(this,arguments)||this}u(d,k.X.wW);d.prototype.show=function(b,a){var c=[];c=this.wR(c,b?b.La():null,"drillthrough");return 0<c.length?(this.ER(c,a),!0):!1};h.qka=d})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.Gj=[];this.ym=[];this.Pe=new f.nb}b.prototype.iF=function(a){this.rd(a)||(this.Gj.push(a),this.ym=null)};b.prototype.lHa=function(a){this.OS?this.ym.splice(a,1):(this.Gj.splice(a,1),this.ym=null)};b.prototype.MCa=function(a,c){this.OS?f.Ha.S1(this.ym,a,c):(f.Ha.S1(this.Gj,a,c),this.ym=null)};b.prototype.rd=function(a){return this.OS?0<=this.ym.findIndex(function(c){return void 0!==c.level?c.level===a:c.hierarchy===a}):0<=this.Gj.indexOf(a)};
b.prototype.isEqual=function(a){if(f.v(a)||f.v(a.Gj)||this.Gj.length!=a.Gj.length)return!1;for(var c=0;c<this.Gj.length;c++)if(this.Gj[c]!=a.Gj[c])return!1;return!0};b.prototype.clone=function(){var a=new b;a.Pe=this.Pe.slice();a.Gj=a.Gj.slice();return a};q.Object.defineProperties(b.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){return this.Gj},set:function(a){f.v(a)||(this.Gj=a,this.ym=null)}},OS:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.ym)&&this.Gj.length!==
this.ym.length}},Wn:{configurable:!0,enumerable:!0,get:function(){if(!f.v(this.ym))return this.ym;this.ym=[];for(var a=0;a<this.Gj.length;a++){var c=this.Pe.getItem(this.Gj[a]);if(!f.v(c))if(c=c.ra,void 0!==c&&1<c.length)for(var e=0;e<c.length;e++)this.ym.push({hierarchy:this.Gj[a],level:c[e]});else this.ym.push({hierarchy:this.Gj[a]})}return this.ym}}});d.e6=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Ca.call(this)||this;a.Y("fm-fields-view-wrap");a.te();a.Ce=new d.tka(k.Hb.zb.F);a.Ce.N(y.da.CLOSED,function(){return a.tM()});a.Ce.N(k.Vc.mo.fI,function(c){return a.X1(c)});return a}u(b,A.Ca);b.prototype.te=function(){var a=this;this.Wr=new A.Jf("fm-btn-open-fields");this.Wr.Mh(f.model.A.j.hP);this.Wr.N(A.sd.Xe,function(){return a.K2()});this.V(this.Wr)};b.prototype.updateLabels=function(){this.Wr.Mh(f.model.A.j.hP)};b.prototype.open=
function(a){this.F.Ua("fm-fields-opened",!0);this.Ce.Fp(a);this.Ce.view.open();this.kv=!0};b.prototype.close=function(){this.Ce.view.$a();this.Ce.view.close()};b.prototype.K2=function(){this.Wa(k.Vc.mo.ZN)};b.prototype.tM=function(){this.kv=!1;this.F.Ua("fm-fields-opened",!1)};b.prototype.X1=function(a){this.Da(a)};q.Object.defineProperties(b.prototype,{Zt:{configurable:!0,enumerable:!0,get:function(){return this.kv}}});d.ska=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){return k.Vc.flat.HN.call(this,a)||this}u(b,k.Vc.flat.HN);b.prototype.Fp=function(a,c){this.Lb=a;this.Ns=c;this.Ma=a.Pe.Ic();this.zk(a.selected);this.sH(this.Ma,a.selected)};b.prototype.wL=function(a){var c=this.Lb.clone();c.selected=this.Nha(this.Ma,a).map(function(e){return e.uniqueName});return c};b.prototype.wT=function(){return!1};b.prototype.hu=function(){};b.prototype.iu=function(){};b.prototype.update=function(){};b.prototype.nD=
function(){};q.Object.defineProperties(b.prototype,{slice:{configurable:!0,enumerable:!0,get:function(){return this.Lb}},sC:{configurable:!0,enumerable:!0,get:function(){return!1}},vT:{configurable:!0,enumerable:!0,get:function(){return!1}}});d.uka=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=k.Vc.flat.rW.call(this,a)||this;a.Y("fm-fields-view");a.Y("fm-dt-fields");a.QC.Y("fm-dt-fields-overlay");k.Hb.zb.F.V(a.F);return a}u(b,k.Vc.flat.rW);d.vka=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=k.Vc.flat.lO.call(this,a,!1)||this;a.model=a.Ab;return a}u(b,k.Vc.flat.lO);b.prototype.sR=function(a){return new d.uka(a)};b.prototype.taa=function(a){return new d.vka(a)};b.prototype.Fp=function(a){this.model.Fp(a,k.Vc.mo.PR);this.cm();this.view.Pd&&this.view.Pd.jf(this.Ab.r0());this.view.Df()};b.prototype.ae=function(){for(var a=[],c=this.view.ab.F.find("li",!0),e=0;e<c.length;e++){var g=parseInt(c[e].attr("data-index"));a.push(g)}a=
this.Ab.wL(a);this.model.slice.isEqual(a)||this.Wa(k.Vc.mo.fI,this,a)};d.tka=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=h.us.call(this,a)||this;a.af=f.u.Na.U();return a}u(b,h.us);b.prototype.s3=function(){};b.prototype.Jd=function(){var a=this;this.data=[];this.af.drillThrough(this.Qg,this.lg,this.measure,function(c){return a.ip(c)},this.fg.selected)};b.prototype.ip=function(a){this.data=a;f.za(!1);this.Wa(h.us.YN)};b.prototype.kca=function(a){a=this.af.fa.mapping.Fa(a,"time_zone");return f.v(a)?f.model.B.C.Mj:(a=Number(a.split(":",1)[0]),isNaN(a)?
f.model.B.C.Mj:a)};b.prototype.lG=function(a,c){if(f.v(this.data)||f.v(this.data[a]))return null;var e=this.Lb.Wc.Mg(this.fg.selected[c]);if(null==e)return null;var g=this.Lb.Ee(e.uniqueName);if(null==g)return null;var l=this.data[a][c];g=this.wS(g);var m=new k.X.W.Yd;m.hb=a;m.lc=c;m.il=!0;m.Jh=!0;if(e.type==f.u.i.Gc.Op)"number"==typeof l&&(m.label=x.Tb.format(l,g),m.value=l);else if(e.type==f.u.i.Gc.Oa)if("number"===typeof l)a=this.jca(e.uniqueName),e=this.kca(e.uniqueName),m.label=f.O.Gw(l,a,e),
m.value=l;else if("string"!==typeof l||f.ha(l))m.label=f.model.A.j.cn;else try{var n=f.O.dT(l),p=this.jca(e.uniqueName),t=this.kca(e.uniqueName);m.label=n?x.gh.format(new Date(l),p,t):l}catch(r){m.label=l}else m.label=l;f.ha(g.textAlign)||m.Sx({"text-align":g.textAlign});return m};b.prototype.jca=function(a){return this.af.fa.mapping.Fa(a,"format",f.model.B.C.mq)};b.prototype.dispose=function(){h.us.prototype.dispose.call(this);this.af=null};q.Object.defineProperties(b.prototype,{FM:{configurable:!0,
enumerable:!0,get:function(){return f.v(this.data)?0:this.data.length-1}}});d.RW=b})(h.Pr||(h.Pr={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=h.us.call(this,a)||this;a.af=f.u.Na.U();return a}u(b,h.us);b.prototype.update=function(a,c,e,g){this.Lb=void 0===a?null:a;this.Qg=void 0===e?null:e;this.lg=void 0===c?null:c;this.measure=void 0===g?null:g;this.VG={};this.Jd()};b.prototype.s3=function(){};b.prototype.Jd=function(){var a=this;this.data=[];this.af.drillThrough(this.Qg,this.lg,this.measure,function(c){return a.ip(c)})};b.prototype.Fp=function(a){this.fg=a;this.wX={};
for(a=0;a<this.fg.selected.length;a++){var c=this.fg.selected[a];this.wX[c]=this.fg.Pe.indexOf(c)}this.Wa(h.us.YN)};b.prototype.ip=function(a){f.za(!1);this.data=a;this.Fp(this.SZ(this.Lb))};b.prototype.SZ=function(a){for(var c=new h.pq.e6,e=ja(this.data[0]),g=e.next();!g.done;g=e.next())g=g.value,g=g.replace("$",""),c.Pe.Pa(g,{uniqueName:g,caption:this.lza(g)});if(!f.model.B.C.dha&&this.af.fa.fT){g=a.flatten();e=c.Pe.Ic(!0);for(var l=0;l<g.length;l++){var m=g.ea(l);if(2>=m.ra.length)m=this.pCa(m,
e),f.ha(m)||c.iF(m);else if(null!=m.nc)m=m.ig.split("."),m=0<m.length?m[0]+"."+m[m.length-1]:null,-1<e.indexOf(m)&&c.iF(m);else{m=m.uniqueName.split(".");for(var n=0;n<e.length;n++)-1<(m[0]==e[n].split(".")[0]?n:-1)&&c.iF(e[n])}}for(g=0;g<a.Of.length;g++)l=this.qCa(a.Of[g],e),f.ha(l)||c.iF(l)}if(f.model.B.C.dha||0==c.selected.length)c.selected=c.Pe.Ic(!0);return c};b.prototype.lza=function(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};b.prototype.pCa=function(a,c){for(var e=0;e<c.length;e++){var g=c[e];if(g==a.uniqueName||0<=g.indexOf("["+a.caption+"]"))return g}return null};b.prototype.qCa=function(a,c){for(var e=0;e<c.length;e++){var g=c[e];if(g==a.uniqueName)return g;var l=a.uniqueName.split(".");if(g=="["+a.yg+"]."+l[l.length-1])return g;l=g;l="["==l.charAt(0)?l.substr(1):l;if(0<=a.uniqueName.indexOf(l))return g}return null};b.prototype.ZB=function(a){var c=new k.X.W.Yd;c.il=!0;c.th=!0;a=this.fg.selected[a];if(f.v(a))return null;
c.label=this.fg.Pe.getItem(a).caption;return c};b.prototype.lG=function(a,c){if(f.v(this.data)||f.v(this.data[a]))return null;var e=this.fg.selected[c],g="[Measures].["+this.fg.Pe.getItem(e).caption+"]",l=this.sm.measures.find(function(n){return n.uniqueName===g});e=this.data[a][this.wX[e]];var m=new k.X.W.Yd;m.hb=a;m.lc=c;m.il=!0;m.Jh=!0;f.model.B.C.Jq||null==l?"number"==typeof e?(m.label=f.model.B.C.Jq||null!=l?x.Tb.format(e):x.Tb.format(e,f.model.Zb.Ni.oS()),m.value=e):(m.label=e,null==l&&m.Sx({"text-align":"left"})):
(a=this.wS(l),m.label=x.Tb.format(e,a),m.value=e,""!=a.textAlign&&m.Sx({"text-align":a.textAlign}));return m};b.prototype.dispose=function(){h.us.prototype.dispose.call(this);this.wX=this.af=null};d.PW=b})(h.Pr||(h.Pr={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(){return d.PW.apply(this,arguments)||this}u(b,d.PW);d.zna=b})(h.Pr||(h.Pr={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return d.RW.apply(this,arguments)||this}u(b,d.RW);b.prototype.lG=function(a,c){if(f.v(this.data)||f.v(this.data[a]))return null;var e=this.fg.Wn[c].level,g=this.Lb.Wc.Mg(this.fg.Wn[c].hierarchy);if(null==g)return null;var l=e?g.Gt(e):null,m=this.Lb.Ee(g.uniqueName);if(null==m)return null;e=this.data[a][c];m=this.wS(m);var n=new k.X.W.Yd;n.hb=a;n.lc=c;n.il=!0;n.Jh=!0;g.type===f.u.i.Gc.Op?(n.label="number"===typeof e?x.Tb.format(e,m):
e,n.value=e):g.type===f.u.i.Gc.Oa||l&&f.u.i.eb.MAa(l.type)?"number"==typeof e?(l&&l.type===f.u.i.eb.Dc?(a=this.af.fa.mapping.Fa(g.uniqueName,"format",f.model.B.C.Yk),n.label=f.O.jN(e,a,f.model.B.C.Mj)):(a=this.af.fa.mapping.Fa(g.uniqueName,"format",f.model.B.C.mq),n.label=f.O.Gw(e,a,f.model.B.C.Mj)),n.value=e):"string"!==typeof e||f.ha(e)||"null"===e?n.label=!f.model.B.C.zr||null!==e&&"null"!==e?f.model.A.j.cn:f.model.A.j.XV:n.label=e:n.label=e;f.ha(m.textAlign)||n.Sx({"text-align":m.textAlign});
return n};d.Bia=b})(h.Pr||(h.Pr={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(a,c,e,g){var l=y.da.call(this,b.$V)||this;l.measure=a;l.lg=c;l.Qg=e;l.cell=g;return l}function d(a){var c=y.da.call(this,b.Uw)||this;c.hierarchy=a;return c}function b(){}b.Uw="FILTER_OPEN";b.oW="FILTER_CLOSE";b.$V="DRILL_THROUGH_OPEN";b.F5="CONTEXT_MENU_OPEN";b.YW="RENDER_COMPLETE";b.Nw="beforegriddraw";b.fo="aftergriddraw";k.pi=b;u(d,y.da);k.kO=d;u(h,y.da);k.d6=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.pr=[];this.wd=new f.aE;this.fe=[];this.ld="";this.re=!0}d.prototype.bV=function(b){this.Xg=b};d.prototype.$ga=function(b){this.$f=b;this.pr=this.Xg.uj(this.Xg.yd,!1,this.$f)};d.prototype.Ega=function(b,a){var c=this.Ge()?this.fe:this.pr;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)};d.prototype.select=function(b,a){this.re!=a?this.wd.add(b):this.wd.delete(b);this.wd.size!=this.pr.length||
this.Ge||this.selectAll(!this.re)};d.prototype.search=function(b,a){b=b.toLowerCase();this.ld===b?a(this.fe):(this.ld=b,0==this.ld.length?a():f.u.Na.U().vp(this.Xg,b,a))};d.prototype.Zga=function(b){null!=b?this.fe=b:this.fe.length=0};d.prototype.selectAll=function(b){if(this.Ge())for(var a=this.fe.length,c=0;c<a;c++)f.O.contains(this.Xg.va(this.fe[c]).caption,this.ld)&&this.select(this.fe[c],b);else this.re=b,this.wd.clear()};d.prototype.Cga=function(){};d.prototype.Yv=function(){var b=this.re||
this.Ge()?this.re&&this.Ge()?this.fe.length+this.Qua()-this.wd.size:this.re||0!=this.wd.size?this.pr.length==this.wd.size?this.fe.length:this.pr.length-this.wd.size:this.wd.size:this.wd.size;return 0<b?b:0};d.prototype.Qua=function(){for(var b=0,a=0;a<this.fe.length;a++)this.wd.has(this.fe[a])&&b++;return this.wd.size-b};d.prototype.sy=function(){if(this.Ge()){for(var b=0,a=0;a<this.fe.length;a++)!this.wd.has(this.fe[a])==this.re&&b++;return b}return this.Yv()};d.prototype.ZU=function(b){this.wd.clear();
var a=b.length;this.re=0==a;if(!this.re)for(var c=0;c<a;c++)this.wd.add(b[c])};d.prototype.qS=function(){var b=[];var a=this.Ge()&&this.re?this.fe:this.wd.Ic();var c=a.length;if(this.Ge()&&this.re)for(a=0;a<this.fe.length;a++)this.wd.has(this.fe[a])||b.push(this.fe[a]);else for(var e=0;e<c;e++)b[e]=a[e];a=this.Ge()&&this.re?!1:0==b.length?!1:this.re;return{items:b,eu:a}};d.prototype.cV=function(b){this.pr=b;this.ld="";this.fe.length=0};d.prototype.l0=function(b,a){var c=[],e=b,g=f.O.In(this.ld.replace(/[-\/\\^$*+?.()|[\]{}]/g,
"\\$&"),!0,!0);g=new RegExp("("+g+")","ig");for(var l=this.Ge()?this.fe:this.pr,m;e<a&&!(e>l.length-1);e++){var n=this.Xg.va(l[e]);m=f.O.In(n.caption,!0,!0);n={Xb:n,label:this.Ge()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,rd:(this.wd.has(n.ordinal)?!this.re:this.re)?1:0,lea:0,HHa:a-b<l.length-1?15:0,ah:n.ah&&"Others"!==m};c.push(n)}return c};d.prototype.getItem=function(b){return(this.Ge()?this.fe:this.pr)[b]};d.prototype.rG=function(){return this.Ge()?this.fe.length:this.pr.length};
d.prototype.getTotalLength=function(){return this.rG()};d.prototype.Ge=function(){return 0<this.ld.length};d.prototype.expand=function(){};d.prototype.collapse=function(){};h.QW=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.ed=[];this.wd=[];this.fe=[];this.Zj=[];this.hy=[];this.ld="";this.re=!0;this.$f=f.u.i.xa.Zc}d.prototype.bV=function(b){this.Xg=b;this.ed.length=0};d.prototype.$ga=function(b){this.$f=b;this.ed.length=0;this.R0(this.Xg.yd,-1)};d.prototype.cV=function(b){for(var a=0,c=b.length,e;a<c;a++)e=this.Xg.va(b[a]),e.Wb||(this.ed.push(b[a]),e.Pg&&e.children&&0<e.children.length&&(this.hy.push(b[a]),this.cV(this.$f===f.u.i.xa.Zc?e.children.slice():this.Xg.uj(e,
!1,this.$f))))};d.prototype.l0=function(b,a){for(var c=b,e=[],g,l=new RegExp("("+this.ld+")","i"),m=this.Ge()?this.fe:this.ed,n;c<a&&!(c>m.length-1);c++)g=this.Xg.va(m[c]),n=f.O.In(g.caption,!0,!0),g={Xb:g,lea:g.level.sb,label:this.Ge()?n.replace(l,'<b class="fm-search-highlight">$&</b>'):n,rd:this.rd(g),Ge:this.Ge(),zf:this.zf(g),HHa:a-b<m.length-1?17:0,ah:g.ah&&"Others"!=g.caption,LS:this.LS(g)},e.push(g);return e};d.prototype.getItem=function(b){return(this.Ge()?this.fe:this.ed)[b]};d.prototype.rd=
function(b){var a=(-1==this.wd.indexOf(b.ordinal)?this.re:!this.re)?1:0;0<this.wd.length&&-1!=this.Zj.indexOf(b.ordinal)&&(a=-1);return a};d.prototype.LS=function(b){return this.Ge()?!1:!b.Bi};d.prototype.zf=function(b){return this.Ge()||b.Bi?void 0:-1!=this.hy.indexOf(b.ordinal)?!0:!1};d.prototype.rG=function(){return this.Ge()?this.fe.length:this.ed.length};d.prototype.getTotalLength=function(){if(this.Ge()){var b=0;if(f.u.Na.U().fa.Hc)for(var a=this.fe.length,c=0;c<a;c++)f.O.contains(this.Xg.va(this.fe[c]).caption,
this.ld)||b++;return this.fe.length-b}return this.Xg?this.Xg.vi-1:0};d.prototype.Ega=function(b,a){var c=this.Ge()?this.fe:this.ed;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(this.Xg.va(c[b]),!0)};d.prototype.select=function(b,a){var c=this.wd.indexOf(b.ordinal);this.re!==a?(-1==c&&this.wd.push(b.ordinal),0<b.children.length&&this.FU(b)):(-1!=c&&this.wd.splice(c,1),0<b.children.length&&this.y3(b));a=this.Zj.indexOf(b.ordinal);-1!=a&&this.Zj.splice(a,1);
this.Dga(b);this.wd.length===this.Xg.vi-1&&(this.wd.length=0,this.Zj.length=0,this.re=!this.re)};d.prototype.Cga=function(b){-1==this.Zj.indexOf(b.ordinal)&&(-1==this.wd.indexOf(b.ordinal)?this.y3(b):this.FU(b))};d.prototype.Dga=function(b){var a=b.parent;if(a&&!a.Wb){b=this.wd.indexOf(a.ordinal);var c=this.Zj.indexOf(a.ordinal);var e=-1!=b;this.Yca(a,!1)?(this.Yca(a)?(-1==c&&this.Zj.push(a.ordinal),this.re&&e&&this.wd.splice(b,1)):(-1!=c&&this.Zj.splice(c,1),this.re&&!e&&this.wd.push(a.ordinal)),
!this.re&&e&&this.wd.splice(b,1)):(-1!=c&&this.Zj.splice(c,1),this.re&&e?this.wd.splice(b,1):this.re||e||this.wd.push(a.ordinal));this.Dga(a)}};d.prototype.Yca=function(b,a){a=void 0===a?!0:a;var c=0;b=b.children;for(var e=b.length;c<e;c++)if(-1==this.wd.indexOf(b[c])==this.re==a||-1!=this.Zj.indexOf(b[c]))return!0;return!1};d.prototype.FU=function(b){var a=0;b=b.children;for(var c=b.length;a<c;a++){var e=this.wd.indexOf(b[a]);var g=this.Zj.indexOf(b[a]);-1==e&&this.wd.push(b[a]);-1!=g&&this.Zj.splice(g,
1);e=this.Xg.va(b[a]);0<e.children.length&&this.FU(e)}};d.prototype.y3=function(b){for(var a=0,c,e,g=b.children,l=g.length;a<l;a++)e=this.Xg.va(g[a]),b=this.wd.indexOf(g[a]),c=this.Zj.indexOf(g[a]),-1!=b&&this.wd.splice(b,1),-1!=c&&this.Zj.splice(c,1),0<e.children.length&&this.y3(e)};d.prototype.selectAll=function(b){if(this.Ge())for(var a=this.fe.length,c,e=0;e<a;e++)c=this.Xg.va(this.fe[e]),f.O.contains(c.caption,this.ld)&&this.select(c,b);else this.re=b,this.wd.length=0,this.Zj.length=0};d.prototype.sy=
function(){if(this.Ge()){for(var b=0,a=this.fe.length,c,e=0;e<a;e++)c=this.Xg.va(this.fe[e]),f.O.contains(c.caption,this.ld)&&0>this.wd.indexOf(this.fe[e])==this.re&&b++;return b}return this.Yv()};d.prototype.Yv=function(){var b=this.re?this.Xg.vi-this.wd.length-this.Zj.length-1:this.wd.length;return 0>b?0:b};d.prototype.ZU=function(b){var a=b.length;this.wd.length=0;this.Zj.length=0;if(0==a)this.re=!0;else{this.re=!1;for(var c,e=0;e<a;e++)for(c=this.Xg.va(b[e]),this.wd.push(c.ordinal),0<c.children.length&&
this.FU(c);c.parent&&!c.parent.Wb;)c=c.parent,-1==this.Zj.indexOf(c.ordinal)&&this.Zj.push(c.ordinal)}};d.prototype.qS=function(){var b=[];var a=this.Ge()&&this.re?this.fe:this.wd;for(var c=0,e=a.length;c<e;c++){var g=this.Xg.va(a[c]);var l=g.parent;var m=-1;f.v(l)||(m=a.indexOf(l.ordinal));-1===m&&b.push(g.ordinal)}g=this.Ge()&&this.re?!1:0==b.length?!1:this.re;return{items:b,eu:g}};d.prototype.search=function(b,a){b=b.toLowerCase();this.ld===b?a():(this.ld=b,0==this.ld.length?a():f.u.Na.U().vp(this.Xg,
b,a))};d.prototype.Zga=function(b){null!=b?this.fe=b:this.fe.length=0};d.prototype.Ge=function(){return 0<this.ld.length};d.prototype.expand=function(b){-1==this.hy.indexOf(b.ordinal)&&this.hy.push(b.ordinal);this.iha(b,!0)};d.prototype.collapse=function(b){var a=this.hy.indexOf(b.ordinal);-1!=a&&this.hy.splice(a,1);this.iha(b,!1)};d.prototype.iha=function(b,a){var c=this.ed.indexOf(b.ordinal);a?this.R0(b,c):this.ed.splice(c+1,this.Eca(b))};d.prototype.R0=function(b,a){b=this.$f===f.u.i.xa.Zc?b.children:
this.Xg.uj(b,!1,this.$f);for(var c=b.length-1,e=a+1;-1<c;c--)a=this.Xg.va(b[c]),this.ed.splice(e,0,b[c]),-1<this.hy.indexOf(b[c])&&this.R0(a,e)};d.prototype.Eca=function(b){b=b.children;for(var a=b.length,c=a,e,g=0;g<a;g++)e=this.Xg.va(b[g]),-1<this.hy.indexOf(b[g])&&(c+=this.Eca(e));return c};h.yna=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.ye.call(this)||this;b.Y("fm-filter-view-content");b.te();return b}u(d,A.Vb.ye);d.prototype.te=function(){var b=new A.Ca("div","fm-popup-header fm-ui-row");this.V(b);var a=new A.Ca("div","fm-ui-col-2 fm-vam");b.V(a);this.Dp=new A.Oc;this.Dp.Y("fm-popup-title");a.V(this.Dp);a=new A.Ca("div","fm-ui-col fm-vam fm-ui-btns-row");b.V(a);this.pF=new A.Jf("fm-ui-btn");this.pF.Za(f.model.A.j.Jk);this.Co=new A.Jf("fm-ui-btn-dark");this.Co.Za(f.model.A.j.Ow);
x.Oi.wC||x.Oi.Qn?(a.V(this.pF),a.V(this.Co)):(a.V(this.Co),a.V(this.pF));b=new A.Ca("div","fm-ui-row fm-filter-sort-row");this.V(b);this.bG=new A.Ca("div","fm-ui-col fm-filters-col");b.V(this.bG);this.TR=new A.Oc;this.TR.Y("fm-filter-label");this.TR.Y("fm-ui-label-light");this.bG.V(this.TR);this.Se=new A.jP;this.Se.Y("fm-labels-filter-btn");this.Se.Y("fm-filter-btn");this.NG=new A.Oc;this.Se.V(this.NG);this.Se.F.V(new A.Aa("div","fm-ui-arrow-up",!1));this.bG.V(this.Se);this.lf=new A.jP;this.lf.Y("fm-values-filter-btn");
this.lf.Y("fm-filter-btn");this.nia=new A.Oc;this.lf.V(this.nia);this.lf.F.V(new A.Aa("div","fm-ui-arrow-up",!1));this.bG.V(this.lf);this.dm=new h.Dpa;this.dm.Y("fm-values-filter-view");this.dm.$a();this.V(this.dm);this.En=new h.pka;this.En.Y("fm-dates-filter-view");this.En.$a();this.V(this.En);this.ap=new h.nma;this.ap.Y("fm-labels-filter-view");this.ap.$a();this.V(this.ap);this.hp=new h.Ina;this.hp.Y("fm-numbers-filter-view");this.hp.$a();this.V(this.hp);this.Bp=new h.npa;this.Bp.Y("fm-time-filter-view");
this.Bp.$a();this.V(this.Bp);this.cN=new A.Ca("div","fm-ui-col fm-sort-col");b.V(this.cN);this.pV=new A.Oc;this.pV.Y("fm-sort-label");this.pV.Y("fm-ui-label-light");this.pV.Za(f.model.A.j.sla);this.cN.V(this.pV);b=new A.Ca("div","fm-sort-btns");this.cN.V(b);this.bk=new A.jP;this.bk.Y("fm-sort-btn");this.bk.Za(f.model.A.j.C6);b.V(this.bk);this.ck=new A.jP;this.ck.Y("fm-sort-btn");this.ck.Za(f.model.A.j.F6);b.V(this.ck);this.Rb=new h.xna;this.V(this.Rb)};d.prototype.Df=function(){this.Co.Za(f.model.A.j.Ow);
this.pF.Za(f.model.A.j.Jk);this.bk.Za(f.model.A.j.C6);this.bk.Mh(f.model.A.j.D6);this.bk.hc(f.model.A.j.D6);this.ck.Za(f.model.A.j.F6);this.ck.Mh(f.model.A.j.G6);this.ck.hc(f.model.A.j.G6);this.TR.Za(f.model.A.j.Sz);this.NG.Za(f.model.A.j.hO);this.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.hO);this.nia.Za(f.model.A.j.J6);this.lf.hc(f.model.A.j.Sz+" "+f.model.A.j.J6);this.En.Df();this.ap.Df();this.hp.Df();this.Bp.Df();this.dm.Df();this.Rb.Df()};q.Object.defineProperties(d.prototype,{Pd:{configurable:!0,
enumerable:!0,get:function(){return this.Rb.Pd}},zw:{configurable:!0,enumerable:!0,get:function(){return this.Rb.zw}},Um:{configurable:!0,enumerable:!0,get:function(){return this.Rb.Um}}});h.Ila=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vf.vo.call(this)||this;b.PBa=20;b.Bt=new A.nA;b.Bt.ud("fm-ui-toggle-btn");b.Bt.Y("fm-expand-toggle-btn");b.Bt.N(y.da.Qd,function(){return b.mDa()});b.Bt.ue(-1);b.F.append(b.Bt.F);b.hD=new A.$I;b.hD.F.w3("tabindex");b.hD.N(y.da.Qd,function(a){return b.V2(a.data)});b.F.append(b.hD.F);b.be("all");return b}u(d,A.Vf.vo);d.prototype.mDa=function(){var b=this.getData();b.zf=1==this.Bt.getSelection();this.F.Wa(h.rI.gI,this,b)};d.prototype.V2=function(b){var a=
this.getData();a.rd=this.hD.getSelection();this.F.Wa(h.rI.XO,this,{Xb:a,shiftKey:b.shiftKey})};d.prototype.gb=function(){if(this.Kr("data")){var b=this.getData();if(this.Bt&&this.hD&&b){this.F.P("padding-left","");var a=this.PBa*(b.lea-1);b.Ge||void 0!==b.zf||(a+=30);0<a&&this.F.P("padding-left",a+"px");b.LS?(this.Bt.show(),this.Bt.jf(b.zf)):this.Bt.$a();this.hD.Za(b[this.rq()],!0);this.hD.jf(b.rd)}}};h.Gla=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.hd.nX.call(this)||this;b.ET=null;b.ue();b.Lh(function(a,c){return b.Yya(a,c)});return b}u(d,A.hd.nX);d.prototype.Yya=function(b,a){var c=this,e=new h.Gla;e.setData(b);e.am(a);e.N(d.XO,function(g){return c.V2(g)});e.N(d.gI,function(g){return c.PDa(g)});return e};d.prototype.ku=function(b){A.hd.nX.prototype.ku.call(this,b);b=b.data.Fk;b.rd=1==b.rd?0:1;this.H4(b)};d.prototype.V2=function(b){this.H4(b.data.Xb,b.data.shiftKey)};d.prototype.H4=
function(b,a){1==b.rd&&(void 0===a?0:a)&&this.ET&&this.Og().Ega(this.ET.Xb,b.Xb);this.DIa(b,1==b.rd);this.Da(new y.da(d.XO,this))};d.prototype.PDa=function(b){this.Tha(b.data)};d.prototype.Tha=function(b){var a=this;b.zf?0===b.Xb.children.length||b.Xb.yf?f.model.Ta.U().ga.Uj(b.Xb.hierarchy,b.Xb,function(){return a.rj(b)}):this.rj(b):(this.Og().collapse(b.Xb),this.be("data"),this.Da(new y.da(d.gI,this)))};d.prototype.rj=function(b){f.za(!1);this.Og().Cga(b.Xb);this.Og().expand(b.Xb);this.be("data");
this.Da(new y.da(d.gI,this))};d.prototype.Og=function(){return this.Owa};d.prototype.X3=function(b){this.Owa=b};d.prototype.qS=function(){return this.Og().qS()};d.prototype.ZU=function(b){this.Og().ZU(b);this.be("data")};d.prototype.sy=function(){return this.Og().sy()};d.prototype.Yv=function(){return this.Og().Yv()};d.prototype.getTotalLength=function(){return this.Og().rG()};d.prototype.GS=function(){return this.Og().getTotalLength()};d.prototype.DIa=function(b,a){this.Og()instanceof h.QW?this.Og().select(b.Xb.ordinal,
a):this.Og().select(b.Xb,a);this.ET=a?b:null;this.be("data")};d.prototype.selectAll=function(b){this.Og().selectAll(b);this.ET=null;this.be("data")};d.prototype.search=function(b,a){var c=this;this.Og().search(b,function(e){c.Og().Zga(e);c.be("data");a()});this.F.Ua("fm-is-searched",this.Ge())};d.prototype.Ge=function(){return this.Og().Ge()};d.prototype.bV=function(b){this.Og().bV(b)};d.prototype.sort=function(b){b!==this.Og().$f&&(this.Og().$ga(b),this.be("data"))};d.XO="_";d.gI="__";h.rI=d})(k.filter||
(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){if(null!=d.instance)throw"FilterModel is singleton!";this.fp=f.model.Ta.U()}d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.dispose=function(){d.instance=null};d.prototype.update=function(b){this.measures=[];for(var a=this.fp.ga.sa.ad(),c=0;c<a.length;c++){var e=a[c],g=new f.model.bb.Ig(e.uniqueName,e.$,e.index);g.label=e.caption;!b.filter.measure||-1!=b.filter.measure.index||g.uniqueName!=b.filter.measure.uniqueName||""!=
b.filter.measure.$&&g.$!=b.filter.measure.$||(b.filter.measure.index=g.index);this.measures.push(g)}this.uk={};this.Nga(b)};d.prototype.Nga=function(b){(this.hierarchy=b)?(this.hierarchy.filter.$g&&(this.uk.type=this.hierarchy.filter.type,this.hierarchy.filter.measure&&(this.uk.measure=this.hierarchy.filter.measure.La()),this.hierarchy.filter.query&&(this.uk.query=this.hierarchy.filter.query.clone())),this.ed=this.hierarchy.Zf!==f.u.i.xa.Zc?this.hierarchy.uj(this.hierarchy.yd,!1,this.hierarchy.Zf):
this.hierarchy.yd.children.slice(),this.r9=f.model.bb.Tz.tS(this.hierarchy)):this.r9=f.u.i.kb.NONE;this.P9=this.fp.ga.I.cG.Nca(this.hierarchy,this.Pm)};d.prototype.ad=function(){var b=this;if(this.Ai){var a=this.fp.ga.I.Ee(this.hierarchy.uniqueName),c=new f.model.bb.Ig(a.uniqueName,a.$,a.index);c.label=a.caption;return[c]}return this.fp.ga.fa.Hc?this.measures.filter(function(e){var g=b.fp.ga.I.$c(e.uniqueName);e=-1<f.u.i.ca.yz.indexOf(e.$);return g&&!g.Ka&&!e}):this.measures};d.prototype.csa=function(b){var a=
!1,c=!1;!f.v(this.hierarchy.filter.query)&&f.v(b.query)?(a=!0,this.hierarchy.pB(),this.fp.Ya()):f.v(b.query)||(c=this.tBa(b));var e=this.Lda(b);if(c||e)return a={},c&&!f.v(b.measure)&&(a.measure=b.measure),c&&!f.v(b.query)&&(a.query=b.query.La()),e&&!f.v(b.ed)&&(a.members=b.ed),e&&!f.v(b.gy)&&(a.exclude=b.gy),this.fp.tl(this.hierarchy.uniqueName,a),!0;a&&this.fp.refresh();return!1};d.prototype.nt=function(){this.fp.nt(this.hierarchy.uniqueName)};d.prototype.tBa=function(b){if(b.type==f.u.i.kb.Oa)return this.LAa(b);
if(b.type==f.u.i.kb.gk)return this.gBa(b);if(b.type==f.u.i.kb.fb||b.type==f.u.i.kb.Yb)return this.mBa(b);if(b.type==f.u.i.kb.nn)return this.DBa(b)};d.prototype.LAa=function(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.ta!=b.query.ta?!0:0<=f.u.i.Ub.Qh.indexOf(b.query.ta)?!f.Gg.u_(this.hierarchy.filter.query.value,b.query.value):0<=f.u.i.Ub.rf.indexOf(b.query.ta)?this.hierarchy.filter.query.value&&b.query.value?!f.Gg.u_(this.hierarchy.filter.query.value[0],b.query.value[0])||
!f.Gg.u_(this.hierarchy.filter.query.value[1],b.query.value[1]):!0:0<=f.u.i.Ub.$w.indexOf(b.query.ta)?this.hierarchy.filter.query.value!==b.query.value:!1};d.prototype.gBa=function(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.ta!=b.query.ta?!0:0<=f.u.i.wb.Qh.indexOf(b.query.ta)?this.hierarchy.filter.query.value!==b.query.value:0<=f.u.i.wb.rf.indexOf(b.query.ta)?f.v(this.hierarchy.filter.query.value)||f.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};d.prototype.mBa=function(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.ta!==b.query.ta?!0:0<=f.u.i.vg.Qh.indexOf(b.query.ta)?this.hierarchy.filter.query.value!==b.query.value:0<=f.u.i.vg.rf.indexOf(b.query.ta)?f.v(this.hierarchy.filter.query.value)||f.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};d.prototype.DBa=function(b){return this.hierarchy.filter.type!==
b.type||this.hierarchy.filter.measure.uniqueName!==b.measure.uniqueName||this.hierarchy.filter.measure.$!==b.measure.aggregation||this.hierarchy.filter.query.ta!=b.query.ta?!0:0<=f.u.i.tc.Qh.indexOf(b.query.ta)?this.hierarchy.filter.query.value!==b.query.value:0<=f.u.i.tc.rf.indexOf(b.query.ta)?f.v(this.hierarchy.filter.query.value)||f.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};d.prototype.Lda=function(b){if(null==
b)return this.hierarchy.filter.$h;if(null==b.ed&&null==b.gy)return!1;var a=this.hierarchy.filter.pj();if(b.ed){var c=b.ed;if(c.length!=a.length)return!0;for(var e=0,g=c.length;e<g;e++)if(-1==a.indexOf(c[e]))return!0}if(b.gy){b=b.gy;if(a.length+b.length!==this.hierarchy.vi-1)return!0;e=0;for(g=b.length;e<g;e++)if(-1==a.indexOf(b[e]))return!0}return!1};d.prototype.xsa=function(b){b!=this.hierarchy.Zf&&this.fp.oD(this.hierarchy.uniqueName,b)};q.Object.defineProperties(d.prototype,{i1:{configurable:!0,
enumerable:!0,get:function(){return!this.Ai&&this.fp.ga.sa.pages.Bb(this.hierarchy.uniqueName)}},Hc:{configurable:!0,enumerable:!0,get:function(){return this.fp.Ga.fa.Hc}},Ai:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.oc&&f.model.B.C.he!=k.xd.Ki}},Pm:{configurable:!0,enumerable:!0,get:function(){return this.r9}},$n:{configurable:!0,enumerable:!0,get:function(){return this.P9?this.P9:new f.u.I.Yoa}},$v:{configurable:!0,enumerable:!0,get:function(){return this.uk.type==f.u.i.kb.Oa||
this.uk.type==f.u.i.kb.gk||this.uk.type==f.u.i.kb.fb||this.uk.type==f.u.i.kb.Yb}},ai:{configurable:!0,enumerable:!0,get:function(){return this.uk.type==f.u.i.kb.nn}}});h.M6=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.model=h.M6.U();b.view=new h.Ila;null!=b.view.kAa&&b.view.kAa.N(y.da.Qd,function(a){return b.jEa(a)});null!=b.view.Um&&(b.view.Um.N(A.Pi.Qw,function(a){return b.qFa(a.data)}),b.view.Um.N(A.Pi.Nz,function(){return b.sFa()}),b.view.Um.N(A.Pi.h6,function(){return b.rFa()}));b.view.Rb&&b.view.Rb.Ad&&(b.view.Rb.Ad.N(h.rI.XO,function(){return b.OEa()}),b.view.Rb.Ad.N(h.rI.gI,function(){return b.MEa()}),b.view.Rb.Ad.N("keydown",
function(a){return b.NEa(a)}));null!=b.view.Pd&&b.view.Pd.N(y.da.Qd,function(){return b.W2()});null!=b.view.bk&&b.view.bk.N(y.da.Qd,function(){return b.yFa()});null!=b.view.ck&&b.view.ck.N(y.da.Qd,function(){return b.zFa()});null!=b.view.Se&&b.view.Se.N(y.da.Qd,function(){return b.rEa()});null!=b.view.En&&b.view.En.N(y.da.jo,function(){return b.oU()});null!=b.view.ap&&b.view.ap.N(y.da.jo,function(){return b.oU()});null!=b.view.hp&&b.view.hp.N(y.da.jo,function(){return b.oU()});null!=b.view.Bp&&b.view.Bp.N(y.da.jo,
function(){return b.oU()});null!=b.view.lf&&b.view.lf.N(y.da.Qd,function(){return b.LFa()});null!=b.view.dm&&b.view.dm.N(y.da.jo,function(){return b.KFa()});null!=b.view.Co&&b.view.Co.N(A.sd.Xe,function(){return b.WCa()});null!=b.view.pF&&b.view.pF.N(A.sd.Xe,function(){return b.Sr()});return b}u(d,y.Fc);d.prototype.KFa=function(){this.view.lf&&(this.view.lf.ud("fm-has-filter"),this.view.lf.jf(0),this.RM(),this.AH())};d.prototype.oU=function(){this.view.Se&&(this.view.Se.ud("fm-has-filter"),this.view.Se.jf(0),
this.RM(),this.AH())};d.prototype.rEa=function(){this.view.lf&&this.view.lf.jf(0);this.RM();this.AH()};d.prototype.LFa=function(){this.view.Se&&this.view.Se.jf(0);this.RM();this.AH()};d.prototype.WCa=function(){var b=this.model.csa(this.Bya());this.model.xsa(this.Dya());b||this.Wa("close")};d.prototype.RM=function(){this.view.En&&this.view.En.isVisible(this.aw&&1===this.view.Se.getSelection()&&this.model.Pm==f.u.i.kb.Oa);this.view.ap&&this.view.ap.isVisible(this.aw&&1===this.view.Se.getSelection()&&
this.model.Pm==f.u.i.kb.gk);this.view.hp&&this.view.hp.isVisible(this.aw&&1===this.view.Se.getSelection()&&this.model.Pm==f.u.i.kb.fb);this.view.Bp&&this.view.Bp.isVisible(this.aw&&1===this.view.Se.getSelection()&&this.model.Pm==f.u.i.kb.Yb);this.view.dm&&this.view.dm.isVisible(this.Ay&&1===this.view.lf.getSelection());this.view.Rb&&(this.view.Rb.isVisible(this.model.$n.Mda&&0==this.view.lf.getSelection()&&0==this.view.Se.getSelection()),this.view.Rb.isVisible()&&this.view.Rb.Ad.Lq());this.view.Ua("fm-query-filter-opened",
!1);this.view.Se&&1===this.view.Se.getSelection()&&this.view.Ua("fm-query-filter-opened",!0);this.view.lf&&1===this.view.lf.getSelection()&&this.view.Ua("fm-query-filter-opened",!0);this.view.Ua("fm-no-query-filters",!this.aw&&!this.Ay);this.view.Ua("fm-no-member-filters",!this.model.$n.Mda);this.Wa("center")};d.prototype.AH=function(){this.view.Co&&(this.view.Rb&&this.view.Rb.isVisible()?this.view.Co.xp(0<this.view.Rb.Ad.Yv()):this.view.Co.xp(!0))};d.prototype.Dya=function(){return this.view.bk&&
1==this.view.bk.getSelection()?f.u.i.xa.bc:this.view.ck&&1==this.view.ck.getSelection()?f.u.i.xa.Ec:this.view.bk&&this.view.ck?f.u.i.xa.Zc:this.model.hierarchy.Zf};d.prototype.Bca=function(){return this.model.Pm==f.u.i.kb.Oa?this.view.En.Sl():this.model.Pm==f.u.i.kb.gk?this.view.ap.Sl():this.model.Pm==f.u.i.kb.fb?this.view.hp.Sl():this.model.Pm==f.u.i.kb.Yb?this.view.Bp.Sl():null};d.prototype.Bya=function(){var b=null,a=null;1==this.view.Se.getSelection()?b=this.Bca():1==this.view.lf.getSelection()?
b=this.view.dm.Sl():(a=this.view.Rb.Sl(),this.model.Lda(a)||(a=null));null==a&&null==b&&(this.view.Se.Lc("fm-has-filter")?b=this.Bca():this.view.lf.Lc("fm-has-filter")&&(b=this.view.dm.Sl()));var c={};b&&(c.type=b.type,c.query=b.query,c.measure=b.measure);a&&(f.v(a.ed)||(c.ed=a.ed),f.v(a.gy)||(c.gy=a.gy));return c};d.prototype.Sr=function(){this.Wa("close")};d.prototype.yFa=function(){1===this.view.bk.getSelection()&&(this.view.ck.jf(0),this.view.Rb&&this.view.Rb.Ad.sort(f.u.i.xa.bc));0===this.view.bk.getSelection()&&
0===this.view.ck.getSelection()&&this.view.Rb&&this.view.Rb.Ad.sort(f.u.i.xa.Zc)};d.prototype.zFa=function(){1===this.view.ck.getSelection()&&(this.view.bk.jf(0),this.view.Rb&&this.view.Rb.Ad.sort(f.u.i.xa.Ec));0===this.view.bk.getSelection()&&0===this.view.ck.getSelection()&&this.view.Rb&&this.view.Rb.Ad.sort(f.u.i.xa.Zc)};d.prototype.W2=function(){this.view.Rb&&(this.view.Rb.Ad.selectAll(1==this.view.Pd.getSelection()),this.view.Co.xp(0<this.view.Rb.Ad.Yv()));this.qN()};d.prototype.NEa=function(b){if(32===
b.keyCode||13===b.keyCode){var a=this.view.Rb.Ad.Mt();f.v(a)||(a=a.data,!a.LS||b.ctrlKey||b.metaKey?(a.rd=1==a.rd?0:1,this.view.Rb.Ad.H4(a)):(a.zf=!a.zf,this.view.Rb.Ad.Tha(a)))}};d.prototype.OEa=function(){this.view.Co.xp(0<this.view.Rb.Ad.Yv());this.Zha();this.qN()};d.prototype.MEa=function(){this.N4();this.qN()};d.prototype.Zha=function(){0==this.view.Rb.Ad.sy()?this.view.Pd.jf(0):this.view.Rb.Ad.GS()>this.view.Rb.Ad.sy()?this.view.Pd.jf(-1):this.view.Rb.Ad.GS()==this.view.Rb.Ad.sy()&&this.view.Pd.jf(1)};
d.prototype.update=function(b){var a=this;0!=this.view.isVisible()&&(1E4<b.vi?(f.za(!0,f.model.A.j.kE,f.model.A.j.mna,!0,!0),setTimeout(function(){a.model.update(b);a.cm();f.za(!1)},50)):(this.model.update(b),this.cm()))};d.prototype.qFa=function(b){var a=this;f.model.B.C.G_&&b.trim()==b&&this.view.Rb&&this.view.Rb.Ad.search(b,function(){return a.PC()})};d.prototype.sFa=function(){var b=this,a=this.view.Um.yi();!f.model.B.C.G_&&a.trim()==a&&this.view.Rb&&this.view.Rb.Ad.search(a,function(){return b.PC()})};
d.prototype.rFa=function(){var b=this;!f.model.B.C.G_&&this.view.Rb&&this.view.Rb.Ad.search("",function(){return b.PC()})};d.prototype.PC=function(){this.N4();this.qN();this.Zha();this.view.Co.xp(0<this.view.Rb.Ad.Yv())};d.prototype.cm=function(){this.view.Df();this.view.Ua("fm-filter-pages-layout",this.model.i1);this.view.Ua("fm-filter-flat-layout",this.model.Ai);this.view.Rb&&this.view.Rb.reset();this.view.Um&&(this.view.Um.clear(),this.view.Um.VU(f.model.Ta.U().Ga.fa.Hc?1E3:0));this.view.lf&&(f.u.i.Ja.Sc==
f.u.i.Ja.wxa(this.model.hierarchy.wi.type+"")&&f.model.B.C.oc?this.view.lf.$a():this.view.lf.show());this.$Ja();this.WJa();this.XJa();this.VJa();this.N4();this.qN();this.ZJa();this.AH();this.gxa()};d.prototype.gxa=function(){this.view.Rb&&this.view.Rb.isVisible()?this.view.Rb.Ad.focus({preventScroll:!0}):this.view.Se&&1==this.view.Se.getSelection()?this.view.Se.focus({preventScroll:!0}):this.view.lf&&1==this.view.lf.getSelection()?this.view.lf.focus({preventScroll:!0}):this.view.Co.focus({preventScroll:!0})};
d.prototype.ZJa=function(){var b=!this.model.i1&&!f.model.B.C.oc;this.view.bk&&this.view.bk.isVisible(b);this.view.ck&&this.view.ck.isVisible(b);this.view.cN&&this.view.cN.isVisible(b);this.view.Ua("fm-sort-only",!this.aw&&!this.Ay)};d.prototype.lBa=function(){return 0<this.model.ad().length};d.prototype.XJa=function(){var b=this.model.hierarchy;this.view.Pd&&this.view.Pd.jf(0<b.filter.pj().length?-1:1);if(this.view.Rb){var a=2<b.ra.length;this.view.Rb.Ad.Ua("fm-tree-list",a);this.view.Rb.Ad.X3(a?
new h.yna:new h.QW);this.view.Rb.Ad.bV(b);this.view.Rb.Ad.Cf(this.model.ed);this.view.Rb.Ad.ZU(b.filter.pj());this.view.Rb.Ad.sort(b.Zf)}};d.prototype.WJa=function(){this.view.Dp&&(this.view.Dp.Za(this.model.hierarchy.caption),this.view.Dp.Mh(this.model.hierarchy.caption));this.view.toolbar&&this.view.toolbar.tIa(this.model.hierarchy.caption)};d.prototype.N4=function(){this.view.Rb&&0<this.view.Rb.Ad.getTotalLength()?this.view.Pd&&this.view.Pd.show():this.view.Pd&&this.view.Pd.$a()};d.prototype.$Ja=
function(){this.view.bk&&this.view.bk.jf(this.model.hierarchy.Zf==f.u.i.xa.bc?1:0);this.view.ck&&this.view.ck.jf(this.model.hierarchy.Zf==f.u.i.xa.Ec?1:0)};d.prototype.VJa=function(){this.view.bG&&this.view.bG.isVisible(this.aw||this.Ay);this.view.Se&&(this.model.Pm==f.u.i.kb.Oa?(this.view.NG.Za(f.model.A.j.E6),this.view.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.E6)):this.model.Pm==f.u.i.kb.gk?(this.view.NG.Za(f.model.A.j.hO),this.view.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.hO)):this.model.Pm==f.u.i.kb.fb?
(this.view.NG.Za(f.model.A.j.H6),this.view.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.H6)):this.model.Pm==f.u.i.kb.Yb&&(this.view.NG.Za(f.model.A.j.I6),this.view.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.I6)),this.view.Se.isVisible(this.aw&&this.model.Pm!=f.u.i.kb.NONE),this.view.Se.Ua("fm-has-filter",this.model.$v),this.view.Se.jf(this.model.$v));this.view.lf&&(this.model.Ai&&!this.Ay&&this.model.hierarchy.filter.ai?(this.view.lf.isVisible(!0),this.view.lf.xp(!1)):(this.view.lf.isVisible(this.Ay),this.view.lf.xp(this.Ay)),
this.view.lf.Ua("fm-has-filter",this.model.ai),this.view.lf.jf(this.Ay&&this.model.ai));this.view.En&&(this.view.En.Aw(this.model.$n.TL?this.model.$n.query:[]),this.view.En.reset(),this.model.uk.type==f.u.i.kb.Oa&&(this.view.En.tl(this.model.uk),this.view.En.dj(this.model.hierarchy.getTimezoneOffset())));this.view.ap&&(this.view.ap.Aw(this.model.$n.TL?this.model.$n.query:[]),this.view.ap.reset(),this.model.uk.type==f.u.i.kb.gk&&this.view.ap.tl(this.model.uk));this.view.hp&&(this.view.hp.Aw(this.model.$n.TL?
this.model.$n.query:[]),this.view.hp.reset(),this.model.uk.type==f.u.i.kb.fb&&this.view.hp.tl(this.model.uk));this.view.Bp&&(this.view.Bp.Aw(this.model.$n.TL?this.model.$n.query:[]),this.view.Bp.reset(),this.model.uk.type==f.u.i.kb.Yb&&this.view.Bp.tl(this.model.uk));this.view.dm&&(this.view.dm.Aw(this.model.$n.dea?this.model.$n.xl:[]),this.view.dm.reset(),this.view.dm.fz(this.model.ad()),this.model.uk.type==f.u.i.kb.nn&&this.view.dm.tl(this.model.uk),this.view.dm.Ua("fm-arrow-first",!this.aw));this.RM();
this.AH()};d.prototype.qN=function(){var b="";this.view.Rb&&(b=this.view.Rb.Ad.Ge()?f.O.bind(f.model.A.j.Oka,this.view.Rb.Ad.sy(),this.view.Rb.Ad.GS()):f.O.bind(f.model.A.j.Pka,this.view.Rb.Ad.sy(),this.view.Rb.Ad.GS()));this.view.zw&&(this.view.zw.Za(b),this.view.zw.Mh(b));this.view.Pd&&this.view.Pd.Za(this.view.Rb&&this.view.Rb.Ad.Ge()?f.model.A.j.rla:f.model.A.j.Ju)};d.prototype.jEa=function(b){var a=b.data.Fk;-1<b.data.selectedIndex&&(this.model.Nga(a),this.cm())};q.Object.defineProperties(d.prototype,
{Ay:{configurable:!0,enumerable:!0,get:function(){if(f.u.Na.U().fa.Ba==f.u.i.oa.API&&!this.model.$n.dea)return!1;if(this.model.Ai){var b=this.model.fp.ga.I.Ee(this.model.hierarchy.uniqueName);return!f.v(b)&&b.type==f.u.i.Ja.fb}return this.model.i1||f.u.Na.U().fa.Ba==f.u.i.oa.Zd||f.u.Na.U().fa.Ba==f.u.i.oa.Gf||!this.lBa()?!1:!0}},aw:{configurable:!0,enumerable:!0,get:function(){return this.model.$n.TL&&f.u.Na.U().fa.Ba!=f.u.i.oa.Zd&&!(this.model.Ai&&this.model.Pm==f.u.i.kb.fb)}}});h.Fla=d})(k.filter||
(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.mh.call(this,k.Hb.zb.F)||this;b.Y("fm-filter-view");b.Y("fm-noselect");b.Ce=new h.Fla;b.Ce.N("close",function(){return b.close()});b.Ce.N("center",function(){return b.Go()});b.V(b.Ce.view);b.Ce.view.show();b.F.Fi({lV:[A.Fi.Ph.ji,A.Fi.Ph.bE,A.Fi.Ph.tE],jR:k.Hb.zb.F,WY:!0,resize:function(a){return b.uM(a)},complete:function(){return b.Go()}});return b}u(d,A.Vb.mh);d.prototype.uM=function(b){b.rD==A.Fi.Ph.bE||b.rD==A.Fi.Ph.tE?(this.Ce.view.tj(b.size.width+
(b.size.width-b.c3.width)),this.Go()):b.rD==A.Fi.Ph.ji&&(this.Ce.view.yp(b.size.height),b.size.height>b.c3.height&&this.hwa());this.eB()};d.prototype.hwa=function(){var b=this;this.Ce.view.Rb&&this.Ce.view.Rb.isVisible()&&this.Ce.view.F.requestAnimationFrame(function(){b.Ce.view.Rb.Ad.Lq()})};d.prototype.Xr=function(b){this.open();this.Ce.update(b);this.Go();this.Wa(y.da.OPENED)};d.prototype.close=function(){this.Zt&&(A.Vb.mh.prototype.close.call(this),this.Wa(y.da.CLOSED),f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.oW)))};
d.prototype.eB=function(){this.F.Ua("fm-layout-mobile-small",460>this.F.cf(!0))};h.Hla=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-table")||this;var a=new A.Ca("div","fm-filters-table-header fm-fth-withsearch");b.V(a);var c=new A.Ca("div","fm-select-all-wrapper");c.Y("fm-ui-col");b.Pd=new A.$I;b.Pd.Y("fm-select-all-label");b.Pd.Za(f.model.A.j.Ju);b.Pd.Mh(f.model.A.j.Ju);c.V(b.Pd);var e=new A.Ca("div","fm-select-counter-wrap");e.Y("fm-ui-col");b.zw=new A.Oc;b.zw.Y("fm-select-counter");e.V(b.zw);a.V(c);a.V(e);b.Ie=new A.Ca("div","fm-search-wrap");
a.V(b.Ie);b.ee=new A.Ca("a","fm-search-btn");b.ee.F.text(f.model.A.j.pW);b.ee.ue();b.ee.N("click",function(){return b.Tr()});b.ee.N("focus",function(){return b.Tr()});b.Ie.V(b.ee);b.Um=new A.Pi;b.Um.Y("fm-search-inp");b.Ie.V(b.Um);a=new A.sd("fm-close-search");a.N(A.sd.Xe,function(){return b.Ur()});b.Ie.V(a);a=new A.Ca("div","fm-filters-table-content");b.V(a);b.Ad=new h.rI;b.Ad.Y("fm-members-filter-list");b.Ad.X3(new h.QW);a.V(b.Ad);return b}u(d,A.Ca);d.prototype.Df=function(){this.Um.lD(f.model.A.j.pW);
this.Pd.Za(f.model.A.j.Ju);this.Pd.Mh(f.model.A.j.Ju);this.ee.F.text(f.model.A.j.pW)};d.prototype.Tr=function(){this.ee.ue(-1);this.Ie.Y("fm-search-opened");this.Um.F.focus();this.zw.$a()};d.prototype.Ur=function(){this.ee.ue(0);this.Ie.ud("fm-search-opened");this.Um.clear();this.zw.show()};d.prototype.Sl=function(){var b=this.Ad.qS();return b.items?b.eu?{gy:b.items}:{ed:b.items}:null};d.prototype.reset=function(){this.Ur()};h.xna=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.vq=new A.hd.$q;b.vq.Y("fm-measures-dropdown");b.vq.Xf("label");b.vq.lD(f.model.A.j.lla);a.V(b.vq);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.Eg=new A.Vp;b.Eg.Y("fm-num-input-1");b.Eg.mD(A.Vp.sE);a.V(b.Eg);b.Ei=new A.Vp;b.Ei.Y("fm-num-input-2");
b.Ei.mD(A.Vp.sE);a.V(b.Ei);var c=new A.Aa("div","fm-buttons-bar");a.F.V(c);b.kg=new A.sd("fm-ui-link-btn");b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");b.kg.N(A.sd.Xe,function(){return b.pw()});c.V(b.kg.F);return b}u(d,A.Ca);d.prototype.pw=function(){this.$a();this.Wa(y.da.jo)};d.prototype.Xj=function(){var b=this.Kc.rh();f.v(b)||this.F.Ua("fm-range",0<=f.u.i.tc.rf.indexOf(b.value))};d.prototype.fz=function(b){this.vq.Cf(b);this.vq.ak(0);this.xp(0<b.length)};d.prototype.reset=function(){this.vq.ak(0);
this.Kc.ak(0);this.Xj();this.Eg.Nh(10);this.Ei.Nh(0)};d.prototype.Sl=function(){if(f.v(this.vq.rh()))return null;var b={type:f.u.i.kb.nn};b.measure=this.vq.rh().La();var a=this.Kc.rh().value;if(0<=f.u.i.tc.Qh.indexOf(a)){var c=this.Eg.Fa();!isNaN(c)||a!=f.u.i.tc.Bj&&a!=f.u.i.tc.ji||(c=0);b.query=new f.model.bb.zl(a,c)}0<=f.u.i.tc.rf.indexOf(a)&&(b.query=new f.model.bb.zl(a,[this.Eg.Fa(),this.Ei.Fa()]));return b};d.prototype.tl=function(b){this.Kc.gs(function(e){return e.value===b.query.ta});this.Xj();
for(var a=this.vq.uc(),c=0;c<a.length;c++)if(a[c].uniqueName==b.measure.uniqueName&&a[c].$==b.measure.aggregation){this.vq.ak(c);break}0<=f.u.i.tc.Qh.indexOf(b.query.ta)&&this.Eg.Nh(b.query.value);0<=f.u.i.tc.rf.indexOf(b.query.ta)&&(this.Eg.Nh(b.query.value[0]),this.Ei.Nh(b.query.value[1]))};d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.tc.Bj:return f.model.A.j.kla;case f.u.i.tc.ji:return f.model.A.j.bla;case f.u.i.tc.EQUAL:return f.model.A.j.mI;
case f.u.i.tc.If:return f.model.A.j.oI;case f.u.i.tc.GREATER:return f.model.A.j.dO;case f.u.i.tc.Kk:return f.model.A.j.eO;case f.u.i.tc.LESS:return f.model.A.j.fO;case f.u.i.tc.Lk:return f.model.A.j.gO;case f.u.i.tc.Sg:return f.model.A.j.lI;case f.u.i.tc.Jg:return f.model.A.j.nI}};d.prototype.Df=function(){var b=this;this.vq.hc(f.model.A.j.Vka);this.Kc.hc(f.model.A.j.cO);this.Eg.hc(f.model.A.j.Tw);this.Ei.hc(f.model.A.j.Tw);this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));
this.kg.Za(f.model.A.j.Uka)};h.Dpa=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.Lj=new A.DK.p8;b.Lj.Y("fm-datepicker-1");b.Lj.N(y.da.Qd,function(){return b.GDa()});a.V(b.Lj);b.Xk=new A.DK.p8;b.Xk.Y("fm-datepicker-2");b.Xk.N(y.da.Qd,function(){return b.HDa()});a.V(b.Xk);b.VC=new A.hd.$q;
b.VC.Y("fm-periods-dropdown");b.VC.Xf("label");a.V(b.VC);var c=new A.Aa("div","fm-buttons-bar");a.F.V(c);b.kg=new A.sd("fm-ui-link-btn");b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");b.kg.N(A.sd.Xe,function(){return b.pw()});c.V(b.kg.F);return b}u(d,A.Ca);d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.Ub.EQUAL:return f.model.A.j.mI;case f.u.i.Ub.If:return f.model.A.j.oI;case f.u.i.Ub.JD:return f.model.A.j.Zka;case f.u.i.Ub.KD:return f.model.A.j.$ka;
case f.u.i.Ub.FD:return f.model.A.j.Xka;case f.u.i.Ub.GD:return f.model.A.j.Yka;case f.u.i.Ub.Sg:return f.model.A.j.lI;case f.u.i.Ub.Jg:return f.model.A.j.nI;case f.u.i.Ub.tO:return f.model.A.j.fla;case f.u.i.Ub.MN:return f.model.A.j.dla;case f.u.i.Ub.KO:return f.model.A.j.gla}};d.prototype.Df=function(){var b=this;this.Kc.hc(f.model.A.j.cO);this.Lj.hc(f.model.A.j.Tw);this.Xk.hc(f.model.A.j.Tw);this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));this.VC.Cf([{value:f.u.i.Kz.hm,
label:f.model.A.j.mla},{value:f.u.i.Kz.eJ,label:f.model.A.j.pla},{value:f.u.i.Kz.Hg,label:f.model.A.j.nla},{value:f.u.i.Kz.Cs,label:f.model.A.j.ola},{value:f.u.i.Kz.Qk,label:f.model.A.j.qla}]);this.kg.Za(f.model.A.j.Qka);this.Lj.CD=f.model.B.C.iy;this.Xk.CD=f.model.B.C.iy;this.Lj.Caa=f.model.B.C.Cba;this.Xk.Caa=f.model.B.C.Cba;this.Lj.KQ=f.model.A.j.Jk;this.Xk.KQ=f.model.A.j.Jk};d.prototype.Sl=function(){var b={type:f.u.i.kb.Oa},a=this.Kc.rh().value;0<=f.u.i.Ub.Qh.indexOf(a)&&(b.query=new f.model.bb.zl(a,
this.Lj.zc));if(0<=f.u.i.Ub.rf.indexOf(a)){var c=this.Lj.zc,e=this.Xk.zc;b.query=new f.model.bb.zl(a,c.getTime()<e.getTime()?[c,e]:[e,c])}0<=f.u.i.Ub.$w.indexOf(a)&&(b.query=new f.model.bb.zl(a,this.VC.rh().value));return b};d.prototype.tl=function(b){this.Kc.gs(function(a){return a.value===b.query.ta});this.Xj();0<=f.u.i.Ub.Qh.indexOf(b.query.ta)&&(this.Lj.zc=b.query.value);0<=f.u.i.Ub.rf.indexOf(b.query.ta)&&(this.Lj.zc=b.query.value[0],this.Xk.zc=b.query.value[1]);0<=f.u.i.Ub.$w.indexOf(b.query.ta)&&
this.VC.gs(function(a){return a.value===b.query.value})};d.prototype.dj=function(b){this.Lj.Ii=b;this.Xk.Ii=b};d.prototype.reset=function(){this.Kc.ak(0);this.VC.ak(0);this.Xj();this.Lj.EIa();this.Xk.zc=null;this.Lj.Ii=null;this.Xk.Ii=null};d.prototype.Xj=function(){var b=this.Kc.rh();f.v(b)||(b=b.value,this.F.Ua("fm-date-range",0<=f.u.i.Ub.rf.indexOf(b)),this.F.Ua("fm-date-period",0<=f.u.i.Ub.$w.indexOf(b)),0<=f.u.i.Ub.rf.indexOf(b)&&null==this.Xk.zc&&null!=this.Lj.zc&&(this.Xk.zc=this.Lj.zc.clone()))};
d.prototype.GDa=function(){null==this.Xk.zc&&0<=f.u.i.Ub.rf.indexOf(this.Kc.rh().value)&&(this.Xk.zc=this.Lj.zc.clone())};d.prototype.HDa=function(){null==this.Lj.zc&&0<=f.u.i.Ub.rf.indexOf(this.Kc.rh().value)&&(this.Lj.zc=this.Xk.zc.clone())};d.prototype.pw=function(){this.reset();this.$a();this.Wa(y.da.jo)};h.pka=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.pz=new A.Pi;b.pz.Y("fm-txt-input-1");a.V(b.pz);b.yH=new A.Pi;b.yH.Y("fm-txt-input-2");a.V(b.yH);var c=new A.Aa("div","fm-buttons-bar");a.F.V(c);b.kg=new A.sd("fm-ui-link-btn");b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");
b.kg.N(A.sd.Xe,function(){return b.pw()});c.V(b.kg.F);return b}u(d,A.Ca);d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.wb.EQUAL:return f.model.A.j.mI;case f.u.i.wb.If:return f.model.A.j.oI;case f.u.i.wb.LD:return f.model.A.j.ala;case f.u.i.wb.$z:return f.model.A.j.hla;case f.u.i.wb.Mz:return f.model.A.j.ela;case f.u.i.wb.bA:return f.model.A.j.jla;case f.u.i.wb.an:return f.model.A.j.cla;case f.u.i.wb.aA:return f.model.A.j.ila;case f.u.i.wb.GREATER:return f.model.A.j.dO;
case f.u.i.wb.Kk:return f.model.A.j.eO;case f.u.i.wb.LESS:return f.model.A.j.fO;case f.u.i.wb.Lk:return f.model.A.j.gO;case f.u.i.wb.Sg:return f.model.A.j.lI;case f.u.i.wb.Jg:return f.model.A.j.nI}};d.prototype.Df=function(){var b=this;this.Kc.hc(f.model.A.j.cO);this.pz.hc(f.model.A.j.Tw);this.yH.hc(f.model.A.j.Tw);this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));this.kg.Za(f.model.A.j.Rka)};d.prototype.Sl=function(){var b={type:f.u.i.kb.gk},a=this.Kc.rh().value;0<=f.u.i.wb.Qh.indexOf(a)&&
(b.query=new f.model.bb.zl(a,this.pz.yi()));0<=f.u.i.wb.rf.indexOf(a)&&(b.query=new f.model.bb.zl(a,[this.pz.yi(),this.yH.yi()]));return b};d.prototype.tl=function(b){this.Kc.gs(function(a){return a.value===b.query.ta});this.Xj();0<=f.u.i.wb.Qh.indexOf(b.query.ta)&&this.pz.cj(b.query.value);0<=f.u.i.wb.rf.indexOf(b.query.ta)&&(this.pz.cj(b.query.value[0]),this.yH.cj(b.query.value[1]))};d.prototype.reset=function(){this.Kc.ak(0);this.Xj();this.pz.cj("");this.yH.cj("")};d.prototype.Xj=function(){var b=
this.Kc.rh();f.v(b)||this.F.Ua("fm-range",0<=f.u.i.wb.rf.indexOf(b.value))};d.prototype.pw=function(){this.reset();this.$a();this.Wa(y.da.jo)};h.nma=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.Eg=new A.Vp;b.Eg.Y("fm-num-input-1");b.Eg.mD(A.Vp.sE);a.V(b.Eg);b.Ei=new A.Vp;b.Ei.Y("fm-num-input-2");b.Ei.mD(A.Vp.sE);a.V(b.Ei);var c=new A.Aa("div","fm-buttons-bar");a.F.V(c);b.kg=new A.sd("fm-ui-link-btn");
b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");b.kg.N(A.sd.Xe,function(){return b.pw()});c.V(b.kg.F);return b}u(d,A.Ca);d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.vg.EQUAL:return f.model.A.j.mI;case f.u.i.vg.If:return f.model.A.j.oI;case f.u.i.vg.GREATER:return f.model.A.j.dO;case f.u.i.vg.Kk:return f.model.A.j.eO;case f.u.i.vg.LESS:return f.model.A.j.fO;case f.u.i.vg.Lk:return f.model.A.j.gO;case f.u.i.vg.Sg:return f.model.A.j.lI;case f.u.i.vg.Jg:return f.model.A.j.nI}};
d.prototype.Df=function(){var b=this;this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));this.kg.Za(f.model.A.j.Ska)};d.prototype.Sl=function(){var b={type:f.u.i.kb.fb},a=this.Kc.rh().value;0<=f.u.i.vg.Qh.indexOf(a)&&(b.query=new f.model.bb.zl(a,this.Eg.Fa()));0<=f.u.i.vg.rf.indexOf(a)&&(b.query=new f.model.bb.zl(a,[this.Eg.Fa(),this.Ei.Fa()]));return b};d.prototype.tl=function(b){this.Kc.gs(function(a){return a.value===b.query.ta});this.Xj();0<=f.u.i.vg.Qh.indexOf(b.query.ta)&&
this.Eg.Nh(b.query.value);0<=f.u.i.vg.rf.indexOf(b.query.ta)&&(this.Eg.Nh(b.query.value[0]),this.Ei.Nh(b.query.value[1]))};d.prototype.reset=function(){this.Kc.ak(0);this.Xj();this.Eg.Nh(0);this.Ei.Nh(0)};d.prototype.Xj=function(){var b=this.Kc.rh();f.v(b)||this.F.Ua("fm-range",0<=f.u.i.vg.rf.indexOf(b.value))};d.prototype.pw=function(){this.reset();this.$a();this.Wa(y.da.jo)};h.Ina=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.Eg=new A.Vp;b.Eg.Y("fm-num-input-1");b.Eg.mD(A.Vp.sE);a.V(b.Eg);b.Ei=new A.Vp;b.Ei.Y("fm-num-input-2");b.Ei.mD(A.Vp.sE);a.V(b.Ei);b.Vt=new A.hd.$q;b.Vt.Y("fm-interval-dropdown");b.Vt.Xf("label");b.Vt.PM("ariaLabel");
a.V(b.Vt);a=new A.Aa("div","fm-buttons-bar");b.F.V(a);b.kg=new A.sd("fm-ui-link-btn");b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");b.kg.N(A.sd.Xe,function(){return b.pw()});a.V(b.kg.F);return b}u(d,A.Ca);d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.ik.EQUAL:return f.model.A.j.mI;case f.u.i.ik.If:return f.model.A.j.oI;case f.u.i.ik.GREATER:return f.model.A.j.dO;case f.u.i.ik.Kk:return f.model.A.j.eO;case f.u.i.ik.LESS:return f.model.A.j.fO;case f.u.i.ik.Lk:return f.model.A.j.gO;
case f.u.i.ik.Sg:return f.model.A.j.lI;case f.u.i.ik.Jg:return f.model.A.j.nI}};d.prototype.Df=function(){var b=this;this.Kc.hc(f.model.A.j.cO);this.Eg.hc(f.model.A.j.Tw);this.Ei.hc(f.model.A.j.Tw);this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));this.Vt.hc(f.model.A.j.Wka);this.Vt.Cf([{value:"s",label:f.model.A.j.zla,ariaLabel:f.model.A.j.Ala},{value:"m",label:f.model.A.j.xla,ariaLabel:f.model.A.j.yla},{value:"h",label:f.model.A.j.vla,ariaLabel:f.model.A.j.wla},{value:"d",
label:f.model.A.j.tla,ariaLabel:f.model.A.j.ula}]);this.kg.Za(f.model.A.j.Tka)};d.prototype.Sl=function(){var b={type:f.u.i.kb.Yb},a=this.Kc.rh().value,c=this.Vt.rh().value;0<=f.u.i.ik.Qh.indexOf(a)&&(b.query=new f.model.bb.zl(a,this.Eg.Fa()+c));0<=f.u.i.ik.rf.indexOf(a)&&(b.query=new f.model.bb.zl(a,[this.Eg.Fa()+c,this.Ei.Fa()+c]));return b};d.prototype.tl=function(b){this.Kc.gs(function(g){return g.value===b.query.ta});this.Xj();for(var a=this.Vt.uc(),c=0;c<a.length;c++){var e=a[c].value;if(0<=
b.query.value.indexOf(e)){this.Vt.ak(c);break}}0<=f.u.i.ik.Qh.indexOf(b.query.ta)&&(a=parseFloat(b.query.value.replace(e,"")),this.Eg.Nh(a));0<=f.u.i.ik.rf.indexOf(b.query.ta)&&(a=parseFloat(b.query.value[0].replace(e,"")),e=parseFloat(b.query.value[1].replace(e,"")),this.Eg.Nh(a),this.Ei.Nh(e))};d.prototype.reset=function(){this.Kc.ak(0);this.Xj();this.Eg.Nh(0);this.Ei.Nh(0);this.Vt.ak(0)};d.prototype.Xj=function(){var b=this.Kc.rh();f.v(b)||this.F.Ua("fm-range",0<=f.u.i.ik.rf.indexOf(b.value))};
d.prototype.pw=function(){this.reset();this.$a();this.Wa(y.da.jo)};h.npa=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));var U;
(function(f){function k(){this.styleSheet=new f.md.Npa;this.Fg=[];f.md.format.Gs.jea=f.md.format.Gs.Jaa;f.xE.uH=[]}k.prototype.IJa=function(){var h=[];h["[Content_Types].xml"]=f.ri.Hs+this.Rta();h["_rels/.rels"]=f.ri.Hs+f.ri.Qpa;h["xl/_rels/workbook.xml.rels"]=f.ri.Hs+this.sua();h["xl/workbook.xml"]=f.ri.Hs+this.tua();h["xl/theme/theme1.xml"]=f.ri.Hs+f.ri.apa;for(var d=0;d<this.Fg.length;d++){var b=this.Fg[d].Cc();h["xl/worksheets/sheet"+(d+1)+".xml"]=f.ri.Hs+b}d=this.pua();h["xl/sharedStrings.xml"]=
f.ri.Hs+d;h["xl/styles.xml"]=f.ri.Hs+this.styleSheet.Cc();h["docProps/app.xml"]=f.ri.Hs+f.ri.Hia;h["docProps/core.xml"]=f.ri.Hs+f.ri.Hja;return(new D.Ela).uua(h)};k.prototype.pua=function(){var h="";D.aa.create("<axis/>").attr("name","rows");for(var d=0;d<f.xE.uH.length;d++){var b=w.O.Dwa(f.xE.uH[d]);h+="<si><t>"+b+"</t></si>"}return f.ri.Doa.replace("{0}",h)};k.prototype.tua=function(){for(var h="",d=0;d<this.Fg.length;d++)h+=w.O.bind('<sheet name="{0}" sheetId="{1}" r:id="{2}"/>',this.Fg[d].name,
d+1,"rId"+(d+4));return w.O.bind(f.ri.Epa,h)};k.prototype.sua=function(){for(var h="",d=0;d<this.Fg.length;d++)h+=w.O.bind(f.ri.Gpa,"rId"+(d+4),"worksheets/sheet"+(d+1)+".xml");return w.O.bind(f.ri.Fpa,h)};k.prototype.Rta=function(){for(var h="",d=0;d<this.Fg.length;d++)h+=w.O.bind(f.ri.jja,"/xl/worksheets/sheet"+(d+1)+".xml");return w.O.bind(f.ri.ija,h)};f.Ipa=k})(U||(U={}));
(function(f){function k(h,d,b,a){this.bs=void 0===h?0:h;this.qt=void 0===d?0:d;this.value=void 0===b?"":b;this.x4=void 0===a?0:a}k.prototype.toString=function(){return"XLSCell {row: "+this.bs+", column: "+this.qt+", type: "+this.type+", id: "+this.id+", value: "+this.value+"}"};q.Object.defineProperties(k.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.hg}},value:{configurable:!0,enumerable:!0,set:function(h){"number"===typeof h&&isNaN(h)&&(h="");if("string"===typeof h){h=
h.replace(RegExp("<br/?>","gmi"),"\n");h=h.replace("/&/gmi","");h=h.replace(RegExp("<[^<]+?>","gmi"),"");var d=f.xE.uH.indexOf(h);-1==d?(this.MJ=f.xE.uH.length,f.xE.uH.push(h)):this.MJ=d;this.hg=f.ix.Sc}else this.MJ=h,this.hg="number"===typeof h?f.ix.fb:null===h?f.ix.F7:!1===h?f.ix.l7:f.ix.upa},get:function(){return this.MJ}},id:{configurable:!0,enumerable:!0,set:function(){},get:function(){for(var h="",d=this.qt+1,b=0;26<d;){var a=0<d%26?d%26:26;d/=26;26==a&&d--;h=String.fromCharCode(a+64)+h;if(3==
b++)break}h=String.fromCharCode(d+64)+h;return h+(this.bs+1)}}});f.nP=k})(U||(U={}));(function(f){function k(){}k.uH=[];f.xE=k})(U||(U={}));
(function(f){function k(h){this.cells=[];this.ST=this.UT=0;this.columns=[];this.rows=[];this.XT=[];this.name=this.Bwa(h)}k.prototype.Bwa=function(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};k.prototype.Lga=function(h,d){this.columns[h]=d};k.prototype.jG=function(h){return this.columns[h]?this.columns[h]:
0};k.prototype.Cw=function(h,d){this.rows[h]=d};k.prototype.Nd=function(h){return this.rows[h]?this.rows[h]:0};k.prototype.hi=function(h,d,b,a){a=void 0===a?null:a;null==this.cells[h]&&(this.cells[h]=[]);this.cells[h][d]=b instanceof f.nP?b:new f.nP(h,d,b,null==a?0:a.index);this.UT<h&&(this.UT=h);this.ST<d&&(this.ST=d)};k.prototype.Rf=function(h,d){var b;null!=this.cells[h]&&(b=this.cells[h][d]);null==b&&(b=new f.nP(h,d,null));return b};k.prototype.Hea=function(h,d,b){var a=this.Rf(h,d);if(null!=
a){for(var c=a.id,e,g=d+1;g<d+b;g++)e=new f.nP(h,g,!1,a.x4),this.cells[h][g]=e;c+=":"+(e?e.id:a.id);this.XT.push(c)}};k.prototype.Cc=function(){for(var h="",d=0;d<this.cells.length;d++){var b=this.cells[d];if(null!=b&&0!=b.length){for(var a="",c=0;c<b.length;c++){var e=b[c];null!=e&&e.type!=f.ix.F7&&(a=e.type==f.ix.l7?a+('<c r="'+e.id+'" s="'+e.x4.toString()+'" />'):a+('<c r="'+e.id+'" s="'+e.x4.toString()+'"'+(e.type==f.ix.Sc?' t="s"':"")+"><v>"+e.value+"</v></c>"))}h=isNaN(this.rows[d])?h+w.O.bind('<row spans="1:3" r="{0}"  >{1}</row>',
d+1,a):h+w.O.bind('<row spans="1:3" r="{0}" x14ac:dyDescent="0.25" ht="{1}" customHeight="1">{2}</row>',d+1,this.rows[d],a)}}d="";for(b=0;b<this.columns.length;b++)isNaN(this.columns[b])||(d+=w.O.bind('<col min="{0}" max="{1}" width="{2}" customWidth="1" />',b+1,b+1,this.columns[b]));a="";for(b=0;b<this.XT.length;b++)a+=w.O.bind('<mergeCell ref="{0}"/>',this.XT[b]);b=0<this.XT.length?w.O.bind('<mergeCells count="{0}">{1}</mergeCells>',this.Hea.length,a):"";return w.O.bind(f.ri.Eoa,this.Rf(0,0).id+
":"+this.sCa.id,d,h,b)};q.Object.defineProperties(k.prototype,{sCa:{configurable:!0,enumerable:!0,get:function(){return this.Rf(this.UT,this.ST)},set:function(){}},Kta:{configurable:!0,enumerable:!0,get:function(){return this.ST+1}},FM:{configurable:!0,enumerable:!0,get:function(){return this.UT+1}}});f.Jpa=k})(U||(U={}));(function(f){function k(){}k.F7=0;k.fb=1;k.Sc=2;k.l7=98;k.upa=99;f.ix=k})(U||(U={}));
(function(f){(function(k){function h(d,b,a,c){a=void 0===a?null:a;c=void 0===c?null:c;this.index=0;this.fill=b instanceof k.cl.fJ?b:!isNaN(b)&&-1<b?new k.cl.fJ(b):new k.cl.fJ;this.font=d instanceof k.fonts.Yu?d:new k.fonts.Yu(d);this.format=a&&a instanceof k.format.Gs?a:new k.format.Gs(0,"");null!=c&&(this.textAlign=c)}h.prototype.Cc=function(){var d=this.textIndent||this.textAlign?w.O.bind('<alignment vertical="center" horizontal="{0}" wrapText="1"{1}/>',w.v(this.textAlign)?"left":this.textAlign,
w.v(this.textIndent)?"":' indent="'+this.textIndent+'"'):'<alignment vertical="center" wrapText="1"/>';return w.O.bind('<xf numFmtId="{0}"{1} fontId="{2}" fillId="{3}" borderId="1" xfId="0" applyFont="1" applyFill="1"{4}>{5}</xf>',this.format.Oy,0<this.format.Oy?' applyNumberFormat = "1"':"",this.font.VR,this.fill.TK,0<d.length?' applyAlignment="1"':"",d)};q.Object.defineProperties(h.prototype,{id:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.fill.id+":"+this.font.id+
":"+this.textIndent+":"+this.textAlign+":"+this.format.id}}});k.qA=h})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){function h(){this.md=new w.nb;this.cl=new w.nb;this.fonts=new w.nb;this.formats=new w.nb;this.Z9(new k.cl.fJ);var d=new k.cl.fJ;d.l3.m3="solid";d.TK=1;this.cl.Pa("solid",d)}h.prototype.tv=function(d){this.md.Bb(d.id)?d.index=this.md.getItem(d.id).index:(this.Z9(d.fill),this.addFont(d.font),this.md.Pa(d.id,d),d.index=this.md.length)};h.prototype.Z9=function(d){this.cl.Bb(d.id)?d.TK=this.cl.getItem(d.id).TK:(d.TK=this.cl.length,this.cl.Pa(d.id,d))};h.prototype.addFont=function(d){this.fonts.Bb(d.id)?
d.VR=this.fonts.getItem(d.id).VR:(this.fonts.Pa(d.id,d),d.VR=this.fonts.length)};h.prototype.xra=function(d){this.formats.Bb(d.id)?d.Oy=this.formats.getItem(d.id).Oy:(-1==d.Oy&&(d.Oy=k.format.Gs.kza()),this.formats.Pa(d.id,d))};h.prototype.Cc=function(){var d="",b="",a="",c="",e;if(0<this.formats.length){var g=0,l="";for(e=0;e<this.formats.length;e++){var m=this.formats.ea(e);""!=m.YR&&(m=m.Cc(),l+=m,g++)}0<g&&(d='<numFmts count="'+g+'">'+l+"</numFmts>")}for(e=0;e<this.cl.length;e++)g=this.cl.ea(e),
b+=g.Cc();for(e=0;e<this.fonts.length;e++)g=this.fonts.ea(e),a+=g.Cc();for(e=0;e<this.md.length;e++)g=this.md.ea(e),c+=g.Cc();return w.O.bind(f.ri.Moa,d,this.fonts.length+1,a,this.cl.length,b,this.md.length+1,c)};k.Npa=h})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b){this.rgb=b}d.prototype.Cc=function(b){b=void 0===b?"":b;0==b.length&&(b="color");b="<"+b;this.Gsa&&(b+=' auto="'+this.Gsa+'"');this.pJa&&(b+=' theme="'+this.pJa+'"');this.tJa&&(b+=' tint="'+this.tJa+'"');this.qAa&&(b+=' indexed="'+this.qAa+'"');for(var a=this.rgb.toString(16).toUpperCase();6>a.length;)a="0"+a;return b+(' rgb="FF'+a+'"/>')};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.rgb.toString(16)}}});
h.rA=d})(k.color||(k.color={}))})(f.md||(f.md={}))})(U||(U={}));(function(f){(function(k){(function(h){function d(b){return h.rA.call(this,b)||this}u(d,h.rA);d.prototype.Cc=function(){return h.rA.prototype.Cc.call(this,"bgColor")};h.Kpa=d})(k.color||(k.color={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b){return h.rA.call(this,b)||this}u(d,h.rA);d.prototype.Cc=function(){return h.rA.prototype.Cc.call(this,"fgColor")};h.Lpa=d})(k.color||(k.color={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b){this.TK=0;this.l3=new h.Mpa(void 0===b?-1:b)}d.prototype.Cc=function(){return"<fill>"+this.l3.Cc()+"</fill>"};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.l3.id}}});h.fJ=d})(k.cl||(k.cl={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b){b=void 0===b?-1:b;this.m3="solid";-1<b?(this.fgColor=new k.color.Lpa(b),this.bgColor=new k.color.Kpa(b)):this.m3="none"}d.prototype.Cc=function(){return w.O.bind('<patternFill patternType="{0}">{1}{2}</patternFill>',this.m3,w.v(this.fgColor)?"":this.fgColor.Cc(),w.v(this.bgColor)?"":this.bgColor.Cc())};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,get:function(){return w.v(this.fgColor)?"none":this.fgColor.id}}});h.Mpa=
d})(k.cl||(k.cl={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b,a,c){this.VR=0;w.v(b)||(this.name=b.replace(/"/g,"").trim());w.v(a)||(this.size=a);w.v(c)||(this.US=new k.color.rA(c))}d.prototype.Cc=function(){var b="<font>";this.bold&&(b+="<b/>");this.size&&(b+='<sz val="'+this.size+'"/>');this.US&&(b+=this.US.Cc());if(this.name){var a=this.name;this.name.indexOf(",")&&(a=this.name.split(",")[0].trim());b+='<name val="'+a+'"/>'}return b+"</font>"};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,
set:function(){},get:function(){return this.name+","+this.size+","+(w.v(this.US)?"":this.US.id)+","+this.bold+","+this.DC}}});h.Yu=d})(k.fonts||(k.fonts={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b,a){this.Oy=b;this.YR=a}d.prototype.Cc=function(){return'<numFmt numFmtId="'+this.Oy+'" formatCode="'+this.YR+'"/>'};d.kza=function(){return d.jea++};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,get:function(){return""!=this.YR?this.YR:this.Oy.toString()},set:function(){}}});d.Jaa=1;d.jea=d.Jaa;h.Gs=d})(k.format||(k.format={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){function k(){}k.format=function(h,d,b,a,c){d=void 0===d?null:d;b=void 0===b?!1:b;a=void 0===a?!1:a;c=void 0===c?-1:c;null==d&&(d=k.zR);if(isNaN(h)||w.v(h))return d.YG;if(Infinity==h)return d.GG;if(h==w.u.i.UN.TN)return d.OF;b||(b=d.Tf);h=d.Xd&&"%"!=d.pd?100*h:h;h=k.zta(h);var e=a||d.Xd?"%":d.pd,g=a||d.Xd?w.model.Zb.W.pf.Uy["1$"]:d.ou;a=a||d.Xd?w.model.Zb.W.pf.Rr["-1$"]:d.fu;var l=b?0:d.Ql;if(0==h&&0>l){var m="0";!b&&0<e.length&&(m=k.K_(m,e,g,a));return m}m=0>h?d.Jy-1:d.Jy;1<d.thousandsSeparator.length&&
!w.O.SAa(d.thousandsSeparator)&&(m-=Math.floor(m/3)*d.thousandsSeparator.length);!b&&0<d.waa&&(m-=d.waa);d.thousandsSeparator="&#39;"==d.thousandsSeparator?"'":d.thousandsSeparator;var n=h.toString().split(".");if(1<n.length&&10<=n[1].length&&d.gK){n=n[1];for(var p=0,t=0,r=n.length-2;0<=r;r--)if("9"!=n.charAt(r)&&"0"!=n.charAt(r)||n.charAt(r)!=n.charAt(r+1))if(4>p)p=0;else{t=r+1;break}else p++;4<=p&&(n=Math.pow(10,t),h=0==Math.round(h*n)/n?h:Math.round(h*n)/n)}n=4<l?Math.pow(10,m-l-1):Math.pow(10,
m-4);p=Math.pow(10,-(m-4));-1<c&&(l=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?d.Jy-c-5:d.Jy-c-4,0<=d.Ql&&(m=Math.min(m,d.Ql)),0<=d.mw&&(m=Math.min(m,d.mw)),m=Math.max(1,Math.min(20,m)),m=h.toExponential(m)):Math.abs(h)<p&&0>l?(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>l&&0>d.mw?m=h.toString():0==l||0==d.mw?m=Math.round(h).toString():(m=d.mw,0<l&&m>l&&(m=
l),0<l&&0<m&&m<l&&(l=m),m=k.toFixed(h,l,m));c=m.split(".");m=k.jy(c[0],d);c=1<c.length?c[1]:"";m=0<c.length?m+d.HF+c:m;!b&&0<e.length?m=k.K_(m,e,g,a):0==e.length&&0>h&&(m=k.ZR(m,d.xq));return m=k.N$(m,h)};k.toFixed=function(h,d,b){b=void 0===b?-1:b;if(0>=d&&0>=b)return h.toFixed(0);0>d&&(d=0);0>b&&(b=d);h=h.toLocaleString("en-US",{minimumFractionDigits:d,maximumFractionDigits:b});d=h.indexOf(".");return 0<=d?h.substr(0,d).replace(/[,\s\.]/g,"")+"."+h.substr(d+1):h.replace(/[,\s\.]/g,"")};k.IIa=function(h,
d,b,a){d=void 0===d?null:d;b=void 0===b?!1:b;a=void 0===a?!1:a;var c=0>h;h=Math.abs(h);if(1E3>h)return k.format(h,d,b,a);if(1E6>h){h/=1E3;var e="K"}else 1E9>h?(h/=1E6,e="M"):1E12>h?(h/=1E9,e="B"):(h/=1E12,e="T");var g=(c?"-":"")+k.toFixed(h,0==h%1?0:1),l=g.split(".");g=k.jy(l[0],d);l=1<l.length?l[1]:"";g=0<l.length?g+d.HF+l:g;g+=e;e=a||d.Xd?"%":d.pd;l=a||d.Xd?w.model.Zb.W.pf.Uy["1$"]:d.ou;a=a||d.Xd?w.model.Zb.W.pf.Rr["-1$"]:d.fu;!b&&0<e.length?g=k.K_(g,e,l,a):0==e.length&&c&&(g=k.ZR(g,d.xq));return g=
k.N$(g,h)};k.jy=function(h,d){d=void 0===d?null:d;var b=0>parseFloat(h);b&&(h=h.substr(1));var a=h;if(3<h.length){null==d&&(null==k.zR&&(k.zR=new w.model.Zb.W.pf("")),d=k.zR);a=Math.floor(h.length/3);var c=[],e=h.length%3;0<e&&c.push(h.substr(0,e));for(var g=0;g<a;g++)c.push(h.substr(e+3*g,3));a=c.join(d.thousandsSeparator)}b&&(a="-"+a);return a};k.K_=function(h,d,b,a){return 0==h.indexOf("-")?this.YK(h,d,a):this.mxa(h,d,b)};k.YK=function(h,d,b){h=0==h.indexOf("-")?h.substr(1):h;switch(b){case w.model.Zb.W.pf.Rr["-$1"]:h=
"-"+d+h;break;case w.model.Zb.W.pf.Rr["$1-"]:h=d+h+"-";break;case w.model.Zb.W.pf.Rr["($1)"]:h="("+d+h+")";break;case w.model.Zb.W.pf.Rr["(1$)"]:h="("+h+d+")";break;case w.model.Zb.W.pf.Rr["-1$"]:h="-"+h+d;break;case w.model.Zb.W.pf.Rr["$-1"]:h=d+"-"+h;break;case w.model.Zb.W.pf.Rr["1-$"]:h=h+"-"+d;break;case w.model.Zb.W.pf.Rr["1$-"]:h=h+d+"-"}return h};k.mxa=function(h,d,b){switch(b){case w.model.Zb.W.pf.Uy.$1:h=d+h;break;default:h+=d}return h};k.ZR=function(h,d){h=0==h.indexOf("-")?h.substr(1):
h;switch(d){case w.model.Zb.W.pf.gu["-1"]:h="-"+h;break;case w.model.Zb.W.pf.gu["- 1"]:h="- "+h;break;case w.model.Zb.W.pf.gu["1-"]:h+="-";break;case w.model.Zb.W.pf.gu["1 -"]:h+=" -";break;case w.model.Zb.W.pf.gu["(1)"]:h="("+h+")";break;default:h="-"+h}return h};k.N$=function(h,d){return 0<=d||-1==h.indexOf("-")||-1<h.search("[1-9]+")?h:h.replace("-","")};k.xg=function(h){return k.jy((h/1024).toFixed(0))};k.zta=function(h){var d=Math.abs(h);d<k.EPSILON?h=Math.floor(d):d-Math.floor(d)<k.EPSILON&&
(h=0>h?Math.ceil(h):Math.floor(h));return h};k.zR=new w.model.Zb.W.pf;k.EPSILON="undefined"===typeof Number.EPSILON?2.220446049250313E-16:Number.EPSILON;f.Tb=k})(x||(x={}));window["FM-DIVIDER"]="FM-DIVIDER";
(function(f){(function(k){(function(h){function d(){}d.J=function(b){b=d.Esa[b];for(var a="",c=0;c<b.length;c++)a+=String.fromCharCode(b[c]+101);return a};d.Esa=[[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],[-28,-31,13,-4,8,0,-69,-1,0,15,0,-2,15,0,-1,-55,-41,-3,13,-54,-39,-21,7,0,-4,14,0,-69,-2,10,9,15,-4,-2,15,-69,-2,7,4,0,9,15,14,-69,14,16,11,11,10,13,15,-69,4,1,-69,20,10,16,-69,3,-4,17,0,-69,-4,9,20,-69,11,13,
10,-3,7,0,8,-69,18,4,15,3,-69,15,3,0,-69,7,4,-2,0,9,14,0,-69,6,0,20,-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,-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,-1,0,17,-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],[7,10,-2,-4,7,3,10,14,15],[-28,9,17,-4,7,4,-1,-69,7,4,-2,0,9,14,0,-69,6,0,20,-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,4,9,17,-4,7,4,-1,-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,-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],[-12,10,16,-69,-4,13,0,-69,15,13,20,4,9,2,-69,15,10,-69,16,14,0,-69,15,3,0,-69,1,10,7,7,10,18,4,9,2,-69,6,0,20,-43,-41,-3,13,-54,-39],[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,-41,-3,13,-54,-39,-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,-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,-68,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,-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],[-25,4,-2,0,9,14,0,-69,6,0,20,-69,4,14,-69,0,8,11,15,20,-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],[-25,4,-2,0,9,14,0,-69,6,0,20,-69,4,14,-69,-2,10,13,13,16,11,15,0,-1,-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,-68,7,4,-2,0,9,14,0,-56,9,16,8,-3,0,13,-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],[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,-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,-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,-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],[-12,10,16,13,-69,15,13,4,-4,
7,-69,11,0,13,4,10,-1,-69,3,-4,14,-69,0,19,11,4,13,0,-1,-55,-41,-3,13,-39,-41,-3,13,-39,-41,16,-39,-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,-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,-17,10,-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,-69,11,7,0,-4,14,0,-69,-2,10,9,15,-4,-2,15,-69,10,16,13,-69,14,-4,7,0,14,-69,15,0,-4,8,
-69,1,10,13,-69,15,13,4,-4,7,-69,0,19,15,0,9,14,4,10,9,-55,-41,-54,-4,-39,-41,-54,16,-39],[-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13,-56,-13,-13,-13,-13],[-12,10,16,-69,-4,13,0,-69,15,13,20,4,9,2,-69,15,10,-69,16,14,0,-69,-4,-69,15,0,8,11,7,-4,15,0,-69,7,4,-2,0,9,14,0,-69,10,13,-69,15,13,4,-4,7,-69,6,0,20,-43,-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,-55,-41,-3,13,-39,-41,-3,13,-39,-91,-21,7,0,-4,14,
0,-69,13,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,-4,9,-69,-4,-2,15,16,-4,7,-69,6,0,20,-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],[-41,-3,13,-39,-31,13,0,0,-69,16,11,-1,-4,15,0,14,-69,15,4,7,7,-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,-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,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,-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],[],[],[],[],[],[-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],[-34,16,13,13,0,9,15,-69,6,0,20,-69,4,14,-69,-4,11,11,7,4,-2,-4,-3,7,0,-69,10,9,7,20,-69,15,10,-69,-41,-3,-39,22,
-53,24,-41,-54,-3,-39,-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,16,13,13,0,9,15,-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],[-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]];d.pea=0;d.Rfa=1;d.Wba=2;d.A1=3;d.pAa=4;d.Nva=
5;d.zea=6;d.nda=7;d.KJa=8;d.HBa=9;d.qJa=10;d.PCa=11;d.ywa=12;d.mfa=13;d.y8=14;d.Ppa=15;d.u8=16;d.Opa=17;d.Jua=18;d.mKa=19;d.yJ=20;d.uJ=21;d.SBa=22;d.Yha=23;d.IBa=24;d.JBa=25;d.advanced=31;d.all=33;d.yva=34;d.JJa=35;d.QBa=36;d.RBa=54;d.Eha=55;d.UFa=37;d.Uva=38;d.TBa=39;d.info=40;d.Mta=41;d.Xha=42;d.Kba=43;d.Ova=44;d.Dfa=45;d.FC=46;d.OCa=48;d.GCa=49;d.Lwa=50;d.SCa=53;d.mZ=56;d.IV=62;d.QFa=63;d.EU=64;d.Fta=65;d.FBa=66;d.nAa=67;d.oAa=68;d.referrer=69;d.Ewa=70;d.xwa=71;d.qea=72;d.iJa=73;d.jJa=74;d.sHa=
75;d.hKa=76;d.ova=77;d.gB=80;d.Lsa=81;d.Msa=82;h.na=d})(k.Ea||(k.Ea={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){function k(){}k.encode=function(h){var d="",b=0;for(h=k.Spa(h);b<h.length;){var a=h.charCodeAt(b++);var c=h.charCodeAt(b++);var e=h.charCodeAt(b++);var g=a>>2;a=(a&3)<<4|c>>4;var l=(c&15)<<2|e>>6;var m=e&63;isNaN(c)?l=m=64:isNaN(e)&&(m=64);d=d+this.Bx.charAt(g)+this.Bx.charAt(a)+this.Bx.charAt(l)+this.Bx.charAt(m)}return d};k.decode=function(h){var d="",b=0;for(h=h.replace(/[^A-Za-z0-9\+\/=]/g,"");b<h.length;){var a=this.Bx.indexOf(h.charAt(b++));var c=this.Bx.indexOf(h.charAt(b++));
var e=this.Bx.indexOf(h.charAt(b++));var g=this.Bx.indexOf(h.charAt(b++));a=a<<2|c>>4;c=(c&15)<<4|e>>2;var l=(e&3)<<6|g;d+=String.fromCharCode(a);64!=e&&(d+=String.fromCharCode(c));64!=g&&(d+=String.fromCharCode(l))}return d=k.Rpa(d)};k.Spa=function(h){h=h.replace(/\r\n/g,"\n");for(var d="",b=0;b<h.length;b++){var a=h.charCodeAt(b);128>a?d+=String.fromCharCode(a):(127<a&&2048>a?d+=String.fromCharCode(a>>6|192):(d+=String.fromCharCode(a>>12|224),d+=String.fromCharCode(a>>6&63|128)),d+=String.fromCharCode(a&
63|128))}return d};k.Rpa=function(h){for(var d="",b=0,a,c,e;b<h.length;)a=h.charCodeAt(b),128>a?(d+=String.fromCharCode(a),b++):191<a&&224>a?(c=h.charCodeAt(b+1),d+=String.fromCharCode((a&31)<<6|c&63),b+=2):(c=h.charCodeAt(b+1),e=h.charCodeAt(b+2),d+=String.fromCharCode((a&15)<<12|(c&63)<<6|e&63),b+=3);return d};k.Bx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.Via=k})(x||(x={}));
(function(f){function k(){this.bw=!0;this.errorMessage=null}function h(){}h.PQ=function(d,b,a){a=void 0===a?null:a;if(0==d.trim().length)return{bw:!1,errorMessage:w.model.A.j.pna};var c=(new f.BI).parse(d),e=new k;return null==c||void 0==c.length||"string"===typeof c?(e.bw=!1,e.errorMessage=k.Rca(d),e):this.eta(c,b,a,e)};h.eta=function(d,b,a,c){h.I8(d,b,a,c);return c};h.I8=function(d,b,a,c){for(var e=d[1],g=0;g<e.length;g++){var l=e[g],m=w.u.Na.U().I.measures;if("string"===typeof l||Array.isArray(l)&&
1===l.length){var n="string"!==typeof l?l[0]:l;if(n===b&&""!==n){c.bw=!1;c.errorMessage=k.Aza(n);break}l=m.getItem(n);w.v(l)&&0<=n.indexOf("[Measures].")&&(l=m.getItem(w.u.me.zg(n)));if(w.v(l)){if(w.v(a)||0>a.indexOf(n))c.bw=!1,c.errorMessage=k.Rca(n);break}m=d[0];if("string"===typeof m&&!h.ata(m,l)){c.bw=!1;c.errorMessage=k.Tza(m,b);break}}else Array.isArray(l)&&void 0!=l.length&&this.I8(l,b,a,c)}};h.ata=function(d,b){if(w.v(b))return!1;w.u.i.ca.Vx(d)&&(d=w.u.i.ca.ky(d));w.u.i.oa.Nc===w.u.Na.U().fa.Ba&&
-1===b.Tc.indexOf(d)&&w.u.i.ca.NONE===b.Ll&&(d=b.Ll);return b.Ka||-1!==b.Tc.indexOf(d)};f.mO=h;k.Rca=function(d){return w.model.A.j.B7+" <br> "+w.O.bind(w.model.A.j.rna,w.model.Nb.validate(d))};k.Tza=function(d,b){return w.model.A.j.B7+" <br> "+w.O.bind(w.model.A.j.ona,w.model.Nb.validate(d),w.model.Nb.validate(b))};k.Aza=function(d){return w.O.bind(w.model.A.j.qna,d)};f.ELa=k})(x||(x={}));
(function(f){function k(){}k.pL=function(h,d){if(!w.v(h)&&0!=h.length){var b=[];k.jY(h,d,b);return b}};k.pG=function(h,d){return w.v(h)||0==h.length?h:k.lQ(h,d)};k.lQ=function(h,d){var b=[];Array.isArray(h[0])?b[0]=this.lQ(h[0],d):void 0!==h[0]&&(b[0]=h[0]);if(Array.isArray(h[1])){if("string"===typeof h[1][0]){var a=d.getItem(h[1][0]);if(!w.v(a)&&a.Ka)return k.pG(a.Sd,d)}b[1]=this.lQ(h[1],d)}else void 0!==h[1]&&(b[1]=h[1]);Array.isArray(h[2])?b[2]=this.lQ(h[2],d):void 0!==h[2]&&(b[2]=h[2]);return b};
k.jY=function(h,d,b){if(!0===h[2])for(var a in h[1])this.jY(h[1][a],d,b);else if(!1===h[2]){a=h[1][0];h=h[0];var c=d.getItem(a);c&&c.Ka?this.jY(c.Sd,d,b):b.push(new w.model.bb.Ig(a,h))}};f.ws=k})(x||(x={}));
(function(f){(function(k){(function(h){function d(){var c=y.Fc.call(this)||this;c.ga=f.u.Na.U();c.PX=null;c.hf=b.oX;c.cD=a.oX;c.OE=!1;c.eQ=!1;c.YX=!1;c.Q9=!1;c.zH=!1;c.aaa=function(){return c.uDa()};c.gN=function(){return c.Aq()};c.Aaa=function(){return c.b2()};c.Cha=function(e){return c.CFa(e)};c.hK=function(){return c.Z1()};c.Wy=function(e){return c.NC(e)};c.Xfa=function(e){return c.M2(e)};c.gga=function(){return c.Ya()};c.sp=new k.bb.voa;k.B.C.U();return c}function b(){}function a(){}a.oX="UNDEFINED";
a.vE="START_REPORT";a.lE="OPENING_REPORT_FILE";a.Xw="LOADING_REPORT_FILE";a.kn="REPORT_FILE_LOADED";a.SI="REPORT_FILE_ERROR";a.Yq="REPORT_FILE_CANCELLED";a.lm="REPORT_CHANGED";a.pE="REPORT_DEFINED";a.cE="LOADING_DATA";a.$H="DATA_LOADED";a.YH="DATA_ERROR";a.ZH="DATA_FILE_CANCELLED";a.Uu="STRUCTURE_LOADED";a.DW="LOADING_OLAP_STRUCTURE";a.J7="OLAPstructure__LOADED";a.I7="OLAPstructure__ERROR";a.hja="CONNECTED_TO_DATA_SOURCE";a.dW="EMPTY_SLICE";a.hA="RUNNING_QUERY";a.hk="QUERY_COMPLETE";a.Ds="QUERY_ERROR";
a.dE="LOADING_LOCALIZATION";a.eE="LOCALIZATION_LOADED";a.AI="LOCALIZATION_ERROR";a.Oh="REPORT_COMPLETE";a.J5="CREATION_COMPLETE";h.fd=a;b.oX="UNDEFINED";b.INIT="INIT";b.jo="CLEAR";b.Boa="SET_REPORT";b.toa="RUN_QUERY";b.bJ="UPDATE_DATA";b.vpa="UPDATE_DATA_PARTIAL";b.Gz="CONNECT_TO";b.e7="LOAD";b.OPEN="OPEN";b.Jc="COMPLETE";h.so=b;u(d,y.Fc);d.prototype.qC=function(c){var e=this;f.v(c)&&(c={});this.hf=b.INIT;k.Ea.pc.U().ita(c,function(g){if(g)if(e.Td(a.vE),e.BL=k.bb.ReportValueObject.tb(c.global?c.global:
{}),k.B.C.U().N(a.lm,function(){return e.Ya()}),k.size.nd.U().N(a.lm,function(){return e.Ya()}),k.ta.gm.U().N(a.lm,function(){return e.Ya()}),e.hJa(e.BL),e.HQ(),"string"===typeof c.report)e.xJ(c.report);else{var l=c.report||{};e.Xga(l);k.B.C.zp(l.options||l,!0,!1);f.pe(function(){e.hf===b.INIT&&e.FJ(l)},1)}})};d.prototype.Td=function(c,e,g){this.cD=c;if(c==a.vE||c==a.lE||c==a.Xw)this.YX=this.eQ=this.OE=!1;c==a.hA&&(this.Q9=this.OE,this.OE=!1);c!=a.hk&&c!=a.Ds||!0!==this.Q9||(this.OE=!0);c==a.Oh&&
(this.eQ=this.OE=!0);c==a.pE&&(this.eQ=!0);c==a.Uu&&(this.YX=!0);(void 0===g||g)&&this.Wa(c,null,void 0===e?null:e)};d.prototype.Bw=function(c){f.v(c)&&(c={});this.hf=b.Boa;this.cancel();this.Td(a.vE);this.FJ(c.report||{})};d.prototype.ae=function(c){this.hf=b.toa;c=c instanceof f.u.I.Zq?c:f.u.I.Zq.tb(k.bb.SliceValueObject.tb(c),this.ga.I);var e=f.u.I.Zq.y$(c,this.ga.sa),g=f.u.I.Zq.x$(c,this.ga.sa);if(f.u.I.Zq.dZ(c,this.ga.sa)&&!e&&!g){var l=new k.bb.Wu;l.rowSizes=k.size.nd.mga;l.columnSizes=k.size.nd.U$;
l.rowSizesByIdx=k.size.nd.rowSizesByIdx;l.rowHeaderSizes=k.size.nd.rowHeaderSizes;l.columnHeaderSizes=k.size.nd.columnHeaderSizes;l.rowFilterSizes=k.size.nd.rowFilterSizes;k.size.nd.cZ(l)}e&&(k.size.nd.rowSizes={});g&&(k.size.nd.columnSizes={});c.BCa(this.ga.sa);c.T4();c.lia();k.Ta.U().Wa("reset_grid");f.u.bf.ij.uc().se=!1;this.ga.nD(c);this.ga.filter();k.Qa.U().Da(new k.Xc(k.Qa.RI))};d.prototype.Jd=function(c,e){this.hf=b.bJ;this.cancel();this.Td(a.vE);var g=this.Gr();e.ignoreSorting&&(g.slice.columnSorting=
{},g.slice.rowSorting={});e.ignoreScroll&&k.Ta.U().Wa("reset_grid");f.ha(g.localization)||delete g.localization;var l=g.connectionInfo.mapping;g.connectionInfo=f.u.I.ConnectionInfo.tb(c);g.connectionInfo.mapping=g.connectionInfo.ob||g.connectionInfo.mapping.ob&&!g.connectionInfo.mapping.Sn&&void 0!==l?l:g.connectionInfo.mapping;c=g.La();null==g.connectionInfo.requestHeaders||f.v(c.dataSource)||(c.dataSource.requestHeaders=g.connectionInfo.requestHeaders);this.FJ(c,!0,e)};d.prototype.TJa=function(c,
e){var g=this;this.hf=b.vpa;var l=this.ga.sa.clone();this.cancel();this.Mga();this.Td(a.vE);e.ignoreSorting&&(l.Sb.rB(),l.ic.rB());e.ignoreScroll&&k.Ta.U().Wa("reset_grid");this.Id.connectionInfo.data&&(e=this.Id.connectionInfo.data,e=e.concat(c),this.Id.connectionInfo.data=e);this.ga.Jd(c);this.FY();f.u.bf.ij.uc().reset(!1);this.zH=!0;f.pe(function(){g.zH=!1},500);this.ga.sa=l;this.ga.filter()};d.prototype.AF=function(c){this.hf=b.Gz;this.cancel();this.Td(a.vE);this.FJ(c)};d.prototype.load=function(c,
e){this.hf=b.e7;this.cancel();this.xJ(c,e)};d.prototype.xJ=function(c,e){var g=this;this.Td(a.Xw);this.sp.N(k.bb.lh.kn,function(l){return g.OC(l)});this.sp.N(k.bb.lh.Qu,function(){return g.rM()});this.sp.load(c,e)};d.prototype.open=function(){var c=this;this.hf=b.OPEN;this.Td(a.lE);this.sp.cancel();this.sp.N(k.bb.lh.TI,function(){return c.Q2()});this.sp.N(k.bb.lh.kn,function(e){return c.OC(e)});this.sp.N(k.bb.lh.Qu,function(){return c.rM()});this.sp.N(k.bb.lh.Yq,function(){return c.qM()});this.sp.open()};
d.prototype.Xga=function(c){null!=c&&c.hasOwnProperty("dataSource")&&c.dataSource.hasOwnProperty("browseForFile")&&c.dataSource.browseForFile&&(c.dataSource.requestPermission=!0)};d.prototype.OC=function(c){this.Xga(c.bb);f.za(!1);this.Td(a.kn);this.FJ(c.bb)};d.prototype.rM=function(){f.za(!1);this.Td(a.SI);this.Td(a.pE);this.Td(a.Oh)};d.prototype.Q2=function(){this.Wa(a.Xw,null,"")};d.prototype.qM=function(){this.Td(a.Yq);this.Td(a.pE);this.Td(a.Oh)};d.prototype.Ya=function(){this.cD!=a.Oh&&this.cD!=
a.hk||k.Qa.U().Da(new k.Xc(k.Qa.RI))};d.prototype.FJ=function(c,e,g){var l=this;e=void 0===e?!1:e;g=void 0===g?null:g;1>k.Ea.pc.oj()||(this.Id=c instanceof k.bb.ReportValueObject?c:k.bb.ReportValueObject.tb(c),this.Id.connectionInfo.CBa=e,this.Id.connectionInfo.aia=g,e||k.Ta.U().Wa("reset_grid"),this.gta(this.Id),this.Mga(),this.Id.connectionInfo.ob?this.vea():this.Id.connectionInfo.mapping.bCa(this.Id.connectionInfo.requestHeaders,function(){return l.vea()}))};d.prototype.Mga=function(){this.Id.connectionInfo.ob?
this.qn&&!this.qn.ob&&(f.u.me.yD=!this.qn.Hc||this.qn.Ba==f.u.i.oa.Gf||this.qn.Ba==f.u.i.oa.API,f.u.me.BH=!this.qn.Hc||this.qn.Ba==f.u.i.oa.Gf||this.qn.Ba==f.u.i.oa.API):(f.u.me.yD=!this.Id.connectionInfo.Hc||this.Id.connectionInfo.Ba==f.u.i.oa.Gf||this.Id.connectionInfo.Ba==f.u.i.oa.API,f.u.me.BH=!this.Id.connectionInfo.Hc||this.Id.connectionInfo.Ba==f.u.i.oa.Gf||this.Id.connectionInfo.Ba==f.u.i.oa.API)};d.prototype.gta=function(c){"flat"!=c.options.R("gridType")||c.options.R("viewType")!=f.K.xd.fn||
c.connectionInfo.ob||c.connectionInfo.Ba!=f.u.i.oa.API||(c.options.la("viewType",f.K.xd.xs),f.Va(f.O.bind(k.A.j.IW),k.A.j.uO,f.rb.Ik))};d.prototype.Gr=function(c){c=void 0===c?{}:c;return h.W.i8.FJa(this.Eya(c))};d.prototype.clear=function(c){c=void 0===c?!1:c;this.cancel();this.hf=b.jo;this.HQ();c?this.ga.clearData():this.ga.cancel();this.Td(a.Oh)};d.prototype.cancel=function(){this.sp.cancel();this.gHa();this.zH=!1;f.u.me.yD=!1;f.u.me.BH=!1;f.za(!1)};d.prototype.vea=function(){var c=this;f.ha(this.BL.localization)?
this.bfa(null):(this.Td(a.dE),k.A.Xz.U().load(this.BL.localization,function(e){return c.bfa(e)},!0),this.BL.localization=null)};d.prototype.bfa=function(c){var e=this;f.ha(this.Id.localization)?(k.A.Xz.U().reset(),this.$G(c)):(this.Td(a.dE),k.A.Xz.U().load(this.Id.localization,function(g){return e.$G(g)}))};d.prototype.$G=function(c){c?this.Td(a.eE):!1===c&&this.Td(a.AI);this.fCa()};d.prototype.fCa=function(){this.hf!=b.Gz&&this.hf!=b.bJ&&(this.hf!=b.OPEN&&this.HQ(),k.B.C.zp(this.Id.options,!0,!1),
this.hf!=b.OPEN&&(k.B.C.An=k.B.C.zF));var c=this.hf;this.Td(a.pE);c==this.hf&&((c=this.Id.connectionInfo,!f.v(this.fa)&&!this.fa.ob&&this.fa.isEqual(c)&&!k.B.C.YM&&this.ga.fa&&this.ga.I&&this.ga.I.ce)?(c=f.u.bf.ij.uc(),this.Id.connectionInfo.aia&&this.Id.connectionInfo.aia.keepMembersOrder?c.se=!0:c.reset(),this.FY(),this.ga.$Ga()):(c.ob&&this.qn&&!this.qn.ob&&(c=this.qn),c.ob)?(this.fa=c,this.ga.cancel(),this.Td(a.Oh),f.za(!1)):(c.Hc?this.Td(a.DW):this.Td(a.cE),null!==this.ga.qa&&(this.hf==b.Gz||
this.hf==b.OPEN||f.v(this.fa)||this.fa.ob||c.Ba===this.fa.Ba?this.fa.Ba===f.u.i.oa.API&&this.Id.connectionInfo.Ba===f.u.i.oa.API&&f.u.bf.ij.wva!==f.u.bf.ij.vJa(this.Id.options)&&(this.ga.qa.tr(),this.ga.qa=null):(this.ga.qa.tr(),this.ga.qa=null)),this.dta(c),f.u.bf.ij.uc(),this.FY(),this.ga.connect(c)))};d.prototype.dta=function(c){!k.B.C.oc||f.v(c)||c.ob||c.KG||(k.B.C.oc=!1)};d.prototype.uDa=function(){this.hf===b.Gz?(this.HQ(),this.ga.sa&&this.ga.sa.clear(),this.ga.I&&this.ga.I.clear()):this.v$(!1);
this.Td(a.hja);this.fa=this.Id.connectionInfo};d.prototype.Aq=function(){this.Td(a.Uu);var c=f.u.I.Zq.tb(this.Id.slice,this.ga.I,!1,f.u.i.oa.API!==this.Id.connectionInfo.Ba);this.v$(!0);this.ga.nD(c);this.fa.Hc?(this.Td(a.J7),c.ob?(this.Td(a.dW),this.Td(a.Oh)):(k.B.C.An=k.B.C.zF,this.ga.filter())):(this.Td(a.$H),k.B.C.An=k.B.C.zF,this.ga.filter())};d.prototype.b2=function(){this.Td(a.ZH);this.Td(a.Oh)};d.prototype.CFa=function(c){var e=this.Id.connectionInfo;k.B.C.zp(this.Id.options);this.ga.cancel();
f.za(!1);e.Hc?this.Td(a.I7,c.data):this.Td(a.YH,c.data);this.Td(a.Oh)};d.prototype.Z1=function(){this.Td(a.hA)};d.prototype.NC=function(c){this.Td(a.hk,c.rp);this.cD!=a.Oh&&this.Td(a.Oh,null,c.rp!=f.u.i.Kd.eI)};d.prototype.M2=function(c){this.Td(a.Ds,c.data);this.cD!=a.Oh&&this.Td(a.Oh)};d.prototype.FY=function(){this.ga.N(f.u.cg.iX,this.aaa);this.ga.N(f.u.cg.Uu,this.gN);this.ga.N(f.u.cg.hX,this.Aaa);this.ga.N(f.u.cg.jX,this.Cha);this.ga.N(f.u.cg.QH,this.hK);this.ga.N(f.u.cg.hk,this.Wy);this.ga.N(f.u.cg.Ds,
this.Xfa);this.ga.N(a.lm,this.gga)};d.prototype.gHa=function(){this.ga.mb(f.u.cg.iX,this.aaa);this.ga.mb(f.u.cg.Uu,this.gN);this.ga.mb(f.u.cg.hX,this.Aaa);this.ga.mb(f.u.cg.jX,this.Cha);this.ga.mb(f.u.cg.QH,this.hK);this.ga.mb(f.u.cg.hk,this.Wy);this.ga.mb(f.u.cg.Ds,this.Xfa);this.ga.mb(a.lm,this.gga)};d.prototype.save=function(c,e,g,l,m){return this.sp.save(c,e,g,l,void 0===m?!1:m,this.Gr(c instanceof Object?c:{}))};d.prototype.Eya=function(c){if(void 0===this.ub&&void 0===this.ga.I&&void 0===this.ga.sa)return null;
var e=c.hasOwnProperty("withDefaults")?1==c.withDefaults:!1;c=c.hasOwnProperty("withGlobals")?1==c.withGlobals:!1;var g=new h.W.i8;g.withDefaults=e;g.iKa=c;g.ub=c&&this.ub.ob&&!this.qn.ob?this.qn:this.ub;g.I=this.ga.I;g.Lb=this.ga.sa;g.B=k.B.C.Vv(e,c);g.formats=k.Zb.Ni.eya();g.conditions=k.ta.gm.conditions;g.customFields=k.bb.XH.customFields;g.Fw=k.size.nd.zG();this.Id&&(g.localization=c&&null==this.Id.localization&&null!=this.PX?this.PX:this.Id.localization);return g};d.prototype.hJa=function(c){this.qn=
c.connectionInfo;this.HS=c.slice.drillThrough;k.B.C.qIa(c.options);this.PX=c.localization};d.prototype.HQ=function(){f.u.bf.ij.dispose();k.size.nd.clear();k.ta.gm.v3();k.Zb.Ni.clear();k.bb.XH.customFields=[];k.B.C.clear()};d.prototype.v$=function(c){c=void 0===c?!1:c;k.B.C.zp(this.Id.options,!1);c&&(k.size.nd.clear(),k.size.nd.cZ(this.Id.Fw));k.ta.gm.v3();for(c=0;c<this.Id.conditions.length;c++){var e=k.ta.W.Q5.tb(this.Id.conditions[c]);k.ta.gm.add(e)}k.Zb.Ni.clear();for(c=0;c<this.Id.formats.length;c++)k.Zb.Ni.kD(this.Id.formats[c]);
for(c=0;c<this.Id.slice.measures.length;c++)if(e=this.Id.slice.measures[c],void 0!==e.format){var g=void 0===e.aggregation?"":e.aggregation;g=f.u.i.ca.Vx(g)?f.u.i.ca.ky(g):g;k.Zb.Ni.lH(e.format,e.uniqueName,g)}k.bb.XH.customFields=this.Id.customFields};d.prototype.dispose=function(){this.cancel();k.ta.gm.dispose();k.B.C.dispose();k.$r.nE.dispose();k.rC.qO.dispose();k.A.Xz.dispose();k.Ea.pc.dispose();k.size.nd.dispose();k.Zb.Ni.dispose();this.sp.dispose();k.bb.XH.customFields=[];this.ga=this.Id=this.e9=
this.BL=this.ub=this.sp=null};q.Object.defineProperties(d.prototype,{fa:{configurable:!0,enumerable:!0,get:function(){return f.v(this.ub)||this.ub.ob?this.qn:this.ub},set:function(c){this.ub=c}},dc:{configurable:!0,enumerable:!0,get:function(){return this.OE}},tT:{configurable:!0,enumerable:!0,get:function(){return this.eQ}},xT:{configurable:!0,enumerable:!0,get:function(){return this.YX}},HS:{configurable:!0,enumerable:!0,get:function(){return this.e9},set:function(c){this.e9=c}}});h.Voa=d})(k.cc||
(k.cc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){d.qu=[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]}function b(){}b.cC=function(a){return a==b.Gf?h.na.J(h.na.xwa):h.na.J(a+28)};b.Bl=0;b.Jja=2;b.Zd=3;b.zia=4;b.WN=5;b.Gf=6;h.po=b;d.U=function(){null==d.instance&&(d.instance=
new d);return d.instance};d.dispose=function(){d.vV=null;d.XF=null;d.oea=null;d.B1=null;d.Rx=null;d.qu=null;d.instance=null};d.prototype.ita=function(a,c){this.Eb=c;a[h.na.J(h.na.pea)]?this.SM(a[h.na.J(h.na.pea)]):a[h.na.J(h.na.Rfa)]?this.SM(a[h.na.J(h.na.Rfa)]):a[h.na.J(h.na.Wba)]?this.SM(a[h.na.J(h.na.Wba)]):a[h.na.J(h.na.A1)]?this.uea(a[h.na.J(h.na.A1)]):window[h.na.J(h.na.qea)]?this.SM(window[h.na.J(h.na.qea)]):this.uea(a[h.na.J(h.na.A1)])};d.prototype.SM=function(a){a=k.Nb.validate(a);d.Rx=d[h.na.J(h.na.Kba)+
h.na.J(h.na.u8)]=a;d.error=!1;this.Eb(!0)};d.prototype.jta=function(a){if(void 0==a)return b.Bl;if(a.trim()==h.na.J(h.na.hKa))return this.Vn(h.na.J(h.na.Yha)),b.Bl;a=a.trim();var c=this.ZAa(a);c&&(a=this.yxa(a));if(!this.$da(a))return b.Bl;a=this.GHa(a);var e=this.$ya(a);c&&(d.Cx=!0);var g=this.Aya(),l=this.iBa(g),m=this.eBa(g);if(!d.r$&&this.e1())return this.Vn(h.na.J(h.na.pAa)),b.Bl;if(c&&d.uu)if(this.QQ(a))d.Ro=!0;else return;if(d.uu&&!this.QQ(a))return b.Bl;if(d.Ro)if(l||m||c){if(!this.cta(a))return b.Bl}else return this.Vn(f.O.bind(h.na.J(h.na.Nva),
g)),b.Bl;if(d.pp&&!this.kta(a,l||m?h.na.J(h.na.zea):g))return b.Bl;if(e==b.Bl||f.v(e))this.Vn(h.na.J(h.na.nda));else if(!this.lta(a))return b.Bl;d.uu||d.Ro||d.pp||(e=b.Bl);return e};d.oj=function(){var a=[h.na.J(h.na.Kba),"G"].join("X");return d.U().jta(d[a])};d.prototype.Vn=function(a,c,e){e=void 0===e?!1:e;(void 0===c||c)&&null!=d.Rx&&0<d.Rx.length&&(a+=h.na.J(h.na.gB)+h.na.J(h.na.gB)+h.na.J(h.na.KJa)+d.Rx);e&&(a+=h.na.J(h.na.gB)+h.na.J(h.na.Eha)+x.gh.format(d.vV,"MM/dd/yyyy"));c=new Date(parseFloat(f.Ug.NV)/
61);a+=h.na.J(h.na.gB)+h.na.J(h.na.gB)+h.na.J(h.na.ova)+f.Ug.qs+(" ("+h.na.J(h.na.Lsa)+" "+x.gh.format(c,"MM/dd/yyyy")+")");d.error=!0;f.za(!1);this.Eb(!1);f.Va(a,k.A.j.ya,f.rb.ya,[],null,!0)};d.prototype.uea=function(a){var c=this;a||(a=x.hx.AG(h.na.J(h.na.HBa)));a=a+h.na.J(h.na.qJa)+Date.now();this.xhr=new XMLHttpRequest;this.xhr.open("GET",a,!0);this.xhr.onerror=function(){return c.Yea()};this.xhr.onreadystatechange=function(e){return c.lu(e)};this.xhr.send()};d.prototype.lu=function(){null!=this.xhr&&
4===this.xhr.readyState&&(200===this.xhr.status?this.vEa(this.xhr.responseText):this.Yea())};d.prototype.vEa=function(a){this.SM(a)};d.prototype.Yea=function(){this.Vn(h.na.J(h.na.PCa))};d.prototype.iBa=function(a){return null==a||-1==a.indexOf(".")?!0:!1};d.prototype.eBa=function(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)};d.prototype.ZAa=function(a){return a.substr(0,2)==h.na.J(h.na.u8)};d.prototype.yxa=function(a){a=a.substr(2);
var c=Math.floor((new Date).getTime()/6048E5),e=parseInt(a.substr(0,2),16);a=a.replace(RegExp("-","g"),"").substr(2);for(var g=0;2>g;g++){for(var l=0;5>l;l++){for(var m=e*c*l,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.$da(n,!1))return n}c++}return"-"};d.prototype.e1=function(){if(self==top||-1<window[h.na.J(h.na.yJ)][h.na.J(h.na.uJ)].toLowerCase().indexOf(h.na.J(h.na.Fta))||-1<window[h.na.J(h.na.yJ)][h.na.J(h.na.uJ)].toLowerCase().indexOf(h.na.J(h.na.FBa))||
-1<window[h.na.J(h.na.yJ)][h.na.J(h.na.uJ)].toLowerCase().indexOf(h.na.J(h.na.iJa))||-1<window[h.na.J(h.na.yJ)][h.na.J(h.na.uJ)].toLowerCase().indexOf(h.na.J(h.na.jJa)))return!1;try{window.parent.document}catch(a){return!0}return!1};d.prototype.$da=function(a,c){c=void 0===c?!0:c;if(null==a||0==a.length)return c&&this.Vn(h.na.J(h.na.ywa)),!1;if(a.trim()==h.na.J(h.na.IBa))return c&&this.Vn(h.na.J(h.na.JBa),!1),!1;a=a.trim().replace(/-/gi,"");if(a.substr(0,2)==h.na.J(h.na.y8).substr(0,1)+7){var e=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.na.J(h.na.y8)||a.substr(0,2)==h.na.J(h.na.Ppa)||a.substr(0,2)==h.na.J(h.na.Opa)?c&&this.Vn(h.na.J(h.na.mfa),!0,!0):c&&this.Vn(h.na.J(h.na.nda)),!1;for(var l=0;l<a.length;l+=2){var m=parseInt(a.substr(l,2),36);isNaN(m)||(e+=m)}return g!=e||1>g?(c&&this.Vn(h.na.J(h.na.Jua)),!1):!0};d.prototype.GHa=function(a){a=a.trim().replace(/-/gi,"");var c=parseInt(a.substring(2,
4),36);a=a.substring(8).toLowerCase();for(var e="",g=0;g<a.length;g+=2)e+=String.fromCharCode(parseInt(a.substr(g,2),36)^Math.abs(Math.sin(g/2+2)*c*(g/2+7))%256);return e};d.prototype.$ya=function(a){d.Oaa=x.Bda();a=a.charCodeAt(0);d.r$=256<=a;a%=256;d.Ro=128<=a;a%=128;d.Zca=64<=a;a%=64;d.pp=32<=a;a%=32;d.Cx=16<=a;a%=16;d.uu=8<=a;return a%8};d.prototype.Aya=function(){var a;if(this.e1()){if(a=document[h.na.J(h.na.referrer)])a=a.replace(h.na.J(h.na.nAa),""),a=a.replace(h.na.J(h.na.oAa),""),a=a.split("/")[0]}else{a=
h.na.J(h.na.yJ);var c=h.na.J(h.na.uJ);a=window[a][c]}if(null==a)return null;a=a.replace(h.na.J(h.na.mKa),"");return a=a.split(":")[0]};d.prototype.lta=function(a){var c=d.uu?a.substr(-6,3):a.substr(-3);a=new Uint8Array(c.length);for(var e=0;e<c.length;e++)a[e]=c.charCodeAt(e)^d.qu[e];c="";for(e=0;e<a.byteLength;e++)c+=String.fromCharCode(a[e]);a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());d.vV=a;e=new Date(parseFloat(f.Ug.NV)/61);return!a||isNaN(a.getTime())||a<e?(this.Vn(h.na.J(h.na.mfa),
!0,!0),!1):!0};d.prototype.QQ=function(a){var c=a.substr(-3);a=new Uint8Array(c.length);for(var e=0;e<c.length;e++)a[e]=c.charCodeAt(e)^d.qu[e];c="";for(e=0;e<a.byteLength;e++)c+=String.fromCharCode(a[e]);a=new Date(864E5*(parseInt(c,34)+17001)+6E4*(new Date).getTimezoneOffset());d.XF=a;a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());return!a||isNaN(a.getTime())||a<new Date?(d.pp||d.Ro?this.Vn(h.na.J(h.na.SBa)):this.Vn(h.na.J(h.na.Yha)),!1):!0};d.prototype.cta=function(a){var c=
a;a=a.substr(1);for(var e=new Uint8Array(a.length),g=0;g<a.length;g++)e[g]=a.charCodeAt(g)^d.qu[g];a="";for(g=0;g<e.byteLength;g++)a+=String.fromCharCode(e[g]);d.B1=a.split(String.fromCharCode(224))[0];return d.uu&&!this.QQ(c)?!1:!0};d.prototype.kta=function(a,c){var e=a;a=a.substr(1);for(var g=new Uint8Array(a.length),l=0;l<a.length;l++)g[l]=a.charCodeAt(l)^d.qu[l];a="";for(l=0;l<g.byteLength;l++)a+=String.fromCharCode(g[l]);g=a.split(String.fromCharCode(224));a=g[0];d.oea=g.shift();if(d.uu&&!this.QQ(e))return!1;
if(c==h.na.J(h.na.zea))return!0;e=" ";d.Zca&&c.length>=a.length-2&&(e="*."+c.substring(c.length-a.length+2));return a!=c&&a!=e&&a!=f.Coa.hash(c)?(this.Vn(f.O.bind(h.na.J(h.na.QFa),a)),!1):!0};d.UBa=function(){return b.cC(d.oj())};d.error=!1;d.uu=!1;d.pp=!1;d.Ro=!1;d.Oaa=!1;d.XF=new Date(2009,9,30);d.vV=new Date(2009,9,30);d.Cx=!1;d.Rx="";d.Zca=!1;d.r$=!1;h.pc=d})(k.Ea||(k.Ea={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){function k(){}k.ija='<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>';k.jja=
'<Override PartName="{0}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>';k.Qpa='<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>';
k.Hia='<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>';
k.Hja='<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>';k.Epa='<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>';
k.Fpa='<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>';
k.Gpa='<Relationship Id="{0}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="{1}"/>';k.apa='<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>';
k.Moa='<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>';
k.Doa='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="5" uniqueCount="5">{0}</sst>';k.Eoa='<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>';
k.Hs='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';f.ri=k})(U||(U={}));
(function(f){(function(k){function h(){var d=y.Fc.call(this)||this;d.nC=new f.nb;d.EG=new f.nb;d.AZ=0;if(null!=h.instance)throw Error("Singleton");return d}u(h,y.Fc);h.U=function(){void 0==h.instance&&(h.instance=new h);return h.instance};h.prototype.nD=function(d){this.fa.Hc||d.ob&&f.model.B.C.hha&&d.M1&&d.kCa();for(var b=0;b<d.pages.length;b++){var a=d.pages.ea(b);a.filter.ai&&a.filter.pB()}var c=d.rc(!1,!1);for(b=0;b<c.length;b++)if(a=c.ea(b),a.cb=[],a.filter.ai&&a.filter.measure&&(-1==a.filter.measure.index&&
(a.filter.measure.index=d.zca(a.filter.measure.uniqueName,a.filter.measure.$),-1==a.filter.measure.index&&(a.filter.measure.index=d.zca(a.filter.measure.uniqueName))),-1!=a.filter.measure.index)){var e=d.$B(a.filter.measure.index);f.v(e)||(a.filter.measure.$=e.$)}this.sa=d};h.prototype.$Ga=function(){!this.fa.Hc&&this.I&&(this.I.ce=!1,this.$C());for(var d=this.I.rc(!1),b=0;b<d.length;b++){var a=d.ea(b);a.nt();a.rZ();this.fa.Hc?0<a.JB.length&&(a.ce=!1):a.ce=!1}this.sa&&this.sa.clear();this.HK()};h.prototype.connect=
function(d){var b=this;f.v(this.Ys)||this.Ys.cancel();this.Ys=k.Xoa.Rza(d);this.Ys.load(d,function(){return b.HK()},function(a){b.Wa(k.cg.jX,null,{error:a})},function(){b.cancel(!1);b.fa=d;b.Ap=b.Ys;b.qa=b.fa.Ba==k.i.oa.Gf?new k.external.De.zka(b):b.fa.Ba==k.i.oa.API?new k.external.kc.Z4(b):b.fa.Hc?new k.external.yb.Kna(b):new k.local.xO(b);b.Ys=null;b.Gm=k.cW.$_(b.fa);null!=b.I&&b.I.clear();b.I=k.I.Woa.Qza(b.fa.Ba);b.I.xIa(d.mapping);b.Wa(k.cg.iX)},function(){b.Wa(k.cg.hX)})};h.prototype.HK=function(){this.I.ce=
!0;this.Wa(k.cg.Uu)};h.prototype.cancel=function(d){d=void 0===d?!0:d;x.Pk.cancel();this.Ap&&(this.Ap.cancel(),this.Ap=null);this.Gm&&(this.Gm.cancel(),this.Gm=null);this.nC=new f.nb;this.EG=new f.nb;d&&this.I&&(this.I.clear(),this.I=null);d&&this.sa&&(this.sa.clear(),this.sa=null);d&&this.qa&&(this.qa.tr(),this.qa=null);d&&this.Ys&&(this.Ys.cancel(),this.Ys=null);this.AZ=0};h.prototype.clearData=function(){this.Gm&&(this.Gm.cancel(),this.Gm=null);this.qa&&this.qa.tr()};h.prototype.PG=function(d,
b){var a=this;null!=d&&(this.qa.select(!1),null!==this.Gm&&this.Gm.cancel(),this.Gm=k.cW.$_(this.fa),this.Gm.load(this.fa,d,b,function(c){return a.NF(c)}))};h.prototype.Hm=function(d){this.Da(new k.WW(void 0===d?"":d))};h.prototype.NF=function(d){this.Wa(k.cg.Ds,null,{error:d})};h.prototype.filter=function(){this.select(k.i.Kd.bO)};h.prototype.sort=function(){this.Hm()};h.prototype.expand=function(d,b,a,c){var e=this;c=void 0===c?!0:c;this.Da(new k.PD(k.i.Kd.Oz));this.n3(d,b,a,function(){e.qa.expand(d,
b,a);c&&(e.Hm(k.i.Kd.Oz),f.pe(function(){e.Wa(f.model.cc.fd.lm)},1))})};h.prototype.$pa=function(d,b,a){a=f.v(a)?this.sa.Of:[a];for(var c=!0,e=0;e<a.length;e++){var g=b===k.i.ia.Ia?this.qa.Fa(d,[],a[e]):this.qa.Fa([],d,a[e]);if(!isNaN(g)){c=!1;break}}return c};h.prototype.n3=function(d,b,a,c){this.fa.Hc?this.$pa(d,b,a)?c():(a=new k.oE(k.i.Kd.Oz),a.We=d,a.ft=b,a.body=k.gA.YB(this.sa,this.fa).expand(b,d),void 0===a.body?c():this.PG(a,c)):c()};h.prototype.Zpa=function(d,b,a){if(null!=b.hierarchy.nc)return!1;
var c=f.v(void 0)?this.sa.Of:[void 0],e=!0;d=d.slice(0);d[d.length-1]=b.ordinal;for(b=0;b<c.length;b++){var g=a===k.i.ia.Ia?this.qa.Fa(d,[],c[b]):this.qa.Fa([],d,c[b]);if(!isNaN(g)){e=!1;break}}return e};h.prototype.Mfa=function(d,b,a,c){if(this.fa.Hc)if(this.Zpa(d,b,a))c();else{var e=new k.oE(k.i.Kd.Fu);e.We=d;e.ft=a;e.body=k.gA.YB(this.sa,this.fa).tf(a,d,b,b.level.uniqueName);void 0===e.body?c():this.PG(e,c)}else c()};h.prototype.collapse=function(d,b,a,c){c=void 0===c?!0:c;this.qa.collapse(d,b,
a);c&&this.Hm(k.i.Kd.y5)};h.prototype.drillThrough=function(d,b,a,c,e){var g=this;e=void 0===e?null:e;var l=new k.oE(k.i.Kd.eI);l.body=k.gA.YB(this.sa,this.fa).drillThrough(d,b,a,e?e.slice(0):null);f.za(!0,f.model.A.j.Hf);e=new k.PD(k.i.Kd.eI);this.Da(e);this.Gm.cancel();this.Gm=k.cW.$_(this.fa);this.Gm.drillThrough(this.fa,l,d,b,a,function(m){c(m);g.Hm(l.type)},function(){c();g.Hm(l.type)})};h.prototype.expandAll=function(d,b){this.sa.expandAll=d;this.sa.drillAll=b;this.sa.xta();this.sa.wta();this.fa.Hc&&
this.qa.vF()};h.prototype.tf=function(d,b,a,c){var e=this;b.hierarchy.$x(b);var g=new k.PD(k.i.Kd.Fu);this.Da(g);this.fa.Hc?b.ah?(this.qa.tf(d,b,a,c),this.Hm(k.i.Kd.Fu)):this.Uj(b.hierarchy,b,function(){var l=new k.oE(k.i.Kd.Fu);l.We=d;l.ft=a;l.body=k.gA.YB(e.sa,e.fa).tf(a,d,b);e.PG(l,function(){e.qa.tf(d,b,a,c);for(var m=[],n=b.level.sb+1;n<b.hierarchy.ra.length;n++){var p=b.hierarchy.ra.ea(n);p&&(m=m.concat(b.hierarchy.JB(p)))}if(0<m.length){p=[];var t,r;for(n=0;n<m.length;n++)for(r=t=b.hierarchy.va(m[n]);void 0!==
t&&void 0!==t.parent;){if(t.parent.ordinal===b.ordinal){p.push(r);break}t=t.parent}e.rea(l,d,a,p,c)}else e.Hm(l.type)})}):(this.qa.tf(d,b,a,c),this.Hm(k.i.Kd.Fu))};h.prototype.rea=function(d,b,a,c,e){var g=this;if(0<c.length){var l=c.shift(),m=b.slice(0);m[m.length-1]=l.ordinal;d.We=m;d.body=k.gA.YB(this.sa,this.fa).tf(a,m,l);this.PG(d,function(){g.qa.tf(m,l,a,e);g.rea(d,b,a,c,e)})}else this.Hm(d.type)};h.prototype.Gn=function(d,b,a,c,e){var g=this,l=k.gA.YB(this.sa,this.fa);c=new k.PD(k.i.Kd.ZV);
this.Da(c);this.Ap.Iy(b,e,function(){var m=new k.oE;m.type=k.i.Kd.ZV;m.We=d;m.ft=a;m.body=l.tf(a,d,b,e);g.PG(m,function(){g.qa.Gn(d,b,a,e);g.Hm(m.type)})},function(m){return g.NF(m)})};h.prototype.To=function(d,b,a,c){b.hierarchy.q_(b);this.qa.To(d,b,a,c);d=new k.PD(k.i.Kd.aW);this.Da(d);this.Hm(k.i.Kd.aW)};h.prototype.select=function(d){d=void 0===d?k.i.Kd.to:d;!f.model.Ea.pc.uu||f.model.Ea.pc.pp||f.model.Ea.pc.Ro||f.model.Ea.pc.Cx||0==(new Date).getTime()%378&&f.Va(f.model.Ea.na.J(f.model.Ea.na.Dfa),
f.model.Ea.na.J(f.model.Ea.na.Xha));var b=new k.PD(d);this.Da(b);this.fa.Hc?(this.qa.tr(),this.LGa()):(this.qa.select(),this.Hm(d))};h.prototype.ct=function(d,b){b=void 0===b?!0:b;d=d instanceof k.I.ek?d:this.I.nw(d);if(f.model.B.C.GV){var a=x.mO.PQ(d.qe,d.uniqueName);0==a.bw&&f.Va(a.errorMessage)}if(!this.fa.Hc||!d.Ka||f.model.B.C.zv||this.fa.Ba===k.i.oa.API){if(null==this.I.$c(d.uniqueName)){d.Ka&&(a=new x.BI,d.Sd=a.parse(d.qe),this.I instanceof k.external.kc.I.OH&&(d.Sd=x.ws.pG(d.Sd,this.I.measures)));
if(d.Ka&&null==d.Sd)return;this.I.VT&&this.I.Hj(d);null!=this.sa&&!this.sa.mt.Bb(d.uniqueName)&&d.Nm&&this.lda(d);b&&(this.I.ce&&!this.fa.Hc||this.I.ce&&this.fa.Ba==f.u.i.oa.API||this.I.ce&&this.fa.rT&&this.fa.Ba==f.u.i.oa.Nc&&f.model.B.C.zv)&&this.refresh()}else{a=new x.BI;d.Sd=a.parse(d.qe);this.I instanceof k.external.kc.I.OH&&(d.Sd=x.ws.pG(d.Sd,this.I.measures));if(d.Ka&&null==d.Sd)return;b=this.I.$c(d.uniqueName);b.caption=d.caption;b.Ir=d.Ir;b.qe=d.qe;b.gl=d.gl;b.Sd=d.Sd;b.Eo=d.Eo;b.Nm=d.Nm;
(this.sa.mt.Bb(b.uniqueName)||b.Nm)&&this.lda(b);(this.I.ce&&!this.fa.Hc||this.I.ce&&this.fa.Ba==f.u.i.oa.API||this.fa.Ba==f.u.i.oa.Nc&&f.model.B.C.zv)&&this.refresh()}this.Ya()}};h.prototype.lda=function(d){for(var b=-1,a=this.sa.ad(),c=0;c<a.length;c++)if(d.uniqueName==a[c].uniqueName){b=c;break}0<=b?(d.index=b,a[b]=d):(a.push(d),d.index=a.length);this.sa.fz(a);this.sa.T4();this.eia(this.sa.Sb,d);this.eia(this.sa.ic,d)};h.prototype.eia=function(d,b){null!=d.Ff&&d.Ff.uniqueName==b.uniqueName&&(d.Ff=
b)};h.prototype.Xy=function(d,b){b=void 0===b?!0:b;var a=this.I.$c(d);a&&a.Ka&&(this.I.aD(d),this.sa.aD(d),b&&this.I.ce&&this.refresh(),this.Ya())};h.prototype.$C=function(){for(var d=0;d<this.I.measures.length;){var b=this.I.measures.ea(d);b.Ka?this.Xy(b.uniqueName,!1):d++}this.I.ce&&this.refresh();this.Ya()};h.prototype.Ya=function(){f.model.Qa.U().Wa(f.model.Qa.RI)};h.prototype.refresh=function(){this.I.ce?(this.fa.Ba==k.i.oa.EMPTY&&f.v(this.sa)&&this.HK(),this.filter()):this.fa.Ba==k.i.oa.EMPTY&&
this.HK()};h.prototype.yk=function(d,b){var a=this;(this.sa.drillAll||0<d.vw.length)&&d.Un!=d.vi&&(d.ce=!1);if(!d.Qe&&!d.ce||null!=d.nc){0==this.nC.length&&this.Ap.yk(d,function(e){return a.efa(e)},function(e){return a.NF(e)});this.nC.Pa(d.uniqueName,d);var c=null!=this.EG.getItem(d.uniqueName)?this.EG.getItem(d.uniqueName):[];c.push(b);this.EG.Pa(d.uniqueName,c)}else b(d)};h.prototype.Uj=function(d,b,a){var c=this;this.Ap.Uj(d,b,a,function(e){return c.NF(e)})};h.prototype.vp=function(d,b,a){var c=
this;this.Ap.kB()?this.Ap.vp(d,b,a,function(e){return c.NF(e)}):(d=2<d.ra.length?this.ZHa(d,b):this.YHa(d,b),a(d))};h.prototype.YHa=function(d,b){var a=[],c=d.vi,e;for(e=0;e<c;e++)if(d.yd.ordinal!=e){var g=d.va(e);void 0!==g&&f.O.contains(g.caption,b)&&a.push(e)}return a};h.prototype.ZHa=function(d,b){var a=[];this.Bba(a,d.yd,b);var c;for(c=0;c<a.length;c++)b=this.mda(a,d.va(a[c]),c),c+=b;return a};h.prototype.mda=function(d,b,a){b=b.parent;var c=0;f.v(b)||b.Wb||(-1==d.indexOf(b.ordinal)&&(c++,d.splice(a,
0,b.ordinal)),c+=this.mda(d,b,a));return c};h.prototype.Bba=function(d,b,a){for(var c=b.children,e=c.length,g=b.hierarchy,l=0;l<e;l++)b=g.va(c[l]),f.O.contains(b.caption,a)&&d.push(b.ordinal),this.Bba(d,b,a)};h.prototype.efa=function(d){var b=this;d.Iv();d.ce=!0;this.nC.removeItem(d.uniqueName);var a=this.EG.getItem(d.uniqueName);if(null!=a)for(var c=0;c<a.length;c++)(0,a[c])(d);this.EG.removeItem(d.uniqueName);0<this.nC.length&&(d=this.nC.ea(0),null!=this.Ap?this.Ap.yk(d,function(e){return b.efa(e)},
function(e){return b.NF(e)}):this.nC=null)};h.prototype.LGa=function(){var d=this;if(this.sa.ob)this.Hm();else{var b=this.sa.rc(!0,!0,f.model.B.C.oc);this.AZ=b.length;for(var a=0;a<b.length;a++){var c=b.ea(a);this.yk(c,function(){return d.PEa()})}}};h.prototype.PEa=function(){var d=this;if(0==--this.AZ){this.fa.Hc&&this.sa.e3();var b=new k.oE(k.i.Kd.to);b.body=k.gA.YB(this.sa,this.fa).select();this.PG(b,function(){f.model.B.C.oc||d.fa.Ba!=k.i.oa.Gf&&d.fa.Ba!=k.i.oa.API?d.Hm(b.type):(f.za(!0,f.model.A.j.Hf),
d.sea(function(){d.tea(function(){d.sea(function(){d.tea(function(){f.za(!1);d.Hm(b.type)})})})}))})}};h.prototype.tea=function(d){for(var b=this,a=new x.YI,c=this.sa.Cd(k.i.ia.Ia).zd,e=0;e<c.length;e++){var g=c[e];a.add(function(l,m){var n=b.sa.vb.ea(m.length-1);if(n&&null!=n.nc){var p=n.va(m[m.length-1]);null!=p&&b.qa.Gn(m.slice(0,-1),p.parent,k.i.ia.Ia,n.ig)}b.qa.Ih(m)?l():b.n3(m,k.i.ia.Ia,void 0,function(){b.qa.expand(m,k.i.ia.Ia,void 0);l()})},g.slice(1))}c=this.sa.Cd(k.i.ia.Sa).zd;for(e=0;e<
c.length;e++)g=c[e],a.add(function(l,m){var n=b.sa.Cb.ea(m.length-1);if(n&&null!=n.nc){var p=n.va(m[m.length-1]);null!=p&&b.qa.Gn(m.slice(0,-1),p.parent,k.i.ia.Sa,n.ig)}b.qa.Sj(m)?l():b.n3(m,k.i.ia.Sa,void 0,function(){b.qa.expand(m,k.i.ia.Sa,void 0);l()})},g.slice(1));a.Wf(d)};h.prototype.sea=function(d){var b=this;if(this.fa.Ba!==k.i.oa.API||k.external.kc.I.ho.GL){for(var a=new x.YI,c=this.sa.Cd(k.i.ia.Ia).uf,e=0;e<c.length;e++)a.add(function(g,l){var m=b.sa.vb.ea(l.length-3);if(f.v(m))g();else{var n=
m.Db(l[1]);null==n?g():(l=l.slice(2),b.Mfa(l,n,k.i.ia.Ia,function(){b.qa.tf(l,n,k.i.ia.Ia,void 0);g()}))}},c[e].slice(0));c=this.sa.Cd(k.i.ia.Sa).uf;for(e=0;e<c.length;e++)a.add(function(g,l){var m=b.sa.Cb.ea(l.length-3).Db(l[1]);null==m?g():(l=l.slice(2),b.Mfa(l,m,k.i.ia.Sa,function(){b.qa.tf(l,m,k.i.ia.Sa,void 0);g()}))},c[e].slice(0));a.Wf(d)}else d()};h.prototype.Gga=function(d){f.pe(function(){f.model.Qa.U().Wa(f.model.Qa.S5,null,d)},1)};h.prototype.Jd=function(d){this.Ap.Jd(d);this.HK()};h.dispose=
function(){k.HI.dispose();k.kX.dispose();k.external.yb.eh.v8.dispose();k.external.kc.Y4.dispose();x.Pk.cancel();if(h.instance){h.instance.sa=null;try{h.instance.qa.tr()}catch(d){}h.instance.qa=null;try{h.instance.Gm.cancel()}catch(d){}h.instance.Gm=null;try{h.instance.Ap.cancel()}catch(d){}h.instance.Ap=null;try{h.instance.Ys.cancel()}catch(d){}h.instance.Ys=null;try{h.instance.I.clear()}catch(d){}h.instance.I=null;h.instance=null}};k.Na=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){var d=A.Ca.call(this,"div")||this;d.F.$k();return d}u(h,A.Ca);h.prototype.gb=function(){this.F.html(f.model.Ea.na.J(f.model.Ea.na.IV));this.F.element.setAttribute("style","z-index:1!important;left:"+(k.Hb.tu-this.cf())/2+"px!important;top:"+(k.Hb.jC-this.qd())/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;")};
k.Hpa=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){function k(){}function h(d,b){var a=this;this.bT=!1;this.kc=null;this.a_=[];this.c_=[];this.b_=[];h.instance=this;this.kc=b;f.v(d)&&(d={});if(0!=x.aBa()||0!=confirm("Flexmonster Pivot Table is not completely supported by this version of browser. Please update your browser. Continue anyway?")){var c="flexmonster/";void 0!==d.componentFolder&&(c=d.componentFolder);x.hx.BZ=c;x.mn.gZ=c;var e;d.container instanceof HTMLElement?e=d.container:f.v(d.container)||(e=document.getElementById("#"==
d.container.substr(0,1)?d.container.substring(1):d.container));null==e?(d=0==f.ha(d.container)?"Flexmonster:\nUnable to create the component. DOM element with id '"+d.container+"' is not found.":"Flexmonster:\nUnable to create the component. DOM element is null.",console.error(d),alert(d)):(c=this.Oca(e),f.v(c)||void 0===c.flexmonster||(c.flexmonster.dispose(),c.flexmonster=void 0),this.ja=f.model.Ta.U(),this.ja.Ga.N(f.model.cc.fd.lE,function(){return a.WEa()}),this.ja.Ga.N(f.model.cc.fd.Xw,function(){return a.G2()}),
this.ja.Ga.N(f.model.cc.fd.kn,function(){return a.OC()}),this.ja.Ga.N(f.model.cc.fd.SI,function(){return a.jFa()}),this.ja.Ga.N(f.model.cc.fd.Yq,function(){return a.qM()}),this.ja.Ga.N(f.model.cc.fd.pE,function(){return a.P2()}),this.ja.Ga.N(f.model.cc.fd.cE,function(){return a.E2()}),this.ja.Ga.N(f.model.cc.fd.$H,function(){return a.ip()}),this.ja.Ga.N(f.model.cc.fd.YH,function(g){return a.Wea(g)}),this.ja.Ga.N(f.model.cc.fd.ZH,function(){return a.b2()}),this.ja.Ga.N(f.model.cc.fd.Uu,function(){return a.Aq()}),
this.ja.Ga.N(f.model.cc.fd.DW,function(){return a.yEa()}),this.ja.Ga.N(f.model.cc.fd.J7,function(){return a.hfa()}),this.ja.Ga.N(f.model.cc.fd.I7,function(g){return a.gfa(g)}),this.ja.Ga.N(f.model.cc.fd.dE,function(){return a.xEa()}),this.ja.Ga.N(f.model.cc.fd.eE,function(){return a.$G()}),this.ja.Ga.N(f.model.cc.fd.AI,function(){return a.AEa()}),this.ja.Ga.N(f.model.cc.fd.dW,function(){return a.f2()}),this.ja.Ga.N(f.model.cc.fd.hA,function(){return a.nFa()}),this.ja.Ga.N(f.model.cc.fd.hk,function(){return a.NC()}),
this.ja.Ga.N(f.model.cc.fd.Ds,function(g){return a.M2(g)}),this.ja.Ga.N(f.model.cc.fd.Oh,function(){return a.O2()}),this.ja.N(k.jW,function(){return a.TDa()}),this.ja.N(k.Tg,function(){return a.RDa()}),this.ja.N(k.UW,function(){return a.bFa()}),this.ja.N(k.fA,function(){return a.aFa()}),this.ug=new f.K.Hb(A.Aa.Pb(e),d),this.ug.N(f.K.pi.Nw,function(g){return a.XCa(g)}),this.ug.N(f.K.pi.YW,function(){return a.iFa()}),this.ja.qC(d),this.Zra(d.accessibility),this.bT=!0,this.Oca(this.ug.Ue.element).flexmonster=
b,this.ja.Ga.Wa(f.model.cc.fd.J5))}}h.prototype.Zra=function(d){f.v(d)||"object"!==typeof d||(f.v(d.keyboardMode)||this.ug.Vga(!0===d.keyboardMode),f.v(d.highContrastTheme)||this.ug.vIa(d.highContrastTheme))};h.prototype.Oca=function(d){return void 0===d.uielement?d:d.uielement};h.prototype.qga=function(){var d=this;f.pe(function(){for(;0<d.b_.length;)d.b_.shift().call(d)},1)};h.prototype.kd=function(d,b){var a=this;b=void 0===b?10:b;f.pe(function(){0==b?a.a_.push(d):1==b?a.c_.push(d):a.b_.push(d)},
1)};h.prototype.WEa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.lE))};h.prototype.G2=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Xw))};h.prototype.OC=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.kn))};h.prototype.jFa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.SI))};h.prototype.qM=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Yq))};h.prototype.P2=function(){for(this.ja&&this.ja.Ga&&this.ja.Ga.hf==f.model.cc.so.INIT&&f.pe(function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.U7))},
1);0<this.a_.length;)this.a_.shift().call(this)};h.prototype.xEa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.dE))};h.prototype.$G=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.eE))};h.prototype.AEa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.AI))};h.prototype.E2=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.cE))};h.prototype.ip=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.$H))};h.prototype.b2=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.ZH))};
h.prototype.Wea=function(d){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.YH,d.data))};h.prototype.Aq=function(){for(;0<this.c_.length;)this.c_.shift().call(this)};h.prototype.yEa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.f7))};h.prototype.hfa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.L7))};h.prototype.gfa=function(d){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.K7,d.data))};h.prototype.f2=function(){};h.prototype.nFa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.hA))};
h.prototype.NC=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.hk));f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.q8))};h.prototype.M2=function(d){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Ds,d.data))};h.prototype.O2=function(){};h.prototype.XCa=function(d){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Nw,d.data))};h.prototype.iFa=function(){var d=this;this.dc&&(this.ja.Ga.hf!==f.model.cc.so.Jc?(this.ja.Ga.hf=f.model.cc.so.Jc,f.pe(function(){d.qga();f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Oh))},
1)):f.pe(function(){d.qga()},1))};h.prototype.TDa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.k6))};h.prototype.RDa=function(){f.pe(function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Tg))},1)};h.prototype.bFa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.O7))};h.prototype.aFa=function(){f.pe(function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.fA))},1)};h.prototype.U_=function(){return this.dc?this.ja.U_():null};h.prototype.Y_=function(d){return this.dc?this.ja.Y_(d):null};
h.prototype.zQ=function(d){var b=this;this.dc?null!=d&&this.ja.zQ(d):this.kd(function(){return b.zQ(d)})};h.prototype.KU=function(d){var b=this;this.dc?this.ja.KU(d):this.kd(function(){return b.KU(d)})};h.prototype.JU=function(){var d=this;this.dc?this.ja.JU():this.kd(function(){return d.JU()})};h.prototype.open=function(){this.ja.open()};h.prototype.load=function(d,b){this.ja.load(d,b)};h.prototype.Gr=function(d){d=void 0===d?"object":d;var b="object";d instanceof Object?d.hasOwnProperty("type")&&
(b=d.type,b=b.toLowerCase()):d&&(b=d.toLowerCase());d=this.ja.Gr(d instanceof Object?d:{});return f.v(d)||d.ob?null:"xmlstring"==b?D.aa.Cc(d.co(),!0):d.La()};h.prototype.Bw=function(d){var b=this;if(this.dc){if("string"==typeof d)try{if(-1<d.indexOf("<config>")){var a=D.aa.create(d);d=f.model.bb.ReportValueObject.Qj(a)}else d=JSON.parse(d)}catch(c){f.Va(f.model.A.j.u7,f.model.A.j.ya,f.rb.ya);return}this.ja.Bw({report:d})}else this.kd(function(){return b.Bw(d)})};h.prototype.getData=function(d,b,a){var c=
this;this.dc?this.ja.getData(d,b,a):this.kd(function(){return c.getData(d,b,a)})};h.prototype.save=function(d,b,a,c,e){var g=this;d=void 0===d?{filename:"report.json"}:d;b=void 0===b?null:b;a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?!1:e;var l=a;this.dc?(d instanceof Object&&d.hasOwnProperty("callbackHandler")&&(l=d.callbackHandler),this.ja.save(d,b,null!=l?function(m,n){return l(m,n)}:null,c,e)):this.kd(function(){return g.save(d,b,a,c,e)})};h.prototype.Jd=function(d,b){var a=this;null!=
d&&(f.v(b)?b={partial:!1}:"boolean"===typeof b&&(b={partial:b}),this.tT?this.ja.Jd(d,b):this.kd(function(){return a.Jd(d,b)},0))};h.prototype.AF=function(d){var b=this;null!=d&&(this.tT?this.ja.AF(d):this.kd(function(){return b.AF(d)},0))};h.prototype.Dra=function(d){this.Jd({data:d})};h.prototype.ct=function(d){var b=this;this.dc?null!=d&&this.ja.ct(d):this.kd(function(){return b.ct(d)})};h.prototype.Xy=function(d){var b=this;this.dc?this.ja.Xy(d):this.kd(function(){return b.Xy(d)})};h.prototype.$C=
function(){var d=this;this.dc?this.ja.$C():this.kd(function(){return d.$C()})};h.prototype.clear=function(){this.ja&&this.ja.clear()};h.prototype.dispose=function(){f.Im.dispose();f.Pj.dispose();f.XK.dispose();f.opa.dispose();x.mn.dispose();this.kc=null;this.ja.dispose();this.ug.dispose();this.ja=this.ug=null;h.instance=null;f.model.Qa.dispose()};h.prototype.refresh=function(){var d=this;this.dc?this.ug.gb():this.kd(function(){return d.refresh()})};h.prototype.jV=function(){var d=this;this.dc?this.ug.jV():
this.kd(function(){return d.jV()})};h.prototype.WM=function(d,b){var a=this;d=void 0===d?"column":d;b=void 0===b?!1:b;this.dc?this.ug.WM(d,b):this.kd(function(){return a.WM(d,b)})};h.prototype.kV=function(d,b,a){var c=this;d=void 0===d?"column":d;b=void 0===b?"bottom":b;a=void 0===a?!1:a;this.dc?this.ug.kV(d,b,a):this.kd(function(){return c.kV(d,b,a)})};h.prototype.LR=function(d){var b=this;d=void 0===d?!0:d;this.dc?this.ja.LR(d):this.kd(function(){return b.LR(d)})};h.prototype.Qv=function(d){var b=
this;this.dc?this.ug.Qv(d):this.kd(function(){return b.Qv(d)})};h.prototype.$Q=function(){var d=this;this.dc?this.ja.$Q():this.kd(function(){return d.$Q()})};h.prototype.Gv=function(d){var b=this;this.dc?this.ug.Gv(d):this.kd(function(){return b.Gv(d)})};h.prototype.print=function(d){var b=this;d=void 0===d?null:d;this.dc?this.ja.print(f.model.$r.S7.tb(d)):this.kd(function(){return b.print(d)})};h.prototype.Nj=function(d,b,a){var c=this;b=void 0===b?null:b;a=void 0===a?null:a;if(this.dc){if(null!=
d){var e=null!=a?function(g){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];return a.apply(null,l)}:null;this.ja.Nj(d,f.model.vc.p6.tb(b),e)}}else this.kd(function(){return c.Nj(d,b,a)})};h.prototype.Sl=function(d){return this.dc?this.ja.Sl(d):null};h.prototype.cH=function(d){this.dc&&this.ug.SFa(d)};h.prototype.tl=function(d,b){var a=this;this.dc?this.ja.tl(d,b):this.kd(function(){return a.tl(d,b)})};h.prototype.nt=function(d){var b=this;this.dc?this.ja.nt(d):this.kd(function(){return b.nt(d)})};
h.prototype.on=function(d,b){f.model.Qa.U().N(d,b)};h.prototype.TCa=function(d,b){null==b?f.model.Qa.U().Od(d):f.model.Qa.U().mb(d,b)};h.prototype.vG=function(){return this.dc?this.ja.vG():null};h.prototype.GZ=function(d){var b=this;new Promise(function(a){b.bT?a(d()):b.ja.Ga.N(f.model.cc.fd.J5,function(){a(d())})})};h.prototype.yF=function(d){var b=this;return new Promise(function(a){b.dc?a(d()):b.ja.Ga.N(f.model.cc.fd.Oh,function(){a(d())})})};h.prototype.Gza=function(){var d=this;return this.yF(function(){return d.ja.vG()})};
h.prototype.kG=function(){return this.dc?this.ja.kG():null};h.prototype.uya=function(){var d=this;return this.yF(function(){return d.ja.kG()})};h.prototype.dC=function(){return this.dc?this.ja.dC():null};h.prototype.sza=function(){var d=this;return this.yF(function(){return d.ja.dC()})};h.prototype.ad=function(){return this.dc?this.ja.ad():null};h.prototype.eza=function(){var d=this;return this.yF(function(){return d.ja.ad()})};h.prototype.Er=function(){return this.dc?this.ja.Er():null};h.prototype.gya=
function(){var d=this;return this.yF(function(){return d.ja.Er()})};h.prototype.EL=function(){return this.ug.EL};h.prototype.DL=function(){return this.ug.DL};h.prototype.oV=function(d){var b=this;this.xT?this.ja.oV(d):this.kd(function(){return b.oV(d)},1)};h.prototype.qV=function(d,b,a,c){var e=this;this.dc?this.ja.qV(d,b,a,c):this.kd(function(){return e.qV(d,b,a,c)})};h.prototype.rV=function(d,b){var a=this;this.xT?this.ja.rV(d,b):this.kd(function(){return a.rV(d,b)},1)};h.prototype.oD=function(d,
b,a){var c=this;a=void 0===a?null:a;this.dc?this.ja.oD(d,b):this.kd(function(){return c.oD(d,b,a)})};h.prototype.$U=function(d){var b=this;this.dc?this.ja.$U(d):this.kd(function(){return b.$U(d)})};h.prototype.vM=function(d,b){var a=this;this.dc?this.ug.vM(d,b):this.kd(function(){return a.vM(d,b)})};h.prototype.s0=function(d){return this.dc?this.ja.s0(d):null};h.prototype.g0=function(){return this.dc?this.ja.g0():null};h.prototype.Vv=function(){return this.dc?this.ja.Vv():null};h.prototype.zp=function(d){var b=
this;f.v(d)||(this.dc?this.ja.zp(d):this.kd(function(){return b.zp(d)}))};h.prototype.pj=function(d,b,a){var c=this;if(this.dc)return this.ja.pj(d,b,a);this.kd(function(){return c.pj(d,b,a)})};h.prototype.p0=function(d,b){return this.ja.p0(d,b)};h.prototype.iC=function(d,b){var a=this;if(this.dc)return this.ja.iC(d,b);this.kd(function(){return a.iC(d,b)})};h.prototype.Yza=function(d){var b=this;return new Promise(function(a){b.ja.BG(d,function(){b.ja.iC(d,function(c){return a(c)})})})};h.prototype.BG=
function(d,b){var a=this;this.dc?this.ja.BG(d,b):this.kd(function(){return a.BG(d,b)})};h.prototype.Xza=function(d){var b=this;return new Promise(function(a){b.ja.BG(d,function(c){return a(c)})})};h.prototype.zL=function(d,b,a){var c=this;this.dc?this.ja.zL(d,b,a):this.kd(function(){return c.zL(d,b,a)})};h.prototype.Vza=function(d,b){var a=this;return new Promise(function(c){a.ja.zL(d,b,function(e){return c(e)})})};h.prototype.AL=function(d,b,a,c){var e=this;this.dc?this.ja.AL(d,b,a,c):this.kd(function(){return e.AL(d,
b,a,c)})};h.prototype.Wza=function(d,b,a){var c=this;return new Promise(function(e){c.ja.AL(d,b,a,function(g){return e(g)})})};h.prototype.WQ=function(d,b,a,c,e){var g=this;c=void 0===c?null:c;e=void 0===e?null:e;this.dc?this.ja.WQ(d,b,c,e,a):this.kd(function(){return g.WQ(d,b,c,e,a)})};h.prototype.UM=function(d){return this.ja.UM(d)};h.prototype.IM=function(d){var b=this;this.dc?null!=d&&this.ja.IM(f.model.bb.SliceValueObject.tb(d)):this.kd(function(){return b.IM(d)})};h.prototype.dG=function(){return this.dc?
this.ja.dG():null};h.prototype.fya=function(){var d=this;return this.yF(function(){return d.ja.dG()})};h.prototype.NU=function(d){var b=this;this.dc?this.ja.NU(d):this.kd(function(){return b.NU(d)})};h.prototype.Dh=function(d,b){return this.dc?this.ja.Dh(d,b):null};h.prototype.kD=function(d,b,a){var c=this;this.dc?null!=d&&this.ja.kD(d,b,a):this.kd(function(){return c.kD(d,b)})};h.prototype.Rf=function(d,b){return this.dc?this.ug.Rf(d,b):null};h.prototype.xG=function(){return this.dc?this.ug.xG():
null};h.prototype.gz=function(d,b){var a=this;this.dc?this.ug.gz(d,b):this.kd(function(){return a.gz(d,b)})};h.prototype.zG=function(){return this.dc?this.ja.zG():null};h.prototype.hV=function(d){var b=this;this.dc?this.ja.hV(d):this.kd(function(){return b.hV(d)})};h.prototype.bD=function(){var d=this;this.GZ(function(){return d.ug.bD()})};h.prototype.tU=function(){var d=this;this.GZ(function(){return d.ug.tU()})};h.prototype.nK=function(){var d=this;this.GZ(function(){return d.ug.nK()})};h.prototype.uva=
function(d){f.K.X.W.Yd.Mv=d;this.bT&&this.refresh()};h.prototype.Vk=function(d){f.K.td.Du.BB=d;this.bT&&this.refresh()};h.prototype.vva=function(d){f.K.X.WH.CK=d};h.prototype.tva=function(d){f.u.external.kc.zz.BK=d};h.prototype.d0=function(d,b){this.ja.d0(d,b)};h.prototype.Eq=function(d){var b=this;this.dc?this.ug.Eq(d):this.kd(function(){return b.Eq(d)})};h.prototype.es=function(d){var b=this;this.dc?this.ug.es(d):this.kd(function(){return b.es(d)})};h.prototype.MR=function(d,b,a){var c=this;this.dc?
this.ug.MR(d,b,a):this.kd(function(){return c.MR(d,b,a)})};h.prototype.aR=function(d,b,a){var c=this;this.dc?this.ug.aR(d,b,a):this.kd(function(){return c.aR(d,b,a)})};h.prototype.IR=function(d,b,a,c){var e=this;this.dc?this.ug.IR(d,b,a,c):this.kd(function(){return e.IR(d,b,a,c)})};h.prototype.HR=function(d,b,a,c){var e=this;this.dc?this.ug.HR(d,b,a,c):this.kd(function(){return e.HR(d,b,a,c)})};q.Object.defineProperties(h.prototype,{dc:{configurable:!0,enumerable:!0,get:function(){return this.ja&&
this.ja.Ga&&this.ja.Ga.dc}},tT:{configurable:!0,enumerable:!0,get:function(){return this.ja&&this.ja.Ga&&this.ja.Ga.tT}},xT:{configurable:!0,enumerable:!0,get:function(){return this.ja&&this.ja.Ga&&this.ja.Ga.xT}}});h.qs="2.9.22";h.NV="100593099773766";f.Ug=h;k.UW="print";k.fA="printcomplete";k.jW="export";k.Tg="exportcomplete";f.eg=k})(w||(w={}));
function PivotApi(f){w.v(window.flexmonster)||(window.flexmonster=null);var k={version:w.Ug.qs},h=new w.Ug(f,k);k.alert=function(b){if(void 0!=b.message&&""!=b.message||void 0!=b.title&&""!=b.title){var a=void 0!=b.message?w.model.Nb.valid(b.message)?b.message:w.model.Nb.validate(b.message):"",c=void 0!=b.title?w.model.Nb.valid(b.title)?b.title:w.model.Nb.validate(b.title):"",e=b.type==w.rb.Ik||b.type==w.rb.fm||b.type==w.rb.ya||b.type==w.rb.pO?b.type:w.rb.Ik,g=null,l=null;if(void 0!=b.buttons)for(var m=
0;m<b.buttons.length;m++){var n=b.buttons[m],p=n.label;p=w.model.Nb.valid(p)?p:w.model.Nb.validate(p);null==g&&(g=[]);g.push(p);n="function"==typeof n.handler?n.handler:null;null==l&&(l=[]);l.push(n)}w.Va(a,c,e,g,l,void 0==b.blocking||1!=b.blocking&&0!=b.blocking?!1:b.blocking)}};k.openCalculatedValueEditor=function(b,a){return h.vM(b,a)};k.getAllConditions=function(){return h.U_()};k.getCondition=function(b){return h.Y_(b)};k.addCondition=function(b){return h.zQ(b)};k.removeCondition=function(b){return h.KU(b)};
k.removeAllConditions=function(){return h.JU()};k.open=function(){return h.open()};k.load=function(b,a){return h.load(b,a)};k.getReport=function(b){return h.Gr(void 0===b?"object":b)};k.setReport=function(b){return h.Bw(b)};k.getData=function(b,a,c){return h.getData(b,a,c)};k.save=function(b,a,c,e,g){b=void 0===b?{filename:"report.json"}:b;return h.save(b,void 0===a?null:a,void 0===c?null:c,void 0===e?null:e,void 0===g?!1:g)};k.updateData=function(b,a){return h.Jd(b,a)};k.connectTo=function(b){return h.AF(b)};
k.addJSON=function(b){return h.Dra(b)};k.addCalculatedMeasure=function(b){return h.ct(b)};k.removeCalculatedMeasure=function(b){return h.Xy(b)};k.removeAllCalculatedMeasures=function(){return h.$C()};k.clear=function(){return h.clear()};k.dispose=function(){w.v(window.flexmonster)||(window.flexmonster=null);h.dispose()};k.refresh=function(){return h.refresh()};k.showGrid=function(){return h.jV()};k.showCharts=function(b,a){return h.WM(void 0===b?"column":b,void 0===a?!1:a)};k.showChart=function(b,
a){return h.WM(void 0===b?"column":b,void 0===a?!1:a)};k.showGridAndCharts=function(b,a,c){return h.kV(void 0===b?"column":b,void 0===a?"bottom":a,void 0===c?!1:c)};k.expandAllData=function(b){return h.LR(void 0===b?!0:b)};k.expandData=function(b){return h.Qv(b)};k.collapseAllData=function(){return h.$Q()};k.collapseData=function(b){return h.Gv(b)};k.expandCell=function(b,a,c){return h.MR(b,a,c)};k.collapseCell=function(b,a,c){return h.aR(b,a,c)};k.drillUpCell=function(b,a,c,e){return h.IR(b,a,c,
e)};k.drillDownCell=function(b,a,c,e){return h.HR(b,a,c,e)};k.print=function(b){return h.print(void 0===b?null:b)};k.exportTo=function(b,a,c){return h.Nj(b,void 0===a?null:a,void 0===c?null:c)};k.openFilter=function(b){return h.cH(b)};k.getFilter=function(b){return h.Sl(b)};k.setFilter=function(b,a){return h.tl(b,a)};k.clearFilter=function(b){return h.nt(b)};k.on=function(b,a){return h.on(b,a)};k.off=function(b,a){return h.TCa(b,a)};k.getRows=function(){return h.vG()};k.getRowsAsync=function(){return h.Gza()};
k.getColumns=function(){return h.kG()};k.getColumnsAsync=function(){return h.uya()};k.getPages=function(){return h.dC()};k.getReportFilters=function(){return h.dC()};k.getReportFiltersAsync=function(){return h.sza()};k.getMeasures=function(){return h.ad()};k.getMeasuresAsync=function(){return h.eza()};k.getAllMeasures=function(){return h.Er()};k.getAllMeasuresAsync=function(){return h.gya()};k.sortFieldsList=function(b){return h.oV(b)};k.sortValues=function(b,a,c,e){return h.qV(b,a,c,e)};k.sortingMethod=
function(b,a){return h.rV(b,a)};k.setSort=function(b,a,c){return h.oD(b,a,void 0===c?null:c)};k.getSort=function(b){return h.s0(b)};k.setFlatSort=function(b){return h.$U(b)};k.getFlatSort=function(){return h.g0()};k.getOptions=function(){return h.Vv()};k.setOptions=function(b){return h.zp(b)};k.getMembers=function(b,a,c){return h.pj(b,a,c)};k.getMembersAsync=function(b,a){return h.p0(b,a)};k.gridRowCount=function(){return h.EL()};k.gridColumnCount=function(){return h.DL()};k.getXMLAProviderName=function(b,
a){return h.iC(b,a)};k.getXMLAProviderNameAsync=function(b){return h.Yza(b)};k.getXMLADataSources=function(b,a){return h.BG(b,a)};k.getXMLADataSourcesAsync=function(b){return h.Xza(b)};k.getXMLACatalogs=function(b,a,c){return h.zL(b,a,c)};k.getXMLACatalogsAsync=function(b,a){return h.Vza(b,a)};k.getXMLACubes=function(b,a,c,e){return h.AL(b,a,c,e)};k.getXMLACubesAsync=function(b,a,c){return h.Wza(b,a,c)};k.clearXMLACache=function(b,a,c,e,g){return h.WQ(b,a,c,void 0===e?null:e,void 0===g?null:g)};k.shareReport=
function(b){return h.UM(b)};k.getElasticIndices=function(b,a){return h.d0(b,a)};k.runQuery=function(b){return h.IM(b)};k.getAllHierarchies=function(){return h.dG()};k.getAllHierarchiesAsync=function(){return h.fya()};k.replaceHierarchyCaption=function(b){return h.NU(b)};k.getFormat=function(b,a){return h.Dh(b,a)};k.setFormat=function(b,a,c){return h.kD(b,a,c)};k.getCell=function(b,a){return h.Rf(b,a)};k.getSelectedCell=function(){return h.xG()};k.setSelectedCell=function(b,a){return h.gz(b,a)};k.removeSelection=
function(){return h.bD()};k.getTableSizes=function(){return h.zG()};k.setTableSizes=function(b){return h.hV(b)};k.openFieldsList=function(){return h.tU()};k.closeFieldsList=function(){return h.nK()};k.scrollToRow=function(b){return h.Eq(b)};k.scrollToColumn=function(b){return h.es(b)};k.customizeCell=function(b){return h.uva(b)};k.customizeChartElement=function(b){return h.Vk(b)};k.customizeContextMenu=function(b){return h.vva(b)};k.customizeAPIRequest=function(b){return h.tva(b)};if(void 0!==window.FlexmonsterHighcharts){k.highcharts=
{instance:k};for(var d in window.FlexmonsterHighcharts)k.highcharts[d]=window.FlexmonsterHighcharts[d]}if(void 0!==window.FlexmonsterFusioncharts)for(d in k.fusioncharts={instance:k},window.FlexmonsterFusioncharts)k.fusioncharts[d]=window.FlexmonsterFusioncharts[d];if(void 0!==window.FlexmonsterGooglecharts)for(d in k.googlecharts={instance:k},window.FlexmonsterGooglecharts)k.googlecharts[d]=window.FlexmonsterGooglecharts[d];if(void 0!==window.FlexmonsterAmcharts)for(d in k.amcharts={instance:k},
window.FlexmonsterAmcharts)k.amcharts[d]=window.FlexmonsterAmcharts[d];w.v(window.flexmonster)||w.v(window.flexmonster.embedPivotComponent)||(k.embedPivotComponent=window.flexmonster.embedPivotComponent);return window.flexmonster=k};
;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 // MIIhaAYJKoZIhvcNAQcCoIIhWTCCIVUCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // 6ltvZXdXWXYBRfSdi6XL7zrHTZNsQtmxWTdvAF2PuxKg
// SIG // ggetMIIDgjCCAwmgAwIBAgIQbt1PJecxfTmBVzE0z8Hc
// 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 // z6ZVIBvZEJpTAPuJXnAwggQjMIIDqqADAgECAhAhNUdr
// SIG // cqDWlVOjlyeHGHc+MAoGCCqGSM49BAMDMHsxCzAJBgNV
// SIG // BAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4GA1UEBwwH
// SIG // SG91c3RvbjERMA8GA1UECgwIU1NMIENvcnAxNzA1BgNV
// SIG // BAMMLlNTTC5jb20gRVYgQ29kZSBTaWduaW5nIEludGVy
// SIG // bWVkaWF0ZSBDQSBFQ0MgUjIwHhcNMjIwMTA2MTY0NjI1
// SIG // WhcNMjMwMTA2MTY0NjI1WjCB7zELMAkGA1UEBhMCVVMx
// SIG // EzARBgNVBAgMCkNhbGlmb3JuaWExGDAWBgNVBAcMD1Jh
// SIG // bmNobyBTYW50YSBGZTElMCMGA1UECgwcTm9ydGggQW1l
// SIG // cmljYW4gUmVzZWxsZXJzIExMQzEVMBMGA1UEBRMMTDA5
// SIG // MDAwMDU3MjExMSUwIwYDVQQDDBxOb3J0aCBBbWVyaWNh
// SIG // biBSZXNlbGxlcnMgTExDMR0wGwYDVQQPDBRQcml2YXRl
// SIG // IE9yZ2FuaXphdGlvbjEYMBYGCysGAQQBgjc8AgECDAdG
// SIG // bG9yaWRhMRMwEQYLKwYBBAGCNzwCAQMTAlVTMFkwEwYH
// SIG // KoZIzj0CAQYIKoZIzj0DAQcDQgAE0yUAM2ZtTXT3Wr/C
// SIG // jj9fHhFtoFZCJ0AUbdm25g+M40vHnYbrQBqMKerv5MBW
// SIG // w2FYmxr6gJV/xJ2q2JtS1bzMg6OCAZkwggGVMB8GA1Ud
// SIG // IwQYMBaAFAGJlLn+tDNd8PH6hfkkRoSjV2leMHwGCCsG
// SIG // AQUFBwEBBHAwbjBKBggrBgEFBQcwAoY+aHR0cDovL2Nl
// SIG // cnQuc3NsLmNvbS9TU0xjb20tU3ViQ0EtRVYtY29kZVNp
// SIG // Z25pbmctRUNDLTM4NC1SMi5jZXIwIAYIKwYBBQUHMAGG
// SIG // FGh0dHA6Ly9vY3Nwcy5zc2wuY29tMF8GA1UdIARYMFYw
// SIG // BwYFZ4EMAQMwDQYLKoRoAYb2dwIFAQcwPAYMKwYBBAGC
// SIG // qTABAwMCMCwwKgYIKwYBBQUHAgEWHmh0dHBzOi8vd3d3
// SIG // LnNzbC5jb20vcmVwb3NpdG9yeTATBgNVHSUEDDAKBggr
// SIG // BgEFBQcDAzBPBgNVHR8ESDBGMESgQqBAhj5odHRwOi8v
// SIG // Y3Jscy5zc2wuY29tL1NTTGNvbS1TdWJDQS1FVi1jb2Rl
// SIG // U2lnbmluZy1FQ0MtMzg0LVIyLmNybDAdBgNVHQ4EFgQU
// SIG // MivFecMS5lfIlkgIbVpvIdvX8UQwDgYDVR0PAQH/BAQD
// SIG // AgeAMAoGCCqGSM49BAMDA2cAMGQCMD8/t8ht5dlMKXNB
// SIG // 4eIeVtPEA1KYNWJu53agjqo8Ow+MejTHvpy1qzdYegkZ
// SIG // VpKdmQIwWtdjuVCKYm8YgIU14XwB2KDYTfzATnVYXWO5
// SIG // mmdWFZzSISFpRLylLKMjVQ6l+RZrMYIZEzCCGQ8CAQEw
// SIG // gY8wezELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFz
// SIG // MRAwDgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wg
// SIG // Q29ycDE3MDUGA1UEAwwuU1NMLmNvbSBFViBDb2RlIFNp
// SIG // Z25pbmcgSW50ZXJtZWRpYXRlIENBIEVDQyBSMgIQITVH
// SIG // a3Kg1pVTo5cnhxh3PjANBglghkgBZQMEAgEFAKB8MBAG
// SIG // CisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJAzEMBgor
// SIG // BgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAMBgorBgEE
// SIG // AYI3AgEVMC8GCSqGSIb3DQEJBDEiBCCGPP9OVZhzK0om
// SIG // ykzde+bIac0SUrK6PHEXmU7304dFpDALBgcqhkjOPQIB
// SIG // BQAERzBFAiAgVSQN9cpEucl1UOEyYI69ttvGMDxjQ4qw
// SIG // mP6ZrTBGlQIhAMGDgnUtIjCdC11sjxCLENTa9CyPHQJD
// SIG // Z2NKLepstZJwoYIXkzCCF48GCisGAQQBgjcDAwExghd/
// SIG // MIIXewYJKoZIhvcNAQcCoIIXbDCCF2gCAQMxDTALBglg
// SIG // hkgBZQMEAgEwdwYLKoZIhvcNAQkQAQSgaARmMGQCAQEG
// SIG // DCsGAQQBgqkwAQMGATAxMA0GCWCGSAFlAwQCAQUABCBG
// SIG // ny0MUAWy6UHIbGNNC501ol7C95Bs18TGPqA57w3NTwII
// SIG // fage/ctzVdEYDzIwMjIwNDA0MTIzNzQ0WjADAgEBoIIT
// SIG // PDCCBdgwggTAoAMCAQICEQDkJwSV9oyR1tDse0lOpN8c
// SIG // MA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlBMMSIw
// SIG // IAYDVQQKExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEu
// SIG // MScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBB
// SIG // dXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBUcnVzdGVk
// SIG // IE5ldHdvcmsgQ0EwHhcNMTgwOTExMDkyNjQ3WhcNMjMw
// SIG // OTExMDkyNjQ3WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UE
// SIG // CAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0b24xGDAWBgNV
// SIG // BAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NM
// SIG // LmNvbSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
// SIG // IFJTQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
// SIG // ggIBAPkP3aMrfcvQKv7sZ4Wm5y4bunfh4/WvpOz6Sl2R
// SIG // xFdHaxh3a3by/ZPkPQ/CFp4LZsNWlJ4Xg4XOVu/yFv0A
// SIG // YvUiCVToZRdOQbngT0aXqhvIuG5iXmmxX9sqAn78bMrz
// SIG // Qdjt0Oj8P2FI7bADFB0QDksZ4LtO7IZl/zbzXmcCC52G
// SIG // VWH9ejjt/uIZALdvoVBidXQ8oPrIJZK0bnoix/geoeOy
// SIG // 3ZExqysdBP+lSgQ36YWkMyv94tZVNHwZpEpox7Ko07fK
// SIG // oZOI68GXvIz5HdkihCR0xwQ9aqkpk8zruFvh/l8lqjRY
// SIG // yMEjVJ0bmBHDOJx+PYZspQ9AhnwC9FwCTyjLrnGfDzrI
// SIG // M/4RJTXq/LrFYD3ZfBjVsqnTdXgDciLKOsMf7yzlLqn6
// SIG // niy2UUb9rwPW6mBo6oUWNmuF6R7As93EJNyAKoFBbZQ+
// SIG // yODJgUEAnl6/f8UImKIYLEJAs/lvOCdLToD0PYFH4Ih8
// SIG // 6hzOtXVcUS4cK38acijnALXRdMbX5J+tB5O2UzU1/Dfk
// SIG // w/ZdFr4hc96SCvigY2q8lpJqPvi8ZVWb3vUNiSYE/CUa
// SIG // piVpy8JtynziWV+XrOvvLsi81xtZPCvM8hnIk2snYxnP
// SIG // /Okm+Mpxm3+T/jRnhE6Z6/yzeAkzcLpmpnbtG3PrGqUN
// SIG // xCITIJRWCk4sbE6x/c+cCbqiM+2HAgMBAAGjggFRMIIB
// SIG // TTASBgNVHRMBAf8ECDAGAQH/AgECMB0GA1UdDgQWBBTd
// SIG // BAkHovV6fVJTEpKV7jiAJQ2mWTAfBgNVHSMEGDAWgBQI
// SIG // ds3LB/8k9sXN7buQvOKEN0Z19zAOBgNVHQ8BAf8EBAMC
// SIG // AQYwNgYDVR0fBC8wLTAroCmgJ4YlaHR0cDovL3NzbGNv
// SIG // bS5jcmwuY2VydHVtLnBsL2N0bmNhLmNybDBzBggrBgEF
// SIG // BQcBAQRnMGUwKQYIKwYBBQUHMAGGHWh0dHA6Ly9zc2xj
// SIG // b20ub2NzcC1jZXJ0dW0uY29tMDgGCCsGAQUFBzAChixo
// SIG // dHRwOi8vc3NsY29tLnJlcG9zaXRvcnkuY2VydHVtLnBs
// SIG // L2N0bmNhLmNlcjA6BgNVHSAEMzAxMC8GBFUdIAAwJzAl
// SIG // BggrBgEFBQcCARYZaHR0cHM6Ly93d3cuY2VydHVtLnBs
// SIG // L0NQUzANBgkqhkiG9w0BAQsFAAOCAQEAH5WaI1TuhcLz
// SIG // 1G+56QSPRn8s9zLAp0OsBwDt4KlFLf0X4e0AQMivmKz1
// SIG // wBmtG6CXMEBs7Fv7o5NOjIliG3zwOl+nQs9YynVlnCJM
// SIG // v3Z7mJOcFYMzsQ7cUTiHfJWcEmmUHgB4dH7cwAZ3unAt
// SIG // hyzXaJ3juoWtSfOPZLQVBoOSxpekQJOLrfFnlLS5WmdU
// SIG // PKgb2QXP5KT5iBIABoglhdRe7vOTV9aB+Cyu9/VRSKu2
// SIG // Yjp52+wu8j8UVjrI2cukok8lqNGbqy0wIFAHGm/x8ZQd
// SIG // OYNj6B/9SdDoHUayRoImvZyd4aJoQUhRbnr8NZb0VNK8
// SIG // K0TlR9d3gqVKq1+XM6skETCCBlwwggREoAMCAQICEF8c
// SIG // vIxcPl9vJP06T+SI1igwDQYJKoZIhvcNAQELBQAwczEL
// SIG // MAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMRAwDgYD
// SIG // VQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wgQ29ycDEv
// SIG // MC0GA1UEAwwmU1NMLmNvbSBUaW1lc3RhbXBpbmcgSXNz
// SIG // dWluZyBSU0EgQ0EgUjEwHhcNMjEwOTEwMTYzNTIwWhcN
// SIG // MzEwOTA4MTYzNTE5WjBrMQswCQYDVQQGEwJVUzEOMAwG
// SIG // A1UECAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0b24xETAP
// SIG // BgNVBAoMCFNTTCBDb3JwMScwJQYDVQQDDB5TU0wuY29t
// SIG // IFRpbWVzdGFtcGluZyBVbml0IDIwMjEwggGiMA0GCSqG
// SIG // SIb3DQEBAQUAA4IBjwAwggGKAoIBgQDcVbFyaxvWgahC
// SIG // U7M9W4tNsuRlu5qG73r4I3Y727z0zdf0SB/9bKeH+Qtb
// SIG // dnEDYqlWSJDEhbr4MQSpC+UlVFl2sY424uBq5Cv6H9Cm
// SIG // DuhkHfGcF80ewBYYPCM5AOeFi+vOP62w+0LwzdsmWXal
// SIG // uNRihNZYUAdnpTSXFPpPD7MxhhIAgqSWlWzhShGfLksD
// SIG // 8A6FVaMU8I6CQuznuEZM93921vjNlMyHteEDRyWTl21T
// SIG // li0SiS29AE/ibgvXzH2i/EypjlYyxlxNHdAIPGB1kUJH
// SIG // kULWX23GaqzH8qokHLE6wq8ELwm3lb16bGMxBHr6b1Y3
// SIG // QRpzlPcby7BiIvvT9aSCQwz1kPkKDZ9i0rIriGPhS+aa
// SIG // fbD7EJvP/NDhqTaPxK3bgaStlpD0oOpv/TMxQWu2J8mi
// SIG // q11vHNMcmbTnJF0gZhbl3jtZfqRjd7cErnQey8ILEL4a
// SIG // 3PtmRfQuKqW69zQgHiqqcXNgphwjni9XXEYjw4LzpS1N
// SIG // MbFiJGQJ94hSDi0CAwEAAaOCAXIwggFuMB8GA1UdIwQY
// SIG // MBaAFAydECWOmqcbmYdDzwh+4b2BkPTPMHMGCCsGAQUF
// SIG // BwEBBGcwZTBBBggrBgEFBQcwAoY1aHR0cDovL2NlcnQu
// SIG // c3NsLmNvbS9TU0wuY29tLXRpbWVTdGFtcGluZy1JLVJT
// SIG // QS1SMS5jZXIwIAYIKwYBBQUHMAGGFGh0dHA6Ly9vY3Nw
// SIG // cy5zc2wuY29tMEcGA1UdIARAMD4wPAYMKwYBBAGCqTAB
// SIG // AwYBMCwwKgYIKwYBBQUHAgEWHmh0dHBzOi8vd3d3LnNz
// SIG // bC5jb20vcmVwb3NpdG9yeTAWBgNVHSUBAf8EDDAKBggr
// SIG // BgEFBQcDCDBGBgNVHR8EPzA9MDugOaA3hjVodHRwOi8v
// SIG // Y3Jscy5zc2wuY29tL1NTTC5jb20tdGltZVN0YW1waW5n
// SIG // LUktUlNBLVIxLmNybDAdBgNVHQ4EFgQUW6G11pjxE5Ye
// SIG // Og4v00HpcBOEX70wDgYDVR0PAQH/BAQDAgeAMA0GCSqG
// SIG // SIb3DQEBCwUAA4ICAQCWhqdv5te/s4x0rPunvGiZmsyr
// SIG // 2Gj0BmpuWUJjwJFJu6sH6udacyuFv1p4+lKkKeSSZf82
// SIG // ZkBu1Wh5Z72fw06Lc1hG3qDFLQG06JMPyHDjedxyHh6u
// SIG // cAYllx8cIognNy6xIZ1NURNSXoFriyUKhSlxLgsu/Vh8
// SIG // lOALVzxY66jIo9eOXlxPF7Y6Jq+hs5wP964RdSWrYMlR
// SIG // C5EzQatMxwTnU9Exc1/JYefN8xmGmoncNreig9wlgGiV
// SIG // 0AJcf7LBF+LuOGkFtTEJDrUV70Zxbg0Q3aQScl6UzDJz
// SIG // rpM4Qx7BTnFm1eYmcdkpP3fVaee12uVqMzBiWOSvwujT
// SIG // jZoX+roSM5EupIFlaV3deLUFP32MNVd/uCtW/CYKT/sz
// SIG // Xal/WSk80eCJ3wDNlTOA0GoWmisveoO+jgq1Rn6F7/cX
// SIG // Ddnnd5boWIEETCgYj6gku4RIoliTsbBf3KOR3nV4rgZk
// SIG // /tToqeM869685Oab6lCb0FVRcaB87Y/hUp0BJk3q0pqX
// SIG // mDmu3kDq5vEOuF62OkBowQyqOV+R0EN49rIrQnhfO45K
// SIG // l7uYlno48nflIlOFnGbrOZ6b/dF73nzbmWAA2EIF1bdu
// SIG // g6ZbXfQ4zddtDhJupfYb2Wjlvwuc/2DaOG2TzZ0ZSnaG
// SIG // XTeCG8hzFhcHCuY/ynY+V3mVdz/BMhfrJOTdZwb0sTCC
// SIG // BvwwggTkoAMCAQICEG1SGHCH6CNNhWAA0ICPk1YwDQYJ
// SIG // KoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxDjAMBgNV
// SIG // BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYD
// SIG // VQQKDA9TU0wgQ29ycG9yYXRpb24xMTAvBgNVBAMMKFNT
// SIG // TC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0
// SIG // eSBSU0EwHhcNMTkxMTEzMTg1MDA1WhcNMzQxMTEyMTg1
// SIG // MDA1WjBzMQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4
// SIG // YXMxEDAOBgNVBAcMB0hvdXN0b24xETAPBgNVBAoMCFNT
// SIG // TCBDb3JwMS8wLQYDVQQDDCZTU0wuY29tIFRpbWVzdGFt
// SIG // cGluZyBJc3N1aW5nIFJTQSBDQSBSMTCCAiIwDQYJKoZI
// SIG // hvcNAQEBBQADggIPADCCAgoCggIBAK5REBPS+TwgoCCF
// SIG // 3slQHGTJ4f3F6TT/Cn8xSOhyWsVeqGH98Yf3UVz7t+bQ
// SIG // wcITsD7CY6KoGP04OskBgareubfeMKcdKwIE1YBBjKhq
// SIG // 4urwiOqxLUmVcvb2oM0wx3BnxQ3NBLu9ZkwMnjQlIY2m
// SIG // EwZMgDaqfZuiEa2BFzinXf3kRLKlQ5oa8ne3QU0vcG4q
// SIG // Zvphy0xxBQXayqigzN3z2HQTq6N28EOjpnA2dajGPtiZ
// SIG // 9aNJeDfcDka5j3KbhBkzk4RWCjx5vP8H6DKHIIs02GHg
// SIG // xv/jG8JMIxWY1isG+IaB09livKbxlvzhNAKZK5fQmUst
// SIG // rpYrVo7qqXAhJtv1tUaHzrp6QpuUL9dE/bSAC7UKO9xh
// SIG // yJSA1OsYWDx/wAmBA84JzX8IJ1olJjCEmlJ2F4o6dCAR
// SIG // KA2Zhk+EU4LogpowBReTlTW2NNwUKAW+8Cte0rhrMBZQ
// SIG // 47Vjd92V0gEvouOTMtQJgk2QVeqGwFVw8y4HSdQNa8sl
// SIG // 8+Kay2MnyUXhLoQLFaeVaLs4SVXBOe3Ua1Gp5j3J2+8Y
// SIG // ue1T4V5wrsNuocNR3frpSt4yRIG3N68Bz1qqhk+eNUyO
// SIG // 8WpXWlg6POZOJUdm0BzzRsB8V7kst8nM8joOe03Kqhun
// SIG // BN69Ckeo8M32qo07zeveRrDwD2P4dmJLDYBflwZ1A/SQ
// SIG // bS+HN+AHAgMBAAGjggGBMIIBfTASBgNVHRMBAf8ECDAG
// SIG // AQH/AgEAMB8GA1UdIwQYMBaAFN0ECQei9Xp9UlMSkpXu
// SIG // OIAlDaZZMIGDBggrBgEFBQcBAQR3MHUwUQYIKwYBBQUH
// SIG // MAKGRWh0dHA6Ly93d3cuc3NsLmNvbS9yZXBvc2l0b3J5
// SIG // L1NTTGNvbVJvb3RDZXJ0aWZpY2F0aW9uQXV0aG9yaXR5
// SIG // UlNBLmNydDAgBggrBgEFBQcwAYYUaHR0cDovL29jc3Bz
// SIG // LnNzbC5jb20wPwYDVR0gBDgwNjA0BgRVHSAAMCwwKgYI
// SIG // KwYBBQUHAgEWHmh0dHBzOi8vd3d3LnNzbC5jb20vcmVw
// SIG // b3NpdG9yeTATBgNVHSUEDDAKBggrBgEFBQcDCDA7BgNV
// SIG // HR8ENDAyMDCgLqAshipodHRwOi8vY3Jscy5zc2wuY29t
// SIG // L3NzbC5jb20tcnNhLVJvb3RDQS5jcmwwHQYDVR0OBBYE
// SIG // FAydECWOmqcbmYdDzwh+4b2BkPTPMA4GA1UdDwEB/wQE
// SIG // AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAkhl1DaZaQs8Z
// SIG // B9ny/JT6wJvwFelEllovcTPdUOUTe5mTdw/E+3JtV8u6
// SIG // ppyLRbpIHbYlMy20KJAychU6xdaci4BsP9oVNxSRMsEj
// SIG // fHKz7ARqPNdpclhYAINLjsFGMO1iUNbXiAsnF/xboNCg
// SIG // feMcMYbLyQYkU6UMobv9isrtQZ8e0EAQNV7qXJn4W0Ky
// SIG // uTt0P8iIv/5DdDpIUBIktDZcjz2KEW6B1gvvsKIM1esj
// SIG // YwWylAazBcQAake5pANMdSn8t1HdPKsiwuWfOguyRQaz
// SIG // AX8oXz6SlZSIok0Lis9a02vGVtdhEaB0R3HxIyNRMMKW
// SIG // V1yuSeUXFuoexWav3GRPZC0WYb50SrW/l+wgrS8doeta
// SIG // MwyZon2L7ioYlIPSy1h9Dq/Q911PsSkbEZ3zrsB1roVn
// SIG // IfBu5BJp0xvQrQ/Q4LavuvCoFR7QFoypNrotbNYi2AGM
// SIG // Zw5td4zGZtCqUTPZi0BwSuRm+HRYAEMMThTwbJX/fYV1
// SIG // oC8mBN970yIvadIGKhh7+DmYdRJYBrL8inVFCZAK+YX2
// SIG // w1+qWEnCSPL/VTWJtSRMhQFfceDKbJC+pBNksvKzqkva
// SIG // 0J1ZyMj1i4vDfSuBmbz4rfzsvvJxS+quZDdkmW6MeXev
// SIG // WGBXvqzdbAw+AqTVsAQUyP6tFeKZIL4S/fSFdl2rIx2X
// SIG // +KXkqx3S+EYxggOZMIIDlQIBATCBhzBzMQswCQYDVQQG
// SIG // EwJVUzEOMAwGA1UECAwFVGV4YXMxEDAOBgNVBAcMB0hv
// SIG // dXN0b24xETAPBgNVBAoMCFNTTCBDb3JwMS8wLQYDVQQD
// SIG // DCZTU0wuY29tIFRpbWVzdGFtcGluZyBJc3N1aW5nIFJT
// SIG // QSBDQSBSMQIQXxy8jFw+X28k/TpP5IjWKDALBglghkgB
// SIG // ZQMEAgGgggFkMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0B
// SIG // CRABBDAcBgkqhkiG9w0BCQUxDxcNMjIwNDA0MTIzNzQ0
// SIG // WjArBgkqhkiG9w0BCTQxHjAcMAsGCWCGSAFlAwQCAaEN
// SIG // BgkqhkiG9w0BAQsFADAvBgkqhkiG9w0BCQQxIgQgPtC/
// SIG // UWv/DgziTn3lRQOmcJYu4S3x0rDkIzTsaVEnUdEwgckG
// SIG // CyqGSIb3DQEJEAIvMYG5MIG2MIGzMIGwBCChzTkcEQ86
// SIG // 6hiVLWyQQdvmboGlq1yRcW21jitn6eV/mDCBizB3pHUw
// SIG // czELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMRAw
// SIG // DgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wgQ29y
// SIG // cDEvMC0GA1UEAwwmU1NMLmNvbSBUaW1lc3RhbXBpbmcg
// SIG // SXNzdWluZyBSU0EgQ0EgUjECEF8cvIxcPl9vJP06T+SI
// SIG // 1igwDQYJKoZIhvcNAQELBQAEggGAbar8xeVbH5hsdg/E
// SIG // bOh7nwXYA2TGMKKolUKB3CjB85PwCE7P17Rytic0DOjg
// SIG // LwXcH8gm6Gy2jAw1gdGNzu5VO+oiqPGbt0Asa5k0oeYX
// SIG // 6STCdnfj3XJtCR+w3HjGDiw2ijqvJmTvk6tYubm6UDy9
// SIG // 5uTNilJ3us1tTllJu5pMRHg1CDmlyvEuvuDF7xvS5/gZ
// SIG // fydrA8AkR4aKyMPdU8UhDrNMxBM+zefS+T6J8db0u2+Q
// SIG // 46+WuGzrLZASnmZBOWLBMGT9XNMRmwVGk8rNkD2uo1VK
// SIG // zOf+53t9rsbkhcBFW90F/5sM4GVcI3TOZIosUztTJ8Cw
// SIG // AcemYUXB9jd6ZOanKO0kBp/MSOMzoAzpUlrzGNe/2U/F
// SIG // TdDd6Q581QYHpES5tDxOaEFqdv0agKxyn71V6HYpJyzs
// SIG // 3FRJkzV6aSooO4Vo31geXsrH4Rjmyx2dDXGeZ0IEYMny
// SIG // UztW5o5J9mRWDHyoWDCB+mbTZ6ZPeFAAqjEOIyGm1uv6
// SIG // Fp5DTgRYuOvP
// SIG // End signature block
