/** 
 * 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] */
'use strict';var q;
(function(e){function l(f){return"undefined"===typeof f||null===f}class h{constructor(){}static FR(f,b){if(f==b)return 0;f=f.split(".");b=b.split(".");if(f.length<b.length)return-1;if(f.length>b.length)return 1;for(var a=0;a<f.length;a++){var c=parseInt(f[a]),d=parseInt(b[a]);if(c<d)return-1;if(c>d)return 1}return 0}static Zc(f){return void 0!==f&&null!==f&&("true"==f.toLowerCase()||"on"==f.toLowerCase())}static NL(){var f=(new Date).getTime()-(new Date(2012,2,8)).getTime()*Math.round(123456789*Math.random());
if(h.ECa==f)return f.toString(35)+(h.Zea++).toString();h.ECa=f;h.Zea=0;return f.toString(35)}static bind(f,...b){if(l(f))return f;for(var a=0;a<b.length;a++)f=f.replace(new RegExp("\\{"+a+"\\}","gi"),null==b[a]?"":b[a].toString());return f}static Cx(f,b=null){return isNaN(f)?e.model.B.j.Qn:u.zh.iya(f,b)}static Bx(f,b,a){void 0===b&&(b="dd/MM/yyyy");if(isNaN(f)||0===f)return e.model.B.j.Qn;f=new Date(f);return isNaN(f.getTime())?"":u.zh.format(f,b,a)}static ON(f,b,a){void 0===b&&(b="dd/MM/yyyy HH:mm:ss");
return h.Bx(f,b,a)}static HT(f){return Date.parse(f)&&this.jDa(f)}static jDa(f){return this.xCa.test(f)}static Bo(f){if(l(f))return 0;if("#"===f.substr(0,1))return parseInt(f.substr(1),16);"transparent"==f&&(f="rgb(255,255,255)");f=f.replace(/[^\d,]/g,"");f=f.split(",");var b=parseInt(f[0]),a=parseInt(f[1]),c=parseInt(f[2]);0===parseInt(f[3])&&(b=a=c=255);return c|a<<8|b<<16}static c5(f){for(var b=new Uint8Array(f.length),a=0,c=f.length;a<c;++a)b[a]=f.charCodeAt(a);return b}static uba(f){f=-1!==f.split(",")[0].indexOf("base64")?
atob(f.split(",")[1]):decodeURI(f.split(",")[1]);return h.c5(f)}static Awa(f){for(var b=f.length,a=Array(b);b--;)a[b]=String.fromCharCode(f[b]);return a.join("")}static contains(f,b){return l(f)?!1:-1<f.toLowerCase().indexOf(b)}static j5(f){if(null==f)return NaN;if("number"===typeof f)return f;"string"!==typeof f&&(f=f.toString());","==e.model.ec.gj.RS().kf&&(f=f.replace(/,/gi,""));f=f.replace(",",".");f=f.replace(/[^[,|\.|\-|\d|e]]*/gi,"");return parseFloat(f)}static trim(f,b=null){if(null==f)return"";
for(var a=0;h.c2(f.charAt(a),b);)++a;for(var c=f.length-1;h.c2(f.charAt(c),b);)--c;return c>=a?f.slice(a,c+1):""}static trimLeft(f,b=null){if(null==f)return"";for(var a=0;h.c2(f.charAt(a),b);)++a;b=f.length-1;return b>=a?f.slice(a,b+1):""}static c2(f,b=null){if(null!=b&&f==b)return!1;switch(f){case " ":case "\t":case "\r":case "\n":case "\f":return!0}return!1}static NBa(f){for(var b in h.CL)if(h.CL[b]==f)return!0;return!1}static PG(f){return"string"!==typeof f||"="!=f.charAt(0)&&"@"!=f.charAt(0)?
f:"'"+f}static yxa(f){return f.replace(/[\s]{2,}/g,function(b){let a="";var c=0;for(b=b.length;c<b;c++)a+="&nbsp;";return a})}static zo(f,b=!1,a=!1){if(l(f))return"";a&&(f=h.yxa(""+f));return b?f.replace(/[<>"'\/]/g,c=>h.CL[c]):f.replace(/[&<>"'\/]/g,c=>h.CL[c])}static zxa(f){if(l(f))return"";f=f.replace(/[&<>"']/g,b=>h.CL[b]);return f.replace(/[\s]{2,}/g,b=>{let a="";var c=0;for(b=b.length;c<b;c++)a+=" ";return a})}static cza(){return new Uint8Array([239,187,191])}static wba(f){h.xba.innerHTML=f;
return h.xba.value}}h.Zea=0;h.xCa=/^(?:[\+-]?\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)?)?)?)?$/;h.CL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&sol;"};h.xba=document.createElement("textarea");e.P=h;e.v=l;e.Fg=function(f){return"function"===typeof f};
e.ia=function(f){if(l(f))return!0;"string"!==typeof f&&(f=""+f);return 0===f.trim().length};e.mOa=function(f){return f.replace(/\|/g,"{%7C}")};e.lOa=function(f){return f.replace(/{%7C}/g,"|")};e.CK=function(f,b){var a=new Date(f.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(f.getUTCFullYear()+1),a;if("quarter"==c||"q"==c)return a.setUTCMonth(f.getUTCMonth()+3),a;if("month"==c||"M"==c)return a.setUTCMonth(f.getUTCMonth()+
1),a;if("week"==c||"w"==c)return a.setUTCDate(f.getUTCDate()+7),a;if("day"==c||"d"==c)return a.setUTCDate(f.getUTCDate()+1),a;b=parseInt(b)||1;if("hour"==c||"h"==c)return a.setUTCHours(f.getUTCHours()+b),a;if("minute"==c||"m"==c)return a.setUTCMinutes(f.getUTCMinutes()+b),a;"second"!=c&&"s"!=c||a.setUTCSeconds(f.getUTCSeconds()+b);return a};e.sHa=function(f){var b=document.createElement("a");b.href=f;f={protocol:b.protocol,host:b.host,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,
hash:b.hash};-1<f.protocol.indexOf(":")&&(f.protocol=f.protocol.substr(0,f.protocol.length-1));return f}})(q||(q={}));
(function(e){class l{constructor(h,f={}){this.hi=0;this.yi=this.$h=!1;const b=void 0===f.wy?!0:f.wy;h instanceof Date?h=h.getTime():void 0===h&&b?h=e.v(window.flexmonster_test_now)?Date.now():(new Date(window.flexmonster_test_now)).getTime():e.ia(h)||"null"===h?(b?this.yi=!0:this.$h=!0,h=NaN):"number"===typeof h?isNaN(h)&&(this.$h=!0):"string"===typeof h?(e.ia(f.format)?this.$Ba(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.OGa(h,f.format),isNaN(h)&&(this.$h=!0)):(this.yi=!0,h=NaN);this.Dc=isNaN(h)?new Date(NaN):new Date(h);this.Aj(this.Dc.getTimezoneOffset())}$Ba(h){return 4==h.length||7==h.length&&"-"==h.charAt(4)||10==h.length&&"-"==h.charAt(4)&&"-"==h.charAt(7)?!0:!1}round(h){if(!e.ia(h)){var f=h.match(/[s|M|m|w|q|h|d|y]$/);h=parseFloat(h.substr(0,h.length-1));if(!isNaN(h)&&null!==f){switch(f[0]){case "s":var b=h;break;case "m":b=60*h;break;case "h":b=3600*h;break;case "d":b=86400*
h;break;case "w":this.Kia();break;case "M":this.qI();break;case "q":this.Jia();break;case "y":this.Lia()}void 0!==b&&(b*=1E3,this.Dc.setTime(Math.floor(this.Dc.getTime()/b)*b))}}}getDate(){if(!this.yi&&!this.$h)return this.Dc.getUTCDate()}setDate(h){if(!this.yi&&!this.$h)return this.Dc.setUTCDate(h),this}getDay(){if(!this.yi&&!this.$h)return this.Dc.getUTCDay()}getFullYear(){if(!this.yi&&!this.$h)return this.Dc.getUTCFullYear()}setFullYear(h,f=null,b=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCFullYear(h):
e.v(b)?this.Dc.setUTCFullYear(h,f):this.Dc.setUTCFullYear(h,f,b),this}getHours(){if(!this.yi&&!this.$h)return this.Dc.getUTCHours()}setHours(h,f=null,b=null,a=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCHours(h):e.v(b)?this.Dc.setUTCHours(h,f):e.v(a)?this.Dc.setUTCHours(h,f,b):this.Dc.setUTCHours(h,f,b,a),this}getMilliseconds(){if(!this.yi&&!this.$h)return this.Dc.getUTCMilliseconds()}setMilliseconds(h){if(!this.yi&&!this.$h)return this.Dc.setUTCMilliseconds(h),this}getMinutes(){if(!this.yi&&
!this.$h)return this.Dc.getUTCMinutes()}setMinutes(h,f=null,b=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCMinutes(h):e.v(b)?this.Dc.setUTCMinutes(h,f):this.Dc.setUTCMinutes(h,f,b),this}getMonth(){if(!this.yi&&!this.$h)return this.Dc.getUTCMonth()}setMonth(h,f=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCMonth(h):this.Dc.setUTCMonth(h,f),this}getSeconds(){if(!this.yi&&!this.$h)return this.Dc.getUTCSeconds()}setSeconds(h,f=null){if(!this.yi&&!this.$h)return e.v(f)?this.Dc.setUTCSeconds(h):
this.Dc.setUTCSeconds(h,f),this}getTimezoneOffset(){if(!this.yi&&!this.$h)return this.hi}Aj(h,f=!0){if(!this.yi&&!this.$h){if(isNaN(h)||e.v(h))return this;0!=h&&60>Math.abs(h)&&(h*=-60);h!==this.hi&&(f&&this.Dc.setUTCMinutes(this.Dc.getUTCMinutes()+(this.hi-h)),this.hi=h);return this}}getTime(){return this.yi||this.$h?NaN:this.Dc.getTime()+6E4*this.hi}qZ(h){this.setDate(this.getDate()+h);return this}Jsa(h){this.setMonth(this.getMonth()+h)}Lia(){this.setMonth(0,1);this.Ln()}Jia(){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.Ln()}qI(){this.setDate(1);this.Ln();return this}Kia(h=1){this.setDate(this.getDate()-(this.getDay()-h+7)%7);this.Ln()}Ln(){this.setHours(0,0,0,0);return this}m5(h,f=1){"day"==h?this.Ln():"week"==h?this.Kia(f):"month"==h?this.qI():"quarter"==h?this.Jia():"year"==h&&this.Lia()}eKa(){this.setMonth(11,31);this.eA();return this}cKa(){9<=this.getMonth()?this.setMonth(11,
1):6<=this.getMonth()?this.setMonth(8,1):3<=this.getMonth()?this.setMonth(5,1):0<=this.getMonth()&&this.setMonth(2,1);this.setDate(l.F_(this.getMonth(),this.getFullYear()));this.eA();return this}bKa(){this.setDate(l.F_(this.getMonth(),this.getFullYear()));this.eA();return this}dKa(h=1){this.setDate(this.getDate()+(6-this.getDay()+h)%7);this.eA();return this}eA(){this.setHours(23,59,59,999);return this}i5(h,f=1){return"day"==h?this.eA():"week"==h?this.dKa(f):"month"==h?this.bKa():"quarter"==h?this.cKa():
"year"==h?this.eKa():this}Ug(){return this.yi||this.$h?!1:!isNaN(this.Dc.getTime())}format(h){return this.$h?e.model.B.j.Qn:this.yi?"":this.lCa(h)?u.zh.format(this.Bx(),h):u.zh.format(this.Dc,"UTC:"+h)}lCa(h){return null!==u.zh.lg(h)}toString(){return this.format("yyyy-MM-dd HH:mm:ss")}Bx(){return new Date(this.getTime())}clone(){var h=new l;this.$h||this.yi||(h.Dc=new Date(this.Dc.getTime()));h.hi=this.hi;return h}OGa(h,f){var b=NaN;const a="UTC"===f.slice(0,3);if("UTC"===f.slice(0,3)||"GMT"===f.slice(0,
3))f=f.split(":")[1];"dd/MM/yyyy"===f?(f=h.split("/"),b=a?Date.UTC(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0])):(new Date(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0]))).getTime()):"dd-MM-yyyy"===f?(f=h.split("-"),b=a?Date.UTC(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0])):(new Date(parseInt(f[2]),parseInt(f[1])-1,parseInt(f[0]))).getTime()):"dd/MM/yyyy HH:mm:ss"===f&&(f=h.split(" "),h=f[0].split("/"),e.ia(f[1])?b=a?Date.UTC(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0])):(new Date(parseInt(h[2]),
parseInt(h[1])-1,parseInt(h[0]))).getTime():(f=e.ia(f[1])?[]:f[1].split(":"),b=a?Date.UTC(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]),parseInt(f[0]),parseInt(f[1]),parseInt(f[2])):(new Date(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]),parseInt(f[0]),parseInt(f[1]),parseInt(f[2]))).getTime()));return b}static F_(h,f){return l.ira[h]+(1==h&&0==f%4?1:0)}static d0(h,f){return h&&f?h.getTime()==f.getTime():h==f}}l.ira={0:31,1:28,2:31,3:30,4:31,5:30,6:31,7:31,8:30,9:31,10:30,11:31};e.Zg=l})(q||(q=
{}));
(function(e){class l{constructor(){(this.isNative=e.Fg(Set))?this.NB=new Set:this.hy=[]}add(h){if(this.isNative)return this.NB.add(h),this;0>this.hy.indexOf(h)&&this.hy.push(h);return this}clear(){if(this.isNative)return this.NB.clear();this.hy.length=0}delete(h){if(this.isNative)return this.NB.delete(h);h=this.hy.indexOf(h);if(0>h)return!1;this.hy.splice(h,1);return!0}has(h){return this.isNative?this.NB.has(h):0<=this.hy.indexOf(h)}get size(){return this.isNative?this.NB.size:this.hy.length}Nc(){if(this.isNative){if(e.Fg(Array.from))return Array.from(this.NB);const h=
[];this.NB.forEach(f=>h.push(f));return h}return this.hy}}e.XE=l})(q||(q={}));
(function(e){class l{constructor(){this.fl={}}get target(){return null}hG(c,d){return c.type===d.type&&c.Jb===d.Jb&&c.w5===d.w5}o1(c,d){if(e.v(this.fl[c]))return!1;for(var g=0;g<this.fl[c].length;g++)if(this.hG(this.fl[c][g],d))return!0;return!1}addEventListener(c,d,g){var k={type:c,Jb:d,w5:g};this.o1(c,k)||(e.v(this.fl[c])&&(this.fl[c]=[]),this.fl[c].push(k),this.target.addEventListener(c,d,g))}removeEventListener(c,d,g){d={type:c,Jb:d,w5:g};for(c in this.fl){for(var k=[],m=0;m<this.fl[c].length;m++)this.hG(this.fl[c][m],
d)?"boolean"===typeof g?this.target.removeEventListener(c,this.fl[c][m].Jb,g):this.target.removeEventListener(c,this.fl[c][m].Jb):k.push(this.fl[c][m]);this.fl[c]=k}}dispose(){for(var c in this.fl)for(var d=0;d<this.fl[c].length;d++)this.target.removeEventListener(c,this.fl[c][d].Jb,!0),this.target.removeEventListener(c,this.fl[c][d].Jb,!1);this.fl={}}}class h extends l{static V(){null===h.instance&&(h.instance=new h);return h.instance}get target(){return document.body}}h.instance=null;class f extends l{static V(){null===
f.instance&&(f.instance=new f);return f.instance}get target(){return document}}f.instance=null;class b extends l{static V(){null===b.instance&&(b.instance=new b);return b.instance}get target(){return window}}b.instance=null;class a{static dispose(){for(;0<a.NN.length;)clearTimeout(a.NN.pop());for(;0<a.xM.length;)clearInterval(a.xM.pop())}}a.NN=[];a.xM=[];e.lqa=a;e.Ce=function(c,d){c=setTimeout(c,d);a.NN.push(c);return c};e.ts=function(c){clearTimeout(c);a.NN.splice(a.NN.indexOf(c),1)};e.Eca=function(c,
d){c=setInterval(c,d);a.xM.push(c);return c};e.p0=function(c){clearInterval(c);a.xM.splice(a.xM.indexOf(c),1)};e.Dn=h.V();e.vk=f.V();e.JL=b.V()})(q||(q={}));var u;
(function(e){class l{constructor(){}static YBa(h){return null!=h&&(0==h.indexOf("http://")||0==h.indexOf("https://"))}static zBa(h){return null!=h&&0==h.indexOf("blob:http")}static sH(h,f=!1){if(!h)return"()";h=h.trim();if(0==h.length)return"()";if(l.zBa(h))return h;f&&(h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600));if(l.YBa(h)||0==h.indexOf("file")||"/"==h.substr(0,1)||"./"==h.substr(0,2))return h;if(-1!=h.indexOf("..")){f=l.g_.split("/");""==f[f.length-1]&&f.pop();for(h=h.split("/");".."==
h[0]&&(0<h.length&&h.shift(),0<f.length&&f.pop(),0!=f.length););h=f.join("/")+"/"+h.join("/");"/"==h.substr(0,1)&&(h=h.substring(1));return h}return l.g_+h}static Tsa(h){return h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600)}}l.g_="";e.ey=l})(u||(u={}));
(function(e){class l{constructor(){}static format(h,f,b){var a=!1,c=this.lg(f);"UTC:"==f.slice(0,4)?(f=f.slice(4),a=!0):q.v(c)?q.v(b)||(h=new Date(h.getTime()+36E5*(b+h.getTimezoneOffset()/60))):(f=f.slice(f.indexOf(":")+1),h=new Date(h.getTime()+36E5*(c+h.getTimezoneOffset()/60)));var d=a?"getUTC":"get";b=h[d+"Date"]();c=h[d+"Day"]();var g=h[d+"Month"](),k=h[d+"FullYear"](),m=h[d+"Hours"](),n=h[d+"Minutes"](),p=h[d+"Seconds"]();d=h[d+"Milliseconds"]();var t=a?0:h.getTimezoneOffset(),r={d:b,dd:l.In(b),
ddd:l.Hu.AG[c],dddd:l.Hu.AG[c+7],D:b,DD:l.In(b),DDD:l.Hu.AG[c],DDDD:l.Hu.AG[c+7],M:g+1,MM:l.In(g+1),MMM:l.Hu.yU[g],MMMM:l.Hu.yU[g+12],yy:String(k).slice(2),yyyy:k,YY:String(k).slice(2),YYYY:k,h:m%12||12,hh:l.In(m%12||12),H:m,HH:l.In(m),k:0==m?24:m,kk:0==m?24:l.In(m),m:n,mm:l.In(n),s:p,ss:l.In(p),l:l.In(d,3),L:l.In(Math.round(d/10)),t:12>m?"a":"p",tt:12>m?"am":"pm",T:12>m?"A":"P",TT:12>m?"AM":"PM",Z:a?"UTC":(String(h).match(l.XJa)||[""]).pop().replace(l.YJa,""),o:(0<t?"-":"+")+l.In(100*Math.floor(Math.abs(t)/
60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<b%10?0:(10!=b%100-b%10?1:0)*b%10]};return f.replace(l.Pia,function(w){return w in r?r[w]:w.slice(1,w.length-1)})}static iya(h,f){var b=0>h;0>h&&(h*=-1);var a=Math.floor(h/86400);f=null==f||""==f?0<a&&null==q.model.C.F.Wo?"d'd' "+this.Eba:this.Eba:f;h=Math.round(h);var c=h%60;h=(h-c)/60;var d=h%60;h=(h-d)/60;var g=h%24;b&&(f="-"+f);var k={d:a,dd:l.In(a),H:g,HH:l.In(g),HHH:h,m:d,mm:l.In(d),s:c,ss:l.In(c)};return f.replace(l.Pia,function(m){return m in
k?k[m]:m.slice(1,m.length-1)})}static lg(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.pI.hasOwnProperty(h.slice(0,2))?this.pI[h.slice(0,2)]:this.pI.hasOwnProperty(h.slice(0,3))?this.pI[h.slice(0,3)]:this.pI.hasOwnProperty(h.slice(0,4))?this.pI[h.slice(0,4)]:null}static In(h,f){h=""+h;for(f=f||2;h.length<f;)h="0"+h;return h}static bJa(h,f){l.Hu.AG=f.concat(h)}static nJa(h,f){l.Hu.yU=f.concat(h)}static Cza(){return l.Hu.AG.slice(7,
14)}static eAa(){return l.Hu.yU.slice(12,24)}}l.Eba="HH:mm:ss";l.pI={CET:1,EET:2,EAT:3,GET:4,CXT:7,CST:8,JST:9,SAKT:11,IDLE:12,WAT:-1,AT:-2,ART:-3,AST:-4,EST:-5,CT:-6,MST:-7,PST:-8,AKST:-9,YST:-9,HST:-10,NT:-11,IDLW:-12};l.Pia=/d{1,4}|D{1,4}|m{1,4}|M{1,4}|yy(?:yy)?|YY(?:YY)?|H{1,3}|([HhkMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g;l.XJa=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;l.YJa=/[^-+\dA-Z]/g;l.Hu={AG:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
yU:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")};e.zh=l})(u||(u={}));
(function(e){class l{constructor(){}static sort(h,f=0,b){var a=1===f%2;f>>=1;var c=1===f%2;f=f>>1>>1;var d=1===(f>>1)%2?(g,k)=>{if(void 0!==b){if(e.v(k))return-1;if(e.v(g))return 1;g=b(g);k=b(k)}return isNaN(k)||null===k?-1:isNaN(g)||null===g?1:g-k}:a?(g,k)=>{if(e.ia(k))return-1;if(e.ia(g))return 1;if(void 0!==b){g=b(g);k=b(k);if(e.ia(k))return-1;if(e.ia(g))return 1}return l.localeCompare(g,k)}:(g,k)=>{if(e.ia(k))return-1;if(e.ia(g))return 1;if(void 0!==b){g=b(g);k=b(k);if(e.ia(k))return-1;if(e.ia(g))return 1}return l.localeCompare(g.toLocaleLowerCase(),
k.toLocaleLowerCase())};if(1===f%2){f=[];for(a=0;a<h.length;a++)f[a]=a;f.sort((g,k)=>d(h[g],h[k]));c&&f.reverse();return f}h.sort(d);c&&h.reverse();return h}static localeCompare(h,f){return h&&h.localeCompare?h.localeCompare(f):h===f?0:h>f?1:-1}static insert(h,f,b){for(var a=0;a<f.length;a++)h.splice(b+a,0,f[a])}static vr(h,f){if(void 0!==h.push)return h.push(f),h;var b=new h.constructor(h.length+1);b.set(h,0);b.set([f],h.length);return b}static se(h,f,b){if(b>=h.length)return l.vr(h,f);if(Array.isArray(h))return h.splice(b,
0,f),h;var a=new h.constructor(h.length+1);a.set(h.subarray(0,b));a.set([f],b);a.set(h.subarray(b),b+1);return a}static wr(h,f){if(Array.isArray(h))return h.splice(f,1),h;if(h instanceof Uint8Array||h instanceof Int8Array||h instanceof Uint16Array||h instanceof Uint32Array){const b=h.length-1;let a=null;h instanceof Uint8Array?a=new Uint8Array(b):h instanceof Int8Array?a=new Int8Array(b):h instanceof Uint16Array?a=new Uint16Array(b):h instanceof Uint32Array&&(a=new Uint32Array(b));if(null==a)return h;
a.set(h.subarray(0,f),0);a.set(h.subarray(f+1,h.length),f);return a}return h}static F2(h,f,b){h.splice(b,0,h.splice(f,1)[0])}}l.Lx=1;l.ep=2;l.Bv=8;l.Ki=16;e.Ja=l})(q||(q={}));void 0===Array.prototype.findIndex&&(Array.prototype.findIndex=function(e,l){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),f=h.length>>>0,b=0;b<f;b++)if(e.call(l,h[b],b,h))return b;return-1});
void 0===Array.prototype.find&&(Array.prototype.find=function(e,l){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),f=h.length>>>0,b=0;b<f;b++){var a=h[b];if(e.call(l,a,b,h))return a}});void 0===Uint16Array.prototype.slice&&Object.defineProperty(Uint16Array.prototype,"slice",{value:function(e,l){return new Uint16Array(Array.prototype.slice.call(this,e,l))}});
(function(e){class l{constructor(){this.values=new Map;this.keys=[]}Ta(h,f){this.values.has(h)||this.keys.push(h);this.values.set(h,f)}Bsa(h){if(null!=h)for(var f in h)h.hasOwnProperty(f)&&this.Ta(f,h[f])}unshift(h,f){this.keys.unshift(h);this.values.set(h,f)}DK(h,f,b){null!=this.getItem(h)&&this.removeItem(h);this.keys.splice(b,0,h);this.values.set(h,f)}removeItem(h){null!=this.getItem(h)&&(this.keys.splice(this.indexOf(h),1),this.values.delete(h))}h4(h){var f=this.keys[h];null!=f&&(this.keys.splice(h,
1),this.values.delete(f))}set length(h){}get length(){return this.keys.length}indexOf(h){return this.keys.indexOf(h)}Hb(h){return this.values.has(h)}getItem(h){return this.values.get(h)}ea(h){return this.values.get(this.keys[h])}Jh(h){return this.keys[h]}YS(){return this.values.get(this.keys[this.keys.length-1])}G2(h,f){this.keys.splice(f,0,this.keys.splice(h,1)[0])}slice(h=0,f=0){0==f&&(f=this.length-h);for(var b=new l,a=0;a<f;a++)this.length>a+h&&(e.v(this.ea(a+h))||b.Ta(this.Jh(a+h),this.ea(a+
h)));return b}concat(h,f=!0){if(!f)return this.fra(h),null;var b=new l;for(f=0;f<this.length;f++)b.Ta(this.Jh(f),this.ea(f));for(f=0;f<h.length;f++)b.Ta(h.Jh(f),h.ea(f));return b}fra(h){var f,b=h.length;for(f=0;f<b;f++)this.Ta(h.Jh(f),h.ea(f))}splice(h,f=0){var b=new l;h+f>this.length&&(f=this.length-h);1>f&&(f=this.length);for(var a=0;a<this.length;a++)(a<h||a>=h+f)&&b.Ta(this.Jh(a),this.ea(a));return b}reverse(){var h,f=new l;for(h=this.length-1;-1<h;h--)f.Ta(this.Jh(h),this.ea(h));return f}Nc(h=
!1){if(h)return this.keys.slice(0);h=[];for(var f=0;f<this.length;f++)h.push(this.ea(f));return h}toString(){var h=[],f;for(f in this.keys){var b="{"+f+": "+this.getItem(f)+"}";h.push(b)}return h.join(", ")}Qa(){for(var h={},f=0;f<this.keys.length;f++){var b=this.keys[f];h[b]=this.getItem(b)}return h}clear(){this.values=new Map;this.keys.length=0}}e.tb=l})(q||(q={}));
(function(e){class l{constructor(){this.quotes=[]}parse(h){try{this.quotes=[];for(var f=[],b=!1,a="",c=0;c<h.length;c++){var d=h.charAt(c);'"'==d||"'"==d?(b&&(this.quotes.push(a),f.push(d),a=""),b=!b):b&&(a+=d)}h="  "+h;for(c=0;c<this.quotes.length;c++)if("truestyle"!=this.quotes[c].toLowerCase()){var g=f[c]+this.quotes[c]+f[c],k=h.substring(0,h.indexOf(g)+g.length+2);var m=/(\w\w\w\()['|"][^'|^"]*['|"]/i;if(m.test(k))h=h.replace(g,"@"+c);else{m=/(\W)['|"][^'|^"]*['|"]/i;var n=(-1!=k.indexOf("#value")||
-1!=k.indexOf("#updateDifference")||-1!=k.indexOf("#updatePercent"))&&-1!=k.indexOf("if(");m.test(k)&&!n?h=h.replace(g,"sum(@"+c+")"):(m=/(\W)['|"][^'|^"]*['|"]/i,h=h.replace(g,"@"+c))}}m=/#value/g;h=h.replace(m,"value()");m=/#updateDifference/g;h=h.replace(m,"updateDifference()");m=/#updatePercent/g;h=h.replace(m,"updatePercent()");h=h.toLocaleLowerCase();var p=this.w$(h);p=p[1][0]}catch(t){return null}return p}w$(h){for(var f=[],b="",a=h.length,c=0;c<h.length;c++){var d=h.charAt(c);if("("==d)b+=
"$"+f.length+";",d=this.w$(h.slice(c+1)),f.push(d[1]),c=c+d[0]+1;else if(")"==d){a=c;break}else b+=d}h=[];b=b.split(",");for(c=0;c<b.length;c++)h.push(this.UY(b[c],f));return[a,h]}UY(h,f){for(var b=[[" or "," and "],"== != >= <= = > <".split(" "),["-","+"],["/","*"],["^"]],a=0;a<b.length;a++){var c=Number.MIN_VALUE,d=b[a][0];if(3==a){c=h.indexOf(b[a][0]);var g=h.indexOf(b[a][1]);-1!=c&&-1!=g?d=c<g?b[a][1]:b[a][0]:-1!=c?d=b[a][0]:-1!=g&&(d=b[a][1])}else for(g=0;g<b[a].length;g++){var k=h.indexOf(b[a][g]);
-1!=k&&(k>=c||2==a)&&(d=b[a][g],c=k+d.length)}c=h.split(d);2<c.length&&(g=c[c.length-1],c.pop(),c=[c.join(d),g]);if(2==c.length)return[d.trim(),[this.UY(c[0],f),this.UY(c[1],f)],!0]}return this.Sra(h,f)}Sra(h,f){h=h.trim();if(-1!=h.indexOf("$")){var b=h.split("$");h=b[0];b=parseInt(b[1]);if(0<h.length){var a="string"!=typeof f[b][0];("min"==h||"max"==h)&&1<f[b].length&&(a=!0,"string"==typeof f[b][0]&&(f[b][0]=["sum",[f[b][0]],!1]),"string"==typeof f[b][1]&&(f[b][1]=["sum",[f[b][1]],!1]));if("value"===
h||"updatedifference"===h||"updatepercent"===h)a=!0;return[h,f[b],a]}return f[b][0]}if(-1!=h.indexOf("@"))return f=parseInt(h.slice(1)),this.quotes[f];if("truestyle"==h.toLowerCase()||"truestyle"==h.substring(1,h.length-1).toLowerCase())return"truestyle";f=parseFloat(h);return isNaN(f)?h:f}}e.rJ=l})(u||(u={}));
(function(e){class l{static get Ho(){return/Mac/i.test(navigator.platform)}static get vD(){return/(iPhone|iPod|iPad)/i.test(navigator.platform)||/(iPhone|iPod|iPad)/i.test(navigator.userAgent)}}e.hj=l})(u||(u={}));
(function(e){class l{constructor(f=!0){this.values=[];this.iR=[];this.root=new h("");this.nR=f}get length(){return this.values.length}add(f,b){if(q.v(f)||0===f.length)return void 0===this.Zy&&(this.Zy=this.values.length,this.values.push(f)),this.Zy;f=""+f;if(this.nR){const a=/[^\u0000-\u007F]+/.test(f)?f.toLocaleLowerCase():f.toLowerCase();return this.root.P$(f,a,a===f,this.values,this.iR,b)}return this.root.Q$(f,this.values,b)}get(f){return this.nR?this.iR[f]||this.values[f]:this.values[f]}find(f){if(q.v(f)||
0===f.length)return void 0!==this.Zy?this.Zy:-1;f=""+f;const b=/[^\u0000-\u007F]+/.test(f);this.nR&&(f=b?f.toLocaleLowerCase():f.toLowerCase());return this.root.find(f,0,this.values,b)}sort(){var f=this.root.sort(l.d_);void 0!==this.Zy&&f.unshift(this.Zy);return f}clone(){var f=new l(this.nR);f.values=this.values.slice();f.iR=this.iR.slice();f.Zy=this.Zy;f.root=this.root.clone();return f}static d_(f,b){return f&&f.localeCompare?f.localeCompare(b):f==b?0:f>b?1:-1}}e.HP=l;class h{constructor(f){this.Qg=
[];this.prefix=f}Q$(f,b,a){var c=this.prefix.length;if(void 0!==this.children&&f.length>c)return c=f[c],this.children.has(c)||this.children.set(c,new h(this.prefix+c)),this.children.get(c).Q$(f,b,a);for(var d=0;d<this.Qg.length;d++){c=b[this.Qg[d]];if(f<c)return this.UP(f,b,a,d);if(f===c){if(void 0===a)return this.Qg[d];b[a]=f;this.Qg.splice(d,0,a);return a}}return this.UP(f,b,a)}P$(f,b,a,c,d,g){var k=this.prefix.length;if(void 0!==this.children&&b.length>k)return k=b[k],this.children.has(k)||this.children.set(k,
new h(this.prefix+k)),this.children.get(k).P$(f,b,a,c,d,g);for(var m=0;m<this.Qg.length;m++){k=c[this.Qg[m]];if(b<k)return a?this.UP(f,c,g,m):this.x9(f,b,c,d,g,m);if(b===k){if(void 0===g)return this.Qg[m];c[g]=b;a||(d[g]=f);this.Qg.splice(m,0,g);return g}}return a?this.UP(f,c,g):this.x9(f,b,c,d,g)}x9(f,b,a,c,d,g=-1){void 0===d?(d=a.length,a.push(b),c[d]=f):(a[d]=b,c[d]=f);-1===g?this.Qg.push(d):this.Qg.splice(g,0,d);this.Qg.length>h.Y7&&this.J$(a);return d}UP(f,b,a,c=-1){void 0===a?(a=b.length,b.push(f)):
b[a]=f;-1===c?this.Qg.push(a):this.Qg.splice(c,0,a);this.Qg.length>h.Y7&&this.J$(b);return a}J$(f){if(!this.children){this.children=new Map;for(var b,a=this.prefix.length,c=-1,d=0,g=0;g<this.Qg.length;g++)b=f[this.Qg[g]],b.length===a?c=this.Qg[g]:(b=b[a],this.children.has(b)||(this.children.set(b,new h(this.prefix+b)),d++),this.children.get(b).Qg.push(this.Qg[g]));this.Qg=-1===c?[]:[c]}}sort(f){var b=0<this.Qg.length?this.Qg.slice():[];if(void 0!==this.children){var a=[];for(var c of this.children.keys())a.push(c);
a=a.sort(f);for(c=0;c<a.length;c++){var d=this.children.get(a[c]).sort(f);b=b.concat(d)}}return b}find(f,b,a,c){if(void 0!==this.children&&f.length!==this.prefix.length){var d=f[b];return this.children.has(d)?this.children.get(d).find(f,b+1,a,c):-1}return this.tra(f,a,c)}tra(f,b,a){for(let d=0;d<this.Qg.length;d++){var c=b[this.Qg[d]];if(a){if(c=c.localeCompare(f),0===c)return this.Qg[d]}else if(f===c)return this.Qg[d]}return-1}clone(){var f=new h(this.prefix);f.Qg=this.Qg.slice();void 0!==this.children&&
(f.children=new Map(this.children));return f}}h.Y7=16})(u||(u={}));
(function(e){class l{static Eg(h){for(var f in h)if(!q.v(h[f]))return!1;return!0}static xG(h){var f={},b;for(b in h)f[b]=h[b];return f}static nj(h,f){if(q.v(h))return null;if(Array.isArray(h))return l.Bwa(h);var b={},a;for(a in h)b[a]="object"!=typeof h[a]||null==h[a]||null!=f&&-1<f.indexOf(a)?h[a]:l.nj(h[a]);return b}static Bwa(h){for(var f=[],b=0;b<h.length;b++)f[b]="object"!=typeof h[b]?h[b]:l.nj(h[b]);return f}static resolve(h,f){return q.v(f)?null:f.hasOwnProperty(h)?f[h]:h.split(".").reduce((b,
a)=>b&&b[a],f)}}e.Sc=l})(u||(u={}));var v;
(function(e){class l{constructor(f,b=null,a=null){this.i$=!1;this.type=f;this.target=b;this.data=a}static Gea(f){return-1<"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange focusin focusout touchstart touchmove touchend touchenter touchleave touchcancel".split(" ").indexOf(f)}stopPropagation(){this.i$=!0}get mCa(){return this.i$}}l.Oc="event_complete";l.vA="event_connected";l.ue="event_progress";l.np="event_select";l.$d="event_change";l.Aa="event_error";l.OPENED="event_opened";
l.CLOSED="event_closed";l.BW="event_cancel";l.OPEN="event_open";l.h6="event_close";l.HX="event_resize";l.cp="event_clear";e.fa=l;class h{constructor(){this.cS=!1;this.qh=[];this.gn=[];this.Dt=[]}hG(f,b){return f.type==b.type&&f.Jb==b.Jb}n1(f){return!q.v(this.qh[f])}o1(f,b){if(q.v(this.qh[f]))return!1;for(var a=0;a<this.qh[f].length;a++)if(this.hG(this.qh[f][a],b))return!0;return!1}N(f,b,a=0){b={type:f,Jb:b,priority:a};if(!this.o1(f,b))if(this.cS)q.v(this.gn[f])&&(this.gn[f]=[]),this.gn[f].push(b);
else if(q.v(this.qh[f])&&(this.qh[f]=[]),0==this.qh[f].length)this.qh[f].push(b);else{this.qh[f][this.qh[f].length-1].priority>=a&&this.qh[f].push(b);for(var c=0;c<this.qh[f].length;c++)if(this.qh[f][c].priority<a){this.qh[f].splice(c,0,b);break}}}sb(f,b){if(!q.v(this.qh[f])){b={type:f,Jb:b};for(var a=this.qh[f].slice(0),c=[],d=0;d<a.length;d++)this.hG(a[d],b)?this.cS&&(q.v(this.Dt[f])&&(this.Dt[f]=[]),this.Dt[f].push(a[d])):c.push(a[d]);this.qh[f]=c}}Yd(f){void 0===f?(this.qh=[],this.gn=[],this.Dt=
[]):(q.v(this.qh)||(this.qh[f]=[]),q.v(this.gn)||(this.gn[f]=[]),q.v(this.Dt)||(this.Dt[f]=[]))}Fa(f){if(!q.v(this.qh[f.type])){this.cS=!0;for(var b=this.qh[f.type].slice(0),a=0;a<b.length;a++){if(!q.v(this.Dt[f.type])){var c=!1,d;for(d in this.Dt[f.type])this.hG(b[a],this.Dt[f.type][d])&&(c=!0);if(c)continue}f instanceof q.model.cd?b[a].Jb.call(this,f.data):f instanceof l&&f.mCa||b[a].Jb.call(this,f)}delete this.Dt[f.type];for(var g in this.gn){if(q.v(this.qh[g]))b=[];else if(Array.isArray(this.qh[g]))b=
this.qh[g].slice(0);else continue;if(!q.v(this.gn[g]))for(a=0;a<this.gn[g].length;a++)if(0==b.length)b.push(this.gn[g][a]);else for(b[b.length-1].priority==this.gn[g][a].priority&&b.push(this.gn[g][a]),f=0;f<b.length;f++)if(b[f].priority<this.gn[g][a].priority){b.splice(f,0,this.gn[g][a]);break}this.qh[g]=b;this.gn[g]=[]}this.cS=!1}}$a(f,b,a){f=new e.fa(f,null==b?this:b,a);this.Fa(f)}}e.Ah=h})(v||(v={}));
(function(e){e.requestIdleCallback=function(h,f=null,b=!1){if(window.requestIdleCallback&&!b)return window.requestIdleCallback(h,f);var a,c=e.Qf(),d;return q.Ce(()=>{h({didTimeout:!1,timeRemaining:()=>void 0===a?(a=e.Qf(),d=Math.min(350,e.Qf()-c+50)):Math.max(0,d-(e.Qf()-a))})},1)};e.cancelIdleCallback=function(h){if(window.cancelIdleCallback)return window.cancelIdleCallback(h);q.ts(h)};class l{constructor(){throw Error("Singleton");}static eo(h){l.aI.push(h);l.pg()}static pg(){q.v(l.UK)&&0<l.aI.length&&
(3<l.B1&&(l.aea=!1),l.UK=e.requestIdleCallback(l.yIa,{timeout:100},!l.aea))}static yIa(h){if(h.didTimeout)l.B1++,l.jha();else for(l.B1=0;0<h.timeRemaining()&&0<l.aI.length&&!l.jha(););l.UK=null;l.pg()}static jha(){var h=l.aI.shift(),f=h.Uo(h.LZ);f?h&&h.$e&&q.Ce(h.$e,1):l.aI.push(h);return f}static cancel(){null!=l.UK&&(e.cancelIdleCallback(l.UK),l.UK=null);l.aI=[]}}l.aI=[];l.aea=!0;l.B1=0;e.Cl=l})(u||(u={}));
(function(e){function l(){var h=navigator.userAgent.toLowerCase(),f={};f.BM=/mozilla/.test(h)&&/firefox/.test(h);f.DT=/webkit/.test(h)&&/chrome/.test(h)&&!/edge/.test(h);f.L1=/edge/.test(h);f.rCa=/applewebkit/.test(h)&&/safari/.test(h)&&!/chrome/.test(h);f.Jea=/opera/.test(h);f.Xi=/msie/.test(h);f.oCa=/ReactNative/i.test(navigator.product);f.Mm=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(h)||/iPad|iPhone|iPod|BlackBerry/i.test(navigator.platform)||f.oCa;f.version=NaN;f.Xi||f.BM||
f.DT||f.rCa||f.Jea||!/trident/.test(h)||(f.Xi=!0,f.version=11);if(isNaN(f.version))for(var b=["chrome","firefox","msie","safari","opera"],a=0;a<b.length;a++)try{f.version=parseInt(h.match(new RegExp("("+b[a]+")( |/)([0-9]+)"))[3]);break}catch(c){}return f}e.Kd=function(){return l()};e.aS=l;e.PT=function(){return null!=document.fullscreenElement||null!=document.mozFullScreenElement||null!=document.webkitFullscreenElement||null!=document.msFullscreenElement};e.Q1=function(){return window!=top};e.sea=
function(){try{return!q.v(window.process.versions.electron)}catch(h){return!1}};e.VBa=function(){try{return void 0!==ArrayBuffer&&void 0!==DataView&&void 0!==Uint8Array&&(window.chrome&&navigator.userAgent.match(/chrome.\d*/gi)?12<=parseInt(navigator.userAgent.match(/chrome.\d*/gi)[0].replace(/[^\d]/g,"")):!0)&&(window.opera?15<=window.opera.version():!0)&&(navigator.userAgent.match("Safari/")?!navigator.userAgent.match("Version/5.")&&!navigator.userAgent.match("Version/6.0"):!0)}catch(h){return!1}};
e.cOa=function(h){var f=document.cookie,b=f.indexOf(" "+h+"=");-1==b&&(b=f.indexOf(h+"="));-1==b?f=null:(b=f.indexOf("=",b)+1,h=f.indexOf(";",b),-1==h&&(h=f.length),f=decodeURI(f.substring(b,h)));return f};e.hOa=function(h,f){var b=new Date;b.setDate(b.getDate()+1825);f=encodeURI(f)+"; expires="+b.toUTCString();document.cookie=h+"="+f};e.dOa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("landscape")};e.eOa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("portrait")};
e.oOa=function(){return Math.max(document.documentElement.clientWidth)};e.nOa=function(){return Math.max(document.documentElement.clientHeight)}})(u||(u={}));
(function(e){class l extends v.Ah{constructor(f,b=0){super();this.eQ=0;this.pK=!1;this.kra=f;this.D$=b}vGa(){this.eQ++;this.Fa(new v.fa(h.Al));0<this.D$&&this.eQ>=this.D$&&(this.stop(),this.Fa(new v.fa(h.Bl)))}start(){this.pK||(this.e$=q.Eca(()=>this.vGa(),this.kra),this.pK=!0)}stop(){this.pK&&!q.v(this.e$)&&(q.p0(this.e$),this.pK=!1)}reset(){this.eQ=0;this.stop()}set tw(f){}get tw(){return this.eQ}set pl(f){}get pl(){return this.pK}}e.wt=l;class h{}h.Al="timer";h.Bl="complete";e.pf=h;e.Qf=function(){return"undefined"!==
typeof performance&&"function"===typeof window.performance.now?performance.now():(new Date).getTime()}})(u||(u={}));
(function(e){class l{static load(f,b,a){if(PivotApi.libsIncluded)return b();f=new h(f,l.NZ);this.JH.push(f);f.Jb=b;f.ab=a;f.load()}static m2(f,b,a){null==b&&(b={});f=new h(f,l.NZ);this.JH.push(f);f.QK=b.QK;f.pj=b.pj;f.Jb=a;f.ab=void 0;f.load()}static uKa(){var f=document.querySelector("link[data-fm-hc-theme]");f&&(f.disabled=!0)}static dispose(){for(let f=0;f<this.JH.length;f++)this.JH[f].dispose();this.JH.length=0;this.JH=null}}l.NZ="";l.JH=[];e.Zn=l;class h{constructor(f,b){this.QK=null;this.pj=
!1;this.total=this.loaded=0;this.errors=[];this.l2=this.tN=null;this.url=f;this.baseURI=b;this.total="string"==typeof this.url?1:this.url.length}load(){0==this.total&&this.wj();if("string"==typeof this.url)this.iK(this.url,this.QK);else for(var f=this.url,b=0;b<f.length;b++)this.iK(f[b],this.QK)}wj(){this.loaded++;if(this.loaded==this.total||0==this.total)0==this.errors.length?this.Jb&&this.Jb():this.ab&&this.ab(this.errors),this.ab=this.Jb=null}iK(f,b){f=this.baseURI+f;f.lastIndexOf(".js")==f.length-
3?this.SCa(f):f.lastIndexOf(".css")==f.length-4?this.m2(f,b):this.wj()}SCa(f){if(null==this.zca(f)){const a=this.tN=document.createElement("script");a.type="text/javascript";a.src=f+"?"+q.ph.ft;a.async=!0;var b=()=>{a.readystate="loaded";this.wj();if(a.onloadedlisteners){for(var c=0;c<a.onloadedlisteners.length;c++)a.onloadedlisteners[c]();delete a.onloadedlisteners}};a.onreadystatechange=b;a.onload=b;a.onerror=()=>{a.readystate="error";this.errors.push(f);this.wj()};document.head.appendChild(a)}else b=
this.tN=this.zca(f),"error"==b.readystate?(this.errors.push(f),this.wj()):!0===b.async&&"loaded"!=b.readystate?(null==b.onloadedlisteners&&(b.onloadedlisteners=[]),b.onloadedlisteners.push(()=>this.wj())):this.wj()}m2(f,b=null){const a=this.l2=document.createElement("link");a.href=f+"?"+q.ph.ft;a.rel="stylesheet";a.type="text/css";if(null!=b)for(const c in b)b.hasOwnProperty(c)&&a.setAttribute(c,b[c]);a.onerror=()=>this.Sb(f);a.onreadystatechange=()=>this.wj();a.onload=()=>this.wj();this.pj?document.body.appendChild(a):
document.head.appendChild(a)}zca(f){for(var b=0;b<document.head.children.length;b++){var a=document.head.children.item(b);if(a.src&&-1<a.src.indexOf(f))return a}return null}Sb(f){this.errors.push(f);this.wj()}dispose(){this.ab=this.Jb=this.l2=this.tN=null}}})(u||(u={}));
(function(e){class l extends v.Ah{constructor(f){super();this.EY=!1;this.Era=b=>this.cq(b);this.Fra=b=>this.h3(b);this.CCa=1E3;this.buffer=[];this.cea=()=>this.fFa();this.TP=null;if(null!=l.ze)throw Error("KeyboardListener is singleton");e.Kd().Mm||(q.vk.addEventListener("keydown",this.Era),q.vk.addEventListener("keyup",this.Fra),this.IF=new x.Ea("div"),this.IF.R("position","fixed").R("left","0px").R("top","0px").R("opacity","0").R("width","0px").R("height","0px"),this.IF.eb(),this.Oq=new x.Hv,this.Oq.G.R("width",
"1px").R("height","1px").R("padding","0px"),this.Oq.N("focusin",()=>{this.EY=!0}),this.Oq.N("focusout",()=>{this.EY=!1}),this.IF.append(this.Oq.G),f.append(this.IF))}static V(){null==l.ze&&(l.ze=new l(q.K.Mb.Fb.G));return l.ze}get wea(){return this.EY}h3(f){this.$$(f.key,f.type)}cq(f){var b=new h(h.UO);b.keyCode=f.keyCode;b.altKey=f.altKey;b.ctrlKey=f.ctrlKey;b.metaKey=f.metaKey;b.shiftKey=f.shiftKey;b.gq=f;this.Fa(b);this.$$(f.key,f.type)}$$(f,b){f=f.toLowerCase();const a=Date.now();a-this.FCa>this.CCa&&
(this.buffer.length=0);20<this.buffer.length&&this.buffer.splice(0,this.buffer.length-6);this.buffer.push({key:f,type:b});this.FCa=a;this.lua()&&(this.buffer.length=0,this.$a(h.g9))}lua(){if(6>this.buffer.length)return!1;let f=0,b=0;for(const a of this.buffer)"shift"==a.key&&("keydown"==a.type?f++:"keyup"==a.type&&b++);return 3<=f&&3<=b}fFa(){this.IF.eb();this.Oq.zj("");this.Oq.G.blur();this.Oq.sb("keyup",this.cea);null!=this.TP&&(this.TP.focus({preventScroll:!0}),this.TP=null)}xG(f){this.TP=document.activeElement;
this.IF.show();this.Oq.zj(f);this.Oq.G.focus({preventScroll:!0});this.Oq.selectAll();this.Oq.G.focus({preventScroll:!0});this.Oq.N("keyup",this.cea)}static dispose(){l.ze=null}}e.VO=l;class h extends v.fa{constructor(f){super(f)}}h.UO="event_keydown";h.g9="event_tripple_shift";e.KeyboardEvent=h;(function(f){f[f.$Ka=8]="BACKSPACE";f[f.NNa=9]="TAB";f[f.LLa=13]="ENTER";f[f.INa=16]="SHIFT";f[f.BLa=17]="CTRL";f[f.VKa=18]="ALT";f[f.xNa=19]="PAUSE";f[f.wLa=20]="CAPS_LOCK";f[f.NLa=27]="ESCAPE";f[f.KNa=32]=
"SPACE";f[f.wNa=33]="PAGE_UP";f[f.vNa=34]="PAGE_DOWN";f[f.CA=35]="END";f[f.oMa=36]="HOME";f[f.aNa=37]="LEFT_ARROW";f[f.WNa=38]="UP_ARROW";f[f.ANa=39]="RIGHT_ARROW";f[f.JLa=40]="DOWN_ARROW";f[f.pMa=45]="INSERT";f[f.G6=46]="DELETE";f[f.rMa=48]="KEY_0";f[f.sMa=49]="KEY_1";f[f.tMa=50]="KEY_2";f[f.uMa=51]="KEY_3";f[f.vMa=52]="KEY_4";f[f.wMa=53]="KEY_5";f[f.xMa=54]="KEY_6";f[f.yMa=55]="KEY_7";f[f.zMa=56]="KEY_8";f[f.AMa=57]="KEY_9";f[f.BMa=65]="KEY_A";f[f.CMa=66]="KEY_B";f[f.DMa=67]="KEY_C";f[f.EMa=68]=
"KEY_D";f[f.FMa=69]="KEY_E";f[f.GMa=70]="KEY_F";f[f.HMa=71]="KEY_G";f[f.IMa=72]="KEY_H";f[f.JMa=73]="KEY_I";f[f.KMa=74]="KEY_J";f[f.LMa=75]="KEY_K";f[f.MMa=76]="KEY_L";f[f.NMa=77]="KEY_M";f[f.OMa=78]="KEY_N";f[f.PMa=79]="KEY_O";f[f.QMa=80]="KEY_P";f[f.RMa=81]="KEY_Q";f[f.SMa=82]="KEY_R";f[f.TMa=83]="KEY_S";f[f.UMa=84]="KEY_T";f[f.VMa=85]="KEY_U";f[f.WMa=86]="KEY_V";f[f.XMa=87]="KEY_W";f[f.YMa=88]="KEY_X";f[f.ZMa=89]="KEY_Y";f[f.$Ma=90]="KEY_Z";f[f.bNa=91]="LEFT_META";f[f.BNa=92]="RIGHT_META";f[f.np=
93]="SELECT";f[f.jNa=96]="NUMPAD_0";f[f.kNa=97]="NUMPAD_1";f[f.lNa=98]="NUMPAD_2";f[f.mNa=99]="NUMPAD_3";f[f.nNa=100]="NUMPAD_4";f[f.oNa=101]="NUMPAD_5";f[f.pNa=102]="NUMPAD_6";f[f.qNa=103]="NUMPAD_7";f[f.rNa=104]="NUMPAD_8";f[f.sNa=105]="NUMPAD_9";f[f.oP=106]="MULTIPLY";f[f.bO=107]="ADD";f[f.EP=109]="SUBTRACT";f[f.GLa=110]="DECIMAL";f[f.UI=111]="DIVIDE";f[f.PLa=112]="F1";f[f.TLa=113]="F2";f[f.ULa=114]="F3";f[f.VLa=115]="F4";f[f.WLa=116]="F5";f[f.XLa=117]="F6";f[f.YLa=118]="F7";f[f.ZLa=119]="F8";
f[f.$La=120]="F9";f[f.QLa=121]="F10";f[f.RLa=122]="F11";f[f.SLa=123]="F12";f[f.tNa=144]="NUM_LOCK";f[f.DNa=145]="SCROLL_LOCK";f[f.GNa=186]="SEMICOLON";f[f.MLa=187]="EQUALS";f[f.zLa=188]="COMMA";f[f.FLa=189]="DASH";f[f.yNa=190]="PERIOD";f[f.jMa=191]="FORWARD_SLASH";f[f.nMa=192]="GRAVE_ACCENT";f[f.uNa=219]="OPEN_BRACKET";f[f.aLa=220]="BACK_SLASH";f[f.yLa=221]="CLOSE_BRACKET";f[f.JNa=222]="SINGLE_QUOTE"})(e.cna||(e.cna={}))})(u||(u={}));
(function(e){class l extends v.Ah{constructor(f){super();this.bZ=()=>this.GIa();this.jQ=()=>this.jQ();this.QF="__FMResizeTriggersStorage__";this.Gl=f;this.pBa();this.Sq=new h(this.Gl.element,this.QF);this.QJa(this.Gl.element)}pBa(){!q.v(this.Gl)&&q.v(this.Gl.element[this.QF])&&(this.Gl.element[this.QF]={})}refresh(){this.j4(this.Sq)}j4(f){var b=f.o4;f=b.firstElementChild;b=b.lastElementChild;var a=f.firstElementChild;b.scrollLeft=b.scrollWidth;b.scrollTop=b.scrollHeight;a.style.width=f.offsetWidth+
1+"px";a.style.height=f.offsetHeight+"px";f.scrollLeft=f.scrollWidth;f.scrollTop=f.scrollHeight}kua(f){return f.offsetWidth!=this.Sq.m4.width||f.offsetHeight!=this.Sq.m4.height}GIa(){if(this.Gl&&this.Gl.element&&!q.v(this.Gl.element[this.QF])){const f=this.Gl.element,b=this.Sq.m4;this.j4(this.Sq);this.Sq.pV&&this.Gl.cancelAnimationFrame(this.Sq.pV);this.Sq.pV=this.Gl.requestAnimationFrame(()=>{q.v(b.width)&&(b.width=f.offsetWidth);q.v(b.height)&&(b.height=f.offsetHeight);this.kua(f)&&(b.width=f.offsetWidth,
b.height=f.offsetHeight,this.Owa())})}}Owa(){this.$a(v.fa.HX)}QJa(f){f.attachEvent?f.attachEvent("onresize",this.jQ):q.v(f)||("static"==getComputedStyle(f).position&&(f.style.position="relative"),f.appendChild(this.Sq.o4),this.j4(this.Sq),f.addEventListener("scroll",this.bZ,!0))}SJa(f){f.detachEvent?f.detachEvent("onresize",this.jQ):f.removeEventListener("scroll",this.bZ,!0)}Aua(){const f=this.Gl.element[this.QF],b=Object.keys(f);for(let a=0;a<b.length;a++)if(!q.v(f[b[a]]))return;this.Gl.element[this.QF]=
null}dispose(){this.Gl&&this.Gl.element&&(this.SJa(this.Gl.element),this.Sq.dispose(),this.Sq=null,this.Aua());this.jQ=this.bZ=this.Gl=null}}e.spa=l;class h{constructor(f,b){this.ZY="__resizeLast__";this.F$="__resizeListeners__";this.mK="__resizeTriggers__";this.SQ="__resizeRAF__";this.ora="__resizeTrigger";this.QD=f;this.Z4=b;this.iS=this.Tya();q.v(this.QD)||this.nBa(this.Z4)}get o4(){return this.eM()[this.mK]}get m4(){return this.eM()[this.ZY]}get pV(){return this.eM()[this.SQ]}set pV(f){this.eM()[this.SQ]=
f}Tya(){return this.ora+q.K.Mb.Fb.gf.id}nBa(f){this.QD[f][this.iS]={};f=this.QD[f][this.iS];f[this.ZY]={};f[this.F$]=[];f[this.mK]=document.createElement("div");f[this.mK].className="fm-resize-triggers";f[this.mK].innerHTML='<div class="fm-expand-trigger"><div></div></div><div class="fm-contract-trigger"></div>';f[this.SQ]=null}eM(){return this.QD[this.Z4][this.iS]}dispose(){if(!q.v(this.QD)){this.QD.removeChild(this.o4);const f=this.eM();f[this.ZY]=null;f[this.F$]=null;f[this.SQ]=null;f[this.mK]=
null;this.QD[this.Z4][this.iS]=null}}}e.CNa=h})(u||(u={}));(function(e){class l{constructor(){this.g5=[]}add(h,...f){this.g5.push({Jb:h,LZ:f})}pg(h){var f=()=>{if(0==this.g5.length)h();else{var b=this.g5.shift();e.requestIdleCallback(()=>b.Jb(f,...b.LZ),{timeout:100})}};f()}}e.MJ=l})(u||(u={}));
(function(e){function l(D,E,G){var F=0,J=[],H=0,M,K,Q,N=!1,W=[],O=[],V=!1;G=G||{};var ca=G.encoding||"UTF8";var fa=G.fOa||1;if(fa!==parseInt(fa,10)||1>fa)throw Error("numRounds must a integer >= 1");if(0===D.lastIndexOf("SHA-",0))if(M=function(R,P){return I(R,P,D)},K=function(R,P,ba,Z){if("SHA-224"===D||"SHA-256"===D){var X=(P+65>>>9<<4)+15;var ja=16}else throw Error("Unexpected error in SHA-2 implementation");for(;R.length<=X;)R.push(0);R[P>>>5]|=128<<24-P%32;P+=ba;R[X]=P&4294967295;R[X-1]=P/4294967296|
0;ba=R.length;for(P=0;P<ba;P+=ja)Z=I(R.slice(P,P+ja),Z,D);if("SHA-224"===D)R=[Z[0],Z[1],Z[2],Z[3],Z[4],Z[5],Z[6]];else if("SHA-256"===D)R=Z;else throw Error("Unexpected error in SHA-2 implementation");return R},Q=function(R){return R.slice()},"SHA-224"===D){var U=512;var aa=224}else if("SHA-256"===D)U=512,aa=256;else throw Error("Chosen SHA variant is not supported");else throw Error("Chosen SHA variant is not supported");var ka=g(E,ca);var ha=B(D);this.setHMACKey=function(R,P,ba){if(!0===N)throw Error("HMAC key already set");
if(!0===V)throw Error("Cannot set HMAC key after calling update");ca=(ba||{}).encoding||"UTF8";P=g(P,ca)(R);R=P.kG;P=P.value;var Z=U>>>3;ba=Z/4-1;if(Z<R/8){for(P=K(P,R,0,B(D));P.length<=ba;)P.push(0);P[ba]&=4294967040}else if(Z>R/8){for(;P.length<=ba;)P.push(0);P[ba]&=4294967040}for(R=0;R<=ba;R+=1)W[R]=P[R]^909522486,O[R]=P[R]^1549556828;ha=M(W,ha);F=U;N=!0};this.update=function(R){var P,ba=0,Z=U>>>5;var X=ka(R,J,H);R=X.kG;var ja=X.value;X=R>>>5;for(P=0;P<X;P+=Z)ba+U<=R&&(ha=M(ja.slice(P,P+Z),ha),
ba+=U);F+=ba;J=ja.slice(ba>>>5);H=R%U;V=!0};this.getHash=function(R,P){if(!0===N)throw Error("Cannot call getHash after setting HMAC key");var ba=d(P);switch(R){case "HEX":R=function(X){return f(X,aa,ba)};break;case "B64":R=function(X){return b(X,aa,ba)};break;case "BYTES":R=function(X){return a(X,aa)};break;case "ARRAYBUFFER":try{P=new ArrayBuffer(0)}catch(X){throw Error("ARRAYBUFFER not supported by this environment");}R=function(X){return c(X,aa)};break;default:throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER");
}var Z=K(J.slice(),H,F,Q(ha));for(P=1;P<fa;P+=1)Z=K(Z,aa,0,B(D));return R(Z)};this.getHMAC=function(R,P){if(!1===N)throw Error("Cannot call getHMAC without first setting HMAC key");var ba=d(P);switch(R){case "HEX":R=function(X){return f(X,aa,ba)};break;case "B64":R=function(X){return b(X,aa,ba)};break;case "BYTES":R=function(X){return a(X,aa)};break;case "ARRAYBUFFER":try{R=new ArrayBuffer(0)}catch(X){throw Error("ARRAYBUFFER not supported by this environment");}R=function(X){return c(X,aa)};break;
default:throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER");}P=K(J.slice(),H,F,Q(ha));var Z=M(O,B(D));Z=K(P,aa,U,Z);return R(Z)}}function h(){}function f(D,E,G){var F="";E/=8;var J;for(J=0;J<E;J+=1){var H=D[J>>>2]>>>8*(3+J%4*-1);F+="0123456789abcdef".charAt(H>>>4&15)+"0123456789abcdef".charAt(H&15)}return G.WU?F.toUpperCase():F}function b(D,E,G){var F="",J=E/8,H;for(H=0;H<J;H+=3){var M=H+1<J?D[H+1>>>2]:0;var K=H+2<J?D[H+2>>>2]:0;K=(D[H>>>2]>>>8*(3+H%4*-1)&255)<<16|(M>>>8*(3+(H+1)%
4*-1)&255)<<8|K>>>8*(3+(H+2)%4*-1)&255;for(M=0;4>M;M+=1)8*H+6*M<=E?F+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(K>>>6*(3-M)&63):F+=G.lR}return F}function a(D,E){var G="";E/=8;var F;for(F=0;F<E;F+=1){var J=D[F>>>2]>>>8*(3+F%4*-1)&255;G+=String.fromCharCode(J)}return G}function c(D,E){E/=8;var G,F=new ArrayBuffer(E);var J=new Uint8Array(F);for(G=0;G<E;G+=1)J[G]=D[G>>>2]>>>8*(3+G%4*-1)&255;return F}function d(D){var E={WU:!1,lR:"=",iOa:-1};D=D||{};E.WU=D.WU||!1;!0===D.hasOwnProperty("b64Pad")&&
(E.lR=D.lR);if("boolean"!==typeof E.WU)throw Error("Invalid outputUpper formatting option");if("string"!==typeof E.lR)throw Error("Invalid b64Pad formatting option");return E}function g(D,E){switch(E){case "UTF8":case "UTF16BE":case "UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch(D){case "HEX":D=function(G,F,J){var H=G.length,M,K;if(0!==H%2)throw Error("String of HEX type must be in byte increments");F=F||[0];J=J||0;var Q=J>>>3;for(M=0;M<H;M+=2){var N=parseInt(G.substr(M,
2),16);if(isNaN(N))throw Error("String of HEX type contains invalid characters");var W=(M>>>1)+Q;for(K=W>>>2;F.length<=K;)F.push(0);F[K]|=N<<8*(3+W%4*-1)}return{value:F,kG:4*H+J}};break;case "TEXT":D=function(G,F,J){var H=0,M,K,Q;F=F||[0];J=J||0;var N=J>>>3;if("UTF8"===E){var W=3;for(M=0;M<G.length;M+=1){var O=G.charCodeAt(M);var V=[];128>O?V.push(O):2048>O?(V.push(192|O>>>6),V.push(128|O&63)):55296>O||57344<=O?V.push(224|O>>>12,128|O>>>6&63,128|O&63):(M+=1,O=65536+((O&1023)<<10|G.charCodeAt(M)&1023),
V.push(240|O>>>18,128|O>>>12&63,128|O>>>6&63,128|O&63));for(K=0;K<V.length;K+=1){var ca=H+N;for(Q=ca>>>2;F.length<=Q;)F.push(0);F[Q]|=V[K]<<8*(W+ca%4*-1);H+=1}}}else if("UTF16BE"===E||"UTF16LE"===E)for(W=2,V="UTF16LE"===E&&!0||"UTF16LE"!==E&&!1,M=0;M<G.length;M+=1){O=G.charCodeAt(M);!0===V&&(K=O&255,O=K<<8|O>>>8);ca=H+N;for(Q=ca>>>2;F.length<=Q;)F.push(0);F[Q]|=O<<8*(W+ca%4*-1);H+=2}return{value:F,kG:8*H+J}};break;case "B64":D=function(G,F,J){var H=0,M,K;if(-1===G.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");
var Q=G.indexOf("=");G=G.replace(/=/g,"");if(-1!==Q&&Q<G.length)throw Error("Invalid '=' found in base-64 string");F=F||[0];J=J||0;var N=J>>>3;for(Q=0;Q<G.length;Q+=4){var W=G.substr(Q,4);for(M=K=0;M<W.length;M+=1){var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(W[M]);K|=O<<18-6*M}for(M=0;M<W.length-1;M+=1){var V=H+N;for(O=V>>>2;F.length<=O;)F.push(0);F[O]|=(K>>>16-8*M&255)<<8*(3+V%4*-1);H+=1}}return{value:F,kG:8*H+J}};break;case "BYTES":D=function(G,F,J){var H;F=
F||[0];J=J||0;var M=J>>>3;for(H=0;H<G.length;H+=1){var K=G.charCodeAt(H);var Q=H+M;var N=Q>>>2;F.length<=N&&F.push(0);F[N]|=K<<8*(3+Q%4*-1)}return{value:F,kG:8*G.length+J}};break;case "ARRAYBUFFER":try{D=new ArrayBuffer(0)}catch(G){throw Error("ARRAYBUFFER not supported by this environment");}D=function(G,F,J){var H;F=F||[0];J=J||0;var M=J>>>3;var K=new Uint8Array(G);for(H=0;H<G.byteLength;H+=1){var Q=H+M;var N=Q>>>2;F.length<=N&&F.push(0);F[N]|=K[H]<<8*(3+Q%4*-1)}return{value:F,kG:8*G.byteLength+
J}};break;default:throw Error("format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER");}return D}function k(D,E){return D>>>E|D<<32-E}function m(D,E,G){return D&E^~D&G}function n(D,E,G){return D&E^D&G^E&G}function p(D){return k(D,2)^k(D,13)^k(D,22)}function t(D){return k(D,6)^k(D,11)^k(D,25)}function r(D){return k(D,7)^k(D,18)^D>>>3}function w(D){return k(D,17)^k(D,19)^D>>>10}function y(D,E){var G=(D&65535)+(E&65535);return((D>>>16)+(E>>>16)+(G>>>16)&65535)<<16|G&65535}function A(D,E,G,F){var J=(D&
65535)+(E&65535)+(G&65535)+(F&65535);return((D>>>16)+(E>>>16)+(G>>>16)+(F>>>16)+(J>>>16)&65535)<<16|J&65535}function C(D,E,G,F,J){var H=(D&65535)+(E&65535)+(G&65535)+(F&65535)+(J&65535);return((D>>>16)+(E>>>16)+(G>>>16)+(F>>>16)+(J>>>16)+(H>>>16)&65535)<<16|H&65535}function B(D){var E,G;if(0===D.lastIndexOf("SHA-",0))switch(E=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],
D){case "SHA-224":break;case "SHA-256":E=G;break;case "SHA-384":E=[new h,new h,new h,new h,new h,new h,new h,new h];break;case "SHA-512":E=[new h,new h,new h,new h,new h,new h,new h,new h];break;default:throw Error("Unknown SHA variant");}else throw Error("No SHA variants supported");return E}function I(D,E,G){var F,J,H,M=[];if("SHA-224"===G||"SHA-256"===G){var K=64;var Q=1;var N=Number;var W=y;var O=A;var V=C;var ca=r;var fa=w;var U=p;var aa=t;var ka=n;var ha=m;var R=Y}else throw Error("Unexpected error in SHA-2 implementation");
G=E[0];var P=E[1];var ba=E[2];var Z=E[3];var X=E[4];var ja=E[5];var sa=E[6];var va=E[7];for(H=0;H<K;H+=1)16>H?(J=H*Q,F=D.length<=J?0:D[J],J=D.length<=J+1?0:D[J+1],M[H]=new N(F,J)):M[H]=O(fa(M[H-2]),M[H-7],ca(M[H-15]),M[H-16]),F=V(va,aa(X),ha(X,ja,sa),R[H],M[H]),J=W(U(G),ka(G,P,ba)),va=sa,sa=ja,ja=X,X=W(Z,F),Z=ba,ba=P,P=G,G=W(F,J);E[0]=W(G,E[0]);E[1]=W(P,E[1]);E[2]=W(ba,E[2]);E[3]=W(Z,E[3]);E[4]=W(X,E[4]);E[5]=W(ja,E[5]);E[6]=W(sa,E[6]);E[7]=W(va,E[7]);return E}class L{static hash(D){var E=new l("SHA-256",
"TEXT");E.update(D);return E.getHash("HEX")}}e.ypa=L;var Y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,
2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]})(q||(q={}));
(function(e){class l{constructor(h){this.qBa=h;this.rL=new e.tb;this.dHa(this.qBa)}get(h){return this.has(h)?this.rL.getItem(h)[0]:null}has(h){return this.rL.Hb(h)}dHa(h){0===h.indexOf("?")&&(h=h.slice(1));h=h.split("&");for(let f=0;f<h.length;f++){const b=h[f],a=b.indexOf("=");-1<a?this.Oga(this.decode(b.slice(0,a)),this.decode(b.slice(a+1))):b&&this.Oga(this.decode(b),"")}}Oga(h,f){this.rL.Hb(h)?this.rL.getItem(h).push(f):this.rL.Ta(h,[f])}decode(h){return h.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,
function(f){return decodeURIComponent(f)})}}e.vma=l})(q||(q={}));(function(e){class l{static Yca(){return getComputedStyle(document.documentElement).getPropertyValue("--fm-version").trim().replace(/"/g,"")}static $ta(h){return l.Yca()===h}}e.u6=l})(u||(u={}));var x;
(function(e){(function(l){class h{constructor(){this.distance=15;this.BQ=!1;this.zB=null;this.vE=!0;q.vk.addEventListener("mousemove",f=>this.lx(f));q.vk.addEventListener("touchmove",f=>this.G3(f),!1);q.vk.addEventListener("mouseup",f=>this.lr(f));q.vk.addEventListener("touchend",f=>this.UU(f));q.vk.addEventListener("touchcancel",f=>this.UU(f))}get LBa(){return this.BQ}static V(){h.instance||(h.instance=new h);return h.instance}static dispose(){h.instance=null}dDa(f,b){f.$("fm-draggable");var a=c=>
{b.lT&&!c.target.matches(b.lT)||this.Nd==f||(null!=this.Nd&&this.Y4(b,c),this.Nd=f,this.wo=b,this.sia=this.e1(c),this.tia=this.f1(c),this.B5=!1)};f.N("mousedown",a);f.N("touchstart",a)}e1(f){return f instanceof MouseEvent?f.clientX:f.changedTouches[0].clientX}f1(f){return f instanceof MouseEvent?f.clientY:f.changedTouches[0].clientY}lx(f){1==f.which&&this.Nd&&(this.Mg&&this.Nd.Rc("fm-dragging")?(this.EV(f.clientX,f.clientY),this.wo.N2&&this.wo.N2(this.Nd,f),f.preventDefault(),window.getSelection().removeAllRanges()):
q.v(this.wo.jx)||this.wo.jx(this.Nd,f)?(this.BQ=!0,this.Mg=this.wo.ro(this.Nd),this.Mg.R("opacity",0),q.K.Mb.Fb.G.W(this.Mg),this.EV(f.clientX,f.clientY,!0),this.Nd.$("fm-dragging")):(this.Nd=null,q.v(this.Mg)||(this.Mg.Gg(!0),this.Mg=null)))}oea(f,b){return Math.abs(this.sia-f)>this.distance||Math.abs(this.tia-b)>this.distance?!0:!1}EV(f,b,a=!1){if(null!=this.Mg){const d=q.K.Mb.Fb.G.lg();this.Mg.R("margin-left");this.Mg.R("margin-top");if(a&&null!=this.Nd){var c=this.Nd.lg();a=Math.max(0,Math.min(this.Nd.height,
b-c.top));c=Math.max(0,Math.min(this.Nd.width,this.Mg.width,f-c.left));this.Mg.R("margin-top",-a+"px");this.Mg.R("margin-left",-c+"px")}this.Mg.position({top:b-d.top,left:f-d.left});this.oea(f,b)&&(this.Mg.R("opacity",1),this.Nd.$("fm-dragging-move"),!this.B5&&q.Fg(this.wo.GU)&&this.wo.GU(this.Nd),this.B5=!0)}}G3(f){if(this.Nd){var b=f.touches[0];if(this.Mg&&this.Nd.Rc("fm-dragging")){this.EV(b.clientX,b.clientY);this.wo.N2&&this.wo.N2(this.Nd,f);f.preventDefault();b=f.changedTouches[0];var a=e.Ea.Vb(document.elementFromPoint(b.clientX,
b.clientY));if(a){var c=a.closest(".fm-droppable");c&&!0===c.nu.scroll&&this.Nda(c,b.clientY);c&&c.nu&&c.nu.Om&&(c.nu.Om(this.Nd,this.Mg,c,f),this.zB=c)}(null==a||null==c)&&null!=this.zB&&this.zB.nu&&this.zB.nu.Zl&&this.zB.nu.Zl(this.Nd,this.Mg,this.zB,f)}else q.v(this.wo.jx)||this.wo.jx(this.Nd,f)?(this.BQ=!0,this.Mg=this.wo.ro(this.Nd),this.Mg.R("opacity",0),q.K.Mb.Fb.G.W(this.Mg),this.EV(b.clientX,b.clientY,!0),this.Nd.$("fm-dragging")):(this.Nd=null,this.Mg.Gg(!0),this.Mg=null)}}lr(f){this.Y4(this.wo,
f)}UU(f){for(var b=f.changedTouches[0],a=b=e.Ea.Vb(document.elementFromPoint(b.clientX,b.clientY));b;){if(b.Rc("fm-droppable")){q.ia(b.nu.zz)||(a=a.closest(b.nu.zz));b.nu.Pm(this.Nd,b,a,f);break}b=b.parent}this.Y4(this.wo,f)}Y4(f,b){this.BQ=!1;null!=this.Mg&&(this.Mg.Gg(!0),this.Mg=null);if(null!=this.Nd){this.Nd.Fd("fm-dragging");this.Nd.Fd("fm-dragging-move");if(this.B5&&this.Nd&&this.Nd.element){var a=this.Nd,c=d=>{q.v(a)||(a.sb("click",c),a=null,d.stopImmediatePropagation())};this.Nd.N("click",
c)}f.$u&&this.oea(this.e1(b),this.f1(b))&&f.$u(this.Nd,b);this.Nd=null}this.zB=null;this.tia=this.sia=NaN;this.vE=!0;clearTimeout(this.pha)}eDa(f,b,a){f.Rc("fm-droppable")||(f.$("fm-droppable"),f.N("mouseenter",c=>{null!=this.Nd&&1==c.which&&a.O2&&a.O2(this.Nd,this.Mg,b,c)}),f.N("mouseleave",c=>{this.vE=!0;null!=this.Nd&&1==c.which&&a.Zl&&a.Zl(this.Nd,this.Mg,b,c)}),f.N("mouseover",c=>{this.vE=!0;null!=this.Nd&&1==c.which&&(!0===a.scroll&&this.Nda(f,c.clientY),a.Om&&a.Om(this.Nd,this.Mg,b,c))}),f.N("mouseup",
c=>{this.vE=!0;if(null!=this.Nd&&1==c.which){var d=e.Ea.Vb(c.target);q.ia(a.zz)||(d=d.closest(a.zz));a.Pm(this.Nd,f,d,c)}}))}Nda(f,b){const a=f.element.getBoundingClientRect(),c=Math.max(0,a.bottom-b);b=Math.max(0,b-a.top);30>c?(this.vE=!1,this.t4(f,Math.min(30/c,4))):30>b&&(this.vE=!1,this.t4(f,Math.min(-30/b,4)))}t4(f,b){clearTimeout(this.pha);q.v(f)||(f.wx(f.element.scrollTop+b),0==this.vE&&(this.pha=setTimeout(()=>this.t4(f,b),20)))}}l.xO=h})(e.vL||(e.vL={}))})(x||(x={}));
(function(e){class l extends v.Ah{constructor(h="div",f=""){super();this.G=new e.Ea(h);this.G.$("fm-ui "+f);u.Kd().Mm&&this.G.$("fm-ui-mobile");this.validate()}validate(){this.E1={}}oe(h="all"){this.E1[h]=!0;this.kb()}zs(...h){if(this.E1.all)return!0;for(var f=0;f<h.length;f++)if(this.E1[h[f]])return!0;return!1}kb(){this.validate()}yr(){this.oe()}show(){this.G.show()}eb(){this.G.eb()}P0(){return this.G.attr("id")}Mha(h){this.G.attr("id",h)}Uha(){this.Mha("fm-"+Math.random().toString(36).substr(2,
9))}ZC(){return this.name}Ie(h=0){this.G.Ie(h)}Ik(h){this.G.Ik(h)}get Km(){return this.G.Km}get i1(){return this.G.i1}html(h){if(void 0===h)return this.G.html();this.G.html(h);return this}fi(h){this.G.attr("title",h)}oq(h){this.Bta(!h);this.G.Wa("fm-ui-disabled",!h)}WL(){return!this.G.Rc("fm-ui-disabled")}$(h=""){this.G.$(h)}Fd(h){this.G.Fd(h)}Wa(h,f){this.G.Wa(h,f)}Rc(h){return this.G.Rc(h)}get padding(){return this.G.padding}set padding(h){}uf(h){return this.G.uf(h)}Xj(h){this.uf()!==h&&(this.G.Xj(h),
this.oe("size"))}xd(h=!1){return this.G.xd(h)}pq(h){this.xd()!==h&&(this.G.pq(h),this.oe("size"))}isVisible(h){void 0!==h&&(h?this.show():this.eb());return this.G.visible}position(){return this.G.position()}W(h,f=!1){f?this.G.prepend(h.G):this.G.append(h.G)}Gg(h=!1){h?this.G.remove():this.G.detach()}e1(){return this.G.left}f1(){return this.G.top}N(h,f){this.G.N(h,f)}sb(h,f){this.G.sb(h,f)}Fa(h){this.G.Fa(h)}$a(h,f,b){this.G.$a(h,f,b)}TB(h=!1){h=h?this.uf(!0):q.K.Mb.gv;this.G.Wa("fm-layout-tablet",
768>h);this.G.Wa("fm-layout-mobile",580>h);this.G.Wa("fm-layout-mobile-small",460>h)}focus(h=null){this.G.focus(h)}blur(){this.G.blur()}zg(h,f){return this.G.zg(h,f)}mc(h){return this.G.zg("label",h)}vn(){this.G.zg("hidden","true")}Bta(h){this.G.zg("disabled",void 0===h?void 0:`${h}`)}vaa(h){this.G.zg("selected",void 0===h?void 0:`${h}`)}Ata(h){this.G.zg("checked",void 0===h?void 0:`${h}`)}uaa(h){this.G.zg("expanded",void 0===h?void 0:`${h}`)}Cta(h){this.G.zg("haspopup ",void 0===h?void 0:`${h}`)}}
e.Ma=l})(x||(x={}));
(function(e){class l extends v.Ah{constructor(h="div",f="",b=!0){super();this.display="block";this.frames=[];this.Kq={};this.element="string"==typeof h?document.createElement(h):h;b&&this.$("fm-ui-element");this.$(f)}set element(h){(this.CF=h)&&(this.CF.uielement=this)}get element(){return this.CF}get id(){return this.element.id}set id(h){this.element.id=h}get parent(){return l.Vb(this.element.parentElement)}get nodeName(){return this.CF.nodeName.toLowerCase()}W(h){this.element.appendChild(h.element)}children(){for(var h=this.element.firstElementChild,
f=[];h;)f.push(l.Vb(h)),h=h.nextElementSibling;return f}contains(h){return this.element.contains(h.element)}JR(h){let f=this.n_(h.target);!f&&h.path&&(f=this.n_(h.path[0]));!f&&h.composedPath&&(h=h.composedPath())&&(f=this.n_(h[0]));return f}n_(h){if(null==h)return!1;for(;h!=this.element&&(h=h.parentElement,null!=h););return null!=h}append(h){h&&this.W(h);return this}prepend(h){this.element.insertBefore(h.element,this.element.firstChild);return this}before(h){this.element.parentNode&&this.element.parentNode.insertBefore(h.element,
this.element);return this}after(h){this.element.parentNode&&(this.element.nextElementSibling?this.element.parentNode.insertBefore(h.element,this.element.nextElementSibling):this.element.parentNode.appendChild(h.element));return this}RB(h){this.element.appendChild(h.G.element)}Gg(h=!0){h?this.remove():this.detach()}remove(){null!=this.element&&(this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispose())}detach(){if(null!=this.element&&this.element.parentNode){var h=this.element.cloneNode(!0);
this.element.parentNode.removeChild(this.element);this.element=h}}ox(){for(;this.element&&this.element.firstChild;){var h=l.Vb(this.element.firstChild);h&&h.dispose&&h.dispose();this.element.removeChild(this.element.firstChild)}}clone(){return l.Vb(this.element.cloneNode(!0))}static Vb(h){return h&&h.nodeType==Node.ELEMENT_NODE?q.v(h.uielement)?new l(h,"",!1):h.uielement:null}get(h){var f=this.children();return 0<f.length?f[h]:null}find(h,f){if(void 0===f||0==f)return l.Vb(this.element.querySelector(h));
h=this.element.querySelectorAll(h);f=[];for(var b=0;b<h.length;b++)f.push(l.Vb(h[b]));return f}closest(h){if(!this.element)return null;for(var f=this.element;null!=f;){if(f.matches){if(f.matches(h))return f==this.element?this:l.Vb(f)}else if(f.msMatchesSelector&&f.msMatchesSelector(h))return f==this.element?this:l.Vb(f);f=f.parentElement}return null}$(h){if(!this.element)return this;h=h.trim();for(var f=h.split(" "),b=0;b<f.length;b++)0<f[b].length&&(u.aS().Xi?(h=this.element.getAttribute("class"),
q.v(h)?this.element.setAttribute("class",f[b]):-1==h.split(" ").indexOf(f[b])&&this.element.setAttribute("class",h+" "+f[b])):0==this.element.classList.contains(f[b])&&this.element.classList.add(f[b]));return this}Fd(h){if(this.element&&(h=h.trim(),0<h.length))if(u.aS().Xi){var f=this.element.getAttribute("class");q.v(f)||(f=f.split(" "),h=f.indexOf(h),-1<h&&(f.splice(h,1),this.element.setAttribute("class",f.join(" "))))}else this.element.classList.contains(h)&&this.element.classList.remove(h)}Wa(h,
f){f?this.$(h):this.Fd(h)}Rc(h){return this.element.classList.contains(h)}Ol(){this.$("fm-noselect")}vxa(){this.$("fm-selectable")}uf(h=!1){if(!this.element)return 0;var f=this.My;return this.element.clientWidth-(h?0:(parseFloat(f.paddingLeft)||0)+(parseFloat(f.paddingRight)||0))}Xj(h){"number"===typeof h?this.element.style.width=h+"px":"string"===typeof h&&(this.element.style.width=h);return this}get width(){return this.uf()}set width(h){this.Xj(h)}get padding(){var h=this.My;return{left:parseFloat(h.paddingLeft)||
0,right:parseFloat(h.paddingRight)||0,top:parseFloat(h.paddingTop)||0,bottom:parseFloat(h.paddingBottom)||0}}set padding(h){}get borderWidth(){var h=this.My;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}}xd(h=!1){if(!this.element)return 0;var f=this.My;h=h?0:(parseFloat(f.paddingTop)||0)+(parseFloat(f.paddingBottom)||0);return 0>
this.element.clientHeight-h?0:this.element.clientHeight-h}pq(h){"number"===typeof h?this.element.style.height=h+"px":"string"===typeof h&&(this.element.style.height=h)}get height(){return this.xd()}set height(h){this.pq(h)}get left(){return this.element.getBoundingClientRect().left}set left(h){this.element.style.left=h+"px"}get top(){return this.element.getBoundingClientRect().top}set top(h){this.element.style.top=h+"px"}get right(){return this.element.getBoundingClientRect().right}set right(h){this.element.style.right=
h+"px"}get bottom(){return this.element.getBoundingClientRect().bottom}set bottom(h){this.element.style.bottom=h+"px"}html(h){if(void 0===h)return this.element.innerHTML;this.element.innerHTML=h;return this}empty(){this.html("")}clear(){this.empty()}text(h){if(void 0===h)return this.element.textContent;"input"==this.element.tagName.toLowerCase()?this.element.value=h:this.element.textContent=h;return this}focus(h=null){this.element.focus(h);return this}blur(){this.element.blur();return this}show(){this.element.style.display=
this.display}eb(){this.element.style.display="none"}get x(){return this.element.offsetLeft}get y(){return this.element.offsetTop}offset(h){if(void 0===h)return this.lg();this.R("left",h.left+"px");this.R("top",h.top+"px")}getBoundingClientRect(){return this.element.getBoundingClientRect()}position(h){if(void 0===h)return{top:this.y,left:this.x};this.offset(h)}attr(h,f){if(void 0===f)return this.element.getAttribute(h);try{this.element.setAttribute(h,f)}catch(b){this.element&&this.element.attributes&&
(this.element.attributes[h]=f)}return this}d4(h){this.element.removeAttribute(h)}R(h,f){if(void 0===f)return this.My[l.Eia(h)];this.element.style[l.Eia(h)]=f;return this}zg(h,f){if(void 0===f)return this.attr(`aria-${h}`);this.attr(`aria-${h}`,f)}static Eia(h){var f=h.split("-");if(1<f.length){for(h=1;h<f.length;h++)f[h]=f[h].charAt(0).toUpperCase()+f[h].substr(1);return f.join("")}return h}WN(){return"input"==this.element.tagName.toLowerCase()||"textarea"==this.element.tagName.toLowerCase()?this.element.value:
this.element.textContent}get My(){q.v(this.hY)&&(this.hY=window.getComputedStyle(this.element));return this.hY}set My(h){this.hY=h}requestAnimationFrame(h){var f=0;this.My=null;window.requestAnimationFrame?f=window.requestAnimationFrame(h):window.msRequestAnimationFrame?f=window.msRequestAnimationFrame(h):window.mozRequestAnimationFrame?f=window.mozRequestAnimationFrame(h):window.webkitRequestAnimationFrame?f=window.webkitRequestAnimationFrame(h):h.call(null);this.frames.push(f);return f}cancelAnimationFrame(h){this.My=
null;this.frames.splice(this.frames.indexOf(h),1);0!=h&&(null!=window.cancelAnimationFrame?window.cancelAnimationFrame(h):null!=window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(h):null!=window.mozCancelAnimationFrame?window.mozCancelAnimationFrame(h):null!=window.webkitCancelAnimationFrame&&window.webkitCancelAnimationFrame(h))}set visible(h){h?this.show():this.eb()}get visible(){return this.element&&"none"!=this.R("display")}lg(h=null){if(null==h)return h=this.element.getBoundingClientRect(),
{top:h.top,left:h.left};for(var f=0,b=0,a=this.element;a&&a!=h&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)f+=a.offsetLeft-a.scrollLeft,b+=a.offsetTop-a.scrollTop,a=a.offsetParent;return{top:b,left:f}}wx(h){this.element.scrollTop=h}pJa(){this.element.scrollLeft=0}N(h,f,b){"undefined"!==typeof this.element["on"+h]||v.fa.Gea(h)?(q.v(this.Kq[h])&&(this.Kq[h]=[]),this.Kq[h][f.toString()]=a=>{f(a)},this.element.addEventListener(h,this.Kq[h][f.toString()],b)):super.N(h,f,b)}sb(h,f){"undefined"!==typeof this.element["on"+
h]||v.fa.Gea(h)?this.Kq[h]&&this.element.removeEventListener(h,this.Kq[h][f.toString()],void 0):super.sb(h,f)}Fa(h){super.Fa(h)}Yd(h){for(var f in this.Kq)if(void 0===h||h==f)for(var b in this.Kq[f])if(this.Kq[f].hasOwnProperty(b))try{this.element.removeEventListener(f,this.Kq[f][b],!0),this.element.removeEventListener(f,this.Kq[f][b],!1)}catch(a){console.error(a)}this.Kq={};super.Yd(f)}dispose(){this.Yd();this.ox();this.CF&&(this.CF=this.CF.uielement=null);for(var h=0;h<this.frames.length;h++)this.cancelAnimationFrame(this.frames[h]);
this.frames.length=0;this.E$&&this.E$.dispose()}refresh(){this.html(this.html())}draggable(h){e.vL.xO.V().dDa(this,h)}ps(h,f){this.mra=h;e.vL.xO.V().eDa(this,f?f:this,h)}get nu(){return this.mra}index(){for(var h=0,f=this.element;f=f.previousElementSibling;)h++;return h}Zi(h){this.E$=new e.Zi.rpa(this,h)}Ie(h=0){this.attr("tabindex",h)}Ik(h){this.attr("role",h)}get Km(){return document.activeElement==this.element}get i1(){let h=document.activeElement;for(;null!=h;){if(h==this.element)return!0;h=h.parentElement}return!1}}
e.Ea=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(h="",f="a"){super(f,"fm-ui-btn");this.E2=0;this.dIa=50;this.$(h);this.G.N("click",b=>this.Dk(b));this.G.N("mousedown",()=>this.kx());this.G.N("mouseup",()=>this.lr());this.G.N("mouseout",()=>this.IFa());this.G.N("keydown",b=>this.cq(b));this.G.display="inline-block";this.Ik("button");this.Ie(0)}Dk(h){this.WL()&&this.$a(l.mf,this,h);h instanceof MouseEvent&&h.stopImmediatePropagation()}cq(h){if(13==h.keyCode||32==h.keyCode)this.Dk(h),h.preventDefault()}kx(){this.G.Wa("fm-ui-pressed",
!0);this.E2=q.Eca(()=>this.Mwa(),this.dIa)}Mwa(){this.Fa(new v.fa(l.ooa,this))}lr(){this.G.Wa("fm-ui-pressed",!1);q.p0(this.E2)}IFa(){this.G.Wa("fm-ui-pressed",!1);q.p0(this.E2)}J(){return this.label}cb(h){this.label!=h&&(this.label=h,this.G.text(this.label))}}l.ooa="buttonmousedown";l.mf="buttonclick";e.Md=l})(x||(x={}));(function(e){class l extends e.Md{constructor(h=""){super(h,"button");this.G.attr("type","button")}}e.Kg=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(h=""){super("span","fm-ui fm-ui-label");this.G.display="inline-block";this.cb(h)}J(){return this.label}cb(h,f=!1){this.label!=h&&(this.label=h,f?this.G.html(this.label):this.G.text(this.label))}KV(h){h?this.G.vxa():this.G.Ol()}}e.Uc=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(){super("textarea","fm-ui-text-area");this.G.N("keypress",h=>this.g3(h));this.G.N("keyup",h=>this.h3(h));this.G.N("paste",()=>this.d3());this.G.N("blur",()=>this.UAa())}h3(){this.tL()}d3(){this.tL()}UAa(){this.$a(l.RW)}tL(){this.Fa(new v.fa(e.Hj.Mx,this))}Ti(){return this.G.WN()}zj(h){this.Ti()!=h&&(this.G.element.value=h,this.tL())}clear(){this.zj("")}qz(h){var f=this.G.element.selectionStart,b=this.G.element.selectionEnd,a=this.Ti();this.zj(a.substr(0,
f)+h+a.substr(f));this.Af(f+h.length,b+h.length)}Af(h,f=-1){this.G.element.focus();this.G.element.setSelectionRange(h,0>f?h:f)}selectAll(){this.Af(0,this.Ti().length)}g3(h){h.ctrlKey?(this.$a(l.QW),h.preventDefault()):13==h.keyCode&&(this.$a(l.DA),h.preventDefault())}}l.RW="focus_off";l.DA="ntr";l.QW="ntl";e.Hv=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(){super("input","fm-ui-text-input");this.prompt=this.text="";this.QZ=0;this.RZ=!0;this.G.display="inline-block";this.G.attr("type","text");this.G.attr("data-placeholder","");this.G.N("change",()=>this.zGa());this.G.N("focusin",()=>this.U2());this.G.N("focusout",()=>this.REa());this.G.N("input",()=>this.AGa());this.G.N("keypress",h=>this.g3(h));this.G.N("paste",()=>this.d3())}static fza(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}g3(h){13==h.keyCode&&this.$a(l.DA);if(!(q.v(this.cha)||h.ctrlKey||h.altKey||h.metaKey)){var f=l.fza(h);null!=f&&!1===this.cha.test(f)&&h.preventDefault()}}h1(){this.G.WN()!==this.text&&(this.text=this.G.WN(),this.tL())}zGa(){this.h1()}AGa(){this.h1()}d3(){this.h1()}tL(){0<this.QZ?this.RZ&&(this.RZ=!1,q.Ce(()=>this.nY(),this.QZ)):this.nY()}nY(){this.RZ=!0;this.Fa(new v.fa(l.Mx,this,this.text))}U2(){0==this.text.length&&(this.G.text(""),
this.ou(!1))}REa(){this.ou(0==this.text.length)}Ti(){return this.text=this.G.WN()==this.prompt?this.text:this.G.WN()}zj(h){this.text!=h&&(this.text=h,this.G.text(this.text),this.ou(0==this.text.length))}clear(h=!0){this.zj("");h&&this.nY();this.$a(l.T6)}kE(h){h!=this.prompt&&(this.prompt=h,this.G.attr("data-placeholder",this.prompt),this.ou(0==this.text.length))}ou(h){this.G.text(h?this.prompt:this.text);this.G.Wa("fm-ui-prompt",h)}lE(h){this.cha=h}yV(h){this.QZ=h}tJa(){this.G.attr("type","number")}}
l.Mx="_";l.DA="ntr";l.T6="clr";e.Hj=l})(x||(x={}));(function(e){class l extends e.Hj{constructor(){super();this.lE(l.jpa);this.tJa()}Ha(){return parseFloat(this.Ti())}gi(h){this.zj(h.toString())}}l.jpa=/^\d+$/;l.oF=/[-\.\d]/;e.Jq=l})(x||(x={}));
(function(e){(function(h){h[h.ENa=1]="SELECTED";h[h.VNa=0]="UNSELECTED";h[h.HNa=-1]="SEMI_SELECTED"})(e.qqa||(e.qqa={}));class l extends e.Md{constructor(){super();this.G.display="inline-block";this.G.Rc("fm-ui-btn")&&this.G.Fd("fm-ui-btn");this.G.$("fm-ui-toggle-btn");this.selected=0}Dk(h){this.WL()&&(this.toggle(),this.$a(v.fa.$d,this,h));h instanceof MouseEvent&&h.stopImmediatePropagation()}toggle(){this.Af(1==this.selected?0:1)}Af(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=
h,this.G.Wa("fm-selected",1==this.selected),1==this.selected?this.zg("checked","true"):-1==this.selected?this.zg("checked","mixed"):this.zg("checked","false"))}getSelection(){return this.selected}}e.WX=l})(x||(x={}));
(function(e){class l extends e.Kg{constructor(){super();this.Ik("switch");this.G.display="inline-block";this.G.Rc("fm-ui-btn")&&this.G.Fd("fm-ui-btn");this.G.$("fm-ui-toggle-btn");this.Af(0)}Dk(h){this.WL()&&(this.toggle(),this.$a(v.fa.$d,this,h))}toggle(){this.Af(1==this.selected?0:1)}Af(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=h,this.G.Wa("fm-selected",1==this.selected),this.Ata(1==this.selected))}getSelection(){return this.selected}}e.NP=l})(x||(x={}));
(function(e){class l extends e.WX{constructor(){super();this.G.display="inline-block";this.G.Rc("fm-ui-toggle-btn")&&this.G.Fd("fm-ui-toggle-btn");this.G.$("fm-ui-checkbox");this.CH=new e.Uc("Label");this.G.append(this.CH.G);this.Ik("checkbox")}toggle(){super.toggle();this.G.Wa("fm-ui-semi-selected",-1==this.getSelection())}cb(h,f=!1){null!=this.CH&&this.CH.cb(h,f)}J(){return null!=this.CH?this.CH.J():""}Af(h){!0===h&&(h=1);!1===h&&(h=0);this.getSelection()==h||1<h||-1>h||(super.Af(h),this.G.Wa("fm-ui-semi-selected",
-1==this.getSelection()))}get checked(){return 1==this.getSelection()}set checked(h){this.Af(h?1:0)}fi(h){this.CH.fi(h)}}e.NJ=l})(x||(x={}));
(function(e){class l extends e.Ma{constructor(){super("div","fm-ui-divider");this.Ffa=h=>this.lx(h);this.yDa=h=>this.kx(h);this.zDa=h=>this.lr(h);this.direction=l.lJ;this.N("mousedown",this.yDa);q.vk.addEventListener("mouseup",this.zDa);this.G.Ol()}kx(h){this.Ht=this.direction==l.lJ?this.xd():this.uf();this.hB=this.G.parent.lg();q.vk.addEventListener("mousemove",this.Ffa);h.preventDefault();h.stopImmediatePropagation()}lx(h){if(this.direction==l.lJ){var f=h.clientY-this.hB.top;if(this.zF&&(f<this.zF[1]||
f>this.zF[3]))return;this.G.R("top",f-this.Ht/2+"px");this.$a(l.SW,this,{top:f})}this.direction==l.YX&&(h=h.clientX-this.hB.left,this.zF&&(h<this.zF[0]||h>this.zF[2])||(this.G.R("left",h-this.Ht/2+"px"),this.$a(l.SW,this,{left:h})))}lr(){q.vk.removeEventListener("mousemove",this.Ffa)}get direction(){return this.mY}set direction(h){this.mY=h;this.G.Wa("fm-ui-horizontal",this.mY==l.lJ);this.G.Wa("fm-ui-vertical",this.mY==l.YX);this.G.R("position","absolute")}set zva(h){this.zF=h}}l.lJ=0;l.YX=1;l.SW=
"divider_moved_event";e.MP=l})(x||(x={}));(function(e){class l extends e.Ma{constructor(){super("div","fm-ui-modal-overlay")}oJa(h){this.G.Wa("fm-ui-transparent",!1);this.G.Wa("fm-ui-opaque",h)}}e.pqa=l})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(f="fm-ui-container"){super("div",f)}removeChild(f){this.contains(f)&&f.G.detach()}contains(f){return q.v(f)?!1:this.G.contains(f.G)}uf(){return this.G.width}xd(){return this.G.height}ox(){for(var f=this.G.children(),b=f.length-1;0<=b;b--)f[b].Gg()}}l.dk=h})(e.be||(e.be={}))})(x||(x={}));(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-border-container")}}l.h9=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h extends l.dk{constructor(){super();this.G.$("fm-ui-window");this.eb()}setPosition(f,b){this.G.offset({left:Math.floor(f),top:Math.floor(b)});this.G.R("position","absolute")}}l.sqa=h})(e.be||(e.be={}))})(x||(x={}));(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-hgroup")}}l.QNa=h})(e.be||(e.be={}))})(x||(x={}));(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-vgroup")}}l.UNa=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-panel")}}l.RNa=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h extends l.sqa{constructor(f){super();this.Vv=!1;this.u$=()=>this.t3();this.aha=b=>this.H3(b);this.ZF=this.T1=!1;this.OY=f;this.G.$("fm-ui-popup");this.Ik("dialog");this.eb();this.Qq=new e.pqa;this.Qq.vn();this.Qq.N("click",this.u$);this.Qq.eb();this.OY&&this.OY.W(this.Qq.G);this.Xra=new e.cG.B7;this.Wqa=new e.cG.B7}get Pu(){return this.Vv}H3(f){f.target===window&&(this.G.requestAnimationFrame(()=>this.zp()),this.TB())}t3(){this.close()}open(){q.JL.addEventListener("resize",
this.aha);this.Qq.G.Wa("fm-ui-opaque",this.T1);this.show();this.zp();this.$a(v.fa.OPENED);this.TB();this.Vv=!0;this.Yv=document.activeElement;this.G.prepend(this.Xra);this.G.append(this.Wqa)}show(){super.show();this.Qq&&this.Qq.show()}eb(){super.eb();this.Qq&&this.Qq.eb()}get rI(){return this.ZF}set rI(f){this.ZF=f;this.G.R("opacity",f?0:null);this.Qq&&this.Qq.G.R("opacity",f?0:null)}close(){q.JL.removeEventListener("resize",this.aha);this.eb();this.$a(v.fa.CLOSED);this.Vv=!1;this.Yv&&(this.Yv.focus(),
this.Yv=null)}zp(){var f=this.OY,b=q.K.Mb.Fb.G.borderWidth,a=b?Math.round(b.left):0;b=b?Math.round(b.top):0;if(f){var c=Math.max(a,(f.uf(!0)-this.G.uf(!0))/2);f=Math.max(b,(f.xd(!0)-this.G.xd(!0))/2);this.setPosition(c==a?-1*c:c,f==b?-1*f:f)}}get OD(){return this.Qq}}l.ay=h})(e.be||(e.be={}))})(x||(x={}));(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-toolbar")}}l.SNa=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h extends l.dk{constructor(){super("fm-ui-toolbar-mobile");this.s1=new e.Uc;this.s1.$("fm-ui-header-display");this.W(this.s1)}hJa(f){this.Ui!=f&&(this.Ui=f,this.s1.cb(f))}}l.TNa=h})(e.be||(e.be={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(){this.items=[];this.KK=[]}GV(f){this.KK=f}S0(f,b){if(0>f||b>this.KK.length+1)return[];for(this.items.length=0;f<b;f++)this.items.push(this.KK[f]);return this.items}getItem(f){return this.KK[f]}jH(){return this.KK.length}}l.MNa=h})(e.wwa||(e.wwa={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super("ul","fm-ui-list");this.rV=NaN;this.H_=u.Kd().Mm?h.Vka:h.Uka;this.fI=[];this.hE=[];this.ni=0;this.hl=!1;this.useCache=!0;this.uF=!1;this.I=[];this.Xea=[];this.mh=[];this.df="label";this.Su=this.Ewa;this.$Q=this.G;this.Ik("list");this.ql=null;this.selectedIndex=-1;this.B4()}B4(){this.G.N("click",b=>this.NU(b));this.G.N("mousedown",b=>this.OU(b));this.G.N("keydown",b=>this.ID(b))}Vd(){isNaN(this.rV)&&0<this.mh.length&&(this.rV=this.mh[0].xd(!0)+
parseInt(this.mh[0].G.R("border-top-width"))+parseInt(this.mh[0].G.R("border-bottom-width")));return isNaN(this.rV)?this.H_:this.rV}cJa(){this.H_=37}Mw(){return 0}mH(){return this.I.length}kb(){this.zs("data")&&this.cxa();this.validate()}cxa(){this.UHa();for(var b,a=this.zc(),c=0;c<a.length;c++)b=this.getItem(a[c],c),c==this.ni&&(this.$Q.zg("activedescendant",b.P0()),b.G.$("fm-ui-active")),this.Ta(b);this.Wa("fm-ui-empty",0==a.length);this.dya&&this.G.prepend(this.dya);this.cya&&this.G.append(this.cya);
this.G.requestAnimationFrame(()=>{0<this.mh.length&&(this.H_=this.mh[0].xd())})}getItem(b,a){if(this.useCache&&0<this.Xea.length){var c=this.Xea.pop();c.setData(b);c.Tm(a)}else c=this.Su(b,a),this.df&&c.qg(this.df),this.Ww&&c.HV(this.Ww),this.xp&&c.xN(this.xp);c.Uha();return c}Ta(b){this.mh.push(b);this.W(b)}UHa(){for(;0<this.mh.length;)this.B$(this.mh.pop())}removeItem(b){for(var a=0;a<this.mh.length;a++)if(this.mh[a]===b){this.mh.splice(a,1);break}this.B$(b)}B$(b){null!=this.G.find(b.G.element.nodeName)&&
b.G.remove()}ID(b){if(32==b.keyCode||13==b.keyCode)this.PU(this.ni,b),b.preventDefault();40==b.keyCode&&(this.Ei(this.ni+1),b.preventDefault());38==b.keyCode&&(this.Ei(this.ni-1),b.preventDefault())}Ei(b){this.ni=Math.max(0,Math.min(this.mh.length-1,b));for(var a of this.mh)a.Fd("fm-ui-active");this.$Q.zg("activedescendant","");if(b=this.mh[this.ni]){this.$Q.zg("activedescendant",b.P0());b.$("fm-ui-active");a=this.G.parent.getBoundingClientRect();const c=b.G.getBoundingClientRect().top+this.G.parent.element.scrollTop,
d=c+b.xd();c<a.top?b.G.element.scrollIntoView(!0):d>a.bottom&&b.G.element.scrollIntoView(!1)}}IC(b){if(b=e.Ea.Vb(b).closest("li")){const a=parseInt(b.attr("data-index"));return isNaN(a)?null:{element:b,index:a,data:this.zc()[a]}}return null}Au(){const b=this.Mw()+this.ni;return 0<=b?q.v(this.zc()[b])||q.v(this.mh[b])?null:{index:b,data:this.zc()[b],element:this.mh[b].G}:null}OU(b){(b=this.IC(b.target))&&this.Ei(b.index)}NU(b){const a=this.IC(b.target);a&&this.PU(a.index,b)}PU(b,a){if(!(0>b)){var c=
this.Mw()+b,d=this.ql,g=this.selectedIndex;this.Jk(b);var k=new f;k.data={ql:this.ql,selectedIndex:this.selectedIndex,TIa:this.mh[b].G,gq:a,NHa:c,EHa:d,DHa:g};this.Fa(k)}}zc(){return this.I}Wf(b,a=!0){this.I=b;this.ni=0;a&&this.oe("data")}HV(b){this.Ww!=b&&(this.Ww=b,this.oe("data"))}er(){return this.df}qg(b){this.df!=b&&(this.df=b,this.oe("data"))}XG(){return this.xp}xN(b){this.xp!=b&&(this.xp=b,this.oe("data"))}ei(b){this.Su=b;this.oe("data")}bt(b){-1<b&&b<this.mh.length&&this.mh[b].yr()}xr(b){for(var a,
c=0;c<this.mh.length;c++)if(a=this.mh[c].getData(),q.Fg(b)){if(b(a)){this.mh[c].yr();break}}else if(a===b){this.mh[c].yr();break}}qH(){return this.selectedIndex}Jk(b){var a=this.zc();-1<b&&b<a.length?this.jW(a[b],b):this.jW(null,-1)}Kh(){return this.ql}Ws(b){var a=this.zc();if(q.Fg(b))for(var c=0;c<a.length;c++){if(!q.v(a[c])&&b(a[c])){this.jW(a[c],c);break}}else a=a.indexOf(b),-1<a&&this.jW(b,a)}jW(b,a){if(this.fo){var c=-1<this.hE.indexOf(a);!(c=!c)&&2>this.hE.length||(c?(this.hE.push(a),this.fI.push(b)):
(this.hE.splice(this.hE.indexOf(a),1),this.fI.splice(this.fI.indexOf(b),1)),this.hl&&(b.isSelected=c,this.bt(a)))}else this.hl&&null!=this.ql&&(this.ql.isSelected=!1,this.bt(this.selectedIndex)),this.ql=b,this.selectedIndex=a,this.hl&&null!=this.ql&&(this.ql.isSelected=!0,this.bt(this.selectedIndex))}Ewa(b,a){var c=new e.Ci.cB;c.setData(b);c.Tm(a);return c}$L(){return this.Vd()*this.zc().length}set fo(b){this.uF=b}get fo(){return this.uF}BN(b){this.hE=b;this.fI.length=0;b=this.zc();for(var a=0;a<
b.length;a++)-1<this.hE.indexOf(a)?(this.fI.push(b[a]),this.hl&&(b[a].isSelected=!0,this.bt(a))):this.hl&&(b[a].isSelected=!1,this.bt(a))}hM(){return this.fI}ps(b){this.G.ps(b,this)}vN(b){var a=this.Vd();b*=a;a=b+a;const c=this.G.element.scrollTop,d=this.G.xd();c>b?this.G.wx(b):c+d<a&&this.G.wx(a-d)}}h.Uka=21;h.Vka=31;l.ij=h;class f extends v.fa{constructor(){super(v.fa.$d)}}l.oqa=f})(e.zd||(e.zd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super("div","fm-ui-dropdown");this.prompt="Choose item";this.uF=this.IY=this.Vv=!1;this.G.display="inline-block";this.Ql=new l.nqa;this.Ql.N("click",()=>this.Pu?this.close():this.open());this.Ql.N("keydown",b=>this.PDa(b));this.Ql.N("blur",()=>this.close());this.xL=new e.Ma("div","fm-ui-dropdown-list");this.xL.eb();this.af=new f(this,this.Ql);this.af.Uha();this.af.hl=!0;this.af.ei(this.Su);this.af.N(v.fa.$d,b=>this.av(b));this.xL.W(this.af);
this.Ql.zg("controls",this.af.P0());this.W(this.Ql);this.W(this.xL)}get Pu(){return this.Vv}Su(b,a){var c=new e.Ci.SX;c.setData(b);c.Tm(a);return c}av(b){this.ou(null==b.data.ql);this.$a(v.fa.$d,this,b.data);this.Ql.focus({preventScroll:!0});this.fo||this.close()}PDa(b){27==b.keyCode&&(this.close(),b.stopImmediatePropagation())}ou(b){var a=this.af.Kh();const c=b||this.fo||null==a?this.prompt:a[this.er()];a=b||this.fo||null==a||q.ia(this.af.XG())||q.v(a[this.XG()])?"":a[this.XG()];this.Ql.cb(c);q.ia(a)||
(this.Ql.JM.mc(a),this.Ql.JM.fi(a));this.G.Wa("fm-ui-prompt",b)}kE(b){this.prompt!==b&&(this.prompt=b,this.ou(!0))}open(){!this.Vv&&this.WL()&&(this.Vv=!0,this.xL.show(),this.Ql.Af(1))}close(){0!=this.Vv&&this.WL()&&(this.Vv=!1,this.xL.eb(),this.Ql.Af(0))}zc(){return this.af.zc()}Wf(b){const a=this.Au();this.af.Wf(b);this.IY&&a&&this.Ei(a.index)}er(){return this.af.er()}qg(b){this.af.qg(b)}XG(){return this.af.XG()}xN(b){this.af.xN(b)}ei(b){this.af.ei(b)}yr(){this.af.yr()}bt(b){this.af.bt(b)}qH(){return this.af.qH()}Jk(b){this.af.Jk(b);
this.ou(null==this.af.Kh())}BN(b){this.af.BN(b);this.ou(!0)}Kh(){return this.af.Kh()}Ws(b){this.af.Ws(b);this.ou(null==this.af.Kh())}hM(){return this.af.hM()}show(){super.show()}Vd(){return this.af.Vd()}mH(){return this.af.mH()}xr(){}$L(){return 0}set fo(b){this.uF=b;this.af.fo=b;this.uF?this.af.G.$("fm-ui-dropdown-multiple-selection-list"):this.af.G.Fd("fm-ui-dropdown-multiple-selection-list")}get fo(){return this.uF}set hl(b){this.af.hl=b}get Yea(){return this.IY}set Yea(b){this.IY=b}Au(){return this.af.Au()}Ei(b){this.af.Ei(b)}mc(b){return this.Ql.mc(b)}}
l.Mr=h;class f extends l.ij{constructor(b,a){super();this.parent=b;this.Ql=a;this.$Q=this.Ql.G;this.B4();this.Ik("listbox")}B4(){this.Ql&&(this.N("mousedown",b=>this.NU(b)),this.Ql.N("keydown",b=>this.ID(b)))}ID(b){if(this.parent.Pu)super.ID(b);else if(13==b.keyCode||32==b.keyCode)this.parent.open(),b.preventDefault()}}})(e.zd||(e.zd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super();this.ni=0;this.$("fm-ui-vlist");this.mi=new f;this.mi.cJa();this.mi.N(v.fa.$d,b=>this.av(b));this.W(this.mi);this.Kt=new e.Ma("div","fm-ui-vlist-placeholder");this.W(this.Kt);this.N("scroll",()=>this.C3());this.N("mousedown",b=>this.OU(b));this.N("keydown",b=>this.ID(b))}OU(b){(b=this.mi.IC(b.target))&&this.Ei(this.Mw()+b.index)}ID(b){if(32==b.keyCode||13==b.keyCode)this.PU(this.ni,b),b.preventDefault();40==b.keyCode&&(this.Ei(this.ni+
1),this.vN(this.ni),b.preventDefault());38==b.keyCode&&(this.Ei(this.ni-1),this.vN(this.ni),b.preventDefault())}vN(b){var a=this.Vd();b*=a;a=b+a;const c=this.G.element.scrollTop,d=this.G.xd();c>b?this.G.wx(b):c+d<a&&this.G.wx(a-d)}Ei(b){this.ni=Math.max(0,Math.min(this.jh().jH()-1,b));this.ni>=this.Mw()&&this.ni<this.lda()&&this.mi.Ei(this.ni-this.Mw())}Au(){return this.mi.Au()}PU(b,a){if(!(0>b)){var c=this.Kh(),d=this.qH();this.Jk(b);var g=new l.oqa;g.data={ql:this.Kh(),selectedIndex:this.qH(),gq:a,
NHa:b,EHa:c,DHa:d};this.Fa(g)}}av(b){this.Fa(b)}C3(){this.oe("data")}kb(){this.Kt.pq(Math.min(this.$L(),h.dP));if(this.zs("data")){this.mi.Wf(this.zc());const b=this.Mw()*this.Vd()*this.oH()-this.Dda();this.mi.G.top=Math.min(b,this.Kt.xd()-this.mi.G.height);this.Ei(this.ni)}this.validate()}oH(){return this.$L()>h.dP?h.dP/this.$L():1}Mw(){return 1!=this.oH()?Math.floor((this.G.element.scrollTop+this.Dda())/this.oH()/this.Vd()):Math.max(0,Math.floor(this.G.element.scrollTop/this.Vd())-1)}lda(){return this.Mw()+
this.mH()}Dda(){return 1!=this.oH()?(this.xd()/this.oH()-this.xd())*(this.G.element.scrollTop/h.dP)*this.oH():0}get fo(){return this.mi.fo}set fo(b){this.mi.fo=b}er(){return this.mi.er()}qg(b){this.mi.qg(b)}ei(b){this.mi.ei(b)}bt(b){this.mi.bt(b)}xr(b){this.mi.xr(b)}Vd(){return this.mi.Vd()}mH(){return 0<this.Vd()?Math.ceil(this.xd()/this.Vd())+3:0}qH(){return this.mi.qH()}Jk(b){this.mi.Jk(b)}BN(b){this.mi.BN(b)}Kh(){return this.mi.Kh()}Ws(b){this.mi.Ws(b)}hM(){return this.mi.hM()}$L(){return this.Vd()*
this.jh().jH()}jh(){return this.EJa}D4(b){this.EJa=b}qJa(){this.G.wx(0)}Wf(b){this.jh()&&(this.jh().GV(b),this.qJa(),this.oe("data"))}zc(){return this.jh()?this.jh().S0(this.Mw(),this.lda()):[]}}h.dP=1E6;l.rqa=h;class f extends l.ij{constructor(){super();this.ni=-1}OU(){}ID(){}Wf(b,a=!0){this.I=b;this.ni=-1;a&&this.oe("data")}Ei(b){this.ni=Math.max(0,Math.min(this.mh.length-1,b));for(const a of this.mh)a.Fd("fm-ui-active");(b=this.mh[this.ni])&&b.$("fm-ui-active")}}})(e.zd||(e.zd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.WX{constructor(){super();this.$("fm-ui-dropdown-btn");this.JM=new e.Uc;this.W(this.JM);this.G.Yd();this.Ik("combobox");this.zg("haspopup","listbox");this.uaa(!1)}cb(f){this.JM.cb(f,!0);this.JM.fi(f)}}l.nqa=h})(e.zd||(e.zd={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super("li");this.df="label";this.Ik("option")}getData(){return this.data}setData(f){null!=f&&(this.data=f,this.oe("data"))}Tm(f){this.G.attr("data-index",f)}er(){return this.df}qg(f){this.df!=f&&(this.df=f,this.oe("data"))}XG(){return this.xp}xN(f){this.xp!=f&&(this.xp=f,this.oe("data"))}HV(f){this.Ww!=f&&(this.Ww=f,this.oe("data"))}J(){return this.Ww?this.Ww(this.data):this.data[this.df]}kb(){this.zs("data")&&(this.G.text(this.data[this.df]),
q.ia(this.xp)||q.v(this.data[this.xp])||this.mc(this.data[this.xp]));this.validate()}}l.cB=h})(e.Ci||(e.Ci={}))})(x||(x={}));
(function(e){(function(l){class h extends l.cB{kb(){var f=this.getData();null==this.label&&(this.label=new e.Uc,this.label.$("fm-text-display"),this.G.append(this.label.G));this.label.cb(f[this.er()],!0);this.vaa(!0===f.isSelected);this.G.Wa("fm-selected",!0===f.isSelected);this.G.Wa("fm-not-selected",!0!==f.isSelected);q.ia(this.xp)||q.v(this.data[this.xp])||this.label.mc(this.data[this.xp])}}l.SX=h})(e.Ci||(e.Ci={}))})(x||(x={}));var da=x||(x={}),ea=da.Zi||(da.Zi={}),ia=ea.ji||(ea.ji={});
ia.ck="top";ia.Hi="bottom";ia.YE="left";ia.pF="right";
(function(e){(function(l){class h{constructor(f,b){this.kK=a=>this.kx(a);this.It=a=>this.lr(a);this.FB=a=>this.lx(a);this.target=f;this.options=b;this.$va()}$va(){for(var f=0;f<this.options.QV.length;f++)this.iu(this.options.QV[f])}iu(f){var b=new e.Ea("div","fm-resizable-handle");b.$("fm-"+f);b.N("mousedown",this.kK);this.target.W(b);return b}kx(f){f=e.Ea.Vb(f.target);f.Rc("fm-left")?this.ky=l.ji.YE:f.Rc("fm-right")?this.ky=l.ji.pF:f.Rc("fm-top")?this.ky=l.ji.ck:f.Rc("fm-bottom")&&(this.ky=l.ji.Hi);
this.KN()}lr(f){this.cga(f.clientX,f.clientY);this.LN()}lx(f){this.cga(f.clientX,f.clientY)}cga(f,b){this.WJ&&(f=Math.min(Math.max(this.WJ.left,f),this.WJ.right),b=Math.max(this.WJ.top,b),!0!==this.options.FZ&&(b=Math.min(this.WJ.bottom,b)));var a={left:this.HB.left,top:this.HB.top},c={width:this.RY.width,height:this.RY.height};this.ky==l.ji.YE&&(a.left=f,c.width+=this.HB.left-a.left);this.ky==l.ji.pF&&(c.width=f-this.HB.left);this.ky==l.ji.ck&&(a.top=b,c.height+=this.HB.top-a.top);this.ky==l.ji.Hi&&
(c.height=b-this.HB.top);this.options.resize&&this.options.resize({sE:this.ky,gOa:this.HB,J3:this.RY,position:a,size:c})}KN(){document.addEventListener("mousemove",this.FB);document.addEventListener("mouseup",this.It);this.RY={width:this.target.uf(!0),height:this.target.xd(!0)};this.HB={left:this.target.lg().left,top:this.target.lg().top};this.WJ=this.options.KR?this.options.KR.getBoundingClientRect():null}LN(){document.removeEventListener("mousemove",this.FB);document.removeEventListener("mouseup",
this.It);this.options.complete&&this.options.complete()}dispose(){document.removeEventListener("mousemove",this.FB);document.removeEventListener("mouseup",this.It)}}l.rpa=h})(e.Zi||(e.Zi={}))})(x||(x={}));(function(e){(function(l){class h extends e.Ci.SX{kb(){super.kb();const f=this.data.submenu&&0<this.data.submenu.length;this.G.Wa("fm-has-submenu",f);this.Cta(f)}}l.i9=h})(e.$q||(e.$q={}))})(x||(x={}));
(function(e){(function(l){class h extends e.be.h9{constructor(b){super();this.ZV=a=>this.sGa(a);this.parent=b;this.$("fm-ui-context-menu");this.list=new e.zd.ij;this.list.ei((a,c)=>this.Su(a,c));this.list.qg("caption");this.list.Ie();this.list.N(v.fa.$d,a=>this.av(a));this.W(this.list);this.dA=new f(this);this.dA.list.N(v.fa.$d,a=>this.av(a));this.dA.eb();this.W(this.dA);this.G.Ol();this.G.N("mouseleave",()=>{this.Laa=setTimeout(()=>this.close(),500)});this.G.N("mouseover",()=>{clearTimeout(this.Laa)});
this.G.N("keydown",a=>{27==a.keyCode&&(this.close(),a.stopImmediatePropagation())})}Po(b,a,c,d=null,g=null){0!=a.length&&(this.IK=g,this.setData(a),this.show(),this.Yv=document.activeElement,this.list.focus({preventScroll:!0}),b=b.lg(),c.top-=b.top,c.top+=d&&!isNaN(d.top)?d.top:-5,c.left-=b.left,c.left+=d&&!isNaN(d.left)?d.left:-5,this.G.offset(c),d=this.G.getBoundingClientRect(),b=!1,d.right>window.innerWidth&&(c.left-=d.width-10,b=!0),d.bottom>window.innerHeight&&(c.top-=d.height-10,b=!0),b&&(c.top=
Math.max(-this.G.parent.top,c.top),c.left=Math.max(-this.G.parent.left,c.left),this.G.offset(c)),u.Kd().Mm?q.K.Mb.Fb.N("touchstart",this.ZV):q.K.Mb.Fb.N("mousedown",this.ZV),this.bea=!0,q.Ce(()=>{this.bea=!1},100))}sGa(b){this.G.JR(b)||this.close()}close(b=null){clearTimeout(this.Laa);if(this.G.visible){this.eb();this.dA.eb();q.K.Mb.Fb.sb("mousedown",this.ZV);q.K.Mb.Fb.sb("touchstart",this.ZV);var a=b&&!0===b.preventFocusRestore?!1:!0;this.IK&&(a=this.IK(b),this.IK=null);this.Yv&&!1!==a&&this.Yv.focus({preventScroll:!0})}}setData(b){this.list.Wf(b.slice())}av(b){const a=
b.data.ql;a.submenu&&0<a.submenu.length?(this.dA.Po(b.data.TIa,a),this.dA.list.focus()):(null!=a.handler&&a.handler(a.data),b.data.gq&&b.data.gq.stopImmediatePropagation(),this.close(a))}Su(b,a){var c=new l.i9;c.setData(b);c.Tm(a);q.ia(b["class"])||c.$(b["class"]);c.N("mouseover",()=>this.JFa(c,b));return c}JFa(b,a){this.bea||(a.submenu&&0<a.submenu.length?this.dA.Po(b.G,a):this.dA.eb())}focus(b=null){this.list.focus(b)}}l.sF=h;class f extends e.be.h9{constructor(b){super();this.parent=b;this.$("fm-ui-context-submenu");
this.N("keydown",a=>this.cq(a));this.list=new e.zd.ij;this.list.ei((a,c)=>this.UJa(a,c));this.list.qg("caption");this.list.Ie();this.W(this.list)}cq(b){27==b.keyCode&&(this.parent&&this.parent.focus(),this.eb(),b.stopImmediatePropagation())}UJa(b,a){var c=new l.i9;c.setData(b);c.Tm(a);q.ia(b["class"])||c.$(b["class"]);return c}Po(b,a){if(a!=this.jga){this.jga=a;this.list.Wf(a.submenu.slice());a=b.lg(this.parent.G.element);this.G.top=a.top-1;this.G.left=b.uf(!0)-5;this.show();var c=this.G.getBoundingClientRect();
c.right>window.innerWidth&&(this.G.left=-c.width,0>this.G.left&&(this.G.left=-this.G.left));c.bottom>window.innerHeight&&(this.G.top=a.top-c.height+b.xd(!0)+1,0>this.G.top&&(this.G.top=-this.G.top))}}eb(){super.eb();this.jga=null}}})(e.$q||(e.$q={}))})(x||(x={}));
(function(e){(function(l){class h{constructor(f){this.target=f;u.Kd().Mm?(new e.cG.ona(this.target)).NCa((b,a)=>this.o3(b,a)):q.vk.addEventListener("contextmenu",b=>this.Ora(b))}o3(){}B3(){}Ora(f){this.target.JR(f)&&this.B3(f)}}l.tpa=h})(e.$q||(e.$q={}))})(x||(x={}));
(function(e){(function(l){class h extends e.Ma{constructor(){super("div","fm-ui-datepicker-input");this.ec="dd/MM/yyyy";this.Ira=1900;this.Gra=2100;this.fga=b=>this.OFa(b);this.Ry=new e.Hj;this.Ry.G.N("click",()=>this.open());this.Ry.N(e.Hj.Mx,b=>this.dFa(b));this.Ry.N(e.Hj.DA,()=>this.eFa());this.W(this.Ry);var f=new e.Ea("i","fm-ui-datepicker-icon");f.N("click",()=>this.cFa());this.G.W(f);this.Zba=new e.Ea("div","fm-ui-datepicker-dropdown");this.G.W(this.Zba);this.Fp=new l.mqa;this.Fp.N(v.fa.$d,
()=>this.zEa());this.Zba.W(this.Fp.G);this.oe()}kb(){this.zs("all","date")&&(this.Fp.gE?this.Ry.zj(this.Fp.gE.format(this.ec)):this.Ry.zj(""));this.zs("timezone")&&this.Ry.kE(this.Sza());super.kb()}open(){this.G.Wa("fm-opened",!0);this.Fp.reset();document.body.addEventListener("mousedown",this.fga)}close(){this.G.Wa("fm-opened",!1);document.body.removeEventListener("mousedown",this.fga);this.oe("date")}get Dc(){return this.Fp.gE}set Dc(f){this.Fp.gE=f;this.oe("date")}sJa(){this.Dc=(new q.Zg).Aj(this.hi)}TGa(f){var b=
"MM/dd/yyyy"==this.ec,a=f.split("/");f=parseInt(a[2]);isNaN(f)||(f=Math.min(this.Gra,Math.max(this.Ira,f)));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(q.Zg.F_(c,f),Math.max(1,b)));b=(new q.Zg).Aj(this.hi).setFullYear(f,c,b);return b.Ug()?b:null}cFa(){this.G.Rc("fm-opened")?this.close():this.open()}dFa(f){f=this.TGa(f.data);q.v(f)||(this.Fp.gE=f,this.$a(v.fa.$d,this,this.Dc))}eFa(){this.oe("date");this.close()}OFa(f){this.G.JR(f)||
this.close()}zEa(){this.$a(v.fa.$d,this,this.Dc);this.oe("date");this.close()}get Hx(){return this.Fp.Hx}set Hx(f){this.Fp.Hx=f}get hi(){return this.Fp.hi}set hi(f){this.Fp.hi=f;this.oe("timezone")}set mR(f){this.Fp.mR=f}get E_(){return this.ec}set E_(f){"dd/MM/yyyy"!=f&&"MM/dd/yyyy"!=f||this.ec==f||(this.ec=f,this.yr())}Sza(){var f=new q.Zg;f.Aj(this.hi);return f.format(this.ec)}mc(f){return this.Ry.mc(f)}}l.j9=h})(e.pL||(e.pL={}))})(x||(x={}));
(function(e){(function(l){class h{}h.Dr=0;h.vJ=1;h.SJ=2;class f extends e.Ma{constructor(){super();this.MKa=u.zh.Cza();this.Dfa=u.zh.eAa();this.Tq=this.jn=null;this.yK=0;this.K=h.Dr;this.lZ=1;this.jZ=null;this.$("fm-ui-datepicker");this.$("fm-noselect");this.jn=(new q.Zg).Aj(this.hi).qI();var b=new e.Ea("div","fm-ui-dp-header");this.G.W(b);this.Caa=new e.Kg("fm-prev-btn");this.Caa.N(e.Md.mf,()=>this.Mfa(-1));b.W(this.Caa.G);this.WM=new e.Uc;this.WM.$("fm-ui-dp-month");this.WM.N("click",()=>this.HFa());
b.W(this.WM.G);this.AI=new e.Uc;this.AI.$("fm-ui-dp-year");this.AI.N("click",()=>this.GGa());b.W(this.AI.G);this.Baa=new e.Kg("fm-next-btn");this.Baa.N(e.Md.mf,()=>this.Mfa(1));b.W(this.Baa.G);this.C5=new e.Ea("div","fm-ui-dp-week");this.G.W(this.C5);this.Sy=new e.Ea("div","fm-ui-dp-dates");this.Sy.N("click",a=>this.wEa(a));this.G.W(this.Sy);b=new e.Ea("div","fm-ui-dp-footer");this.G.W(b);this.Ne=new e.Md("fm-ui-link-btn");this.Ne.$("fm-cancel-btn");this.Ne.$("fm-muted");this.Ne.Fd("fm-ui-btn");this.Ne.cb("Cancel");
this.Ne.N(e.Md.mf,()=>this.Is());b.W(this.Ne.G);this.oe()}kb(){this.zs("all")&&this.lxa();this.zs("date","view")&&this.fxa();this.zs("date","view")&&this.K==h.Dr&&this.Vwa();this.zs("view")&&this.K==h.vJ&&this.gxa();this.zs("view")&&this.K==h.SJ&&this.mxa();super.kb()}get gE(){return this.Tq}set gE(b){q.v(b)?null!=this.Tq&&(this.Tq=null,this.oe("date")):(b.Aj(this.hi),b.setHours(0,0,0,0),this.J1(this.Tq,b)||(this.Tq=b,this.jn=b.clone().qI(),this.oe("date")))}get view(){return this.K}set view(b){this.K!=
b&&(this.K=b,this.G.Wa("fm-ui-dp-view-dates",this.view==h.Dr),this.G.Wa("fm-ui-dp-view-months",this.view==h.vJ),this.G.Wa("fm-ui-dp-view-years",this.view==h.SJ),this.oe("view"))}reset(){this.jn=this.Tq?this.Tq.clone().qI():(new q.Zg).Aj(this.hi).qI();this.yK=0;this.view=h.Dr;this.oe("view")}fxa(){if(this.view==h.Dr||this.view==h.vJ)this.WM.cb(this.Dfa[this.jn.getMonth()]),this.AI.cb(this.jn.getFullYear().toString());if(this.view==h.SJ){var b=this.Lda();this.AI.cb(b+" \u2013 "+(b+19))}this.AI.G.Wa("fm-disabled",
this.view!=h.Dr);this.WM.G.Wa("fm-disabled",this.view!=h.Dr)}Lda(){for(var b=this.jn.getFullYear()-10;0!=b%10;)b++;return b+=20*this.yK}lxa(){this.C5.empty();for(var b=0;7>b;b++){var a=new e.Uc(this.MKa[(b+this.Hx)%7].substr(0,2));a.$("fm-ui-dp-day-title");a.$("fm-ui-dp-col-7");this.C5.W(a.G)}}mxa(){var b=this.Lda();this.Sy.empty();for(var a=0;20>a;a++){var c=new e.Uc(b.toString());c.$("fm-ui-dp-date-label");c.$("fm-ui-dp-col-5");this.Tq?this.Tq.getFullYear()==b&&c.$("fm-selected"):this.jn.getFullYear()==
b&&c.$("fm-highlighted");c.G.attr("data-year",b);this.Sy.W(c.G);b++}}gxa(){this.Sy.empty();this.Dfa.forEach((b,a)=>{b=new e.Uc(b);b.$("fm-ui-dp-date-label");b.$("fm-ui-dp-col-3");this.Tq?this.Tq.getMonth()==a&&b.$("fm-selected"):this.jn.getMonth()==a&&b.$("fm-highlighted");b.G.attr("data-month",a);this.Sy.W(b.G)})}Vwa(){var b=this.jn.getDay()-this.Hx;0>b&&(b+=7);b=this.jn.clone().qZ(-b);var a=(new q.Zg).Aj(this.hi);this.Sy.empty();for(var c=0;42>c;c++){var d=new e.Uc(b.getDate().toString());d.$("fm-ui-dp-date-label");
d.$("fm-ui-dp-col-7");b.getMonth()!=this.jn.getMonth()&&d.$("fm-muted");this.J1(this.Tq,b)&&d.$("fm-selected");this.J1(a,b)&&d.$("fm-highlighted");d.G.attr("data-date",b.getTime()/1E3);this.Sy.W(d.G);b.qZ(1)}}J1(b,a){return q.v(b)||q.v(a)?!1:b.getFullYear()==a.getFullYear()&&b.getMonth()==a.getMonth()&&b.getDate()==a.getDate()?!0:!1}HFa(){this.view=h.vJ}GGa(){this.view!=h.vJ&&(this.view=h.SJ)}wEa(b){b=e.Ea.Vb(b.target);var a=b.attr("data-date");q.v(a)||(this.gE=new q.Zg(1E3*parseInt(a)),this.$a(v.fa.$d));
a=b.attr("data-month");q.v(a)||(this.jn.setMonth(parseInt(a),1),this.view=h.Dr);b=b.attr("data-year");q.v(b)||(this.jn.setFullYear(parseInt(b),this.jn.getMonth(),1),this.view=h.Dr,this.yK=0)}Mfa(b){this.view==h.Dr?this.jn.Jsa(b):this.view==h.SJ&&(this.yK+=b);this.oe("view")}Is(){this.view=h.Dr}get Hx(){return this.lZ}set Hx(b){this.lZ!=b&&(this.lZ=b,this.oe("all"))}get hi(){return this.jZ}set hi(b){this.jZ!=b&&(this.jZ=b,this.oe("all"))}set mR(b){this.Ne.cb(b)}}l.mqa=f})(e.pL||(e.pL={}))})(x||(x=
{}));
(function(e){(function(l){class h{constructor(f,b=1E3){this.Ria=a=>this.xGa(a);this.Qia=a=>this.UU(a);this.target=f;this.delay=b}NCa(f){this.Jb=f;this.target.N("touchstart",this.Ria);this.target.N("touchend",this.Qia)}stop(){this.target.sb("touchstart",this.Ria);this.target.sb("touchend",this.Qia)}xGa(f){this.timer=q.Ce(()=>this.Uta(f),this.delay)}UU(){this.timer&&q.ts(this.timer)}Uta(f){e.Ea.Vb(f.target).Rc("fm-dragging")||this.Jb(f,f&&0<f.changedTouches.length?f.changedTouches[0]:null)}}l.ona=h})(e.cG||
(e.cG={}))})(x||(x={}));(function(e){(function(l){class h extends e.Ea{constructor(){super();this.Ie();this.zg("hidden","true");this.element.addEventListener("focus",f=>this.T2(f))}T2(f){f.relatedTarget&&f.relatedTarget.focus()}}l.B7=h})(e.cG||(e.cG={}))})(x||(x={}));
(function(e){class l{constructor(m,n=0,p=l.fna){this.nra=!0;this.iy=0;this.jB=n;this.buffer=m;this.position=0;this.wxa=p}get byteOffset(){return this.jB}set byteOffset(m){this.jB=m;this.kY=new DataView(this.Lq,this.jB);this.iy=this.Lq.byteLength}get byteLength(){return this.iy-this.jB}get buffer(){this.Zra();return this.Lq}set buffer(m){this.Lq=m;this.kY=0==this.jB?new DataView(this.Lq):new DataView(this.Lq,this.jB);this.iy=this.Lq.byteLength}seek(m){m=Math.max(0,Math.min(this.byteLength,m));this.position=
isNaN(m)||!isFinite(m)?0:m}PKa(m){this.RKa(h.encode(m))}QKa(m){this.WY(1);this.kY.setUint8(this.position,m);this.position+=1}RKa(m){this.WY(1*m.length);if(m instanceof Uint8Array&&0==this.byteOffset+this.position%m.BYTES_PER_ELEMENT)this.qDa(this.Lq,this.byteOffset+this.position,m.buffer,m.byteLength),this.sfa(m.length);else for(var n=0;n<m.length;n++)this.QKa(m[n])}jV(m){return f.decode(this.sfa(m))}Rga(){var m=this.kY.getUint32(this.position,this.wxa);this.position+=4;return m}sfa(m){this.WY(1*
m);var n=new Uint8Array(this.Lq,this.byteOffset+this.position,m);this.position+=1*m;return n}WY(m){if(this.nra){m=this.jB+this.position+m;var n=this.Lq.byteLength;if(m<=n)m>this.iy&&(this.iy=m);else{for(1>n&&(n=1);m>n;)n*=2;n=new ArrayBuffer(n);var p=new Uint8Array(this.Lq);(new Uint8Array(n,0,p.length)).set(p);this.buffer=n;this.iy=m}}}Zra(){if(this.iy!=this.Lq.byteLength){var m=new ArrayBuffer(this.iy),n=new Uint8Array(m),p=new Uint8Array(this.Lq,0,n.length);n.set(p);this.buffer=m}}qDa(m,n,p,t){m=
new Uint8Array(m,n,t);p=new Uint8Array(p,0,t);m.set(p)}}l.HI=!1;l.fna=!0;e.Er=l;class h{static encode(m){m=m?String(m):"";var n=[],p=new d(n);m=new g(m);null==h.c0&&(h.c0=new a);for(;m.get()!==h.bn;)h.c0.encode(p,m);do var t=h.c0.encode(p,m);while(t!==h.Fr);return new Uint8Array(n)}}h.Fr=-1;h.bn=-1;e.TextEncoder=h;class f{static decode(m){m||(m=new Uint8Array(0));m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);m=new c(m);var n=new k;null==f.G_&&(f.G_=new b);for(;m.get()!==f.Fr;){var p=f.G_.decode(m);
null!==p&&p!==f.bn&&n.MG(p)}do p=f.G_.decode(m),null!==p&&p!==f.bn&&n.MG(p);while(p!==f.bn);return n.$v}}f.Fr=-1;f.bn=-1;e.TextDecoder=f;class b{constructor(){this.bn=this.Fr=-1;this.yI=this.xI=this.Gx=this.kv=0}decode(m){var n=m.get();if(n===this.Fr)return this.bn;m.offset(1);if(0===this.Gx){if(this.inRange(n,0,127))return n;if(this.inRange(n,194,223))this.Gx=1,this.yI=128,this.kv=n-192;else if(this.inRange(n,224,239))this.Gx=2,this.yI=2048,this.kv=n-224;else if(this.inRange(n,240,244))this.Gx=3,
this.yI=65536,this.kv=n-240;else return this.bn;this.kv*=Math.pow(64,this.Gx);return null}if(!this.inRange(n,128,191))return this.yI=this.xI=this.Gx=this.kv=0,m.offset(-1),this.bn;this.xI+=1;this.kv+=(n-128)*Math.pow(64,this.Gx-this.xI);if(this.xI!==this.Gx)return null;m=this.kv;n=this.yI;this.yI=this.xI=this.Gx=this.kv=0;return this.inRange(m,n,1114111)&&!this.inRange(m,55296,57343)?m:this.bn}inRange(m,n,p){return n<=m&&m<=p}}e.XNa=b;class a{constructor(){this.bn=this.Fr=-1}inRange(m,n,p){return n<=
m&&m<=p}Oba(m,n){return Math.floor(m/n)}encode(m,n){var p=n.get();if(p===this.bn)return this.Fr;n.offset(1);if(this.inRange(p,55296,57343))return this.bn;if(this.inRange(p,0,127))return m.MG(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.MG(this.Oba(p,Math.pow(64,t))+r);0<t;)n=m.MG(128+this.Oba(p,Math.pow(64,t-1))%64),--t;return n}}e.YNa=a;class c{constructor(m){this.Fr=-1;this.bm=0;this.XB=m}get(){return this.bm>=
this.XB.length?this.Fr:Number(this.XB[this.bm])}offset(m){this.bm+=m;if(0>this.bm)throw Error("Seeking past start of the buffer");if(this.bm>this.XB.length)throw Error("Seeking past EOF");}match(m){if(m.length>this.bm+this.XB.length)return!1;var n;for(n=0;n<m.length;n+=1)if(Number(this.XB[this.bm+n])!==m[n])return!1;return!0}}e.bLa=c;class d{constructor(m){this.Fr=-1;this.bm=0;this.XB=m}MG(m){var n=this.Fr,p;for(p=0;p<arguments.length;++p)n=Number(arguments[p]),this.XB[this.bm++]=n;return n}}e.cLa=
d;class g{constructor(m){this.bm=0;this.bn=-1;this.$v=m;this.s_=this.tza(this.$v)}tza(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 w=m.charCodeAt(p+1);this.inRange(w,56320,57343)?(r&=1023,w&=1023,p+=1,n.push(65536+(r<<10)+w)):n.push(65533)}else n.push(r);p+=1}return n}inRange(m,n,p){return n<=m&&m<=p}offset(m){this.bm+=m;if(0>this.bm)throw Error("Seeking past start of the buffer");
if(this.bm>this.s_.length)throw Error("Seeking past EOF");}get(){return this.bm>=this.s_.length?this.bn:this.s_[this.bm]}}e.CLa=g;class k{constructor(){this.$v=""}MG(m){65535>=m?this.$v+=String.fromCharCode(m):(m-=65536,this.$v+=String.fromCharCode(55296+(m>>10&1023)),this.$v+=String.fromCharCode(56320+(m&1023)))}}e.DLa=k})(q||(q={}));var z;
(function(e){class l extends v.Ah{constructor(){super(...arguments);this.responseType="arraybuffer";this.connected=!1;this.sc=[]}load(h){this.url=h;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;this.xhr.open("GET",h,!0);this.xhr.responseType=this.responseType;this.xhr.onprogress=f=>this.eq(f);this.xhr.onerror=f=>this.Sb(f);this.xhr.onreadystatechange=f=>this.bv(f);this.PK();this.xhr.send()}qza(){if(void 0!==this.xhr){var h=this.xhr.getResponseHeader("Content-Type"),f=/charset=([^()<>@,;:"/[\]?.=\s]*)/i;
return f.test(h)?f.exec(h)[1]:"UTF-8"}}kr(){this.response=this.xhr.response;this.$a(v.fa.Oc)}eq(h){this.$a(v.fa.ue,this,h)}Sb(){q.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Fa(new v.fa(v.fa.Aa,this))}bv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.kr():this.$a(v.fa.Aa,this,this.xhr.statusText));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.$a(v.fa.vA))}PK(){if(!q.v(this.sc))for(var h=0;h<
this.sc.length;h++)try{this.xhr.setRequestHeader(this.sc[h].Ui,this.sc[h].value)}catch(f){console.error("Request headers error:",f),q.Za(f.message||f,q.model.B.j.Aa,q.xb.Aa)}}close(){null!=this.xhr&&this.xhr.abort()}dispose(){this.response=null;null!=this.xhr&&(this.xhr.abort(),this.xhr.onload=null,this.xhr.onprogress=null,this.xhr.onerror=null,this.xhr.onreadystatechange=null);this.sc=this.xhr=null}}e.l9=l})(z||(z={}));
(function(e){class l extends v.Ah{constructor(){super();this.dataType=h.aB;this.contentType=f.Xpa;this.rr=b.fX;this.M$=this.connected=!1;this.KY=0;this.AB=null;this.Kga=0;this.sc=[];this.data={};this.Pi=0}load(d){q.ia(d)||(this.url=d);this.Pi=0;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;try{this.xhr.open(this.rr,this.url,!0)}catch(g){this.Sb(g);return}this.xhr.withCredentials=this.M$;this.xhr.onerror=g=>this.Sb(g);this.xhr.onreadystatechange=g=>this.bv(g);this.xhr.onprogress=g=>this.eq(g);
this.rr==b.zv&&!1!==this.contentType&&this.xhr.setRequestHeader("Content-type",this.contentType);this.PK();this.xhr.send(this.data)}retry(){this.load(this.url)}set withCredentials(d){this.M$=d}PK(){if(!q.v(this.sc))for(var d=0;d<this.sc.length;d++)try{this.xhr.setRequestHeader(this.sc[d].Ui,this.sc[d].value)}catch(g){console.error("Request headers error:",g),q.Za(g.message||g,q.model.B.j.Aa,q.xb.Aa)}}Qh(d){if(!q.v(d)){this.sc=[];for(let g in d)d.hasOwnProperty(g)&&this.sc.push(new e.m9(g,d[g]))}}oI(){this.response=
this.xhr.response||this.xhr.responseText;this.Pi=this.AB?this.AB.loaded:this.response.length;null!=this.AB&&this.$a(v.fa.ue,this,this.AB);this.Fa(new v.fa(v.fa.Oc,this))}bv(d){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.oI():this.Sb(d));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Fa(new v.fa(v.fa.vA)))}eq(d){u.Qf()-this.KY>this.Kga?(this.response=this.xhr.response||this.xhr.responseText,this.Pi=d.loaded,this.$a(v.fa.ue,this,d),this.KY=u.Qf(),
this.AB=null):this.AB=d}Sb(){q.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Fa(new v.fa(v.fa.Aa,this))}close(){null!=this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())}dispose(){this.data=this.response=null;this.sc=[];null!=this.xhr&&(this.xhr.abort(),this.xhr.onprogress=null,this.xhr.onreadystatechange=null);this.KY=this.AB=this.xhr=null}}e.ek=l;class h{}h.aB="text";h.ba="xml";h.vv="html";h.JSON="json";e.zA=h;
class f{}f.Xpa="text/plain";f.IP="text/xml";f.K5="application/json";f.yja="application/x-www-form-urlencoded";e.yA=f;class b{}b.zv="POST";b.fX="GET";e.xt=b;class a{constructor(d,g){this.Ui=d;this.value=g}}e.m9=a;class c{constructor(){this.data={}}toString(){var d=[],g;for(g in this.data)this.data.hasOwnProperty(g)&&d.push(g+"="+this.data[g]);return d.join("&")}}e.vqa=c})(z||(z={}));
(function(e){class l extends v.Ah{constructor(){super();this.bS=!1;this.ija=()=>this.T2();this.Z3=!1}zaa(f=[]){this.input=document.createElement("input");this.input.setAttribute("type","file");this.input.style.display="none";document.body.appendChild(this.input);this.input.setAttribute("accept",f.join(","));this.input.addEventListener("change",()=>this.UDa());this.bS=!0;this.Z3=window.location!==window.parent.location;q.JL.addEventListener("focus",this.ija);this.input.click()}UDa(){this.bS=!1;q.v(this.input.files)||
q.v(this.input.files[0])||(this.file=this.input.files[0],this.$a(v.fa.np))}T2(){this.Z3?this.Z3=!1:this.bS&&q.Ce(()=>{(q.v(this.input.files)||q.v(this.input.files[0]))&&this.$a(v.fa.BW);this.bS=!1},500)}load(f=h.aB){null!=this.file&&(this.XD=new FileReader,this.XD.onload=()=>this.nFa(),this.XD.onprogress=b=>this.eq(b),this.XD.onerror=b=>this.Sb(b),f==h.ARRAY_BUFFER?this.XD.readAsArrayBuffer(this.file):this.XD.readAsText(this.file))}nFa(){this.response=this.XD.result;this.Fa(new v.fa(v.fa.Oc,this))}eq(f){this.$a(v.fa.ue,
this,f)}Sb(f){this.Fa(f)}dispose(){this.XD=this.file=this.response=null;q.JL.removeEventListener("focus",this.ija)}}e.x7=l;class h{}h.aB="TEXT";h.ARRAY_BUFFER="ARRAY_BUFFER";e.ppa=h;e.mha=function(f,b){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(f,b);else{var a=document.createElement("a"),c=window.URL.createObjectURL(f);a.href=c;a.download=b;a.target="_blank";document.body.appendChild(a);a.click();q.Ce(function(){document.body.removeChild(a);window.URL.revokeObjectURL(c)},
0)}}})(z||(z={}));
(function(e){class l{get item(){return this[0]}find(b){return void 0===this.item?this:this.item.find(b)}text(){return void 0===this.item?"":this.item.text()}attr(b,a){if(void 0!==this.item)return a?this.item.attr(b,a):this.item.attr(b)}children(){for(var b=new l,a=0;void 0!==this[a];)b[a]=h.Vb(this[a]),a++;return b}push(b){this[this.length]=b;return this}get length(){for(var b=0;void 0!==this[b];)b++;return b}}e.ZNa=l;class h extends Element{text(b){return b||!1===b?(this.textContent=b.toString(),
this):b=q.v(this.textContent)?"":this.textContent}append(b){if(q.v(b)||"string"==typeof b&&q.ia(b))return this;(b instanceof CDATASection||""!=b.textContent)&&this.appendChild(b);return this}nb(){return""==this.text()}find(b){b=this.querySelectorAll(b);for(var a=new l,c=0;c<b.length;c++)a[c]=h.Vb(b[c]);return a}attr(b,a){if(a||!1===a)return this.setAttribute(b,a),this;a=this.getAttribute(b);null==a&&(a=void 0);return a}hza(){for(var b=new l,a=this.firstElementChild;a;)a.nodeType===Node.ELEMENT_NODE&&
b.push(h.Vb(a)),a=a.nextElementSibling;return b}get length(){return this.childNodes.length}static Vb(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.nb;b.getChildren=h.prototype.hza;return b}}e.$X=h;class f{constructor(){throw Error("Singleton");}static create(b){if(null==b.firstChild){b=(new DOMParser).parseFromString(b,"text/xml");if(f.kCa(b))return null;b=b.firstElementChild?b.firstElementChild:b.firstChild}else b=b.firstChild;
return h.Vb(b)}static kCa(b){return b.getElementsByTagName("parsererror")&&b.getElementsByTagName("parsererror")[0]?0<b.getElementsByTagNameNS(b.getElementsByTagName("parsererror")[0].namespaceURI,"parsererror").length:!1}static Vh(b){return f.Qwa.createCDATASection(b)}static Ic(b,a=!1){null==f.zha&&(f.zha=new XMLSerializer);b=f.zha.serializeToString(b);1==a&&(b=f.format(b));return b.trim()}static format(b){b=b.replace(/>\s{0,}</g,"><").replace(/</g,"~::~<").replace(/\s*xmlns:/g,"~::~xmlns:").replace(/\s*xmlns=/g,
"~::~xmlns=").split("~::~");var a=b.length,c=!1,d=0,g="",k,m=["\n"];for(k=0;20>k;k++)m.push(m[k]+"    ");for(k=0;k<a;k++)if(-1<b[k].search(/<!/)){if(g+=m[d]+b[k],c=!0,-1<b[k].search(/--\x3e/)||-1<b[k].search(/\]>/)||-1<b[k].search(/!DOCTYPE/))c=!1}else-1<b[k].search(/--\x3e/)||-1<b[k].search(/\]>/)?(g+=b[k],c=!1):/^<\w/.exec(b[k-1])&&/^<\/\w/.exec(b[k])&&/^<[\w:\-\.,]+/.exec(b[k-1])[0]==/^<\/[\w:\-\.,]+/.exec(b[k])[0].replace("/","")?(g+=b[k],c||d--):g=-1<b[k].search(/<\w/)&&-1==b[k].search(/<\//)&&
-1==b[k].search(/\/>/)?c?g+=b[k]:g+=m[d++]+b[k]:-1<b[k].search(/<\w/)&&-1<b[k].search(/<\//)?c?g+=b[k]:g+=m[d]+b[k]:-1<b[k].search(/<\//)?c?g+=b[k]:g+=m[--d]+b[k]:-1<b[k].search(/\/>/)?c?g+=b[k]:g+=m[d]+b[k]:-1<b[k].search(/<\?/)?g+(m[d]+b[k]):-1<b[k].search(/xmlns:/)||-1<b[k].search(/xmlns=/)?g+(m[d]+b[k]):g+b[k];b="\n"==g[0]?g.slice(1):g;b=b.replace(/[\r\n\s]*<!\[CDATA\[/g,"<![CDATA[");return b=b.replace(/]]\x3e\s*/g,"]]\x3e")}}f.Qwa=(new DOMParser).parseFromString("<tmp/>","text/xml");e.ba=f})(z||
(z={}));
(function(e){class l{static print(h,f="",b=""){var a="printer-"+(new Date).getTime(),c=(new x.Ea("iframe")).attr("name",a);c.R("width","1px").R("height","1px").R("position","absolute").R("left","-9999px");q.K.Mb.Fb.G.append(c);a=window.frames[a];var d=a.document;d.open();d.write("<!DOCTYPE html>");d.write("<html>");d.write("<head>");d.write("<title>");d.write(b);d.write("</title>");d.write("<style>");d.write(f+"body{-webkit-print-color-adjust:exact;}");d.write("</style>");d.write("</head>");d.write("<body>");
d.write(h);d.write("</body>");d.write("</html>");d.close();a.focus();a.print();q.Ce(()=>{c.remove()},2E3)}}e.I8=l})(z||(z={}));
(function(e){class l{constructor(){this.table=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,
2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,
2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,
2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,
3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,
1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]}tva(f){var b=[],a=0,c=0,d;for(d in f)if(f.hasOwnProperty(d)){var g=f[d],k=this.d5(g);g=this.rKa(k);g={tKa:k.length,t_:this.t_(k),Vaa:g.length,uva:g,wva:"\x00\x00",Dc:new Date};k=this.Uya(d,g,a);a+=k.qca.length+g.Vaa;c+=k.Lba.length;
b.push(k)}f=l.Uja+"\x00\x00\x00\x00"+this.Em(b.length,2)+this.Em(b.length,2)+this.Em(c,4)+this.Em(a,4)+this.Em(0,2);a=new h(a+c+f.length);for(c=0;c<b.length;c++)a.append(b[c].qca),a.append(b[c].vva.uva);for(c=0;c<b.length;c++)a.append(b[c].Lba);a.append(f);return a.getData()}t_(f){var b=-1;for(var a=0,c=f.length;a<c;a++){var d=f[a];d=(b^d)&255;d=this.table[d];b=b>>>8^d}return b^-1}Em(f,b){for(var a="",c=0;c<b;c++)a+=String.fromCharCode(f&255),f>>>=8;return a}Uya(f,b,a){var c=b.Dc,d=c.getHours();d=
d<<6|c.getMinutes();d=d<<5|c.getSeconds()/2;var g=c.getFullYear()-1980;g=g<<4|c.getMonth()+1;g=g<<5|c.getDate();c="\n\x00\x00\x00"+b.wva;c+=this.Em(d,2);c+=this.Em(g,2);c+=this.Em(b.t_,4);c+=this.Em(b.Vaa,4);c+=this.Em(b.tKa,4);c+=this.Em(f.length,2);c+=this.Em(0,2);return{qca:l.gna+c+f,Lba:l.Vja+this.Em(20,2)+c+this.Em(0,2)+"\x00\x00\x00\x00"+this.Em(0,4)+this.Em(a,4)+f,vva:b}}d5(f){var b=this.Mva(f),a=f.length,c=new Uint8Array(b),d,g=0;for(d=0;g<b;d++){var k=f.charCodeAt(d);if(55296===(k&64512)&&
d+1<a){var m=f.charCodeAt(d+1);56320===(m&64512)&&(k=65536+(k-55296<<10)+(m-56320),d++)}128>k?c[g++]=k:(2048>k?c[g++]=192|k>>>6:(65536>k?c[g++]=224|k>>>12:(c[g++]=240|k>>>18,c[g++]=128|k>>>12&63),c[g++]=128|k>>>6&63),c[g++]=128|k&63)}return c}Mva(f){for(var b=0,a=f.length,c,d,g=0;g<a;g++)c=f.charCodeAt(g),55296===(c&64512)&&g+1<a&&(d=f.charCodeAt(g+1),56320===(d&64512)&&(c=65536+(c-55296<<10)+(d-56320),g++)),b+=128>c?1:2048>c?2:65536>c?3:4;return b}rKa(f){var b=[],a=f.length,c=0;for(new Uint8Array(0);c<
a;)b.push(String.fromCharCode.apply(null,f.subarray(c,Math.min(c+65536,a)))),c+=65536;return b.join("")}}l.gna="PK\u0003\u0004";l.Vja="PK\u0001\u0002";l.Uja="PK\u0005\u0006";e.yma=l;class h{constructor(f){this.data=new Uint8Array(f);this.index=0}append(f){0!==f.length&&(f=this.d5(f),this.data.set(f,this.index),this.index+=f.length)}getData(){return this.data}d5(f){for(var b=new Uint8Array(f.length),a=0;a<f.length;++a)b[a]=f.charCodeAt(a)&255;return b}}})(z||(z={}));
(function(e){function l(){!1!==e.K1&&(0!==f.length&&f.forEach(c=>{var d=c.values[0];"string"===typeof d&&"[!]"===d.substr(0,3)&&(d=JSON.parse(d.substr(3)));h(d);if(1<c.values.length)for(var g=1;g<c.values.length;g++)d=c.values[g],"string"===typeof d&&"[!]"===d.substr(0,3)&&(d=JSON.parse(d.substr(3))),h(d)}),f=[],a())}function h(c){return"string"===typeof c&&"[Stack trace]"===c.substr(0,13)}e.K1=!1;var f=[],b,a=()=>{!1!==e.K1&&(b&&e.ts(b),b=e.Ce(l,1E3))};a();e.debug=function(...c){if(!1!==e.K1){for(var d=
[],g=0;g<c.length;g++)if("object"===typeof c[g])try{d[g]="[!]"+JSON.stringify(c[g])}catch(k){d[g]="[Object]"}else d[g]=c[g];f.push({time:u.Qf(),values:d})}};e.bOa=l;e.kOa=function(){var c=Error();return c&&c.stack?"[Stack trace] "+c.stack.substr(79):""}})(q||(q={}));(function(e){e.Za=function(h,f="",b=l.vl,a=null,c=null,d=!1){e.K.hO.V().Ns(h,f,b,a,c,d)};class l{}l.vl="alert";l.Ym="confirmation";l.Aa="error";l.RO="info";e.xb=l})(q||(q={}));
(function(e){e.sKa=function(l=null){e.K.epa.V().Ns("Please enter group name:",l)}})(q||(q={}));(function(e){e.Ca=function(l=!0,h,f,b,a){e.K.dpa.V().show(l,h,f,b,a)}})(q||(q={}));
(function(e){(function(l){class h extends v.Ah{constructor(){super();if(null!=h.instance)throw Error("Singleton");this.ha=e.u.Ra.V();this.Ia=new l.jc.Rpa;this.zI=e.u.external.Eb.cj.q9.V();this.oaa=e.u.external.pc.H5.V()}static V(){null==this.instance&&(this.instance=new h);return this.instance}pD(f){this.Kb=f;h.id=f.id?f.id:"";l.Ua.gJa(f);l.B.NA.V().reset();e.K.Y.X.ke.uw=f.customizeCell;e.K.Bd.ov.tC=f.customizeChartElement;e.K.Y.rO.oL=f.customizeContextMenu;e.u.external.pc.oA.nL=f.customizeAPIRequest;
e.K.pd.gp.pS=f.sortFieldsList;const b=new e.vma(location.search);if(b.has("flexmonsterreport")){const a=this.Y9(f);a?this.oaa.XCa("string"===typeof a?{url:a.toLowerCase(),Qo:!1}:a,b.get("flexmonsterreport"),c=>{void 0!==c&&(f.report=c);this.Ia.pD(f)}):(e.Za(e.P.bind(l.B.j.f8,"The URL to the server hasn't been found."),l.B.j.Aa,e.xb.Aa),console.error("Can't load the shared file. The URL to the server hasn't been found."),this.Ia.pD(f))}else this.Ia.pD(f)}Y9(f){return f.shareReportConnection||f.report&&
(f.report.shareReportConnection||f.report.dataSource&&f.report.dataSource.url||f.report.url)||f.url||void 0}open(){this.Ia.open()}load(f,b){this.Ia.load(f,b)}save(f,b=null,a,c,d=!1){return this.Ia.save(f,b,a,c,d)}ux(f){this.Ia.ux(f)}ws(f={}){return this.Ia.ws(f)}LV(f){f=l.hb.Gv.zb(l.hb.Gv.fm(f));l.size.vd.clear();l.size.vd.KZ(f);this.refresh();this.bb()}rH(){return l.size.vd.rH().Qa(this.ha.ua.n5())}clear(f=!1){this.Ia&&this.Ia.clear(f)}Gaa(f){var b={};e.v(f.dataSourceType)||(b.dataSourceType=f.dataSourceType);
e.v(f.type)||(b.dataSourceType=f.type);e.v(f.proxyUrl)||(b.proxyUrl=f.proxyUrl);e.v(f.dataSourceInfo)||(b.dataSourceInfo=f.dataSourceInfo);e.v(f.catalog)||(b.catalog=f.catalog);e.v(f.cube)||(b.cube=f.cube);e.v(f.subquery)||(b.subquery=f.subquery);e.v(f.localeIdentifier)||(b.localeIdentifier=f.localeIdentifier);e.v(f.effectiveUserName)||(b.effectiveUserName=f.effectiveUserName);e.v(f.customData)||(b.customData=f.customData);e.v(f.filename)||(b.filename=f.filename);e.v(f.requestHeader)||(b.requestHeaders=
f.requestHeader);e.v(f.requestHeaders)||(b.requestHeaders=f.requestHeaders);e.v(f.fieldSeparator)||(b.fieldSeparator=f.fieldSeparator);e.v(f.thousandSeparator)||(b.thousandsSeparator=f.thousandSeparator);e.v(f.thousandsSeparator)||(b.thousandsSeparator=f.thousandsSeparator);e.v(f.recordsetDelimiter)||(b.recordsetDelimiter=f.recordsetDelimiter);e.v(f.browseForFile)||(b.browseForFile=f.browseForFile);e.v(f.data)||(b.data=f.data);e.v(f.binary)||(b.binary=f.binary);e.v(f.ignoreQuotedLineBreaks)||(b.ignoreQuotedLineBreaks=
f.ignoreQuotedLineBreaks);e.v(f.roles)||(b.roles=f.roles);e.v(f.hash)||(b.hash=f.hash);e.v(f.username)||(b.username=f.username);e.v(f.password)||(b.password=f.password);e.v(f.host)||(b.host=f.host);e.v(f.node)||(b.node=f.node);e.v(f.index)||(b.index=f.index);e.v(f.mapping)||(b.mapping=f.mapping);e.v(f.useStreamLoader)||(b.useStreamLoader=f.useStreamLoader);e.v(f.url)||(b.url=f.url);e.v(f.withCredentials)||(b.withCredentials=f.withCredentials);return b}wG(f){this.Ia.wG(this.Gaa(f))}Qd(f,b){b.partial?
this.Ia.yKa(f.data,b):this.Ia.Qd(this.Gaa(f),b)}getData(f,b,a){if(l.Ga.uc.Gp||l.Ga.uc.iq||l.Ga.uc.By)if(null!=a&&(e.ph.instance.on("update",function(){e.ph.instance.getData(f,a)}),this.N(l.ec.D7.w7,function(){e.ph.instance.getData(f,a)})),null!=f&&null!=f.slice){var c=f.slice instanceof l.hb.pp?f.slice:l.hb.pp.zb(f.slice);l.qD.SO.V().PIa(c,b)}else c=l.qD.SO.V().getData(),l.qD.SO.V().Nba(b,c);else e.Za(l.Ga.pa.J(l.Ga.pa.SZ),l.Ga.pa.J(l.Ga.pa.BD))}B0(){return l.va.Zm.jAa()}F0(f){return(f=l.va.Zm.get(f))?
f.Qa():null}aR(f){l.va.Zm.add(l.va.X.B6.zb(f))}lV(f){l.va.Zm.remove(f)}kV(){l.va.Zm.c4()}Vt(f){this.ha.Vt(f)}Qz(f){this.ha.Qz(f)}YD(){this.ha.YD()}kS(f=!0){this.ha.Qc(!0,f);e.u.sf.Fj.dispose();this.refresh();this.bb()}BR(){this.ha.Qc(!1,!1);e.u.sf.Fj.dispose();this.refresh();this.$a("reset_grid");this.bb()}qq(f){null!=f.chartActiveMeasure&&delete f.chartActiveMeasure;null!=f.chartActiveTupleIndex&&delete f.chartActiveTupleIndex;null!=f.zoom&&delete f.zoom;f.flatView&&this.Ia.ga.Gc&&this.Ia.ga.Da!==
e.u.i.qa.API&&delete f.flatView;if(!e.v(f.useOlapFormatting)&&this.Ia.ga.Gc&&l.C.F.vq!=f.useOlapFormatting){var b=this.ws({withDefaults:!0});b.options.FD(f);this.ux({report:b})}else{b=l.C.F.rc;const a=l.C.F.Ys,c=l.C.F.je;l.C.F.qq(l.C.Eq.zb(f),!1);a!=l.C.F.Ys&&this.Ia&&this.Ia.ga&&!this.Ia.ga.Gc&&this.I.load();!e.v(this.Ia)&&this.Ia.ga.Da==e.u.i.qa.API&&(b!=l.C.F.rc||l.C.F.rc&&c!=l.C.F.je)&&(b=this.ws({withDefaults:!0}),b.options.FD(f),e.v(this.Ia.ga.sc)||(b.ma.sc=this.Ia.ga.sc),this.clear(!0),this.ux({report:b}))}}print(f){l.Rs.jF.V().print(f)}tk(f,
b=null,a=null){l.Ac.Sn.tk(f,b,a)}eD(f,b){return this.zI.eD(f,b)}tH(f,b){this.zI.bda(f,b)}lM(f,b,a){this.zI.dza(f,b,a)}mM(f,b,a,c){this.zI.uza(f,b,a,c)}xR(f,b,a,c,d){this.zI.vR(f,b,a,c,d)}async CN(f){return new Promise((b,a)=>{var c=d=>{let g;e.v(d)?this.Ia.ga&&this.Ia.ga.Da==e.u.i.qa.API&&(g=this.Ia.ga.Iw()):g=new e.u.external.pc.oA(d);e.v(g)&&(d=this.Y9(this.Kb),e.v(d)||("string"===typeof d&&(d={url:d}),g=new e.u.external.pc.oA(d)));g?this.oaa.CN(g,this.ws()).then(k=>{b(k)}):(e.Za(e.P.bind(l.B.j.g8,
"Can't find the valid connection options"),l.B.j.Aa,e.xb.Aa),a("Can't find the valid connection options"))};null==this.ha||null==this.ha.O?this.Ia.N(l.jc.nd.ii,()=>c(f)):c(f)})}Hm(f){return null==this.ha||null==this.ha.O?[]:(f=this.ha.O.wc(!1).getItem(f))&&f.filter.wh?f.filter.Qa():null}em(f,b){f=e.u.ye.Pg(f);if(f=this.ha.O.wc(!1).getItem(f)){f.eu();f.filter=l.hb.JA.zb(b,f);if(f.filter.xi&&(f.filter.query.va==e.u.i.yc.ck||f.filter.query.va==e.u.i.yc.Hi))if(l.C.F.rc)this.ha.ua.ih=[{sort:f.filter.query.va==
e.u.i.yc.ck?e.u.i.za.Kc:e.u.i.za.ic,measure:this.ha.O.gd(f.filter.measure.A)}];else{b=this.ha.ua.ce(e.u.i.ja.La);var a=this.ha.ua.ce(e.u.i.ja.Xa);b=-1!=b.Oa.indexOf(f.A)?a:b;b.Um=[];b.$f=f.filter.query.va==e.u.i.yc.ck?e.u.i.za.Kc:e.u.i.za.ic;b.Yf=this.ha.ua.vi(f.filter.measure)}this.$a("reset_grid");this.ha.filter();this.bb()}}eu(f){f=e.u.ye.Pg(f);if(f=this.ha.O.wc(!1).getItem(f))f.eu(),this.ha.select(),this.bb()}nH(){if(null==this.ha||null==this.ha.ua)return[];const f=[],b=this.ha.ua.rows;for(let a=
0;a<b.length;a++)f.push(b.ea(a).bj());return f}cH(){if(null==this.ha||null==this.ha.ua)return[];const f=[],b=this.ha.ua.Ka;for(let a=0;a<b.length;a++)f.push(b.ea(a).bj());return f}$C(){if(null==this.ha||null==this.ha.ua)return[];const f=[],b=this.ha.ua.ob;for(let a=0;a<b.length;a++)f.push(b.ea(a).bj());return f}hd(){if(null==this.ha||null==this.ha.ua)return[];var f=[];if(l.C.F.rc){for(var b=this.ha.ua.flatten(),a,c=0;c<b.length;c++)a=b.ea(c),(a=this.ha.O.cf(a.A))&&f.push(a.bj());b=this.ha.ua.hd();
for(c=0;c<b.length;c++)b[c].Na&&f.push(b[c].bj())}else for(b=this.ha.ua.hd(),c=0;c<b.length;c++)f.push(b[c].bj());return f}us(){if(null==this.ha||null==this.ha.O)return[];for(var f=[],b=this.ha.O.Ba,a=0;a<b.length;a++)f.push(b.ea(a).bj());return f}oV(f){this.ha.O.wc(!1).getItem(f.name).label=f.caption}WG(){if(null==this.ha||null==this.ha.O)return[];const f=[],b=this.ha.O.wc(!1);for(let a=0;a<b.length;a++)f.push(b.ea(a).bj());return f}XV(f,b,a,c){c="string"==typeof c?new l.hb.ah(e.u.ye.Pg(c)):l.hb.ah.zb(c);
f=this.ha.ua.axes.getItem(f);if(null!=f){if(b==e.u.i.za.fd)f.gC();else if(c=this.ha.ua.vi(c))f.$f=b,f.Um=a,f.Yf=c;this.ha.sort();this.bb()}}nE(f,b){f=e.u.ye.Pg(f);if(f=this.ha.O.wc(!1).getItem(f)){var a=this.ha.ua.axes.getItem(e.u.i.ja.Xa),c=this.ha.ua.axes.getItem(e.u.i.ja.La);-1!=a.Oa.indexOf(f.A)?c.gC():-1!=c.Oa.indexOf(f.A)&&a.gC();f.Zf=b;l.C.F.rc&&(this.ha.ua.ih=[{sort:b,measure:this.ha.O.cf(f.A)}]);this.bb()}this.ha.select()}DV(f){this.ha.ua.ih=e.u.O.Lr.Bca(f,this.ha.ua.Yc);this.bb();this.ha.select()}bb(){l.Ua.V().Fa(new l.cd(l.Ua.GJ))}UV(f){e.K.pd.gp.pS=
f}YV(f,b){f=e.u.ye.Pg(f);if(f=this.ha.O.wc(!1).getItem(f))f.ex=b;this.Ia.kc&&this.ha.select()}Z0(f){if(null==this.ha||null==this.ha.O)return"";f=this.ha.O.wc(!1).getItem(f);return null!=f?f.Zf:""}N0(){return null==this.ha||null==this.ha.O?null:this.ha.ua.Cca()}Pj(f,b,a){if(null==this.ha||null==this.ha.O)return[];var c=[],d=this.ha.O.wc(!1).getItem(f);null==b&&(b="");d&&(this.Ia.ga.Gc?(f=""==b?d.Ad:d.Ib(b),null==a||null==f&&""!=b||(f&&f.children&&0<f.children.length&&!f.vf?(c=this.IS(d,b),a(c)):this.ha.Bk(d,
f,()=>{c=this.IS(d,b);a(c)}))):(c=this.A0(d.Ad),null!=a&&a(c)));return c}W0(f,b){return new Promise((a,c)=>{var d=(g,k)=>{var m=[],n=this.ha.O.wc(!1).getItem(g);e.v(k)&&(k="");if(n){if(this.Ia.ga.Gc)if(g=""===k?n.Ad:n.Ib(k),null!=g)if(g&&g.children&&0<g.children.length&&!g.vf)m=this.IS(n,k),a(m);else{this.ha.Bk(n,g,()=>{m=this.IS(n,k);a(m)});return}else c(`Member "${k}" is not found!`);else m=this.A0(n.Ad);a(m)}else c(`Hierarchy "${g}" is not found!`)};null==this.ha||null==this.ha.O?this.Ia.N(l.jc.nd.ii,
()=>d(f,b)):d(f,b)})}IS(f,b){var a=[];b=""==b?f.Ad.children:f.Ib(b).children;for(var c=0;c<b.length;c++){var d=f.ya(b[c]),g=d.Qa();g.isLeaf=d.level.wb==d.hierarchy.ta.length-1;g.parentMember=d.parent.Zb?d.hierarchy.Ad.qj:d.parent.qj;d.A!=f.wm&&a.push(g)}return a}A0(f){for(var b=[],a=f.hierarchy.Yj(f,!1),c=0;c<a.length;c++){var d=f.hierarchy.ya(a[c]),g=d.Qa();g.isLeaf=d.level.wb==d.hierarchy.ta.length-1;g.uniqueName=d.qj;g.parentMember=d.parent.Zb?d.hierarchy.Ad.qj:d.parent.qj;if(1!=d.children.length||
d.hierarchy.ya(d.children[0]).caption!=l.B.j.zl)g.children=this.A0(d);b.push(g)}return b}rN(f){this.Ia.ne(e.u.O.Lr.zb(f,e.u.Ra.V().O))}ne(f){this.Ia.ne(f)}Kw(){var f=l.C.F.Kw(!0,!0).Qa();null!=f.chartActiveMeasure&&delete f.chartActiveMeasure;null!=f.chartActiveTupleIndex&&delete f.chartActiveTupleIndex;return f}Yh(f,b){const a=this.ha&&this.ha.O?this.ha.O.gd(f):null;b=a&&void 0===b?a.xm:b;const c=a&&l.C.F.rc&&e.u.i.Pa.xc==a.type;return(a?a.Yh(f,b,c):l.ec.gj.RS()).Qa(!0)}jE(f,b,a){f.hasOwnProperty("name")||
(f.name=e.P.NL());try{l.ec.gj.jE(f)}catch(d){e.Za("Can't add format. Component's configuration requires more parameters.");return}try{let d=this.ha.O.gd(b);d&&void 0===a&&l.ec.gj.eI(f.name,d.A,"");d&&d.aa===a&&(d.format=f.name,l.ec.gj.eI(f.name,d.A,a),f.label&&(d.label=f.label));if(""!=f.name&&(""==b||null==b))for(var c=0;c<this.ha.O.Ba.length;c++)d=this.ha.O.Ba.ea(c),l.ec.gj.eI(f.name,d.A,""),d.format=f.name;const g=this.ha.ua.hd();for(c=0;c<g.length;c++)if(b===g[c].A&&a===g[c].aa||void 0===a&&b===
g[c].A)g[c].format=f.name,l.ec.gj.eI(f.name,g[c].A,g[c].aa),f.label&&(d.label=f.label)}catch(d){e.Za("List of measures is empty. There is nothing to format.");return}this.Fa(new v.fa(l.ec.D7.w7));this.bb()}refresh(){this.ha.filter()}b4(){var f=e.ph.instance.ws();e.ph.instance.clear();e.ph.instance.ux(f)}dispose(){e.u.sf.Fj.dispose();e.K.Y.X.ke.uw=null;e.K.Bd.ov.tC=null;e.K.Y.rO.oL=null;e.u.external.pc.oA.nL=null;e.u.Ra.dispose();this.Ia&&this.Ia.dispose();this.zI=this.I=this.Ia=this.ha=null;h.instance=
null}K0(f,b){e.u.external.Qe.rla.V().Q0(f,(a,c)=>{e.Fg(b)&&b(a,c)})}}h.id="flexmonster";l.Va=h})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(b,a=null){this.type=b;this.data=a}}l.cd=h;class f extends v.Ah{constructor(){super();if(null!=f.instance)throw Error("Singleton");}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}static Mia(b){return f.b2(b)?b:""}static b2(b){return-1<f.types.indexOf(b)}N(b,a,c=0){b=f.Mia(b);f.b2(b)&&super.N(b,a,c)}sb(b,a){b=f.Mia(b);f.b2(b)&&super.sb(b,a)}static gJa(b){for(var a=0;a<f.types.length;a++){var c=f.types[a];
f.fJa(c,b[c])}}static fJa(b,a){if(a){"string"==typeof a&&(a=f.qda(a));var c=a;b!=f.sW&&b!=f.Jx&&b!=f.$o&&b!=f.qW&&(c=function(...d){e.Ce(function(){a.apply(null,d)},1)});f.V().N(b,c)}}static qda(b){var a=window;b=b.split(".");for(var c=b.pop(),d=0;d<b.length;d++){if(null==a)return null;a=a[b[d]]}return a[c]}}f.hF="openingreportfile";f.Tx="loadingreportfile";f.Xn="reportfileloaded";f.HJ="reportfileerror";f.Kr="reportfilecancelled";f.ZE="loadingdata";f.QI="dataloaded";f.NI="dataerror";f.OI="datafilecancelled";
f.D6="datachanged";f.T7="loadingolapstructure";f.C8="olapstructureloaded";f.B8="olapstructureerror";f.OJ="unauthorizederror";f.XA="runningquery";f.Pk="querycomplete";f.vt="queryerror";f.$E="loadinglocalization";f.aF="localizationloaded";f.qJ="localizationerror";f.ii="reportcomplete";f.GJ="reportchange";f.W6="exportstart";f.oh="exportcomplete";f.F8="printstart";f.VA="printcomplete";f.L8="ready";f.k9="update";f.Jx="beforegriddraw";f.$o="aftergriddraw";f.qW="afterchartdraw";f.f6="chartclick";f.e6="cellclick";
f.jO="celldoubleclick";f.Qx="filteropen";f.aX="filterclose";f.VE="fieldslistopen";f.YI="fieldslistclose";f.v8="numberformatting";f.l6="conditionalformatting";f.sW="beforetoolbarcreated";f.M6="drillthroughopen";f.K6="drillthroughclose";f.types=[f.L8,f.hF,f.Tx,f.Xn,f.HJ,f.Kr,f.ZE,f.QI,f.NI,f.OI,f.D6,f.T7,f.C8,f.B8,f.OJ,f.XA,f.Pk,f.vt,f.$E,f.aF,f.qJ,f.ii,f.GJ,f.F8,f.VA,f.W6,f.oh,f.k9,f.Jx,f.$o,f.qW,f.f6,f.e6,f.jO,f.Qx,f.aX,f.VE,f.YI,f.v8,f.l6,f.sW,f.M6,f.K6];l.Ua=f})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){class h{static valid(f){if(e.v(f)||"number"===typeof f)return!0;f=f.toLowerCase();return-1===f.indexOf("<script")&&-1===f.indexOf("<svg")&&-1===f.indexOf("javascript:")&&-1===f.indexOf("<iframe")&&-1===f.indexOf("<object")&&-1===f.indexOf("expression(")&&-1===f.indexOf("onmouseover")&&-1===f.indexOf("onload=")&&-1===f.indexOf("onerror")}static validate(f,b=!1){return e.P.zo(f,b)}}l.Tb=h})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}getData(){if(l.Ga.uc.Gp||l.Ga.uc.iq||l.Ga.uc.By){var b=e.u.sf.Fj.D0(l.C.F.pR);return this.GR(b)}e.Za(l.Ga.pa.J(l.Ga.pa.SZ),l.Ga.pa.J(l.Ga.pa.BD))}PIa(b,a){if(l.Ga.uc.Gp||l.Ga.uc.iq||l.Ga.uc.By){var c=e.u.Ra.V();if(void 0!=c.ga&&!c.ga.Gc){b=e.u.O.Lr.zb(b,c.O,!0);var d=e.u.local.aP.clone(c.ra);d.slice=b;d.select();c=new e.u.sf.Dla;c.reset();
c.ra=d;c.slice=b;c.load();b=this.GR(c);this.Nba(a,b);c.reset()}}else e.Za(l.Ga.pa.J(l.Ga.pa.SZ),l.Ga.pa.J(l.Ga.pa.BD))}Nba(b,a){a.PBa()?b({},a.OG.Qa()):b(a.Qa())}GR(b){var a=new h.Joa;if(void 0==b.slice)return a;a.slice=b.slice.Qa();a.gx={caption:l.C.F.zm,vAmount:b.slice.hd().length,formats:[]};var c=0,d=0;if(b.ri&&!b.nb){var g="on"==l.C.F.Bf||"rows"==l.C.F.Bf?b.Dd-1:b.Dd;var k="on"==l.C.F.Bf||"columns"==l.C.F.Bf?b.Cd-1:b.Cd;a.data=[];var m=[];var n=[];var p={};for(var t=0;t<b.Ba.length;t++){var r=
b.Ba[t];a.gx["v"+t+"Name"]=r.caption;var w=l.Va.V().Yh(r.A,r.aa);a.gx.formats.push(w);r=b.Ha(m,n,r);p["v"+t]=r}a.data.push(p);for(w=0;w<k;w++)if(m=b.Fn(w),!e.v(m)&&0!=m.length){p={};c=Math.max(c,m.length);n=[];t=b.yb;for(r=0;r<m.length;r++){var y=r;var A=t.ea(y);var C=m[r];C=A.ya(C);a.gx["r"+y+"Name"]=A.caption;var B=this.HS(C);p["r"+y]=B;p[`r${y}_full`]=C.qj}for(t=0;t<b.Ba.length;t++)r=b.Ba[t],r=b.Ha(m,n,r),p["v"+t]=r;a.data.push(p)}for(var I=0;I<g;I++)if(n=b.Nj(I),!e.v(n)&&0!=n.length){p={};m=[];
d=Math.max(d,n.length);t=b.Db;for(r=0;r<n.length;r++)B=r,A=t.ea(B),C=n[r],C=A.ya(C),a.gx["c"+B+"Name"]=A.caption,A=this.HS(C),p["c"+B]=A,p[`c${B}_full`]=C.qj;for(t=0;t<b.Ba.length;t++)r=b.Ba[t],r=b.Ha(m,n,r),p["v"+t]=r;a.data.push(p)}var L=!1,Y=u.Qf();if(0<b.Db.length&&0<b.yb.length)for(w=0;w<k;w++){m=b.Fn(w);c=Math.max(c,m.length);for(I=0;I<g;I++){if(1E4<u.Qf()-Y){L=!0;break}n=b.Nj(I);d=Math.max(d,n.length);p={};t=b.yb;for(r=0;r<m.length;r++)y=r,A=t.ea(y),C=m[r],C=A.ya(C),B=this.HS(C),p["r"+y]=B,
p[`r${y}_full`]=C.qj;t=b.Db;for(r=0;r<n.length;r++)B=r,A=t.ea(B),C=n[r],C=A.ya(C),A=this.HS(C),p["c"+B]=A,p[`c${y}_full`]=C.qj;for(t=0;t<b.Ba.length;t++)r=b.Ba[t],r=b.Ha(m,n,r),p["v"+t]=r;a.data.push(p)}if(L)break}}L?(a.data=[],a.gx={},a.OG=new h.Cla,a.OG.Cd=k,a.OG.Dd=g,a.OG.errorMessage=l.B.j.e8+". "+l.B.j.d8):(a.gx.rAmount=c,a.gx.cAmount=d);return a}HS(b){return b.level.type==e.u.i.ib.jb||b.level.type==e.u.i.ib.dc?b.fc:b.level.type==e.u.i.ib.Jc?b.fc:b.level.type==e.u.i.ib.$m?isNaN(parseFloat(b.caption))?
b.caption:parseFloat(b.caption):b.caption}}h.SO=f})(l.qD||(l.qD={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.slice={};this.gx={};this.data=[];this.OG=null}Qa(){var a={};a.meta=this.gx;a.data=this.data;return a}PBa(){return null!=this.OG}}h.Joa=f;class b{constructor(){this.errorMessage=null}Qa(){var a={};a.errorMessage=this.errorMessage;a.dataH=this.Cd;a.dataW=this.Dd;return a}}h.Cla=b})(l.qD||(l.qD={}))})(e.model||(e.model={}))})(q||(q={}));var la=q||(q={}),ma=la.model||(la.model={}),na=ma.B||(ma.B={});class oa{}oa.JW="Flexmonster Pivot Table";
na.j=oa;
(function(e){(function(l){(function(h){class f{load(b,a,c){this.Nb=a;this.ab=c;this.xhr=new XMLHttpRequest;this.xhr.open("GET",b,!0);this.xhr.onerror=d=>this.Sb(d);this.xhr.onreadystatechange=d=>this.bv(d);this.xhr.send()}bv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.oI():this.ab())}oI(){this.xhr.response&&null==this.xhr.response.error?null!=this.Nb&&this.wj(this.xhr.response):this.ab&&this.ab()}Sb(){null!=this.ab&&this.ab()}wj(b){try{var a=JSON.parse(b);this.Nb(h.ZO.zb(a))}catch(c){console.error(c),this.ab()}}close(){null!=
this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())}}h.ina=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){if(null!=f.instance)throw Error("Singleton");this.mu=new h.ZO;this.mu.iE()}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){null!==this.Az&&(this.Az.close(),this.Az=null);h.j.Hr=null;h.j.Vx=null;h.j.dB=null;h.j.eB=null;h.j.K8=null;f.instance.mu=null;f.instance.jT=null;f.instance.KH=null;f.instance=null}updateLabels(){h.j.k7=this.J("fieldsList/flatHierarchyBox");h.j.HA=this.J("fieldsList/values");h.j.GA=
this.J("fieldsList/addCalculatedMeasure");h.j.Hla=this.J("fieldsList/expandAll");h.j.j7=this.J("fieldsList/collapseAll");h.j.l7=this.J("fieldsList/formulasGroupName");h.j.rv=this.J("fieldsList/allFields");h.j.WE=this.J("fieldsList/rows");h.j.UE=this.J("fieldsList/columns");h.j.Gr=this.J("fieldsList/filters");h.j.Nx=this.J("fieldsList/dropField");h.j.Ox=this.J("fieldsList/title");h.j.n7=this.J("fieldsList/subtitle");h.j.CO=this.J("fieldsList/search");h.j.m7=this.J("fieldsList/searchClose");h.j.YI=
this.J("fieldsList/close");h.j.VE=this.J("fieldsList/open");h.j.Gla=this.J("fieldsList/actions/select");h.j.YW=this.J("fieldsList/actions/deselect");h.j.Fla=this.J("fieldsList/actions/expand");h.j.Ela=this.J("fieldsList/actions/collapse");h.j.g7=this.J("fieldsList/actions/move_to_rows");h.j.e7=this.J("fieldsList/actions/move_to_columns");h.j.f7=this.J("fieldsList/actions/move_to_filters");h.j.h7=this.J("fieldsList/actions/move_to_values");h.j.i7=this.J("fieldsList/actions/move_up");h.j.d7=this.J("fieldsList/actions/move_down");
h.j.ZW=this.J("fieldsList/actions/edit_calculated_value");h.j.XW=this.J("fieldsList/actions/aggregation");h.j.aJ=this.J("filter/all");h.j.gJ=this.J("filter/multipleItems");h.j.tv=this.J("filter/selectAll");h.j.lma=this.J("filter/selectAllResults");h.j.ema=this.J("filter/top");h.j.Wla=this.J("filter/bottom");h.j.o7=this.J("filter/ascSort");h.j.p7=this.J("filter/ascSortTooltip");h.j.r7=this.J("filter/descSort");h.j.s7=this.J("filter/descSortTooltip");h.j.bX=this.J("filter/search");h.j.Jla=this.J("filter/amountSelected");
h.j.Ila=this.J("filter/amountFound");h.j.mma=this.J("filter/sort");h.j.IA=this.J("filter/filterBy");h.j.KO=this.J("filter/labelsFilter");h.j.t7=this.J("filter/numbersFilter");h.j.v7=this.J("filter/valuesFilter");h.j.q7=this.J("filter/datesFilter");h.j.u7=this.J("filter/timeFilter");h.j.cJ=this.J("filter/equal");h.j.eJ=this.J("filter/notEqual");h.j.Tla=this.J("filter/before");h.j.Ula=this.J("filter/beforeEqual");h.j.Rla=this.J("filter/after");h.j.Sla=this.J("filter/afterEqual");h.j.bJ=this.J("filter/between");
h.j.dJ=this.J("filter/notBetween");h.j.$la=this.J("filter/last");h.j.Yla=this.J("filter/current");h.j.ama=this.J("filter/next");h.j.Vla=this.J("filter/begin");h.j.bma=this.J("filter/notBegin");h.j.Zla=this.J("filter/end");h.j.dma=this.J("filter/notEnd");h.j.Xla=this.J("filter/contain");h.j.cma=this.J("filter/notContain");h.j.GO=this.J("filter/greater");h.j.HO=this.J("filter/greaterEqual");h.j.IO=this.J("filter/less");h.j.JO=this.J("filter/lessEqual");h.j.tma=this.J("filter/seconds");h.j.rma=this.J("filter/minutes");
h.j.pma=this.J("filter/hours");h.j.nma=this.J("filter/days");h.j.uma=this.J("filter/secondsFull");h.j.sma=this.J("filter/minutesFull");h.j.qma=this.J("filter/hoursFull");h.j.oma=this.J("filter/daysFull");h.j.gma=this.J("filter/day");h.j.jma=this.J("filter/week");h.j.hma=this.J("filter/month");h.j.ima=this.J("filter/quarter");h.j.kma=this.J("filter/year");h.j.Kla=this.J("filter/clearDateFilter");h.j.Lla=this.J("filter/clearLabelFilter");h.j.Mla=this.J("filter/clearNumberFilter");h.j.Nla=this.J("filter/clearTimeFilter");
h.j.Ola=this.J("filter/clearValueFilter");h.j.fma=this.J("filter/noAvailableValues");h.j.FO=this.J("filter/condition");h.j.Px=this.J("filter/conditionValue");h.j.Pla=this.J("filter/conditionMeasure");h.j.Qla=this.J("filter/conditionTimeInterval");h.j.gla=this.J("drillThrough/title");h.j.fla=this.J("drillThrough/row");h.j.ela=this.J("drillThrough/column");h.j.hla=this.J("drillThrough/value");h.j.AW=this.J("calculatedView/title");h.j.b6=this.J("calculatedView/measureBox");h.j.zW=this.J("calculatedView/measureName");
h.j.iO=this.J("calculatedView/formula");h.j.a6=this.J("calculatedView/formulaPrompt");h.j.Z5=this.J("calculatedView/calculateIndividualValues");h.j.d6=this.J("calculatedView/removeValue");h.j.Tja=this.J("calculatedView/removeValueTitle");h.j.Sja=this.J("calculatedView/removeValueMessage");h.j.Rja=this.J("calculatedView/allValues");h.j.Qja=this.J("calculatedView/actions/add_to_formula");h.j.eLa=this.J("calculatedView/func/add");h.j.vLa=this.J("calculatedView/func/subtract");h.j.pLa=this.J("calculatedView/func/multiply");
h.j.gLa=this.J("calculatedView/func/divide");h.j.sLa=this.J("calculatedView/func/power");h.j.hLa=this.J("calculatedView/func/equal");h.j.lLa=this.J("calculatedView/func/less");h.j.mLa=this.J("calculatedView/func/less_equal");h.j.iLa=this.J("calculatedView/func/greater");h.j.jLa=this.J("calculatedView/func/greater_equal");h.j.uLa=this.J("calculatedView/func/strict_equal");h.j.qLa=this.J("calculatedView/func/not_equal");h.j.rLa=this.J("calculatedView/func/or");h.j.fLa=this.J("calculatedView/func/and");
h.j.kLa=this.J("calculatedView/func/if");h.j.dLa=this.J("calculatedView/func/abs");h.j.tLa=this.J("calculatedView/func/round");h.j.oLa=this.J("calculatedView/func/min");h.j.nLa=this.J("calculatedView/func/max");h.j.hX=this.J("grid/total");h.j.Jma=this.J("grid/totals");h.j.gX=this.J("grid/grandTotal");h.j.zl=this.J("grid/blankMember");h.j.IW=this.J("grid/dateNullCaption");h.j.Qn=this.J("grid/dateInvalidCaption");h.j.Ala=this.J("grid/reportInformation");h.j.Yja=this.J("charts/showLegend");h.j.Wja=this.J("charts/hideLegend");
h.j.Xja=this.J("charts/selectMeasures");h.j.g6=this.J("charts/noDataTitle");h.j.Zja=this.J("charts/noMeasuresTitle");h.j.$ja=this.J("charts/bigDataSetWarning");h.j.LP=this.J("tooltips/fieldList");h.j.f9=this.J("tooltips/selectAggregation");h.j.d9=this.J("tooltips/editCalculatedMeasure");h.j.dqa=this.J("tooltips/row");h.j.cqa=this.J("tooltips/headerResize");h.j.e9=this.J("tooltips/headerFit");h.j.bB=this.J("tooltips/filterIcon");h.j.VX=this.J("tooltips/filtered");h.j.KP=this.J("tooltips/expandIcon");
h.j.JP=this.J("tooltips/collapseIcon");h.j.aqa=this.J("tooltips/drillDown");h.j.bqa=this.J("tooltips/drillUp");h.j.gqa=this.J("tooltips/sortIcon");h.j.fqa=this.J("tooltips/sortedDescIcon");h.j.eqa=this.J("tooltips/sortedAscIcon");h.j.hqa=this.J("tooltips/unsortedIcon");h.j.$pa=this.J("tooltips/close");h.j.Z8=this.J("aggregations/sum/caption");h.j.LJ=this.J("aggregations/sum/totalCaption");h.j.Jpa=this.J("aggregations/sum/grandTotalCaption");h.j.s6=this.J("aggregations/count/caption");h.j.kO=this.J("aggregations/count/totalCaption");
h.j.Cka=this.J("aggregations/count/grandTotalCaption");h.j.ala=this.J("aggregations/distinctCount/caption");h.j.uO=this.J("aggregations/distinctCount/totalCaption");h.j.bla=this.J("aggregations/distinctCount/grandTotalCaption");h.j.kpa=this.J("aggregations/runningTotalsOfColumn/caption");h.j.vP=this.J("aggregations/runningTotalsOfColumn/totalCaption");h.j.lpa=this.J("aggregations/runningTotalsOfColumn/grandTotalCaption");h.j.mpa=this.J("aggregations/runningTotalsOfRow/caption");h.j.xP=this.J("aggregations/runningTotalsOfRow/totalCaption");
h.j.npa=this.J("aggregations/runningTotalsOfRow/grandTotalCaption");h.j.Xka=this.J("aggregations/differenceOfColumn/caption");h.j.SI=this.J("aggregations/differenceOfColumn/totalCaption");h.j.Yka=this.J("aggregations/differenceOfColumn/grandTotalCaption");h.j.Zka=this.J("aggregations/differenceOfRow/caption");h.j.TI=this.J("aggregations/differenceOfRow/totalCaption");h.j.$ka=this.J("aggregations/differenceOfRow/grandTotalCaption");h.j.Noa=this.J("aggregations/percentDifferenceOfColumn/caption");h.j.AJ=
this.J("aggregations/percentDifferenceOfColumn/totalCaption");h.j.Ooa=this.J("aggregations/percentDifferenceOfColumn/grandTotalCaption");h.j.Poa=this.J("aggregations/percentDifferenceOfRow/caption");h.j.BJ=this.J("aggregations/percentDifferenceOfRow/totalCaption");h.j.Qoa=this.J("aggregations/percentDifferenceOfRow/grandTotalCaption");h.j.N5=this.J("aggregations/average/caption");h.j.fO=this.J("aggregations/average/totalCaption");h.j.Eja=this.J("aggregations/average/grandTotalCaption");h.j.Lna=this.J("aggregations/median/caption");
h.j.rX=this.J("aggregations/median/totalCaption");h.j.Mna=this.J("aggregations/median/grandTotalCaption");h.j.Epa=this.J("aggregations/stdevp/caption");h.j.CP=this.J("aggregations/stdevp/totalCaption");h.j.Fpa=this.J("aggregations/stdevp/grandTotalCaption");h.j.Gpa=this.J("aggregations/stdevs/caption");h.j.DP=this.J("aggregations/stdevs/totalCaption");h.j.Hpa=this.J("aggregations/stdevs/grandTotalCaption");h.j.Yoa=this.J("aggregations/product/caption");h.j.uP=this.J("aggregations/product/totalCaption");
h.j.Zoa=this.J("aggregations/product/grandTotalCaption");h.j.moa=this.J("aggregations/min/caption");h.j.nP=this.J("aggregations/min/totalCaption");h.j.noa=this.J("aggregations/min/grandTotalCaption");h.j.qna=this.J("aggregations/max/caption");h.j.eP=this.J("aggregations/max/totalCaption");h.j.rna=this.J("aggregations/max/grandTotalCaption");h.j.Koa=this.J("aggregations/percent/caption");h.j.FJ=this.J("aggregations/percent/totalCaption");h.j.Roa=this.J("aggregations/percent/grandTotalCaption");h.j.Loa=
this.J("aggregations/percentOfColumn/caption");h.j.zJ=this.J("aggregations/percentOfColumn/totalCaption");h.j.Moa=this.J("aggregations/percentOfColumn/grandTotalCaption");h.j.Woa=this.J("aggregations/percentOfRow/caption");h.j.EJ=this.J("aggregations/percentOfRow/totalCaption");h.j.Xoa=this.J("aggregations/percentOfRow/grandTotalCaption");h.j.Soa=this.J("aggregations/percentOfParentColumnTotal/caption");h.j.CJ=this.J("aggregations/percentOfParentColumnTotal/totalCaption");h.j.Toa=this.J("aggregations/percentOfParentColumnTotal/grandTotalCaption");
h.j.Uoa=this.J("aggregations/percentOfParentRowTotal/caption");h.j.DJ=this.J("aggregations/percentOfParentRowTotal/totalCaption");h.j.Voa=this.J("aggregations/percentOfParentRowTotal/grandTotalCaption");h.j.Pma=this.J("aggregations/index/caption");h.j.mJ=this.J("aggregations/index/totalCaption");h.j.Qma=this.J("aggregations/index/grandTotalCaption");h.j.xoa=this.J("aggregations/none/caption");h.j.Aa=this.J("messages/error");h.j.o9=this.J("messages/warning");h.j.XO=this.J("messages/limitation");h.j.Kja=
this.J("messages/browse");h.j.Ym=this.J("messages/confirmation");h.j.Vna=this.J("messages/api/incorrectUrl");h.j.Una=this.J("messages/api/errorZeroStatus");h.j.Pna=this.J("messages/api/error404Status");h.j.Ona=this.J("messages/api/error400Status");h.j.Qna=this.J("messages/api/error500Status");h.j.c8=this.J("messages/api/selectRequestError");h.j.Rna=this.J("messages/api/selectDrillThroughError");h.j.cNa=this.J("messages/api/clientOutdated");h.j.Tna=this.J("messages/api/serverOutdated");h.j.Sna=this.J("messages/api/fieldsRequestError");
h.j.b8=this.J("messages/api/membersRequestError");h.j.sX=this.J("messages/api/noGridChartsMode");h.j.dF=this.J("messages/loading");h.j.bg=this.J("messages/loadingData");h.j.xX=this.J("messages/loadingMapping");h.j.qt=this.J("messages/waiting");h.j.yX=this.J("messages/progress");h.j.eF=this.J("messages/progressKnown");h.j.jm=this.J("messages/progressUnknown");h.j.goa=this.J("messages/sortingMembers");h.j.gP=this.J("messages/analyzing");h.j.hP=this.J("messages/analyzingProgress");h.j.a8=this.J("messages/analyzingRecords");
h.j.Nna=this.J("messages/analyzingRecordsWithAmount");h.j.n8=this.J("messages/saving");h.j.tJ=this.J("messages/loadingDimensions");h.j.vX=this.J("messages/loadingHierarchies");h.j.kP=this.J("messages/loadingMeasures");h.j.k8=this.J("messages/loadingKPIs");h.j.Un=this.J("messages/loadingMembers");h.j.wX=this.J("messages/loadingLevels");h.j.l8=this.J("messages/loadingProperties");h.j.Ux=this.J("messages/exportProgress");h.j.pt=this.J("messages/exportError");h.j.fF=this.J("messages/pleaseWait");h.j.m8=
this.J("messages/pagesWereGenerated");h.j.o8=this.J("messages/uploading");h.j.iP=this.J("messages/cantSaveFile");h.j.tX=this.J("messages/cantSaveFileNoDetails");h.j.eoa=this.J("messages/saveReportToFile");h.j.doa=this.J("messages/saveReportForSharing");h.j.g8=this.J("messages/cantSaveReportForSharing");h.j.f8=this.J("messages/cantLoadSharedReport");h.j.cF=this.J("messages/invalidDataSource");h.j.Xna=this.J("messages/dataStreamError");h.j.uJ=this.J("messages/unableToOpenFile");h.j.jP=this.J("messages/errorTextMessage");
h.j.boa=this.J("messages/inappropriateFileFormat");h.j.sJ=this.J("messages/invalidJSONdata");h.j.joa=this.J("messages/wrongFormulaEmpty");h.j.p8=this.J("messages/wrongFormulaFormat");h.j.loa=this.J("messages/wrongUniqueName");h.j.ioa=this.J("messages/wrongFormulaAggregation");h.j.koa=this.J("messages/wrongFormulaRecursive");h.j.Zna=this.J("messages/excelCsvChartsExportError");h.j.xv=this.J("messages/noDataAvailable");h.j.uX=this.J("messages/dataWasUpdated");h.j.Wna=this.J("messages/cantConnectToAccelerator");
h.j.coa=this.J("messages/ocsvIncompatible");h.j.lP=this.J("messages/unknownError");h.j.i8=this.J("messages/invalidReportFormat");h.j.j8=this.J("messages/invalidReportFormat2");h.j.h8=this.J("messages/csvHeaderParsingError");h.j.hoa=this.J("messages/tooManyColumnsInClassicMode");h.j.d8=this.J("messages/cantExpand");h.j.e8=this.J("messages/cantExpandTitle");h.j.foa=this.J("messages/selectFile");h.j.aoa=this.J("messages/flatTableIsNotSupported");h.j.$na=this.J("messages/exportFontLoadingError");h.j.Yna=
this.J("messages/elastic/errorConnection");h.j.Sx=this.J("kpis/kpis");h.j.O7=this.J("kpis/value");h.j.K7=this.J("kpis/goal");h.j.N7=this.J("kpis/trend");h.j.M7=this.J("kpis/status");h.j.uW=this.J("buttons/ok");h.j.T5=this.J("buttons/copy");h.j.Kx=this.J("buttons/apply");h.j.wl=this.J("buttons/cancel");h.j.V5=this.J("buttons/save");h.j.Lja=this.J("buttons/select");h.j.IE=this.J("buttons/yes");h.j.U5=this.J("buttons/no");h.j.n6=this.J("contextMenu/clearSorting");h.j.eka=this.J("contextMenu/collapse");
h.j.o6=this.J("contextMenu/drillThrough");h.j.jka=this.J("contextMenu/expand");h.j.hka=this.J("contextMenu/drillUp");h.j.gka=this.J("contextMenu/drillDown");h.j.q6=this.J("contextMenu/openFilter");h.j.kka=this.J("contextMenu/filterBy");h.j.r6=this.J("contextMenu/removeField");h.j.tka=this.J("contextMenu/removeMeasure");h.j.wka=this.J("contextMenu/sortColumnAsc");h.j.xka=this.J("contextMenu/sortColumnDesc");h.j.yka=this.J("contextMenu/sortRowAsc");h.j.zka=this.J("contextMenu/sortRowDesc");h.j.m6=this.J("contextMenu/aggregation");
h.j.ska=this.J("contextMenu/properties");h.j.ika=this.J("contextMenu/editFormula");h.j.qka=this.J("contextMenu/moveToRows");h.j.oka=this.J("contextMenu/moveToColumns");h.j.pka=this.J("contextMenu/moveToReportFilters");h.j.rka=this.J("contextMenu/numberFormatting");h.j.fka=this.J("contextMenu/conditionalFormatting");h.j.uka=this.J("contextMenu/showProperty");h.j.mka=this.J("contextMenu/hideProperty");h.j.lka=this.J("contextMenu/groupMembers");h.j.Aka=this.J("contextMenu/ungroupMembers");h.j.vka=this.J("contextMenu/showSubtotals");
h.j.nka=this.J("contextMenu/hideSubtotals");h.j.Dl=this.J("date/year");h.j.ut=this.J("date/quarter");h.j.$g=this.J("date/month");h.j.$m=this.J("date/day");h.j.K8=[this.J("quarters/q1"),this.J("quarters/q2"),this.J("quarters/q3"),this.J("quarters/q4")];h.j.Hr=[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.Vx=[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.dB=[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.eB=[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")];u.zh.bJa(h.j.dB,h.j.eB);u.zh.nJa(h.j.Hr,h.j.Vx)}J(b){if(!e.v(this.KH)){var a=this.KH.J(b);if(!e.v(a))return a}return e.v(this.jT)||(a=this.jT.J(b),e.v(a))?this.mu.J(b):a}reset(){this.KH=null;this.updateLabels()}load(b,a,c=!1){"string"!==
typeof b||e.ia(b)?(b instanceof Object?this.Wfa(h.ZO.zb(b),c):this.reset(),null!=a&&a(!0)):(null!==f.Az&&(f.Az.close(),f.Az=null),f.Az=new h.ina,f.Az.load(u.ey.sH(b,!0),d=>{this.Wfa(d,c);null!=a&&a(!0)},()=>{null!=a&&a(!1)}))}Wfa(b,a=!1){a?this.jT=b:this.KH=b;this.updateLabels()}Zca(){var b=new h.ZO;b.iE();b.merge(this.jT);this.KH&&b.merge(this.KH);return b.Qa().toolbar}}f.Az=null;h.NA=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.labels={}}J(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}cb(b,a){var c=this.labels;b=b.split("/");for(var d=0;d<b.length-1;d++)c=c[b[d]];c[b[b.length-1]]=a}iE(){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"}merge(b){e.v(b)||(this.Ifa(b.labels,this.labels),this.validate())}Qa(){return this.labels}static zb(b){var a=new f;a.labels=b;return a}Ifa(b,a){if(!e.v(b)&&!e.v(a)&&b instanceof Object)for(var c in b){var d=b[c];e.v(d)||"function"!==typeof d&&("string"===typeof d?a[c]=d:d instanceof Object&&this.Ifa(d,a[c]))}}validate(){e.v(this.labels)||(e.v(this.labels.toolbar.charts_bar_stack)||
(this.labels.toolbar.charts_stacked_column=this.labels.toolbar.charts_bar_stack,delete this.labels.toolbar.charts_bar_stack),e.v(this.labels.toolbar.charts_bar_line)||(this.labels.toolbar.charts_column_line=this.labels.toolbar.charts_bar_line,delete this.labels.toolbar.charts_bar_line),e.v(this.labels.toolbar.charts_bar)||(this.labels.toolbar.charts_column=this.labels.toolbar.charts_bar,delete this.labels.toolbar.charts_bar),e.v(this.labels.toolbar.add_condition)||(e.v(this.labels.toolbar.tooltips)&&
(this.labels.toolbar.tooltips={}),this.labels.toolbar.tooltips.add_condition=this.labels.toolbar.add_condition,delete this.labels.toolbar.add_condition))}}h.ZO=f})(l.B||(l.B={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.Xn="load";f.IJ="loading_report";f.Av="fail";f.Kr="cancel";h.Eh=f;class b extends v.fa{constructor(c){super(f.Xn);this.hb=c}}h.P8=b;class a extends v.fa{constructor(c,d=""){super(f.Av);this.errorMessage="";this.message=c;this.errorMessage=d}}h.zP=a})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.JSON="json";this.ba="xml";this.Dwa="report.";this.vV=null}open(){this.hr=new h.nna;this.hr.N(h.Eh.IJ,()=>this.y3());this.hr.N(h.Eh.Xn,b=>this.MD(b));this.hr.N(h.Eh.Av,b=>this.bN(b));this.hr.N(h.Eh.Kr,()=>this.aN());this.hr.load()}load(b,a){e.Ca(!0,l.B.j.dF);this.jv=new h.wqa;this.jv.N(h.Eh.Xn,c=>this.MD(c));this.jv.N(h.Eh.Av,c=>this.bN(c));this.jv.load(u.ey.Tsa(b),a)}cancel(){this.hr&&(this.hr.Yd(h.Eh.Xn),this.hr.Yd(h.Eh.Av),
this.hr=null);this.jv&&(this.jv.Yd(h.Eh.Xn),this.jv.Yd(h.Eh.Av),this.jv=null);this.Yd(h.Eh.Xn);this.Yd(h.Eh.Av);this.Yd(h.Eh.IJ);this.Yd(h.Eh.Kr)}MD(b){this.Fa(new h.P8(b.hb))}bN(b){e.Za(b.message+b.errorMessage,l.B.j.Aa,e.xb.Aa);this.$a(h.Eh.Av)}y3(){this.$a(h.Eh.IJ)}aN(){this.$a(h.Eh.Kr)}save(b,a=null,c,d,g=!1,k){this.vV=c;c=!1;let m="string"==typeof b?b:null,n=d,p=this.JSON;d=g;let t=null;b instanceof Object&&(b.hasOwnProperty("filename")&&(m=b.filename),b.hasOwnProperty("destination")&&(a=b.destination),
b.hasOwnProperty("url")&&(n=b.url),b.hasOwnProperty("reportType")&&(p=b.reportType),b.hasOwnProperty("embedData")&&(d=b.embedData),b.hasOwnProperty("requestHeaders")&&(t=b.requestHeaders));if(null==m||""==m)m=this.Dwa,m=p==this.ba?m+this.ba:m+this.JSON;k.ma.Da!=e.u.i.qa.Sh&&k.ma.Da!=e.u.i.qa.Dq||!(k.ma instanceof e.u.local.$O&&k.ma.Td||k.ma instanceof e.u.local.csv.gF&&k.ma.sk||d)||k.options.U("gridType")==e.K.Y.te.Bh||(b=new e.u.local.json.TO,k.ma=b,c=!0);a=null==a?h.fp.DO:a.toLowerCase();switch(a){case h.fp.MX:c?
(new e.u.local.json.mX).getData(r=>{k.ma.data=r;this.xV(n,m,k,p,t)}):this.xV(n,m,k,p,t);break;case h.fp.UA:c?(new e.u.local.json.mX).getData(r=>{k.ma.data=r;this.yC(k.Qa())}):this.yC(k.Qa());break;default:c?(new e.u.local.json.mX).getData(r=>{k.ma.data=r;this.sN(m,k,p)}):this.sN(m,k,p)}}yC(b=null,a=null){null!==this.vV&&this.vV(b,a)}Gba(b,a,c=!1){switch(b){case this.JSON:b=JSON.stringify(a.Qa(),null,4);break;case this.ba:b=z.ba.Ic(a.Yo(),!0);break;default:b=JSON.stringify(a.Qa(),null,4)}c&&(b=encodeURIComponent(b));
return b}sN(b,a,c){const d=[this.Gba(c,a)];try{const g=this;e.Za(l.B.j.eoa,l.B.j.Ym,e.xb.Ym,[l.B.j.V5,l.B.j.wl],[function(){z.mha(new Blob(d,{type:"text/js;charset=utf-8"}),b);g.yC({report:a.Qa()})},function(){g.yC(null,{message:l.B.j.tX})}])}catch(g){e.Za(l.B.j.tX,l.B.j.Aa,e.xb.Aa),this.yC(null,{message:l.B.j.tX})}}xV(b,a,c,d,g){e.ia(b)&&e.Za("Report cannot be saved. Save report url is empty.",l.B.j.o9,e.xb.Aa);const k=new z.vqa;k.data.name=a;k.data.report=this.Gba(d,c,!0);k.data.type=d;a=new z.ek;
a.data=k.toString();a.contentType=z.yA.yja;a.rr=z.xt.zv;a.N(v.fa.Oc,m=>this.fGa(m,c.Qa()));a.N(v.fa.Aa,m=>this.Sb(m));a.Qh(g);this.l5=a;a.load(b);e.Ca(!0,l.B.j.o8)}static Gga(b,a=null){const c={};null!=b&&null!=b.target&&null!=b.target.response&&""!=b.target.response&&null!=b.target.xhr&&(c.response=b.target.response,c.status=b.target.xhr.status);b.type==v.fa.Aa&&(c.message=l.B.j.iP);b.type!=v.fa.Aa&&null!=a&&(c.report=a);return c}fGa(b,a){e.Ca(!1);this.yC(f.Gga(b,a))}Sb(b){e.Ca(!1);b=f.Gga(b);let a=
b.hasOwnProperty("response")?l.Tb.validate(b.response):"";a=700<a.length?a.substr(0,700):a;e.Za(e.P.bind(b.message,a),l.B.j.Aa,e.xb.Aa);this.yC(null,b)}dispose(){this.vV=null;this.hr&&this.hr.dispose();this.jv&&this.jv.dispose();this.l5&&this.l5.dispose();this.l5=this.jv=this.hr=null}}h.qpa=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.lA=!1;this.ma=new e.u.O.FA;this.slice=new h.pp;this.options=new l.C.Eq;this.De=[];this.Xc=[];this.Dm=[];this.Ax=new h.Gv;this.labels={};this.Ge=null;this.mL=this.version=""}static zb(a){if(null==a)return null;a=f.fm(a);var c=new f;c.ma=e.u.O.kt.zb(a.connectionInfo?a.connectionInfo:a);c.options=l.C.Eq.zb(a.options?a.options:a);c.slice=h.pp.zb(a.slice?a.slice:a,c.ma,c.options.U("gridType")==e.K.Y.te.Bh);null!=a.formats&&a.formats.length&&
(c.De=a.formats);null!=a.conditions&&a.conditions.length&&(c.Xc=a.conditions);null!=a.customFields&&(c.Dm=a.customFields);c.Ax=h.Gv.zb(a.tableSizes);null!=a.localization&&(c.Ge=a.localization);null!=c.Ge&&null!=c.Ge.toolbar&&(null!=c.Ge.toolbar.charts_bar_stack&&(c.Ge.toolbar.charts_stacked_column=c.Ge.toolbar.charts_bar_stack,delete c.Ge.toolbar.charts_bar_stack),null!=c.Ge.toolbar.charts_bar_line&&(c.Ge.toolbar.charts_column_line=c.Ge.toolbar.charts_bar_line,delete c.Ge.toolbar.charts_bar_line),
null!=c.Ge.toolbar.charts_bar&&(c.Ge.toolbar.charts_column=c.Ge.toolbar.charts_bar,delete c.Ge.toolbar.charts_bar));null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<a.creationDate.length&&(c.mL=a.creationDate);return c}static wk(a){var c=new f;if(null==a)return c;c.ma=e.u.O.kt.wk(a);c.slice=h.pp.wk(a);c.options=l.C.Eq.wk(a);c.De=f.jya(a.find("format"));c.Xc=f.yva(a.find("conditions condition"));c.Ax=h.Gv.wk(a);c.Dm=f.owa(a.find("customFields").children());c.labels=
f.DCa(a.find("labels"));c.Ge=f.$Ca(a.find("params"));return c}static owa(a){for(var c=[],d=0;d<a.length;d++){var g={};g.name=a[d].attr("name");g.value=a[d].attr("value");c.push(g)}return c}static jya(a){for(var c=[],d=0;d<a.length;d++){var g=f.gya(a[d]);c.push(g)}return c}static gya(a){var c={};void 0!==a.attr("name")&&(c.name=a.attr("name"));0!=a.find("param[name=thousandsSeparator]").length&&(c.thousandsSeparator=a.find("param[name=thousandsSeparator]").text());0!=a.find("param[name=decimalSeparator]").length&&
(c.decimalSeparator=a.find("param[name=decimalSeparator]").text());0!=a.find("param[name=decimalPlaces]").length&&(c.decimalPlaces=parseInt(a.find("param[name=decimalPlaces]").text()));0!=a.find("param[name=maxDecimalPlaces]").length&&(c.maxDecimalPlaces=parseInt(a.find("param[name=maxDecimalPlaces]").text()));0!=a.find("param[name=maxSymbols]").length&&(c.maxSymbols=parseInt(a.find("param[name=maxSymbols]").text()));0!=a.find("param[name=currencySymbol]").length&&(c.currencySymbol=a.find("param[name=currencySymbol]").text());
0!=a.find("param[name=currencySymbolAlign]").length&&(c.currencySymbolAlign=a.find("param[name=currencySymbolAlign]").text());0!=a.find("param[name=nullValue]").length&&(c.nullValue=a.find("param[name=nullValue]").text());0!=a.find("param[name=infinityValue]").length&&(c.infinityValue=a.find("param[name=infinityValue]").text());0!=a.find("param[name=divideByZeroValue]").length&&(c.divideByZeroValue=a.find("param[name=divideByZeroValue]").text());0!=a.find("param[name=textAlign]").length&&(c.textAlign=
a.find("param[name=textAlign]").text());0!=a.find("param[name=isPercent]").length&&(c.isPercent=e.P.Zc(a.find("param[name=isPercent]").text()));return c}static DCa(a){var c={};if(0<a.length){for(var d=a.find("hierarchies").children(),g=0;g<d.length;g++){var k=d[g].attr("name");c[k]=d[g].text()}a=a.find("measures").children();for(g=0;g<a.length;g++)k=a[g].attr("name"),c[k]=a[g].text()}return c}static yva(a){for(var c=[],d=0;d<a.length;d++){var g=f.xva(a[d]);c.push(g)}return c}static xva(a){var c={};
c.id=e.P.NL();for(var d=0;d<a.childNodes.length;d++)if(a.childNodes[d]instanceof CDATASection){c.formula=a.childNodes[d].textContent.trim();break}void 0!==a.attr("hierarchy")&&(c.hierarchy=a.attr("hierarchy"));void 0!==a.attr("measure")&&(c.measure=a.attr("measure"));void 0!==a.attr("member")&&(c.member=a.attr("member"));void 0!==a.attr("row")&&(c.row=a.attr("row"));void 0!==a.attr("column")&&(c.column=a.attr("column"));void 0!==a.attr("isTotal")&&(c.isTotal=e.P.Zc(a.attr("isTotal")));if(0!=a.find("trueStyle").length)try{c.format=
JSON.parse(a.find("trueStyle").text())}catch(g){c.format=a.find("trueStyle").text()}return c}static $Ca(a){if(0!=a.find("param[name=localization]").length)return a.find("param[name=localization]").text()}hva(){for(var a=z.ba.create("<labels/>"),c=e.u.Ra.V().O,d,g=z.ba.create("<hierarchies/>"),k=c.wc(),m=0;m<k.length;m++){var n=k.ea(m);n.p1&&(d=z.ba.create("<label/>").text(n.label),d.attr("name",n.A),g.append(d))}0==g.nb()&&a.append(g);g=z.ba.create("<measures/>");c=c.Ba;for(m=0;m<c.length;m++)k=c.ea(m),
k.p1&&(d=z.ba.create("<label/>").text(k.label),d.attr("name",k.A),g.append(d));0==g.nb()&&a.append(g);return a}Pua(){for(var a=z.ba.create("<conditions/>"),c=0;c<this.Xc.length;c++){var d=this.Xc[c],g=z.ba.create("<condition/>");g.append(z.ba.Vh(d.formula));-1<d.row&&g.attr("row",d.row);-1<d.column&&g.attr("column",d.column);-1<d.isTotal&&g.attr("isTotal",1==d.isTotal?"true":"false");d.measure&&0<d.measure.length&&g.attr("measure",d.measure);d.hierarchy&&0<d.hierarchy.length&&g.attr("hierarchy",d.hierarchy);
d.member&&0<d.member.length&&g.attr("member",d.member);if(d.format&&!u.Sc.Eg(d.format)){var k=z.ba.create("<trueStyle/>");k.append(z.ba.Vh(JSON.stringify(d.format)));g.append(k)}a.append(g)}return a}bva(a){var c=z.ba.create("<format/>");c.attr("name",a.name);a.hasOwnProperty("decimalPlaces")&&c.append(z.ba.create("<param/>").attr("name","decimalPlaces").text(a.decimalPlaces));a.hasOwnProperty("maxDecimalPlaces")&&c.append(z.ba.create("<param/>").attr("name","maxDecimalPlaces").text(a.maxDecimalPlaces));
a.hasOwnProperty("maxSymbols")&&c.append(z.ba.create("<param/>").attr("name","maxSymbols").text(a.maxSymbols));a.hasOwnProperty("currencySymbolAlign")&&c.append(z.ba.create("<param/>").attr("name","currencySymbolAlign").text(a.currencySymbolAlign));a.hasOwnProperty("thousandsSeparator")&&c.append(z.ba.create("<param/>").attr("name","thousandsSeparator").append(z.ba.Vh(a.thousandsSeparator)));a.hasOwnProperty("decimalSeparator")&&c.append(z.ba.create("<param/>").attr("name","decimalSeparator").append(z.ba.Vh(a.decimalSeparator)));
a.hasOwnProperty("currencySymbol")&&c.append(z.ba.create("<param/>").attr("name","currencySymbol").append(z.ba.Vh(a.currencySymbol)));a.hasOwnProperty("nullValue")&&c.append(z.ba.create("<param/>").attr("name","nullValue").append(z.ba.Vh(a.nullValue)));a.hasOwnProperty("infinityValue")&&c.append(z.ba.create("<param/>").attr("name","infinityValue").append(z.ba.Vh(a.infinityValue)));a.hasOwnProperty("divideByZeroValue")&&c.append(z.ba.create("<param/>").attr("name","divideByZeroValue").append(z.ba.Vh(a.divideByZeroValue)));
a.hasOwnProperty("textAlign")&&c.append(z.ba.create("<param/>").attr("name","textAlign").text(a.textAlign));a.hasOwnProperty("isPercent")&&c.append(z.ba.create("<param/>").attr("name","isPercent").text(a.isPercent));return c}Yo(){var a=z.ba.create("<config/>"),c=this.ma.Yo(this.lA);0==c.nb()&&a.append(c);c=this.slice.Yo(this.lA);0==c.nb()&&a.append(c);c=this.Ax.Yo();0==c.nb()&&a.append(c);c=this.hva();0==c.nb()&&a.append(c);c=this.options.Yo();"string"==typeof this.Ge&&c.append(z.ba.create("<param/>").attr("name",
"localization").append(z.ba.Vh(this.Ge)));a.append(c);c=this.Pua();0==c.nb()&&a.append(c);if(null!=this.De){c=!l.C.F.uV&&20<this.De.length;for(var d=0;d<this.De.length;d++){var g=this.De[d];(""==g.name||this.slice.En.Hb(g.name)&&(!c||this.slice.En.getItem(g.name)))&&a.append(this.bva(g))}}return a}Qa(){const a={};var c=this.ma.Qa(this.lA);u.Sc.Eg(c)||(a.dataSource=c);c=this.slice.Qa(this.lA,this.ma.mapping);u.Sc.Eg(c)||(a.slice=c);c=this.options.Qa();u.Sc.Eg(c)||(a.options=c);c=this.Oua();0<c.length&&
(a.conditions=c);if(null!=this.De&&0!=this.De.length){c=[];const d=!l.C.F.uV&&20<this.De.length;for(let g=0;g<this.De.length;g++){const k=this.De[g];(""==k.name||this.slice.En.Hb(k.name)&&(!d||this.slice.En.getItem(k.name)))&&c.push(k)}a.formats=c}c=this.Ax.Qa(this.slice);u.Sc.Eg(c)||(a.tableSizes=c);null!=this.Dm&&0!=this.Dm.length&&(a.customFields=this.Dm);null!=this.Ge&&""!=this.Ge&&(a.localization=this.Ge);null!=this.version&&0<this.version.length&&(a.version=this.version);null!=this.mL&&0<this.mL.length&&
(a.creationDate=this.mL);return a}Oua(){for(var a=[],c=0;c<this.Xc.length;c++){var d=this.Xc[c],g={};g.formula=d.formula;-1<d.row&&(g.row=d.row);-1<d.column&&(g.column=d.column);-1<d.isTotal&&(g.isTotal=1==d.isTotal?!0:!1);d.measure&&0<d.measure.length&&(g.measure=d.measure);d.aggregation&&0<d.aggregation.length&&"none"!==d.aggregation&&(g.aggregation=d.aggregation);d.hierarchy&&0<d.hierarchy.length&&(g.hierarchy=d.hierarchy);d.member&&0<d.member.length&&(g.member=d.member);d.format&&!u.Sc.Eg(d.format)&&
(g.format=d.format);a.push(g)}return a}static fm(a){var c={};if(void 0==a)return c;null!=a.customFields&&(c.customFields=a.customFields);null!=a.labels&&(c.labels=a.labels);null!=a.slice&&(a.options||(a.options={}),void 0==a.options.useOlapFormatting&&void 0!=a.slice.useOlapFormatting&&(a.options.useOlapFormatting=a.slice.useOlapFormatting),void 0==a.options.showMemberProperties&&void 0!=a.slice.showMemberProperties&&(a.options.showMemberProperties=a.slice.showMemberProperties));null!=a.dataSource&&
(a.options||(a.options={}),void 0==a.options.useOlapFormatting&&void 0!=a.dataSource.useOlapFormatting&&(a.options.useOlapFormatting=a.dataSource.useOlapFormatting),void 0==a.options.showMemberProperties&&void 0!=a.dataSource.showMemberProperties&&(a.options.showMemberProperties=a.dataSource.showMemberProperties),a.slice&&void 0==a.slice.memberProperties&&void 0!=a.dataSource.memberProperties&&(a.slice.memberProperties=a.dataSource.memberProperties));c.connectionInfo=e.u.O.kt.fm(a.connectionInfo?
a.connectionInfo:a);c.slice=h.pp.fm(a.slice?a.slice:a);c.options=l.C.Eq.fm(a.options?a.options:a);c.tableSizes=h.Gv.fm(a.tableSizes?a.tableSizes:a);null!=a.formats&&0<a.formats.length&&(c.formats=a.formats);null!=a.conditions&&0<a.conditions.length&&(c.conditions=a.conditions);null!=a.localization&&(c.localization=a.localization);null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<a.creationDate.length&&(c.creationDate=a.creationDate);return c}merge(a){if(e.v(a))return this;
a=f.fm(a);var c=f.fm(this),d;for(d in a)a.hasOwnProperty(d)&&("connectionInfo"==d?e.u.O.kt.zb(a.connectionInfo).nb||(c[d]=a[d]):"options"==d?(this.options.FD(a[d]),c[d]=l.C.Eq.fm(this.options)):c[d]=a[d]);return f.zb(c)}get nb(){return e.v(this.ma)||this.ma.nb}}h.Yx=f;class b{}b.Dm=[];h.MI=b})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{Mba(b){b?this.Fa(new h.P8(b)):this.Fa(new h.zP(l.B.j.i8))}rga(b){try{var a=-1;if(-1<(a=b.indexOf("</config>"))){var c=z.ba.create(b.substring(0,a+9));return c?h.Yx.wk(c):null}a=b.indexOf("/**----**");return JSON.parse(-1<a?b.substring(0,a):b)}catch(d){return console.error(d),null}}gT(b){var a=new e.Er(new ArrayBuffer(0),0,e.Er.HI);a.PKa(b);return a.byteLength}}h.Q8=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.type=e.u.i.qb.NONE;this.zea=!1;this.fg=[];this.Sk=[];this.wB=[];this.g$=this.DF=this.MF=!1;this.Cc=b}clear(){this.eC();this.xua()}eC(){this.type=e.u.i.qb.NONE;this.query=this.measure=null;this.wB=[]}xua(){this.fg=[];this.Sk=[];this.DF=this.MF=!1;this.IB=[];this.OQ=!1}Pj(b=!1){if(b)return this.MF&&(this.Sk=[],0<this.fg.length&&(this.Sk=this.iba(this.fg)),this.MF=!1),this.Sk;this.DF&&(this.fg=[],0<this.Sk.length&&(this.fg=this.iba(this.Sk)),
this.DF=!1);return this.fg}mJa(b,a=!1){var c=this.Cc.ta.ea(1);c=this.Cc.Vu(c.A);a?(this.V1(b,c)&&(b=[]),this.DF=!0,this.Sk=b,this.fg=[]):(this.V1(b,c)&&(b=[]),this.MF=!0,this.fg=b,this.Sk=[])}get O1(){return 0<this.Sk.length}get wh(){return this.wi||this.xi||this.mz||this.Qw||this.tM||this.tT}get wi(){return 0<this.fg.length||0<this.Sk.length}get oz(){return this.xi||this.mz||this.Qw||this.tM||this.tT}get xi(){return this.type===e.u.i.qb.$n}get mz(){return this.type===e.u.i.qb.Sa}get Qw(){return this.type===
e.u.i.qb.Ok}get tM(){return this.type===e.u.i.qb.jb}get tT(){return this.type===e.u.i.qb.dc}get I1(){return this.g$}set I1(b){this.g$=b}clone(){var b=new f(this.Cc);b.type=this.type;b.measure=this.measure;b.query=this.query&&this.query.clone?this.query.clone():u.Sc.nj(this.query);e.v(this.fg)||(b.fg=this.fg.slice());b.MF=this.MF;e.v(this.Sk)||(b.Sk=this.Sk.slice());b.DF=this.DF;e.v(this.IB)||(b.IB=this.IB.slice());b.OQ=this.OQ;return b}Qa(){var b={};this.wi&&(this.I1?this.O1?b.exclude=this.Cc.vs(this.Pj(!0)):
b.members=this.Cc.vs(this.Pj()):this.Pj().length<this.Cc.Ri/2?b.members=this.Cc.vs(this.Pj()):b.exclude=this.Cc.vs(this.Pj(!0)));!e.v(this.measure)&&this.xi&&(b.measure=this.measure.Qa());!e.v(this.query)&&this.oz&&(b.query=this.query.Qa());0<this.wB.length&&this.oz&&(b.include=this.Cc.vs(this.wB));return b}static zb(b,a,c=!1){if(e.v(b))return null;f.Ita(b);var d=new f(a);d.I1=c;d.type=f.Jwa(b,a);d.type==e.u.i.qb.$n?f.tHa(b,d):d.type==e.u.i.qb.Sa?f.UGa(b,d,a.getTimezoneOffset()):d.type==e.u.i.qb.Ok?
f.fHa(b,d):d.type==e.u.i.qb.jb?f.mHa(b,d):d.type==e.u.i.qb.dc&&f.rHa(b,d);f.lHa(b,d,a);!e.v(b.include)&&d.oz&&(d.wB=f.M3(b.include,a));return d}static Ita(b){if("top"==b.type||"bottom"==b.type)b.query={[b.type]:b.quantity},b.type=e.u.i.qb.$n,delete b.quantity;!e.v(b.members)&&b.negation&&(b.exclude=b.members,delete b.members,delete b.negation)}static Jwa(b,a){return e.v(b.type)?e.v(b.query)?e.u.i.qb.NONE:e.v(b.measure)?f.WS(a):e.u.i.qb.$n:e.u.i.qb.validate(b.type)}static M3(b,a){if(e.v(b))return null;
for(var c=[],d=0;d<b.length;d++)if("number"==typeof b[d]&&-1<b[d])c.push(b[d]);else{var g="string"==typeof b[d]?b[d]:b[d].uniqueName;g=e.u.ye.Ds(g);g=a.iz(g);-1<g&&c.push(g)}return c}static WS(b){if(e.u.Ra.V().ga.Gc&&e.u.Ra.V().ga.Da!==e.u.i.qa.Tc&&e.u.Ra.V().ga.Da!==e.u.i.qa.API&&e.u.Ra.V().ga.Da!==e.u.i.qa.ag)return e.u.i.qb.NONE;if(e.u.Ra.V().ga.Da===e.u.i.qa.API||e.u.Ra.V().ga.Da===e.u.i.qa.ag)return b.type===e.u.i.Lc.Cq?e.u.i.qb.jb:b.type===e.u.i.Lc.Sa?e.u.i.qb.Sa:e.u.i.qb.Ok;var a=b.ta.ea(1).type;
return b.type===e.u.i.Lc.Sa?2!=b.ta.length||a!==e.u.i.ib.Dl&&a!==e.u.i.ib.$g&&a!==e.u.i.ib.fn?e.u.i.qb.Sa:e.u.i.qb.NONE:a===e.u.i.ib.$c||e.u.Ra.V().ga.Gc?e.u.i.qb.Ok:a===e.u.i.ib.jb?e.u.i.qb.jb:a===e.u.i.ib.dc?e.u.i.qb.dc:e.u.i.qb.NONE}static lHa(b,a,c){const d=b.members||b.exclude;if(!e.v(d)){var g=[],k=[];b=e.v(b.members);for(let m=0;m<d.length;m++){if("number"==typeof d[m]&&-1<d[m]){g.push(d[m]);continue}let n="string"===typeof d[m]?d[m]:d[m].A;n=e.u.ye.Ds(n);k.push(n);const p=c.bha(n);-1<p&&!g.some(t=>
t==p)?g.push(p):c.Wd&&(c.Wd=!1,console.warn("Error in predefined filter or members have not been loaded yet: "+n))}e.u.Ra.V().ga.Gc&&(a.YH=b,a.cm=k.length>g.length?k:[]);a.mJa(g,b)}}static tHa(b,a){a.query=h.im.zb(b.query,e.u.i.qb.$n);a.measure="string"==typeof b.measure?new h.ah(e.u.ye.Pg(b.measure)):h.ah.zb(b.measure);if(e.v(a.query)||e.v(a.measure))a.type=e.u.i.qb.NONE,a.measure=null}static UGa(b,a,c){a.query=h.im.zb(b.query,e.u.i.qb.Sa,c);e.v(a.query)&&(a.type=e.u.i.qb.NONE)}static fHa(b,a){a.query=
h.im.zb(b.query,e.u.i.qb.Ok);e.v(a.query)&&(a.type=e.u.i.qb.NONE)}static mHa(b,a){a.query=h.im.zb(b.query,e.u.i.qb.jb);e.v(a.query)&&(a.type=e.u.i.qb.NONE)}static rHa(b,a){a.query=h.im.zb(b.query,e.u.i.qb.dc);e.v(a.query)&&(a.type=e.u.i.qb.NONE)}V1(b,a){return 0==a.length?!1:a.reduce((c,d)=>{if(b.some(k=>k==d))return c;const g=this.Cc.ya(d).children;return c&&this.V1(b,g)},!0)}iba(b){const a=new e.XE;for(var c=1;c<this.Cc.Qm;c++)a.add(c);for(c=0;c<b.length;c++){const d=this.Cc.ya(b[c]);a.delete(d.ordinal);
this.nV(a,d);this.Xga(a,d.parent)}this.Haa(a,this.Cc.Ad);this.Cc.As&&this.YHa(a);return a.Nc()}YHa(b){for(let a=b.size-1;0<=a;a--){const c=this.Cc.ya(b[a]);c.parent||b.delete(c.ordinal)}}Haa(b,a){for(let c=0;c<a.children.length;c++){const d=this.Cc.ya(a.children[c]);0<d.children.length&&(b.has(d.ordinal)?b.has(d.children[0])&&this.nV(b,d):this.Haa(b,d))}}nV(b,a){if(a){a=a.children;for(var c=0;c<a.length;c++)b.delete(a[c]),this.nV(b,this.Cc.ya(a[c]))}}Xga(b,a){a&&!a.Zb&&(b.delete(a.ordinal),a.parent&&
this.Xga(b,a.parent))}Nxa(){var b=null;this.mz&&(b=this.Kxa(this.query));this.Qw&&(b=this.Qxa(this.query));this.tM&&(b=this.Oxa(this.query));this.tT&&(b=this.Rxa(this.query));if(!e.v(b)&&0<this.wB.length)for(var a=0;a<this.wB.length;a++)b.add(this.wB[a]);if(!e.v(b)&&0<this.Sk.length)for(a=0;a<this.Sk.length;a++)b.delete(this.Sk[a]),this.nV(b,this.Cc.ya(this.Sk[a]));return b.Nc()}Kxa(b){b=b.LR(this.Cc.getTimezoneOffset());var a=new e.XE,c=0<this.fg.length,d=2<this.Cc.ta.length,g=c?this.fg:null;c&&
d&&(g=this.wda(g));for(var k=c?g.length:this.Cc.Ri,m=0;m<k;m++){var n=c?g[m]:m;if(d){var p=this.Cc.ya(n);if(p.level.type===e.u.i.ib.Dl||p.level.type===e.u.i.ib.ut||p.level.type===e.u.i.ib.$g)continue}b.va===e.u.i.Bb.On?this.A2(this.Cc.XC(n).toLowerCase(),b)&&a.add(n):this.pDa(this.Cc.cM(n),b)&&a.add(n)}return a}Qxa(b){var a=new e.XE,c=this.Cc.oc?this.Cc.oc.wb:1,d=0<this.fg.length,g=2<this.Cc.ta.length,k=d?this.fg:null;d&&g&&(k=this.wda(k));for(var m=d?k.length:this.Cc.Ri,n=0;n<m;n++){var p=d?k[n]:
n;1<c&&g&&this.Cc.ya(d?k[n]:n).level.wb<c||this.A2(this.Cc.XC(p).toLowerCase(),b)&&a.add(p)}return a}Oxa(b){for(var a=new e.XE,c=0<this.fg.length,d=c?this.fg:null,g=c?d.length:this.Cc.Ri,k=0;k<g;k++){var m=c?d[k]:k;this.wU(this.Cc.cM(m),b)&&a.add(m)}return a}Rxa(b){b=b.Cva();for(var a=new e.XE,c=0<this.fg.length,d=c?this.fg:null,g=c?d.length:this.Cc.Ri,k=0;k<g;k++){var m=c?d[k]:k;b.va==e.u.i.Bb.On?this.A2(this.Cc.XC(m).toLowerCase(),b)&&a.add(m):this.wU(this.Cc.cM(m),b)&&a.add(m)}return a}A2(b,a){if(e.v(a.value))return!1;
if(a.va===e.u.i.Bb.EQUAL)return b===a.value.toLowerCase();if(a.va===e.u.i.Bb.cg)return b!==a.value.toLowerCase();if(a.va===e.u.i.Bb.HE)return 0==b.indexOf(a.value.toLowerCase());if(a.va===e.u.i.Bb.PA)return 0!=b.indexOf(a.value.toLowerCase());if(a.va===e.u.i.Bb.CA){var c=b.lastIndexOf(a.value.toLowerCase());return 0<=c&&c+a.value.length==b.length}if(a.va===e.u.i.Bb.RA)return c=b.lastIndexOf(a.value.toLowerCase()),0>c||c+a.value.length!=b.length;if(a.va===e.u.i.Bb.On)return c=b.indexOf(a.value.toLowerCase()),
0<=c;if(a.va===e.u.i.Bb.QA)return c=b.indexOf(a.value.toLowerCase()),0>c;if(a.va===e.u.i.Bb.GREATER)return b>a.value.toLowerCase();if(a.va===e.u.i.Bb.xl)return b>=a.value.toLowerCase();if(a.va===e.u.i.Bb.LESS)return b<a.value.toLowerCase();if(a.va===e.u.i.Bb.yl)return b<=a.value.toLowerCase();if(a.va===e.u.i.Bb.nh)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b>=c&&b<=a:b>=a&&b<=c;if(a.va===e.u.i.Bb.bh)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b<c||b>a:b<
a||b>c}wU(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.Jg.EQUAL)return b===a.value;if(a.va===e.u.i.Jg.cg)return b!==a.value;if(a.va===e.u.i.Jg.GREATER)return b>a.value;if(a.va===e.u.i.Jg.xl)return b>=a.value;if(a.va===e.u.i.Jg.LESS)return b<a.value;if(a.va===e.u.i.Jg.yl)return b<=a.value;if(a.va===e.u.i.Jg.nh){var c=Math.min(a.value[0],a.value[1]);a=Math.max(a.value[0],a.value[1]);return b>=c&&b<=a}if(a.va===e.u.i.Jg.bh)return c=Math.min(a.value[0],a.value[1]),a=Math.max(a.value[0],a.value[1]),b<
c||b>a}pDa(b,a){if(e.v(a.value))return!1;if(a.va===e.u.i.$b.FE){var c=a.value.getTime();return b<c}if(a.va===e.u.i.$b.GE)return c=a.value.getTime(),b<c+864E5;if(a.va===e.u.i.$b.CE)return c=a.value.getTime(),b>=c+864E5;if(a.va===e.u.i.$b.DE)return c=a.value.getTime(),b>=c;if(a.va===e.u.i.$b.nh)return c=Math.min(a.value[0].getTime(),a.value[1].getTime()),a=Math.max(a.value[0].getTime(),a.value[1].getTime()),b>=c&&b<=a;if(a.va===e.u.i.$b.bh)return c=Math.min(a.value[0].getTime(),a.value[1].getTime()),
a=Math.max(a.value[0].getTime(),a.value[1].getTime()),b<c||b>a}set cm(b){this.IB=b}get cm(){null==this.IB&&(this.IB=[]);return this.IB}get YH(){return this.OQ}set YH(b){this.OQ=b}pw(){if(0<this.cm.length){for(var b,a=0;a<this.cm.length;a++){if(this.Cc.type!==e.u.i.Lc.Sa||this.Cc.ta.ea(1).type!==e.u.i.ib.Sa&&this.Cc.ta.ea(1).type!==e.u.i.ib.Jc)b=this.Cc.Ib(this.cm[a]);else{if(l.C.F.br&&"null"===this.cm[a])b=null;else if(8>this.cm[a].length||/\D+/.test(this.cm[a].slice(1))){b=this.Cc.ta.ea(1).type===
e.u.i.ib.Jc?l.C.F.rk:l.C.F.Ep;b=this.Cc.mapping.Ha(this.Cc.A,"format",b);const c=new e.Zg(this.cm[a],{wy:!1,format:b});c.Aj(u.zh.lg(b));b=c.getTime()}else b=parseInt(this.cm[a]);b=this.Cc.vu(b)}null!=b&&(this.YH?this.Sk.push(b.ordinal):this.fg.push(b.ordinal))}this.cm=[]}}wda(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c]),this.Nga(a,this.Cc.ya(b[c]));return a}Nga(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.Nga(b,this.Cc.ya(a[c]))}}}h.JA=f})(l.hb||
(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b=null,a=null){this.va=b;this.value=a}clone(){return new f(this.va,this.value)}static zb(b,a,c=null){if(e.v(b))return null;let d=null;a==e.u.i.qb.$n?(e.u.i.yc.ki.some(g=>{if(!e.v(b[g]))return d=new f(g,parseFloat(b[g])),!0}),e.u.i.yc.If.some(g=>{if(!e.v(b[g]))return d=new f(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==e.u.i.qb.Sa?(e.u.i.$b.ki.some(g=>{if(!e.v(b[g])){const k=new e.Zg(b[g]);k.Aj(c,!1);d=new f(g,k);return!0}}),e.u.i.$b.If.some(g=>
{if(!e.v(b[g])){const k=new e.Zg(b[g][0]);k.Aj(c,!1);const m=new e.Zg(b[g][1]);m.Aj(c,!1);if(k&&m)return d=new f(g,k.getTime()<m.getTime()?[k,m]:[m,k]),d.value[1]=d.value[1].i5("day",l.C.F.Gw),!0}}),e.u.i.$b.Wx.some(g=>{if(e.u.i.AA.Ug(b[g]))return d=new f(g,b[g].toLowerCase()),!0}),e.v(b[e.u.i.Bb.On])||(d=new f(e.u.i.Bb.On,b[e.u.i.Bb.On]))):a==e.u.i.qb.Ok?(e.u.i.Bb.ki.some(g=>{if(!e.v(b[g]))return d=new f(g,b[g]),!0}),e.u.i.Bb.If.some(g=>{if(!e.v(b[g]))return d=new f(g,[b[g][0],b[g][1]]),!0})):a==
e.u.i.qb.jb?(e.u.i.Jg.ki.some(g=>{if(!e.v(b[g]))return d=new f(g,parseFloat(b[g])),!0}),e.u.i.Jg.If.some(g=>{if(!e.v(b[g]))return d=new f(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==e.u.i.qb.dc&&(e.u.i.Qk.ki.some(g=>{if(!e.v(b[g]))return d=new f(g,b[g]),!0}),e.u.i.Qk.If.some(g=>{if(!e.v(b[g]))return d=new f(g,[b[g][0],b[g][1]]),!0}),e.v(b[e.u.i.Bb.On])||(d=new f(e.u.i.Bb.On,b[e.u.i.Bb.On])));return d}Qa(){let b=this.value;b instanceof e.Zg&&(b=b.format("yyyy-MM-dd"));Array.isArray(b)&&b[0]instanceof
e.Zg&&(b=[b[0].format("yyyy-MM-dd"),b[1].format("yyyy-MM-dd")]);return{[this.va]:b}}LR(b){if(this.va==e.u.i.$b.EQUAL||this.va==e.u.i.$b.cg){b=this.value.clone().Ln();var a=this.value.clone().eA();return new f(this.va==e.u.i.$b.cg?e.u.i.$b.bh:e.u.i.$b.nh,[b,a])}return 0<=e.u.i.$b.Wx.indexOf(this.va)&&e.u.i.AA.Ug(this.value)?(b=(new e.Zg).Aj(b),this.va==e.u.i.$b.mO?b.m5(this.value,l.C.F.Gw):this.va==e.u.i.$b.pP?(b.i5(this.value,l.C.F.Gw),b.setMilliseconds(1E3)):this.va==e.u.i.$b.WO&&(b.m5(this.value,
l.C.F.Gw),b.setMilliseconds(-1),b.m5(this.value,l.C.F.Gw)),a=b.clone().i5(this.value,l.C.F.Gw),new f(e.u.i.$b.nh,[b,a])):this}Cva(){return 0<=e.u.i.Qk.ki.indexOf(this.va)?new f(this.va,this.k5(this.value)):0<=e.u.i.Qk.If.indexOf(this.va)?new f(this.va,[this.k5(this.value[0]),this.k5(this.value[1])]):this}k5(b){const a=b.match(/[s|m|h|d]$/);if(!e.v(a)){const c=parseFloat(b.substr(0,b.length-1));if("s"==a[0])return c;if("m"==a[0])return 60*c;if("h"==a[0])return 3600*c;if("d"==a[0])return 86400*c}return parseInt(b)}}
h.im=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.Q8{constructor(){super();this.$_="\x3c!--";this.aca="/**----**"}load(b,a){this.url=b;this.oa=new z.ek;this.oa.dataType=z.zA.aB;this.oa.N(v.fa.ue,c=>this.eq(c));this.oa.N(v.fa.Oc,()=>this.wj());this.oa.N(v.fa.Aa,()=>this.Sb());this.oa.Qh(a);this.oa.load(b)}eq(){var b=0;null!=this.oa&&-1<(b=this.oa.response.indexOf("</config>"))&&b+this.aca.length+1<this.oa.response.length&&this.wj()}wj(){if(null!=this.oa){this.oa.Yd(v.fa.Oc);var b=this.rga(this.oa.response);
if(b instanceof h.Yx){if(b.ma instanceof e.u.local.csv.gF&&1==b.ma.sk){var a=b.ma;a.filename=this.oa.url;a.embeddedDataOffset=this.gT(this.oa.response.substring(0,this.oa.response.indexOf("</config>")+9)+"\n");var c=this.oa.response.indexOf(this.$_);a.isOCSV2Data=this.oa.response.substring(c,c+this.$_.length)==this.$_;b.ma=a}}else e.v(b)||e.v(b.dataSource)?l.C.F.A5&&this.Sb(l.B.j.j8):1==b.dataSource.embedded&&(b.dataSource.filename=this.oa.url,b.dataSource.embeddedDataOffset=this.gT(this.oa.response.substring(0,
this.oa.response.indexOf(this.aca))),b.dataSource.isOCSV2Data=!0);this.Mba(b);this.dispose()}}Sb(b=""){this.oa.Yd(v.fa.ue);this.oa.Yd(v.fa.Oc);this.oa.Yd(v.fa.Aa);if(e.ia(b)){var a="";null!=this.oa&&null!=this.oa.response&&""!=this.oa.response&&(a=l.Tb.validate(this.oa.response),a=700<a.length?a.substr(0,700):a,a=e.P.bind(l.B.j.jP,a).replace(/'/g,""));b=l.Tb.valid(this.url)?this.url:l.Tb.validate(this.url);b=e.P.bind(l.B.j.uJ,b);this.Fa(new h.zP(b,a))}else this.Fa(new h.zP(b));this.dispose()}dispose(){null!=
this.oa&&(this.oa.Yd(),this.oa.dispose(),this.oa=null)}}h.wqa=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.Q8{constructor(){super()}load(){this.file=new z.x7;this.file.N(v.fa.np,()=>this.mGa());this.file.N(v.fa.Oc,()=>this.wj());this.file.N(v.fa.BW,()=>this.DU());this.file.N(v.fa.Aa,()=>this.Sb());this.file.zaa([".json",".js",".xml"])}mGa(){null!=this.file&&this.file.load(z.ppa.ARRAY_BUFFER)}wj(){try{this.Nwa();var b=new e.Er(this.file.response,0,e.Er.HI),a=b.jV(b.byteLength),c=this.rga(a);if(c instanceof h.Yx){if(c.ma instanceof e.u.local.csv.gF&&
1==c.ma.sk){var d=c.ma;d.bca=this.file.response;d.Z_=this.gT(a.substring(0,a.indexOf("</config>")+9)+"\n");c.ma=d}}else e.v(c)||e.v(c.dataSource)?l.C.F.A5&&this.Sb(l.B.j.j8):1==c.dataSource.sk&&(c.dataSource.embeddedDataToLoad=this.file.response,c.dataSource.embeddedDataOffset=this.gT(a.substring(0,a.indexOf("/**----**"))));this.Mba(c);this.dispose()}catch(g){console.error(g),this.Sb()}}Sb(b=""){e.ia(b)&&(b=e.P.bind(l.B.j.uJ,""));this.Fa(new h.zP(b));this.dispose()}Nwa(){this.$a(h.Eh.IJ)}DU(){this.$a(h.Eh.Kr);
this.dispose()}dispose(){null!=this.file&&(this.file.Yd(),this.file.dispose(),this.file=null)}}h.nna=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static iA(b){return b==f.DO||b==f.MX||b==f.S5||b==f.UA}}f.DO="file";f.MX="server";f.S5="binary";f.UA="plain";h.fp=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(a,c,d){this.fk=this.A="";this.index=-1;this.label="";void 0!=a&&(this.A=a);void 0!=c&&(this.aa=c);void 0!=d&&(this.index=d)}get aa(){return this.fk}set aa(a){e.u.i.da.iA(a)&&(this.fk=a)}static zb(a){if(null==a)return null;var c=new f;void 0!=a.uniqueName&&(c.A=a.uniqueName);void 0!=a.aggregation&&(c.aa=a.aggregation);void 0!=a.index&&(c.index=a.index);void 0!=a.label&&(c.label=a.label);return c}Qa(){var a={};a.uniqueName=this.A;""!==this.aa&&
(a.aggregation=this.aa);return a}}h.ah=f;class b{constructor(){this.rows=[];this.Ka=[];this.ob=[];this.Ba=[];this.Wj={};this.Lj={};this.Ew=[];this.Dw=[];this.Bw=[];this.Aw=[];this.kd=this.Qc=!1;this.Ng=[];this.ih=null;this.bd=[];this.Rj=[];this.En=new e.tb}static Jfa(a){if(0<=b.gd(a.rows)){var c=b.gd(a.Ka);0<=c&&(a.Ka[c]=a.Ka[0],a.Ka.shift())}}static gd(a){for(var c=0;c<a.length;c++)if("[Measures]"==a[c].uniqueName)return c;return-1}static iV(a){for(var c=[],d,g=0;g<a.length;g++){d=[];d.push(null!=
a[g].measure?a[g].measure:"");if(null!=a[g].tuple)for(var k=0;k<a[g].tuple.length;k++)d.push(a[g].tuple[k]);c.push(d)}return c}static hV(a){for(var c=[],d,g=0;g<a.length;g++){d=[];d.push(null!=a[g].level?a[g].level:"");d.push(null!=a[g].measure?a[g].measure:-1);if(null!=a[g].tuple){d.push(a[g].tuple[a[g].tuple.length-1]);for(var k=0;k<a[g].tuple.length;k++)d.push(a[g].tuple[k])}c.push(d)}return c}static wR(a,c){if(!e.v(c)&&!c.nb)for(let g=0;g<a.length;g++){var d=a[g].uniqueName;let k=c.Ha(d,"caption");
e.v(k)||delete a[g].caption;d=c.Ha(d,"aggregations");e.v(d)||delete a[g].availableAggregations}}static zb(a,c=null){if(null==a)return null;a instanceof b||(a=b.fm(a));var d=new b;null!=a.measures&&a.measures.length&&(d.Ba=a.measures);null==c&&(c=l.Va.V().Ia.ga);null!=a.pages&&a.pages.length&&(d.ob=b.u1(a.pages));null!=a.columns&&a.columns.length&&(d.Ka=b.u1(a.columns));null!=a.rows&&a.rows.length&&(d.rows=b.u1(a.rows));null!=a.flatOrder&&a.flatOrder.length&&(d.Ng=a.flatOrder);null!=a.flatSort&&a.flatSort.length&&
(d.ih=a.flatSort);null!=a.drillThrough&&a.drillThrough.length&&(d.bd=a.drillThrough);if(void 0!==a.memberProperties&&Array.isArray(a.memberProperties))for(let g=0;g<a.memberProperties.length;g++){const k=a.memberProperties[g];null!=k&&(e.v(d.Rj)&&(d.Rj={}),d.Rj[k.levelName]=k.properties)}b.Jfa(d);b.wR(d.Ba,c.mapping);b.wR(d.ob,c.mapping);b.wR(d.Ka,c.mapping);b.wR(d.rows,c.mapping);null!=a.rowSorting&&(d.Wj=a.rowSorting);null!=a.columnSorting&&(d.Lj=a.columnSorting);null!=a.expandAll&&(d.Qc=a.expandAll);
null!=a.expandedRows&&a.expandedRows.length&&(d.Ew=a.expandedRows);null!=a.expandedColumns&&a.expandedColumns.length&&(d.Dw=a.expandedColumns);null!=a.drillAll&&(d.kd=a.drillAll);null!=a.drilledRows&&a.drilledRows.length&&(d.Bw=a.drilledRows);null!=a.drilledColumns&&a.drilledColumns.length&&(d.Aw=a.drilledColumns);return d}static u1(a){for(var c=[],d=0;d<a.length;d++){c[d]={};for(var g in a[d])"sort"==g?c[d].sortName=a[d].sort:c[d][g]=a[d][g]}return c}static wk(a){var c=new b,d=a.find("defaultSlice axes axis[name=rows]");
c.rows=b.v1(d.find("hierarchy"));c.Wj=b.oia(d.find("sort"));c.Ew=b.jca(d.find("expanded tuple"));c.Bw=b.Xba(d.find("drilled tuple"));d=a.find("defaultSlice axes axis[name=columns]");c.Ka=b.v1(d.find("hierarchy"));c.Lj=b.oia(d.find("sort"));c.Dw=b.jca(d.find("expanded tuple"));c.Aw=b.Xba(d.find("drilled tuple"));b.Jfa(c);d=a.find("defaultSlice axes axis[name=pages]");c.ob=b.v1(d.find("hierarchy"));c.Ba=b.oDa(a.find("defaultSlice measures measure"));c.Ng=b.$xa(a.find("defaultSlice flatOrder hierarchyName"));
d=a.find("params");0!=d.find("param[name=expandAll]").length&&(c.Qc=e.P.Zc(d.find("param[name=expandAll]").text()));0!=d.find("param[name=drillAll]").length&&(c.kd=e.P.Zc(d.find("param[name=drillAll]").text()));a=a.find("defaultSlice");0!=a.find("expandAll").length&&(c.Qc=e.P.Zc(a.find("expandAll").text()));0!=a.find("drillAll").length&&(c.kd=e.P.Zc(a.find("drillAll").text()));return c}static v1(a){for(var c=[],d=0;d<a.length;d++){var g=b.gBa(a[d]);c.push(g)}return c}static gBa(a){var c={};c.dimensionName=
a.find("dimensionName").text().trim();c.uniqueName=a.find("hierarchyName").text().trim();0<a.find("levelName").length&&(c.activeLevelName=a.find("levelName").text().trim());void 0!==a.attr("sort")&&(c.sortName=a.attr("sort"));void 0!==a.attr("sortAs")&&(c.sortAs=a.attr("sortAs"));var d=a.find("filter");if(0<d.length){for(var g=[],k=d.find("member"),m=0;m<k.length;m++){var n=k[m].text().trim();g.push(n)}m=void 0!==d.attr("negation")?e.P.Zc(d.attr("negation")):!1;k=void 0!==d.attr("type")?d.attr("type"):
e.u.i.qb.NONE;n=void 0!==d.attr("quantity")?parseInt(d.attr("quantity")):-1;var p=void 0!==d.attr("measure")?d.attr("measure"):"";if(k!=e.u.i.qb.NONE||0<g.length)c.filter={};0<g.length&&(c.filter.members=g,c.filter.negation=m);k!=e.u.i.qb.NONE&&(c.filter.type=k,c.filter.quantity=n,c.filter.measure=p)}m=d.find("properties");if(0<m.length)for(d=m.find("property"),c.predefinedProperties=[],m=0;m<d.length;m++)g=d[m].find("propertyName").text(),k=d[m].find("levelName").text(),null==c.predefinedProperties[k]&&
(c.predefinedProperties[k]=[]),c.predefinedProperties[k].push(g);d=[];k=a.find("sort member");for(m=0;m<k.length;m++)d.push(k[m].text());c.customSorting=d;void 0!==a.attr("filterEnabled")&&(c.filterEnabled="false"!=a.attr("filterEnabled"));d={};a=a.find("group");for(m=0;m<a.length;m++)for(g=a[m].attr("name"),d[g]=[],k=a[m].find("member"),n=0;n<k.length;n++)d[g].push(k[m].text());c.groups=d;return c}static oia(a){var c={};0<a.length&&(c.type=a.text(),c.tuple=void 0!==a.attr("tuple")?a.attr("tuple").split(","):
[],c.measure=new f(a.attr("measure")),void 0!==a.attr("measureAggregation")&&(c.measure.aa=a.attr("measureAggregation")));return c}static jca(a){var c=[];if(0<a.length)for(var d=0;d<a.length;d++){var g=a[d],k=g.text().split(",");if(isNaN(parseInt(k[0]))){var m=void 0!==g.attr("measure")?new f(g.attr("measure")):null;void 0!==g.attr("measureAggregation")&&(m.aa=g.attr("measureAggregation"));k.unshift(m)}else m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),k.unshift(m);
c.push(k)}return c}static Xba(a){var c=[];if(0<a.length)for(var d=0;d<a.length;d++){var g=a[d],k=b.hKa(g.text().split(","));var m=-1;void 0!==g.attr("memberName")?m=g.attr("memberName"):void 0!==g.attr("member")&&(m=parseInt(g.attr("member")));k.unshift(m);isNaN(parseInt(k[0]))?(m=void 0!==g.attr("measure")?new f(g.attr("measure")):null,void 0!==g.attr("measureAggregation")&&(m.aa=g.attr("measureAggregation")),k.unshift(m)):(m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=
-1),k.unshift(m));void 0!==g.attr("levelName")&&(g=g.attr("levelName"),k.unshift(g));c.push(k)}return c}static hKa(a){for(var c=0;c<a.length;c++)a[c]=parseInt(a[c]);return a}static oDa(a){for(var c=[],d=0;d<a.length;d++){var g=b.kDa(a[d]);c.push(g)}return c}static $xa(a){for(var c=[],d=0;d<a.length;d++)c.push(a[d].text());return c}static kDa(a){var c={};c.uniqueName=a.text().trim();void 0!==a.attr("calculated")&&0<a.text().length&&(c.uniqueName=a.attr("uniqueName"),c.formula=a.text(),c.individual=
void 0!==a.attr("individual")?e.P.Zc(a.attr("individual")):!1);void 0!==a.attr("availableAggregations")&&(c.availableAggregations=a.attr("availableAggregations").split(","));void 0!==a.attr("aggregation")&&(c.aggregation=a.attr("aggregation"));void 0!==a.attr("caption")&&(c.caption=a.attr("caption"));void 0!==a.attr("grandTotalCaption")&&(c.grandTotalCaption=a.attr("grandTotalCaption"));void 0!==a.attr("format")&&(c.format=a.attr("format"));c.active=void 0!==a.attr("active")?e.P.Zc(a.attr("active")):
!0;return c}Yo(a=!1){var c=z.ba.create("<defaultSlice/>"),d=z.ba.create("<axes/>"),g=z.ba.create("<axis/>");g.attr("name","rows");for(var k=0;k<this.rows.length;k++)g.append(this.A1(this.rows[k],a));null!=this.Wj&&null!=this.Wj.type&&this.Wj.type!=e.u.i.za.fd&&(k=z.ba.create("<sort/>").text(this.Wj.type),k.attr("tuple",this.Wj.tuple.join(",")),k.attr("measure",this.Wj.measure.A),""!=this.Wj.measure.aa&&k.attr("measureAggregation",this.Wj.measure.aa),g.append(k));if(0<this.Ew.length){var m=z.ba.create("<expanded/>");
for(k=0;k<this.Ew.length;k++){var n=this.Ew[k].slice(0);var p=n.shift();0!=n.length&&(n=z.ba.create("<tuple/>").append(z.ba.Vh(n.toString())),p&&(n.attr("measure",p.A),""!=p.aa&&n.attr("measureAggregation",p.aa)),m.append(n))}g.append(m)}if(0<this.Bw.length){var t=z.ba.create("<drilled/>");for(k=0;k<this.Bw.length;k++){n=this.Bw[k].slice(0);m="string"==typeof n[0]?n.shift():"";p=n.shift();var r=n.shift();null!=r&&0!=n.length&&(n=z.ba.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.A),
""!=p.aa&&n.attr("measureAggregation",p.aa)),0<r.length&&n.attr("memberName",r),0<m.length&&n.attr("levelName",m),t.append(n))}g.append(t)}m=z.ba.create("<axis/>");m.attr("name","columns");for(k=0;k<this.Ka.length;k++)m.append(this.A1(this.Ka[k],a));null!=this.Lj&&this.Lj.type&&this.Lj.type!=e.u.i.za.fd&&(k=z.ba.create("<sort/>").text(this.Lj.type),k.attr("tuple",this.Lj.tuple.join(",")),k.attr("measure",this.Lj.measure.A),""!=this.Lj.measure.aa&&k.attr("measureAggregation",this.Lj.measure.aa),m.append(k));
if(0<this.Dw.length){r=z.ba.create("<expanded/>");for(k=0;k<this.Dw.length;k++)n=this.Dw[k].slice(0),p=n.shift(),0!=n.length&&(n=z.ba.create("<tuple/>").append(z.ba.Vh(n.toString())),p&&(n.attr("measure",p.A),""!=p.aa&&n.attr("measureAggregation",p.aa)),r.append(n));m.append(r)}if(0<this.Aw.length){t=z.ba.create("<drilled/>");for(k=0;k<this.Aw.length;k++)n=this.Aw[k].slice(0),p=n.shift(),r=n.shift(),null!=r&&0!=n.length&&(n=z.ba.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.A),""!=
p.aa&&n.attr("measureAggregation",p.aa)),0<r.length&&n.attr("memberName",r),t.append(n));m.append(t)}p=z.ba.create("<axis/>");p.attr("name","pages");for(k=0;k<this.ob.length;k++)p.append(this.A1(this.ob[k],a));this.En.clear();n=z.ba.create("<measures/>");for(k=0;k<this.Ba.length;k++)r=this.Ba[k],t=z.ba.create("<measure/>").text(r.A),null!=r.ve&&""!=r.ve?(t=z.ba.create("<measure/>").append(z.ba.Vh(r.ve)),r.cl&&t.attr("individual","true"),t.attr("caption",r.caption)):(a||r.aa!=e.u.i.da.NONE)&&t.attr("aggregation",
r.aa),(a||0==r.active)&&t.attr("active",r.active),null!=r.format&&""!=r.format&&(t.attr("format",r.format),r.active?this.En.Ta(r.format,!0):this.En.Hb(r.format)&&!0===this.En.getItem(r.format)||this.En.Ta(r.format,!1)),null!=r.Wc&&0<r.Wc.length&&t.attr("availableAggregations",r.Wc.join(",")),n.append(t);0==g.nb()&&d.append(g);0==m.nb()&&d.append(m);0==p.nb()&&d.append(p);0==d.nb()&&c.append(d);0==n.nb()&&c.append(n);if(0<this.Ng.length){d=z.ba.create("<flatOrder/>");for(k=0;k<this.Ng.length;k++)d.append(z.ba.create("<hierarchyName/>").text(this.Ng[k]));
c.append(d)}(a||this.Qc)&&c.append(z.ba.create("<expandAll/>").text(this.Qc));(a||this.kd)&&c.append(z.ba.create("<drillAll/>").text(this.kd));return c}Qa(a=!1,c=null){var d={},g,k=[];for(g=0;g<this.ob.length;g++)k.push(this.z1(this.ob[g],a,c));0<k.length&&(d.reportFilters=k);k=[];for(g=0;g<this.rows.length;g++)k.push(this.z1(this.rows[g],a,c));0<k.length&&(d.rows=k);k=[];for(g=0;g<this.Ka.length;g++)k.push(this.z1(this.Ka[g],a,c));0<k.length&&(d.columns=k);k=[];const m=new e.tb,n=l.ec.gj.Oza();this.En.clear();
for(g=0;g<this.Ba.length;g++){var p=this.vfa(this.Ba[g],a,c);m.Hb(p.uniqueName)||m.Ta(p.uniqueName,new Map);m.getItem(p.uniqueName).set(p.aggregation,!0);k.push(p)}for(g=0;g<n.length;g++){var t=n.ea(g);p=n.Jh(g);t=t.keys();for(var r of t)t=n.getItem(p).get(r),(!m.Hb(p)||m.Hb(p)&&!m.getItem(p).has(r))&&l.C.F.uV&&(k.push({uniqueName:p,aggregation:r,active:!1,format:t}),this.En.Ta(t,!1))}0<k.length&&(d.measures=k);if(null!=this.Wj&&null!=this.Wj.type&&this.Wj.type!=e.u.i.za.fd||null!=this.Lj&&this.Lj.type&&
this.Lj.type!=e.u.i.za.fd)d.sorting={},null!=this.Wj&&null!=this.Wj.type&&this.Wj.type!=e.u.i.za.fd&&(d.sorting.row=this.Wj),null!=this.Lj&&this.Lj.type&&this.Lj.type!=e.u.i.za.fd&&(d.sorting.column=this.Lj);r={};if(a||this.Qc)r.expandAll=this.Qc;if(e.u.Ra.V().ua){var w=e.u.Ra.V().ua.yb;var y=e.u.Ra.V().ua.Db}0<this.Ew.length&&w&&(r.rows=this.ica(this.Ew,w,a,c));0<this.Dw.length&&y&&(r.columns=this.ica(this.Dw,y,a,c));u.Sc.Eg(r)||(d.expands=r);c={};if(a||this.kd)c.drillAll=this.kd;0<this.Bw.length&&
(c.rows=this.Wba(this.Bw,w));0<this.Aw.length&&(c.columns=this.Wba(this.Aw,y));u.Sc.Eg(c)||(d.drills=c);0<this.Ng.length&&(d.flatOrder=this.Ng);this.ih&&0<this.ih.length&&(d.flatSort=this.ih);0<this.bd.length&&(d.drillThrough=this.bd);if(this.Rj){a=[];for(var A in this.Rj)a.push({levelName:A,properties:this.Rj[A]});0<a.length&&(d.memberProperties=a)}return d}ica(a,c,d=!1,g=null){for(var k=[],m,n,p,t=0;t<a.length;t++)if(m={},n=a[t].slice(0),p=n.shift(),0!=n.length){for(var r=[],w=0;w<n.length;w++){var y=
c.ea(w).Ib(n[w]);r.push(y.qj)}m.tuple=r;p&&(m.measure=this.vfa(p.uniqueName?p:p.Qa(),d,g));k.push(m)}return k}Wba(a,c){var d=[],g=0;a:for(;g<a.length;g++){var k={};var m=a[g].slice(0);var n=m.shift();var p=m.shift();m.shift();if(0!=m.length){for(var t=[],r=0;r<m.length;r++){var w=c.ea(r).Ib(m[r]);if(w)t.push(w.qj);else continue a}k.tuple=t;p&&(k.measure=p.uniqueName?p:p.Qa());""!==n&&(k.level=n);d.push(k)}}return d}dCa(a){return e.u.Ra.V().ga.Da===e.u.i.qa.Tc||e.u.Ra.V().ga.Da===e.u.i.qa.le?"[Measures].["+
a.name+"]"!=a.uniqueName:e.u.Ra.V().O instanceof e.u.local.O.cP&&void 0!==e.u.Ra.V().O.Mz[a.uniqueName]?!1:a.name!=a.uniqueName}xBa(a){if(e.u.Ra.V().ga.Da==e.u.i.qa.API)return!1;if(a.Zj.length!==a.Wc.length)return!0;for(var c=0;c<a.Wc.length;c++)if(a.Wc[c]!==a.Zj[c])return!0;return!1}vfa(a,c,d=null){var g={};g.uniqueName=a.uniqueName;if(e.ia(a.formula)){if(c||a.aggregation!=e.u.i.da.NONE)g.aggregation=a.aggregation;var k=e.u.Ra.V().O.bx(a);if(c||this.xBa(k))e.v(d)||d.nb?g.availableAggregations=a.availableAggregations:
null==d.Ha(a.uniqueName,"aggregations")&&d.gi(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.dCa(a)&&(e.v(d)||d.nb?g.caption=a.name:null==d.Ha(a.uniqueName,"caption")&&void 0===a.formula&&d.gi(a.uniqueName,"caption",a.name));e.u.O.Br.O0(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.En.Ta(a.format,!0):this.En.Hb(a.format)&&!0===this.En.getItem(a.format)||this.En.Ta(a.format,!1));a.filter&&(g.filter=a.filter);return g}WBa(a){return"[Measures]"==a.uniqueName?!1:e.u.Ra.V().ga.Da==e.u.i.qa.Tc||e.u.Ra.V().ga.Da==e.u.i.qa.le?a.dimensionName+".["+a.caption+"]"!=a.uniqueName:e.u.Ra.V().O instanceof e.u.local.O.cP&&void 0!==e.u.Ra.V().O.Mz[a.uniqueName]?
!1:a.uniqueName!=a.caption}z1(a,c,d=null){var g={};g.uniqueName=a.uniqueName;this.WBa(a)&&(e.v(d)||d.nb?g.caption=a.caption:null==d.Ha(a.uniqueName,"caption")&&d.gi(a.uniqueName,"caption",a.caption));null!=a.activeLevelName&&(g.levelName=a.activeLevelName);e.v(a.filter)||(g.filter={},e.v(a.filter.measure)||(g.filter.measure=a.filter.measure),e.v(a.filter.query)||(g.filter.query=a.filter.query),e.v(a.filter.members)||(g.filter.members=a.filter.members),e.v(a.filter.exclude)||(g.filter.exclude=a.filter.exclude));
a.filterEnabled||(g.filterEnabled=!0);u.Sc.Eg(a.groups)||(g.groups=a.groups);"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=e.u.O.ht.RI)&&(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}A1(a,c){var d=z.ba.create("<hierarchy/>");d.append(z.ba.create("<dimensionName/>").text(a.dimensionName));d.append(z.ba.create("<hierarchyName/>").text(a.uniqueName));
null!=a.activeLevelName&&d.append(z.ba.create("<levelName/>").text(a.activeLevelName));if(null!=a.filter&&(null!=a.filter.type&&a.filter.type!=e.u.i.qb.NONE&&d.append(this.Sxa(a.filter)),null!=a.filter.members)){var g="string"==typeof a.filter.members?a.filter.members.split(","):a.filter.members;0<g.length&&(0<d.find("filter").length?this.xca(g,d.find("filter")[0]):d.append(this.xca(g)),!0===a.filter.negation&&d.find("filter").attr("negation",a.filter.negation))}a.customSorting&&0<a.customSorting.length&&
d.append(this.rwa(a.customSorting));a.groups&&this.WAa(a.groups,d);a.filterEnabled||d.attr("filterEnabled","true");"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=e.u.O.ht.RI)&&d.attr("sort",a.sortName);"[Measures]"!=a.uniqueName&&a.sortAs&&d.attr("sortAs",a.sortAs);return d}Sxa(a){var c=null;null==c&&(c=z.ba.create("<filter/>"));c.attr("type",a.type);c.attr("quantity",a.quantity);c.attr("measure",a.measure);return c}xca(a,c=null){null==c&&(c=z.ba.create("<filter/>"));for(var d=0;d<a.length;d++){var g=
a[d];c.append(z.ba.create("<member/>").append(z.ba.Vh(g)))}return c}rwa(a){for(var c=z.ba.create("<sort/>"),d=0;d<a.length;d++){var g=a[d];c.append(z.ba.create("<member/>").append(z.ba.Vh(g)))}return c}WAa(a,c){if(null!=a)for(var d in a){var g=z.ba.create("<group/>");g.attr("name",d);for(var k=0;k<a[d].length;k++){var m=a[d][k];g.append(z.ba.create("<member/>").append(z.ba.Vh(m)))}c.append(g)}}static fm(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=b.iV(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=b.iV(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=b.hV(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=b.hV(a.drills.columns)));null!=a.flatOrder&&(c.flatOrder=a.flatOrder);null!=a.flatSort&&(c.flatSort=a.flatSort);null!=a.drillThrough&&(c.drillThrough=a.drillThrough);null!=a.memberProperties&&(c.memberProperties=
a.memberProperties);null!=a.slice&&(a=a.slice,null!=a.pages&&a.pages.length&&(c.pages=a.pages),null!=a.reportFilters&&a.reportFilters.length&&(c.pages=a.reportFilters),null!=a.rows&&a.rows.length&&(c.rows=a.rows),null!=a.columns&&a.columns.length&&(c.columns=a.columns),null!=a.measures&&a.measures.length&&(c.measures=a.measures),null!=a.sorting&&null!=a.sorting.row&&(c.rowSorting=a.sorting.row),null!=a.sorting&&null!=a.sorting.column&&(c.columnSorting=a.sorting.column),null!=a.expands&&(null!=a.expands.expandAll&&
(c.expandAll=a.expands.expandAll),null!=a.expands.rows&&(c.expandedRows=b.iV(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=b.iV(a.expands.columns))),null!=a.drills&&(null!=a.drills.drillAll&&(c.drillAll=a.drills.drillAll),null!=a.drills.rows&&(c.drilledRows=b.hV(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=b.hV(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}XBa(a){for(var c=0;c<this.ob.length;c++)if(this.ob[c].uniqueName==a)return!0;for(c=0;c<this.rows.length;c++)if(this.rows[c].uniqueName==a)return!0;for(c=0;c<this.Ka.length;c++)if(this.Ka[c].uniqueName==a)return!0;return!1}}h.pp=b})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Vf={};this.Lf={};this.Xg=[];this.Lg=[];this.Uj={};this.Zk={};this.kh=[];this.uE=0}static zb(b){const a=new f;if(null==b)return a;null!=b.columnSizes&&"string"!=typeof b.columnSizes&&(a.Lf=b.columnSizes);null!=b.rowSizes&&"string"!=typeof b.rowSizes&&(a.Vf=b.rowSizes);null!=b.columnHeaderSizes&&"string"!=typeof b.columnHeaderSizes&&(a.Lg=b.columnHeaderSizes);null!=b.rowHeaderSizes&&"string"!=typeof b.rowHeaderSizes&&(a.Xg=b.rowHeaderSizes);
null!=b.rowFilterSizes&&"string"!=typeof b.rowFilterSizes&&(a.kh=b.rowFilterSizes);null!=b.columnSizesByIdx&&(a.Zk=b.columnSizesByIdx);null!=b.rowSizesByIdx&&(a.Uj=b.rowSizesByIdx);return a}static fm(b){var a={};if(void 0==b)return a;var c;if(null!=b.columns){var d=b.columns;for(c=0;c<d.length;c++)if(null!=d[c].idx&&(null==a.columnSizesByIdx&&(a.columnSizesByIdx={}),a.columnSizesByIdx[parseInt(d[c].idx)]=parseInt(d[c].width)),null!=d[c].tuple||null!=d[c].measure){null==a.columnSizes&&(a.columnSizes=
{});var g=null==d[c].tuple?[]:d[c].tuple.slice();null!=d[c].measure&&("string"==typeof d[c].measure?(g.push(d[c].measure),g.push("")):(g.push(d[c].measure.uniqueName?d[c].measure.uniqueName:""),g.push(d[c].measure.aggregation?d[c].measure.aggregation:"")));a.columnSizes[g.join(",")]=parseInt(d[c].width)}}if(null!=b.rows)for(d=b.rows,c=0;c<d.length;c++)if(null!=d[c].idx&&(null==a.rowSizesByIdx&&(a.rowSizesByIdx={}),a.rowSizesByIdx[parseInt(d[c].idx)]=parseInt(d[c].height)),null!=d[c].tuple||null!=
d[c].measure)null==a.rowSizes&&(a.rowSizes={}),g=null==d[c].tuple?[]:d[c].tuple.slice(),null!=d[c].measure&&("string"==typeof d[c].measure?(g.push(d[c].measure),g.push("")):(g.push(d[c].measure.uniqueName?d[c].measure.uniqueName:""),g.push(d[c].measure.aggregation?d[c].measure.aggregation:""))),a.rowSizes[g.join(",")]=parseInt(d[c].height);null!=b.columnSizes&&(a.columnSizes=b.columnSizes);null!=b.rowSizes&&(a.rowSizes=b.rowSizes);null!=b.columnHeaderSizes&&(a.columnHeaderSizes=b.columnHeaderSizes);
null!=b.rowHeaderSizes&&(a.rowHeaderSizes=b.rowHeaderSizes);null!=b.rowFilterSizes&&(a.rowFilterSizes=b.rowFilterSizes);null!=b.rowSizesByIdx&&(a.rowSizesByIdx=b.rowSizesByIdx);null!=b.columnSizesByIdx&&(a.columnSizesByIdx=b.columnSizesByIdx);return a}Qa(b){const a={};if(null!=this.Lg&&!u.Sc.Eg(this.Lg)||null!=this.Lf&&!u.Sc.Eg(this.Lf)){a.columns=[];if(null!=this.Lg&&!u.Sc.Eg(this.Lg))for(var c=0;c<this.Lg.length;c++)null!=this.Lg[c]&&a.columns.push({idx:c,width:this.Lg[c]});if(null!=this.Zk&&!u.Sc.Eg(this.Zk))for(var d in this.Zk)c=
parseInt(d),this.Zk.hasOwnProperty(d)&&!isNaN(c)&&a.columns.push({idx:c,width:this.Zk[d]});d=h.pp.gd(b.Ka);if(null!=this.Lf&&!u.Sc.Eg(this.Lf))for(var g in this.Lf)if(c=g.split(","),0<=d&&1<c.length){const m=c.pop(),n=c.pop();a.columns.push({tuple:c,measure:(new h.ah(n,m)).Qa(),width:this.Lf[g]})}else a.columns.push({tuple:c,width:this.Lf[g]})}if(null!=this.kh&&!u.Sc.Eg(this.kh)||null!=this.Xg&&!u.Sc.Eg(this.Xg)||null!=this.Vf&&!u.Sc.Eg(this.Vf)){a.rows=[];if(null!=this.kh&&!u.Sc.Eg(this.kh))for(g=
0;g<this.kh.length;g++)null!=this.kh[g]&&a.rows.push({idx:g,height:this.kh[g]});if(null!=this.Xg&&!u.Sc.Eg(this.Xg))for(g=0;g<this.Xg.length;g++)null!=this.Xg[g]&&a.rows.push({idx:g,height:this.Xg[g]});if(null!=this.Uj&&!u.Sc.Eg(this.Uj))for(var k in this.Uj)g=parseInt(k),this.Uj.hasOwnProperty(k)&&!isNaN(g)&&a.rows.push({idx:g,width:this.Uj[k]});b=h.pp.gd(b.rows);if(null!=this.Vf&&!u.Sc.Eg(this.Vf))for(const m in this.Vf)k=m.split(","),0<=b&&1<k.length?(g=k.pop(),d=k.pop(),a.rows.push({tuple:k,measure:(new h.ah(d,
g)).Qa(),height:this.Vf[m]})):a.rows.push({tuple:k,height:this.Vf[m]})}return a}Yo(){var b=z.ba.create("<view/>"),a;if(null!=this.Lg)for(a in this.Lg)if(null!=this.Lg[a]){var c=z.ba.create("<column/>").text(this.Lg[a]);c.attr("headerIdx",a);b.append(c)}if(null!=this.Lf)for(a in this.Lf)null!=this.Lf[a]&&(c=z.ba.create("<column/>").append(z.ba.Vh(this.Lf[a])),b.append(c));if(null!=this.kh)for(a in this.kh)null!=this.kh[a]&&(c=z.ba.create("<row/>").text(this.kh[a]),c.attr("filterIdx",a),b.append(c));
if(null!=this.Xg)for(a in this.Xg)null!=this.Xg[a]&&(c=z.ba.create("<row/>").text(this.Xg[a]),c.attr("headerIdx",a),b.append(c));if(null!=this.Vf)for(a in this.Vf)null!=this.Vf[a]&&(c=z.ba.create("<row/>").append(z.ba.Vh(this.Vf[a])),b.append(c));return b}clone(){const b=new f;var a={};for(const n in this.Lf)a[n]=this.Lf[n];b.Lf=a;a={};for(var c in this.Zk)a[c]=this.Zk[c];b.Zk=a;c=[];for(var d in this.Lg)c[parseInt(d)]=this.Lg[d];b.Lg=c;d={};for(var g in this.Vf)d[g]=this.Vf[g];b.Vf=d;g={};for(var k in this.Uj)g[k]=
this.Uj[k];b.Uj=g;k=[];for(var m in this.Xg)k[parseInt(m)+this.uE]=this.Xg[m];b.Xg=k;m=[];if(0!=this.uE)for(const n in this.kh)m[parseInt(n)]=this.kh[n];b.kh=m;return b}static wk(b){const a=new f;a.Lg=f.Wda(b.find("view column[headerIdx]"));a.Lf=f.jia(b.find("view column"));a.Xg=f.Wda(b.find("view row[headerIdx]"));a.Vf=f.jia(b.find("view row"));a.kh=f.Pxa(b.find("view row[filterIdx]"));return a}static Wda(b){for(var a=[],c=0;c<b.length;c++){var d=b[c];a[parseInt(d.attr("headerIdx"))]=parseInt(d.text())}return a}static Pxa(b){for(var a=
[],c=0;c<b.length;c++){var d=b[c];a[parseInt(d.attr("filterIdx"))]=parseInt(d.text())}return a}static jia(b){for(var a=[],c=0;c<b.length;c++){var d=b[c];e.v(d.attr("headerIdx"))&&e.v(d.attr("filterIdx"))&&0<d.text().length&&a.push(d.text().split(","))}return a}}h.Gv=f})(l.hb||(l.hb={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.De=new e.tb;this.Xc=new e.tb;this.Ax=new l.hb.Gv;this.Ge=null;this.labels={};this.OKa=this.lA=!1;this.Dm=[]}static kKa(a){if(null===a)return null;var c=new l.hb.Yx;c.lA=a.lA;c.ma=a.Ab.clone();a.Qb&&(c.slice=a.Qb.n5());c.options=a.C;var d=[];for(var g=0;g<a.De.length;g++)d[g]=a.De.ea(g).Qa();c.De=d;d=[];for(g=0;g<a.Xc.length;g++)d[g]=a.Xc.ea(g).Qa();c.Xc=d;c.Dm=a.Dm;c.labels=a.labels;c.Ax=a.Ax.clone();c.Ge=a.Ge;c.version=
e.ph.ft;c.mL=(new Date).toISOString();return c}}f.c9=b})(h.X||(h.X={}))})(l.jc||(l.jc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.pna=35;this.RQ=!1;this.Qra="a4";this.Hga=()=>this.bga();this.q0=this.t1=0}static V(){null==f.ze&&(f.ze=new f);return f.ze}static dispose(){f.ze=null}print(b=null){this.RQ||(this.RQ=!0,this.C=b||new l.Rs.J8,l.Va.V().N(e.vg.VA,this.Hga),l.Va.V().$a(e.vg.CX))}bga(){l.Va.V().sb(e.vg.VA,this.Hga);this.RQ=!1}pg(b,a=""){this.Y=b;this.la=null!=b?b.la:null;this.Yta=a||"";this.start()}start(){this.ll=0;var b=l.Ac.Xx.lH(this.Qra);this.LQ=b.NAa();
this.SY=b.Pza();this.ob=new x.Ea("div");this.$s=[];this.dI=this.oo=0;u.Cl.eo({Uo:()=>this.Xya(),$e:()=>this.finish()})}clear(){this.RQ=!1;this.oo=this.ll=this.dI=0;this.ob=this.Qs=null;this.q0=this.t1=0}Xya(){return this.isa()}isa(){if(null==this.Qs)this.Qs=this.jba(),this.dV=this.Qs.find("table");else if(!(this.Qs.uf(!0)<=this.LQ&&0!=this.oo)&&(this.Qs.uf(!0)>this.LQ&&(this.oo--,this.ZHa(this.Qs)),this.caa(),this.Qs=this.jba(),this.dV=this.Qs.find("table"),0==this.Y.Vi)){var b=this.oo;0!=this.oo&&
0<this.Y.op&&(this.oo=0,this.S$(),this.oo=b,this.oo+1<=this.la.coords.Kl&&(this.oo+=1))}this.S$();if(1==this.shift())this.caa();else return!1;return!0}ZHa(b){b=b.find("td:last-child",!0);for(let a=0;a<b.length;a++)b[a].remove()}jba(){var b=(new x.Ea("div")).$("page");b.R("position","absolute").R("left","-9999px");if(null!=this.C.Ui){var a=this.jL(this.C.Ui);b.append(a)}var c=new x.Ea("table");0==this.ll&&0<l.C.F.Pp.length&&c.append((new x.Ea("caption")).text(l.C.F.Pp));b.append(c);if(null!=this.C.pj){var d=
this.jL(this.C.pj);b.append(d)}this.Y.G.append(b);this.t1=null!=a?a.xd():0;this.q0=null!=d?d.xd():0;return b}jL(b){var a=new x.Ea("div");b=b.replace(/##PAGE-NUMBER##/gi,(this.ll+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());a.html(b);return a}caa(){this.ll++;e.Ca(!0,l.B.j.fF,this.ll+" "+l.B.j.m8,!0);this.Qs.detach();this.Qs.R("position","").R("left","").R("padding-top",this.pna.toString()+"px");this.ob.append(this.Qs)}shift(){++this.oo;this.oo>=this.Y.ug+this.la.coords.Kl&&
(this.oo=0,this.dI+=this.Jf-this.Y.nf+1);return 1E3<=this.ll||this.dI>=this.la.coords.Dp?!0:!1}S$(){this.sV=0;var b=this.Y.op+this.oo;if(!this.la.coords.Fo(NaN,b)){var a=this.SY-this.t1-this.q0;for(this.Jf=this.Y.Mi;this.sV<=a&&this.Jf<this.la.coords.Dp+this.Y.nf-this.dI;this.Jf++)if(this.rowIndex=this.Jf<this.Y.nf?this.Jf:this.Jf+this.dI,!this.la.coords.Fo(this.rowIndex,b)){var c=this.la.kg(this.rowIndex,b,!0);this.sV+=this.hsa(this.Jf,c);if(this.sV>=a)break}}}hsa(b,a){const c=e.K.Y.sheet.Ch.jt;
var d=this.dV.find("tr",!0);for(d=0<d.length?d[b]:null;null==d;)this.dV.append(new x.Ea("tr")),d=this.dV.find("tr",!0)[b];d.height=e.K.Y.sheet.Ch.mv;b="<td {0}>"+(a?a.J(!0):"")+"</td>";if(null==a)b=e.P.bind(b,"class='cell' style='width:"+c+"'");else{var g="",k="";a.Ku&&null!=a.style&&(k=a.style.hT(),g=a.style.PS(),this.IZ(a.style.sC));g=a.zi?g+(" rowHeaderCell level"+a.level):a.Nh?g+" columnHeaderCell":a.el?g+" filterHeaderCell":a.sz&&a.Ak&&""!=a.J(!0)?g+" grandTotalCell":a.Ak&&""!=a.J(!0)?g+" totalCell":
g+" cell";""!=g.trim()&&(g="class='"+g.trim()+"'");k=""!=k.trim()?"style='"+k.trim()+"max-width:200px'":"style='width:"+c+"px;'";b=e.P.bind(b,g+" "+k)}d.element.innerHTML+=b;return d.xd(!0)}IZ(b){for(var a=0;a<b.length;a++)0>this.$s.indexOf(b[a])&&this.$s.push(b[a])}finish(){e.Ca(!0,l.B.j.fF,"Sending pages to printer...",!1,!0);z.I8.print(this.Yta+this.ob.html(),this.y0(),l.C.F.Pp);e.Ca(!1);l.Va.V().$a(e.vg.VA);this.clear()}y0(){var b="",a=x.Ea.Vb(this.la.element),c=a.find(".fm-data-sheet");b+=e.P.bind("table{width:100%;border-collapse:collapse;{0}}\n",
e.K.Y.X.ed.dz(a,["font-family","font-size"]));b+=e.P.bind("caption{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.UX,a));b+=e.P.bind("td{white-space:nowrap;{0}}\n",u.Kd().DT?"":"border: 1px solid #eee;");b+=e.P.bind(".cell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le,c));b+=e.P.bind(".totalCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv,c));b+=e.P.bind(".grandTotalCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv+" "+e.K.Y.X.wa.jJ,c));b+=e.P.bind(".rowHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+
e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv,a));b+=e.P.bind(".columnHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.KA,a));b+=e.P.bind(".filterHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.zq,a));for(c=1;20>=c;c++)b+=e.P.bind(".level{0}{{1}}\n",c,e.K.Y.X.ed.bl(e.K.Y.X.wa.uv+" "+e.K.Y.X.wa.Hf+c,a,["padding-left"]));for(c=0;c<this.$s.length;c++)b+=e.P.bind(".{0}{{1}}\n",this.$s[c],e.K.Y.X.ed.bl(this.$s[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.jF=f})(l.Rs||(l.Rs={}))})(e.model||(e.model={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static zb(b){var a=new f;null!=b&&(null!=b.header&&(a.Ui=b.header),null!=b.footer&&(a.pj=b.footer));return a}}h.J8=f})(l.Rs||(l.Rs={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();f.Sd=new h.Eq;f.Sd.iE();f.C=new h.Eq;if(f.instance)throw Error("Singleton");}static V(){e.v(f.instance)&&(f.instance=new f);return f.instance}static dispose(){f.rB&&(f.rB.Sd=null);f.rB=null;f.C=null;f.Sd=null;f.instance=null}static eJa(b){f.rB=b}static Kw(b=!1,a=!1){const c=new h.Eq;b&&c.FD(f.Sd);a&&c.FD(f.rB);c.FD(f.C);!b&&c.pua();return c}static clear(){this.C=new h.Eq}static qq(b,a=!0,c=!0){if(e.v(f.C)||a)a=f.yn,
f.C=new h.Eq,f.C.na("configuratorOpened",a);b=h.Eq.fm(b);a=!1;f.M_=!0;const d=f.Kw(!0,!0);for(let g in b)if(void 0!=d[g]&&b[g]!=d[g]&&(a=!0,f.Lz(g))){f.cv=!0;break}f.C.FD(b);e.u.O.ht.RI=f.Bba;f.M_=!1;a&&c&&f.bb()}static Lz(b){return-1<f.Pra.indexOf(b)}static U(b){return f.C&&null!=f.C[b]?f.C[b]:f.rB&&null!=f.rB[b]?f.rB[b]:f.Sd?f.Sd[b]:null}static get yn(){return f.C.U("configuratorOpened")}static set yn(b){f.C.na("configuratorOpened",b)}static get pC(){return f.U("configuratorActive")}static set pC(b){if(f.C.U("configuratorActive")!=
b){const a=!e.v(f.C.U("configuratorActive"));f.C.na("configuratorOpened",b);f.C.na("configuratorActive",b);a&&f.bb()}}static get IR(){return this.readOnly?this.JB.configuratorButton:f.U("configuratorButton")}static set IR(b){if(f.C.U("configuratorButton")!=b){const a=!e.v(f.C.U("configuratorButton"));f.C.na("configuratorButton",b);a&&f.bb()}}static get je(){return f.U("viewType")}static set je(b){if(f.C.U("viewType")!=b){b=e.K.Id.Ug(b)?b:f.Sd.U("viewType");const a=!(e.v(f.C.U("viewType"))&&f.Sd.U("viewType")==
b);f.C.na("viewType",b);a&&f.bb()}}static get zm(){return f.U("chartTitle")}static set zm(b){if(f.C.U("chartTitle")!=b){const a=!e.v(f.C.U("chartTitle"));f.C.na("chartTitle",b);a&&f.bb()}}static get pk(){return f.U("gridType")==e.K.Y.te.nv}static set pk(b){f.C.U("gridType")!=e.K.Y.te.nv&&(b=!e.v(f.C.U("gridType")),f.C.na("gridType",e.K.Y.te.nv),f.cv=f.Lz("gridType"),b&&f.bb())}static get rc(){return f.U("gridType")==e.K.Y.te.Bh}static set rc(b){if(1==b&&f.C.U("gridType")!=e.K.Y.te.Bh){const a=!e.v(f.C.U("gridType"));
f.C.na("gridType",e.K.Y.te.Bh);f.cv=f.Lz("gridType");a&&f.bb()}0==b&&f.C.U("gridType")==e.K.Y.te.Bh&&(f.C.na("gridType",e.K.Y.te.uA),f.cv=f.Lz("gridType"),f.bb())}static get hD(){return f.U("gridType")}static set hD(b){if(f.C.U("gridType")!=b){const a=!e.v(f.C.U("gridType"));f.C.na("gridType",b);a&&f.bb()}}static get Pp(){return f.U("gridTitle")}static set Pp(b){if(f.C.U("gridTitle")!=b){const a=!e.v(f.C.U("gridTitle"));f.C.na("gridTitle",b);a&&f.bb()}}static get WK(){return f.U("chartType")}static set WK(b){b=
e.K.Bd.Me.validate(b);if(f.C.U("chartType")!=b){const a=!e.v(f.C.U("chartType"));f.C.na("chartType",b);a&&f.bb()}}static get ko(){return f.U("chartOneLevel")}static set ko(b){if(f.C.U("chartOneLevel")!=b){const a=!e.v(f.C.U("chartOneLevel"));f.C.na("chartOneLevel",b);a&&f.bb()}}static get du(){return f.U("chartOneLevelTuple")}static set du(b){if(f.C.U("chartOneLevelTuple")!=b){const a=!e.v(f.C.U("chartOneLevelTuple"));f.C.na("chartOneLevelTuple",b);a&&f.bb()}}static get cC(){return f.U("chartOneLevelColumnTuple")}static set cC(b){if(f.C.U("chartOneLevelColumnTuple")!=
b){const a=!e.v(f.C.U("chartOneLevelColumnTuple"));f.C.na("chartOneLevelColumnTuple",b);a&&f.bb()}}static get pG(){return f.U("chartMultipleMeasures")}static set pG(b){if(f.C.U("chartMultipleMeasures")!=b){const a=!e.v(f.C.U("chartMultipleMeasures"));f.C.na("chartMultipleMeasures",b);a&&f.bb()}}static get oG(){return f.U("chartActiveMeasures")}static set oG(b){if(f.C.U("chartActiveMeasures")!=b){const a=!e.v(f.C.U("chartActiveMeasures"));f.C.na("chartActiveMeasures",b);a&&f.bb()}}static get io(){return f.U("chartActiveMeasure")}static set io(b){if(f.C.U("chartActiveMeasure")!=
b){const a=!e.v(f.C.U("chartActiveMeasures"));f.C.na("chartActiveMeasure",b);a&&f.bb()}}static get VK(){return f.U("chartActiveTupleIndex")}static set VK(b){if(f.C.U("chartActiveTupleIndex")!=b){const a=!e.v(f.C.U("chartActiveTupleIndex"));f.C.na("chartActiveTupleIndex",b);a&&f.bb()}}static get Iy(){return f.U("chartPosition")}static set Iy(b){if(f.C.U("chartPosition")!=b){const a=!e.v(f.C.U("chartPosition"));f.C.na("chartPosition",b);a&&f.bb()}}static get pR(){return f.U("chartReversedAxes")}static set pR(b){if(f.C.U("chartReversedAxes")!=
b){const a=!e.v(f.C.U("chartReversedAxes"));f.C.na("chartReversedAxes",b);a&&f.bb()}}static get cu(){return f.U("chartAutoRange")}static set cu(b){if(f.C.U("chartAutoRange")!=b){const a=!e.v(f.C.U("chartAutoRange"));f.C.na("chartAutoRange",b);a&&f.bb()}}static get bC(){return f.U("chartAxisShortNumberFormat")}static set bC(b){if(f.C.U("chartAxisShortNumberFormat")!=b){const a=!e.v(f.C.U("chartAxisShortNumberFormat"));f.C.na("chartAxisShortNumberFormat",b);a&&f.bb()}}static get yx(){return this.readOnly?
this.JB.showFilter:f.U("showFilter")}static set yx(b){if(f.C.U("showFilter")!=b){const a=!e.v(f.C.U("showFilter"));f.C.na("showFilter",b);a&&f.bb()}}static get dia(){return this.readOnly?this.JB.showFilterInCharts:f.U("showFilterInCharts")}static set dia(b){if(f.C.U("showFilterInCharts")!=b){const a=!e.v(f.C.U("showFilterInCharts"));f.C.na("showFilterInCharts",b);a&&f.bb()}}static get K4(){return f.U("showDefaultSlice")}static set K4(b){if(f.C.U("showDefaultSlice")!=b){const a=!e.v(f.C.U("showDefaultSlice"));
f.C.na("showDefaultSlice",b);a&&f.bb()}}static get vq(){return f.U("useOlapFormatting")}static set vq(b){if(f.C.U("useOlapFormatting")!=b){const a=!e.v(f.C.U("useOlapFormatting"));f.C.na("useOlapFormatting",b);a&&f.bb()}}static get jI(){return f.U("showMemberProperties")}static set jI(b){if(f.C.U("showMemberProperties")!=b){const a=!e.v(f.C.U("showMemberProperties"));f.C.na("showMemberProperties",b);a&&f.bb()}}static get pE(){return f.U("showEmptyData")}static set pE(b){if(f.C.U("showEmptyData")!=
b){const a=!e.v(f.C.U("showEmptyData"));f.C.na("showEmptyData",b);a&&f.bb()}}static get Yha(){return f.U("showChartDataLabels")}static set Yha(b){if(f.C.U("showChartDataLabels")!=b){const a=!e.v(f.C.U("showChartDataLabels"));f.C.na("showChartDataLabels",b);a&&f.bb()}}static get Wha(){return f.U("showAllChartLabels")}static set Wha(b){if(f.C.U("showAllChartLabels")!=b){const a=!e.v(f.C.U("showAllChartLabels"));f.C.na("showAllChartLabels",b);a&&f.bb()}}static get rl(){return f.U("showAggregations")}static set rl(b){if(f.C.U("showAggregations")!=
b){const a=!e.v(f.C.U("showAggregations"));f.C.na("showAggregations",b);a&&f.bb()}}static get Zs(){return f.U("showHierarchyCaptions")}static set Zs(b){if(f.C.U("showHierarchyCaptions")!=b){const a=!e.v(f.C.U("showHierarchyCaptions"));f.C.na("showHierarchyCaptions",b);a&&f.bb()}}static get LG(){return f.U("drillthroughMaxRows")}static set LG(b){if(f.C.U("drillthroughMaxRows")!=b){const a=!e.v(f.C.U("drillthroughMaxRows"));f.C.na("drillthroughMaxRows",b);a&&f.bb()}}static get F4(){return f.U("showAllFieldsDrillThrough")}static set F4(b){if(f.C.U("showAllFieldsDrillThrough")!=
b){const a=!e.v(f.C.U("showAllFieldsDrillThrough"));f.C.na("showAllFieldsDrillThrough",b);a&&f.bb()}}static get L4(){return f.U("showFieldListSearch")}static set L4(b){if(f.C.U("showFieldListSearch")!=b){const a=!e.v(f.C.U("showFieldListSearch"));f.C.na("showFieldListSearch",b);a&&f.bb()}}static get iI(){return f.U("showExtraTotalLabels")}static set iI(b){if(f.C.U("showExtraTotalLabels")!=b){const a=!e.v(f.C.U("showExtraTotalLabels"));f.C.na("showExtraTotalLabels",b);a&&f.bb()}}static get sl(){return f.U("showHeaders")}static set sl(b){if(f.C.U("showHeaders")!=
b){const a=!e.v(f.C.U("showHeaders"));f.C.na("showHeaders",b);a&&f.bb()}}static get Bj(){return this.readOnly?this.JB.sorting:f.U("sorting")}static set Bj(b){if(f.C.U("sorting")!=b){const a=!e.v(f.C.U("sorting"));f.C.na("sorting",b);a&&f.bb()}}static get kT(){return e.u.Ra.V().ga.Da===e.u.i.qa.API||e.u.Ra.V().ga.Gc?!1:f.U("grouping")}static set kT(b){if(f.C.U("grouping")!=b){const a=!e.v(f.C.U("grouping"));f.C.na("grouping",b);a&&f.bb()}}static get EC(){return f.U("editing")}static set EC(b){if(f.C.U("editing")!=
b){const a=!e.v(f.C.U("editing"));f.C.na("editing",b);a&&f.bb()}}static get bd(){return this.readOnly?this.JB.drillThrough:f.U("drillThrough")}static set bd(b){if(f.C.U("drillThrough")!=b){const a=!e.v(f.C.U("drillThrough"));f.C.na("drillThrough",b);a&&f.bb()}}static get cia(){return f.U("showDrillThroughConfigurator")}static set cia(b){if(f.C.U("showDrillThroughConfigurator")!=b){const a=!e.v(f.C.U("showDrillThroughConfigurator"));f.C.na("showDrillThroughConfigurator",b);a&&f.bb()}}static get qE(){return f.U("showHierarchies")}static set qE(b){if(f.C.U("showHierarchies")!=
b){const a=!e.v(f.C.U("showHierarchies"));f.C.na("showHierarchies",b);a&&f.bb()}}static get aia(){return f.U("showChartsWarning")}static set aia(b){if(f.C.U("showChartsWarning")!=b){const a=!e.v(f.C.U("showChartsWarning"));f.C.na("showChartsWarning",b);a&&f.bb()}}static get Zha(){return f.U("showChartLegend")}static set Zha(b){if(f.C.U("showChartLegend")!=b){const a=!e.v(f.C.U("showChartLegend"));f.C.na("showChartLegend",b);a&&f.bb()}}static get H4(){return f.U("showChartLegendButton")}static set H4(b){if(f.C.U("showChartLegendButton")!=
b){const a=!e.v(f.C.U("showChartLegendButton"));f.C.na("showChartLegendButton",b);a&&f.bb()}}static get uV(){return f.U("saveAllFormats")}static set uV(b){if(f.C.U("saveAllFormats")!=b){const a=!e.v(f.C.U("saveAllFormats"));f.C.na("saveAllFormats",b);a&&f.bb()}}static get bu(){return f.U("calculatedValuesOLAP")}static set bu(b){if(f.C.U("calculatedValuesOLAP")!=b){const a=!e.v(f.C.U("calculatedValuesOLAP"));f.C.na("calculatedValuesOLAP",b);a&&f.bb()}}static get C1(){return f.U("includeEmptySubtotalsOLAP")}static set C1(b){if(f.C.U("includeEmptySubtotalsOLAP")!=
b){const a=!e.v(f.C.U("includeEmptySubtotalsOLAP"));f.C.na("includeEmptySubtotalsOLAP",b);a&&f.bb()}}static get I4(){return f.U("showChartOneMeasureSelection")}static set I4(b){if(f.C.U("showChartOneMeasureSelection")!=b){const a=!e.v(f.C.U("showChartOneMeasureSelection"));f.C.na("showChartOneMeasureSelection",b);a&&f.bb()}}static get $ha(){return this.readOnly?this.JB.showChartMeasures:f.U("showChartMeasures")}static set $ha(b){if(f.C.U("showChartMeasures")!=b){const a=!e.v(f.C.U("showChartMeasures"));
f.C.na("showChartMeasures",b);a&&f.bb()}}static get Cf(){return f.U("showTotals")}static set Cf(b){if(f.C.U("showTotals")!=b){const a=!e.v(f.C.U("showTotals"));f.C.na("showTotals",b);f.cv=f.Lz("showTotals");a&&f.bb()}}static get Xha(){return f.U("showAutoCalculationBar")}static set Xha(b){if(f.C.U("showAutoCalculationBar")!=b){const a=!e.v(f.C.U("showAutoCalculationBar"));f.C.na("showAutoCalculationBar",b);a&&f.bb()}}static get Bf(){return f.U("showGrandTotals")}static set Bf(b){if(f.C.U("showGrandTotals")!=
b){const a=!e.v(f.C.U("showGrandTotals"));f.C.na("showGrandTotals",b);f.cv=f.Lz("showGrandTotals");a&&f.bb()}}static get Je(){return f.U("strictDataTypes")}static set Je(b){if(f.C.U("strictDataTypes")!==b){const a=!e.v(f.C.U("strictDataTypes"));f.C.na("strictDataTypes",b);a&&f.bb()}}static get qL(){return f.U("defaultDateType")}static set qL(b){if(f.C.U("defaultDateType")!=b&&e.u.i.input.sa.valid(b)){const a=!e.v(f.C.U("defaultDateType"));f.C.na("defaultDateType",b);a&&f.bb()}}static get Ep(){return f.U("datePattern")}static set Ep(b){if(f.C.U("datePattern")!=
b){const a=!e.v(f.C.U("datePattern"));f.C.na("datePattern",b);a&&f.bb()}}static get rk(){return f.U("dateTimePattern")}static set rk(b){if(f.C.U("dateTimePattern")!=b){const a=!e.v(f.C.U("dateTimePattern"));f.C.na("dateTimePattern",b);a&&f.bb()}}static get Wo(){return f.U("timePattern")}static set Wo(b){if(f.C.U("timePattern")!=b){const a=!e.v(f.C.U("timePattern"));f.C.na("timePattern",b);a&&f.bb()}}static get Mj(){return f.U("dateTimezoneOffset")}static set Mj(b){if(f.C.U("dateTimezoneOffset")!=
b){const a=!e.v(f.C.U("dateTimezoneOffset"));f.C.na("dateTimezoneOffset",b);a&&f.bb()}}static get G4(){return f.U("showCalculatedValuesButton")}static set G4(b){if(f.C.U("showCalculatedValuesButton")!=b){const a=!e.v(f.C.U("showCalculatedValuesButton"));f.C.na("showCalculatedValuesButton",b);a&&f.bb()}}static get PV(){return f.U("showOutdatedDataAlert")}static set PV(b){if(f.C.U("showOutdatedDataAlert")!=b){const a=!e.v(f.C.U("showOutdatedDataAlert"));f.C.na("showOutdatedDataAlert",b);a&&f.bb()}}static get Bba(){return f.U("defaultHierarchySortName")}static set Bba(b){if(f.C.U("defaultHierarchySortName")!=
b){const a=!e.v(f.C.U("defaultHierarchySortName"));f.C.na("defaultHierarchySortName",b);a&&f.bb()}}static get xx(){return f.U("showAggregationLabels")}static set xx(b){if(f.C.U("showAggregationLabels")!=b){const a=!e.v(f.C.U("showAggregationLabels"));f.C.na("showAggregationLabels",b);a&&f.bb()}}static get uH(){return f.U("grandTotalsPosition")}static set uH(b){if(f.C.U("grandTotalsPosition")!=b){const a=!e.v(f.C.U("grandTotalsPosition"));f.C.na("grandTotalsPosition",b);f.cv=f.Lz("grandTotalsPosition");
a&&f.bb()}}static get $K(){return f.U("columnTotalsPosition")}static set $K(b){if(f.C.U("columnTotalsPosition")!=b){const a=!e.v(f.C.U("columnTotalsPosition"));f.C.na("columnTotalsPosition",b);f.cv=f.Lz("columnTotalsPosition");a&&f.bb()}}static get kI(){return f.U("showReportFiltersArea")}static set kI(b){if(f.C.U("showReportFiltersArea")!=b){const a=!e.v(f.C.U("showReportFiltersArea"));f.C.na("showReportFiltersArea",b);a&&f.bb()}}static get Uy(){return this.readOnly?this.JB.dragging:f.U("dragging")}static set Uy(b){if(f.C.U("dragging")!=
b){const a=!e.v(f.C.U("dragging"));f.C.na("dragging",b);a&&f.bb()}}static get Gw(){return f.U("filterWeekOffset")}static set Gw(b){if(f.C.U("filterWeekOffset")!=b){const a=!e.v(f.C.U("filterWeekOffset"));f.C.na("filterWeekOffset",b);a&&f.bb()}}static get n0(){return f.U("filterDateFormat")}static set n0(b){if(f.C.U("filterDateFormat")!=b){const a=!e.v(f.C.U("filterDateFormat"));f.C.na("filterDateFormat",b);a&&f.bb()}}static get vS(){return f.U("filterLiveSearch")}static set vS(b){if(f.C.U("filterLiveSearch")!=
b){const a=!e.v(f.C.U("filterLiveSearch"));f.C.na("filterLiveSearch",b);a&&f.bb()}}static get Nm(){return f.U("liveFiltering")}static set Nm(b){if(f.C.U("liveFiltering")!=b){const a=!e.v(f.C.U("liveFiltering"));f.C.na("liveFiltering",b);a&&f.bb()}}static get FC(){return f.U("fieldListPosition")}static set FC(b){if(f.C.U("fieldListPosition")!=b){const a=!e.v(f.C.U("fieldListPosition"));f.C.na("fieldListPosition",b);a&&f.bb()}}static get YN(){return f.U("validateFormulas")}static set YN(b){if(f.C.U("validateFormulas")!=
b){const a=!e.v(f.C.U("validateFormulas"));f.C.na("validateFormulas",b);a&&f.bb()}}static get jw(){return f.U("caseSensitiveMembers")}static set jw(b){if(f.C.U("caseSensitiveMembers")!=b){const a=!e.v(f.C.U("caseSensitiveMembers"));f.C.na("caseSensitiveMembers",b);a&&f.bb()}}static get iia(){return f.U("simplifyFieldListFolders")}static set iia(b){if(f.C.U("simplifyFieldListFolders")!=b){const a=!e.v(f.C.U("simplifyFieldListFolders"));f.C.na("simplifyFieldListFolders",b);a&&f.bb()}}static get A5(){return f.U("validateReportFiles")}static set A5(b){if(f.C.U("validateReportFiles")!=
b){const a=!e.v(f.C.U("validateReportFiles"));f.C.na("validateReportFiles",b);a&&f.bb()}}static get hR(){return f.U("allowBrowsersCache")}static set hR(b){if(f.C.U("allowBrowsersCache")!=b){const a=!e.v(f.C.U("allowBrowsersCache"));f.C.na("allowBrowsersCache",b);a&&f.bb()}}static get Ys(){return f.U("showEmptyValues")}static set Ys(b){if(f.C.U("showEmptyValues")!=b){const a=!e.v(f.C.U("showEmptyValues"));f.C.na("showEmptyValues",b);a&&f.bb()}}static get br(){return f.U("distinguishNullUndefinedEmpty")}static set br(b){if(f.C.U("distinguishNullUndefinedEmpty")!=
b){const a=!e.v(f.C.U("distinguishNullUndefinedEmpty"));f.C.na("distinguishNullUndefinedEmpty",b);a&&f.bb()}}static get lW(){return f.U("useCaptionsInCalculatedValueEditor")}static set lW(b){if(f.C.U("useCaptionsInCalculatedValueEditor")!=b){const a=!e.v(f.C.U("useCaptionsInCalculatedValueEditor"));f.C.na("useCaptionsInCalculatedValueEditor",b);a&&f.bb()}}static get mS(){return f.U("expandExecutionTimeout")}static set mS(b){if(f.C.U("expandExecutionTimeout")!=b){const a=!e.v(f.C.U("expandExecutionTimeout"));
f.C.na("expandExecutionTimeout",b);a&&f.bb()}}static get readOnly(){return f.U("readOnly")}static set readOnly(b){if(f.C.U("readOnly")!=b){const a=!e.v(f.C.U("readOnly"));f.C.na("readOnly",b);a&&f.bb()}}static bb(){f.M_||f.V().Fa(new v.fa(l.jc.nd.dn))}}f.cv=!1;f.M_=!1;f.Pra=["gridType","showTotals","showGrandTotals","grandTotalsPosition","columnTotalsPosition"];f.JB={showFilter:!1,dragging:!1,showFilterInCharts:!1,showChartMeasures:!1,configuratorButton:!1,sorting:"off",drillThrough:!1};h.F=f})(l.C||
(l.C={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.Sd={configuratorActive:!1,configuratorOpened:!1,configuratorButton:!0,viewType:e.K.Id.ot,chartTitle:"",gridType:e.K.Y.te.uA,gridTitle:"",chartType:e.K.Bd.Me.tA,chartOneLevel:!1,chartOneLevelTuple:[],chartOneLevelColumnTuple:[],chartMultipleMeasures:!1,chartActiveMeasure:{},chartActiveMeasures:[],chartActiveTupleIndex:0,chartPosition:"bottom",chartAutoRange:!1,chartReversedAxes:!1,chartAxisShortNumberFormat:null,showFilter:!0,showFilterInCharts:!0,
showDefaultSlice:!0,useOlapFormatting:!1,showMemberProperties:!1,showEmptyData:!0,showAggregations:!0,showHierarchyCaptions:!0,drillthroughMaxRows:1E3,showAllFieldsDrillThrough:!1,showChartDataLabels:!1,showAllChartLabels:!1,showHeaders:!0,showReportFiltersArea:!0,showExtraTotalLabels:!1,showFieldListSearch:!1,drillThrough:!0,showDrillThroughConfigurator:!0,editing:!1,grouping:!1,sorting:"on",dragging:!0,showHierarchies:!0,showChartsWarning:!0,showChartLegend:!0,showChartLegendButton:!1,saveAllFormats:!1,
calculatedValuesOLAP:!1,includeEmptySubtotalsOLAP:!1,showChartOneMeasureSelection:!0,showChartMeasures:!0,showTotals:"on",showGrandTotals:"on",strictDataTypes:!1,defaultDateType:e.u.i.input.sa.Sa,datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm:ss",dateTimezoneOffset:null,timePattern:null,showCalculatedValuesButton:!0,showOutdatedDataAlert:!1,defaultHierarchySortName:e.u.i.za.ic,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}}na(b,a){this[b]=a}U(b){return this[b]}iE(){for(var b in this.Sd)this[b]=this.Sd[b]}pua(){if(!e.v(void 0))for(var b=0;b<(void 0).length;b++){var a=(void 0)[b];void 0!=
this[a]&&(this[a]==this.Sd[a]||"object"==typeof this[a]&&u.Sc.Eg(this[a])&&u.Sc.Eg(this.Sd[a]))&&(this[a]=void 0)}else for(a in this.Sd)if(this[a]==this.Sd[a]||"object"==typeof this[a]&&u.Sc.Eg(this[a])&&u.Sc.Eg(this.Sd[a]))this[a]=void 0}static zb(b){var a=new f;if(void 0==b)return a;null!=b.options&&(b=b.options);b instanceof f||(b=f.fm(b));null!=b.configuratorActive&&a.na("configuratorActive",b.configuratorActive);null!=b.configuratorButton&&a.na("configuratorButton",b.configuratorButton);null!=
b.viewType&&e.K.Id.Ug(b.viewType)&&a.na("viewType",b.viewType);null!=b.chartTitle&&a.na("chartTitle",b.chartTitle);null!=b.gridTitle&&a.na("gridTitle",b.gridTitle);null!=b.chartType&&a.na("chartType",e.K.Bd.Me.validate(b.chartType));null!=b.chartOneLevel&&a.na("chartOneLevel",b.chartOneLevel);null!=b.chartOneLevelTuple&&a.na("chartOneLevelTuple",b.chartOneLevelTuple);null!=b.chartOneLevelColumnTuple&&a.na("chartOneLevelColumnTuple",b.chartOneLevelColumnTuple);null!=b.chartActiveMeasure&&a.na("chartActiveMeasure",
b.chartActiveMeasure);null!=b.chartActiveMeasures&&a.na("chartActiveMeasures",b.chartActiveMeasures);null!=b.chartActiveTupleIndex&&a.na("chartActiveTupleIndex",b.chartActiveTupleIndex);null!=b.chartAutoRange&&a.na("chartAutoRange",b.chartAutoRange);null!=b.chartReversedAxes&&a.na("chartReversedAxes",b.chartReversedAxes);null!=b.chartPosition&&a.na("chartPosition",b.chartPosition);null!=b.chartAxisShortNumberFormat&&a.na("chartAxisShortNumberFormat",b.chartAxisShortNumberFormat);null!=b.classicView&&
1==b.classicView&&a.na("gridType",e.K.Y.te.nv);null!=b.tableType&&b.tableType==e.K.Y.te.Bh&&a.na("gridType",e.K.Y.te.Bh);null!=b.flatView&&1==b.flatView&&a.na("gridType",e.K.Y.te.Bh);null!=b.gridType&&a.na("gridType",b.gridType);null!=b.showAutoCalculationBar&&a.na("showAutoCalculationBar",b.showAutoCalculationBar);null!=b.liveFiltering&&a.na("liveFiltering",b.liveFiltering);null!=b.fieldListPosition&&a.na("fieldListPosition",b.fieldListPosition);null!=b.showFilter&&a.na("showFilter",b.showFilter);
null!=b.showDefaultSlice&&a.na("showDefaultSlice",b.showDefaultSlice);null!=b.useOlapFormatting&&a.na("useOlapFormatting",b.useOlapFormatting);null!=b.showMemberProperties&&a.na("showMemberProperties",b.showMemberProperties);null!=b.showEmptyData&&a.na("showEmptyData",b.showEmptyData);null!=b.showFilterInCharts&&a.na("showFilterInCharts",b.showFilterInCharts);null!=b.showAggregations&&a.na("showAggregations",b.showAggregations);null!=b.showHierarchyCaptions&&a.na("showHierarchyCaptions",b.showHierarchyCaptions);
null!=b.drillthroughMaxRows&&a.na("drillthroughMaxRows",b.drillthroughMaxRows);null!=b.showAllFieldsDrillThrough&&a.na("showAllFieldsDrillThrough",b.showAllFieldsDrillThrough);null!=b.showFieldListSearch&&a.na("showFieldListSearch",b.showFieldListSearch);null!=b.showChartDataLabels&&a.na("showChartDataLabels",b.showChartDataLabels);null!=b.showAllChartLabels&&a.na("showAllChartLabels",b.showAllChartLabels);null!=b.chartMultipleMeasures&&a.na("chartMultipleMeasures",b.chartMultipleMeasures);null!=
b.showHeaders&&a.na("showHeaders",b.showHeaders);null!=b.showReportFiltersArea&&a.na("showReportFiltersArea",b.showReportFiltersArea);null!=b.showExtraTotalLabels&&a.na("showExtraTotalLabels",b.showExtraTotalLabels);null!=b.grouping&&a.na("grouping",b.grouping);null!=b.editing&&a.na("editing",b.editing);null!=b.drillThrough&&a.na("drillThrough",b.drillThrough);null!=b.showDrillThroughConfigurator&&a.na("showDrillThroughConfigurator",b.showDrillThroughConfigurator);null!=b.sorting&&(a.na("sorting",
b.sorting),"true"==a.U("sorting").toString().toLowerCase()&&a.na("sorting","on"),"false"==a.U("sorting").toString().toLowerCase()&&a.na("sorting","off"));null!=b.dragging&&a.na("dragging",b.dragging);null!=b.showHierarchies&&a.na("showHierarchies",b.showHierarchies);null!=b.showChartsWarning&&a.na("showChartsWarning",b.showChartsWarning);null!=b.showChartLegend&&a.na("showChartLegend",b.showChartLegend);null!=b.showChartLegendButton&&a.na("showChartLegendButton",b.showChartLegendButton);null!=b.saveAllFormats&&
a.na("saveAllFormats",b.saveAllFormats);null!=b.calculatedValuesOLAP&&a.na("calculatedValuesOLAP",b.calculatedValuesOLAP);null!=b.includeEmptySubtotalsOLAP&&a.na("includeEmptySubtotalsOLAP",b.includeEmptySubtotalsOLAP);null!=b.showChartOneMeasureSelection&&a.na("showChartOneMeasureSelection",b.showChartOneMeasureSelection);null!=b.showChartMeasures&&a.na("showChartMeasures",b.showChartMeasures);null!=b.showTotals&&(a.na("showTotals",b.showTotals),"true"==a.U("showTotals").toString().toLowerCase()&&
a.na("showTotals","on"),"false"==a.U("showTotals").toString().toLowerCase()&&a.na("showTotals","off"));null!=b.showGrandTotals&&(a.na("showGrandTotals",b.showGrandTotals),"true"==a.U("showGrandTotals").toString().toLowerCase()&&a.na("showGrandTotals","on"),"false"==a.U("showGrandTotals").toString().toLowerCase()&&a.na("showGrandTotals","off"));null!=b.defaultDateType&&a.na("defaultDateType",b.defaultDateType);null!=b.strictDataTypes&&a.na("strictDataTypes",b.strictDataTypes);null!=b.datePattern&&
a.na("datePattern",b.datePattern);null!=b.dateTimePattern&&a.na("dateTimePattern",b.dateTimePattern);null!=b.dateTimezoneOffset&&a.na("dateTimezoneOffset",b.dateTimezoneOffset);null!=b.timePattern&&a.na("timePattern",b.timePattern);null!=b.showCalculatedValuesButton&&a.na("showCalculatedValuesButton",b.showCalculatedValuesButton);null!=b.showOutdatedDataAlert&&a.na("showOutdatedDataAlert",b.showOutdatedDataAlert);null!=b.defaultHierarchySortName&&a.na("defaultHierarchySortName",b.defaultHierarchySortName);
null!=b.showAggregationLabels&&a.na("showAggregationLabels",b.showAggregationLabels);null!=b.grandTotalsPosition&&a.na("grandTotalsPosition",b.grandTotalsPosition);null!=b.columnTotalsPosition&&a.na("columnTotalsPosition",b.columnTotalsPosition);e.v(b.filterWeekOffset)||a.na("filterWeekOffset",b.filterWeekOffset);e.v(b.filterDateFormat)||a.na("filterDateFormat",b.filterDateFormat);e.v(b.filterLiveSearch)||a.na("filterLiveSearch",b.filterLiveSearch);e.v(b.caseSensitiveMembers)||a.na("caseSensitiveMembers",
b.caseSensitiveMembers);e.v(b.validateFormulas)||a.na("validateFormulas",b.validateFormulas);e.v(b.simplifyFieldListFolders)||a.na("simplifyFieldListFolders",b.simplifyFieldListFolders);e.v(b.validateReportFiles)||a.na("validateReportFiles",b.validateReportFiles);e.v(b.allowBrowsersCache)||a.na("allowBrowsersCache",b.allowBrowsersCache);e.v(b.showEmptyValues)||a.na("showEmptyValues",b.showEmptyValues);e.v(b.distinguishNullUndefinedEmpty)||a.na("distinguishNullUndefinedEmpty",b.distinguishNullUndefinedEmpty);
e.v(b.useCaptionsInCalculatedValueEditor)||a.na("useCaptionsInCalculatedValueEditor",b.useCaptionsInCalculatedValueEditor);!e.v(b.expandExecutionTimeout)&&b.expandExecutionTimeout>a.Sd.expandExecutionTimeout&&a.na("expandExecutionTimeout",parseInt(b.expandExecutionTimeout));e.v(b.readOnly)||a.na("readOnly",b.readOnly);return a}static fm(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);e.v(b.filterWeekOffset)||(a.filterWeekOffset=b.filterWeekOffset);e.v(b.filterDateFormat)||(a.filterDateFormat=b.filterDateFormat);e.v(b.filterLiveSearch)||
(a.filterLiveSearch=b.filterLiveSearch);e.v(b.validateFormulas)||(a.validateFormulas=b.validateFormulas);e.v(b.caseSensitiveMembers)||(a.caseSensitiveMembers=b.caseSensitiveMembers);e.v(b.simplifyFieldListFolders)||(a.simplifyFieldListFolders=b.simplifyFieldListFolders);e.v(b.validateReportFiles)||(a.validateReportFiles=b.validateReportFiles);e.v(b.allowBrowsersCache)||(a.allowBrowsersCache=b.allowBrowsersCache);e.v(b.showEmptyValues)||(a.showEmptyValues=b.showEmptyValues);e.v(b.distinguishNullUndefinedEmpty)||
(a.distinguishNullUndefinedEmpty=b.distinguishNullUndefinedEmpty);e.v(b.useCaptionsInCalculatedValueEditor)||(a.useCaptionsInCalculatedValueEditor=b.useCaptionsInCalculatedValueEditor);e.v(b.expandExecutionTimeout)||(a.expandExecutionTimeout=b.expandExecutionTimeout);e.v(b.readOnly)||(a.readOnly=b.readOnly);if(null!=b.grid){var c=b.grid;null!=c.type&&(a.gridType=c.type);null!=c.title&&(a.gridTitle=c.title);null!=c.showFilter&&(a.showFilter=c.showFilter);null!=c.showHeaders&&(a.showHeaders=c.showHeaders);
null!=c.showAutoCalculationBar&&(a.showAutoCalculationBar=c.showAutoCalculationBar);null!=c.showTotals&&(a.showTotals=c.showTotals,"true"==a.showTotals.toString().toLowerCase()&&(a.showTotals="on"),"false"==a.showTotals.toString().toLowerCase()&&(a.showTotals="off"));null!=c.showGrandTotals&&(a.showGrandTotals=c.showGrandTotals,"true"==a.showGrandTotals.toString().toLowerCase()&&(a.showGrandTotals="on"),"false"==a.showGrandTotals.toString().toLowerCase()&&(a.showGrandTotals="off"));null!=c.grandTotalsPosition&&
(a.grandTotalsPosition=c.grandTotalsPosition);null!=c.columnTotalsPosition&&(a.columnTotalsPosition=c.columnTotalsPosition);null!=c.showExtraTotalLabels&&(a.showExtraTotalLabels=c.showExtraTotalLabels);null!=c.showHierarchies&&(a.showHierarchies=c.showHierarchies);null!=c.showHierarchyCaptions&&(a.showHierarchyCaptions=c.showHierarchyCaptions);null!=c.drillthroughMaxRows&&(a.drillthroughMaxRows=c.drillthroughMaxRows);null!=c.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=[];let k;Array.isArray(c.activeMeasure)?k=c.activeMeasure:"object"===typeof c.activeMeasure?k=[c.activeMeasure]:"string"===typeof c.activeMeasure&&(k=c.activeMeasure.split(","));if(!e.v(k))for(var d=
0;d<k.length;d++)if(null!=k[d].uniqueName){var g=new l.hb.ah(k[d].uniqueName);null!=k[d].aggregation&&(g.aa=k[d].aggregation);a.chartActiveMeasures.push(g)}else a.chartActiveMeasures.push(new l.hb.ah(k[d]))}else a.chartActiveMeasure=new l.hb.ah,null!=c.activeMeasure.uniqueName?(a.chartActiveMeasure.A=c.activeMeasure.uniqueName,null!=c.activeMeasure.aggregation&&(a.chartActiveMeasure.aa=c.activeMeasure.aggregation)):a.chartActiveMeasure.A=c.activeMeasure;null!=c.oneLevelTuple&&(a.chartOneLevelTuple=
0<c.oneLevelTuple.length?c.oneLevelTuple.split(","):void 0);null!=c.oneLevelColumnTuple&&(a.chartOneLevelColumnTuple=0<c.oneLevelColumnTuple.length?c.oneLevelColumnTuple.split(","):void 0)}e.v(b.filter)||(b=b.filter,e.v(b.weekOffset)||(a.filterWeekOffset=b.weekOffset),e.v(b.dateFormat)||(a.filterDateFormat=b.dateFormat),e.v(b.liveSearch)||(a.filterLiveSearch=b.liveSearch));return a}Qa(){var b={};null!=this.viewType&&(b.viewType=this.viewType);var a={};this.gridType===e.K.Y.te.uA?a.type=e.K.Y.te.uA:
this.gridType===e.K.Y.te.nv?a.type=e.K.Y.te.nv:this.gridType===e.K.Y.te.Bh&&(a.type=e.K.Y.te.Bh);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);u.Sc.Eg(a)||(b.grid=a);a={};null!=this.chartType&&(a.type=this.chartType);null!=this.chartTitle&&(a.title=this.chartTitle);null!=this.showFilterInCharts&&(a.showFilter=this.showFilterInCharts);null!=this.chartMultipleMeasures&&(a.multipleMeasures=this.chartMultipleMeasures);null!=this.chartOneLevel&&(a.oneLevel=this.chartOneLevel);null!=this.chartAutoRange&&(a.autoRange=this.chartAutoRange);null!=this.chartReversedAxes&&(a.reversedAxes=this.chartReversedAxes);
null!=this.showChartLegend&&(a.showLegend=this.showChartLegend);null!=this.showChartLegendButton&&(a.showLegendButton=this.showChartLegendButton);null!=this.showChartDataLabels&&(a.showDataLabels=this.showChartDataLabels);null!=this.showAllChartLabels&&(a.showAllLabels=this.showAllChartLabels);null!=this.showChartMeasures&&(a.showMeasures=this.showChartMeasures);null!=this.showChartOneMeasureSelection&&(a.showOneMeasureSelection=this.showChartOneMeasureSelection);null!=this.showChartsWarning&&(a.showWarning=
this.showChartsWarning);null!=this.chartAxisShortNumberFormat&&(a.axisShortNumberFormat=this.chartAxisShortNumberFormat);this.viewType==e.K.Id.Tn&&null!=this.chartPosition&&(a.position=this.chartPosition);this.chartType==e.K.Bd.Me.yv&&null!=this.chartActiveTupleIndex&&(a.pieDataIndex=this.chartActiveTupleIndex.toString());if(1==this.chartMultipleMeasures){if(null!=this.chartActiveMeasures){for(var c=[],d=0;d<this.chartActiveMeasures.length;d++){var g={};g.uniqueName=this.chartActiveMeasures[d].A;
null!=this.chartActiveMeasures[d].aa&&""!==this.chartActiveMeasures[d].aa&&(g.aggregation=this.chartActiveMeasures[d].aa);c.push(g)}0<c.length&&(a.activeMeasure=c)}}else null!=this.chartActiveMeasure&&(g={},g.uniqueName=this.chartActiveMeasure.A,null!=this.chartActiveMeasure.aa&&""!=this.chartActiveMeasure.aa&&(g.aggregation=this.chartActiveMeasure.aa),a.activeMeasure=g);!0===this.chartOneLevel&&null!=this.chartOneLevelTuple&&0<this.chartOneLevelTuple.length&&(a.oneLevelTuple=this.chartOneLevelTuple.join(","));
!0===this.chartOneLevel&&null!=this.chartOneLevelColumnTuple&&0<this.chartOneLevelColumnTuple.length&&(a.oneLevelColumnTuple=this.chartOneLevelColumnTuple.join(","));u.Sc.Eg(a)||(b.chart=a);a={};e.v(this.filterWeekOffset)||(a.weekOffset=this.filterWeekOffset);e.v(this.filterDateFormat)||(a.dateFormat=this.filterDateFormat);e.v(this.filterLiveSearch)||(a.liveSearch=this.filterLiveSearch);u.Sc.Eg(a)||(b.filter=a);null!=this.configuratorActive&&(b.configuratorActive=this.configuratorActive);null!=this.configuratorButton&&
(b.configuratorButton=this.configuratorButton);null!=this.showAggregations&&(b.showAggregations=this.showAggregations);null!=this.showCalculatedValuesButton&&(b.showCalculatedValuesButton=this.showCalculatedValuesButton);null!=this.grouping&&(b.grouping=this.grouping);null!=this.editing&&(b.editing=this.editing);null!=this.drillThrough&&(b.drillThrough=this.drillThrough);null!=this.showDrillThroughConfigurator&&(b.showDrillThroughConfigurator=this.showDrillThroughConfigurator);null!=this.sorting&&
(b.sorting=this.sorting);null!=this.defaultDateType&&(b.defaultDateType=this.defaultDateType);null!=this.strictDataTypes&&(b.strictDataTypes=this.strictDataTypes);null!=this.datePattern&&(b.datePattern=this.datePattern);null!=this.dateTimePattern&&(b.dateTimePattern=this.dateTimePattern);null!=this.dateTimezoneOffset&&(b.dateTimezoneOffset=this.dateTimezoneOffset);null!=this.timePattern&&(b.timePattern=this.timePattern);null!=this.saveAllFormats&&(b.saveAllFormats=this.saveAllFormats);null!=this.showDefaultSlice&&
(b.showDefaultSlice=this.showDefaultSlice);null!=this.useOlapFormatting&&(b.useOlapFormatting=this.useOlapFormatting);null!=this.showMemberProperties&&(b.showMemberProperties=this.showMemberProperties);null!=this.showEmptyData&&(b.showEmptyData=this.showEmptyData);null!=this.defaultHierarchySortName&&(b.defaultHierarchySortName=this.defaultHierarchySortName);!0===this.calculatedValuesOLAP&&(b.calculatedValuesOLAP=this.calculatedValuesOLAP);!0===this.includeEmptySubtotalsOLAP&&(b.includeEmptySubtotalsOLAP=
this.includeEmptySubtotalsOLAP);null!=this.showOutdatedDataAlert&&(b.showOutdatedDataAlert=this.showOutdatedDataAlert);null!=this.showAggregationLabels&&(b.showAggregationLabels=this.showAggregationLabels);null!=this.showAllFieldsDrillThrough&&(b.showAllFieldsDrillThrough=this.showAllFieldsDrillThrough);null!=this.liveFiltering&&(b.liveFiltering=this.liveFiltering);null!=this.fieldListPosition&&(b.fieldListPosition=this.fieldListPosition);null!=this.showFieldListSearch&&(b.showFieldListSearch=this.showFieldListSearch);
e.v(this.validateFormulas)||(b.validateFormulas=this.validateFormulas);e.v(this.caseSensitiveMembers)||(b.caseSensitiveMembers=this.caseSensitiveMembers);e.v(this.simplifyFieldListFolders)||(b.simplifyFieldListFolders=this.simplifyFieldListFolders);e.v(this.validateReportFiles)||(b.validateReportFiles=this.validateReportFiles);e.v(this.allowBrowsersCache)||(b.allowBrowsersCache=this.allowBrowsersCache);e.v(this.showEmptyValues)||(b.showEmptyValues=this.showEmptyValues);e.v(this.distinguishNullUndefinedEmpty)||
(b.distinguishNullUndefinedEmpty=this.distinguishNullUndefinedEmpty);e.v(this.useCaptionsInCalculatedValueEditor)||(b.useCaptionsInCalculatedValueEditor=this.useCaptionsInCalculatedValueEditor);!e.v(this.expandExecutionTimeout)&&this.expandExecutionTimeout>this.Sd.expandExecutionTimeout&&(b.expandExecutionTimeout=this.expandExecutionTimeout);e.v(this.readOnly)||(b.readOnly=this.readOnly);return b}static wk(b){var a=b.find("params"),c=new f;0!=a.find("param[name=configuratorActive]").length&&c.na("configuratorActive",
e.P.Zc(a.find("param[name=configuratorActive]").text()));0!=a.find("param[name=configuratorButton]").length&&c.na("configuratorButton",e.P.Zc(a.find("param[name=configuratorButton]").text()));0!=a.find("param[name=viewType]").length&&c.na("viewType",a.find("param[name=viewType]").text());0!=a.find("param[name=gridTitle]").length&&c.na("gridTitle",a.find("param[name=gridTitle]").text());0!=a.find("param[name=showFilter]").length&&c.na("showFilter",e.P.Zc(a.find("param[name=showFilter]").text()));0!=
a.find("param[name=showFilterInCharts]").length&&c.na("showFilterInCharts",e.P.Zc(a.find("param[name=showFilterInCharts]").text()));0!=a.find("param[name=showAggregations]").length&&c.na("showAggregations",e.P.Zc(a.find("param[name=showAggregations]").text()));0!=a.find("param[name=showHierarchyCaptions]").length&&c.na("showHierarchyCaptions",e.P.Zc(a.find("param[name=showHierarchyCaptions]").text()));0!=a.find("param[name=showHeaders]").length&&c.na("showHeaders",e.P.Zc(a.find("param[name=showHeaders]").text()));
0!=a.find("param[name=showReportFiltersArea]").length&&c.na("showReportFiltersArea",e.P.Zc(a.find("param[name=showReportFiltersArea]").text()));0!=a.find("param[name=showExtraTotalLabels]").length&&c.na("showExtraTotalLabels",e.P.Zc(a.find("param[name=showExtraTotalLabels]").text()));0!=a.find("param[name=editing]").length&&c.na("editing",e.P.Zc(a.find("param[name=editing]").text()));0!=a.find("param[name=grouping]").length&&c.na("grouping",e.P.Zc(a.find("param[name=grouping]").text()));0!=a.find("param[name=drillThrough]").length&&
c.na("drillThrough",e.P.Zc(a.find("param[name=drillThrough]").text()));0!=a.find("param[name=showDrillThroughConfigurator]").length&&c.na("showDrillThroughConfigurator",e.P.Zc(a.find("param[name=showDrillThroughConfigurator]").text()));0!=a.find("param[name=sorting]").length&&c.na("sorting",a.find("param[name=sorting]").text());0!=a.find("param[name=showHierarchies]").length&&c.na("showHierarchies",e.P.Zc(a.find("param[name=showHierarchies]").text()));0!=a.find("param[name=showTotals]").length&&(c.na("showTotals",
a.find("param[name=showTotals]").text()),"true"==c.U("showTotals").toString().toLowerCase()&&c.na("showTotals","on"),"false"==c.U("showTotals").toString().toLowerCase()&&c.na("showTotals","off"));0!=a.find("param[name=showGrandTotals]").length&&(c.na("showGrandTotals",a.find("param[name=showGrandTotals]").text()),"true"==c.U("showGrandTotals").toString().toLowerCase()&&c.na("showGrandTotals","on"),"false"==c.U("showGrandTotals").toString().toLowerCase()&&c.na("showGrandTotals","off"));0!=a.find("param[name=showDefaultSlice]").length&&
c.na("showDefaultSlice",e.P.Zc(a.find("param[name=showDefaultSlice]").text()));0!=a.find("param[name=useOlapFormatting]").length&&c.na("useOlapFormatting",e.P.Zc(a.find("param[name=useOlapFormatting]").text()));0!=a.find("param[name=showMemberProperties]").length&&c.na("showMemberProperties",e.P.Zc(a.find("param[name=showMemberProperties]").text()));0!=a.find("param[name=showEmptyData]").length&&c.na("showEmptyData",e.P.Zc(a.find("param[name=showEmptyData]").text()));0!=a.find("param[name=showChartDataLabels]").length&&
c.na("showChartDataLabels",e.P.Zc(a.find("param[name=showChartDataLabels]").text()));0!=a.find("param[name=showAllChartLabels]").length&&c.na("showAllChartLabels",e.P.Zc(a.find("param[name=showAllChartLabels]").text()));0!=a.find("param[name=strictDataTypes]").length&&c.na("strictDataTypes",e.P.Zc(a.find("param[name=strictDataTypes]").text()));0!=a.find("param[name=defaultDateType]").length&&c.na("defaultDateType",a.find("param[name = defaultDateType]").text());0!=a.find("param[name=datePattern]").length&&
c.na("datePattern",a.find("param[name = datePattern]").text());0!=a.find("param[name=dateTimePattern]").length&&c.na("dateTimePattern",a.find("param[name = dateTimePattern]").text());0!=a.find("param[name=classicView]").length&&1==e.P.Zc(a.find("param[name=classicView]").text())&&c.na("gridType",e.K.Y.te.nv);b=b.find("dataSource");void 0!==b.attr("tableType")&&b.attr("tableType")==e.K.Y.te.Bh&&c.na("gridType",e.K.Y.te.Bh);0!=a.find("param[name=flatView]").length&&1==e.P.Zc(a.find("param[name=flatView]").text())&&
c.na("gridType",e.K.Y.te.Bh);0!=a.find("param[name=defaultHierarchySortName]").length?c.na("defaultHierarchySortName",e.u.i.za.Ug(a.find("param[name = defaultHierarchySortName]").text())?a.find("param[name=defaultHierarchySortName]").text():e.u.i.za.ic):c.na("defaultHierarchySortName",c.U("gridType")==e.K.Y.te.Bh?e.u.i.za.fd:e.u.i.za.ic);0!=a.find("param[name=showCalculatedValuesButton]").length&&c.na("showCalculatedValuesButton",e.P.Zc(a.find("param[name = showCalculatedValuesButton]").text()));
0!=a.find("param[name=showOutdatedDataAlert]").length&&c.na("showOutdatedDataAlert",e.P.Zc(a.find("param[name = showOutdatedDataAlert]").text()));if(0!=a.find("param[name=chartType]").length){var d=a.find("param[name=chartType]");c.na("chartType",d.text());if(void 0!==d.attr("activeMeasure")){c.na("chartActiveMeasure",new l.hb.ah(d.attr("activeMeasure")));void 0!==d.attr("activeMeasureAggregation")&&c.na("chartActiveMeasure.aggregation",d.attr("activeMeasureAggregation"));var g=[],k=d.attr("activeMeasure").split(","),
m=void 0!==d.attr("activeMeasureAggregation")?d.attr("activeMeasureAggregation").split(","):[];for(b=0;b<k.length;b++){var n=new l.hb.ah(k[b]);m[b]&&(n.aa=m[b]);g.push(n)}0<g.length&&c.na("chartActiveMeasures",g)}void 0!==d.attr("pieDataIndex")&&c.na("chartActiveTupleIndex",parseInt(d.attr("pieDataIndex")));void 0!==d.attr("position")&&c.na("chartPosition",d.attr("position"));if(void 0!==d.attr("chartOneLevelTuple")){d=d.attr("chartOneLevelTuple").split(",");c.na("chartOneLevelTuple",[]);g=[];for(b=
0;b<d.length;b++)g[b]=parseInt(d[b]);c.na("chartOneLevelTuple",g)}}0!=a.find("param[name=chartOneLevel]").length&&c.na("chartOneLevel",e.P.Zc(a.find("param[name=chartOneLevel]").text()));0!=a.find("param[name=chartTitle]").length&&c.na("chartTitle",a.find("param[name=chartTitle]").text());0!=a.find("param[name=chartMultipleMeasures]").length&&c.na("chartMultipleMeasures",e.P.Zc(a.find("param[name=chartMultipleMeasures]").text()));0!=a.find("param[name=chartAutoRange]").length&&c.na("chartAutoRange",
e.P.Zc(a.find("param[name=chartAutoRange]").text()));0!=a.find("param[name=chartReversedAxes]").length&&c.na("chartReversedAxes",e.P.Zc(a.find("param[name=chartReversedAxes]").text()));0!=a.find("param[name=showChartsWarning]").length&&c.na("showChartsWarning",e.P.Zc(a.find("param[name=showChartsWarning]").text()));0!=a.find("param[name=showChartOneMeasureSelection]").length&&c.na("showChartOneMeasureSelection",e.P.Zc(a.find("param[name=showChartOneMeasureSelection]").text()));0!=a.find("param[name=showChartMeasures]").length&&
c.na("showChartMeasures",e.P.Zc(a.find("param[name=showChartMeasures]").text()));0!=a.find("param[name=showChartLegendButton]").length&&c.na("showChartLegendButton",e.P.Zc(a.find("param[name=showChartLegendButton]").text()));0!=a.find("param[name=saveAllFormats]").length&&c.na("saveAllFormats",e.P.Zc(a.find("param[name=saveAllFormats]").text()));0!=a.find("param[name=calculatedValuesOLAP]").length&&c.na("calculatedValuesOLAP",e.P.Zc(a.find("param[name=calculatedValuesOLAP]").text()));0!=a.find("param[name=includeEmptySubtotalsOLAP]").length&&
c.na("includeEmptySubtotalsOLAP",e.P.Zc(a.find("param[name=includeEmptySubtotalsOLAP]").text()));return c}Yo(){var b=z.ba.create("<params/>");null!=this.U("configuratorActive")&&b.append(z.ba.create("<param/>").attr("name","configuratorActive").text(this.U("configuratorActive")));null!=this.U("configuratorButton")&&b.append(z.ba.create("<param/>").attr("name","configuratorButton").text(this.U("configuratorButton")));null!=this.U("viewType")&&b.append(z.ba.create("<param/>").attr("name","viewType").text(this.U("viewType")));
null!=this.U("gridTitle")&&b.append(z.ba.create("<param/>").attr("name","gridTitle").text(this.U("gridTitle")));null!=this.U("chartTitle")&&b.append(z.ba.create("<param/>").attr("name","chartTitle").text(this.U("chartTitle")));null!=this.U("showFilter")&&b.append(z.ba.create("<param/>").attr("name","showFilter").text(this.U("showFilter")));null!=this.U("showFilterInCharts")&&b.append(z.ba.create("<param/>").attr("name","showFilterInCharts").text(this.U("showFilterInCharts")));null!=this.U("showAggregations")&&
b.append(z.ba.create("<param/>").attr("name","showAggregations").text(this.U("showAggregations")));null!=this.U("showHierarchyCaptions")&&b.append(z.ba.create("<param/>").attr("name","showHierarchyCaptions").text(this.U("showHierarchyCaptions")));null!=this.U("chartOneLevel")&&b.append(z.ba.create("<param/>").attr("name","chartOneLevel").text(this.U("chartOneLevel")));null!=this.U("chartAutoRange")&&b.append(z.ba.create("<param/>").attr("name","chartAutoRange").text(this.U("chartAutoRange")));null!=
this.U("chartReversedAxes")&&b.append(z.ba.create("<param/>").attr("name","chartReversedAxes").text(this.U("chartReversedAxes")));null!=this.U("chartMultipleMeasures")&&b.append(z.ba.create("<param/>").attr("name","chartMultipleMeasures").text(this.U("chartMultipleMeasures")));null!=this.U("showHeaders")&&b.append(z.ba.create("<param/>").attr("name","showHeaders").text(this.U("showHeaders")));null!=this.U("showReportFiltersArea")&&b.append(z.ba.create("<param/>").attr("name","showReportFiltersArea").text(this.U("showReportFiltersArea")));
null!=this.U("showExtraTotalLabels")&&b.append(z.ba.create("<param/>").attr("name","showExtraTotalLabels").text(this.U("showExtraTotalLabels")));null!=this.U("editing")&&b.append(z.ba.create("<param/>").attr("name","editing").text(this.U("editing")));null!=this.U("grouping")&&b.append(z.ba.create("<param/>").attr("name","grouping").text(this.U("grouping")));null!=this.U("drillThrough")&&b.append(z.ba.create("<param/>").attr("name","drillThrough").text(this.U("drillThrough")));null!=this.U("showDrillThroughConfigurator")&&
b.append(z.ba.create("<param/>").attr("name","showDrillThroughConfigurator").text(this.U("showDrillThroughConfigurator")));null!=this.U("sorting")&&b.append(z.ba.create("<param/>").attr("name","sorting").text(this.U("sorting")));null!=this.U("showTotals")&&b.append(z.ba.create("<param/>").attr("name","showTotals").text(this.U("showTotals")));null!=this.U("showHierarchies")&&b.append(z.ba.create("<param/>").attr("name","showHierarchies").text(this.U("showHierarchies")));null!=this.U("showGrandTotals")&&
b.append(z.ba.create("<param/>").attr("name","showGrandTotals").text(this.U("showGrandTotals")));null!=this.U("defaultDateType")&&b.append(z.ba.create("<param/>").attr("name","defaultDateType").text(this.U("defaultDateType")));null!=this.U("strictDataTypes")&&b.append(z.ba.create("<param/>").attr("name","strictDataTypes").text(this.U("strictDataTypes")));null!=this.U("datePattern")&&b.append(z.ba.create("<param/>").attr("name","datePattern").text(this.U("datePattern")));null!=this.U("dateTimePattern")&&
b.append(z.ba.create("<param/>").attr("name","dateTimePattern").text(this.U("dateTimePattern")));null!=this.U("showChartsWarning")&&b.append(z.ba.create("<param/>").attr("name","showChartsWarning").text(this.U("showChartsWarning")));null!=this.U("showChartOneMeasureSelection")&&b.append(z.ba.create("<param/>").attr("name","showChartOneMeasureSelection").text(this.U("showChartOneMeasureSelection")));null!=this.U("showChartMeasures")&&b.append(z.ba.create("<param/>").attr("name","showChartMeasures").text(this.U("showChartMeasures")));
null!=this.U("showChartLegendButton")&&b.append(z.ba.create("<param/>").attr("name","showChartLegendButton").text(this.U("showChartLegendButton")));null!=this.U("saveAllFormats")&&b.append(z.ba.create("<param/>").attr("name","saveAllFormats").text(this.U("saveAllFormats")));1==this.U("calculatedValuesOLAP")&&b.append(z.ba.create("<param/>").attr("name","calculatedValuesOLAP").text(this.U("calculatedValuesOLAP")));1==this.U("includeEmptySubtotalsOLAP")&&b.append(z.ba.create("<param/>").attr("name",
"includeEmptySubtotalsOLAP").text(this.U("includeEmptySubtotalsOLAP")));null!=this.U("defaultHierarchySortName")&&b.append(z.ba.create("<param/>").attr("name","defaultHierarchySortName").text(this.U("defaultHierarchySortName")));null!=this.U("gridType")&&this.U("gridType")==e.K.Y.te.nv&&b.append(z.ba.create("<param/>").attr("name","classicView").text(!0));null!=this.U("gridType")&&this.U("gridType")==e.K.Y.te.Bh&&b.append(z.ba.create("<param/>").attr("name","flatView").text(!0));null!=this.U("showDefaultSlice")&&
b.append(z.ba.create("<param/>").attr("name","showDefaultSlice").text(this.U("showDefaultSlice")));null!=this.U("showEmptyData")&&b.append(z.ba.create("<param/>").attr("name","showEmptyData").text(this.U("showEmptyData")));null!=this.U("showMemberProperties")&&b.append(z.ba.create("<param/>").attr("name","showMemberProperties").text(this.U("showMemberProperties")));null!=this.U("useOlapFormatting")&&b.append(z.ba.create("<param/>").attr("name","useOlapFormatting").text(this.U("useOlapFormatting")));
null!=this.U("showChartDataLabels")&&b.append(z.ba.create("<param/>").attr("name","showChartDataLabels").text(this.U("showChartDataLabels")));null!=this.U("showAllChartLabels")&&b.append(z.ba.create("<param/>").attr("name","showAllChartLabels").text(this.U("showAllChartLabels")));null!=this.U("showCalculatedValuesButton")&&b.append(z.ba.create("<param/>").attr("name","showCalculatedValuesButton").text(this.U("showCalculatedValuesButton")));null!=this.U("showOutdatedDataAlert")&&b.append(z.ba.create("<param/>").attr("name",
"showOutdatedDataAlert").text(this.U("showOutdatedDataAlert")));var a=z.ba.create("<param/>").attr("name","chartType").text(null!=this.U("chartType")?this.U("chartType"):this.Sd.chartType);null!=this.U("chartActiveTupleIndex")&&a.attr("pieDataIndex",this.U("chartActiveTupleIndex").toString());a.attr("position",this.U("chartPosition"));if(this.U("chartMultipleMeasures")&&null!=this.U("chartActiveMeasures")){for(var c=[],d=[],g=0;g<this.U("chartActiveMeasures").length;g++)c.push(this.U("chartActiveMeasures")[g].A),
d.push(this.U("chartActiveMeasures")[g].aa);0<c.length&&a.attr("activeMeasure",c.join(","));0<d.length&&a.attr("activeMeasureAggregation",d.join(","))}else null!=this.U("chartActiveMeasure")&&(a.attr("activeMeasure",this.U("chartActiveMeasure").A),null!=this.U("chartActiveMeasure").aa&&""!=this.U("chartActiveMeasure").aa&&a.attr("activeMeasureAggregation",this.U("chartActiveMeasure").aa));this.U("chartOneLevel")&&0<this.U("chartOneLevelTuple").length&&a.attr("chartOneLevelTuple",this.U("chartOneLevelTuple").join(","));
b.append(a);return b}FD(b){for(var a in b)this.Sd.hasOwnProperty(a)&&void 0!=b[a]&&(this[a]=b[a])}}h.Eq=f})(l.C||(l.C={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();if(null!=f.instance)throw Error("Singleton");}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.Xc=null;f.instance=null}static add(b){null!=b&&(f.Xc.Ta(b.id,b),this.bb())}static get(b){return f.Xc.getItem(b)}static remove(b){f.Xc.removeItem(b);this.bb()}static c4(){f.Xc=new e.tb;this.bb()}static jAa(){for(var b=[],a=0;a<f.Xc.length;a++){var c=f.Xc.ea(a);c.Y1||b.push(c.Qa())}return b}static bb(){f.V().$a(l.jc.nd.dn)}}
f.Xc=new e.tb;h.Zm=f})(l.va||(l.va={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.id="";this.hu=this.Ss=-1;this.ve=this.hierarchy=this.bc=this.aa=this.measure="";this.Xd=[];this.TG=null}get Y1(){return-1<this.ve.toLowerCase().indexOf(e.u.i.nc.OP)||-1<this.ve.toLowerCase().indexOf(e.u.i.nc.PP)}Qa(){var c={};c.id=this.id;c.row=this.Ss;c.column=this.hu;void 0!==this.Ak&&(c.isTotal=this.Ak);c.measure=this.measure;c.aggregation=this.aa;c.member=this.bc;c.hierarchy=this.hierarchy;c.formula=this.ve;null!=this.format&&
(c.format=this.format.Qa(),c.formatCSS=this.format.toString());return c}static zb(c){var d=new b;d.id=null!=c.id?c.id:e.P.NL();null!=c.row&&(d.Ss=c.row);null!=c.column&&(d.hu=c.column);if(null!=c.isTotal){if(1==c.isTotal||1==c.isTotal)d.Ak=!0;if(0==c.isTotal||0==c.isTotal)d.Ak=!1}null!=c.measure&&(d.measure=c.measure);null!=c.aggregation&&(d.aa=c.aggregation);null!=c.member&&(d.bc=e.u.ye.Ds(c.member));null!=c.hierarchy&&(d.hierarchy=e.u.ye.Pg(c.hierarchy));d.ve=c.formula;null!=c.format&&(d.format=
"string"===typeof c.format?a.DS(c.format):a.zb(c.format));c=new u.rJ;d.Xd=c.parse(d.ve);return null==d.Xd?null:d}}f.B6=b;class a{static zb(c){var d=new a;if(null==c)return d;null!=c.backgroundColor&&(d.backgroundColor=a.color(c.backgroundColor));null!=c.color&&(d.color=a.color(c.color));null!=c.fontFamily&&(d.fontFamily=c.fontFamily);null!=c.fontSize&&(d.fontSize=a.size(c.fontSize));null!=c.italic&&c.italic&&(d.fontStyle="italic");null!=c.fontStyle&&(d.fontStyle=c.fontStyle);null!=c.bold&&c.bold&&
(d.fontWeight="bold");null!=c.fontWeight&&(d.fontWeight=c.fontWeight);null!=c.padding&&(d.padding=a.size(Math.round(1.5*c.padding)));null!=c.textAlign&&(d.textAlign=c.textAlign);null!=c.textIndent&&(d.textIndent=a.size(c.textIndent));return d}static DS(c){var d={};c=c.split(";");if(null!=c)for(var g=0;g<c.length;g++){var k=c[g].split(":")[0];""!=k&&(d[k]=c[g].split(":")[1])}return a.zb(d)}Qa(){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}Dia(){var c={};null!=this.backgroundColor&&(c["background-color"]=this.backgroundColor);null!=this.color&&(c.color=this.color);
null!=this.fontFamily&&(c["font-family"]=this.fontFamily);null!=this.fontSize&&(c["font-size"]=this.fontSize);null!=this.fontStyle&&(c["font-style"]=this.fontStyle);null!=this.fontWeight&&(c["font-weight"]=this.fontWeight);null!=this.padding&&(c.padding=this.padding);null!=this.textAlign&&(c["text-align"]=this.textAlign);null!=this.textIndent&&(c["text-indent"]=this.textIndent);return c}toString(){var c="",d=this.Dia(),g;for(g in d)c+=g+":"+d[g]+";";return c}static color(c){return c.replace("0x",
"#")}static size(c){return"number"==typeof c?c+"px":"string"==typeof c&&0>c.indexOf("px")?c.trim()+"px":c}}f.ALa=a})(h.X||(h.X={}))})(l.va||(l.va={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){var h;(function(f){class b extends v.Ah{constructor(){super();if(null!=b.instance)throw Error("Singleton");}static V(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.kh=null;b.Xg=null;b.Vf=null;b.Uj=null;b.UQ=null;b.TF=null;b.Lg=null;b.Lf=null;b.Zk=null;b.bQ=null;b.yF=null;b.instance=null}static get eha(){return this.UQ=b.Qa(e.u.i.ja.La)}static get Paa(){return this.bQ=b.Qa(e.u.i.ja.Xa)}static clear(){b.Vf={};b.Lf={};b.TF={};b.UQ={};b.yF={};b.bQ=
{};b.Uj={};b.Zk={};b.Xg=[];b.Lg=[];b.kh=[]}static KZ(a){if(b.xaa(a.Vf)||b.xaa(a.Lf))b.TF=b.Yaa(a.Vf),b.yF=b.Yaa(a.Lf),b.Iga();else if(b.yaa(a.Vf)||b.yaa(a.Lf))b.TF=a.Vf,b.yF=a.Lf,b.Iga();b.Uj=a.Uj;b.Zk=a.Zk;b.Xg=a.Xg;b.Lg=a.Lg;b.kh=a.kh}static Iga(){l.Va.V().Ia.aE==l.jc.nd.ii?this.aq():e.u.Ra.V().N(e.u.tg.Pk,b.aq,1)}static xaa(a){var c=/[A-Za-z]+/,d;for(d in a)if(-1<a[d].toString().search(c))return!0;return!1}static yaa(a){var c=/[A-Za-z]+/,d;for(d in a)if(-1<d.toString().search(c))return!0;return!1}static Yaa(a){var c=
{};if(null!=a)for(var d in a){var g=a[d];if(Array.isArray(g)&&0<g.length){var k=parseInt(g.pop());c[g.toString()]=k}}return c}static aq(){e.u.Ra.V().sb(e.u.tg.Pk,b.aq);b.Vf=b.zb(e.u.i.ja.La);b.TF={};b.Lf=b.zb(e.u.i.ja.Xa);b.yF={}}static zb(a){var c={},d=a==e.u.i.ja.La?b.TF:b.yF,g=e.u.Ra.V().ua.hd(),k;for(k in d){var m=k.split(","),n=d[k],p=e.u.Ra.V().ua.axes.getItem(a).Ya;if(p&&!l.C.F.rc)if(e.u.i.da.iA(m[m.length-1])||""==m[m.length-1]&&(""==m[m.length-2]||null!=g.find(B=>B.A===m[m.length-2]))){var t=
new l.hb.ah(m[m.length-2],m[m.length-1]);m.splice(m.length-2,2)}else t=new l.hb.ah(m[m.length-1]),m.splice(m.length-1,1);for(var r=!1,w=[],y=0;y<m.length;y++)if(l.C.F.rc)if(a==e.u.i.ja.La)w.push(m[y]);else{var A=m[y];A=e.u.Ra.V().ra.xe.indexOf(A);if(-1==A){r=!0;break}w.push(A)}else{A=e.u.ye.Ds(m[y]);var C=a==e.u.i.ja.La?e.u.Ra.V().ua.yb.ea(y):e.u.Ra.V().ua.Db.ea(y);if(void 0==C){r=!0;break}A=C.Ib(A);if(null==A){r=!0;break}A.Zb?w.push(""):w.push(A.ordinal.toString())}if(!r){if(p&&!l.C.F.rc){p=(p=e.u.Ra.V().ua.vi(t))?
p.index:-1;if(-1==p&&""!=t.A)continue;w.push(p)}c[w.toString()]=n}}return c}static Qa(a){var c={},d=a==e.u.i.ja.La?b.Vf:b.Lf,g=e.v(e.u.Ra.V().ua)?[]:e.u.Ra.V().ua.hd(),k;for(k in d){var m=k.split(","),n=d[k],p=e.u.Ra.V().ua.axes.getItem(a).Ya;if(p&&!l.C.F.rc){var t=parseInt(m[m.length-1]);m.splice(m.length-1,1)}for(var r=!1,w=[],y=0;y<m.length;y++)if(l.C.F.rc)if(a==e.u.i.ja.La)w.push(m[y]);else{var A=""===m[y]?0:parseInt(m[y]);A=e.u.Ra.V().ra.xe[A];if(null==A){r=!0;break}w.push(A)}else{A=""===m[y]?
0:parseInt(m[y]);var C=a==e.u.i.ja.La?e.u.Ra.V().ua.yb.ea(y):e.u.Ra.V().ua.Db.ea(y);if(null==C){r=!0;break}A=C.ya(A);if(null==A){r=!0;break}w.push(A.qj)}if(!r){if(p&&!l.C.F.rc){if(t>=g.length)continue;-1==t&&1==g.length&&(t=0);m=g[t];w.push(m?m.A:"");w.push(m?m.aa:"")}c[w.toString()]=n}}return c}static rH(){const a=new l.hb.Gv;a.Vf=h.vd.eha;a.Lf=h.vd.Paa;a.Xg=h.vd.Xg;a.Lg=h.vd.Lg;a.Uj=h.vd.Uj;a.Zk=h.vd.Zk;a.kh=h.vd.kh;a.uE=h.vd.uE;return a}}b.Vf={};b.Lf={};b.uE=0;b.Uj={};b.Zk={};b.Xg=[];b.Lg=[];b.kh=
[];b.TF={};b.UQ={};b.yF={};b.bQ={};f.vd=b})(h=l.size||(l.size={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static load(b,a){if(!e.v(f.zS[b]))return a(null,f.zS[b]);var c=new z.l9;c.N(v.fa.Oc,()=>{try{var d=e.P.Awa(new Uint8Array(c.response)),g=window.btoa(d);f.zS[b]={name:b.substring(b.lastIndexOf("/")+1,b.lastIndexOf(".")),filename:b.substr(b.lastIndexOf("/")+1),content:g};a(null,f.zS[b])}catch(k){a(k)}});c.N(v.fa.Aa,()=>{a({message:l.B.j.$na,name:null})});c.load(b)}}f.zS={};h.C7=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b,a){this.LQ=b;this.SY=a}get Fk(){return this.LQ}get xh(){return this.SY}NAa(){return Math.round(this.Fk*f.J9/f.t$)}Pza(){return Math.round(this.xh*f.J9/f.t$)}static get Fwa(){return f.jra}static eja(b){return void 0!=b&&f.v$.hasOwnProperty(b.toLocaleLowerCase())?b.toLocaleLowerCase():f.Fwa}static lH(b){return this.v$[b]}}f.t$=25.4;f.jra="a4";f.J9=72;f.v$={a0:new f(841,1189),a1:new f(594,841),a2:new f(420,594),a3:new f(297,420),a4:new f(210,
297),a5:new f(148,210)};h.Xx=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c=!1,d=null){switch(a.type){case h.ej.vv:f.nS(b,a,c,d);break;case h.ej.LA:f.nca(b,a,c,d);break;case h.ej.TA:f.Exa(b,a,c,d)}}static r_(b){var a=b.find("line",!0);a=a.concat(b.find("path",!0));a=a.concat(b.find("circle",!0));for(var c=0;c<a.length;c++)if(null!=a[c]){var d=e.K.Y.X.ed.dz(a[c],["fill","stroke","shape-rendering","stroke-width"]);u.Kd().Xi&&(d+="stroke-width: 1px");a[c].attr("style",d);a[c].attr("class",
"")}a=b.find("text",!0);for(c=0;c<a.length;c++)b=parseInt(a[c].R("font-size")),a[c].attr("style",e.K.Y.X.ed.dz(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","")}static JZ(b,a){b.R("font-family",a.R("font-family"));b.R("font-size",a.R("font-size"));b.R("color",a.R("color"));b.R("border-top",a.R("border-top"));b.R("background",a.R("background"));b.R("padding-top",a.R("padding-top"));b.R("padding-left",
a.R("padding-left"));b.R("padding-right",a.R("padding-right"));b.R("padding-bottom",a.R("padding-bottom"));b.R("overflow","auto");for(var c=a.find(".fm-icon-display"),d=b.find(".fm-icon-display",!0),g=0;g<d.length;g++)d[g].R("display",c.R("display")),d[g].R("width",c.R("width")),d[g].R("height",c.R("height")),d[g].R("margin-right",c.R("margin-right")),d[g].R("vertical-align",c.R("vertical-align")),d[g].R("border-radius",c.R("border-radius")),d[g].text("");c=a.find(".fm-text-display");d=b.find(".fm-text-display",
!0);for(g=0;g<d.length;g++)d[g].R("color",c.R("color")),d[g].R("font-family",c.R("font-family")),d[g].R("font-size",c.R("font-size")),d[g].R("vertical-align",c.R("vertical-align")),d[g].R("margin-bottom",c.R("margin-bottom")||0);c=a.find("ul");d=b.find("ul",!0);for(g=0;g<d.length;g++)d[g].R("list-style-type",c.R("list-style-type")),d[g].R("padding-top",c.R("padding-top")||0),d[g].R("padding-right",c.R("padding-right")||0),d[g].R("padding-bottom",c.R("padding-bottom")||0),d[g].R("padding-left",c.R("padding-left")||
0),d[g].R("margin-top",c.R("margin-top")||0),d[g].R("margin-right",c.R("margin-right")||0),d[g].R("margin-bottom",c.R("margin-bottom")||0),d[g].R("margin-left",c.R("margin-left")||0);c=a.find("td");d=b.find("td",!0);for(g=0;g<d.length;g++)d[g].R("padding-top",c.R("padding-top")),d[g].R("padding-right",c.R("padding-right")),d[g].R("padding-bottom",c.R("padding-bottom")),d[g].R("padding-left",c.R("padding-left")),d[g].R("vertical-align",c.R("vertical-align"));a=a.find("li",!0);d=b.find("li",!0);for(g=
0;g<d.length;g++)d[g].R("padding-left",a[g].R("padding-left")),d[g].R("padding-top",a[g].R("padding-top")),d[g].R("padding-bottom",a[g].R("padding-bottom")),d[g].R("white-space","nowrap");b.find("table").R("width","initial")}static jL(b){var a="";e.ia(b)||(a=b.replace(/##PAGE-NUMBER##/gi,f.ll++ +""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));return a}static nS(b,a,c=!1,d=null){var g=b.Am.es.G.find("svg").clone();try{c||f.uy(l.C.F.zm,g,b.Am.tq.G);c&&(g.attr("viewBox","0 0 "+g.attr("width")+
" "+g.attr("height")),g.R("width","100%"));b.G.append(g);f.r_(g);g.d4("class");var k=z.ba.Ic(z.$X.Vb(g.element));g.remove();if(b.Am.ff){var m=b.Am.ff.G.clone();f.JZ(m,b.Am.ff.G);c&&(m.R("max-width",""),m.R("padding-bottom","20px"));k+=m.element.outerHTML}if(c)return null!=d&&d(k),k;b="<!DOCTYPE html><html><head><meta charset='UTF-8'/><title>{0}</title></head><body>{1}{2}{3}</body></html>";m="";e.ia(a.Ui)||(m=a.Ui,m=m.replace(/##PAGE-NUMBER##/gi,""),m=m.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));
var n="";e.ia(a.pj)||(n=a.pj,n=n.replace(/##PAGE-NUMBER##/gi,""),n=n.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));b=e.P.bind(b,e.ia(l.C.F.zm)?l.B.j.JW:l.C.F.zm,m,k,n);b=z.ba.format(b);0==a.filename.length&&(a.filename="pivotchart.html");h.Sn.save(b,a);l.Va.V().Fa(new v.fa(e.vg.oh))}catch(p){console.error("Export Charts error:",p);g.remove();e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa);if(c)return null!=d&&d(""),"";l.Va.V().Fa(new v.fa(e.vg.oh))}}static QR(b){if(null==b)return null;b=b.replace(/##PAGE-NUMBER##/gi,
"");b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());return(new x.Ea("div")).R("background","white").R("text-align","left").R("z-index",-1).html(b)}static nca(b,a,c=!1,d=null){const g=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];u.Kd().Xi&&g.unshift("lib/promise.min.js");u.Zn.load(g,()=>{var k=document.createElement("canvas"),m=b.Am.es.G.find("svg").clone();try{f.uy(l.C.F.zm,m,b.Am.tq.G);m.prepend((new x.Ea("rect")).R("width","100%").R("height","100%").R("fill","white"));f.Uga(m);
b.G.append(m);f.r_(m);canvg(k,z.ba.Ic(z.$X.Vb(m.element)));m.remove();var n=(new x.Ea("img")).attr("src",k.toDataURL());c&&n.R("max-width","100%");var p=new x.Ea("div");e.ia(a.Ui)||p.append(this.QR(a.Ui));p.append(n);p.R("padding-top","10px");p.R("padding-bottom","10px");if(b.Am.ff){var t=b.Am.ff.G.clone();t.width=b.Am.width;f.JZ(t,b.Am.ff.G);c&&(t.Xj("100%"),t.R("max-width",""));p.append(t)}e.ia(a.pj)||p.append(this.QR(a.pj));if(c)return null!=d&&(p.R("position",b.G.R("position")),p.R("top",b.G.R("top")),
p.R("bottom",b.G.R("bottom")),p.R("left",b.G.R("left")),p.R("right",b.G.R("right")),p.width=b.uf(),d(p)),p.html();p.R("position","absolute").R("top",0).R("left",0).R("overflow","hidden").R("text-align","center").R("background","white").R("z-index",-1).Xj(e.K.Mb.gv);e.K.Mb.Fb.G.prepend(p);p.R("left",-p.left-p.width+"px");html2canvasV1(p.element).then(r=>{p.remove();a.xC==l.hb.fp.UA?h.Sn.save(r,a):(r=e.P.uba(r.toDataURL()),0==a.filename.length&&(a.filename="pivotchart.png"),h.Sn.save(r,a));l.Va.V().Fa(new v.fa(e.vg.oh))})}catch(r){console.error("Export Charts error:",
r),m.remove(),null!=p&&p.remove(),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),c&&null!=d?d(""):l.Va.V().Fa(new v.fa(e.vg.oh))}})}static uy(b,a,c){if(0<b.length){var d=e.K.Y.X.ed.dz(c,["font-family","font-size","font-weight","color"]);b=(new x.Ea("text")).attr("x","50%").attr("style","text-anchor:middle;"+d).text(b);a.prepend(b);b.attr("y",c.height);b=a.find("g");d=d3v3.transform(b.attr("transform"));d.translate[1]+=c.height;b.attr("transform",d.toString());a.attr("height",parseInt(a.attr("height"))+c.height)}}static get LC(){var b=
h.Xx.lH(f.nr);return"portrait"===f.rb.PD?b.xh:b.Fk}static get MC(){var b=h.Xx.lH(f.nr);return"portrait"===f.rb.PD?b.Fk:b.xh}static Exa(b,a,c=!1,d=null){e.Ca(!0,l.B.j.fF,"...",!0,!0);const g=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];u.Kd().Xi&&g.unshift("lib/promise.min.js");u.Zn.load(g,()=>{f.rb=a;f.nr=h.Xx.eja(a.nr);f.Ld=new jspdf.jsPDF(a.PD,"mm",f.nr,!u.Kd().Xi);f.$e=d;f.es=b;f.W3=c;f.xh=f.LC-2*f.Th;f.Fk=f.MC-2*f.Th;f.ig=f.Th;try{f.t2(()=>{f.SR(this.rb.Ui,this.rb.pj,()=>this.X2())})}catch(k){console.error("Export PDF error:",
k),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}})}static t2(b){e.v(f.rb.yS)?b():h.C7.load(f.rb.yS,(a,c)=>{e.v(a)?e.v(c)||(f.font=c,f.Ld.addFileToVFS(c.filename,c.content),f.Ld.addFont(c.filename,c.name,"normal")):e.Za(a.message,l.B.j.Aa,e.xb.Aa);b()})}static SR(b,a,c){var d=null==b,g=null==a;if(d&&g)c();else{if(!d){b=b.replace(/##PAGE-NUMBER##/gi,(f.ll+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var k=new x.Ea("div");k.R("position",
"absolute");k.R("background","white");k.Xj(h.Xe.Fz(f.MC-2*f.Ii));k.html(b);e.K.Mb.Fb.G.prepend(k);html2canvasV1(k.element,{scale:h.Xe.Dh}).then(n=>{k.remove();f.Im=n;d=!0;g&&c()})}if(!g){a=a.replace(/##PAGE-NUMBER##/gi,(f.ll+1).toString());a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var m=new x.Ea("div");m.R("position","absolute");m.R("background","white");m.Xj(h.Xe.Fz(f.MC-2*f.Ii));m.html(a);e.K.Mb.Fb.G.prepend(m);html2canvasV1(m.element,{scale:h.Xe.Dh}).then(n=>{m.remove();f.Lp=
n;g=!0;d&&c()})}}}static uZ(b,a){b.addImage(a,"JPEG",f.Ii,f.Ii,h.Xe.Uf(a.width/h.Xe.Dh),h.Xe.Uf(a.height/h.Xe.Dh))}static tZ(b,a){b.addImage(a,"JPEG",f.Ii,f.LC-h.Xe.Uf(f.Lp.height/h.Xe.Dh)-f.Ii,h.Xe.Uf(a.width/h.Xe.Dh),h.Xe.Uf(a.height/h.Xe.Dh))}static dR(){null!=f.Im&&f.uZ(f.Ld,f.Im);null!=f.Lp&&f.tZ(f.Ld,f.Lp);f.xh=f.LC;f.xh-=e.v(f.Im)?f.Th:h.Xe.Uf(f.Im.height/h.Xe.Dh)+2*f.Ii;f.xh-=e.v(f.Lp)?f.Th:h.Xe.Uf(f.Lp.height/h.Xe.Dh)+2*f.Ii;f.ig=e.v(f.Im)?f.Th:h.Xe.Uf(f.Im.height/h.Xe.Dh)+2*f.Ii}static X2(){f.dR();
f.wIa()}static Xta(b){var a=f.es.Am.es.G.find("svg").clone(),c=document.createElement("canvas");a.prepend((new x.Ea("rect")).R("width","100%").R("height","100%").R("fill","white"));f.Uga(a);a.attr("width",parseInt(a.attr("width"))*h.Xe.Dh);a.attr("height",parseInt(a.attr("height"))*h.Xe.Dh);f.es.G.append(a);f.r_(a);canvg(c,z.ba.Ic(z.$X.Vb(a.element)),{scaleWidth:a.width*h.Xe.Dh,scaleHeight:a.height*h.Xe.Dh});a.detach();b(c)}static GCa(b){if(e.v(f.es.Am.ff))b(null);else{var a=f.es.Am.ff.G.clone();
a.width=f.es.Am.width;f.JZ(a,f.es.Am.ff.G);a.R("border","none").R("position","absolute").R("top",0).R("left",0).R("overflow","hidden").R("background","white").R("z-index",-1);f.W3&&a.R("width","100%").R("max-width","");e.K.Mb.Fb.G.prepend(a);html2canvasV1(a.element,{scale:h.Xe.Dh}).then(c=>{a.remove();b(c)})}}static wIa(){const b=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];u.Kd().Xi&&b.unshift("lib/promise.min.js");u.Zn.load(b,()=>{try{f.Xta(a=>{f.GCa(c=>{var d=document.createElement("canvas");
d.width=a.width;d.height=a.height+(c?h.Xe.Fz(f.Th)/2+c.height:0);var g=d.getContext("2d");g.fillStyle="#FFFFFF";g.fillRect(0,0,d.width,d.height);g.drawImage(a,0,0);c&&g.drawImage(c,0,d.height-c.height);f.W3&&null!=f.$e?(l.C.F.je==e.K.Id.dj&&0==f.rb.filename.length&&(f.rb.filename="pivotcharts.pdf"),f.$e(d)):(f.ig+=h.Xe.uy(l.C.F.zm,f.Ld,f.ig,f.font),c=f.oha(h.Xe.Uf(d.width),h.Xe.Uf(d.height),f.Fk,f.xh),f.Ld.addImage(d,"JPEG",f.Th+c.x,f.ig,c.width,c.height),0==f.rb.filename.length&&(f.rb.filename="pivotcharts.pdf"),
f.rb.xC==l.hb.fp.UA?h.Sn.save(f.Ld,f.rb):h.Sn.save(e.P.c5(f.Ld.output()),f.rb),f.clear(),l.Va.V().Fa(new v.fa(e.vg.oh)))})})}catch(a){console.error("Export Charts error:",a),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),f.W3&&null!=f.$e?f.$e(null):l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}})}static clear(){f.es=null;f.rb=null;f.Ld=null;f.ig=0;f.xh=0;f.Fk=0;f.ll=0;f.Im=null;f.Lp=null}static Uga(b){b=b.find("title",!0);for(var a=0;a<b.length;a++)b[a].remove()}static oha(b,a,c,d){var g={x:0,y:0,width:0,height:0};if(b>
c-0||a>d-0)d=Math.min((c-0)/b,(d-0)/a),b*=d,a*=d;g.x=(c-0-b)/2;g.y=0;g.width=b;g.height=a;return g}}f.font=null;f.$e=null;f.Ii=5;f.Th=15;f.nr="a4";f.ll=0;h.xA=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c=null){const d=["lib/html2canvas.v1.min.js"];u.Kd().Xi&&d.unshift("lib/promise.min.js");u.Zn.load(d,()=>{f.rb=a;this.Xva();const g=b.G.clone(),k=this.QR(g,c);e.K.Mb.Fb.G.prepend(k);null==c?k.pq(g.height+this.rda()):k.pq(e.K.Mb.Fb.hq()+this.rda());k.R("left",-k.left-k.width+"px");try{html2canvasV1(k.element).then(m=>{f.RDa(m);k.Gg()})}catch(m){console.error("Export Image error:",m),e.Za(l.B.j.pt,l.B.j.Aa,
e.xb.Aa),k.Gg(),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}},()=>{l.Va.V().Fa(new v.fa(e.vg.oh));f.clear()})}static QR(b,a){a=(new x.Ea("div")).R("position","absolute").R("top","0px").R("left","0px").R("overflow","hidden").R("text-align","center").R("background","white").Xj(e.K.Mb.gv).R("z-index",-1).append(a);null!=f.Fu&&a.append(f.Fu);a.append(b.R("position","relative"));null!=f.wu&&a.append(f.wu);return a}static rda(){return(null==this.Fu?0:this.Fu.height)+(null==this.wu?0:this.wu.height)}static Xva(){const b=
h.Xx.lH("a4");let a=this.rb.Ui,c=this.rb.pj,d=null==a,g=null==c;d&&g||(d||(a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.Fu=new x.Ea("div"),this.Fu.R("background","white"),this.Fu.R("text-align","left"),this.Fu.R("z-index",-1),this.Fu.Xj(h.Xe.Fz(b.Fk-2*this.Ii)),this.Fu.html(a)),g||(c=c.replace(/##PAGE-NUMBER##/gi,""),c=c.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.wu=new x.Ea("div"),this.wu.R("background","white"),this.wu.R("text-align",
"left"),this.wu.R("z-index",-1),this.wu.Xj(h.Xe.Fz(b.Fk-2*this.Ii)),this.wu.html(c)))}static RDa(b){if(f.rb.xC==l.hb.fp.UA)h.Sn.save(b,f.rb);else try{var a=e.P.uba(b.toDataURL());0==f.rb.filename.length&&(f.rb.filename="pivotgrid.png");e.v(a)||h.Sn.save(a,f.rb)}catch(c){e.Za("Due to security reason export to image cannot be completed when you run the component from the local folder.",l.B.j.Aa,e.xb.Aa)}l.Va.V().Fa(new v.fa(e.vg.oh));f.clear()}static clear(){f.rb=null;f.Fu=null;f.wu=null}}f.Ii=5;h.Z6=
f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static pg(b,a,c,d,g=null){e.Ca(!0,l.B.j.fF,"...",!0,!0);const k=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];u.Kd().Xi&&k.unshift("lib/promise.min.js");u.Zn.load(k,()=>{f.clear();f.zH=l.C.F.rc;f.LT=b instanceof e.K.Nf.SE;f.Y=b;f.Cd=d;f.Dd=c;f.coords=b.la.coords;f.rb=a;f.nr=h.Xx.eja(a.nr);f.Ld=new jspdf.jsPDF(a.PD,"mm",f.nr,!u.Kd().Xi);f.lw=g;f.I3=null!=g&&l.C.F.je==e.K.Id.dj;f.xh=f.LC-2*f.Th;f.Fk=f.MC-2*f.Th;f.q5=f.Y.ug+c;f.r5=f.Y.nf+d;f.kA={};f.ig=
f.Th;try{f.Daa(),f.$0(),f.t2(()=>{f.SR(f.rb.Ui,f.rb.pj,()=>this.X2())})}catch(m){console.error("Export PDF error:",m),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}})}static t2(b){e.v(f.rb.yS)?b():h.C7.load(f.rb.yS,(a,c)=>{e.v(a)?e.v(c)||(f.font=c,f.Ld.addFileToVFS(c.filename,c.content),f.Ld.addFont(c.filename,c.name,"normal")):e.Za(a.message,l.B.j.Aa,e.xb.Aa);b()})}static SR(b,a,c){let d=null==b||null!=f.Im&&-1==b.search(f.rP),g=null==a||null!=f.Lp&&-1==a.search(f.rP);
if(d&&g)c();else{if(!d){b=b.replace(f.rP,(f.ll+1).toString());b=b.replace(f.v6,(new Date).toLocaleString());var k=new x.Ea("div");k.R("position","absolute");k.R("background","white");k.Xj(f.Fz(f.MC-2*f.Ii));k.html(b);e.K.Mb.Fb.G.prepend(k);html2canvasV1(k.element,{scale:f.Dh}).then(n=>{k.remove();f.Im=n;d=!0;g&&c()})}if(!g){a=a.replace(f.rP,(f.ll+1).toString());a=a.replace(f.v6,(new Date).toLocaleString());var m=new x.Ea("div");m.R("position","absolute");m.R("background","white");m.Xj(f.Fz(f.MC-2*
f.Ii));m.html(a);e.K.Mb.Fb.G.prepend(m);html2canvasV1(m.element,{scale:f.Dh}).then(n=>{m.remove();f.Lp=n;g=!0;d&&c()})}}}static uZ(b,a){b.addImage(a,"JPEG",f.Ii,f.Ii,f.Uf(a.width/f.Dh),f.Uf(a.height/f.Dh))}static tZ(b,a){b.addImage(a,"JPEG",f.Ii,f.LC-f.Uf(a.height/f.Dh)-f.Ii,f.Uf(a.width/f.Dh),f.Uf(a.height/f.Dh))}static dR(){null!=f.Im&&f.uZ(f.Ld,f.Im);null!=f.Lp&&f.tZ(f.Ld,f.Lp);f.xh=f.LC;f.xh-=e.v(f.Im)?f.Th:f.Uf(f.Im.height/f.Dh)+2*f.Ii;f.xh-=e.v(f.Lp)?f.Th:f.Uf(f.Lp.height/f.Dh)+2*f.Ii;f.ig=
e.v(f.Im)?f.Th:f.Uf(f.Im.height/f.Dh)+2*f.Ii}static get LC(){var b=h.Xx.lH(f.nr);return"portrait"===f.rb.PD?b.xh:b.Fk}static get MC(){var b=h.Xx.lH(f.nr);return"portrait"===f.rb.PD?b.Fk:b.xh}static X2(){f.dR();if(null!=f.lw){f.ig+=f.uy(l.C.F.zm,f.Ld,f.ig,f.font);var b=h.xA.oha(f.Uf(f.lw.width),f.Uf(f.lw.height),f.Fk,f.xh),a=e.ia(l.C.F.zm)?f.ig:f.ig+5;f.Ld.addImage(f.lw,"JPEG",f.Th,a,b.width,b.height);f.I3||this.baa()}f.I3?f.aga():(f.ig+=f.uy(l.C.F.Pp,f.Ld,f.ig,f.font),f.BHa(),l.C.F.kI&&f.ML(),u.Cl.eo({Uo:()=>
f.x0(),$e:()=>f.aga()}))}static uy(b,a,c,d){if(e.ia(b))return 0;e.v(d)?(d=a.getFont(),a.setFont(d.eya,"bold")):a.setFont(d.name,"normal");a.setTextColor(0,0,0);a.setFontSize(12);d=12*a.getStringUnitWidth(b)/a.internal.scaleFactor;d=(a.internal.pageSize.getWidth()-d)/2;a.text(b,d,c);return f.Uf(12)}static Raa(b,a,c){var d=.8*Math.max(f.Uf(30),6),g=.9*f.XH(f.Aba);b=f.Ld.splitTextToSize(b,g,f.Cu(c));a=f.Ld.splitTextToSize(a,g,f.Cu(c));c=1<b.length?f.Uf(b.length*(11+2*f.Li)-2*f.Li):f.Uf(11*b.length-f.Li);
a=1<a.length?f.Uf(a.length*(11+2*f.Li)-2*f.Li):f.Uf(11*a.length-f.Li);a=(c>a?c:a)/d;return 1>a?d:(a+1)*d}static ML(){if(!(f.Y instanceof e.K.Nf.SE||0==e.u.Ra.V().ua.ob.length)){var b=l.Va.V().ha.ua.wc(),a=e.u.Ra.V().ua.ob,c=f.Th,d=.9*f.XH(f.Aba);var g=!0;var k=f.Y.la.kg(0,0,!0),m=f.tS.clone();m=f.Wz(k,m);for(var n=m.fontSize,p=0;p<b.length;p++){var t=b.ea(p);if(a.Hb(t.A)&&t.filter.wh){var r=f.gz(t);g&&(g=f.Raa("",l.B.j.Gr,m),f.LL(f.Ld.splitTextToSize("",d,f.Cu(m)),k,m,c,d,g),c+=d,m.fontSize=n,f.LL(f.Ld.splitTextToSize(l.B.j.Gr,
d,f.Cu(m)),k,m,c,d,g),m.fontSize=n,c=f.Th,f.ig+=g,f.Ts+=g);g=f.Raa(t.caption,r,m);f.LL(f.Ld.splitTextToSize(f.y5(t.caption),d,f.Cu(m)),k,m,c,d,g);c+=d;m.fontSize=n;f.LL(f.Ld.splitTextToSize(f.y5(r),d,f.Cu(m)),k,m,c,d,g);m.fontSize=n;c=f.Th;f.ig+=g;f.Ts+=g;g=!1}}f.ig=f.ig>f.Th?f.ig+2*f.XH(f.zba):f.ig;f.Ts=f.ig>f.Th?f.Ts+2*f.XH(f.zba):f.Ts}}static y5(b){b=b.replace(/<(?:.|\n)*?>/gi,"");var a=b.match(/&#(\d{3,4});/gi);if(a)for(var c,d=0;d<a.length;d++)c=parseInt(a[d].substring(2,a[d].length-1)),b=b.replace(a[d],
String.fromCharCode(c));return b}static LL(b,a,c,d,g,k){var m=b.length,n=1<m?f.Uf(b.length*(c.fontSize+2*f.Li)-2*f.Li):f.Uf(b.length*c.fontSize-f.Li);n>f.xh/2&&(n=(f.xh-20)/2,m=Math.floor(f.Fz(n)/(c.fontSize+2*f.Li)));c.fontSize*=.7;var p=e.K.Y.X.ed.O3(c.backgroundColor);f.Ld.setFillColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=e.K.Y.X.ed.O3(c.borderColor);f.Ld.setDrawColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=e.K.Y.X.ed.O3(c.color);f.Ld.setTextColor(p[0],p[1],p[2]);e.v(f.font)?(p=f.Ld.getFont(),f.Ld.setFont(p.eya,
"bold"===c.fontWeight?"bold":"normal")):f.Ld.setFont(f.font.name,"normal");f.Ld.setFontSize(c.fontSize);f.Ld.rect(d,f.ig,g,k,"FD");k=f.ig+(k-n)/2+f.Li;if("right"==c.textAlign)if(1<b.length)for(c=0;c<m;c++)f.Ld.text(b[c],d+g-f.Li,k,{align:"right"}),k+=2*f.Li;else f.Ld.text(b[0],d+g-f.Li+("("==b[0].charAt(0)&&")"==b[0].charAt(b[0].length-1)?1.5:0),k,{align:"right"});else if(1<b.length)for(c=0;c<m;c++)g=!l.C.F.pk&&null!=a&&0<a.level?(a.level+1)*f.Li:f.Li,f.Ld.text(b[c],d+g,k),k+=2*f.Li;else g=!l.C.F.pk&&
null!=a&&0<a.level?(a.level+1)*f.Li:f.Li,f.Ld.text(b[0],d+g,k)}static gz(b){var a=l.B.j.aJ;b.filter.wh&&(a=1==b.gb.length?b.ya(b.gb[0]).caption:l.B.j.gJ);return a}static $0(){var b=f.Y.la,a=b.find(".fm-data-sheet");f.oR=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le,a);f.p5=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv,a);f.g1=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv+" "+e.K.Y.X.wa.jJ,a);f.p4=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv,x.Ea.Vb(b.element));f.c_=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+
e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.KA,x.Ea.Vb(b.element));f.tS=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.zq,x.Ea.Vb(b.element))}static bH(b){b=f.XH(f.Y.la.coords.vh(b));b=b<f.Fk?b:f.Fk-1;return.9*b}static Wz(b,a){null!=b&&b.Ku&&null!=b.style&&(b=0<b.style.sC.length?e.K.Y.X.ed.Sl(b.style.PS()):e.K.Y.X.ed.DS(b.style.hT()),b.merge(a),a=b);a.color=a.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==a.backgroundColor&&(a.color="rgb(242, 242, 242)");a.backgroundColor=a.backgroundColor||"rgb(0,0,0,0)";
a.borderColor=a.borderColor||"rgb(222,222,222)";a.fontSize=a.fontSize||11;return a}static Cu(b){return{fontSize:.85*b.fontSize,fontName:null==b.fontFamily?f.wma:b.fontFamily,fontStyle:e.K.Y.X.Gma.Mza(parseFloat(b.fontWeight))}}static BHa(){f.uT=Array(f.r5);for(var b,a=0,c,d;a<f.r5;){f.Y.la.coords.Fo(a,NaN)&&(f.uT[a]=0,a++);c=b=0;for(var g=.8*Math.max(f.Uf(f.coords.Vd(a)),6);b<f.q5;){f.Y.la.coords.Fo(NaN,b)&&(f.kA[b]=0,b++);d=f.Y.la.kg(a,b,!0);new e.K.Y.X.ed;var k=f.oR.clone();k=f.Wz(d,k);if(null!=
d){var m=d.J();"number"===typeof m&&(d.value=m,m+="",d.numeric=!0);m=m.replace(/<(?:.|\n)*?>/gi,"");d=f.Ld.splitTextToSize(m,null!=f.kA&&null!=f.kA[b]?f.kA[b]:f.bH(b),f.Cu(k));d=(1<d.length?f.Uf(d.length*(11+2*f.Li)-2*f.Li):f.Uf(11*d.length-f.Li))/g;d=1>d?g:(d+1)*g;d=d>f.xh/2?(f.xh-1)/2:d;c=d>c?d:c}b++}f.uT[a]=c;a++}}static x0(){if(f.VP)return!1;for(var b=0;b<f.Ar;b++){if(f.gN&&(f.baa(),f.VP))return!1;var a,c=f.Th,d=f.ks-f.VR<f.Y.nf&&f.ks>f.Y.op?f.ks-f.VR:f.ks;if(f.Y.la.coords.Fo(d,NaN))f.ks++;else{var g=
f.uT[d];for(f.ju=f.ls;f.ju<f.Oy+f.ls;){var k=(a=f.zH||f.LT?!1:f.ju==f.ls&&f.ju>f.Y.op)?f.Y.op:f.ju;if(f.Y.la.coords.Fo(NaN,k))f.ju++;else if(!f.LK()&&f.Ts+g<=f.xh){a=null!=f.kA&&null!=f.kA[k]?f.kA[k]:f.bH(k);if(.9*(c+a)>f.Fk)break;k=f.Y.la.kg(d,k,!0);var m=e.v(k)?"":k.J();"number"===typeof m&&(k.value=m,m+="",k.numeric=!0);m=f.y5(m);var n=[m];new e.K.Y.X.ed;if(null!=k&&k.zi){var p=f.p4.clone();p=f.Wz(k,p);n=f.Ld.splitTextToSize(m,a,f.Cu(p))}else null!=k&&k.Nh?(p=f.c_.clone(),p=f.Wz(k,p),n=f.Ld.splitTextToSize(m,
a,f.Cu(p))):null!=k&&k.el?(p=f.tS.clone(),p=f.Wz(k,p)):null!=k&&k.sz&&k.Ak&&""!=k.J()?(p=f.g1.clone(),p=f.Wz(k,p)):null!=k&&k.Ak&&""!=k.J()?(p=f.p5.clone(),p=f.Wz(k,p)):(p=f.oR.clone(),p=f.Wz(k,p),n=f.Ld.splitTextToSize(m,a,f.Cu(p)));f.LL(n,k,p,c,a,g);f.ju++;c+=a}else{f.gN=!0;break}}f.gN||(f.ig+=g,f.Ts+=g,f.ks++);if(f.gR()&&f.LK())break}}return f.gR()&&f.LK()}static gR(){return f.ls+f.Oy>=f.Dd+f.Y.ug}static LK(){return f.ks>=f.Cd+f.Y.nf}static baa(){f.Ld.addPage();f.ll++;f.gN=!1;f.VP=!0;f.SR(f.rb.Ui,
f.rb.pj,()=>{f.VP=!1;f.dR()});f.Ts=0;if(null==f.lw||1<f.ll)f.vJa(),f.uJa();e.Ca(!0,l.B.j.fF,f.ll+1+" "+l.B.j.m8,!0)}static vJa(){f.gR()&&!f.LK()?(f.ks-=f.Y.nf,f.VR=f.ks):f.ks=f.VR}static uJa(){f.gR()?f.LK()||(f.ls=0,f.ju=0):(f.ls+=f.Oy,f.ju=f.ls);f.Daa()}static Daa(){f.Oy=0;var b=f.ls,a=0;if(f.zH||f.LT?0:f.ls>=f.Y.ug){var c=f.bH(f.Y.op);a+=c;f.Oy++;f.ls--;f.ju--}for(;b<f.q5;)if(c=f.bH(b),c>f.Fk/2-f.Th&&(c=(f.Fk+f.Th)/2,f.kA[b]=c),a+=c,a<=f.Fk)f.Oy++,b++;else{0==f.Oy&&(f.Oy=1);break}}static aga(){0==
f.rb.filename.length&&(f.rb.filename="pivot.pdf");if(f.rb.xC==l.hb.fp.UA)h.Sn.save(f.Ld,f.rb);else{var b=f.Ld.output();b=e.P.c5(b);h.Sn.save(b,f.rb)}f.clear();l.Va.V().Fa(new v.fa(e.vg.oh))}static clear(){f.Y=null;f.rb=null;f.Ld=null;f.font=null;f.Dd=0;f.Cd=0;f.q5=0;f.r5=0;f.Oy=0;f.ju=0;f.ls=0;f.ks=0;f.VR=0;f.Ts=0;f.ig=0;f.gN=!1;f.ll=0;f.xh=0;f.Fk=0;f.Im=null;f.Lp=null;f.uT=null;f.zH=!1;f.LT=!1}static XH(b){return.264*b}static Fz(b){return 3.779*b}static Uf(b){return b/3.779}}f.Th=15;f.gN=!1;f.ll=
0;f.I3=!1;f.wma="Helvetica";f.font=null;f.nr="a4";f.Aba=100;f.zba=30;f.rP=/##PAGE-NUMBER##/gi;f.v6=/##CURRENT-DATE##/gi;f.zH=!1;f.LT=!1;f.Dh=4;f.Ii=5;f.VP=!1;f.Ar=5;f.Li=f.XH(8);h.Xe=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c,d,g=""){f.Y=b;f.Dd=c;f.Cd=d;f.rb=a;f.lw=g||"";try{f.nS()}catch(k){console.error("Export HTML error:",k),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}}static nS(){e.Ca(!0,l.B.j.Ux);f.Fm=u.Qf();f.Gu="";f.lb=f.Y.Mi;f.$s=[];l.C.F.kI&&f.ML();u.Cl.eo({Uo:()=>f.x0(),$e:()=>f.ZEa()})}static y0(){var b="",a=f.Y.la,c=a.find(".fm-data-sheet");b+=e.P.bind("body{{0}}\n",e.K.Y.X.ed.dz(x.Ea.Vb(a.element),
["font-family"]));b+=e.P.bind(".grid{border-collapse:collapse;{0}border-top:1px solid #e9e9e9;border-left:1px solid #e9e9e9;}\n",e.K.Y.X.ed.dz(x.Ea.Vb(a.element),["font-family","font-size","color"]));b+=e.P.bind(".title{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.UX,x.Ea.Vb(a.element)));b+=e.P.bind(".cell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le,c));b+=e.P.bind(".totalCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv,c));b+=e.P.bind(".grandTotalCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv+
" "+e.K.Y.X.wa.jJ,c));b+=e.P.bind(".rowHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv,x.Ea.Vb(a.element)));b+=e.P.bind(".columnHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.KA,x.Ea.Vb(a.element)));b+=e.P.bind(".filterHeaderCell{{0}}\n",e.K.Y.X.ed.bl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.zq,x.Ea.Vb(a.element)));for(c=1;20>=c;c++)b+=e.P.bind(".level{0}{{1}}\n",c,e.K.Y.X.ed.bl(e.K.Y.X.wa.uv+" "+e.K.Y.X.wa.Hf+c,x.Ea.Vb(a.element),
["padding-left"]));for(c=0;c<f.$s.length;c++)b+=e.P.bind(".{0}{{1}}\n",f.$s[c],e.K.Y.X.ed.bl(f.$s[c],x.Ea.Vb(a.element)));return b}static IZ(b){for(var a=0;a<b.length;a++)0>f.$s.indexOf(b[a])&&f.$s.push(b[a])}static ML(){if(!(f.Y instanceof e.K.Nf.SE||0==e.u.Ra.V().ua.ob.length))for(var b=l.Va.V().ha.ua.wc(),a=e.u.Ra.V().ua.ob,c,d,g=!0,k,m="style='min-width:"+f.vDa+"px;'",n=0;n<b.length;n++)d=b.ea(n),k="",a.Hb(d.A)&&d.filter.wh&&(c=f.gz(d),g&&(k+="<td {0}></td>",k=e.P.bind(k,"class='filterHeaderCell' "+
m),k+="<td {0}>"+l.B.j.Gr+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),f.HC+="<tr>"+k+"</tr>",k=""),k+="<td {0}>"+d.caption+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),k+="<td {0}>"+c+"</td>",k=e.P.bind(k,"class='filterHeaderCell' "+m),f.HC+="<tr>"+k+"</tr>",g=!1)}static gz(b){var a=l.B.j.aJ;b.filter.wh&&(a=1==b.gb.length?b.ya(b.gb[0]).caption:l.B.j.gJ);return a}static x0(){var b="";if(f.Y.la.coords.Fo(f.lb,NaN))return f.lb++>=f.Cd+f.Y.nf;for(var a=f.Y.op;a<f.Dd+f.Y.ug;a++)if(!f.Y.la.coords.Fo(NaN,
a)){var c=f.Y.la.kg(f.lb,a,!0);b+="<td {0}>"+(c?c.J(!0):"")+"</td>";if(null==c)b=e.P.bind(b,"class='cell'");else{var d="",g="";c.Ku&&null!=c.style&&(g=c.style.hT(),d=c.style.PS(),f.IZ(c.style.sC));d=c.zi?d+(" rowHeaderCell level"+c.level):c.Nh?d+" columnHeaderCell":c.el?d+" filterHeaderCell":c.sz&&c.Ak&&""!=c.J(!0)?d+" grandTotalCell":c.Ak&&""!=c.J(!0)?d+" totalCell":d+" cell";null!=c&&c.el&&(d+=" level"+c.level);""!=d.trim()&&(d="class='"+d.trim()+"'");g+="width:"+f.Y.la.coords.vh(a)+"px;";""!=g.trim()&&
(g="style='"+g.trim()+"'");b=e.P.bind(b,d+" "+g)}}f.pN+="<tr>"+b+"</tr>";200<u.Qf()-f.Fm&&(e.Ca(!0,l.B.j.Ux,e.P.bind("{0}%",(f.lb/(f.Cd+f.Y.nf)*100).toFixed(0))),f.Fm=u.Qf());return++f.lb>=f.Cd+f.Y.nf}static ZEa(){e.Ca(!1);f.BIa();f.clear()}static BIa(){0==f.rb.filename.length&&(f.rb.filename="pivotgrid.html");var b="";if(!e.ia(f.rb.Ui)){var a=f.rb.Ui;a=a.replace(/##PAGE-NUMBER##/gi,"");a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());b+=a}e.ia(f.lw)||(e.ia(l.C.F.zm)||(b+="<div class='title'>"+
l.C.F.zm+"</div>"),b+=f.lw);b+="<div class='title'>"+l.C.F.Pp+"</div>";b+=0<f.HC.length?"<table class='grid'>"+f.HC+"</table><br><br><table class='grid'>"+f.pN+"</table>":"<table class='grid'>"+f.pN+"</table>";e.ia(f.rb.pj)||(a=f.rb.pj,a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),b+=a);f.Gu="<!DOCTYPE html><html><head><meta charset='UTF-8'/>";f.Gu+="<title>"+(e.ia(l.C.F.Pp)?l.B.j.JW:l.C.F.Pp)+"</title>";f.Gu+="<style>"+f.y0()+"</style></head>";
f.Gu+="<body>"+b+"</body></html>";h.Sn.save(f.Gu,f.rb);l.Va.V().Fa(new v.fa(e.vg.oh))}static clear(){f.lb=0;f.Gu="";f.HC="";f.pN="";f.Dd=0;f.Cd=0;f.Y=null;f.rb=null;f.lw=""}}f.lb=0;f.Fm=0;f.Gu="";f.HC="";f.pN="";f.vDa=100;f.Ar=10;h.Y6=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c,d){f.Y=b;f.Dd=c;f.Cd=d;f.rb=a;try{f.Fxa()}catch(g){console.error("Export XLS error:",g),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh))}}static Fxa(){e.Ca(!0,l.B.j.Ux);f.lb=f.Y.Mi;f.Ke=0;f.Fm=u.Qf();f.qN=[];f.Ff=new S.Hqa;var b=l.B.j.JW;e.ia(f.rb.e0)?e.ia(l.C.F.Pp)||(b=l.C.F.Pp):b=f.rb.e0;b=new S.Iqa(b);f.Ff.Yg.push(b);f.$0();this.rb.Ui?f.Y$(this.rb.Ui):f.Vsa();f.uy();l.C.F.kI&&
f.vsa();u.Cl.eo({Uo:()=>f.Yya(),$e:()=>f.FGa()})}static $0(){var b=f.Y.la.element;f.oR=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le,x.Ea.Vb(b),!1);f.p5=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv,x.Ea.Vb(b),!1);f.g1=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.Fv+" "+e.K.Y.X.wa.jJ,x.Ea.Vb(b),!1);f.p4=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv,x.Ea.Vb(b),!1);f.c_=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.KA,x.Ea.Vb(b),!1);f.tS=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+
e.K.Y.X.wa.zq,x.Ea.Vb(b),!1);for(var a=1;20>=a;a++)f.r4[a]=e.K.Y.X.ed.Sl(e.K.Y.X.wa.Le+" "+e.K.Y.X.wa.bk+" "+e.K.Y.X.wa.uv+" "+e.K.Y.X.wa.Hf+a,x.Ea.Vb(b),!1)}static FGa(){f.Y$(this.rb.pj,!0);f.uDa();e.Ca(!1);f.FIa()}static FIa(){f.lb=f.Y.Mi;0==f.rb.filename.length&&(f.rb.filename="pivot.xlsx");h.Sn.save(f.Ff.nKa(),f.rb);f.Ff=null;f.rb=null;l.Va.V().Fa(new v.fa(e.vg.oh))}static GKa(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Pa.Sa?!1:e.u.i.da.AE(b.measure.aa)||l.C.F.hD==e.K.Y.te.Bh&&!b.Ak?
!0:!1}static AE(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Pa.Jc?!1:e.u.i.da.AE(b.measure.aa)||l.C.F.hD==e.K.Y.te.Bh&&!b.Ak?!0:!1}static Zo(b){return e.v(b)||e.v(b.measure)||b.measure.type!=e.u.i.Pa.dc?!1:e.u.i.da.Zo(b.measure.aa)||l.C.F.hD==e.K.Y.te.Bh&&!b.Ak?!0:!1}static Yya(){for(var b=f.Cd+f.Y.nf,a=f.Y.op;a<f.Dd+f.Y.ug;a++){var c=f.Y.la.kg(f.lb,a,!0);let r=e.v(c)?"":c.J();r=r?r:"";let w;var d=f.GKa(c);const y=f.AE(c),A=f.Zo(c);e.v(c)||isNaN(c.value)||(d?w=f.Eva(c.value,c.hierarchy.getTimezoneOffset()):
y?w=f.Fva(c.value,c.hierarchy.getTimezoneOffset()):A&&(w=f.Gva(c.value)));"number"===typeof r&&(c.value=r,r+="",c.numeric=!0);var g=null!=c&&(c.zi||c.Nh);f.rb.fca&&""==r&&null!=c&&null!=c.bc&&(r=c.bc.caption);if(""!=r.trim()||g){new e.K.Y.X.ed;g=null!=c&&c.zi?0<c.level&&f.r4[c.level]?f.r4[c.level].clone():f.p4.clone():null!=c&&c.Nh?f.c_.clone():null!=c&&c.el?f.tS.clone():null!=c&&c.sz&&c.Ak&&""!=c.J()?f.g1.clone():null!=c&&c.Ak&&""!=c.J()?f.p5.clone():f.oR.clone();if(null!=c&&c.Ku&&null!=c.style){var k=
0<c.style.sC.length?e.K.Y.X.ed.Sl(c.style.PS()):e.K.Y.X.ed.DS(c.style.hT());k.merge(g);g=k}g.color=g.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==g.backgroundColor&&(g.color="rgb(242, 242, 242)");g.backgroundColor=g.backgroundColor||"rgb(255,255,255)";g.fontSize=g.fontSize?f.MHa(g.fontSize):8;var m=new S.ud.fonts.Iv(e.v(g.fontFamily)?"Tahoma":g.fontFamily,g.fontSize,e.P.Bo(g.color));m.bold="bold"==g.fontWeight||700<=parseInt(g.fontWeight);m.AD=!1;var n=null,p=k=!1;if(c.numeric){if(null!=c.measure){n=c.measure.Yh(c.measure.A,
c.measure.aa);p=""!=n.GD?!0:p;k=e.u.i.da.de(c.measure.aa)||c.measure.Na&&-1<c.measure.ve.indexOf("percent");var t=n.Nia();if(k||n.de)n=n.clone(),n.rd="%",t=n.Nia();n=new S.ud.format.yt(""==t?0:-1,t)}}else d||y?n=c.measure.type==e.u.i.Pa.Jc?new S.ud.format.yt(164,"dd.mm.yyyy h:mm:ss"):new S.ud.format.yt(14,""):A&&(0<=w?n=new S.ud.format.yt(165,f.Wo):(w=Math.abs(w),n=new S.ud.format.yt(166,"-"+f.Wo)));n&&f.Ff.styleSheet.wsa(n);m=new S.ud.fB(m,e.P.Bo(g.backgroundColor),n,c.Ku&&void 0==g.textAlign&&c.ci?
"right":g.textAlign);!l.C.F.pk&&c&&c.zi&&0<c.level&&(m.textIndent=c.level);f.Ff.styleSheet.cw(m);n=null!=c.measure?c.measure.Yh(c.measure.A,c.measure.aa):null;r=e.P.PG(r);c.numeric?null==n||c.label!=n.oD&&c.label!=n.zC?c.Ku&&f.FBa()&&f.rb.cja?(d=c.J(),f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,!isNaN(c.value)&&c.label==d&&c.numeric?f.Ica(c.value,n,k):e.P.PG(d),m)):(w=f.Ica(c.value,n,k),f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,isNaN(c.value)&&p?c.J():w,m)):f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,c.J(),m):f.rb.hA||!c.ci||null==
c.measure||c.measure.type!=e.u.i.Pa.Sa&&c.measure.type!=e.u.i.Pa.Jc?!f.rb.hA&&c.ci&&null!=c.measure&&c.measure.aa==e.u.i.da.NONE?f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,c.value,m):!f.rb.hA&&c.ci&&null!=c.measure&&c.measure.type==e.u.i.Pa.dc?A?f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,w,m):f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,c.value,m):f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,r,m):d||y?f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,w,m):f.Ff.Yg[0].Fi(f.lb-f.Y.Mi+f.Ke,a,c.value,m);null!=c&&(0==f.Ff.Yg[0].bH(a)&&f.Ff.Yg[0].Dha(a,f.Dva(f.Y.la.coords.vh(a))),
a!=f.Y.op||f.Y.la.coords.qCa(f.lb)||(c=f.hL(f.Y.la.coords.Vd(f.lb)),f.Ff.Yg[0].vx(f.lb+f.Ke,c)),r.length>g.width&&f.Ff.Yg[0].Dha(a,f.hL(r.length+f.cellPadding)>f.hL(f.E6)?f.hL(f.E6):f.hL(r.length+f.cellPadding)))}}200<u.Qf()-f.Fm&&(e.Ca(!0,l.B.j.Ux,e.P.bind("{1}% ("+l.B.j.yX+")",f.lb.toString(),(f.lb/b*100).toFixed(0))),f.Fm=u.Qf());return f.lb++>=b}static Ica(b,a,c){return null==a||!c&&"%"!=a.rd?b:b/100}static Eva(b,a){b=-f.Sca(b,a)+b;return Math.floor(b/864E5)}static Fva(b,a){return(-f.Sca(b,a)+
b)/864E5}static Sca(b,a){return null!=a?Date.parse("1899-12-30")-36E5*a:Date.parse("1899-12-30")+36E5*((new Date(b)).getTimezoneOffset()/60)}static Gva(b){return 1E3*b/864E5}static MHa(b){return.75*b}static hL(b){return 0>=b?0:f.Cwa/f.yba*b*(f.yba/e.K.Y.sheet.Ch.mv)}static Dva(b){return 0>=b?0:((b-5)/7*100+.5)/100}static Vsa(){var b=l.hb.MI.Dm;if(0<b.length){var a=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.KA).element),c=new S.ud.fonts.Iv(a.fontFamily,parseInt(a.fontSize)-2,e.P.Bo(a.color));
c.bold="bold"===a.fontWeight;c.AD="italic"===a.fontStyle;c=new S.ud.fB(c,e.P.Bo(a.backgroundColor));c.textAlign=a.textAlign;f.Ff.styleSheet.cw(c);f.Ff.Yg[0].Fi(f.Ke,0,l.B.j.Ala,c);f.Ff.Yg[0].Fi(f.Ke,1,"",c);a=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.Le).element);var d=new S.ud.fonts.Iv(a.fontFamily,parseInt(a.fontSize)-2,e.P.Bo(a.color));d.bold="bold"===a.fontWeight;d.AD="italic"===a.fontStyle;d=new S.ud.fB(d,e.P.Bo(a.backgroundColor));d.textAlign=a.textAlign;f.Ff.styleSheet.cw(d);for(a=0;a<
b.length;a++)f.Ff.Yg[0].Fi(a+1+f.Ke,0,e.P.PG(String(b[a].name)),c),f.Ff.Yg[0].Fi(a+1+f.Ke,1,e.P.PG(String(b[a].value)),c)}f.Ke+=0==b.length?0:b.length+2}static Y$(b,a=!1){if(null!=b&&0!=b.length){var c=0;a&&(f.Ke+=1,c=f.Cd+f.Y.nf);b=b.split("\n");var d=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.KA).element),g=new S.ud.fonts.Iv(d.fontFamily,parseInt(d.fontSize)-2,e.P.Bo(d.color));g.bold="bold"===d.fontWeight;g.AD="italic"===d.fontStyle;g=new S.ud.fB(g,e.P.Bo(d.backgroundColor));g.textAlign=d.textAlign;
f.Ff.styleSheet.cw(g);d=f.Ff.Yg[0];for(var k=0;k<b.length;k++){const m=c+k+f.Ke;d.Fi(m,0,e.P.PG(String(b[k])),g);f.qN.push(m)}f.Ke+=b.length+(a?0:1)}}static uy(){var b=l.C.F.Pp;if(0!=b.length){var a=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.UX).element),c=new S.ud.fonts.Iv(a.fontFamily,parseInt(a.fontSize)-2,e.P.Bo(a.color));c.bold="bold"===a.fontWeight;c.AD="italic"===a.fontStyle;a=new S.ud.fB(c,e.P.Bo(a.backgroundColor));a.textAlign="center";f.Ff.styleSheet.cw(a);c=f.Ke;f.Ff.Yg[0].Fi(c,0,
b,a);f.qN.push(c);f.Ke+=1}}static uDa(){const b=f.Ff.Yg[0];for(var a=0;a<f.qN.length;a++)b.zfa(f.qN[a],0,Math.min(b.Jua,10))}static FBa(){return!e.v(e.K.Y.X.ke.uw)}static vsa(){if(!(f.Y instanceof e.K.Nf.SE||0==e.u.Ra.V().ua.ob.length)){var b=l.Va.V().ha.ua.wc(),a=e.u.Ra.V().ua.ob,c=!0,d=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.bk).element),g=new S.ud.fonts.Iv(d.fontFamily,parseInt(d.fontSize)-2,e.P.Bo(d.color));g.bold="bold"===d.fontWeight;g.AD="italic"===d.fontStyle;g=new S.ud.fB(g,e.P.Bo(d.backgroundColor));
g.textAlign=d.textAlign;f.Ff.styleSheet.cw(g);d=getComputedStyle(e.K.Mb.Fb.G.find("."+e.K.Y.X.wa.Le).element);var k=new S.ud.fonts.Iv(d.fontFamily,parseInt(d.fontSize)-2,e.P.Bo("rgb(0,0,0)"));k.bold="bold"===d.fontWeight;k.AD="italic"===d.fontStyle;d=new S.ud.fB(k,e.P.Bo(d.backgroundColor));d.textAlign="left";f.Ff.styleSheet.cw(d);k=f.Ff.Yg[0];var m=0;for(let t=0;t<b.length;t++){var n=b.ea(t);var p=n.si.type==e.u.i.BA.OA;(a.Hb(n.A)||f.rb.MV)&&n.filter.wh&&(p=p?f.Vua(n):f.rb.MV?f.nda(n):f.gz(n),c&&
(k.Fi(m+f.Ke,0,"",g),k.Fi(m+f.Ke,1,l.B.j.Gr,g),m++),k.Fi(m+f.Ke,0,n.caption,g),k.Fi(m+f.Ke,1,p,d),m++,c=!1)}if(l.C.F.hD==e.K.Y.te.Bh)for(b=l.Va.V().ha.ua.Kf,a=0;a<b.length;a++)(n=l.Va.V().ha.ua.Ck(b[a].A))&&n.filter.wh&&(p=f.rb.MV?f.nda(n):f.gz(n),c&&(k.Fi(m+f.Ke,0,"",g),k.Fi(m+f.Ke,1,"Filters",g),m++),k.Fi(m+f.Ke,0,n.caption,g),k.Fi(m+f.Ke,1,p,d),m++,c=!1);f.Ke+=c?0:m+1}}static nda(b){for(var a=[],c=0;c<b.gb.length;c++)a.push(b.XC(b.gb[c]));return a.join(", ")}static gz(b){var a=l.B.j.aJ;b.filter.wh&&
(a=1==b.gb.length?b.ya(b.gb[0]).caption:l.B.j.gJ);return a}static Vua(b){var a,c=[];null!=f.bA&&(f.bA.length=0);f.nia(b.Ad);for(var d=f.$ua(b),g=!1,k=0;k<f.bA.length;k++){var m=b.ya(f.bA[k]);var n=k==f.bA.length-1;if(!g&&-1<b.gb.indexOf(m.ordinal)){g=!0;var p=m}g&&(-1<b.gb.indexOf(m.ordinal)&&(a=m),-1<d.indexOf(m.ordinal)&&!n||(a=null!=a?a:p,m=f.Taa(p),n=a.A!=p.A?":"+f.Taa(a,!0):"",a=p=null,g=!1,c.push(m+n)))}return c.join(", ")}static nia(b){null==f.bA&&(f.bA=[]);b.Zb||f.bA.push(b.ordinal);for(var a=
b.hierarchy.Yj(b,!1,e.u.i.za.ic),c=a.length,d,g=0;g<c;g++)d=b.hierarchy.ya(a[g]),0<d.children.length?f.nia(d):f.bA.push(d.ordinal)}static Taa(b,a=!1){var c=b,d=[];for(d.push(b.caption);c&&c.A!=b.A&&!c.level.Nu&&0<c.children.length;)d.push(c.caption),c=c.hierarchy.Yj(c,!1,e.u.i.za.ic),c=b.hierarchy.ya(a?c[c.length-1]:c[0]);for(c=b.parent;c&&!c.Zb;)d.unshift(c.caption),c=c.parent;return d.join("-")}static $ua(b){for(var a=[],c=b.gb,d,g=0;g<c.length;g++)if(d=b.ya(c[g]),a.push(d.ordinal),a=a.concat(d.ww),
!(d.parent&&!d.parent.Zb&&-1<a.indexOf(d.parent.ordinal)))for(;d.parent&&!d.parent.Zb;)d=d.parent,a.push(d.ordinal);return a}}f.lb=0;f.Ke=0;f.cellPadding=3;f.E6=100;f.Wo="[h]:mm:ss";f.r4=[];f.Cwa=14.3;f.yba=38;f.qN=[];h.c7=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static tk(c,d=null,g=null){f.uY?this.L_.push({type:c,options:d,$e:g}):(c=c.toLowerCase(),c=a.iA(c)?c:a.Sh,l.C.F.je==e.K.Id.dj&&c==a.JSON?(e.Za(l.B.j.Zna,l.B.j.Aa),this.via()):(l.Va.V().N(e.vg.oh,f.lca),f.uY=!0,f.yp=g,e.v(d)&&(d=new h.b7),d.type=c,c=new b(c,d,g),l.Va.V().Fa(c)))}static via(){e.Ca(!1);l.Va.V().sb(e.vg.oh,f.lca);f.uY=!1}static JEa(){f.via();if(0<f.L_.length){var c=f.L_.shift();this.tk(c.type,c.options,c.$e)}}static save(c,
d){switch(d.xC.toLowerCase()){case l.hb.fp.DO:f.sN(c,d);break;case l.hb.fp.MX:f.xV(c,d);break;case l.hb.fp.S5:break;case l.hb.fp.UA:f.DIa(c,d);break;default:f.sN(c,d)}}static xV(c,d){switch(d.type){case a.vv:case a.TE:case a.TA:case a.LA:case a.JSON:case a.Sh:f.EIa(c,d);break;default:c=l.Tb.validate(d.type),e.Za("Unknown type of export: '"+c+"'",l.B.j.Aa)}}static sN(c,d){switch(d.type){case a.vv:var g="text/html;charset=utf-8";d.filename=f.NK(d.filename,".html");break;case a.TE:g="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
d.filename=f.NK(d.filename,".xlsx");break;case a.TA:g="application/pdf";d.filename=f.NK(d.filename,".pdf");break;case a.LA:g="image/png";d.filename=f.NK(d.filename,".png");break;case a.Sh:g="text/csv;charset=utf-8";d.filename=f.NK(d.filename,".csv");break;default:g="text/plain;charset=utf-8"}var k=[c];d.type==a.Sh&&k.unshift(e.P.cza());try{z.mha(new Blob(k,{type:g}),d.filename),f.QN({data:c,filename:d.filename,type:d.type})}catch(m){e.Za(l.B.j.iP,l.B.j.Aa,e.xb.Aa),f.QN(null,{message:l.B.j.iP})}}static NK(c,
d){c.indexOf(d)!=c.length-d.length&&(c+=d);return c}static zHa(c){var d={};null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&null!=c.target.xhr&&(d.response=c.target.response,d.status=c.target.xhr.status);d.message=l.B.j.iP;return d}static EIa(c,d){var g=new u.wt(500);g.N(u.pf.Al,function(){e.Ca(!0,l.B.j.o8,(g.tw/10).toString()+" sec")});var k=new z.ek;k.N(v.fa.Aa,t=>{t=f.zHa(t);var r=t.hasOwnProperty("response")?l.Tb.validate(t.response):"";r=700<r.length?r.substr(0,700):r;
e.Za(e.P.bind(t.message,r),l.B.j.Aa,e.xb.Aa);g.stop();e.Ca(!1);f.QN(null,t)});k.N(v.fa.Oc,function(){g.stop();e.Ca(!1);f.QN({data:c,filename:d.filename,type:d.type,response:k.response})});var m=new Blob([c],{type:"application/octet-binary"}),n=new FormData;n.append("filedata",m,d.filename);for(var p in d.k0)n.append(p,d.k0[p]);k.rr=z.xt.zv;k.data=n;k.contentType=!1;k.Qh(d.sc);k.load(d.url);g.start()}static DIa(c,d){f.QN({data:c,filename:d.filename,type:d.type})}static QN(c=null,d=null){null!=f.yp&&
f.yp.call(null,c,d)}}f.uY=!1;f.L_=[];f.lca=()=>f.JEa();h.Sn=f;class b extends v.fa{constructor(c,d,g){super(e.vg.VW);this.ru=c;this.rb=d;this.yp=g}}h.OLa=b;class a{static iA(c){return c===a.LA||c===a.TE||c===a.vv||c===a.Sh||c===a.JSON||c===a.TA}}a.LA="image";a.TE="excel";a.vv="html";a.Sh="csv";a.JSON="json";a.TA="pdf";h.ej=a})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b="file"){this.sl=!0;this.xC=e.model.hb.fp.DO;this.filename="";this.url="()";this.sc=null;this.type=h.ej.vv;this.PD="portrait";this.e0="";this.MV=this.fca=!1;this.hA=!0;this.k0={};this.Pf=",";this.cja=!0;this.naa=!1;this.xC=b}static zb(b){var a=new f;if(e.v(b))return a;e.v(b.showHeaders)||(a.sl="true"===b.showHeaders||!0===b.showHeaders);e.v(b.filename)||(a.filename=b.filename);e.v(b.url)||(a.url=b.url);e.v(b.excelSheetName)||(a.e0=b.excelSheetName);
e.v(b.excelExportAll)||(a.fca=b.excelExportAll);e.v(b.pageOrientation)||"portrait"!==b.pageOrientation.toLowerCase()&&"landscape"!==b.pageOrientation.toLowerCase()||(a.PD=b.pageOrientation.toLowerCase());!e.v(b.destinationType)&&e.model.hb.fp.iA(b.destinationType.toString().toLowerCase())&&(a.xC=b.destinationType.toString().toLowerCase());e.ia(b.pageFormat)||(a.nr=b.pageFormat);e.ia(b.fieldSeparator)||(a.Pf=b.fieldSeparator);e.v(b.showFilters)||(a.MV=b.showFilters);e.v(b.useOlapFormattingInExcel)||
(a.hA=b.useOlapFormattingInExcel);e.v(b.extendedParameters)||(a.k0=b.extendedParameters);e.v(b.header)||(a.Ui=b.header);e.v(b.footer)||(a.pj=b.footer);e.v(b.fontUrl)||(a.yS=b.fontUrl);e.v(b.useCustomizeCellForData)||(a.cja=b.useCustomizeCellForData);e.v(b.requestHeader)||(a.sc=b.requestHeader);e.v(b.requestHeaders)||(a.sc=b.requestHeaders);e.v(b.alwaysEnclose)||(a.naa=b.alwaysEnclose);return a}}h.b7=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c,d,g=null){if(!e.v(b)){f.Y=b;f.Dd=c;f.Cd=d;f.rb=a;f.yp=g;try{f.Cxa()}catch(k){console.error("Export CSV error:",k),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}}}static Oca(b,a){if(null!=b&&0!=b.length){0<f.ar.length&&f.ar.push([].join(f.rb.Pf));b=b.split("\n");for(let d=0;d<b.length;d++){var c=[];c.push('"'+b[d]+'"');f.ar.push(c.join(f.rb.Pf))}0<f.ar.length&&
!a&&f.ar.push([].join(f.rb.Pf))}}static ML(){if(!(f.Y instanceof e.K.Nf.SE||0==e.u.Ra.V().ua.ob.length)){for(var b,a=l.Va.V().ha.ua.wc(),c=e.u.Ra.V().ua.ob,d,g,k=!0,m=0;m<a.length;m++)g=a.ea(m),b=[],c.Hb(g.A)&&g.filter.wh&&(d=f.gz(g),k&&(b.push('""'),b.push('"'+l.B.j.Gr+'"'),f.ar.push(b.join(f.rb.Pf)),b=[]),b.push('"'+g.caption+'"'),b.push('"'+d+'"'),f.ar.push(b.join(f.rb.Pf)),k=!1);0<f.ar.length&&f.ar.push([].join(f.rb.Pf))}}static gz(b){var a=l.B.j.aJ;b.filter.wh&&(a=1==b.gb.length?b.ya(b.gb[0]).caption:
l.B.j.gJ);return a}static Cxa(){e.Ca(!0,l.B.j.Ux);f.lb=0;f.Fm=u.Qf();f.Oca(this.rb.Ui);l.C.F.kI&&f.ML();u.Cl.eo({Uo:()=>f.Rya(),$e:()=>f.QDa()})}static Rya(){if(f.Y.la.coords.Fo(f.lb,NaN))return f.lb>=f.Cd+f.Y.nf;var b=[];for(var a=0;a<f.Dd+f.Y.ug;a++)if(!f.Y.la.coords.Fo(NaN,a))for(b=[],a=0;a<f.Dd+f.Y.ug;a++){if(f.Y.la.coords.Fo(NaN,a))continue;let c="";const d=f.Y.la.kg(f.lb,a,!0);d&&(c=d.J());"number"===typeof c&&(d.value=c,c+="",d.numeric=!0);c=e.P.PG(c);0<=c.indexOf(f.rb.Pf)||this.rb.naa||-1<
c.search(/\n|\r/gi)?(c=c.replace(/["]/gi,'""'),b.push(`"${c}"`)):b.push(c)}f.ar.push(b.join(f.rb.Pf));200<u.Qf()-f.Fm&&(b=f.lb/(f.Cd+f.Y.nf)*100,100<b&&(b=100),e.Ca(!0,l.B.j.Ux,e.P.bind("{1}% ("+l.B.j.yX+")",f.lb.toString(),b.toFixed(0))),f.Fm=u.Qf());return++f.lb>=f.Cd+f.Y.nf}static zIa(){var b=f.ar.join("\r\n");0==f.rb.filename.length&&(f.rb.filename="pivot.csv");h.Sn.save(b,f.rb);l.Va.V().Fa(new v.fa(e.vg.oh));f.clear()}static QDa(){e.Ca(!1);f.Oca(this.rb.pj,!0);f.zIa()}static clear(){f.Y=null;
f.lb=0;f.Fm=0;f.ar=[];f.rb=null;f.yp=null;f.Dd=0;f.Cd=0}}f.lb=0;f.Fm=0;f.ar=[];h.X6=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){throw Error("Singleton");}static pg(b,a,c,d,g=null){if(!e.v(b)){f.Y=b;f.Dd=c;f.Cd=d;f.rb=a;f.yp=g;try{f.Dxa()}catch(k){console.error("Export JSON error:",k),e.Za(l.B.j.pt,l.B.j.Aa,e.xb.Aa),e.Ca(!1),l.Va.V().Fa(new v.fa(e.vg.oh)),f.clear()}}}static Dxa(){e.Ca(!0,l.B.j.Ux);f.qc=0;f.Fm=f.startTime=u.Qf();u.Cl.eo({Uo:()=>f.Vya(),$e:()=>()=>f.gFa()})}static Vya(){for(var b=Math.min(f.qc+f.Ar,f.Dd+f.Y.ug),a;f.qc<b;f.qc++){a=[];for(var c=0;c<f.Cd+
f.Y.nf;c++){var d="",g=f.Y.la.kg(c,f.qc,!0);g&&(d=g.label);a.push(d)}f.d2.push(JSON.stringify(a))}if(50<u.Qf()-f.Fm){b=f.qc/(f.Dd+f.Y.ug)*100;if(100<b)return!0;f.yJa(b);f.Fm=u.Qf()}return f.qc>=f.Dd+f.Y.ug}static yJa(b){e.Ca(!0,l.B.j.Ux,e.P.bind("{0}% ({1} rows)",b.toFixed(0),f.qc.toString()))}static CIa(){var b="["+f.d2.join(",\n")+"]";0==f.rb.filename.length&&(f.rb.filename="pivot.json");h.Sn.save(b,f.rb);l.Va.V().Fa(new v.fa(e.vg.oh));f.clear()}static gFa(){e.Ca(!1);f.CIa()}static clear(){f.Y=
null;f.qc=0;f.startTime=0;f.Fm=0;f.Dd=0;f.Cd=0;f.d2=[];f.cells=[];f.rb=null;f.yp=null}}f.qc=0;f.startTime=0;f.Fm=0;f.cells=[];f.d2=[];f.Ar=10;h.a7=f})(l.Ac||(l.Ac={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.w7="formatchange";h.D7=f;class b{static Yh(a,c){a=b.zu.Hb(a)?b.zu.getItem(a).get(c):void 0;return b.X9(a)}static eI(a,c,d){b.zu.Hb(c)||b.zu.Ta(c,new Map);b.zu.getItem(c).set(d,a)}static jE(a){const c=h.X.Gf.zb(a);b.uR.Ta(c.name,c);if(null!=b.CG&&""!=c.name)c.Afa(b.CG);else if(""==c.name)for(b.CG=a,a=0;a<b.De.length;a++)b.De.ea(a).Afa(b.CG);b.De.Ta(c.name,c)}static X9(a){return b.De.Hb(a)?b.De.getItem(a):""!=a&&b.De.Hb("")?b.De.getItem(""):b.Tca()}static $ya(){return b.uR.slice()}static clear(){b.De=
new e.tb;b.uR=new e.tb;b.CG=null;b.zu=new e.tb}static RS(){return b.X9("")}static Tca(){return new h.X.Gf}static fya(a,c){return b.zu.Hb(a)&&b.zu.getItem(a).has(c)}static Oza(){return b.zu}static dispose(){b.De=null;b.uR=null;b.CG=null;b.zu=null}}b.De=new e.tb;b.uR=new e.tb;b.zu=new e.tb;b.CG=null;h.gj=b})(l.ec||(l.ec={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a=""){this.name="";this.Kb={};this.Sd={thousandsSeparator:" ",decimalSeparator:".",decimalPlaces:-1,maxDecimalPlaces:-1,maxSymbols:20,currencySymbol:"",positiveCurrencyFormat:b.Nz.$1,negativeCurrencyFormat:b.Hs["-$1"],negativeNumberFormat:b.Xu["-1"],nullValue:"",infinityValue:"Infinity",divideByZeroValue:"Infinity",textAlign:b.textAlign.RIGHT,isPercent:!1,isCount:!1,beautifyFloatingPoint:!0};this.name=a}get Xd(){return this.Kb}get kf(){return void 0!=
this.Kb.thousandsSeparator?this.Kb.thousandsSeparator:this.Sd.thousandsSeparator}set kf(a){this.Kb.thousandsSeparator=a}get wC(){return void 0!=this.Kb.decimalSeparator?this.Kb.decimalSeparator:this.Sd.decimalSeparator}set wC(a){this.Kb.decimalSeparator=a}get Ml(){return void 0!=this.Kb.decimalPlaces?this.Kb.decimalPlaces:this.Sd.decimalPlaces}set Ml(a){this.Kb.decimalPlaces=a}get Uu(){return void 0!=this.Kb.maxDecimalPlaces?this.Kb.maxDecimalPlaces:this.Sd.maxDecimalPlaces}set Uu(a){this.Kb.maxDecimalPlaces=
a}get ax(){return void 0!=this.Kb.maxSymbols?this.Kb.maxSymbols:this.Sd.maxSymbols}set ax(a){this.Kb.maxSymbols=a}get rd(){return void 0!=this.Kb.currencySymbol?this.Kb.currencySymbol:this.Sd.currencySymbol}set rd(a){this.Kb.currencySymbol=a}get Ps(){return void 0!=this.Kb.positiveCurrencyFormat?this.Kb.positiveCurrencyFormat:this.Sd.positiveCurrencyFormat}set Ps(a){this.Kb.positiveCurrencyFormat=a}get Gs(){return void 0!=this.Kb.negativeCurrencyFormat?this.Kb.negativeCurrencyFormat:this.Sd.negativeCurrencyFormat}set Gs(a){this.Kb.negativeCurrencyFormat=
a}get Zp(){return void 0!=this.Kb.negativeNumberFormat?this.Kb.negativeNumberFormat:this.Sd.negativeNumberFormat}set Zp(a){this.Kb.negativeNumberFormat=a}get GD(){return void 0!=this.Kb.nullValue?this.Kb.nullValue:this.Sd.nullValue}set GD(a){this.Kb.nullValue=a}get oD(){return void 0!=this.Kb.infinityValue?this.Kb.infinityValue:this.Sd.infinityValue}set oD(a){this.Kb.infinityValue=a}get zC(){return void 0!=this.Kb.divideByZeroValue?this.Kb.divideByZeroValue:this.Sd.divideByZeroValue}set zC(a){this.Kb.divideByZeroValue=
a}get textAlign(){return void 0!=this.Kb.textAlign?this.Kb.textAlign:this.Sd.textAlign}set textAlign(a){this.Kb.textAlign=a}get de(){return void 0!=this.Kb.isPercent?this.Kb.isPercent:this.Sd.isPercent}set de(a){this.Kb.isPercent=a}get Rf(){return void 0!=this.Kb.isCount?this.Kb.isCount:this.Sd.isCount}set Rf(a){this.Kb.isCount=a}get jG(){return void 0!=this.Kb.beautifyFloatingPoint?this.Kb.beautifyFloatingPoint:this.Sd.beautifyFloatingPoint}set jG(a){this.Kb.beautifyFloatingPoint=a}set C_(a){}get C_(){return 1<
this.rd.length&&"&"==this.rd.charAt(0)&&";"==this.rd.charAt(this.rd.length-1)?1:this.rd.length}Nia(){var a,c="";if(-1==this.Ml&&""==this.rd){if(this.Zp==b.Xu["- 1"]||this.Zp==b.Xu["1-"]||this.Zp==b.Xu["1 -"]||this.Zp==b.Xu["(1)"])c=""!=this.kf?"#,##0.0#########":"###0.0#########",c=c+";"+u.Yb.BS(c,this.Zp);return c}if("%"==this.rd){var d=-1==this.Ml?0:this.Ml;c=0<d?"0.":"0";for(a=0;a<d;a++)c+="0";return c+=this.rd}c=""!=this.kf?"#,##0":"###0";if(0<this.Ml)for(c+=".",a=0;a<this.Ml;a++)c+="0";""!=this.rd?
(a=this.rd,c=1<a.length?this.Ps==b.Nz.$1?"[$"+a+"]\\ "+c+";"+u.Yb.KL(c,"[$"+a+"]",this.Gs):c+"\\ [$"+a+"];"+u.Yb.KL(c,"[$"+a+"]",this.Gs):this.Ps==b.Nz.$1?"\\"+this.rd+c+";"+u.Yb.KL(c,this.rd,this.Gs):c+"\\"+this.rd+";"+u.Yb.KL(c,this.rd,this.Gs)):""==this.rd&&(c=c+";"+u.Yb.BS(c,this.Zp));return c}Qa(a=!1){var c={};c.name=this.name;if(a)c.thousandsSeparator=this.kf,c.decimalSeparator=this.wC,c.decimalPlaces=this.Ml,c.maxDecimalPlaces=this.Uu,c.maxSymbols=this.ax,c.currencySymbol=this.rd,c.positiveCurrencyFormat=
this.Ps,c.negativeCurrencyFormat=this.Gs,c.negativeNumberFormat=this.Zp,c.nullValue=this.GD,c.infinityValue=this.oD,c.divideByZeroValue=this.zC,c.textAlign=""!==this.textAlign?this.textAlign:b.textAlign.RIGHT,c.isPercent=this.de,c.isCount=this.Rf,c.beautifyFloatingPoint=this.jG;else for(var d in this.Kb)c[d]="textAlign"===d?""===this.textAlign?b.textAlign.RIGHT:this.textAlign:this.Kb[d];return c}static zb(a){var c=new b;null!=a.name&&(c.name=a.name);null!=a.thousandsSeparator&&l.Tb.valid(a.thousandsSeparator)&&
(c.kf=l.Tb.validate(a.thousandsSeparator,!0));null!=a.decimalSeparator&&l.Tb.valid(a.decimalSeparator)&&(c.wC=l.Tb.validate(a.decimalSeparator,!0));null!=a.decimalPlaces&&-1<=parseInt(a.decimalPlaces)&&(c.Ml=isNaN(parseInt(a.decimalPlaces))?-1:parseInt(a.decimalPlaces));null!=a.maxDecimalPlaces&&-1<=parseInt(a.maxDecimalPlaces)&&(c.Uu=isNaN(parseInt(a.maxDecimalPlaces))?-1:parseInt(a.maxDecimalPlaces));null!=a.maxSymbols&&1<=parseInt(a.maxSymbols)&&(c.ax=a.maxSymbols);null!=a.currencySymbol&&l.Tb.valid(a.currencySymbol)&&
(c.rd=l.Tb.validate(a.currencySymbol,!0));if(null!=a.currencySymbolAlign&&l.Tb.valid(a.currencySymbolAlign)){var d=l.Tb.validate(a.currencySymbolAlign);d==b.pba.LEFT?c.Ps=b.Nz.$1:d==b.pba.RIGHT&&(c.Ps=b.Nz["1$"])}null!=a.positiveCurrencyFormat&&l.Tb.valid(a.positiveCurrencyFormat)&&(c.Ps=l.Tb.validate(a.positiveCurrencyFormat,!0));null!=a.negativeCurrencyFormat&&l.Tb.valid(a.negativeCurrencyFormat)&&(c.Gs=l.Tb.validate(a.negativeCurrencyFormat,!0));null!=a.negativeNumberFormat&&l.Tb.valid(a.negativeNumberFormat)&&
(c.Zp=l.Tb.validate(a.negativeNumberFormat));null!=a.nullValue&&l.Tb.valid(a.nullValue)&&(c.GD=l.Tb.validate(a.nullValue,!0));null!=a.infinityValue&&l.Tb.valid(a.infinityValue)&&(c.oD=l.Tb.validate(a.infinityValue,!0));null!=a.divideByZeroValue&&l.Tb.valid(a.divideByZeroValue)&&(c.zC=l.Tb.validate(a.divideByZeroValue,!0));null!=a.textAlign&&l.Tb.valid(a.textAlign)&&(c.textAlign=l.Tb.validate(a.textAlign));null!=a.isPercent&&(c.de=1==a.isPercent);null!=a.isCount&&(c.Rf=1==a.isCount);null!=a.beautifyFloatingPoint&&
(c.jG=1==a.beautifyFloatingPoint);return c}clone(){var a=new b;a.name=this.name;this.Kb.hasOwnProperty("thousandsSeparator")&&(a.kf=this.kf);this.Kb.hasOwnProperty("decimalSeparator")&&(a.wC=this.wC);this.Kb.hasOwnProperty("decimalPlaces")&&(a.Ml=this.Ml);this.Kb.hasOwnProperty("maxDecimalPlaces")&&(a.Uu=this.Uu);this.Kb.hasOwnProperty("maxSymbols")&&(a.ax=this.ax);this.Kb.hasOwnProperty("currencySymbol")&&(a.rd=this.rd);this.Kb.hasOwnProperty("positiveCurrencyFormat")&&(a.Ps=this.Ps);this.Kb.hasOwnProperty("negativeCurrencyFormat")&&
(a.Gs=this.Gs);this.Kb.hasOwnProperty("negativeNumberFormat")&&(a.Zp=this.Zp);this.Kb.hasOwnProperty("nullValue")&&(a.GD=this.GD);this.Kb.hasOwnProperty("infinityValue")&&(a.oD=this.oD);this.Kb.hasOwnProperty("divideByZeroValue")&&(a.zC=this.zC);this.Kb.hasOwnProperty("textAlign")&&(a.textAlign=this.textAlign);this.Kb.hasOwnProperty("isPercent")&&(a.de=this.de);this.Kb.hasOwnProperty("isPercent")&&(a.Rf=this.Rf);this.Kb.hasOwnProperty("beautifyFloatingPoint")&&(a.jG=this.jG);var c={},d;for(d in this.Sd)c[d]=
this.Sd[d];a.Sd=c;return a}Afa(a){for(var c in a)this.Sd[c]=a[c]}}b.pba={LEFT:"left",RIGHT:"right"};b.Hs={"-$1":"-$1","-1$":"-1$","$-1":"$-1","$1-":"$1-","1-$":"1-$","1$-":"1$-","($1)":"($1)","(1$)":"(1$)"};b.Nz={$1:"$1","1$":"1$"};b.Xu={"-1":"-1","- 1":"- 1","1-":"1-","1 -":"1 -","(1)":"(1)"};b.textAlign={LEFT:"left",CENTER:"center",RIGHT:"right"};f.Gf=b})(h.X||(h.X={}))})(l.ec||(l.ec={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static valid(b){return b==f.ag||b==f.Tc||b==f.le||b==f.API||b==f.JSON||b==f.Sh||b==f.Dq||b==f.EMPTY}static Gc(b){return this.valid(b)&&(b==f.le||b==f.Tc||b==f.ag||b==f.API)}static J(b){return b==f.Sh?"CSV":b==f.Dq?"OCSV":b==f.JSON?"JSON":b==f.Tc?"Microsoft Analysis Services":b==f.le?"Mondrian":b==f.ag?"Elasticsearch":b==f.API?"Flexmonster Custom API":""}}f.Tc="microsoft analysis services";f.le="mondrian";f.Sh="csv";f.Dq="ocsv";f.JSON="json";f.ag="elasticsearch";
f.API="api";f.EMPTY="";h.qa=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(m){if(e.ia(m))return f.NONE;m=m.toLowerCase();return 0<=f.types.indexOf(m)?m:f.NONE}static hea(m,n){switch(m){case h.ib.$c:return c.Ug(n);case h.ib.jb:return b.Ug(n);case h.ib.Sa:return d.Ug(n)}return!1}}f.NONE="none";f.Ok="label";f.Sa="date";f.jb="number";f.$n="value";f.dc="time";f.types=[f.NONE,f.Ok,f.Sa,f.jb,f.$n,f.dc];h.qb=f;class b{static Ug(m){return e.v(m)?!1:0<=b.wq.indexOf(m.toLowerCase())}}b.EQUAL="equal";b.cg="not_equal";b.GREATER=
"greater";b.xl="greater_equal";b.LESS="less";b.yl="less_equal";b.nh="between";b.bh="not_between";b.ki=[b.EQUAL,b.cg,b.GREATER,b.xl,b.LESS,b.yl];b.If=[b.nh,b.bh];b.wq=[b.EQUAL,b.cg,b.GREATER,b.xl,b.LESS,b.yl,b.nh,b.bh];h.Jg=b;class a extends b{}h.Qk=a;class c{static Ug(m){return e.v(m)?!1:0<=c.wq.indexOf(m.toLowerCase())}}c.EQUAL="equal";c.cg="not_equal";c.HE="begin";c.PA="not_begin";c.CA="end";c.RA="not_end";c.On="contain";c.QA="not_contain";c.GREATER="greater";c.xl="greater_equal";c.LESS="less";
c.yl="less_equal";c.nh="between";c.bh="not_between";c.ki=[c.EQUAL,c.cg,c.HE,c.PA,c.CA,c.RA,c.On,c.QA,c.GREATER,c.xl,c.LESS,c.yl];c.If=[c.nh,c.bh];c.wq=[c.EQUAL,c.cg,c.HE,c.PA,c.CA,c.RA,c.On,c.QA,c.GREATER,c.xl,c.LESS,c.yl,c.nh,c.bh];h.Bb=c;class d{static Ug(m){return e.v(m)?!1:0<=d.wq.indexOf(m.toLowerCase())}}d.EQUAL="equal";d.cg="not_equal";d.FE="before";d.GE="before_equal";d.CE="after";d.DE="after_equal";d.nh="between";d.bh="not_between";d.WO="last";d.mO="current";d.pP="next";d.ki=[d.EQUAL,d.cg,
d.FE,d.GE,d.CE,d.DE];d.If=[d.nh,d.bh];d.Wx=[d.WO,d.mO,d.pP];d.wq=[d.EQUAL,d.cg,d.FE,d.GE,d.CE,d.DE,d.nh,d.bh,d.WO,d.mO,d.pP];h.$b=d;class g{static Ug(m){return e.v(m)?!1:0<=g.types.indexOf(m.toLowerCase())}}g.$m="day";g.QJ="week";g.$g="month";g.ut="quarter";g.Dl="year";g.types=[g.$m,g.QJ,g.$g,g.ut,g.Dl];h.AA=g;class k extends b{static Ug(m){return e.v(m)?!1:0<=k.wq.indexOf(m.toLowerCase())}}k.ck="top";k.Hi="bottom";k.ki=[k.ck,k.Hi,k.EQUAL,k.cg,k.GREATER,k.xl,k.LESS,k.yl];k.If=[k.nh,k.bh];k.wq=[k.ck,
k.Hi,k.EQUAL,k.cg,k.GREATER,k.xl,k.LESS,k.yl,k.nh,k.bh];h.yc=k})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f{static Ug(b){return b==f.fd||b==f.ic||b==f.Kc}static $S(b="",a=!1,c=!1){return c?b==l.i.za.ic?a?l.i.za.fd:l.i.za.Kc:b==l.i.za.Kc?a?l.i.za.ic:l.i.za.fd:a?l.i.za.Kc:l.i.za.ic:b==l.i.za.Kc?l.i.za.ic:l.i.za.Kc}}f.fd="unsorted";f.ic="asc";f.Kc="desc";f.Aoa="numericRange";h.za=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}}f.La="rows";f.Xa="columns";f.rt="pages";h.ja=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));var pa=q||(q={}),qa=pa.u||(pa.u={}),ra=qa.i||(qa.i={});class ta{}ta.OA=1;ta.fP=2;ra.BA=ta;
(function(e){(function(l){(function(h){class f{static JC(b){var a=f.pv;switch(b){case h.input.yf.J7.fP:a=f.Cq;break;case h.input.yf.J7.OA:a=f.Sa}return a}static u0(b){return 0<=h.Pa.zL.indexOf(b)?f.Cq:"date"==b?f.Sa:f.pv}static t0(b){var a=f.pv;switch(b){case h.input.sa.jb:case h.input.sa.dc:a=f.Cq;break;case h.input.sa.Dj:case h.input.sa.Bq:case h.input.sa.hp:case h.input.sa.Jc:case h.input.sa.Sa:a=f.Sa}return a}static wE(b){var a=h.input.sa.$c;switch(b){case f.Cq:a=h.input.sa.jb;break;case f.Sa:a=
h.input.sa.Sa}return a}}f.pv=0;f.Sa=1;f.Cq=2;f.zL=["keyword","date","boolean"];h.Lc=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static JC(b){switch(b){case h.input.yf.MA.$c:case h.input.yf.MA.xqa:return f.$c;case h.input.yf.MA.bp:return f.bp;case h.input.yf.MA.Sa:return f.Sa;case h.input.yf.MA.Jc:return f.Jc;case h.input.yf.MA.Zpa:return f.dc;case h.input.yf.MA.xc:return f.xc}return f.jb}static sya(b){b=b.toLowerCase();switch(b){case "string":return f.Sa;case "integer":case "number":case "double":return f.jb;default:return f.jb}}static pya(b){switch(b){case 13:return f.dc;case 15:return f.Jc;
case 3:return f.bp;case 12:return f.jb}return f.xc}static rya(b){var a=f.xc;switch(b){case "number":a=f.jb;break;case "string":a=f.$c;break;case "boolean":a=f.bp;break;case "date":a=f.Sa;break;case "timestamp":a=f.dc;break;case "count":a=f.xc}return a}static u0(b){return 0<=h.Lc.zL.indexOf(b)?f.xc:f.jb}static wE(b){switch(b){case f.$c:return h.input.sa.$c;case f.bp:return h.input.sa.bp;case f.Sa:return h.input.sa.Sa;case f.Jc:return h.input.sa.Jc;case f.dc:return h.input.sa.dc;case f.xc:return h.input.sa.$c}return h.input.sa.jb}}
f.jb=1;f.$c=2;f.bp=3;f.Sa=4;f.dc=5;f.Jc=6;f.xc=7;f.zL="long integer short byte double float half_float scaled_float".split(" ");h.Pa=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static VT(b){return b===f.jb||b===f.Dl||b===f.$m||b===f.PO||b===f.mP||b===f.LX||b===f.q8||b===f.Jc||b===f.dc||b===f.Sa}static HBa(b){return b===f.Sa||b===f.Jc||b===f.Dj}static qya(b){switch(b){case 2:case 4:case 5:case 6:case 14:case 16:case 17:case 18:case 19:case 20:case 21:return f.jb}return f.$c}static JC(b,a=!1,c=0){if(a)return f.qya(c);switch(b){case h.input.yf.Nk.sna:return f.qja;case h.input.yf.Nk.tna:case 4178:case 4561:case 4562:return f.jb;
case h.input.yf.Nk.una:case h.input.yf.Nk.Gna:return f.dc;case h.input.yf.Nk.yna:case h.input.yf.Nk.xna:case h.input.yf.Nk.zna:return f.$m;case h.input.yf.Nk.Ana:case 4385:case 4328:case 4329:return f.iX;case h.input.yf.Nk.Bna:return f.PO;case h.input.yf.Nk.Cna:return f.mP;case h.input.yf.Nk.Dna:return f.$g;case h.input.yf.Nk.Ena:case 4336:case 4337:case 4578:return f.ut;case h.input.yf.Nk.Fna:return f.LX;case h.input.yf.Nk.Hna:case 4345:case h.input.yf.Nk.Ina:case 4344:return f.QJ;case h.input.yf.Nk.Jna:case 4759:case 4345:case 4346:return f.Dl;
case h.input.yf.Nk.wna:case h.input.yf.Nk.vna:case 4657:case 4659:case 4292:case 4294:return f.Sa}return f.$c}static wE(b){switch(b){case f.jb:case f.PO:case f.mP:case f.LX:case f.q8:return h.input.sa.jb;case f.Sa:case f.Dl:case f.Dl:case f.$m:return h.input.sa.Sa;case f.bp:return h.input.sa.bp;case f.$g:return h.input.sa.$g;case f.fn:return h.input.sa.fn;case f.dc:return h.input.sa.dc;case f.Jc:return h.input.sa.Jc;case f.Dj:return h.input.sa.Dj;default:return h.input.sa.$c}}static t0(b){switch(b){case h.input.sa.$c:return f.$c;
case h.input.sa.jb:return f.jb;case h.input.sa.bp:return f.bp;case h.input.sa.$g:return f.$g;case h.input.sa.fn:return f.fn;case h.input.sa.Sa:case h.input.sa.Bq:case h.input.sa.hp:return f.Sa;case h.input.sa.Dj:return f.Dj;case h.input.sa.dc:return f.dc;case h.input.sa.Jc:return f.Jc;default:return f.$c}}}f.qja=0;f.$c=1;f.jb=2;f.bp=3;f.Sa=4;f.dc=5;f.Dl=6;f.iX=7;f.ut=8;f.$g=9;f.QJ=10;f.fn=11;f.$m=12;f.PO=13;f.mP=14;f.LX=15;f.q8=16;f.Jc=17;f.Dj=18;h.ib=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.yf||(e.yf={});class l{}l.OA=1;l.fP=2;e.J7=l})(q||(q={}));(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.yf||(e.yf={});class l{}l.jb=1;l.$c=2;l.bp=3;l.Sa=4;l.xqa=5;l.Zpa=6;l.xc=7;l.Jc=8;e.MA=l})(q||(q={}));
(function(e){e=e.u||(e.u={});e=e.i||(e.i={});e=e.input||(e.input={});e=e.yf||(e.yf={});class l{}l.sna=1;l.tna=2;l.una=4;l.wna=516;l.Ana=36;l.Bna=772;l.Cna=1028;l.Dna=132;l.Ena=68;l.Fna=2052;l.Gna=4100;l.Hna=260;l.Jna=20;l.vna=4289;l.xna=4296;l.yna=4301;l.zna=4302;l.Ina=4759;e.Nk=l})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{static valid(a){return-1<b.MK.indexOf(a)}static t5(a){return""===a?b.$c:"number"!=typeof a&&isNaN(Number(a))?e.P.HT(a)?e.model.C.F.qL:b.$c:b.jb}static nya(a){a=a.trim();var c=b.$c;"+"==a.charAt(0)?c=b.$c:"t+"==a.substr(0,2)?c=b.dc:"dt+"==a.substr(0,3)?c=b.Jc:"n+"==a.substr(0,2)?c=b.jb:"-"==a.charAt(0)?c=b.jb:"ds+"==a.substr(0,3)?c=b.Dj:"d+"==a.substr(0,2)?c=b.Sa:"m+"==a.substr(0,2)?c=b.$g:"w+"==a.substr(0,2)?c=b.fn:"D+"==a.substr(0,2)?c=
b.Bq:"D4+"==a.substr(0,3)?c=b.hp:"id+"==a.substr(0,3)&&(c=b.Rx);return c}}b.jb="number";b.$c="string";b.bp="boolean";b.Hf="level";b.$g="month";b.fn="weekday";b.Sa="date";b.Dj="date string";b.Bq="year/month/day";b.hp="year/quarter/month/day";b.dc="time";b.Jc="datetime";b.Rx="id";b.G6="delete";b.I7="hidden";b.iF="property";b.DI="any";b.MK="number;string;boolean;level;month;weekday;date;date string;year/month/day;year/quarter/month/day;time;datetime;id;delete;hidden;property;array;any".split(";");f.sa=
b})(h.input||(h.input={}))})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static get CI(){return f.mA.concat(f.nA)}static get Dja(){0===f.eY.length&&(f.eY=f.nja.concat(f.nA));return f.eY}static get Aja(){0===f.dY.length&&(f.dY=f.mja);return f.dY}static get M5(){0===f.cY.length&&(f.cY=[f.NONE].concat(f.nA));return f.cY}static fG(b){return b===f.Iq?e.model.B.j.Z8:b===f.xc?e.model.B.j.s6:b===f.Ej||b===f.tO?e.model.B.j.ala:b===f.xq?e.model.B.j.N5:b===f.wv?e.model.B.j.Lna:b===f.Cv?e.model.B.j.Epa:b===f.Dv?e.model.B.j.Gpa:b===f.st?
e.model.B.j.Yoa:b===f.MIN?e.model.B.j.moa:b===f.MAX?e.model.B.j.qna:b===f.Ir?e.model.B.j.Koa:b===f.lp||b===f.sP?e.model.B.j.Loa:b===f.Hq?e.model.B.j.Woa:b===f.Fq?e.model.B.j.Soa:b===f.Gq?e.model.B.j.Uoa:b===f.Ji?e.model.B.j.Pma:b===f.Rn||b===f.sO?e.model.B.j.Xka:b===f.an?e.model.B.j.Zka:b===f.Wn||b===f.tP?e.model.B.j.Noa:b===f.cn?e.model.B.j.Poa:b===f.en||b===f.wP?e.model.B.j.kpa:b===f.Yn?e.model.B.j.mpa:b===f.NONE?e.model.B.j.xoa:b}static EZ(b=null){var a=[];b=b?b:f.CI;for(var c=0;c<b.length;c++)a.push(f.fG(b[c]));
return a}static laa(b=null){var a=[];b=b?b:f.CI;for(var c=0;c<b.length;c++)b[c]===f.Iq?a.push(e.model.B.j.LJ):b[c]===f.xc?a.push(e.model.B.j.kO):b[c]===f.Ej||b[c]===f.tO?a.push(e.model.B.j.uO):b[c]===f.xq?a.push(e.model.B.j.fO):b[c]===f.wv?a.push(e.model.B.j.rX):b[c]===f.Cv?a.push(e.model.B.j.CP):b[c]===f.Dv?a.push(e.model.B.j.DP):b[c]===f.st?a.push(e.model.B.j.uP):b[c]===f.MIN?a.push(e.model.B.j.nP):b[c]===f.MAX?a.push(e.model.B.j.eP):b[c]===f.Ir?a.push(e.model.B.j.FJ):b[c]===f.lp||b[c]===f.sP?a.push(e.model.B.j.zJ):
b[c]===f.Hq?a.push(e.model.B.j.EJ):b[c]===f.Fq?a.push(e.model.B.j.CJ):b[c]===f.Gq?a.push(e.model.B.j.DJ):b[c]===f.Ji?a.push(e.model.B.j.mJ):b[c]===f.Rn||b[c]===f.sO?a.push(e.model.B.j.SI):b[c]===f.an?a.push(e.model.B.j.TI):b[c]===f.Wn||b[c]===f.tP?a.push(e.model.B.j.AJ):b[c]===f.cn?a.push(e.model.B.j.BJ):b[c]===f.en||b[c]===f.wP?a.push(e.model.B.j.vP):b[c]===f.Yn?a.push(e.model.B.j.xP):b[c]===f.NONE?a.push("{0}"):-1<f.mA.indexOf(b[c])&&a.push(`{0} (${b[c]})`);return a}static iA(b){return-1!==f.CI.indexOf(b)||
b===f.NONE}static HKa(b){return-1!==f.M5.indexOf(b)}static AE(b){return-1!==f.kja.indexOf(b)||b===f.NONE}static Zo(b){return-1!==f.lja.indexOf(b)||b===f.NONE}static Rf(b){return-1!==f.oja.indexOf(b)}static de(b){return-1!==f.pja.indexOf(b)}static zM(b){return b===f.Rn||b===f.an||b===f.Wn||b===f.cn}static GM(b){return b===f.en||b===f.Yn}static Ty(b){return b===f.tO||b===f.sP||b===f.sO||b===f.tP||b===f.wP}static cz(b){switch(b){case f.tO:return f.Ej;case f.sP:return f.lp;case f.sO:return f.Rn;case f.tP:return f.Wn;
case f.wP:return f.en;default:return""}}static zT(b){return-1!==f.mA.indexOf(b)||b===f.NONE}}f.Iq="sum";f.xc="count";f.Ej="distinctcount";f.tO="distinct count";f.xq="average";f.wv="median";f.Cv="stdevp";f.Dv="stdevs";f.Ir="percent";f.lp="percentofcolumn";f.Hq="percentofrow";f.Fq="percentofparentcolumntotal";f.Gq="percentofparentrowtotal";f.sP="percent of column";f.st="product";f.Ji="index";f.en="runningtotalsofcolumn";f.Yn="runningtotalsofrow";f.wP="runningtotals";f.MIN="min";f.MAX="max";f.NONE="none";
f.Rn="differenceofcolumn";f.an="differenceofrow";f.sO="difference";f.Wn="%differenceofcolumn";f.cn="%differenceofrow";f.tP="%difference";f.mA=[f.Iq,f.xc,f.Ej,f.xq,f.wv,f.st,f.MIN,f.MAX,f.Cv,f.Dv];f.nA=[f.Ir,f.lp,f.Hq,f.Fq,f.Gq,f.Ji,f.Rn,f.an,f.Wn,f.cn,f.en,f.Yn];f.nO=[];f.nja=[f.xc,f.Ej];f.eY=[];f.mja=[f.MAX,f.MIN,f.xc,f.Ej];f.dY=[];f.cY=[];f.Bja=[f.Iq,f.xc,f.Ej,f.xq,f.MIN,f.MAX];f.Cja=[f.xc,f.Ej];f.oja=[f.xc,f.Ej];f.pja=[f.Ir,f.lp,f.Hq,f.Fq,f.Gq,f.Wn,f.cn];f.kja=[f.Iq,f.xq,f.wv,f.st,f.MIN,f.MAX];
f.lja=[f.Iq,f.xq,f.wv,f.st,f.MIN,f.MAX,f.Cv,f.Dv,f.Rn,f.an,f.en,f.Yn];h.da=f})(l.i||(l.i={}))})(e.u||(e.u={}))})(q||(q={}));var ua=q||(q={}),wa=ua.u||(ua.u={}),xa=wa.i||(wa.i={});class ya{}ya.bO="+";ya.EP="-";ya.oP="*";ya.UI="/";ya.BX="^";ya.LESS="<";ya.GREATER=">";ya.EQUAL="=";ya.qla="==";ya.cg="!=";ya.R7="<=";ya.E7=">=";ya.E8="or";ya.E5="and";ya.QO="if";ya.pW="abs";ya.IX="round";ya.MIN="min";ya.MAX="max";ya.Ija="isnan";ya.zoa="!isnan";ya.$n="value";ya.OP="updatedifference";ya.PP="updatepercent";
xa.nc=ya;var za=q||(q={}),Aa=za.u||(za.u={}),Ba=Aa.i||(Aa.i={});class Ca{}Ca.np="select";Ca.EA="expand";Ca.i6="collapse";Ca.MW="drillUp";Ca.qv="drillDown";Ca.KW="drillDownTo";Ca.VI="drillThrough";Ca.EO="filter";Ca.KX="search";Ba.Rd=Ca;var Da=q||(q={}),Ea=Da.u||(Da.u={}),Fa=Ea.i||(Ea.i={});class Ga{}Ga.vO=Number.NEGATIVE_INFINITY;Fa.wO=Ga;
(function(e){(function(l){(function(h){class f{constructor(){this.tl=()=>this.Ls();this.Cj=()=>this.fq()}TCa(b,a,c){try{this.dispose(),this.Nb=c,this.vC=this.nk=0,this.$w=u.ey.sH(b),this.JN(this.$w,a)}catch(d){this.Sb(d)}}kr(){e.Ca(!1);let b;try{b=JSON.parse(this.oa.response)}catch(a){b=null}null!=this.Nb&&(this.Nb(b),this.dispose())}jEa(){e.Ca(!0,e.model.B.j.xX,"")}eq(b){const a=b.data;if(404==a.target.status)this.Sb(b);else if(!e.v(this.oa))try{const d=this.oa.response;if(null!=d&&0!=d.length&&
(this.nk!=a.loaded||this.vC!=d.length)){this.nk=a.loaded;this.vC=d.length;var c=0==a.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(a.loaded)):e.P.bind(e.model.B.j.eF,u.Yb.Og(a.loaded),u.Yb.Og(a.total),(a.loaded/a.total*100).toFixed(0));e.Ca(!0,e.model.B.j.xX,c)}}catch(d){console.error(d.stack),this.Sb(d)}}Sb(){e.Ca(!1);null!=this.Nb&&(this.Nb(null),this.dispose())}JN(b,a){this.timer=new u.wt(100,1E5);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start();var c=new z.ek;c.dataType=
z.zA.aB;c.N(v.fa.Oc,()=>this.kr());c.N(v.fa.vA,()=>this.jEa());c.N(v.fa.ue,d=>this.eq(d));c.N(v.fa.Aa,d=>this.Sb(d));c.Qh(a);c.load(b);this.oa=c}Ls(){0<this.nk?this.rg():null!=this.timer&&this.timer.pl&&e.Ca(!0,e.model.B.j.xX,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/10,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&this.rg()}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,this.Cj))}dispose(){this.rg();null!=this.oa&&(this.oa.Yd(),
this.oa.dispose(),this.oa=null);this.Nb=null}}h.poa=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(b){b.hMa="visible";b.bMa="caption";b.TYPE="type";b.jX="hierarchy";b.Hf="level";b.fMa="parent";b.aMa="aggregations";b.cMa="format";b.dMa="interval";b.gMa="time_zone";b.eMa="min_doc_count";b.qMa="isMeasure";b.iMa="filters"})(h.qoa||(h.qoa={}));class f{constructor(b=null){this.$w=this.mapping=null;this.mu={};this.tU=null;"string"==typeof b?this.$w=b:(this.mapping=b,this.mW());this.mu.filters=!0}mW(){for(var b in this.mapping)if("aggregations"===b)this.up=
this.mapping[b],delete this.mapping[b];else if(!e.v(this.mapping[b])&&"object"!==typeof this.mapping[b]){let a=l.i.input.sa.t5(this.mapping[b]);this.mapping[b]={uniqueName:b,caption:b,type:a}}}Ha(b,a,c=null){b=u.Sc.resolve(b,this.mapping);var d=null;e.v(b)||(d=b[a]);e.v(d)&&(d=c);e.v(d)&&(d=this.mu[a]);return d}gi(b,a,c){var d=u.Sc.resolve(b,this.mapping);e.v(d)&&(this.mapping[b]={},d=this.mapping[b]);e.v(d)||(d[a]=c)}Qa(b=!1){if(b&&this.Jo)return this.$w;b&&this.up&&(this.mapping.aggregations=this.up);
return this.mapping}fDa(b){switch(b){case l.i.qa.API:b=new l.external.pc.dO;break;case l.i.qa.ag:b=new l.external.Qe.zO;break;case l.i.qa.le:case l.i.qa.Tc:new l.external.Eb.qP;default:b=new f}return b}clone(b=""){b=this.fDa(b);b.mapping=u.Sc.nj(this.mapping);b.$w=this.$w;b.up=this.up;return b}isEqual(b){return JSON.stringify(this.Qa(!0))===JSON.stringify(b.Qa(!0))&&b.Jo||JSON.stringify(this.mapping)===JSON.stringify(b.Qa())}get nb(){return!this.uea&&e.v(this.up)}get uea(){return!e.v(this.mapping)&&
0<Object.keys(this.mapping).length}get Jo(){return null!==this.$w&&0<this.$w.length}UCa(b,a){this.$e=a;this.Jo&&this.nb?(this.tU=new h.poa,this.tU.TCa(this.$w,b,c=>this.sFa(c))):(this.$e(),this.$e=null)}sFa(b){null!==b&&(this.mapping=b,this.mW());this.$e();this.$e=null;this.tU.dispose();this.tU=null}static UT(b){if(e.v(b))return!1;if(!e.v(b.aggregations))return!0;for(var a in b)if(!e.v(b[a])&&(Array.isArray(b[a])&&f.UT(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}B2(b,a){const c=u.Sc.resolve(b,this.mapping);e.v(a)&&(a={});if(Array.isArray(c)){let d=[],g=[],k=[],m;for(let n=0;n<c.length;n++)m=this.q$(c[n],a),e.ia(m.uniqueName)&&(m.uniqueName=b),e.ia(m.caption)&&(m.caption=b),-1!==g.indexOf(m.uniqueName)&&
(m.uniqueName=`${b}.${n}`),-1!==k.indexOf(m.caption)&&(m.caption=`${m.caption} ${n}`),g.push(m.uniqueName),k.push(m.caption),d.push(m);return d}return this.q$(c,a)}q$(b,a){a=u.Sc.nj(a);for(var c in b)a[c]=b[c],"aggregations"===c&&(a.availableAggregations=b[c]);return a}}h.km=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.sc=null;this.withCredentials=!1;this.ao=l.i.qa.EMPTY;this.vCa=!1}get Da(){return this.ao}set Da(b){this.ao=b.toLowerCase()}get Gc(){return l.i.qa.Gc(this.ao)}set Gc(b){}get DM(){return!1}set DM(b){}isEqual(b){return b&&this.Da==b.Da&&this.withCredentials==b.withCredentials}get nb(){return this.ao==l.i.qa.EMPTY}set nb(b){}get yM(){return this.ao===l.i.qa.Sh&&"this"===this.filename}get Mu(){return!1}set Mu(b){}get AH(){return!0}get KT(){return!0}get JT(){return!0}static zb(b){if(void 0==
b||e.model.Ga.uc.Oj()==e.model.Ga.ip.lm)return new h.FA;e.v(b.connectionInfo)||(b=b.connectionInfo);b instanceof f||b instanceof l.local.csv.lO||b instanceof l.local.csv.gF||b instanceof l.local.json.TO||b instanceof l.external.Eb.kp||b instanceof l.external.Qe.Q6||b instanceof l.external.pc.G5||(b=f.fm(b));e.v(b.dataSourceType)||(b.dataSourceType=b.dataSourceType.toLowerCase());b.dataSourceType&&-1<b.dataSourceType.indexOf("pentaho")&&(b.dataSourceType=l.i.qa.le);"msolap"==b.dataSourceType&&(b.dataSourceType=
l.i.qa.Tc);!l.i.qa.valid(b.dataSourceType)&&b.proxyUrl&&(b.dataSourceType=l.i.qa.Tc);if("es"==b.dataSourceType||"elastic"==b.dataSourceType)b.dataSourceType=l.i.qa.ag;!l.i.qa.valid(b.dataSourceType)&&(b.host||b.node)&&b.index&&(b.dataSourceType=l.i.qa.ag);!l.i.qa.valid(b.dataSourceType)&&(b.url||b.discover&&b.select)&&(b.dataSourceType=l.i.qa.API);if(!e.v(b.filename)&&e.v(b.dataSourceType)){var a=b.filename.split("?")[0].toLowerCase();b.dataSourceType=".csv"==a.substr(-4)?l.i.qa.Sh:".ocsv"==a.substr(-5)?
l.i.qa.Dq:".json"==a.substr(-5)||".js"==a.substr(-3)?l.i.qa.JSON:l.i.qa.Sh}!e.v(b.data)&&Array.isArray(b.data)&&(b.dataSourceType=l.i.qa.JSON,b.data=b.data.slice());if(b.dataSourceType==l.i.qa.ag&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.ag&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.yO)return e.model.Ga.uc.Oj()!=e.model.Ga.ip.lm&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.Axa),e.model.Ga.pa.J(e.model.Ga.pa.BD)),new h.FA;if(b.dataSourceType==l.i.qa.Tc&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.rja&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.yO)return e.model.Ga.uc.Oj()!=
e.model.Ga.ip.lm&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.FDa),e.model.Ga.pa.J(e.model.Ga.pa.BD)),new h.FA;if(b.dataSourceType==l.i.qa.le&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.le&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.yO)return e.model.Ga.uc.Oj()!=e.model.Ga.ip.lm&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.xDa),e.model.Ga.pa.J(e.model.Ga.pa.BD)),new h.FA;if((b.dataSourceType==l.i.qa.Sh||b.dataSourceType==l.i.qa.Dq||b.dataSourceType==l.i.qa.JSON)&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.Dka&&e.model.Ga.uc.Oj()!=e.model.Ga.ip.yO)return e.model.Ga.uc.Oj()!=
e.model.Ga.ip.lm&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.JDa),e.model.Ga.pa.J(e.model.Ga.pa.BD)),new h.FA;switch(b.dataSourceType){case l.i.qa.Dq:return l.local.csv.gF.zb(b);case l.i.qa.Sh:return l.local.csv.lO.zb(b);case l.i.qa.JSON:return l.local.json.TO.zb(b);case l.i.qa.Tc:case l.i.qa.le:return l.external.Eb.kp.zb(b);case l.i.qa.ag:return l.external.Qe.Q6.zb(b);case l.i.qa.API:return l.external.pc.G5.zb(b);default:return new h.FA}}static fm(b){var a={};e.ia(b.type)||(a.dataSourceType=b.type);e.ia(b.dataSourceType)||
(a.dataSourceType=b.dataSourceType);e.ia(b.filename)||(a.filename=b.filename);e.ia(b.requestHeader)||(a.requestHeaders=b.requestHeader);e.ia(b.requestHeaders)||(a.requestHeaders=b.requestHeaders);e.ia(b.browseForFile)||(a.browseForFile=b.browseForFile);e.ia(b.requestPermission)||(a.requestPermission=b.requestPermission);e.ia(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator);e.ia(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator);e.ia(b.fieldSeparator)||(a.fieldSeparator=
b.fieldSeparator);e.ia(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter);e.ia(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks);e.ia(b.embedded)||(a.embedded=b.embedded);e.ia(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset);e.ia(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad);e.ia(b.isOCSV2Data)||(a.isOCSV2Data=b.isOCSV2Data);e.v(b.data)||(a.data=b.data);e.ia(b.checkUpdates)||(a.checkUpdates=b.checkUpdates);e.ia(b.proxyUrl)||
(a.proxyUrl=b.proxyUrl);e.ia(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo);e.ia(b.catalog)||(a.catalog=b.catalog);e.ia(b.cube)||(a.cube=b.cube);e.ia(b.subquery)||(a.subquery=b.subquery);e.ia(b.binary)||(a.binary=b.binary);e.ia(b.withCredentials)||(a.withCredentials=b.withCredentials);e.ia(b.roles)||(a.roles=b.roles);e.ia(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier);e.ia(b.effectiveUserName)||(a.effectiveUserName=b.effectiveUserName);e.ia(b.customData)||(a.customData=b.customData);
e.ia(b.url)||(a.url=b.url);e.ia(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl);e.ia(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl);e.ia(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl);e.ia(b.levelsUrl)||(a.levelsUrl=b.levelsUrl);e.ia(b.measuresUrl)||(a.measuresUrl=b.measuresUrl);e.ia(b.membersUrl)||(a.membersUrl=b.membersUrl);e.ia(b.dataUrl)||(a.dataUrl=b.dataUrl);e.ia(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl);e.ia(b.host)||(a.host=b.host);e.ia(b.node)||(a.node=
b.node);e.ia(b.connection)||(a.connection=b.connection);e.ia(b.index)||(a.index=b.index);e.ia(b.mapping)||(a.mapping=b.mapping);e.ia(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint);e.ia(b.useSockets)||(a.useSockets=b.useSockets);e.ia(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader);e.ia(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters);e.ia(b.hash)||(a.hash=b.hash);e.ia(b.username)||(a.username=b.username);e.ia(b.password)||
(a.password=b.password);e.ia(b.dataSource)||(b=b.dataSource,e.ia(b.type)||(a.dataSourceType=b.type),e.ia(b.dataSourceType)||(a.dataSourceType=b.dataSourceType),e.ia(b.filename)||(a.filename=b.filename),e.ia(b.requestHeader)||(a.requestHeaders=b.requestHeader),e.ia(b.requestHeaders)||(a.requestHeaders=b.requestHeaders),e.ia(b.browseForFile)||(a.browseForFile=b.browseForFile),e.ia(b.requestPermission)||(a.requestPermission=b.requestPermission),e.ia(b.fieldSeparator)||(a.fieldSeparator=b.fieldSeparator),
e.ia(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator),e.ia(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator),e.ia(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter),e.ia(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks),e.ia(b.embedded)||(a.embedded=b.embedded),e.ia(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset),e.ia(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad),e.ia(b.isOCSV2Data)||
(a.isOCSV2Data=b.isOCSV2Data),e.v(b.data)||(a.data=b.data),e.ia(b.proxyUrl)||(a.proxyUrl=b.proxyUrl),e.ia(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo),e.ia(b.catalog)||(a.catalog=b.catalog),e.ia(b.cube)||(a.cube=b.cube),e.ia(b.subquery)||(a.subquery=b.subquery),e.ia(b.binary)||(a.binary=b.binary),e.ia(b.withCredentials)||(a.withCredentials=b.withCredentials),e.ia(b.roles)||(a.roles=b.roles),e.ia(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier),e.ia(b.effectiveUserName)||(a.effectiveUserName=
b.effectiveUserName),e.ia(b.customData)||(a.customData=b.customData),e.ia(b.url)||(a.url=b.url),e.ia(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl),e.ia(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl),e.ia(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl),e.ia(b.levelsUrl)||(a.levelsUrl=b.levelsUrl),e.ia(b.measuresUrl)||(a.measuresUrl=b.measuresUrl),e.ia(b.membersUrl)||(a.membersUrl=b.membersUrl),e.ia(b.dataUrl)||(a.dataUrl=b.dataUrl),e.ia(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl),
e.ia(b.host)||(a.host=b.host),e.ia(b.node)||(a.node=b.node),e.ia(b.connection)||(a.connection=b.connection),e.ia(b.index)||(a.index=b.index),e.ia(b.mapping)||(a.mapping=b.mapping),e.ia(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint),e.ia(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader),e.ia(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters),b=b.credentials,null!=b&&(e.ia(b.hash)||(a.hash=b.hash),e.ia(b.username)||(a.username=
b.username),e.ia(b.password)||(a.password=b.password)));return a}static wk(b){var a=b.find("dataSource"),c=a.attr("type");void 0!==c&&(c=c.toLowerCase());"msolap"==c&&(c=l.i.qa.Tc);c&&-1<c.indexOf("pentaho")&&(c=l.i.qa.le);var d=a.find("filename");if(!l.i.qa.valid(c)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(c=l.i.qa.Tc);0<d.length&&0<d.text().length&&(c=l.i.qa.Sh)}0<d.length&&0<d.text().length&&".ocsv"==d.text().toLocaleLowerCase().substr(-5)&&(c=l.i.qa.Dq);0<d.length&&0<d.text().length&&
".json"==d.text().toLocaleLowerCase().substr(-5)&&(c=l.i.qa.JSON);0<d.length&&0<d.text().length&&".csv"==d.text().toLocaleLowerCase().substr(-4)&&(c=l.i.qa.Sh);switch(c){case l.i.qa.Dq:return l.local.csv.gF.wk(a[0]);case l.i.qa.Sh:return l.local.csv.lO.wk(b);case l.i.qa.JSON:return l.local.json.TO.wk(a[0]);case l.i.qa.Tc:case l.i.qa.le:return l.external.Eb.kp.wk(b);default:return l.local.csv.lO.wk(b)}}Yo(){var b=z.ba.create("<dataSource/>");this.Da!=l.i.qa.EMPTY&&b.attr("type",this.Da);return b}}
h.kt=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(f){this.ub=[];this.Fc=[];this.rh=[];this.gb=[];this.Gd=[];this.Ud=[];this.xe=[];this.ta=[];this.Pl=[];this.uh=[];this.sg=[];this.up=[];this.Ey=[];this.nD=[];this.Gn=[];this.Boa=0;this.gga=[];this.lj=[];this.Ph=[];this.sizes=[];this.filters=[];this.zx=[];this.su=[];this.values=[];this.tQ=[];this.xa=f}sG(){this.Gn=[];this.gb=[];this.ub=[];this.Fc=[];this.Pl=[];this.ta=[];this.values=[];this.rh=[];this.filters=[]}$Z(){this.xe=[];this.uh=[];this.sg=[];this.up=
[];this.Ey=[];this.nD=[]}fs(){this.sG();this.$Z();this.Gd=[];this.Ud=[];this.sizes=[];this.rh=[]}get slice(){return null!=this.Qb?this.Qb:this.xa.ua}set slice(f){this.Qb=f}Kya(f){return isNaN(f[0])}Mya(f){return!isNaN(f[0])}yya(f){return void 0===f[0]||"string"===typeof f[0]||void 0===f[1]||"string"===typeof f[1]?(null==f[0]||"number"===typeof f[0]&&isNaN(f[0])?"":f[0])+(null==f[1]||"number"===typeof f[1]&&isNaN(f[1])?"":f[1]):f[0]+f[1]}Qya(f){return f[0]-f[1]}Jya(f){return f[0]*f[1]}Aya(f){return 0==
f[1]||isNaN(f[1])?l.i.wO.vO:f[0]/f[1]}Oya(f){return Math.pow(f[0],f[1])}Fya(f){return f[0]<f[1]}Cya(f){return f[0]>f[1]}Bya(f){return f[0]==f[1]}Lya(f){return f[0]!=f[1]}Gya(f){return f[0]<=f[1]}Dya(f){return f[0]>=f[1]}Nya(f){return f[0]||f[1]}zya(f){return f[0]&&f[1]}Eya(f){return f[0]?f[1]:f[2]}xya(f){return Math.abs(f[0])}Pya(f){return Math.round(f[0])}Iya(f){return Math.min(f[0],f[1])}Hya(f){return Math.max(f[0],f[1])}ds(f,b){for(var a=1,c=0,d,g,k=this.lj.length-1;0<=k;k--)g=this.sizes[this.Ph.length+
k],0<g&&(d=void 0===b[k]?0:b[k],c+=d*a,a*=g);for(b=this.Ph.length-1;0<=b;b--)g=this.sizes[b],0<g&&(d=f&&void 0!==f[b]?f[b]:0,Math.abs(d*a)>9007199254740991-c&&(a=-a%1E6,0==a&&(a=-g)),c+=d*a,a*=g);return c}b1(f,b){for(var a=0,c=!0,d=0;d<f.length;d++){var g=this.Fc[b][f[d]];isNaN(g)||(a+=g,c=!1)}return c?NaN:a}dAa(f,b){for(var a=Number.MAX_VALUE,c=!0,d=0;d<f.length;d++){var g=this.Fc[b][f[d]];isNaN(g)||(g<a&&(a=g),c=!1)}return c?NaN:a}Xza(f,b){for(var a=Number.NEGATIVE_INFINITY,c=!0,d=0;d<f.length;d++){var g=
this.Fc[b][f[d]];isNaN(g)||(g>a&&(a=g),c=!1)}return c?NaN:a}sAa(f,b){for(var a=1,c=!0,d=0;d<f.length;d++){var g=this.Fc[b][f[d]];isNaN(g)||(a*=g,c=!1)}return c?NaN:a}Rca(f,b){let a=0,c=0;for(let d=0;d<f.length;d++){const g=this.Fc[b][f[d]];isNaN(g)||(a+=g,c++)}return 0==c?NaN:a/c}aAa(f,b){for(var a=[],c=0;c<f.length;c++){var d=this.Fc[b][f[c]];isNaN(d)||a.push(d)}if(0===a.length)return NaN;e.Ja.sort(a,e.Ja.Ki);if(1===a.length%2)return a[Math.floor(a.length/2)];f=a.length/2;return(a[f]+a[f-1])/2}eda(f,
b){for(var a=this.Rca(f,b),c=0,d=0,g=0;g<f.length;g++){var k=this.Fc[b][f[g]];isNaN(k)||(c+=Math.pow(k-a,2),d++)}return{Iba:c,count:d}}IAa(f,b){f=this.eda(f,b);return 0==f.count?NaN:Math.sqrt(f.Iba/f.count)}JAa(f,b){f=this.eda(f,b);return 0==f.count?NaN:1==f.count?0:Math.sqrt(f.Iba/(f.count-1))}oAa(f,b){null==this.tQ[b]&&(this.tQ[b]=this.b1(this.gb,b));return Math.abs(100*this.b1(f,b)/this.tQ[b])}sza(f,b){for(var a=0,c=0;c<f.length;c++){var d=this.Fc[b][f[c]];isNaN(d)||this.Fc[b]instanceof Uint8Array&&
0==d||a++}return a}Dza(f,b,a){return l.sf.Fj.zc("",!1).Ha(f,b,a)}pAa(f,b,a){return l.sf.Fj.zc("",!1).Ha(f,b,a)}ld(f,b){for(var a=0;a<f.length;a++){if(void 0===b)return;b=b[f[a]]}return b}BV(f,b){for(let a=0;a<f.length;a++)void 0===b[f[a]]&&(b[f[a]]=[[[]],[],[],void 0,void 0,!1]),b=b[f[a]];return b}get result(){return[this.Gd,this.Ud]}set result(f){}bi(f,b){if(0===f.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?-1===b?-1:this.su[b]:this.Zh(b));f=this.ld(f,this.Gd);return void 0===f||
void 0===f[0]||void 0===f[0][3]?!1:-1===a||void 0===f[0][3][a]?f[0][3][this.sg.length]:f[0][3][a]}Zh(f,b,a){"string"!==typeof f&&(b=f.aa,f=f.A);if(e.model.C.F.rc&&!a||void 0===b||b===l.i.da.NONE)for(a=0;a<this.sg.length;a++){if(this.sg[a]===f)return a}else for(a=0;a<this.sg.length;a++)if(this.sg[a]===f&&(void 0===this.up[a]||this.up[a]===b))return a;return-1}zk(f,b){if(0===f.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?this.su[b]:this.Zh(b));f=this.ld(f,this.Ud);return void 0===f||
void 0===f[0]||void 0===f[0][3]?!1:-1===a||void 0===f[0][3][a]?f[0][3][this.sg.length]:f[0][3][a]}collapse(f,b,a){0===this.Gd.length&&(this.Gd=[[this.gb,[],[],void 0,void 0]]);0===this.Ud.length&&(this.Ud=[[this.gb,[],[],void 0,void 0]]);1===this.su.length&&(a=void 0);b===l.i.ja.La&&this.Hua(f,a);b===l.i.ja.Xa&&this.Fua(f,a)}Hua(f,b){this.G9(this.ld(f,this.Gd),b)}Fua(f,b){this.G9(this.ld(f,this.Ud),b)}G9(f,b){void 0!==f&&(void 0===f[0][3]&&(f[0][3]=[]),void 0!==b?f[0][3][this.Zh(b)]=!1:f[0][3][this.sg.length]=
!1)}expand(f,b,a){0!==this.gb.length&&(1===this.su.length&&(a=void 0),0===this.Gd.length&&(this.Gd=[[this.gb,[],[],void 0,void 0]],this.i0([],a)),0===this.Ud.length&&(this.Ud=[[this.gb,[],[],void 0,void 0]],this.f0([],a)),b===l.i.ja.La&&this.i0(f,a),b===l.i.ja.Xa&&this.f0(f,a))}i0(f,b){var a=this.ld(f,this.Gd);void 0===a&&this.UB()&&(a=this.BV(f,this.Gd));if(void 0!==a){var c=this.Ph[f.length];f.length<this.Ph.length&&this.mB(a,c,b)}}f0(f,b){var a=this.ld(f,this.Ud);void 0===a&&this.gG()&&(a=this.BV(f,
this.Ud));if(void 0!==a){var c=this.lj[f.length];f.length<this.lj.length&&this.mB(a,c,b)}}mB(f,b,a){if(void 0!==f){var c=f[0][0];if(0<c.length&&!isNaN(b))for(var d=0;d<c.length;d++){var g=this.ta[b][1]<this.ub.length?this.ub[this.ta[b][1]][c[d]]:0;0!==g&&void 0!==g&&(void 0===f[g]?(f[g]=[[[c[d]],[],[],void 0,void 0,!1]],f[0][1].push(g)):f[0][5]||f[g][0][0].push(c[d]))}void 0===f[0][3]&&(f[0][3]=[]);void 0===a?f[0][3][this.sg.length]=!0:f[0][3][this.Zh(a)]=!0;f[0][5]=!0}}Ip(f,b,a,c){1===this.su.length&&
(c=void 0);a===l.i.ja.La&&this.sxa(f,c);a===l.i.ja.Xa&&this.rxa(f,c)}sxa(f,b){var a=this.ld(f,this.Gd);f=f.slice(0,-1);this.qY(this.ld(f,this.Gd),a,b)}rxa(f,b){var a=this.ld(f,this.Ud);f=f.slice(0,-1);this.qY(this.ld(f,this.Ud),a,b)}Mf(f,b,a,c){0!==b.children.length&&(1===this.su.length&&(c=void 0),0===this.Gd.length&&(this.Gd=[[this.gb,[],[],void 0,void 0]],this.i0([],c)),0===this.Ud.length&&(this.Ud=[[this.gb,[],[],void 0,void 0]],this.f0([],c)),a===l.i.ja.La&&this.oxa(f,b,c),a===l.i.ja.Xa&&this.nxa(f,
b,c))}oxa(f,b,a){var c=this.ld(f,this.Gd);void 0===c&&this.UB()&&(c=this.BV(f,this.Gd));if(void 0!==c){f=f.slice(0,-1);var d=this.Ph[f.length];this.kQ(this.ld(f,this.Gd),c,d,this.ta[d][b.level.wb+1],a)}}kQ(f,b,a,c,d){if(void 0!==b&&void 0!==b[0]){var g=b[0][0];if(0<g.length&&!isNaN(c)){void 0===f.indiciesMap&&(f.indiciesMap={});for(let m=0;m<g.length;m++){var k=this.ub[c][g[m]];0!==k&&void 0!==k&&(void 0===f[k]?(f[k]=[[[g[m]],[],[],void 0,void 0]],b[0][2].push(k),this.Pl[a][k]=c,f.indiciesMap[k]=
{[g[m]]:1}):1!==f.indiciesMap[k][g[m]]&&(f[k][0][0].push(g[m]),f.indiciesMap[k][g[m]]=1))}}void 0===b[0][4]&&(b[0][4]=[]);void 0===d?b[0][4][this.sg.length]=!0:b[0][4][this.Zh(d)]=!0}}nxa(f,b,a){var c=this.ld(f,this.Ud);void 0===c&&this.gG()&&(c=this.BV(f,this.Ud));f=f.slice(0,-1);var d=this.lj[f.length];this.kQ(this.ld(f,this.Ud),c,d,this.ta[d][b.level.wb+1],a)}qY(f,b,a){const c=b[0][2];if(void 0!==c&&0<c.length)for(var d=0;d<c.length;d++){let g=c[d];void 0!==f[g][0][4]&&this.qY(f,f[g],a);f[g]=void 0}b[0][2]=
[];b[0][4][this.sg.length]=!1;void 0!==a&&(b[0][4][this.Zh(a)]=!1)}ai(f,b,a){b=this.sg.length;void 0!==a&&(b="number"===typeof a?-1===a?-1:this.su[a]:this.Zh(a));-1===b&&(b=this.sg.length);f=this.ld(f,this.Gd);return void 0!==f&&void 0!==f[0]&&void 0!==f[0][4]&&(f[0][4][b]||f[0][4][this.sg.length])}yk(f,b,a){b=this.sg.length;void 0!==a&&(b="number"===typeof a?-1===a?-1:this.su[a]:this.Zh(a));-1===b&&(b=this.sg.length);f=this.ld(f,this.Ud);return void 0!==f&&void 0!==f[0]&&void 0!==f[0][4]&&(f[0][4][b]||
f[0][4][this.sg.length])}wM(f,b,a){var c=this.xe.indexOf(b.hierarchy.A),d=b.Zb?f.slice(0,-1):f.slice(0);const g=a===l.i.ja.La?this.ld(d,this.Gd):this.ld(d,this.Ud);1<f.length?(d=f.slice(0,-1),f=(a===l.i.ja.La?this.ld(d,this.Gd):this.ld(d,this.Ud))[0][0]):f=this.gb;c=this.ta[c][b.level.wb+1];a={};for(d=0;d<g[0][0].length;d++)a[g[0][0][d]]=1;d=[];for(let k=0;k<b.children.length;k++){const m=this.Ao(f,[b.children[k]],[c]);for(let n=0;n<m.length;n++)1!==a[m[n]]&&(d.push(m[n]),a[m[n]]=1)}for(b=0;b<d.length;b++)g[0][0].push(d[b])}Ao(f,
b,a){for(let k=0;k<b.length;k++){const m=b[k];var c=a[k];if(e.model.C.F.kT){var d=this.slice.wc().getItem(this.xe[c]),g=d.ya(m);e.v(d.kz)||e.v(this.ta)||e.v(a[k])||e.v(this.ta[a[k]])||(c=this.ta[a[k]][g.level.wb])}c=e.v(this.Pl[c])||e.v(this.Pl[c][m])?c:this.Pl[c][m];d=[];for(g=0;g<f.length;g++)e.v(this.ub[c])||this.ub[c][f[g]]!==m||d.push(f[g]);f=d}return f}Cda(f,b,a){return a.aa===l.i.da.en?this.CAa(f,b,a):a.aa===l.i.da.Yn?this.DAa(f,b,a):NaN}CAa(f,b,a){var c=a.Na?this.slice.hd().findIndex(r=>r.A===
a.A)+this.sg.length:this.Zh(a);null==this.values[c]&&(this.values[c]=[]);var d=this.ds(f,b);if(null==this.values[c][d]){a.aa=a.xm;if(f&&0!=f.length){var g=this.slice.yb.ea(f.length-1),k=g.ya(f[f.length-1]);if(null==k||null==k.parent)return null;g=null==g.oc||k.level.wb>g.oc.wb?g.Yj(k.parent,!0):g.Vu(g.gg);f=f.slice(0,-1);k=this.ld(f,this.Gd);if(k[0]&&k[0][1])for(var m=0,n=0;n<g.length;n++){var p=g[n];if(null!=k[p]){f.push(p);p=this.ds(f,b);if(null==this.values[c][p]){var t=this.Ha(f,b,a);isNaN(t)||
(m+=t);this.values[c][p]=m}else m=this.values[c][p];f.pop()}}}else this.values[c][d]=this.Ha(f,b,a);a.aa=l.i.da.en}return this.values[c][d]}DAa(f,b,a){var c=a.Na?this.slice.hd().findIndex(r=>r.A===a.A)+this.sg.length:this.Zh(a);null==this.values[c]&&(this.values[c]=[]);var d=this.ds(f,b);if(null==this.values[c][d]){a.aa=a.xm;if(0===b.length)this.values[c][d]=this.Ha(f,b,a);else{var g=this.slice.Db.ea(b.length-1),k=g.ya(b[b.length-1]);if(null===k||null===k.parent)return null;g=null===g.oc||k.level.wb>
g.oc.wb?g.Yj(k.parent,!0):g.Vu(g.gg);b=b.slice(0,-1);k=this.ld(b,this.Ud);if(k[0]&&k[0][1])for(var m=0,n=0;n<g.length;n++){var p=g[n];if(void 0!==k[p]){b.push(p);p=this.ds(f,b);if(null==this.values[c][p]){var t=this.Ha(f,b,a);isNaN(t)||(m+=t);this.values[c][p]=m}else m=this.values[c][p];b.pop()}}}a.aa=l.i.da.Yn}return this.values[c][d]}ida(f,b,a,c,d,g){if(!e.v(f)&&0!=f.length)if(this.Ph.length==b.length)this.I0(f,a,c,d,g);else{for(var k=[],m=[],n=this.Ph[b.length],p=0;p<f.length;p++){var t=this.ub[n][f[p]];
m[t]||0==t||(k.push(t),m[t]=!0)}for(p=0;p<k.length;p++)m=b.slice(0),m.push(k[p]),n=this.Ao(f,m,this.Ph),this.ida(n,m,a,c,d,g)}}hda(f,b,a,c){var d=[];this.ida(f,b,a,c,d,[]);return d.length}SS(f,b){if(e.v(f)||0==f.length)return 0;var a=this.xa.O.Ck(b.A);a=this.xe.indexOf(2<a.ta.length?a.ta.Jh(a.ta.length-1):a.A);b=this.uh.indexOf(b.A);for(var c=[],d=[],g,k=0;k<f.length;k++)g=this.ub[a][f[k]],d[g]||(d[g]=!0,this.Fc[b]&&isNaN(this.Fc[b][f[k]])||this.Fc[b]instanceof Uint8Array&&0==this.Fc[b][f[k]]||c.push(g));
return c.length}gw(f,b,a,c){var d=this.ld(f,this.Gd),g=this.ld(b,this.Ud),k=[];d&&0<d.length&&g&&0<g.length&&(k=f.length*g[0][0].length<b.length*d[0][0].length?this.Ao(g[0][0],f,this.Ph):this.Ao(d[0][0],b,this.lj));return this.dr(k,a,!1,c)}Ota(f,b,a){return this.dr([this.gb[f[0]]],b,!1,a)}Rza(f,b,a=0,c=null,d=null){for(var g=0,k=!0,m=0;m<f.length;m++)a=this.dr([f[m]],b,!1,a,c,d,!0),isNaN(a)||(g+=a,k=!1);return k?NaN:g}dr(f,b,a=!1,c=0,d=null,g=null,k=!0){if(a)return this.Rza(f,b,c,d,g);if(b[2]){var m=
[],n;for(n in b[1]){var p=b[1][n],t=p;Array.isArray(p)&&(t=this.dr(f,p,a,c,d,g,k),t=isNaN(t)&&k&&(b[0]===l.i.nc.bO||b[0]===l.i.nc.EP||b[0]===l.i.nc.oP||b[0]===l.i.nc.BX||b[0]===l.i.nc.UI)?this.Boa:t);m.push(t)}if(b[0]===l.i.nc.$n||b[0]===l.i.nc.PP||b[0]===l.i.nc.OP)return c;if(b[0]===l.i.nc.Ija)return this.Kya(m);if(b[0]===l.i.nc.zoa)return this.Mya(m);if(b[0]===l.i.nc.bO)return this.yya(m);if(b[0]===l.i.nc.EP)return this.Qya(m);if(b[0]===l.i.nc.oP)return this.Jya(m);if(b[0]===l.i.nc.BX)return this.Oya(m);
if(b[0]===l.i.nc.UI)return this.Aya(m);if(b[0]===l.i.nc.LESS)return this.Fya(m);if(b[0]===l.i.nc.GREATER)return this.Cya(m);if(b[0]===l.i.nc.EQUAL||b[0]==l.i.nc.qla)return this.Bya(m);if(b[0]===l.i.nc.cg)return this.Lya(m);if(b[0]===l.i.nc.R7)return this.Gya(m);if(b[0]===l.i.nc.E7)return this.Dya(m);if(b[0]===l.i.nc.E5)return this.zya(m);if(b[0]===l.i.nc.E8)return this.Nya(m);if(b[0]===l.i.nc.QO)return this.Eya(m);if(b[0]===l.i.nc.IX)return this.Pya(m);if(b[0]===l.i.nc.pW)return this.xya(m);if(b[0]===
l.i.nc.MIN)return this.Iya(m);if(b[0]===l.i.nc.MAX)return this.Hya(m)}else{a=this.L0(b[1][0],b[0]);if(void 0!==this.Ey[a])return this.dr(f,this.Ey[a],this.nD[a],0,d,g,k);k=b[0];l.i.da.Ty(k)&&(k=l.i.da.cz(k));switch(k){case l.i.da.lp:if(null!=g)return c=this.xa.O.gd(b[1][0]),f=this.Ha([],g,c),c=this.Ha(d,g,c),100*c/f;break;case l.i.da.Hq:if(null!=d)return c=this.xa.O.gd(b[1][0]),f=this.Ha(d,[],c),c=this.Ha(d,g,c),100*c/f;break;case l.i.da.Ji:if(null!=d&&null!=g)return c=this.xa.O.gd(b[1][0]),f=this.Ha([],
[],c),b=this.Ha(d,[],c),k=this.Ha([],g,c),c=this.Ha(d,g,c),Math.abs(f*c/(k*b));break;case l.i.da.en:case l.i.da.Yn:return c=this.xa.O.gd(b[1][0]),f=c.aa,c.aa=k,d=this.Cda(d,g,c),c.aa=f,d;case l.i.da.Ej:c=this.xa.O.gd(b[1][0]);if(c.type==l.i.Pa.xc)return this.SS(f,c);break;case l.i.da.Rn:case l.i.da.an:case l.i.da.Wn:case l.i.da.cn:return c=this.xa.O.gd(b[1][0]),f=c.aa,c.aa=k,d=this.Dza(d,g,c),c.aa=f,d;case l.i.da.Fq:case l.i.da.Gq:return c=this.xa.O.gd(b[1][0]),f=c.aa,c.aa=k,d=this.pAa(d,g,c),c.aa=
f,d}return this.qB(f,a,k)}}L0(f){var b=this.uh.indexOf(f);-1===b&&-1!=f.indexOf("[Measures]")&&(f=f.slice(12,-1),b=this.uh.indexOf(f));return b}filter(){}select(f=!0){this.ZH();this.filter();var b;this.gga=[];this.Ph=[];this.lj=[];this.sizes=[];this.Pl=[];this.su=[];this.VH=this.slice.axes.getItem(l.i.ja.rt);this.cc=this.slice.axes.getItem(l.i.ja.La);this.Rb=this.slice.axes.getItem(l.i.ja.Xa);for(b=0;b<this.cc.Oa.length;b++){var a=this.cc.Oa.ea(b);if(!a.Se){var c=this.xe.indexOf(a.A);this.Ph.push(c);
this.sizes.push(a.Qm);this.Pl[c]=[]}}this.ml=this.Ph.length;for(b=0;b<this.Rb.Oa.length;b++)a=this.Rb.Oa.ea(b),a.Se||(c=this.xe.indexOf(a.A),this.lj.push(c),this.sizes.push(a.Qm),this.Pl[c]=[]);this.Yk=this.lj.length;if(f)for(b=0;b<this.VH.Oa.length;b++)a=this.VH.Oa.ea(b),c=this.xe.indexOf(a.A),this.gga.push(c);else this.gb=this.rh;f=this.slice.hd();for(b=0;b<f.length;b++)c=this.Zh(f[b]),this.su.push(c)}BF(f,b,a,c){try{if(0===b.children.length||1===b.children.length&&(b.hierarchy.ya(b.children[0]).caption===
e.model.B.j.zl||b.hierarchy.ya(b.children[0]).caption===e.model.B.j.Qn))return;this.wM(f,b,c);this.Mf(f,b,c,void 0)}catch(p){}for(var d=this.ld(f,this.Gd),g=0;g<b.children.length;g++){var k=b.hierarchy.ya(b.children[g]);try{if(k.Oh){f.length<this.Ph.length&&this.mB(d,this.Ph[a],void 0);var m=f.slice(0);m[m.length-1]=k.ordinal;this.tY(m,a+1,!0)}else{var n=f.slice(0,-1);n.push(k.ordinal);this.BF(n,k,a,c)}}catch(p){}}}Qc(f){if(0===this.Gd.length||0<this.Gd.length&&this.Gd[0][0].length!==this.gb.length)this.Gd=
[[this.gb,[],[],void 0,void 0]];if(0===this.Ud.length||0<this.Ud.length&&this.Ud[0][0].length!==this.gb.length)this.Ud=[[this.gb,[],[],void 0,void 0]];this.Q9([],0,f);this.tY([],0,f)}tY(f,b,a){if(void 0!==this.Ph[b]){var c=this.Ph[b],d=this.ld(f,this.Gd),g;f.length<this.Ph.length&&this.mB(d,c,void 0);a&&(g=this.cc.Oa.getItem(this.xe[c]));if(a&&g&&g.mg){var k=g.Ad.children;for(d=0;d<k.length;d++)a=g.ya(k[d]),c=f.slice(0),c.push(a.ordinal),this.BF(c,a,b,l.i.ja.La)}else for(g=d[0][1],d=0;d<g.length;d++)c=
f.slice(0),c.push(g[d]),this.tY(c,b+1,a)}}Q9(f,b,a){if(void 0!==this.lj[b]){var c=this.lj[b],d=this.ld(f,this.Ud),g;f.length<this.lj.length&&this.mB(d,c,void 0);a&&(g=this.Rb.Oa.getItem(this.xe[c]));if(a&&g.mg)for(c=0;c<g.Ad.children.length;c++)a=g.ya(g.Ad.children[c]),d=f.slice(0),d.push(a.ordinal),this.BF(d,a,b,l.i.ja.Xa);else for(g=d[0][1],c=0;c<g.length;c++)d=f.slice(0),d.push(g[c]),this.Q9(d,b+1,a)}}xo(f,b,a,c){0===this.Gd.length&&(this.expand([],l.i.ja.La,void 0),this.expand([],l.i.ja.Xa,void 0));
try{if(0!=b.children.length&&(1!=b.children.length||b.hierarchy.ya(b.children[0]).caption!=e.model.B.j.zl&&b.hierarchy.ya(b.children[0]).caption!=e.model.B.j.Qn)){this.wM(f,b,a);b.Zb||this.Mf(f,b,a,void 0);for(var d=b.hierarchy.ta.getItem(c),g=0;g<b.children.length;g++){var k=b.hierarchy.ya(b.children[g]);if(!k.Oh&&k.level.wb<d.wb){var m=f.slice(0,-1);m.push(k.ordinal);var n=this.ld(m,a===l.i.ja.Xa?this.Ud:this.Gd);void 0!==n&&void 0!==n[0]&&this.xo(m,k,a,c)}}}}catch(p){}}Ha(){return 0}qB(f,b){return this.values&&
this.values[f[0]]?this.values[f[0]][b]:NaN}I0(){}mH(){return this.gb.length}get Ex(){return this.ub&&this.ub[0]?this.ub[0].length:this.ub[1]?this.ub[1].length:0}um(f,b){if(-1!==this.xe.indexOf(f))return this.xe.indexOf(f);if(void 0===b)this.ta[this.xe.length]=[-1,this.xe.length];else{var a=this.xe.indexOf(b);if(-1===a)return this.um(b),this.um(f,b);this.ta[a]?this.ta[a].push(this.xe.length):this.ta[this.xe.length]=[-1,this.xe.length]}this.xe.push(f);return this.xe.length-1}BK(f){-1===this.uh.indexOf(f.A)&&
this.uh.push(f.A)}vy(f,b){var a=!1;if("string"===typeof f)var c=f;else if(c=f.A,b=f.aa,a=f.Na){var d=f.Xd;var g=f.cl}f=this.sg.indexOf(c);if(-1!==f){if(void 0!==b&&b!==l.i.da.NONE){if(this.up[f]===b)return;f=this.sg.length;this.up[f]=b;this.sg[f]=c}}else f=this.sg.length,void 0!==b&&b!==l.i.da.NONE&&(this.up[f]=b),this.sg.push(c);a&&(this.Ey[f]=d,this.nD[f]=g)}UB(){return!0===e.model.C.F.Ys||"rows"===e.model.C.F.Ys}gG(){return!0===e.model.C.F.Ys||"columns"===e.model.C.F.Ys}}l.W5=h})(e.u||(e.u={}))})(q||
(q={}));
(function(e){(function(l){class h{constructor(){}static MAa(f){var b=null;switch(f.Da){case l.i.qa.Tc:b=f.wn?new l.external.Eb.tp.P5(f):new l.external.Eb.tE.Cpa(f);break;case l.i.qa.le:b=f.wn?new l.external.Eb.tp.P5(f):new l.external.Eb.Yp.woa(f);break;case l.i.qa.Sh:b=new l.local.csv.GW;break;case l.i.qa.Dq:b=new l.local.csv.Doa;break;case l.i.qa.JSON:b=!f.wI||f.Mu||f.Td?new l.local.json.Rma:new l.local.json.Sma;break;case l.i.qa.ag:b=new l.external.Qe.zla(f);break;case l.i.qa.API:b=new l.external.pc.xja(f)}return b}}l.Upa=
h})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){class h{constructor(f=""){this.type=f;this.Yt=l.i.ja.La;this.lf=[]}}l.kF=h})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){class h{static UC(f,b){switch(b.Da){case l.i.qa.ag:f=new l.external.Qe.xla(f,b);break;case l.i.qa.API:f=new l.external.pc.wja(f,b);break;case l.i.qa.le:f=new l.external.Eb.Yp.qX(f,b);break;default:f=new l.external.Eb.tE.qX(f,b)}return f}}l.WA=h})(e.u||(e.u={}))})(q||(q={}));var Ha=q||(q={}),Ia=Ha.u||(Ha.u={});
class Ja{}Ja.bF="members";Ja.L5="ascendants";Ja.Wka="descendants";Ja.X8="siblings";Ja.KX="search";Ia.jp=Ja;(function(e){(function(l){class h{constructor(){}static H0(f){var b=null;switch(f.Da){case l.i.qa.ag:b=new l.external.Qe.sla;break;case l.i.qa.API:b=new l.external.pc.sja;break;case l.i.qa.Tc:b=f.wn?new l.external.Eb.tp.O5:new l.external.Eb.cj.s9;break;case l.i.qa.le:b=f.wn?new l.external.Eb.tp.O5:new l.external.Eb.cj.s9}return b}}l.OW=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.values=[];this.values.push("");if(null!=h.instance)throw Error("Singleton");}static V(){null==h.instance&&(h.instance=new h);return h.instance}static dispose(){h.instance=null}gi(f){var b=this.values.indexOf(f);-1==b&&(b=this.values.push(f)-1);return b}Ha(f){return f>=this.values.length?"out of bounce: "+f+" of "+this.values.length:this.values[f]}}l.TX=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{}h.QX="STRUCTURE_CONNECTED";h.Ev="STRUCTURE_LOADED";h.PX="STRUCTURE_CANCELLED";h.RX="STRUCTURE_LOADING_FAILED";h.GI="BEFORE_QUERY";h.Pk="QUERY_COMPLETE";h.vt="QUERY_ERROR";l.tg=h;class f extends v.fa{constructor(a){super(h.GI);this.kq=a}}l.LE=f;class b extends v.fa{constructor(a){super(h.Pk);this.kq=a}}l.EX=b})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.AU=[NaN];this.mI=[""];if(null!=h.instance)throw Error("Singleton");}static V(){null==h.instance&&(h.instance=new h);return h.instance}static dispose(){h.instance=null}aA(f,b){var a=this.mI.indexOf(f);-1==a&&(this.mI.push(f),a=this.AU.push(b)-1);return a}KAa(f){return isNaN(f)||f>=this.mI.length||void 0==this.mI[f]?"":this.mI[f]}iAa(f){return isNaN(f)||f>=this.AU.length?NaN:this.AU[f]}clear(){this.AU.length=1;this.mI.length=1}}l.xJ=h})(e.u||(e.u=
{}))})(q||(q={}));
(function(e){(function(l){class h{static Pg(f,b){if(f===b)return f;if(h.yE&&"["===f.slice(0,1)&&"]"===f.slice(-1)){b=f.split("].");1<b.length&&b.shift();f="";for(var a=0;a<b.length;a++){var c=b[a];"[Measures]"!=c&&("["==c.slice(0,1)&&(c=c.slice(1,c.length)),"]"==c.slice(-1)&&(c=c.slice(0,c.length-1)));f=""==f?c:f+"."+c}}return f}static Cs(f){if("["==f.slice(0,1)&&"]"==f.slice(-1)&&h.yE){var b=f.split("].");if(2>b.length)return h.vI&&!e.model.C.F.jw?f.toLocaleLowerCase():f;1<b.length&&b.shift();f=
"";for(var a=0;a<b.length-1;a++){var c=b[a];"[Measures]"!=c&&("["==c.slice(0,1)&&(c=c.slice(1,c.length)),"]"==c.slice(-1)&&(c=c.slice(0,c.length-1)));f=""==f?c:f+"."+c}f=f+"."+b[b.length-1]}return h.vI&&!e.model.C.F.jw?f.toLocaleLowerCase():f}static Ds(f){if("[Measures]"==f.slice(0,10))return h.Cs(f,void 0);h.yE&&(f=f.split(".["),2<f.length?(f.shift(),f="["+f.join(".[")):(f=f.pop(),"]"==f.slice(-1)&&(f=f.slice(0,f.length-1))));return h.vI&&!e.model.C.F.jw?f.toLocaleLowerCase():f}static type(f){return l.i.input.sa.valid(f)?
f:"hierarchical date"===f?l.i.input.sa.Bq:"measure"===f?l.i.input.sa.jb:l.i.input.sa.$c}}h.yE=!1;h.vI=!1;l.ye=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.Lb=[];this.xg=[];this.ad=[];this.eg=[];this.Hc=[];this.Bc=[];this.Di=[];this.Ec=[];this.Yy=[];this.tV=[];this.AR=[];this.GB="";this.Fe=!1;this.nN=[];this.Zv=[];this.aL=[];this.Bt=[];this.Pz=b=>this.LD(b);this.SK=b=>this.K2(b);this.MN=()=>this.mr();this.qn=new e.tb;this.TQ=[];this.aQ=[];this.om=new e.tb;this.MQ=new e.tb;this.mb=[];this.Jj=0;this.AF=!1;this.DB=this.jy=this.RF=0;this.kq=l.i.Rd.np;this.WQ=!1;this.wY=
0;f.counter++;this.ha=l.Ra.V()}static V(){null==f.instance&&(f.instance=new f,f.instance.GB="grid"+f.counter);return f.instance}cR(){this.ha.N(l.tg.Pk,this.Pz,1);this.ha.N(l.tg.GI,this.SK);this.ha.N(l.tg.Ev,this.MN,1)}Rz(){this.ha.sb(l.tg.Pk,this.Pz);this.ha.sb(l.tg.GI,this.SK);this.ha.sb(l.tg.Ev,this.MN)}get ra(){return null!=this.bK?this.bK:this.ha.ra}set ra(b){this.bK=b}get slice(){return null!=this.Qb?this.Qb:this.ha.ua}set slice(b){this.Qb=b}get sj(){return e.model.C.F.pk}set sj(b){}get rows(){return this.qn}set rows(b){}get yb(){return this.slice.yb}set yb(b){}get ol(){return this.TQ}set ol(b){}get iC(){return this.aQ}set iC(b){}get Ka(){return this.om}set Ka(b){}get Db(){return this.slice.Db}set Db(b){}get ob(){return this.MQ}set ob(b){}get Ba(){return this.mb}set Ba(b){}get ie(){return this.Jj}set ie(b){}get ri(){return this.slice&&
this.AF}set ri(b){this.AF=b}get cI(){return this.RF}set cI(b){}get xn(){return this.jy}set xn(b){}get Dz(){return this.DB}set Dz(b){}get cc(){return this.Pb}set cc(b){}get Rb(){return this.Ob}set Rb(b){}get ml(){return this.Pb?this.Pb.Ya?this.Pb.Oa.length-1:this.Pb.Oa.length:0}set ml(b){}get Yk(){return this.Ob?this.Ob.Ya?this.Ob.Oa.length-1:this.Ob.Oa.length:0}set Yk(b){}get Yl(){return 1<this.mb.length||this.Ob.Ya&&e.model.C.F.iI}set Yl(b){}YL(){return this.Pb&&!this.slice.Qc?this.Pb.Ed:[]}Lha(b){this.Pb&&
!this.slice.Qc&&(this.Pb.Ed=b)}XL(){return this.Ob&&!this.slice.Qc?this.Ob.Ed:[]}Kha(b){this.Ob&&!this.slice.Qc&&(this.Ob.Ed=b)}$G(){return this.Pb&&this.slice.Qc?this.Pb.Ed:[]}w4(b){this.Pb&&this.slice.Qc&&(this.Pb.Ed=b)}PC(){return this.Ob&&this.slice.Qc?this.Ob.Ed:[]}Cha(b){this.Ob&&this.slice.Qc&&(this.Ob.Ed=b)}gH(){return this.Pb&&!this.slice.kd?this.Pb.tf:[]}A4(b){this.Pb&&!this.slice.kd&&(this.Pb.tf=b)}fH(){return this.Ob&&!this.slice.kd?this.Ob.tf:[]}z4(b){this.Ob&&!this.slice.kd&&(this.Ob.tf=
b)}UL(){return this.Pb&&this.slice.kd?this.Pb.tf:[]}Iha(b){this.Pb&&this.slice.kd&&(this.Pb.tf=b)}TL(){return this.Ob&&this.slice.kd?this.Ob.tf:[]}Hha(b){this.Ob&&this.slice.kd&&(this.Ob.tf=b)}set Vj(b){this.Pb&&(this.Pb.$f=b)}get Vj(){var b=l.i.za.fd;this.Pb&&(b=this.Pb.$f,b==l.i.za.fd&&this.Pb.at&&this.Pb.ur!=l.i.za.fd&&(b=this.Pb.ur));return b}set yj(b){this.Pb&&(this.Pb.Um=b)}get yj(){if(this.Pb){var b=this.Pb.Um;this.Pb.$f==l.i.za.fd&&this.Pb.at&&this.Pb.ur!=l.i.za.fd&&(b=[])}return b}set Lo(b){this.Pb&&
(this.Pb.Yf=b)}get Lo(){if(this.Pb){var b=this.Pb.Yf;this.Pb.$f==l.i.za.fd&&this.Pb.at&&this.Pb.ur!=l.i.za.fd&&(b=this.Pb.at)}return b}get jD(){if(this.Vj==l.i.za.fd||null==this.yj)return!1;if(1>this.yj.length)return!0;var b=!1;try{b=this.bi(this.yj.slice(0,this.yj.length-1),this.Lo)}catch(a){}return b}set jD(b){}set Ih(b){this.Ob&&(this.Ob.$f=b)}get Ih(){var b=l.i.za.fd;this.Ob&&(b=this.Ob.$f,b==l.i.za.fd&&this.Ob.at&&this.Ob.ur!=l.i.za.fd&&(b=this.Ob.ur));return b}set Hl(b){this.Ob&&(this.Ob.Um=
b)}get Hl(){if(this.Ob){var b=this.Ob.Um;this.Ob.$f==l.i.za.fd&&this.Ob.at&&this.Ob.ur!=l.i.za.fd&&(b=[])}return b}set Zq(b){this.Ob&&(this.Ob.Yf=b)}get Zq(){if(this.Ob){var b=this.Ob.Yf;this.Ob.$f==l.i.za.fd&&this.Ob.at&&this.Ob.ur!=l.i.za.fd&&(b=this.Ob.at)}return b}get lz(){if(this.Ih==l.i.za.fd||null==this.Hl)return!1;if(1>this.Hl.length)return!0;var b=!1;try{b=this.zk(this.Hl.slice(0,this.Hl.length-1),this.Zq)}catch(a){}return b}set lz(b){}set sh(b){}get sh(){return null}MS(){return null}reset(b=
!0){this.Fe=this.ri=!1;this.mb=[];this.qn=new e.tb;this.om=new e.tb;this.MQ=new e.tb;this.TQ=[];this.aQ=[];this.xg=[];this.eg=[];this.Lb=[];this.ad=[];this.Hc=[];this.Bc=[];this.Ec=[];this.jy=this.RF=0;this.Di=[];this.Yy=[];this.tV=[];this.AR=[];b&&(this.Ob&&(this.Ob.Ed=[]),this.Pb&&(this.Pb.Ed=[]),this.Ob&&(this.Ob.tf=[]),this.Pb&&(this.Pb.tf=[]))}K2(b){b.kq!=l.i.Rd.VI&&(this.kq=b.kq,this.ri=!1,b.kq==l.i.Rd.np&&this.reset(),b.kq!=l.i.Rd.MW&&b.kq!=l.i.Rd.qv||this.reset(!1))}LD(b){b.kq!=l.i.Rd.VI&&
this.load()}mr(){this.ri=!1;this.Fe||this.reset()}load(){if(null==this.ra&&(this.ra=this.ha.ra,null==this.ra))return;if(this.slice){this.Ob=this.slice.ce(l.i.ja.Xa);this.Pb=this.slice.ce(l.i.ja.La);if(0==this.ad.length&&0==this.Lb.length||this.kq==l.i.Rd.EO)this.slice.Qc?this.ra.Qc(this.slice.kd):(this.ra.expand([],l.i.ja.La,void 0),this.ra.expand([],l.i.ja.Xa,void 0)),(0<this.gH().length||0<this.UL().length)&&this.M9(),(0<this.fH().length||0<this.TL().length)&&this.L9(),(0<this.YL().length||0<this.$G().length||
0<this.XL().length||0<this.PC().length)&&this.R9(),(0<this.gH().length||0<this.UL().length)&&this.M9(),(0<this.fH().length||0<this.TL().length)&&this.L9(),(0<this.YL().length||0<this.$G().length||0<this.XL().length||0<this.PC().length)&&this.R9();this.cV();this.ri=!0}else this.Pb=this.Ob=null}R9(){var b=this.slice.hd();if(this.kq==l.i.Rd.EO)if(this.slice.Qc){var a=this.$G();if(0<a.length)for(var c=0;c<a.length;c++)try{var d=b[a[c][0]];var g=a[c].slice(1);this.ra.collapse(g,l.i.ja.La,d)}catch(k){}a=
this.PC();if(0<this.PC().length)for(c=0;c<this.PC().length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ra.collapse(g,l.i.ja.Xa,d)}catch(k){}}else{a=this.YL();if(0<a.length)for(c=0;c<a.length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ra.expand(g,l.i.ja.La,d)}catch(k){}a=this.XL();if(0<a.length)for(c=0;c<a.length;c++)try{d=b[a[c][0]],g=a[c].slice(1),this.ra.expand(g,l.i.ja.Xa,d)}catch(k){}}}M9(){var b=this.cc.Oa.slice();b.removeItem("[Measures]");var a=this.slice.hd();if(this.slice.kd)for(var c=this.UL(),
d=0;d<c.length;d++)try{var g=a[c[d][0]];var k=c[d].slice(2);var m=b.ea(k.length-1);var n=m.Ib(c[d][1]);this.ra.ai(k,n,g)&&this.ra.Ip(k,n,l.i.ja.La,g)}catch(r){}else for(c=this.gH(),d=0;d<c.length;d++)try{if("string"==typeof c[d][0]){var p=c[d][0];g=a[c[d][1]];k=c[d].slice(3);m=b.ea(k.length-1);n=m.Ib(c[d][2])}else g=a[c[d][0]],k=c[d].slice(2),m=b.ea(k.length-1),n=m.Ib(c[d][1]);if(void 0!==p)if(m.uu(p).wb<n.level.wb){var t=this.Eta(n,p);k[k.length-1]=t.ordinal;m.Y_(t);this.ra.Ip(k,t,l.i.ja.La,g)}else this.ra.ai(k,
n,g)||(this.ra.wM(k,n,l.i.ja.La),this.ra.Mf(k,n,l.i.ja.La,g));else n.hierarchy.oc&&n.hierarchy.Ad&&this.ra.xo(k.slice(0,-1),n.hierarchy.Ad,l.i.ja.La,n.hierarchy.gg),this.ra.ai(k,n,g)||(this.ra.wM(k,n,l.i.ja.La),this.ra.Mf(k,n,l.i.ja.La,g))}catch(r){}}L9(){var b=this.Rb.Oa.slice();b.removeItem("[Measures]");var a=this.slice.hd();if(this.slice.kd)for(var c=this.TL(),d=0;d<c.length;d++)try{var g=a[c[d][0]];var k=c[d].slice(2);var m=b.ea(k.length-1);var n=m.Ib(c[d][1]);this.ra.yk(k,n,g)&&this.ra.Ip(k,
n,l.i.ja.Xa,g)}catch(p){}else for(c=this.fH(),d=0;d<c.length;d++)try{g=a[c[d][0]],k=c[d].slice(2),m=b.ea(k.length-1),n=m.Ib(c[d][1]),n.hierarchy.oc&&n.hierarchy.Ad&&this.ra.xo(k.slice(0,-1),n.hierarchy.Ad,l.i.ja.Xa,n.hierarchy.gg),this.ra.yk(k,n,g)||(this.ra.wM(k,n,l.i.ja.Xa),this.ra.Mf(k,n,l.i.ja.Xa,g))}catch(p){}}JBa(b){if(!b.Na)return!1;b=u.nt.bM(b.Xd,this.ha.O.Ba);const a=new Map;for(let c=0;c<b.length;c++)a.set(b[c].aa,!0);return a.has(l.i.da.an)||a.has(l.i.da.cn)}cV(){this.WQ=!1;this.slice?
(this.mb=this.slice.hd(),this.Jj=this.Pb.Ya?this.Pb.ie:this.Ob.ie,this.qn=this.slice.rows,this.om=this.slice.Ka,this.MQ=this.slice.ob):(this.mb=[],this.Jj=0,this.qn=new e.tb,this.om=new e.tb,this.MQ=new e.tb);this.TQ=[];this.aQ=[];this.Fe?(this.vKa(),this.Zv=this.Wq(this.xg),this.nN=this.Wq(this.Lb),this.Bt=this.Wq(this.eg),this.aL=this.Wq(this.ad)):(this.xg=[],this.Lb=[],this.eg=[],this.ad=[],this.Hc=[],this.Bc=[],this.Di=[],this.Ec=[]);this.Yy=[];this.jy=this.RF=0;this.tV=[];this.AR=[];if(!e.v(this.slice)&&
!this.slice.nb){this.DB=-1;e.v(this.Ob.Yf)||this.Ob.Yf.aa!==l.i.da.an&&this.Ob.Yf.aa!==l.i.da.cn&&!this.JBa(this.Rb.Yf)?(this.Fga(),this.Bga()):(this.Bga(),this.Fga());for(var b=0;b<this.Bc.length;b++)this.Bc[b]>this.RF&&(this.RF=this.Bc[b]);this.RF++;for(b=0;b<this.Ec.length;b++)this.Ec[b]>this.jy&&(this.jy=this.Ec[b]);0<this.ad.length&&this.jy++;!this.nb&&0<this.slice.Db.length&&this.Ob.Ya&&this.Yl&&this.jy++;-1==this.DB?this.DB=0==this.ie?0:this.jy:this.DB++;this.Fe&&(this.XHa(),this.WHa(),this.Zv=
[],this.nN=[],this.Bt=[],this.aL=[]);this.Fe||this.pack();this.WQ&&e.Za(e.model.B.j.d8,e.model.B.j.e8,e.xb.vl)}}WHa(){if(this.Ob.Ya){var b=this.eg[0].length;for(--b;0<=b;b--){var a=this.Nj(b,!0);if(null===a||0==a.length)continue;const c=this.Ha([],a,this.mb[0]);isNaN(c)&&(a=this.HL(this.ad,a),0<=a&&this.Sz(this.ad,a),this.Sz(this.eg,b),this.Ec=e.Ja.wr(this.Ec,b),this.Hc=e.Ja.wr(this.Hc,b))}}else for(b=this.ad[0].length,--b;0<=b;b--)a=this.Nj(b),null!==a&&0!=a.length&&(a=this.Ha([],a,this.mb[0]),isNaN(a)&&
(this.Sz(this.ad,b),this.Ec=e.Ja.wr(this.Ec,b)))}XHa(){if(this.Ob.Ya){var b=this.Lb[0].length;for(--b;0<=b;b--){var a=this.Fn(b);null!==a&&0!=a.length&&(a=this.Ha(a,[],this.mb[0]),isNaN(a)&&(this.Sz(this.Lb,b),this.Bc=e.Ja.wr(this.Bc,b),this.Di.splice(b,1)))}}else for(b=this.xg[0].length,--b;0<=b;b--){a=this.Fn(b,!0);if(null===a||0==a.length)continue;const c=this.Ha(a,[],this.mb[0]);isNaN(c)&&(a=this.HL(this.Lb,a),0<=a&&this.Sz(this.Lb,a),this.Sz(this.xg,b),this.Bc=e.Ja.wr(this.Bc,b),this.Hc=e.Ja.wr(this.Hc,
b),this.Di.splice(b,1))}}Sz(b,a){for(let c=0;c<b.length;c++)b[c]=e.Ja.wr(b[c],a)}Fga(){var b=this.ra.result[0];if(!this.Pb.Ya||1<this.qn.length||this.sj)this.m0(b,[],0),this.Fe&&this.cIa(this.Lb);if(this.J4||this.Pb.Ya&&1==this.qn.length){var a=this.yb.ea(0);if(!a||a.Mh)if(0==this.Lb.length&&(this.Lb[0]=[]),!this.Fe){for(a=0;a<this.Lb.length;a++)this.Lb[a].push(0);this.Bc.push(0)}}if(!this.sj)if(this.Pb.Ya&&this.Yl){this.Fe||(this.Bc=[],this.Di=[]);if(1<this.qn.length)for(0!=this.ie&&this.GL(b,[],
-1,0),a=0;a<this.mb.length;a++){if(this.J4)if(this.Fe){var c=this.rj(this.xg,[],this.Zv);0<=c&&(this.Bc=e.Ja.se(this.Bc,0,c),this.Hc=e.Ja.se(this.Hc,a,c))}else this.kj(this.xg,[],a),this.Bc.push(0);else 0!=this.Jj||"off"!=e.model.C.F.Bf&&"rows"!=e.model.C.F.Bf||(this.Fe?(c=this.rj(this.xg,[],this.Zv),0<=c&&(this.Bc=e.Ja.se(this.Bc,0,c),this.Hc=e.Ja.se(this.Hc,a,c))):(this.kj(this.xg,[],a),this.Bc.push(0)));0==this.ie&&this.GL(b,[],a,1)}if(0==this.ie&&(this.J4||this.Pb.Ya&&1==this.qn.length))for(b=
0;b<this.mb.length;b++)this.Fe?(a=this.rj(this.xg,[],this.Zv),0<=a&&(this.Bc=e.Ja.se(this.Bc,0,a),this.Hc=e.Ja.se(this.Hc,b,a))):(this.kj(this.xg,[],b),this.Bc.push(0))}else this.xg=this.Lb}Bga(){var b=this.ra.result[1];(!this.Ob.Ya||1<this.om.length)&&this.sca(b,[],0);if(this.Q4||this.Ob.Ya&&1==this.om.length){var a=this.Db.ea(0);if(!a||a.Mh)if(0==this.ad.length&&(this.ad[0]=[]),!this.Fe){for(a=0;a<this.ad.length;a++)this.ad[a].push(0);this.Ec.push(0)}}if(this.Ob.Ya&&this.Yl){this.Fe||(this.Ec=[]);
if(1<this.om.length)for(this.Yy=[],0!=this.Jj&&this.EL(b,[],-1,0),a=0;a<this.mb.length;a++){if(this.Q4)if(this.Fe){var c=this.rj(this.eg,[],this.Bt);0<=c&&(this.Ec=e.Ja.se(this.Ec,0,c),this.Hc=e.Ja.se(this.Hc,a,c))}else this.kj(this.eg,[],a),this.Ec.push(0);else 0!=this.Jj||"off"!=e.model.C.F.Bf&&"columns"!=e.model.C.F.Bf||(this.Fe?(c=this.rj(this.eg,[],this.Bt),0<=c&&(this.Ec=e.Ja.se(this.Ec,0,c),this.Hc=e.Ja.se(this.Hc,a,c))):(this.kj(this.eg,[],a),this.Ec.push(0)));0==this.Jj&&this.EL(b,[],a,0)}if(0==
this.Jj&&(this.Q4||this.Ob.Ya&&1==this.om.length))for(b=0;b<this.mb.length;b++)this.Fe?(a=this.rj(this.eg,[],this.Bt),0<=a&&(this.Ec=e.Ja.se(this.Ec,0,a),this.Hc=e.Ja.se(this.Hc,b,a))):(this.kj(this.eg,[],b),this.Ec.push(0))}else this.eg=this.ad}vKa(){this.iW(this.Lb);this.iW(this.xg);this.iW(this.ad);this.iW(this.eg);Array.isArray(this.Hc)||(this.Hc=Array.from(this.Hc));Array.isArray(this.Bc)||(this.Bc=Array.from(this.Bc));Array.isArray(this.Ec)||(this.Ec=Array.from(this.Ec))}iW(b){for(var a=0;a<
b.length;a++)Array.isArray(b[a])||(b[a]=Array.from(b[a]))}pack(){this.XU(this.Lb);this.XU(this.xg);this.XU(this.ad);this.XU(this.eg);15<this.Hc.length&&(this.Hc=new Int8Array(this.Hc));15<this.Bc.length&&(this.Bc=new Uint8Array(this.Bc));15<this.Ec.length&&"after"!==e.model.C.F.$K&&(this.Ec=new Uint8Array(this.Ec))}Wq(b){b=b.slice();for(let a=0;a<b.length;a++)b[a]=b[a].slice();return b}XU(b){for(var a=0;a<b.length;a++)if(15<b[a].length){for(var c=0,d=0;d<b[a].length;d++)c=b[a][d]>c?b[a][d]:c;256>
c?b[a]=new Uint8Array(b[a]):65536>c?b[a]=new Uint16Array(b[a]):4294967296>c&&(b[a]=new Uint32Array(b[a]))}}m0(b,a,c){var d=a.length;if(d=this.Pb.Ya&&a.length>=this.Jj?this.qn.ea(d+1):this.qn.ea(d))0==c&&(this.wY=Date.now()),this.sj?this.T9(d,d.Ad,b,a,c):this.uca(d,d.Ad,b,a,c)}Bea(b){if(0==b.hierarchy.gb.length)return!0;let a=b;for(;!e.v(a);){if(0<=b.hierarchy.gb.indexOf(a.ordinal))return!0;a=a.parent}for(const c of b.hierarchy.gb)if(0<=b.ww.indexOf(c))return!0;return!1}N1(b,a,c,d){if(this.ha.ga.Gc&&
this.ha.ga.Da!==l.i.qa.API||this.ha.ga.yM)return!1;if(!0===e.model.C.F.Ys||"rows"===e.model.C.F.Ys)return!this.Bea(a);if(void 0!==c&&void 0!==d&&!l.i.da.zM(d.aa)&&(d=d.clone(),d.aa=c.measure.aa,a=this.Ha(b,[],d),!c.wU(a,c.query)))return!0;for(c=0;c<this.Ba.length;c++)if(0===c&&this.Ba[c].Na||!isNaN(this.Ha(b,[],this.Ba[c]))||l.i.da.zM(this.Ba[c].aa))return!1;return!0}tea(b,a,c,d){if(this.ha.ga.Gc&&this.ha.ga.Da!==l.i.qa.API||this.ha.ga.yM)return!1;if(!0===e.model.C.F.Ys||"columns"===e.model.C.F.Ys)return!this.Bea(a);
if(void 0!==c&&void 0!==d&&!l.i.da.zM(d.aa)&&(d=d.clone(),d.aa=c.measure.aa,a=this.Ha([],b,d),!c.wU(a,c.query)))return!0;for(c=0;c<this.Ba.length;c++)if(0===c&&this.Ba[c].Na||!isNaN(this.Ha([],b,this.Ba[c]))||l.i.da.zM(this.Ba[c].aa))return!1;return!0}uca(b,a,c,d,g){if(null!=a){if(null!=b.oc&&!this.ra.ai(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ra.xo(k,a,l.i.ja.La,b.gg)}a=null==b.oc||a.level.wb>=b.oc.wb?b.Yj(a,!1,""):b.Vu(b.gg);a=this.V4(b,a,c,d);if(b.filter.xi&&
b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var m=b.filter;var n=this.slice.gd(m.measure.A)}k=this.yb.indexOf(b.A)<this.yb.length-1;for(var p=this.ra.UB(b),t=0;t<a.length;t++){var r=b.ya(a[t]);0===t&&this.vca(r);if(void 0===c[r.ordinal]&&!p||r.Zb)continue;var w=d.slice(0);w.push(r.ordinal);if(this.N1(w,r,m,n))continue;const y=k&&this.ra.bi(w),A=!r.Oh&&this.ra.ai(w,r);if(this.Fe){const C=this.rj(this.Lb,w,this.nN);0<=C&&!this.cc.Ya&&(this.Bc=e.Ja.se(this.Bc,g,C));y||this.cc.Ya||this.g4(this.Lb,
w)}else this.kj(this.Lb,w),this.Bc.push(g);if(Date.now()-this.wY<e.model.C.F.mS)A?this.uca(b,r,c,d,g+1):y&&this.m0(c[r.ordinal],w,g+1);else if(A||y)this.WQ=!0}}}g4(b,a){var c=b[0].length;for(--c;0<=c;c--){var d=!0;for(var g=0;g<a.length;g++)if(b[g][c]!=a[g]){d=!1;break}if(d){d=!0;for(g=a.length;g<b.length;g++)if(0!=b[g][c]){d=!1;break}d?this.sj&&2==this.Di[c]&&(this.Di[c]=3):(this.Sz(b,c),this.Bc=e.Ja.wr(this.Bc,c),this.Di.splice(c,1),this.Pb.Ya&&(this.Hc=e.Ja.wr(this.Hc,c)))}}if(this.sj)for(b=b[0].length,
a=0;a<b;a++)3==this.Di[a]&&(this.Di[a]=1,this.Bc[a]=this.Wca(this.Lb,a))}cIa(b){if(b&&0!=b.length){var a=b[0].length;for(let c=b.length-1;0<=c;c--){for(let d=0;d<a;d++)if(0!=b[c][d])return;--b.length}}}Vga(b,a){var c=b[0].length;for(--c;0<=c;c--){var d=!0;for(var g=0;g<a.length;g++)if(b[g][c]!=a[g]){d=!1;break}if(d){d=!0;for(g=a.length;g<b.length;g++)if(0!=b[g][c]){d=!1;break}d||(this.Sz(b,c),this.Ec=e.Ja.wr(this.Ec,c),this.Ob.Ya&&(this.Hc=e.Ja.wr(this.Hc,c)))}}}kj(b,a,c){0===b.length&&(b[0]=[]);
if(a.length>b.length)for(var d=b.length;d<a.length;d++){b[d]=[];for(let g=0;g<b[0].length;g++)b[d].push(0)}for(d=0;d<a.length;d++)b[d].push(a[d]);if(b.length>a.length)for(a=a.length;a<b.length;a++)b[a].push(0);void 0!==c&&this.Hc.push(c)}rj(b,a,c=null,d=0){if(a.length<b.length){a=a.slice(0);for(var g=a.length;g<b.length;g++)a.push(0)}if(a.length>b.length)for(g=b.length;g<a.length;g++){b[g]=[];for(let k=0;k<b[0].length;k++)b[g].push(0)}return this.Xaa(null!==c?c:b,a)?-1:(c=this.Xxa(b,a)+d,this.sBa(b,
a,c),c)}Xxa(b,a){var c=0;let d=b[0].indexOf(0);0>d&&(d=b[0].length-1);for(let g=0;g<b.length;g++){c=b[g].indexOf(a[g],c);if(-1===c)break;if(c<d)d=b[g].lastIndexOf(a[g],d-1)+1;else break}return d}sBa(b,a,c){for(let d=0;d<b.length;d++)b[d]=e.Ja.se(b[d],void 0!==a[d]?a[d]:0,c)}Xaa(b,a){if(a.length<b.length){a=a.slice(0);for(var c=a.length;c<b.length;c++)a.push(0)}if(a.length>b.length){c=!0;for(let d=b.length;d<a.length;d++)if(0!=a[d]){c=!1;break}if(!c)return!1;a=a.slice(0,b.length)}return 0<=this.HL(b,
a)}HL(b,a,c=!0){const d=b[0].length;for(;!c&&a.length<d;)a.push(0);for(c=0;c<d;c++){let g=!0;for(let k=0;k<b.length;k++)if(b[k][c]!=a[k]){g=!1;break}if(g)return c}return-1}cD(b,a){if(0==b.length||void 0==b[0][a])return null;for(var c=[],d=0;d<b.length;d++)0!=b[d][a]&&c.push(b[d][a]);return c}GL(b,a,c,d){if(!this.sj){var g=a.length;(g=this.Pb.Ya&&a.length>=this.Jj?this.qn.ea(g+1):this.qn.ea(g))&&this.rS(g,g.Ad,b,a,c,d)}}rS(b,a,c,d,g,k){if(null!=a){if(null!=b.oc&&!this.ra.ai(d,a)){if(0<d.length){var m=
d.slice(0,-1);m.push(a.ordinal)}else m=d.slice(0);this.ra.xo(m,a,l.i.ja.La,b.gg)}m=d.length;a=null==b.oc||a.level.wb>=b.oc.wb?b.Yj(a,!1,""):b.Vu(b.gg);a=this.V4(b,a,c,d);if(b.filter.xi&&b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var n=b.filter;var p=this.slice.gd(n.measure.A)}for(var t,r,w=this.ra.UB(b),y=0;y<a.length;y++){t=b.ya(a[y]);if(null==c[t.ordinal]&&!w||t.Zb)continue;var A=d.slice(0);A.push(t.ordinal);if(this.N1(A,t,n,p))continue;var C=this.ra.bi(A,g);const B=this.ra.ai(A,
t);if(m<this.Jj)if(this.Fe?(r=this.rj(this.xg,A,this.Zv),0<=r&&(this.Bc=e.Ja.se(this.Bc,k,r),this.Hc=e.Ja.se(this.Hc,-1,r))):(this.kj(this.xg,A,-1),this.Bc.push(k)),m==this.Jj-1&&C)for(r=0;r<this.mb.length;r++)this.ra.ai(A,t,r)?this.rS(b,t,c,d,r,k+2):(this.Fe?(C=this.rj(this.xg,A,this.Zv),0<=C&&(this.Bc=e.Ja.se(this.Bc,k+1,C),this.Hc=e.Ja.se(this.Hc,r,C))):(this.kj(this.xg,A,r),this.Bc.push(k+1)),this.ra.bi(A)&&this.GL(c[t.ordinal],A,r,k+2));else{for(r=0;r<this.mb.length;r++)if(this.hia(b)||!C&&!B||
this.xu)if(this.Fe){const I=this.rj(this.xg,A,this.Zv);0<=I&&(this.Bc=e.Ja.se(this.Bc,k+1,I),this.Hc=e.Ja.se(this.Hc,r,I));C||this.g4(this.xg,A)}else this.kj(this.xg,A,r),this.Bc.push(k+1);this.ra.ai(A,t,g)?this.rS(b,t,c,d,g,k+2):this.ra.bi(A,g)&&this.GL(c[t.ordinal],A,g,k+2)}else this.Fe?(r=this.rj(this.xg,A,this.Zv),0<=r&&(this.Bc=e.Ja.se(this.Bc,k,r),this.Hc=e.Ja.se(this.Hc,g,r))):(this.kj(this.xg,A,g),this.Bc.push(k)),this.ra.ai(A,t,g)?this.rS(b,t,c,d,g,k+1):C&&this.GL(c[t.ordinal],A,g,k+1)}}}T9(b,
a,c,d,g){if(null!=a){if(null!=b.oc&&!this.ra.ai(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ra.xo(k,a,l.i.ja.La,b.gg)}a=null==b.oc||a.level.wb>=b.oc.wb?b.Yj(a,!1,""):b.Vu(a.hierarchy.gg);a=this.V4(b,a,c,d);if(b.filter.xi&&b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var m=b.filter;var n=this.slice.gd(m.measure.A)}k=this.ra.UB(b);for(var p=!1,t=0;t<a.length;t++){var r=b.ya(a[t]);0===t&&this.vca(r);if(null==c[r.ordinal]&&!k||r.Zb)continue;var w=d.slice(0);
w.push(r.ordinal);if(this.N1(w,r,m,n))continue;var y=this.ra.ai(w,r),A=this.ra.bi(w);r.Sg&&A&&!y&&(A=!1);var C=0<this.Lb.length?this.Lb[0].length:0;!this.Fe&&this.ml>w.length&&(this.Di[C]=1,void 0==this.Bc[C]&&(this.Bc[C]=g));const B=Date.now()-this.wY;if(B<e.model.C.F.mS||B>=e.model.C.F.mS&&0<g)y?this.T9(b,r,c,d,g+1):A&&this.m0(c[r.ordinal],w,g+1);else if(y||A)this.WQ=!0,0===g&&A&&(this.tIa(w,C),A=!1);y||A?(this.hia(b)&&(this.Fe?(A=this.rj(this.Lb,w,this.nN),0<=A?(this.Di.splice(A,0,2),this.Bc=e.Ja.se(this.Bc,
g,A)):(w=this.HL(this.Lb,w,!1),0<=w&&(this.Di[w]=2))):(this.kj(this.Lb,w),this.Bc[this.Lb[0].length-1]=g,this.Di[this.Lb[0].length-1]=2)),y&&this.Bc[C]>g&&(this.Bc[C]=g,this.Di[C]=0)):this.Fe?(y=1<w.length&&this.Ava(this.Lb,d),y=this.rj(this.Lb,w,this.nN,y?-1:0),0<=y&&(this.Di.splice(y,0,g==this.ml-1?0:1),this.Bc=e.Ja.se(this.Bc,g,y),1<w.length&&(0==t&&(this.Di[y]=1,this.Bc[y]=this.Wca(this.Lb,y)),0==p&&(y=d.slice(0),y.push(0),y=this.HL(this.Lb,y),0<=y&&2!=this.Di[y]&&(p=!0,this.Di[y]=2,this.Bc[y]=
g-1)))),A||this.cc.Ya||this.g4(this.Lb,w)):(this.kj(this.Lb,w),void 0==this.Di[this.Lb[0].length-1]&&(this.Di[this.Lb[0].length-1]=0,this.Bc[this.Lb[0].length-1]=g))}}}Wca(b,a){if(0==a)return 0;let c=0;for(let d=0;d<b.length&&b[d][a]==b[d][a-1];d++)c++;return c}Ava(b,a){a=a.slice(0);a.push(0);let c=1;for(;c<a.length;){if(this.Xaa(b,a))return!0;c++;a[a.length-c]=0}return!1}tIa(b,a){this.Bc[a]=0;this.ra.collapse(b,this.Pb.A,void 0);b=[-1,b[0]];a=this.$G().slice(0);a.push(b);this.w4(a)}vca(b){this.tca(this.TQ,
b)}Hxa(b){this.tca(this.aQ,b)}tca(b,a){-1===b.indexOf(a.level.A)&&(1>=(null!=a.hierarchy.oc?a.level.wb-a.hierarchy.oc.wb+1:a.level.wb)?b.push(a.level.A):b.splice(b.indexOf(a.parent.level.A)+1,0,a.level.A))}Tea(b,a){for(let c=0;c<b.length;c++){const d=a.ea(c),g=this.Qza(d,b[c]);if(d.filter.wh){let k=-1;for(let m=0;m<g.length;m++){if(0>d.gb.indexOf(g[m])&&1===g.length)return!1;const n=d.gb.indexOf(g[m]);k=n>k?n:k}if(-1===k)return!1}}return!0}Qza(b,a){const c=[];for(b=b.ya(a);0!==b.ordinal;)c.push(b.ordinal),
b=b.parent;return c}V4(b,a,c,d){if(!this.lz)return a;var g=this.Hl;if(!this.Tea(g,this.Db))return a;for(var k=[],m=[],n=[],p=[],t,r=this.ra.UB(b),w=0;w<a.length;w++)if(t=b.ya(a[w]),(null!=c[t.ordinal]||r)&&!t.Zb){var y=d.slice(0);y.push(t.ordinal);y=this.Ha(y,g,this.Zq);isNaN(y)?n.push(t.ordinal):(k.push(y),m.push(t.ordinal))}b=this.Ih!==l.i.za.Kc?e.Ja.sort(k,e.Ja.Ki|e.Ja.Bv):e.Ja.sort(k,e.Ja.Ki|e.Ja.ep|e.Ja.Bv);for(w=0;w<b.length;w++)a=m[b[w]],null!=a&&p.push(a);for(w=0;w<n.length;w++)a=n[w],this.Ih==
l.i.za.Kc?p.push(a):p.splice(w,0,a);return p}mia(b,a,c,d){if(!this.jD)return a;var g=this.yj;if(!this.Tea(g,this.yb))return a;for(var k=[],m=[],n=[],p=[],t,r=this.ra.gG(b),w=0;w<a.length;w++)if(t=b.ya(a[w]),(null!=c[t.ordinal]||r)&&!t.Zb){var y=d.slice(0);y.push(t.ordinal);y=this.Ha(g,y,this.Lo);isNaN(y)?n.push(t.ordinal):(k.push(y),m.push(t.ordinal))}b=this.Vj!==l.i.za.Kc?e.Ja.sort(k,e.Ja.Ki|e.Ja.Bv):e.Ja.sort(k,e.Ja.Ki|e.Ja.ep|e.Ja.Bv);for(w=0;w<b.length;w++)a=m[b[w]],null!=a&&p.push(a);for(w=0;w<
n.length;w++)a=n[w],this.Vj==l.i.za.Kc?p.push(a):p.splice(w,0,a);return p}sca(b,a,c){var d=a.length;(d=this.Ob.Ya&&a.length>=this.Jj?this.om.ea(d+1):this.om.ea(d))&&this.rca(d,d.Ad,b,a,c)}rca(b,a,c,d,g){if(null!=b.oc&&!this.ra.yk(d,a)){if(0<d.length){var k=d.slice(0);k.push(a.ordinal)}else k=d.slice(0);this.ra.xo(k,a,l.i.ja.Xa,b.gg)}a=null==a.hierarchy.oc||a.level.wb>=b.oc.wb?b.Yj(a,!1,""):b.Vu(b.gg);a=this.mia(b,a,c,d);if(b.filter.xi&&b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var m=
b.filter;var n=this.slice.gd(m.measure.A)}k=this.ra.gG(b);for(var p=0;p<a.length;p++){var t=b.ya(a[p]);0==p&&this.Hxa(t);if(null==c[t.ordinal]&&!k||t.Zb)continue;var r=d.slice(0);r.push(t.ordinal);if(this.tea(r,t,m,n))continue;const w=this.ra.zk(r),y=this.ra.yk(r,t);if(this.hI(w,y)&&!y)this.SB(d.length);else if(this.Xs(b)||!w||this.xu)if(this.Fe){const A=this.rj(this.ad,r,this.aL);0<=A&&!this.Rb.Ya&&(this.Ec=e.Ja.se(this.Ec,g,A));w||this.Rb.Ya||this.Vga(this.ad,r)}else this.kj(this.ad,r),this.Ec.push(g);
else this.Xs(b)||this.SB(d.length);y?this.rca(b,t,c,d,g+1):w&&this.sca(c[t.ordinal],r,g+1);this.hI(w,y)&&(this.Xs(b)||!w||this.xu)&&(this.Fe?(t=this.rj(this.ad,r,this.aL),0<=t&&(this.Ec=e.Ja.se(this.Ec,-1,t))):(this.kj(this.ad,r),this.Ec.push(-1)))}}EL(b,a,c,d){var g=a.length;(g=this.Ob.Ya&&a.length>=this.Jj?this.om.ea(g+1):this.om.ea(g))&&this.qS(g,g.Ad,b,a,c,d)}get J4(){return"on"===e.model.C.F.Bf||"columns"===e.model.C.F.Bf||0===this.rows.length}get Q4(){return"on"===e.model.C.F.Bf||"rows"===e.model.C.F.Bf||
0===this.Ka.length}Xs(b){return e.model.C.F.pk&&void 0!==b&&void 0!==b.Cf?b.Cf:"on"===e.model.C.F.Cf||"columns"===e.model.C.F.Cf}hI(b,a){return!b&&!a||this.xu?!1:"after"===e.model.C.F.$K}hia(b){return e.model.C.F.pk&&void 0!==b&&void 0!==b.Cf?b.Cf:"on"===e.model.C.F.Cf||"rows"===e.model.C.F.Cf}get xu(){return!1}qS(b,a,c,d,g,k){if(null!=b.oc&&!this.ra.yk(d,a)){if(0<d.length){var m=d.slice(0,-1);m.push(a.ordinal)}else m=d.slice(0);this.ra.xo(m,a,l.i.ja.Xa,b.gg)}m=d.length;var n=null==b.oc||a.level.wb>=
b.oc.wb?b.Yj(a,!1,""):b.Vu(b.gg);n=this.mia(a.hierarchy,n,c,d);if(b.filter.xi&&b.filter.query.va!=l.i.yc.ck&&b.filter.query.va!=l.i.yc.Hi){var p=a.hierarchy.filter;var t=this.slice.gd(p.measure.A)}var r;a=this.ra.gG(b);for(var w=0;w<n.length;w++){var y=b.ya(n[w]);if((null!=c[y.ordinal]||a)&&!y.Zb){var A=d.slice(0);A.push(y.ordinal);if(!this.tea(A,y,p,t)){var C=this.ra.zk(A,g),B=this.ra.yk(A,y);if(m<this.Jj)if(this.Ob.Ya&&this.DB<k+1&&(this.DB=k+1),m==this.Jj-1&&C)if(B){for(r=0;r<this.mb.length;r++)this.Fe?
(C=this.rj(this.eg,A,this.Bt),0<=C&&(this.Ec=e.Ja.se(this.Ec,k,C),this.Hc=e.Ja.se(this.Hc,g,C))):(this.kj(this.eg,A,r),this.Ec.push(k));this.qS(b,y,c,d,g,k+1)}else for(r=0;r<this.mb.length;r++)this.Xs(b)||!C||this.xu?this.Fe?(B=this.rj(this.eg,A,this.Bt),0<=B&&(this.Ec=e.Ja.se(this.Ec,k,B),this.Hc=e.Ja.se(this.Hc,r,B))):(this.kj(this.eg,A,r),this.Ec.push(k)):this.Xs(b)||this.SB(m),this.ra.zk(A,r)&&this.EL(c[y.ordinal],A,r,k+1);else{if(this.hI(C,B)&&!B)this.SB(m);else if(this.Xs(b)||!C||this.xu)for(r=
0;r<this.mb.length;r++)if(this.Fe){const I=this.rj(this.eg,A,this.Bt);0<=I&&(this.Ec=e.Ja.se(this.Ec,k,I),this.Hc=e.Ja.se(this.Hc,r,I));C||this.Vga(this.eg,A)}else this.kj(this.eg,A,r),this.Ec.push(k);else this.Xs(b)||this.SB(m);this.ra.yk(A,y,g)?this.qS(b,y,c,d,g,k+1):C&&this.EL(c[y.ordinal],A,g,k+1);if(this.hI(C,B)&&(this.Xs(b)||!C||this.xu))for(r=0;r<this.mb.length;r++)this.Fe?(y=this.rj(this.eg,A,this.Bt),0<=y&&(this.Ec=e.Ja.se(this.Ec,-1,y),this.Hc=e.Ja.se(this.Hc,r,y))):(this.kj(this.eg,A,r),
this.Ec.push(-1))}else this.hI(C,B)&&!B?this.SB(m):this.Xs(b)||!C||this.xu?this.Fe?(r=this.rj(this.eg,A,this.Bt),0<=r&&(this.Ec=e.Ja.se(this.Ec,k,r),this.Hc=e.Ja.se(this.Hc,g,r))):(this.kj(this.eg,A,g),this.Ec.push(k)):this.Xs(b)||this.SB(m),this.ra.yk(A,y,g)?this.qS(b,y,c,d,g,k+1):C&&this.EL(c[y.ordinal],A,g,k+1),this.hI(C,B)&&(this.Xs(b)||!C||this.xu)&&(this.Fe?(A=this.rj(this.ad,A,this.aL),0<=A&&(this.Ec=e.Ja.se(this.Ec,-1,A))):(this.kj(this.ad,A),this.Ec.push(-1)))}}}}SB(b){void 0===this.Yy[this.Ec.length]&&
(this.Yy[this.Ec.length]=[]);-1==this.Yy[this.Ec.length].indexOf(b)&&this.Yy[this.Ec.length].push(b)}get nb(){return 0==this.ad.length&&0==this.Lb.length}set nb(b){}aT(b){return this.sj?this.Bc[this.Pb.Ya?Math.floor(b/this.mb.length):b]:this.Bc[b]}fT(b){return this.sj?this.Di[this.Pb.Ya?Math.floor(b/this.mb.length):b]:this.Di[b]}Hw(){return 1}RL(b){return this.Ec[b]}M1(b){return this.Yy[b]}cT(b){return this.Pb.Ya&&(b.length>this.Jj||0==this.Jj)?b.length:b.length-1}bT(b){return this.qn.ea(this.cT(b))}KS(b){return this.Ob.Ya&&
(b.length>this.Jj||0==this.Jj)?b.length:b.length-1}aH(b){return this.om.ea(this.KS(b))}get Dd(){return 0<this.ad.length?this.ad[0].length:0}set Dd(b){}get Cd(){return 0<this.Lb.length?this.Lb[0].length:0}set Cd(b){}get Cn(){return 0<this.eg.length?this.eg[0].length:0}set Cn(b){}get Bn(){return this.sj?(this.cc&&this.cc.Ya?this.mb.length:1)*(0<this.Lb.length?this.Lb[0].length:0):this.xg&&0<this.xg.length?this.xg[0].length:0}set Bn(b){}bi(b,a){return this.ra.bi(b,a)}zk(b,a){return this.ra.zk(b,a)}ai(b,
a,c){return this.ra.ai(b,a,c)}yk(b,a,c){return this.ra.yk(b,a,c)}QC(b,a=!0){b=b.slice(0);var c=(a=a&&this.Ob.Ya)?b.pop():-1,d=this.eg;if(0<d.length)for(var g=0;g<d[0].length;g++){var k=!0;if(!a||!this.Yl||c==this.Hc[g]){var m=this.cD(d,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){k=!1;break}if(k)return g}}}return-1}aD(b,a=!0){b=b.slice(0);var c=(a=a&&this.Pb.Ya)?b.pop():-1,d=this.sj?this.Lb:this.xg;if(0<d.length)for(var g=0;g<d[0].length;g++){var k=!0;if(!a||!this.Yl||c==this.Hc[g]){var m=
this.cD(d,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){k=!1;break}if(k)return g}}}return-1}Fn(b,a=!1){return 0>b||null==this.Pb||null==this.mb?null:a&&this.Pb.Ya&&this.Yl?this.sj?(b=Math.floor(b/this.mb.length),void 0==this.Lb[0][b]?null:this.cD(this.Lb,b)):void 0==this.xg[0][b]?null:this.cD(this.xg,b):e.v(this.Lb[0])||e.v(this.Lb[0][b])?null:this.cD(this.Lb,b)}Nj(b,a=!1){return 0>b||null==this.Ob||null==this.mb?null:a&&this.Ob.Ya&&this.Yl?void 0==this.eg[0][b]?null:this.cD(this.eg,
b):void 0==this.ad[0]?[0]:void 0==this.ad[0][b]?null:this.cD(this.ad,b)}E0(){return null}eT(b){return this.sj&&this.Pb.Ya?void 0==this.Lb[0][Math.floor(b/this.Ba.length)]?-1:b%this.mb.length:void 0==this.Hc[b]?-1:this.Pb.Ya&&this.Yl?this.Hc[b]:-1}LS(b){return void 0===this.Hc[b]?-1:this.Ob.Ya&&this.Yl?this.Hc[b]:-1}vi(b,a){if(void 0!==this.mb&&void 0!==this.Pb&&void 0!==this.Ob)return this.Yl?this.Pb.Ya?this.sj?(a=b%this.mb.length,void 0==this.Lb[0][Math.floor(b/this.Ba.length)]?this.mb[0]:this.mb[a]):
void 0===this.Hc[b]?this.mb[0]:this.mb[this.Hc[b]]:void 0===this.Hc[a]?this.mb[0]:this.mb[this.Hc[a]]:this.mb[0]}bd(b,a,c){return this.ra.bd(b,a,c)}save(b,a,c,d,g){return this.ra.save(b,a,c,d,g)}dD(b,a,c){return this.ra.dD(b,a,c)}Du(b,a){return this.ha.ga.Gc?null:null==b&&null==a?null:this.ra.uAa(b,a)}Ha(b,a,c){if(c.aa===l.i.da.Ir)return b=this.ra.Ha(b,a,c),c=this.ra.Ha([],[],c),isNaN(b)&&!isNaN(c)?0:Math.abs(100*b/c);if(c.aa===l.i.da.lp)return b=this.ra.Ha(b,a,c),c=this.ra.Ha([],a,c),isNaN(b)&&!isNaN(c)?
0:100*b/c;if(c.aa===l.i.da.Hq)return a=this.ra.Ha(b,a,c),c=this.ra.Ha(b,[],c),isNaN(a)&&!isNaN(c)?0:100*a/c;if(c.aa===l.i.da.Gq){var d=this.ra.Ha(b,a,c);b=b.slice(0,b.length-1);c=this.ra.Ha(b,a,c);return isNaN(d)&&!isNaN(c)?0:100*d/c}if(c.aa===l.i.da.Fq)return d=this.ra.Ha(b,a,c),a=a.slice(0,a.length-1),c=this.ra.Ha(b,a,c),isNaN(d)&&!isNaN(c)?0:100*d/c;if(c.aa===l.i.da.Ji){d=this.ra.Ha([],[],c);const g=this.ra.Ha(b,[],c),k=this.ra.Ha([],a,c);c=this.ra.Ha(b,a,c);return Math.abs(d*c/(k*g))}return c.aa===
l.i.da.Rn?this.fda(b,a,c,!1):c.aa===l.i.da.an?this.gda(b,a,c,!1):c.aa===l.i.da.Wn?this.fda(b,a,c,!0):c.aa===l.i.da.cn?this.gda(b,a,c,!0):c.aa===l.i.da.en||c.aa===l.i.da.Yn?this.ra.Cda(b,a,c):this.ha.ga.Da!==l.i.qa.Tc&&this.ha.ga.Da!==l.i.qa.le||!e.model.C.F.vq||c.aa!==l.i.da.NONE?this.ra.Ha(b,a,c):(c=this.ra.Ha(b,a,c),l.xJ.V().iAa(c))}gda(b,a,c,d){var g=-1;if(0<this.Ka.length){var k=this.Ob.Ya&&1<this.mb.length;g=a.slice();k&&g.push(0);g=this.QC(g,k);if(0==g||0==a.length)return NaN;if(0>g)return 0;
k=this.Nj(k&&a.length<=this.Ob.ie?g-this.mb.length:g-1,k);if(null==k||a.length!=k.length&&1!=a.length)return NaN;a.length!=k.length&&1==a.length&&(k=this.qAa(g,a.length));if(null==k)return NaN;k=this.ra.Ha(b,k,c);isNaN(k)&&!d&&(k=0)}b=this.ra.Ha(b,a,c);isNaN(b)&&0<g&&!d&&(b=0);return d?(b-k)/k*100:b-k}fda(b,a,c,d){var g=-1;if(0<this.rows.length){var k=this.Pb.Ya&&1<this.mb.length;g=b.slice();k&&g.push(0);g=this.aD(g,k);if(0==g||0==b.length)return NaN;if(0>g)return 0;k=this.Fn(k&&b.length<=this.Pb.ie?
g-(this.mb.length+1):g-1,k);if(null==k||b.length!=k.length&&1!=b.length)return NaN;b.length!=k.length&&1==b.length&&(k=this.rAa(g,b.length));if(null==k)return NaN;k=this.ra.Ha(k,a,c);isNaN(k)&&!d&&(k=0)}b=this.ra.Ha(b,a,c);isNaN(b)&&0<g&&!d&&(b=0);return d?(b-k)/k*100:b-k}rAa(b,a){if(0>b||null==this.Pb||null==this.mb||e.v(this.Lb[0])||e.v(this.Lb[0][b]))return null;b=this.rha(this.Lb,a,b);return 0<=b&&0==this.Lb[a][b]?this.Ada(b,a,this.Lb):null}qAa(b,a){if(0>b||null==this.Pb||null==this.mb)return null;
if(void 0==this.ad[0])return[0];if(void 0==this.ad[0][b])return null;b=this.rha(this.ad,a,b);return 0<=b&&0==this.ad[a][b]?this.Ada(b,a,this.ad):null}Ada(b,a,c){let d=[];for(let g=0;g<a;g++)d.push(c[g][b]);return d}rha(b,a,c){if(b[a]&&0==b[a][c]){for(c--;0!=b[a][c]&&0<=c;)c--;return c}return-1}Np(b,a,c){b=this.ra.Ha(b,a,c);return l.xJ.V().KAa(b)}gw(b,a,c,d){return this.ra.gw(b,a,c,d)}Cw(b){this.ri&&(this.ha.ga.Gc||this.Bxa(b))}Bxa(b){var a=this.slice.rows.Hb(b.A)?l.i.ja.La:l.i.ja.Xa;b=a==l.i.ja.La?
this.slice.yb.indexOf(b.A):this.slice.Db.indexOf(b.A);if(b+1!=(a==l.i.ja.La?this.slice.yb.length:this.slice.Db.length)){var c=[],d=(a==l.i.ja.La?this.slice.yb:this.slice.Db).slice(0,b+1);this.kM([],d,c);d=a==this.slice.cs.A?this.slice.cs.ie:-1;for(var g=this.slice.hd(),k=0;k<c.length;k++)if(0<=d&&d<=b&&1<g.length)for(var m=0;m<g.length;m++){var n=g[m];c[k].length>d?this.expand(c[k],a,n,!1):this.expand(c[k],a,void 0,!1)}else this.expand(c[k],a,void 0,!1);this.ha.Fa(new l.EX(l.i.Rd.EA));this.ha.$a(e.model.jc.nd.dn)}}kM(b,
a,c,d=!0){if(0!=a.length){var g=a.ea(0);var k=g.filter.wi?g.gb.length:g.Ri;for(var m=0;m<k;m++){var n=g.filter.wi?g.ya(g.gb[m]):g.ya(m);if(!n.Zb){var p=b.slice(0);p.push(n.ordinal);(d||!d&&1==a.length)&&c.push(p.slice(0));this.kM(p.slice(0),a.slice(1),c,d)}}}}ow(b){this.ri&&(this.ha.ga.Gc||this.Gua(b))}Gua(b){var a=this.slice.rows.Hb(b.A)?l.i.ja.La:l.i.ja.Xa;b=a==l.i.ja.La?this.slice.yb.indexOf(b.A):this.slice.Db.indexOf(b.A);if(b+1!=(a==l.i.ja.La?this.slice.yb.length:this.slice.Db.length)){var c=
[],d=(a==l.i.ja.La?this.slice.yb:this.slice.Db).slice(0,b+1);this.kM([],d,c,!1);d=a==this.slice.cs.A?this.slice.cs.ie:-1;for(var g=this.slice.hd(),k=0;k<c.length;k++)if(0<=d&&d<=b&&1<g.length)for(var m=0;m<g.length;m++){var n=g[m];c[k].length>d?this.collapse(c[k],a,n,!1):this.collapse(c[k],a,void 0,!1)}else this.collapse(c[k],a,void 0,!1);this.ha.Fa(new l.EX(l.i.Rd.i6));this.ha.$a(e.model.jc.nd.dn)}}Qc(){this.ri&&(this.ha.ga.Gc?this.ha.select():(this.reset(),this.slice.Qc?this.ra.Qc(this.slice.kd):
this.ha.select()))}sort(){this.Fe=!1;this.cV();this.ha.$a(e.model.jc.nd.dn)}get fU(){return this.o$}get eU(){return this.n$}expand(b,a,c,d=!0){a==l.i.ja.La&&(this.o$=b);a==l.i.ja.Xa&&(this.n$=b);var g=this.slice.ce(a),k=b.slice(0);k.unshift(c&&g.Ya?c.index:-1);if(this.slice.Qc)if(a==l.i.ja.La){g=this.$G();k=k.toString().toLocaleLowerCase();var m=-1;for(var n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.w4(g)}else{g=this.PC();k=k.toString().toLocaleLowerCase();
m=-1;for(n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Cha(g)}else a==l.i.ja.La?(g=this.YL().slice(0),g.push(k),this.Lha(g)):(g=this.XL().slice(0),g.push(k),this.Kha(g));this.ha.expand(b,a,c,d)}collapse(b,a,c,d=!0){a==l.i.ja.La&&(this.o$=b.slice(0,b.length-1));a==l.i.ja.Xa&&(this.n$=b.slice(0,b.length-1));var g=this.slice.ce(a),k=b.slice(0);k.unshift(c&&g.Ya?c.index:-1);if(this.slice.Qc)a==l.i.ja.La?(g=this.$G().slice(0),g.push(k),this.w4(g)):(g=
this.PC().slice(0),g.push(k),this.Cha(g));else if(a==l.i.ja.La){g=this.YL();k=k.toString().toLocaleLowerCase();var m=-1;for(var n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Lha(g)}else{g=this.XL();k=k.toString().toLocaleLowerCase();m=-1;for(n=0;n<g.length;n++)if(k===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Kha(g)}this.ha.collapse(b,a,c,d);d&&this.ha.$a(e.model.jc.nd.dn)}Ip(b,a,c,d){var g=this.slice.ce(c),k=[],m=b.slice(0);
m.unshift(a.A);m.unshift(d&&g.Ya?d.index:-1);if(this.slice.kd)c==l.i.ja.La?(k=this.UL().slice(0),k.push(m),this.Iha(k)):(k=this.TL().slice(0),k.push(m),this.Hha(k));else if(c==l.i.ja.La){var n=this.gH(),p;for(p in n)g=n[p],"string"==typeof g[0]&&(g=g.slice(1)),g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(g);this.A4(k)}else{n=this.fH();for(p in n)g=n[p],"string"==typeof g[0]&&(g=g.slice(1)),g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(g);
this.z4(k)}this.ha.Ip(b,a,c,d);this.ha.$a(e.model.jc.nd.dn)}Eta(b,a){for(;void 0!==b&&b.level.A!=a;)b=b.parent;return b}Mf(b,a,c,d){var g=this.slice.ce(c),k=[],m=b.slice(0);m.unshift(a.A);m.unshift(d&&g.Ya?d.index:-1);if(this.slice.kd)if(c==l.i.ja.La){var n=this.UL(),p;for(p in n)g=n[p],g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(g);this.Iha(k)}else{n=this.TL();for(p in n)g=n[p],g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&k.push(g);this.Hha(k)}else c==
l.i.ja.La?(k=this.gH().slice(0),k.push(m),this.A4(k)):(k=this.fH().slice(0),k.push(m),this.z4(k));this.ha.Mf(b,a,c,d);this.ha.$a(e.model.jc.nd.dn)}xo(b,a,c,d,g){var k=this.slice.ce(c),m=b.slice(0);m.unshift(a.A);m.unshift(d&&k.Ya?d.index:-1);m.unshift(g);c==l.i.ja.La?(k=this.gH().slice(0),k.push(m),this.A4(k)):(k=this.fH().slice(0),k.push(m),this.z4(k));this.ha.xo(b,a,c,d,g)}W1(b){return!0===this.tV[b]}JV(b){this.tV[b]=!0}H1(b){return!0===this.AR[b]}x4(b){this.AR[b]=!0}static dispose(){f.instance&&
(f.instance.Rz(),f.instance.Yd());f.instance=null}}f.counter=0;h.QP=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static get vwa(){if(f.I)return f.I instanceof h.eX?"flat":f.I instanceof h.oO?"chart":"pivot"}static aKa(b){var a=b.U("gridType");return b.U("viewType")===e.K.Id.dj?"chart":a===e.K.Y.te.Bh?"flat":"pivot"}static zc(b="",a=!0){""==b&&(b=e.model.C.F.je==e.K.Id.dj?"chart":e.model.C.F.rc?"flat":"pivot");b="flat"==b?h.eX.V():"chart"==b?h.oO.V():h.QP.V();b.cR();f.I!=b?(f.I&&f.I.Rz(),b.load()):a&&e.model.C.F.cv&&(b.load(),e.model.C.F.cv=!1);f.I=b;return f.I}static D0(b){f.zc("chart");
return b?h.T8.V(f.I):f.I}static dispose(){h.eX.dispose();h.oO.dispose();h.QP.dispose();h.T8.dispose();f.I=null}}f.I=null;h.Fj=f;(function(b){b.zNa="pivot";b.Bh="flat";b.xLa="chart"})(h.ila||(h.ila={}))})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.mb=[];this.AF=!1;this.Pz=()=>this.LD();this.Iu=[];this.Xk=[];this.xa=l.Ra.V()}get ra(){return null!=this.bK?this.bK:this.xa.ra}set ra(b){this.bK=b}get slice(){return null!=this.Qb?this.Qb:this.xa.ua}set slice(b){this.Qb=b}get Ba(){return this.mb}set Ba(b){}get Yl(){return 1<this.mb.length}set Yl(b){}get ri(){return this.slice&&this.AF}set ri(b){}static V(){null==f.instance&&(f.instance=new f);return f.instance}cR(){this.xa.N(l.tg.Pk,
this.Pz,1)}Rz(){this.xa.sb(l.tg.Pk,this.Pz)}load(){if(null==this.ra&&(this.ra=this.xa.ra,null==this.ra))return;this.slice&&(this.xa.ga.Gc||(this.ra.expand([],l.i.ja.La,void 0),this.ra.expand([],l.i.ja.Xa,void 0)),this.cV(),this.AF=!0)}LD(){this.reset();this.load()}cV(){var b,a=this.slice?this.slice.flatten(!0,!0):new e.tb;this.Xk.length=0;this.ZK=new e.tb;this.wc=this.xa.O.wc();this.mb=[];for(b=0;b<a.length;b++){var c=a.ea(b);var d=a.ea(b)instanceof l.O.ht?this.xa.O.cf(c.A):a.ea(b);void 0===d&&(d=
this.xa.O.Uq.getItem(c.A));d&&this.mb.push(d);d=this.ra.uh.indexOf(c.A);if(c.mg)for(var g=1;g<c.ta.length;g++)this.Xk.push([d,g]),this.ZK.Ta(c.A,this.Xk.length-1);else this.Xk.push(d),this.ZK.Ta(c.A,this.Xk.length-1);this.sh=this.slice.ih}this.sort()}get ie(){return 0}set ie(b){}get cI(){return 0}set cI(b){}get xn(){return 0}set xn(b){}get Dz(){return 0}set Dz(b){}get rows(){return new e.tb}set rows(b){}get yb(){return new e.tb}set yb(b){}get ol(){return[]}set ol(b){}get iC(){return[]}set iC(b){}get Ka(){return new e.tb}set Ka(b){}get Db(){return new e.tb}set Db(b){}get ob(){return new e.tb}set ob(b){}get cc(){return new l.O.zr(l.i.ja.La)}set cc(b){}get Rb(){return new l.O.zr(l.i.ja.Xa)}set Rb(b){}get ml(){return 1}set ml(b){}get Yk(){return 0}set Yk(b){}set Vj(b){}get Vj(){return null}set yj(b){}get yj(){return null}set Lo(b){}get Lo(){return null}get jD(){return!1}set jD(b){}set Ih(b){}get Ih(){return null}set Hl(b){}get Hl(){return null}set Zq(b){}get Zq(){return null}get lz(){return!e.v(this.sh)&&
0<this.sh.length}set lz(b){}set sh(b){this.slice.ih=b}get sh(){return this.slice.ih}MS(b){if(e.v(this.sh))return null;for(var a=0;a<this.sh.length;a++){var c=this.sh[a];if(c.measure.A==b)return c}}reset(){this.AF=!1;this.mb=[];this.Iu.length=0;this.Xk.length=0;this.ZK=new e.tb;this.wc=null}get nb(){return 0==this.Xk.length}set nb(b){}M1(){return null}aT(){return 0}fT(){return 0}Hw(){return 0}RL(){return 1}cT(){return 0}bT(b){return this.aH(b)}KS(){return 0}aH(b){e.v(this.wc)&&(this.wc=this.xa.O.wc());
return this.wc.getItem(this.ra.uh[b[0]])}get Dd(){return this.Xk.length}set Dd(b){}get Cd(){return this.ra?this.ra.result[0]:0}set Cd(b){}get Cn(){return this.Xk.length}set Cn(b){}get Bn(){return this.ra.mH()}set Bn(b){}bi(){return!1}zk(){return!1}ai(){return!1}yk(){return!1}QC(b){for(var a=0;a<this.Xk.length;a++)if(this.Xk[a]instanceof Array){if(this.Xk[a][0].toString()==b.toString())return a}else if(this.Xk[a].toString()==b.toString())return a;return-1}aD(b){if(0<this.Iu.length&&b[0]<this.Iu.length)for(var a=
0;a<this.Iu.length;a++){if(this.Iu[a].toString()==b.toString())return a}else return b[0];return-1}Fn(b){return 0>b?null:0<this.Iu.length&&b<this.Iu.length?[this.Iu[b]]:[b]}Nj(b,a,c=!1){return 0>b?null:0<this.Xk.length&&b<this.Xk.length?!c&&this.Xk[b]instanceof Array?[this.Xk[b][0]]:[this.Xk[b]]:[b]}E0(b){b=this.ZK.getItem(b);return this.Nj(b,!1)}eT(){return 0}LS(){return 0}vi(b,a){b=this.Nj(a);var c=this.ra.uh[b[0]];return this.mb.find(d=>d.A===c)}dD(b,a,c){return null==b?this.ra.oda(null,c):this.ra.oda(b[0],
c)}Ha(b,a,c,d){if(null==a&&null==b)return this.ra.Ha([],[],c,!0);if(this.ra instanceof l.local.aP||this.ra instanceof l.external.pc.I5)return this.ra.US(b[0],a[0],c,c.type!=l.i.Pa.xc,d)}Du(b,a){return(null!=b||null!=a)&&this.ra instanceof l.local.aP?this.ra.Du(b[0]):null}sort(){this.eZ();this.xa.$a(e.model.jc.nd.dn)}eZ(){if(this.lz){for(var b=[],a=null,c=null,d=0;d<this.sh.length;d++){var g=this.sh[d];g.hierarchy=this.xa.O.Ck(g.measure.A);c=void 0!==g.hierarchy?g.hierarchy.A:g.measure.A;a=void 0!==
g.hierarchy?g.hierarchy.j1:!1;if(-1!=this.ZK.indexOf(c)){g.lf=this.E0(c);if(g.measure.type==l.i.Pa.xc||a)g.WR=this.Aza(g.hierarchy);b.push(g)}}this.sh=b;b=[];for(a=0;a<this.Bn;a++){c=[];for(d=0;d<this.sh.length;d++)g=this.sh[d],c[d]=this.AAa(a,g.lf,g.measure,g.hierarchy,!e.v(g.WR));b[a]=[c,a]}b.sort((k,m)=>this.IJa(k[0],m[0]));this.Iu=b.map(k=>k[1])}else this.Iu.length=0}Aza(b){var a=!1;b.type==l.i.Lc.Sa&&2<b.ta.length&&(a=!0);if(b.j1||!a){a={};const c=b.Yj(b.Ad,!1,l.i.za.ic);for(let d=0;d<c.length;d++){const g=
b.ya(c[d]);a[g.A]=d}return a}return null}AAa(b,a,c,d,g){if(null!=d&&d.type==l.i.Lc.Sa&&2<d.ta.length)return g=this.Ha([b],a,c,d.ta.length-1),d.ya(g).fc;b=this.Ha([b],a,c);if(c.type!=l.i.Pa.xc)return isNaN(b)?Number.NEGATIVE_INFINITY:b;d=d.ya(b);return g?d.A:d.caption}IJa(b,a){let c=0;for(let d=0;d<this.sh.length;d++){const g=this.sh[d];if(b[d]!=a[d]){c=e.v(g.WR)?"number"==typeof b[d]&&"number"==typeof a[d]?b[d]-a[d]:e.Ja.localeCompare(b[d],a[d]):g.WR[b[d]]-g.WR[a[d]];g.sort==l.i.za.Kc&&(c*=-1);break}}return c}gw(b,
a,c,d){return this.ra.Ota(b,c,d)}Np(){return null}Cw(){}ow(){}Qc(){}get fU(){return null}get eU(){return null}expand(){}collapse(){}Ip(){}Mf(){}bd(){return[]}save(b,a,c,d){return this.ra.AIa(b,a,c,d)}get sj(){return!1}set sj(b){}static dispose(){f.instance&&(f.instance.Yd(),f.instance.Rz());f.instance=null}W1(){return!1}JV(){}H1(){return!1}x4(){}}h.eX=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.QP{constructor(){super()}static V(){null==f.ze&&(f.ze=new f,f.ze.GB="chart"+h.QP.counter);return f.ze}get sj(){return!1}set sj(b){}get xu(){return!0}static dispose(){f.ze&&(f.ze.Rz(),f.ze.Yd());f.ze=null}}h.oO=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(b){super();this.I=b}static V(b){null==f.instance&&(f.instance=new f(b));return f.instance}static dispose(){f.instance&&(f.instance.Yd(),f.instance.Rz());f.instance=null}get ra(){return this.I.ra}set ra(b){this.I.ra=b}get slice(){return this.I.slice}set slice(b){this.I.slice=b}get Ba(){return this.I.Ba}set Ba(b){}get ri(){return this.I.ri}set ri(b){}cR(){this.I.cR()}Rz(){this.I.Rz()}load(){this.I.load()}get ie(){return this.I.ie}set ie(b){}get cI(){return this.I.xn}set cI(b){}get Yl(){return 1<
this.Ba.length}set Yl(b){}get xn(){return this.I.cI}set xn(b){}get Dz(){return this.I.Dz}set Dz(b){}get rows(){return this.I.Ka}set rows(b){}get yb(){return this.I.Db}set yb(b){}get ol(){return this.I.iC}set ol(b){}get iC(){return this.I.ol}set iC(b){}get Ka(){return this.I.rows}set Ka(b){}get Db(){return this.I.yb}set Db(b){}get ob(){return this.I.ob}set ob(b){}get cc(){return this.I.Rb}set cc(b){}get Rb(){return this.I.cc}set Rb(b){}get ml(){return this.I.Yk}set ml(b){}get Yk(){return this.I.ml}set Yk(b){}set Vj(b){}get Vj(){return this.I.Ih}set yj(b){}get yj(){return this.I.Hl}set Lo(b){}get Lo(){return this.I.Zq}get jD(){return this.I.lz}set jD(b){}set Ih(b){}get Ih(){return this.I.Vj}set Hl(b){}get Hl(){return this.I.yj}set Zq(b){}get Zq(){return this.I.Lo}get lz(){return this.I.jD}set lz(b){}set sh(b){}get sh(){return null}MS(){return null}reset(){}get nb(){return this.I.nb}set nb(b){}M1(){return null}aT(b){return this.I.RL(b)}fT(b){return this.I.Hw(b)}RL(b){return this.I.aT(b)}Hw(b){return this.I.fT(b)}cT(b){return this.I.cT(b)}bT(b){return this.I.bT(b)}KS(b){return this.I.KS(b)}aH(b){return this.I.aH(b)}get Dd(){return this.I.Cd}set Dd(b){}get Cd(){return this.I.Dd}set Cd(b){}get Cn(){return this.I.Bn}set Cn(b){}get Bn(){return this.I.Cn}set Bn(b){}bi(b,
a){return this.I.zk(b,a)}zk(b,a){return this.I.bi(b,a)}ai(b,a,c){return this.I.yk(b,a,c)}yk(b,a,c){return this.I.ai(b,a,c)}QC(b){return this.I.aD(b)}aD(b){return this.I.QC(b)}Fn(b,a=!1){return this.I.Nj(b,a)}Nj(b,a=!1){return this.I.Fn(b,a)}eT(b){return this.I.LS(b)}LS(b){return this.I.eT(b)}vi(b,a){return this.I.vi(b,a)}dD(b,a,c){return this.I.dD(b,a,c)}Du(){return null}Ha(b,a,c){return this.I.Ha(a,b,c)}sort(){return this.I.sort()}gw(b,a,c,d){return this.I.gw(b,a,c,d)}Np(b,a,c){return this.I.Np(b,
a,c)}Cw(b){this.I.Cw(b)}ow(b){this.I.ow(b)}Qc(){}get fU(){return null}get eU(){return null}expand(b,a,c,d=!0){a=a==l.i.ja.Xa?l.i.ja.La:l.i.ja.Xa;this.I.expand(b,a,c,d)}collapse(b,a,c,d=!0){a=a==l.i.ja.Xa?l.i.ja.La:l.i.ja.Xa;this.I.collapse(b,a,c,d)}Ip(b,a,c,d){c=c==l.i.ja.Xa?l.i.ja.La:l.i.ja.Xa;this.I.Ip(b,a,c,d)}Mf(b,a,c,d){c=c==l.i.ja.Xa?l.i.ja.La:l.i.ja.Xa;this.I.Mf(b,a,c,d)}bd(b,a,c){return this.I.bd(b,a,c)}save(b,a,c,d,g){return this.I.save(b,a,c,d,g)}E0(){return null}get sj(){return this.I.sj}set sj(b){}W1(){return!1}JV(){}H1(){return!1}x4(){}}
h.T8=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.oO{constructor(){super()}}h.Dla=f})(l.sf||(l.sf={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){void 0!==b.A&&(this.A=b.A);void 0!==b.caption&&(this.caption=b.caption);void 0!==b.Bi&&(this.Bi=b.Bi);void 0!==b.parent&&(this.parent=b.parent);void 0!==b.fc&&(this.fc=b.fc);void 0!==b.level&&(this.level=b.level);void 0!==b.ordinal&&(this.ordinal=b.ordinal);void 0!==b.Sg&&(this.Sg=b.Sg);void 0!==b.Zb&&(this.Zb=b.Zb);void 0!==b.vf&&(this.vf=b.vf);void 0!==b.value&&(this.value=b.value);void 0!==b.Ue&&(this.Ue=b.Ue)}get X1(){return void 0!==
this.parent||void 0!==this.Zb||void 0!==this.Ue||void 0!==this.Rg||void 0!==this.vf||void 0!==this.Sg?!1:!0}clone(){return new f(this)}}h.ae=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{pB(b){if(this.hk(b))return this.data[b]}Ot(b,a){this.data||(this.data={});this.data[b]=a}dra(){this.data&&delete this.data._descendants_}hk(b){return this.data&&this.data.hasOwnProperty(b)}zb(b){for(var a in b)null!=this[a]&&(this[a]=b[a])}}h.n9=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.n9{constructor(b,a){super();this.A=b;this.caption=a}set A(b){this.vK=b}get A(){return this.vK}set caption(b){e.v(b)&&(b="");b=""+b;""===b.trim()?this.vc=e.model.B.j.zl:this.vc=b}get caption(){return e.model.Tb.valid(this.vc)?this.vc:e.model.Tb.validate(this.vc)}get label(){return this.hk("_label")?this.pB("_label"):this.caption}set label(b){""!=b.trim()&&this.Ot("_label",b)}get p1(){return this.hk("_label")}toString(){return`{uniqueName: "${this.A}", caption: "${this.caption}"`}Qa(){var b=
{};b.uniqueName=this.A;b.caption=this.caption;return b}}h.JE=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a,c){super(b,a);this.w9=!1;this.XN=c}get XN(){return this.asa}set XN(b){this.asa=b}get active(){return this.w9}set active(b){this.w9=b}}h.xW=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a=""){super(b,a);this.yg=l.i.Lc.pv;this.KQ=0;this.Or=this.iQ=this.Gt="";this.tB=!0;this.Gh=f.RI;this.XQ=null;this.fg=[];this.El=new u.HP(!e.model.C.F.jw);this.Jv=new u.HP(!e.model.C.F.jw);this.St=[];this.Rq=[];this.xB=!1;this.ly={};this.nn=new e.tb;this.GY=!1;this.pQ=!0;this.FQ=this.EQ=!1;this.QQ=[];this.gQ=[];this.qy=[];this.sB={};this.PQ={};this.Ij=null;this.cache=[];this.Vk=[];this.FF=[]}set si(b){this.lY=b}get si(){return this.lY}get type(){return this.yg}set type(b){this.yg=
b}get origin(){return this.KQ}set origin(b){this.KQ=b;this.GY=1==(b&1)}get Qm(){return this.El.length}set Qm(b){}get Ri(){return this.El.length}get Wd(){return this.xB}set Wd(b){this.xB=b}get Mc(){return this.Gt}set Mc(b){"undefined"==b?this.Gt="":this.Gt=b}get Mh(){return this.tB}set Mh(b){}get mapping(){return l.Ra.V().ga.mapping}get ta(){return this.nn}set ta(b){}get Cf(){return this.dZ}set Cf(b){this.dZ=b}get description(){return this.Ij}set description(b){this.Ij=b}get HM(){const b=2<this.ta.length&&
this.type!==l.i.Lc.Sa?this.ta.ea(1).A:this.si.type===l.i.BA.OA?this.si.A:this.A;return e.model.Va.V().ha.ga.mapping.Ha(b,"filters")}Hh(b){b.hierarchy=this;this.tB||b.wb++;this.nn.Ta(b.A,b);this.ly[b.A]=[]}Dsa(b){b.hierarchy=this;this.tB||b.wb++;this.nn.DK(b.A,b,1);for(var a=2;a<this.nn.length;a++){var c=this.nn.ea(a);c&&c.wb++}this.ly[b.A]=[]}uu(b){return this.nn.getItem(b)}get mg(){return this.As||(this.Mh?2<this.ta.length:1<this.ta.length)}set mg(b){}get Se(){return"[Measures]"==this.A}set Se(b){}get As(){return this.EQ}set As(b){this.EQ=
b}get FM(){return this.FQ}set FM(b){this.FQ=b}get sS(){return this.pQ}set sS(b){this.pQ=b}Xy(b){null!=b&&(b.Rg=!0,this.ly[b.level.A].push(b.ordinal))}Y_(b){b.Rg=!1;this.ly[b.level.A].splice(b.ordinal,1);b=b.ww;for(var a=0;a<b.length;a++){var c=this.ya(b[a]);c.Rg&&this.Y_(c)}}CC(b){return this.ly[b.A]}get Vba(){for(var b=1;b<this.ta.length;b++){var a=this.ta.ea(b);if(!(this.oc&&a.wb<this.oc.wb)&&0===this.CC(a).length)return b}return 1}set Vba(b){}Osa(b){var a=void 0===b.ordinal?this.El.add(b.A):this.El.add(b.A,
b.ordinal);if(e.v(b.parent))if(e.v(b.Bi))var c=this.Ad;else c=this.Ib(b.Bi),null!==c?this.Rq[a]=c.ordinal:c=this.Ad;else c=b.parent,this.Rq[a]=c.ordinal;void 0!==b.fc&&(this.St[a]=b.fc);void 0!==b.caption&&b.caption!==b.A&&this.Jv.add(b.caption,a);c.W(a);this.wV(c);this.cache=[];this.Vk=[];return a}YC(){return new h.JI(this)}lc(b){if(b.X1){var a=this.Osa(b);return this.ya(a)}var c=this.YC();void 0!==b.parent&&(c.parent=b.parent);void 0===b.Zb&&void 0===c.parent&&(c.parent=e.ia(b.Bi)?this.Ad:this.Ib(b.Bi));
c.parent&&(e.v(c.level)||c.level.wb<=c.parent.level.wb)&&(a=c.parent.level.wb+1,a=new h.it(c.parent.level.A+" "+a,this.caption+" "+a,a),this.Hh(a),this.As=!0);void 0!==b.ordinal?(this.El.add(b.A,b.ordinal),c.ordinal=b.ordinal):(a=this.El.add(b.A),c.ordinal=a);void 0!==b.fc&&(this.St[c.ordinal]=b.fc,c.fc=b.fc);this.fg[c.ordinal]=c;void 0!==b.caption&&this.Jv.add(b.caption,c.ordinal);null!=c.parent&&(c.parent.W(c),this.Rq[c.ordinal]=c.parent.ordinal,this.wV(c.parent));e.v(b.Sg)||(c.Sg=b.Sg);this.cache=
[];this.Vk=[];return c}wV(b){this.fg[b.ordinal]=b}nha(b){null!=b&&void 0!==b.ordinal&&(void 0!==b.fc&&(this.St[b.ordinal]=b.fc),void 0!==b.caption&&this.Jv.add(b.caption,b.ordinal),void 0!==b.A&&this.El.add(b.A,b.ordinal))}wS(b){b=this.Jv.find(b);return-1===b?null:this.ya(b)}Ib(b){b=this.iz(""+b);return-1<b?this.ya(b):null}iz(b){var a=this.El.find(b);-1===a&&this.mg&&(a=this.El.find(`[${b}]`));return a}ya(b){if(void 0===this.fg[b]){var a=this.YC();a.ordinal=b;a.fc=this.St[b];a.parent=this.Rq[b]?this.ya(this.Rq[b]):
this.Ad;return a}return this.fg[b]}cM(b){return this.St[b]}vu(b){if(e.model.C.F.br&&(null===b||"null"===b))return b=this.iz("null"),0<=b?this.ya(b):null;"number"!==typeof b&&(b=parseFloat(b));if(isNaN(b))for(var a=1;a<this.St.length;a++)if(isNaN(this.St[a]))return this.ya(a);b=this.St.indexOf(b);return 0<=b?this.ya(b):null}vs(b){for(var a=[],c,d=0;d<b.length;d++)c=this.ya(b[d]),e.v(c)||e.ia(c.qj)||a.push(c.qj);return a}V0(b){return this.El.get(b)}XC(b){var a=this.Jv.get(b);void 0===a&&(a=this.El.get(b));
e.model.Tb.valid(a)||(a=e.model.Tb.validate(a));return a}bha(b){let a;a=this.type!==l.i.Lc.Sa||this.ta.ea(1).type!==l.i.ib.Sa&&this.ta.ea(1).type!==l.i.ib.Jc?this.ta.ea(1).type===l.i.ib.dc?this.rIa(b):this.iz(b):this.qIa(b);-1===a&&!e.v(b)&&0<b.indexOf(".")&&(b=b.substring(b.lastIndexOf(".")+1),a=this.iz(b));return a}qIa(b){if(e.model.C.F.br&&"null"===b)b=null;else if(8>b.length||/\D+/.test(b.slice(1))){var a=this.ta.ea(1).type===l.i.ib.Jc?e.model.C.F.rk:e.model.C.F.Ep;a=this.mapping.Ha(this.A,"format",
a);b=new e.Zg(b,{wy:!1,format:a});b.Aj(u.zh.lg(a));b=b.getTime()}else b=parseInt(b);b=this.vu(b);return null===b?-1:b.ordinal}rIa(b){if(e.model.C.F.br&&"null"===b)var a=null;else if(0<=b.indexOf(":")){if(b=b.split(":"),3==b.length){a=0;if(0<=b[0].indexOf("d")){var c=b[0].split("d");const d=parseInt(c[0]);isNaN(d)||(a+=86400*d);c=parseInt(c[1]);isNaN(c)||(a+=3600*c)}else c=parseInt(b[0]),isNaN(c)||(a+=3600*c);c=parseInt(b[1]);isNaN(c)||(a+=60*c);b=parseInt(b[2]);isNaN(b)||(a+=b)}}else a=parseFloat(b);
b=this.vu(a);return null===b?-1:b.ordinal}XZ(){this.Zf=f.RI;this.tK=null}YZ(){this.cache=[]}get Zf(){return this.Gh}set Zf(b){this.Gh=b}get SV(){return this.XQ}set SV(b){this.XQ=b}sort(){return this.Yj(this.Ad)}Yj(b,a=!0,c=""){if(null==b)return[];l.i.za.Ug(c)||(c=this.Gh);if(a){if(null!=this.Vk[b.ordinal]){if(null!=this.Vk[b.ordinal][c])return this.Vk[b.ordinal][c];if(!this.mg){if(c==l.i.za.Kc&&null!=this.Vk[b.ordinal][l.i.za.ic])return a=this.Vk[b.ordinal][l.i.za.ic].slice(),this.Vk[b.ordinal][l.i.za.Kc]=
a.reverse(),this.Vk[b.ordinal][l.i.za.Kc];if(c==l.i.za.ic&&null!=this.Vk[b.ordinal][l.i.za.Kc])return a=this.Vk[b.ordinal][l.i.za.Kc].slice(),this.Vk[b.ordinal][l.i.za.ic]=a.reverse(),this.Vk[b.ordinal][l.i.za.ic]}}}else if(null!=this.cache[b.ordinal]){if(null!=this.cache[b.ordinal][c])return this.cache[b.ordinal][c];if(!this.mg){if(c==l.i.za.Kc&&null!=this.cache[b.ordinal][l.i.za.ic])return a=this.cache[b.ordinal][l.i.za.ic].slice(),this.cache[b.ordinal][l.i.za.Kc]=a.reverse(),this.cache[b.ordinal][l.i.za.Kc];
if(c==l.i.za.ic&&null!=this.cache[b.ordinal][l.i.za.Kc])return a=this.cache[b.ordinal][l.i.za.Kc].slice(),this.cache[b.ordinal][l.i.za.ic]=a.reverse(),this.cache[b.ordinal][l.i.za.ic]}}var d=this.Gh;this.Gh=c;if(this.Gh==l.i.za.fd){var g=a?b.ww:b.children;g=g.slice();0<g.length&&this.ya(g[0]).Zb&&g.splice(0,1)}else g=this.TV(b,a);a?(null==this.Vk[b.ordinal]&&(this.Vk[b.ordinal]=[]),this.Vk[b.ordinal][c]=g):(null==this.cache[b.ordinal]&&(this.cache[b.ordinal]=[]),this.cache[b.ordinal][c]=g);this.Gh=
d;return g}yra(b){for(var a=[[]],c,d=0;d<b.length;d++)0!==b[d]&&(c=this.Rq[b[d]],void 0===c?a[0].push(b[d]):(void 0===a[c]&&(a[c]=[]),a[c].push(b[d])));return a}Vra(b,a){if(e.v(this.tK)||void 0===this.tK[b.ordinal]||b.children.length!=this.tK[b.ordinal].length){var c=this.El.sort();this.tK=this.yra(c)}b=this.tK[b.ordinal];c=[];for(var d=0;d<b.length;d++){var g=this.ya(b[d]);c.push(g.ordinal);a&&!g.Oh&&(g=this.Yj(g),0<g.length&&(c=c.concat(g)))}return c}fua(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.ya(b.children[a]).caption.split(" ")[0];if(-1===e.model.B.j.Hr.indexOf(c)&&-1===e.model.B.j.Vx.indexOf(c))return!1}var d=b.hierarchy.ta.indexOf(b.level.A);if(b.hierarchy.ta.length<d+2)return!1;b.hierarchy.ta.ea(d+1).type=l.i.ib.$g;return!0}catch(g){}return!1}TV(b,a){var c=this.ta.ea(b.level.wb+1),d=c&&c.type===l.i.ib.Dl,g=c&&c.type===l.i.ib.iX,k=c&&c.type===l.i.ib.ut,m=c&&c.type===l.i.ib.$g,n=c&&c.type===l.i.ib.QJ,p=
c&&(c.type===l.i.ib.$m||c.type===l.i.ib.fn),t=c&&c.type===l.i.ib.PO,r=c&&c.type===l.i.ib.mP,w=c&&c.type===l.i.ib.jb,y=c&&c.type===l.i.ib.dc||c&&c.type===l.i.ib.Sa,A=c&&c.type===l.i.ib.Jc,C=this.SV===l.i.za.Aoa;if(!(k||m||n||y||p||t||r||w||A||0!==this.to.length||e.Fg(this.ex))){if(1E3<b.children.length)return this.Vra(b,a);this.fua(b)&&(m=!0)}var B=this.Hia(b.children);e.Fg(this.ex)?B=this.lia(B):k||m||n||p||t||r||A||g||d?B=this.KJa(B,c?c.type:-1):y?0<this.to.length?B.sort((I,L)=>this.qwa(I,L)):B=
this.HJa(B):0<this.to.length?B.sort((I,L)=>this.pwa(I,L)):w?(this.Gh===l.i.za.ic&&e.Ja.sort(B,e.Ja.Ki,I=>I.fc),this.Gh===l.i.za.Kc&&e.Ja.sort(B,e.Ja.ep|e.Ja.Ki,I=>I.fc)):C?B.sort(this.IDa):(this.Gh===l.i.za.ic&&e.Ja.sort(B,e.Ja.Lx,I=>I.caption),this.Gh===l.i.za.Kc&&e.Ja.sort(B,e.Ja.ep|e.Ja.Lx,I=>I.caption));c=[];g=B.length;for(k=0;k<g;k++)c.push(B[k].ordinal),a&&!b.Oh&&(d=this.Yj(B[k],a),0<d.length&&(c=c.concat(d)));return c}Hia(b){for(var a=[],c=0;c<b.length;c++)a.push(this.ya(b[c]));return a}KJa(b,
a){a===l.i.ib.$g?b=this.JJa(b):a===l.i.ib.$m||a===l.i.ib.fn?b=this.LJa(b):a===l.i.ib.ut||a===l.i.ib.iX||a===l.i.ib.Dl?(this.Zf===l.i.za.ic&&e.Ja.sort(b,e.Ja.Lx,c=>c.caption),this.Zf===l.i.za.Kc&&e.Ja.sort(b,e.Ja.ep|e.Ja.Lx,c=>c.caption)):(this.Zf===l.i.za.ic&&e.Ja.sort(b,e.Ja.Ki,c=>c.fc),this.Zf===l.i.za.Kc&&e.Ja.sort(b,e.Ja.ep|e.Ja.Ki,c=>c.fc));return b}JJa(b){for(var a=[],c=[],d=0;d<b.length;++d)this.ara(b[d].caption)?c.push(b[d]):a.push(b[d]);this.Zf===l.i.za.ic&&e.Ja.sort(a,e.Ja.Lx,g=>g.caption);
this.Zf===l.i.za.Kc&&e.Ja.sort(a,e.Ja.ep|e.Ja.Lx,g=>g.caption);c.sort((g,k)=>this.zwa(g,k));return c.concat(a)}LJa(b){for(var a=[],c=[],d=0;d<b.length;++d)this.bra(b[d].caption)?c.push(b[d]):a.push(b[d]);this.Zf===l.i.za.ic&&e.Ja.sort(a,e.Ja.Lx|e.Ja.Ki,g=>g.caption);this.Zf===l.i.za.Kc&&e.Ja.sort(a,e.Ja.ep|e.Ja.Lx|e.Ja.Ki,g=>g.caption);c.sort((g,k)=>this.LKa(g,k));return c.concat(a)}ara(b){return-1!==e.model.B.j.Hr.indexOf(b)||-1!==e.model.B.j.Vx.indexOf(b)}bra(b){return-1!==e.model.B.j.dB.indexOf(b)||
-1!==e.model.B.j.eB.indexOf(b)}zwa(b,a){var c=this.Zf===l.i.za.ic?e.model.B.j.Hr.indexOf(b.caption):e.model.B.j.Hr.indexOf(a.caption);-1===c&&(c=this.Zf==l.i.za.ic?e.model.B.j.Vx.indexOf(b.caption):e.model.B.j.Vx.indexOf(a.caption));var d=this.Zf===l.i.za.ic?e.model.B.j.Hr.indexOf(a.caption):e.model.B.j.Hr.indexOf(b.caption);-1===d&&(d=this.Zf===l.i.za.ic?e.model.B.j.Vx.indexOf(a.caption):e.model.B.j.Vx.indexOf(b.caption));return c>d?1:c<d?-1:0}LKa(b,a){var c=this.Zf===l.i.za.ic?e.model.B.j.dB.indexOf(b.caption):
e.model.B.j.dB.indexOf(a.caption);-1===c&&(c=this.Zf===l.i.za.ic?e.model.B.j.eB.indexOf(b.caption):e.model.B.j.eB.indexOf(a.caption));var d=this.Zf===l.i.za.ic?e.model.B.j.dB.indexOf(a.caption):e.model.B.j.dB.indexOf(b.caption);-1===d&&(d=this.Zf===l.i.za.ic?e.model.B.j.eB.indexOf(a.caption):e.model.B.j.eB.indexOf(b.caption));return c>d?1:c<d?-1:0}HJa(b){this.Gh===l.i.za.ic&&e.Ja.sort(b,e.Ja.Ki,a=>a.fc);this.Gh===l.i.za.Kc&&e.Ja.sort(b,e.Ja.Ki|e.Ja.ep,a=>a.fc);return b}XS(b){return e.model.C.F.jw?
this.to.indexOf(b):this.to.indexOf(b.toLocaleLowerCase())}pwa(b,a){const c=this.Gh===l.i.za.ic?this.XS(b.caption):this.XS(a.caption);b=this.Gh===l.i.za.ic?this.XS(a.caption):this.XS(b.caption);return c>b?1:c<b?-1:0}qwa(b,a){const c=this.Gh===l.i.za.ic?this.to.indexOf(b.fc.toString()):this.to.indexOf(a.fc.toString());b=this.Gh===l.i.za.ic?this.to.indexOf(a.fc.toString()):this.to.indexOf(b.fc.toString());return c>b?1:c<b?-1:0}lia(b){if(e.Fg(this.ex)){var a=this.Gh===l.i.za.Kc?-1:1;b.sort((c,d)=>this.ex(c.caption,
d.caption)*a)}return b}IDa(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}Vu(b){b=this.nn.getItem(b).wb;for(var a=[],c=this.sort(),d=0;d<c.length;d++){var g=this.ya(c[d]);g&&g.level.wb===b&&a.push(c[d])}return a}get filter(){e.v(this.Ov)&&(this.Ov=new e.model.hb.JA(this));return this.Ov}set filter(b){this.Ov=b;this.FF=[]}get gb(){return 0<
this.FF.length?this.FF:this.FF=this.filter.mz||this.filter.Qw||this.filter.tM||this.filter.tT?this.filter.Nxa():this.filter.Pj()}set gb(b){this.FF=b}eu(){this.filter.clear();this.gb=[]}eC(){this.filter.eC();this.gb=[]}Ixa(){for(var b=[],a=this.gb,c=0;c<a.length;c++){var d=this.ya(a[c]);1===d.level.wb&&b.push(d.ordinal)}return b}set wm(b){""!==b&&!e.v(b)||this.Se?this.Or=b:(this.Or=this.A+".[(All)]",this.Hh(new h.it(this.A,this.caption+" (All)")),this.lc(new h.ae({A:this.caption+" (All)",Zb:!0})),
this.tB=!1)}get wm(){return this.Or}vm(b="(Total)"){return b}get Ad(){this.bY||(this.bY=this.Ib(this.Or),this.Xy(this.bY));return this.bY}set Ad(b){}get ms(){return this.iQ}set ms(b){this.iQ=b}pw(){this.paa(this.T3);this.filter.pw()}Saa(){if(0<this.qy.length){for(var b=0;b<this.qy.length;b++){var a=this.ya(parseInt(this.qy[b]));null==a||a.Rg||this.Xy(a)}this.qy=[]}}set T3(b){this.PQ=b}get T3(){return this.PQ}set yga(b){this.QQ=b}get yga(){return this.QQ}set to(b){this.YZ();this.gQ=b}get to(){return this.gQ}set ev(b){this.qy=
b}get ev(){return this.qy}set groups(b){this.sB=b}get groups(){return this.sB}paa(b){if(this.groups)for(var a in this.groups)this.SN(a);for(a in b)this.X$(a,b[a])}SN(b){var a=this.Ib(this.vm("Others"));if((b="string"==typeof b?this.Ib(this.vm(b)):b)&&a){var c,d=b.children;for(c=0;c<d.length;c++){var g=this.ya(d[c]);a.W(g);this.Rq[g.ordinal]=a.ordinal}this.Ad.removeChild(b.ordinal);this.fg[b.ordinal]=null;delete this.sB[b.caption];if(1==this.Vu(this.kz.A).length){d=a.children;for(c=0;c<d.length;c++)g=
this.ya(d[c]),this.Ad.W(g),this.Rq[g.ordinal]=this.Ad.ordinal;this.Ad.removeChild(a.ordinal);this.fg[a.ordinal]=null;this.nn=this.nn.splice(1,1);for(c=1;c<this.nn.length;c++)this.nn.ea(c).wb--}this.cache=[];this.Vk=[]}}X$(b,a){null!=this.groups[b]&&this.SN(b);if(null==this.kz){var c=new h.it(this.caption+".groups","Groups",1);c.Sg=!0;this.Dsa(c);var d=this.Ad.children.slice(0),g=this.lc(new h.ae({A:"others",caption:"Others"}));for(c=0;c<d.length;c++){var k=this.ya(d[c]);this.Ad.removeChild(k.ordinal);
g.W(k.ordinal);k.parent=g;this.Rq[k.ordinal]=g.ordinal}}else this.ta.ea(1);d=this.lc(new h.ae({A:b,Sg:!0}));this.sB[b]=[];for(c=0;c<this.El.length;c++)g=this.ya(c),g.hierarchy=this,!g.Zb&&-1<a.indexOf(g.ordinal)&&(g.Sg?this.SN(g):(g.parent&&g.parent.removeChild(g.ordinal),d.W(g),this.sB[b].push(g.ordinal),this.Rq[g.ordinal]=d.ordinal));for(var m in this.groups)this.groups.hasOwnProperty(m)||(g=this.Ib(this.vm(m)))&&0==g.children.length&&this.SN(g);this.Xy(d);this.cache=[];this.Vk=[]}get kz(){for(var b=
0;b<this.ta.length;b++)if(this.ta.ea(b).Sg)return this.ta.ea(b);return null}set kz(b){}get nU(){for(var b=new e.tb,a=0;a<this.nn.length;a++){var c=this.nn.ea(a).Ue;b=b.concat(c)}return b}set nU(b){}set gg(b){this.TJ=b}get gg(){return this.TJ}set oc(b){}get oc(){return null!=this.TJ?this.uu(this.TJ):null}get ex(){return this.Hra}set ex(b){this.YZ();this.Hra=b}get j1(){return e.Fg(this.ex)||0<this.to.length}get bs(){for(var b=[],a=0;a<this.Ri;a++)b.push(a);return b}Qa(){var b={};b.uniqueName=this.A;
b.dimensionName=this.si.A;b.activeLevelName=this.gg;b.caption=this.caption;b.filterEnabled=this.sS;b.sortName=this.Zf;b.sortAs=this.SV;b.type=this.type;b.groups=this.groups;b.customSorting=this.to;this.filter.wh&&!this.filter.zea&&(b.filter=this.filter.Qa());void 0!==this.Cf&&(b.showTotals=this.Cf);return b}bj(){const b={};b.caption=this.caption;b.dimensionCaption=this.si.caption;b.dimensionUniqueName=this.si.A;b.folder=this.Mc;b.label=this.label;if(2<this.ta.length){b.levels=[];for(let a=1;a<this.ta.length;a++)b.levels.push(this.ta.ea(a).Qa())}b.sort=
this.Gh;b.uniqueName=this.A;return b}static zb(b,a=null){var c=b.uniqueName;c=l.ye.Pg(c,b.caption);null==a&&(a=new l.local.O.bP(c));b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("groups")&&f.VAa(b.groups,a);b.hasOwnProperty("sortName")&&(a.Zf=b.sortName);b.hasOwnProperty("sortAs")&&(a.SV=b.sortAs);b.hasOwnProperty("filterEnabled")&&(a.sS=b.filterEnabled);b.hasOwnProperty("type")&&(a.type=b.type);b.hasOwnProperty("origin")&&(a.origin=b.origin);b.hasOwnProperty("folder")&&(a.Mc=
b.folder);b.hasOwnProperty("filter")&&(a.filter=e.model.hb.JA.zb(b.filter,a,!0));b.hasOwnProperty("defaultMemberName")&&(a.ms=b.defaultMemberName);b.hasOwnProperty("allMemberName")&&(a.wm=b.allMemberName);b.hasOwnProperty("activeLevelName")&&(a.gg=b.activeLevelName);b.hasOwnProperty("predefinedProperties")&&(a.yga=b.predefinedProperties);b.hasOwnProperty("customSorting")&&f.qba(b.customSorting,a);b.hasOwnProperty("sortOrder")&&f.qba(b.sortOrder,a);b.hasOwnProperty("showTotals")&&(a.Cf=!0===b.showTotals);
return a}static VAa(b,a){var c={},d;for(d in b){var g=b[d];c[d]=[];for(var k=0;k<g.length;k++){var m=l.ye.Ds(g[k]);(m=a.Ib(m))&&c[d].push(m.ordinal)}}a.Wd?a.paa(c):a.T3=c}static qba(b,a){a.to=[];for(var c=0;c<b.length;c++)a.to.push(l.ye.Ds(b[c]))}clone(){var b=new f(this.A);b.data=this.data;b.vK=this.vK;b.lY=this.lY;b.yg=this.yg;b.KQ=this.KQ;b.Gt=this.Gt;b.iQ=this.iQ;b.Or=this.Or;b.tB=this.tB;b.Gh=this.Gh;b.XQ=this.XQ;e.v(this.Ov)||(b.Ov=this.Ov.clone());b.fg=this.fg.slice();b.El=this.El.clone();
b.Jv=this.Jv.clone();b.St=this.St.slice();b.Rq=this.Rq.slice();var a={},c;for(c in this.ly)a[c]=this.ly[c].slice();b.ly=a;b.nn=this.nn.slice();b.GY=this.GY;b.pQ=this.pQ;b.Wd=this.Wd;b.EQ=this.EQ;b.FQ=this.FQ;b.QQ=this.QQ.slice();b.gQ=this.gQ.slice();b.qy=this.qy.slice();b.TJ=this.TJ;b.sB=this.sB;b.PQ=this.PQ;b.dZ=this.dZ;return b}getTimezoneOffset(){return null}}f.RI="asc";h.ht=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a="",c=0){super(b,a);this.yg=l.i.ib.$c;this.y$=new e.tb;this.Ij=null;this.PY=c}set wb(b){this.PY=b}get wb(){return this.PY}set type(b){this.yg=b}get type(){return this.yg}set Sg(b){this.Ara=b}get Sg(){return this.Ara}get Nu(){return this.Cc.ta.length-1==this.PY}set Nu(b){}set hierarchy(b){this.Cc=b}get hierarchy(){return this.Cc}get Ue(){return this.y$}set Ue(b){}get description(){return this.Ij}set description(b){this.Ij=b}zZ(b){this.y$.Ta(b.A,
b)}}h.it=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.n9{constructor(b){super();this.QY=1;this.p$=0;this.JQ=-1;this.Cc=b}get ordinal(){return this.QY}set ordinal(b){this.QY=b}get fc(){return this.p$}set fc(b){this.p$=b}get hierarchy(){return this.Cc}set hierarchy(b){}get parent(){return this.Rra}set parent(b){this.Rra=b}get root(){if(2>this.level.wb)return this;var b=this;do b=b.parent;while(1<b.level.wb);return b}set root(b){}set caption(b){}get caption(){var b=this.Cc.XC(this.ordinal);if(this.level.type===
l.i.ib.Sa||this.level.type===l.i.ib.Dj||this.level.type===l.i.ib.Jc||this.level.type===l.i.ib.dc){let a=this.Cc.cM(this.ordinal);e.v(a)?b=e.model.B.j.IW:this.level.type===l.i.ib.Sa||this.level.type===l.i.ib.Dj?(b=this.hierarchy.rk||this.hierarchy.mapping.Ha(this.hierarchy.A,"format",e.model.C.F.Ep),b=e.P.Bx(a,b,e.model.C.F.Mj)):this.level.type===l.i.ib.Jc?(b=this.hierarchy.rk||this.hierarchy.mapping.Ha(this.hierarchy.A,"format",e.model.C.F.rk),b=e.P.ON(a,b,e.model.C.F.Mj)):this.level.type===l.i.ib.dc&&
(b=this.hierarchy.rk||this.hierarchy.mapping.Ha(this.hierarchy.A,"format",e.model.C.F.Wo),b=e.P.Cx(a,b))}return b}get A(){return this.ZC()}set A(b){}ZC(){return this.Cc.V0(this.ordinal)}get qj(){var b=this.Cc.mg?2>this.level.wb?`[${this.ZC()}]`:this.ZC():`[${this.ZC()}]`;return e.model.C.F.jw?`${this.hierarchy.A}.${b}`:`${this.hierarchy.A}.${b}`.toLocaleLowerCase()}get level(){return e.v(this.parent)?this.hierarchy.ta.ea(0):this.hierarchy.ta.ea(this.parent.level.wb+1)}set level(b){}get Zb(){return null!=
this.hierarchy.Ad&&this.hierarchy.Ad.ordinal==this.ordinal}set Zb(b){}set Rg(b){this.Ot("_isDrilledDown_",b)}get Rg(){return this.hk("_isDrilledDown_")?this.pB("_isDrilledDown_"):!1}set Sg(b){this.Ot("_isGroup_",b)}get Sg(){return this.hk("_isGroup_")?this.pB("_isGroup_"):!1}get children(){return this.hk("_children_")?this.pB("_children_"):[]}set children(b){}set ww(b){}get ww(){if(this.hk("_descendants_"))return this.pB("_descendants_");var b=[];b.push(this.ordinal);if(0==this.zU)return b;for(var a=
this.children.length,c,d=0;d<a;d++)c=this.hierarchy.ya(this.children[d]),c.Oh?b.push(c.ordinal):0<c.zU?b=b.concat(c.ww):b.push(c.ordinal);0<b.length&&this.Ot("_descendants_",b);return b}set zU(b){}get zU(){if(-1<this.JQ)return this.JQ;if(!this.hk("_children_"))return this.JQ=0;for(var b=this.children.length,a=b,c=0;c<b;c++){var d=this.hierarchy.ya(this.children[c]);a+=d.zU}return a}VZ(){this.hk("_descendants_")&&this.dra();this.parent&&this.parent.VZ()}W(b){var a=this.children;b.constructor===Number?
a.push(b):a.push(b.ordinal);this.Ot("_children_",a);b.constructor!==Number&&(b.parent=this);this.JQ=-1;this.VZ()}removeChild(b){var a=this.children.indexOf(b);-1<a&&this.children.splice(a,1);this.Ot("_children_",this.children);this.hierarchy.ya(b).parent=null;this.VZ()}toString(){return this.A+" : "+this.QY}set Ue(b){this.Ot("_properties_",b)}get Ue(){this.hk("_properties_")||(this.Ue=new e.tb);return this.pB("_properties_")}setProperty(b,a){this.Ue.Ta(b,a)}tAa(b){return this.Ue.getItem(b)}get Oh(){return!this.hk("_children_")||
0==this.children.length}set Oh(b){}get vf(){return this.hk("_hasMissingChildren_")?this.pB("_hasMissingChildren_"):!1}set vf(b){this.Ot("_hasMissingChildren_",b)}set iaa(b){}get iaa(){return this.hierarchy.As?this.A:this.A+".[(Total"+(0==this.ordinal?"":this.ordinal)+")]"}Ot(b,a){super.Ot(b,a);this.X1||e.v(this.hierarchy)||this.hierarchy.wV(this)}get X1(){if(this.hk("_children_")||this.hk("_descendants_")||this.hk("_caption_")||this.hk("_isDrilledDown_")||this.hk("_hasMissingChildren_")||this.hk("_properties_")||
this.hk("_isGroup_"))return!1}Qa(){var b={};b.uniqueName=this.A;b.caption=this.caption;b.dimensionName=this.hierarchy.si.A;b.hierarchyName=this.hierarchy.A;b.hierarchyCaption=this.hierarchy.caption;this.parent&&(b.parentMember=this.parent.A);0<this.Ue.length&&(b.properties=this.Ue.Qa());return b}NG(b){return e.v(b)?!1:e.model.C.F.jw?this.A==b:this.A.toLocaleLowerCase()==b.toLocaleLowerCase()}}h.JI=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a=""){super(b,a);this.ec=this.Gt=this.wQ="";this.yg=l.i.Pa.jb;this.fk=this.vF=this.Qv="";this.Kb=[];this.sQ="";this.xQ=this.yQ=!1;this.LF="";this.d$=-1;this.DQ=this.CQ=!1;this.WP=!0;this.Ij=this.Uv=null;this.hn=[]}get kl(){return this.vc}set kl(b){}get Dg(){return this.wQ}set Dg(b){this.wQ=b}get Mc(){return this.Gt}set Mc(b){this.Gt=b}get mapping(){return l.Ra.V().ga.mapping}get format(){return this.Yh(this.A,this.aa).name}set format(b){this.ec=
b}get cl(){return this.yQ}set cl(b){this.yQ=b}get hidden(){return this.xQ}set hidden(b){this.xQ=b}get index(){return this.d$}set index(b){this.d$=b}get type(){return this.yg}get Km(){return this.Uv}set Km(b){this.Uv=b}set type(b){this.yg=b}get description(){return this.Ij}set description(b){this.Ij=b}get Zj(){if(this.Na||this.Tg)return[];const b=this.mapping.up;if(e.v(b))return this.yg!=l.i.Pa.jb&&this.yg!=l.i.Pa.dc?this.yg==l.i.Pa.Sa||this.yg==l.i.Pa.Jc?l.i.da.Aja:l.i.da.Dja:l.i.da.CI;const a=l.i.Pa.wE(this.yg);
return void 0!==b[a]?b[a]:void 0!==b.any?b.any:Array.isArray(b)?b:l.i.da.CI}set Zj(b){}set Op(b){this.Qv=b}get Op(){return this.Qv?this.Qv:0==e.model.C.F.xx?this.vc:l.i.da.NONE===this.fk?this.vc:f.O0(this.aa,this.vc)}static O0(b,a){switch(b){case l.i.da.Iq:return e.P.bind(e.model.B.j.Jpa,a);case l.i.da.xc:return e.P.bind(e.model.B.j.Cka,a);case l.i.da.st:return e.P.bind(e.model.B.j.Zoa,a);case l.i.da.Ej:return e.P.bind(e.model.B.j.bla,a);case l.i.da.xq:return e.P.bind(e.model.B.j.Eja,a);case l.i.da.wv:return e.P.bind(e.model.B.j.Mna,
a);case l.i.da.Cv:return e.P.bind(e.model.B.j.Fpa,a);case l.i.da.Dv:return e.P.bind(e.model.B.j.Hpa,a);case l.i.da.MAX:return e.P.bind(e.model.B.j.rna,a);case l.i.da.MIN:return e.P.bind(e.model.B.j.noa,a);case l.i.da.Ir:return e.P.bind(e.model.B.j.Roa,a);case l.i.da.lp:return e.P.bind(e.model.B.j.Moa,a);case l.i.da.Hq:return e.P.bind(e.model.B.j.Xoa,a);case l.i.da.Fq:return e.P.bind(e.model.B.j.Toa,a);case l.i.da.Gq:return e.P.bind(e.model.B.j.Voa,a);case l.i.da.Ji:return e.P.bind(e.model.B.j.Qma,
a);case l.i.da.en:return e.P.bind(e.model.B.j.lpa,a);case l.i.da.Yn:return e.P.bind(e.model.B.j.npa,a);case l.i.da.Rn:return e.P.bind(e.model.B.j.Yka,a);case l.i.da.an:return e.P.bind(e.model.B.j.$ka,a);case l.i.da.Wn:return e.P.bind(e.model.B.j.Ooa,a);case l.i.da.cn:return e.P.bind(e.model.B.j.Qoa,a)}return a}get xm(){if(""==this.vF)if(l.i.da.zT(this.aa))this.vF=this.aa;else if(-1!=this.Wc.indexOf(l.i.da.Iq))this.vF=l.i.da.Iq;else for(let b=0;b<this.Wc.length;b++)if(l.i.da.zT(this.Wc[b])){this.vF=
this.Wc[b];break}return this.vF}get aa(){return""===this.fk?this.Wc[0]:this.fk}set aa(b){b&&b.toLowerCase()!==this.fk?(b=b.toLowerCase(),l.i.da.Ty(b)&&(b=l.i.da.cz(b)),l.i.da.iA(b)||this.Na&&b==l.i.da.NONE?(this.vF="",this.fk=b,this.Na||-1!=this.Wc.indexOf(b)||(this.fk=this.Wc[0])):this.qV()):""==b&&this.qV()}qV(){this.Qv=void 0;this.fk=this.Wc[0]}set Wc(b){if(e.v(b))this.hn=this.Zj;else{for(var a=[],c=0;c<b.length;c++){var d=b[c].trim().toLowerCase();l.i.da.Ty(d)&&(d=l.i.da.cz(d));-1!==this.Zj.indexOf(d)&&
a.push(d)}this.hn=0<a.length?a:this.Zj}}get Wc(){return 0<this.hn.length?this.hn:this.Zj}get Xd(){return this.Kb}set Xd(b){this.Kb=b}get Na(){return!e.ia(this.ve)}set Na(b){}get ve(){return this.sQ}set ve(b){this.sQ=b}get gr(){return this.LF}set gr(b){this.LF=b}get Tg(){return!e.v(this.LF)&&""!=this.LF}get uz(){return this.CQ}set uz(b){this.CQ=b}get vz(){return this.DQ}set vz(b){this.DQ=b}get ho(){return this.WP}set ho(b){this.WP=b}Qa(){var b={};b.uniqueName=this.A;b.name=this.kl;this.Na&&(b.formula=
this.ve.trim());b.format=this.format;b.individual=this.cl;b.supportedAggregations=this.Zj;b.availableAggregations=this.Wc;b.aggregation=this.aa;b.caption=this.caption;b.label=this.label;b.originalCaption=this.kl;b.grandTotalCaption=this.Op;b.groupName=this.Dg;b.folder=this.Mc;b.type=this.type;b.kpi=this.gr;b.calculated=this.Na;b.calculateNaN=this.ho;b.hidden=this.hidden;return b}m1(){var b=new f("","");return this.cl!==b.cl||this.ve!==b.ve||this.format!==b.format||!1===this.Km||""!==this.aa&&(this.Op!==
f.O0(this.aa,this.vc)&&e.model.C.F.xx||!e.model.C.F.xx&&this.Op!==this.caption)?!1:!0}Yh(b,a,c=!1){let d=e.model.ec.gj.Yh(b,a);e.model.ec.gj.fya(b,a)||(d=e.model.ec.gj.Yh(b,""));c&&e.v(d.Xd.textAlign)&&this.type!=l.i.Pa.jb&&this.type!=l.i.Pa.dc&&this.type!=l.i.Pa.Jc&&(d=d.clone(),d.textAlign=e.model.ec.X.Gf.textAlign.LEFT);return d}clone(){var b=new f(this.A);this.iL(b);return b}iL(b){b.data=this.data;b.vc=this.vc;b.wQ=this.wQ;b.Gt=this.Gt;b.ec=this.ec;b.yg=this.yg;void 0!=this.Qv&&(b.Qv=this.Qv);
b.fk=this.fk;b.hn=this.hn.slice();b.Kb=this.Kb.slice();b.sQ=this.sQ;b.yQ=this.yQ;b.xQ=this.xQ;b.LF=this.LF;b.CQ=this.CQ;b.DQ=this.DQ;b.WP=this.WP;b.Ij=this.Ij}Tw(){return 0<this.Wc.length||this.Na||this.Tg}bj(){const b={};b.aggregation=this.aa;b.availableAggregations=this.Wc;b.availableAggregationsCaptions=l.i.da.EZ(this.Wc);b.caption=this.caption;if(b.calculated=this.Na)b.calculateNaN=this.ho,b.formula=this.ve.trim(),b.individual=this.cl;b.folder=this.Mc;b.format=this.format;b.grandTotalCaption=
this.Op;b.label=this.label;b.name=this.kl;b.uniqueName=this.A;b.groupName=this.Dg;return b}}h.Br=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a=""){super(b,a);this.Ij=null}get value(){return this.xK}set value(b){this.xK=b}get status(){return this.Wra}set status(b){this.Wra=b}get Ow(){return this.xra}set Ow(b){this.xra=b}get Dx(){return this.Yra}set Dx(b){this.Yra=b}get description(){return this.Ij}set description(b){this.Ij=b}}h.Pja=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.JE{constructor(b,a=""){super(b,a);this.Ij=null;this.Oa=new e.tb}set Oa(b){this.vb=b}get Oa(){return this.vb}get type(){return this.yg}set type(b){this.yg=b}set fD(b){this.a$=b}get fD(){return this.a$?this.a$:[]}get Yc(){return this.O}set Yc(b){this.O=b}get description(){return this.Ij}set description(b){this.Ij=b}oi(b){b.si=this;this.vb.Ta(b.A,b)}fh(b){return this.vb.getItem(b)}static zb(b,a=null){var c=b.uniqueName;c=l.ye.Pg(c,b.caption);null==
a&&(a=new l.local.O.V7(c));e.ia(b.caption)?a.caption=b.uniqueName:a.caption=b.caption;return a}}h.pA=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.j$=this.xB=!1;this.K9=new e.tb;this.mb=new e.tb;this.JY=new e.tb;this.VG=new h.wW}get Wd(){return this.xB}set Wd(b){this.xB=b}get Qu(){return this.j$}set Qu(b){this.j$=b}get nb(){return 0<this.xw.length-(this.xw.Hb("[Measures]")?1:0)||0<this.Ba.length||0<this.e2.length?!1:!0}get xw(){return this.K9}set xw(b){}get Ba(){return this.mb}set Ba(b){}set Uq(b){}get Uq(){for(var b=new e.tb,a=0;a<this.mb.length;a++){var c=this.mb.ea(a);c.Na&&
b.Ta(c.A,c)}return b}set qr(b){}get qr(){for(var b=[],a=0;a<this.mb.length;a++){var c=this.mb.ea(a);c.Na||b.push(c)}return b}set NH(b){}get NH(){var b=this.Kp("[Measures]");null==b&&(b=this.xZ());return b.fh("[Measures]")}xZ(){var b=new h.ht("[Measures]","Measures"),a=new h.pA("[Measures]","Measures");a.type=l.i.BA.fP;a.oi(b);this.Wt(a);return a}Wt(b){null==this.Kp(b.A)&&(b.Yc=this,this.xw.Ta(b.A,b))}Kp(b){return this.xw.getItem(b)}wc(b=!1){for(var a=new e.tb,c=0;c<this.xw.length;c++){var d=this.xw.ea(c);
if(b||d.type!=l.i.BA.fP)a=a.concat(d.Oa)}return a}fh(b){for(let a=0;a<this.xw.length;a++){const c=this.xw.ea(a);if(c.Oa.Hb(b))return c.Oa.getItem(b)}}lk(b){this.Ba.Ta(b.A,b)}gd(b){return this.Ba.getItem(b)}ZD(b){this.Ba.removeItem(b)}clear(){this.K9=new e.tb;this.mb=new e.tb;this.JY=new e.tb;this.Wd=!1}Ck(){return null}cf(){return null}EK(){}get e2(){return this.JY}set e2(b){}vZ(b,a){this.JY.Ta(b.A,b);if(0==e.ia(b.value)){var c=new h.Br(b.value,this.hz(b.value,b.caption,e.model.B.j.O7,a));c.Dg=e.model.B.j.Sx;
c.Mc=b.caption;c.type=l.i.Pa.jb;c.gr=b.A;this.lk(c)}0==e.ia(b.Ow)&&(c=new h.Br(b.Ow,this.hz(b.Ow,b.caption,e.model.B.j.K7,a)),c.Dg=e.model.B.j.Sx,c.Mc=b.caption,c.type=l.i.Pa.jb,c.gr=b.A,this.lk(c));0==e.ia(b.status)&&(c=new h.Br(b.status,this.hz(b.status,b.caption,e.model.B.j.M7,a)),c.Dg=e.model.B.j.Sx,c.Mc=b.caption,c.type=l.i.Pa.jb,c.gr=b.A,c.uz=!0,this.lk(c));0==e.ia(b.Dx)&&(a=new h.Br(b.Dx,this.hz(b.Dx,b.caption,e.model.B.j.N7,a)),a.Dg=e.model.B.j.Sx,a.Mc=b.caption,a.type=l.i.Pa.jb,a.gr=b.A,
a.vz=!0,this.lk(a))}hz(b,a,c,d){d=d.Ha(b,"caption");return e.v(d)?0==b.indexOf("[Measures]")?b.substring(12,b.length-1):a+" "+c:d}bx(b,a=null,c=!1){c=e.v(a)||c;var d=b.uniqueName;e.ia(b.formula)&&(d=l.ye.Pg(d,b.caption));e.v(a)&&(a=new l.local.O.W7(d));b.hasOwnProperty("type")&&(a.type="string"===typeof b.type?l.i.Pa.pya(parseInt(b.type)):b.type);if(c||a.Na)b.hasOwnProperty("formula")&&(a.ve=b.formula),b.hasOwnProperty("individual")&&(a.cl=b.individual),b.hasOwnProperty("calculateNaN")&&(a.ho=b.calculateNaN);
b.hasOwnProperty("supportedAggregations")&&(a.Zj=b.supportedAggregations);b.hasOwnProperty("availableAggregations")&&(a.Wc=b.availableAggregations);if(b.hasOwnProperty("aggregation")){if(b.aggregation!==l.i.da.NONE||l.Ra.V().ga.Gc||a.Na)a.aa=b.aggregation}else a.aa=a.Na?l.i.da.NONE:"";b.hasOwnProperty("format")&&(a.format=b.format,e.model.ec.gj.eI(b.format,a.A,a.aa));b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("name")&&(a.caption=b.name);b.hasOwnProperty("grandTotalCaption")&&
(a.Op=b.grandTotalCaption);b.hasOwnProperty("groupName")&&(a.Dg=b.groupName);b.hasOwnProperty("folder")&&(a.Mc=b.folder);b.hasOwnProperty("active")?a.Km=b.active:b.hasOwnProperty("uniqueName")&&b.hasOwnProperty("caption")&&b.uniqueName!=b.caption&&!b.hasOwnProperty("formula")&&(a.Km=!1);a.Na&&(!b.hasOwnProperty("caption")&&c&&(a.caption=a.A),b=new u.rJ,a.Xd=b.parse(a.ve));return a}lJa(b){this.mapping=b}}h.yW=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static LAa(b){switch(b){case l.i.qa.Tc:case l.i.qa.le:return new l.external.Eb.O.Ioa;case l.i.qa.ag:return new l.external.Qe.O.yla;case l.i.qa.API:return new l.external.pc.O.EI}return new l.local.O.cP}}h.Tpa=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.vb=new e.tb;this.ur=l.i.za.fd;this.Pt=this.SP=null;this.eK=[];this.oQ=[];this.mQ=[];this.lB=[];this.fZ=l.i.za.fd;this.GB=b}set Um(b){this.Pt=b;this.SP=null}get Um(){if(null!=this.SP)return this.SP;var b=null;if(null!=this.Pt){var a=0;b=[];for(var c=0;c<this.vb.length;c++){var d=this.Oa.ea(c);if(!d.Se){if(!this.Pt[a])break;if("number"==typeof this.Pt[a]){b=this.Pt;break}else{var g=this.Pt[a].toString().trim();if(!/\D/.test(g)){b=this.Pt;
break}}d=d.Ib(l.ye.Ds(this.Pt[a].toString().trim()));if(null!=d)b.push(d.ordinal);else if(this.Pt[a]){b=null;break}a++}}}return this.SP=b}set WV(b){this.Um=b}get WV(){var b=null,a=this.Um;if(null!=a){var c=0;b=[];for(var d=0;d<this.vb.length;d++){var g=this.Oa.ea(d);if(!g.Se){if(!a[c])break;g=g.ya(""===a[c]?0:parseInt(a[c]));if(null!=g)b.push(g.qj);else if(a[c]){b=null;break}c++}}}return b}get Ed(){return this.eK}set Ed(b){if(null==b)this.eK=[];else if(this.Ya)this.eK=b;else{this.eK=[];for(var a=
0;a<b.length;a++){var c=b[a];c[0]=-1;this.eK.push(c)}}}get kca(){for(var b=[],a,c,d,g,k,m=0;m<this.Ed.length;m++){a=this.Ed[m].slice(0);c=[];d=a.shift();g=null;-1<d&&(g=(g=this.vi(d))?g.Qa():null);for(var n=d=0;n<a.length;n++)k=this.Oa.ea(d),k.Se&&(d++,k=this.Oa.ea(d)),k&&k.ya(a[n])&&c.push(k.ya(a[n]).A),d++;c.unshift(g);b.push(c)}return b}oga(b){for(var a=[],c,d,g,k,m,n,p=0;p<b.length;p++){c=b[p].slice(0);d=[];k=-1;g=c.shift();g="string"==typeof g?new e.model.hb.ah(g):e.model.hb.ah.zb(g);m=0;if(0<
this.Oa.length)for(var t=0;t<c.length;t++){n=this.Oa.ea(m);if(e.v(n))return[];if(!n.Wd&&!n.Se)return this.oQ=b.slice(0),[];n.Se&&(k=(k=this.vi(g))?k.index:-1,m++,n=this.Oa.ea(m));if(n)if(n=n.bha(c[t]),0>n){d=null;break}else d.push(n);m++}null!==d&&(d.unshift(k),a.push(d))}return a}L3(){0<this.oQ.length&&(this.Ed=this.oga(this.oQ),this.oQ=[]);0<this.mQ.length&&(this.tf=this.nga(this.mQ),this.mQ=[])}get tf(){return this.lB}set tf(b){if(e.v(b)||0===b.length)this.lB=[];else{if(this.Ya)this.lB=b;else{this.lB=
[];for(var a=0;a<b.length;a++){var c=b[a];"string"===typeof c[0]?c[1]=-1:c[0]=-1;this.lB.push(c)}}this.T4(this.lB);this.Oha(this.lB)}}T4(b){b.sort((a,c)=>{if(a.length!==c.length)return 0;var d=a.length-1;a=a[d];c=c[d];return-1===a?1:-1===c||a<c?-1:a>c?1:0})}Oha(b){var a=this.vb.slice();a.removeItem("[Measures]");for(var c,d=0;d<b.length;d++){var g=b[d].slice(0);"string"===typeof g[0]&&(c=g.shift());var k=a.ea(g.length-3);if(null==k)break;var m=g[1];if("string"===typeof g[1]){var n=k.Ib(m);!n&&!isNaN(parseInt(g[1]))&&
8>g[1].length&&(m=parseInt(g[1]))}"number"===typeof m&&(n=k.ya(m),null==n||n.Zb||(m=n.A));-1==k.ev.indexOf(m)&&k.ev.push([c,m])}}get Yba(){for(var b=[],a,c,d,g,k,m,n,p=0;p<this.tf.length;p++){a=this.tf[p].slice(0);c=[];d="";k=null;"string"==typeof a[0]&&(d=a.shift());g=a.shift();m=a.shift();-1<g&&(k=(k=this.vi(g))?k.Qa():null);for(var t=g=0;t<a.length;t++)n=this.Oa.ea(g),n.Se&&(g++,n=this.Oa.ea(g)),(n=n.ya(a[t]))&&c.push(n.A),g++;c.unshift(m);c.unshift(k);c.unshift(d);b.push(c)}return b}nga(b){const a=
[];let c,d;for(var g,k,m,n,p,t=0;t<b.length;t++){var r=b[t].slice(0);c=[];g=-1;d=r.shift();m=r.shift();k="string"==typeof m?new e.model.hb.ah(m):e.model.hb.ah.zb(m);m=r.shift();n=0;if(0<this.Oa.length)for(var w=0;w<r.length;w++){p=this.Oa.ea(n);if(e.v(p))return[];p.Se&&(g=(g=this.vi(k))?g.index:-1,n++,p=this.Oa.ea(n));if(!p.Wd&&!p.Se)return this.mQ=b.slice(0),this.Oha(b),[];if(p){if(p.type!==l.i.Lc.Sa||p.ta.ea(1).type!==l.i.ib.Sa&&p.ta.ea(1).type!==l.i.ib.Jc)p=p.Ib(r[w]);else{if(e.model.C.F.br&&"null"===
r[w])var y=null;else if(8>r[w].length||/\D+/.test(r[w].slice(1))){y=p.ta.ea(1).type===l.i.ib.Jc?e.model.C.F.rk:e.model.C.F.Ep;y=p.mapping.Ha(p.A,"format",y);const C=new e.Zg(r[w],{wy:!1,format:y});C.Aj(u.zh.lg(y));y=C.getTime()}else y=parseInt(r[w]);p=p.vu(y)}p?c.push(p.ordinal):c.push(-1)}n++}if((p=this.Oa.ea(r.length-1))&&p.Wd&&null!==p.oc&&null==p.Ib(m))for(r=m.slice(1,-1).split("].[");1<r.length;){r.pop();var A=1<r.length?`[${r.join("].[")}]`:r[0];null==b.find(C=>C[c.length+2]===A)&&(k=c.slice(0,
-1),n=p.Ib(A),null!=n&&(k.push(n.ordinal),k.unshift(A),k.unshift(g),""!=d&&k.unshift(d),a.push(k)))}c.unshift(m);c.unshift(g);""!=d&&c.unshift(d);a.push(c)}return a}set $f(b){b=b.toLowerCase();this.fZ=b==l.i.za.ic||b==l.i.za.Kc?b:l.i.za.fd}get $f(){return this.fZ}get A(){return this.GB}set A(b){this.GB=b}get caption(){return this.vc}set caption(b){this.vc=b}get Oa(){return this.vb}set Oa(b){this.Ed=[];this.tf=[];this.Pt=null;this.fZ=l.i.za.fd;this.Yf=null;this.vb=b}get ie(){return this.vb.indexOf("[Measures]")}set ie(b){}get NH(){return this.vb.getItem("[Measures]")}set NH(b){}get Ya(){return-1<
this.ie}set Ya(b){}get depth(){for(var b=0,a=0;a<this.vb.length;a++){var c=this.vb.ea(a);b+=c.Vba}return b}set depth(b){}toString(){return"[Axis:"+this.GB+" ]"}static aDa(b,a,c){"[Measures]"!==b.A&&(c=c.Ba.getItem(b.A),void 0===c||c.vc===b.caption&&!a.hasOwnProperty("caption")||(c.vc!==b.caption?a.caption=c.vc:a.hasOwnProperty("caption")&&a.caption!==c.vc&&(c.vc=a.caption)))}static zb(b,a,c,d,g,k,m=null,n=!1){b=new f(b);m&&(b.vi=t=>m(t));b.Oa=new e.tb;if(a)for(let t=0;t<a.length;t++)if(null!=a[t].uniqueName){a[t].uniqueName=
l.ye.Pg(a[t].uniqueName,a[t].caption);let r=k.fh(a[t].uniqueName);if(null!=r){n&&(r=r.clone(),r.YZ(),r.filter.clear());this.aDa(r,a[t],k);h.ht.zb(a[t],r);if(r.Se&&b.A===l.i.ja.rt)continue;const w=e.v(a[t].levelName)?e.v(a[t].activeLevelName)?null:a[t].activeLevelName:a[t].levelName;r.gg=w;b.Oa.Ta(r.A,r)}}if(c){if(null!=c.measure){a="string"===typeof c.measure?new e.model.hb.ah(l.ye.Pg(c.measure)):e.model.hb.ah.zb(c.measure);var p=b.vi(a)}null!=p&&null!=c.tuple?b.nE(p,c.tuple,c.type):b.jOa=c}if(d&&
0<d.length){c=[];for(a=0;a<d.length;a++){k=d[a];n=[];0<k.length&&n.push(f.Zda(k[0]));for(p=1;p<k.length;p++)n.push(f.yfa(k[p]));c.push(n)}d=c}b.Ed=d?b.oga(d):[];if(g&&0<g.length){d=[];for(c=0;c<g.length;c++){a=g[c];k=[];0<a.length&&k.push(f.Zda(a[0]));for(n=1;n<a.length;n++)k.push(f.yfa(a[n]));d.push(k)}g=d}b.tf=g?b.nga(g):[];return b}static Zda(b){if("string"===typeof b){const a=parseInt(b);if(isNaN(a)||a.toString()!==b)return l.ye.Pg(b)}return b}static yfa(b){if("string"===typeof b){const a=parseInt(b);
if(isNaN(a)||a.toString()!==b)return l.ye.Ds(b)}return b}Qa(){for(var b={},a=[],c=0;c<this.Oa.length;c++){var d=this.Oa.ea(c).Qa();a.push(d)}b.hierarchies=a;this.$f==l.i.za.fd||e.v(this.Um)||e.v(this.Yf)||(b.sort={type:this.$f,tuple:this.WV,measure:{uniqueName:this.Yf.A,aggregation:this.Yf.aa}});return b}nE(b,a,c){this.Yf=b;this.Um=a;this.$f=c;0==a.length&&(this.ur=this.$f,this.at=this.Yf)}gC(){this.Um=this.Yf=null;this.ur=this.$f=l.i.za.fd;this.at=null}clone(){var b=new f(this.GB);b.caption=this.caption;
b.Oa=this.Oa.slice(0);b.at=this.at;b.ur=this.ur;b.Yf=this.Yf;b.Um=this.Um;b.$f=this.$f;b.Ed=this.Wq(this.Ed);b.tf=this.Wq(this.tf);return b}Wq(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a}}h.zr=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.Pr=new e.tb;this.mb=[];this.BF=this.P9=!1;this.oB=[];this.qQ=[];this.lQ=[];this.Rj={};this.z2=!0;this.Yc=b;this.Ut(new l.O.zr(l.i.ja.La));this.Ut(new l.O.zr(l.i.ja.Xa));this.Ut(new l.O.zr(l.i.ja.rt))}get axes(){return this.Pr}set axes(b){}Ut(b){this.Pr.Ta(b.A,b);b.Ya&&(this.gB=b)}ce(b){return this.Pr.getItem(b)}Txa(b){if(-1!=this.cc.Oa.indexOf(b))return this.cc;if(-1!=this.Rb.Oa.indexOf(b))return this.Rb;if(-1!=this.VH.Oa.indexOf(b))return this.VH}set cs(b){}get cs(){this.dja();
return this.gB}dja(){if(null==this.gB){for(var b=0;b<this.Pr.length;b++){var a=this.Pr.ea(b);if(a.Ya){this.gB=a;break}}null==this.gB&&(this.gB=this.ce(l.i.ja.Xa))}this.gB.Ya||(b=this.Yc.NH)&&this.gB.Oa.Ta(b.A,b)}get qr(){const b=[],a={};for(var c=0;c<this.mb.length;c++){var d=this.mb[c];d.Na||void 0!==a[d.A]||(b.push(d),a[d.A]=1)}return b}set qr(b){}get Uq(){for(var b=new e.tb,a=0;a<this.mb.length;a++){var c=this.mb[a];c.Na&&b.Ta(c.A,c)}return b}set Uq(b){}get Kf(){return this.mb}set Kf(b){this.Zz(b)}hd(){for(var b=
[],a=0;a<this.mb.length;a++){var c=this.mb[a];c.hidden||b.push(c)}return b}Zz(b){this.mb=b}vi(b){for(var a=0;a<this.mb.length;a++)if(b.A==this.mb[a].A&&(""==b.aa||b.aa===this.mb[a].aa))return this.mb[a];return null}WC(b){return b instanceof e.model.hb.ah?this.vi(b):isNaN(b)?null:this.mb[b]}sda(b,a){for(var c=0;c<this.mb.length;c++)if(b==this.mb[c].A&&(void 0==a||a==this.mb[c].aa))return c;return-1}wc(b=!0,a=!0,c=!1,d=!1){let g=new e.tb;for(let k=0;k<this.Pr.length;k++){const m=this.Pr.ea(k);g=g.concat(m.Oa)}b||
g.removeItem(this.Yc.NH.A);if(!a)for(b=0;b<this.ob.length;b++)g.removeItem(this.ob.Jh(b));if(c)for(c=0;c<this.mb.length;c++)b=this.mb[c],b.Na||b.hidden&&!d||(b=this.Yc.Ck(b.A),e.v(b)||g.Ta(b.A,b));return g}clear(){for(var b=0;b<this.Pr.length;b++)this.Pr.ea(b).Oa=new e.tb;this.mb=[]}get rows(){return this.ce(l.i.ja.La).Oa}set rows(b){var a=this.ce(l.i.ja.La);null==a&&(a=new h.zr(l.i.ja.La));a.Oa=b;null==b&&(a.Oa=new e.tb);a.vi=c=>this.WC(c);this.Ut(a)}get Ka(){return this.ce(l.i.ja.Xa).Oa}set Ka(b){var a=
this.ce(l.i.ja.Xa);null==a&&(a=new h.zr(l.i.ja.Xa));a.Oa=b;null==b&&(a.Oa=new e.tb);a.vi=c=>this.WC(c);this.Ut(a)}get ob(){return this.ce(l.i.ja.rt).Oa}set ob(b){var a=this.ce(l.i.ja.rt);null==a&&(a=new h.zr(l.i.ja.rt));a.Oa=b;null==b&&(a.Oa=new e.tb);this.Ut(a)}set yb(b){}get yb(){return this.cs.A==l.i.ja.La?this.rows.splice(this.cs.ie,1):this.rows}set Db(b){}get Db(){return this.cs.A==l.i.ja.Xa?this.Ka.splice(this.cs.ie,1):this.Ka}clone(){var b=new f(this.Yc);b.rows=this.rows.slice();b.Ka=this.Ka.slice();
b.ob=this.ob.slice();b.Zz(this.hd());b.Ng=this.Ng.slice(0);b.ih=this.ih.slice(0);b.bd=this.bd.slice(0);b.Ut(this.cc.clone());b.cc.vi=a=>this.WC(a);b.Ut(this.Rb.clone());b.Rb.vi=a=>this.WC(a);b.Qc=this.Qc;b.kd=this.kd;return b}static taa(b,a){if(null==a)return!0;var c=b.rows.length!=a.rows.length;if(!c)for(var d=0;d<b.rows.length;d++)if(b.rows.ea(d).A!=a.rows.ea(d).A){c=!0;break}return c}static saa(b,a){if(null==a)return!0;var c=b.Ka.length!=a.Ka.length;if(!c)for(var d=0;d<b.Ka.length;d++)if(b.Ka.ea(d).A!=
a.Ka.ea(d).A){c=!0;break}return c}static yta(b,a){if(null==a)return!0;b=b.hd();a=a.hd();var c=b.length!=a.length;if(!c)for(var d=0;d<b.length;d++)if(b[d].A!=a[d].A){c=!0;break}return c}static sta(b,a){void 0!==a.caption&&null!=b&&(b.caption=a.caption)}static eCa(b){return void 0===b.formula?!0:e.model.C.F.bu&&l.Ra.V().ga.Da===l.i.qa.Tc||!l.Ra.V().ga.Gc||l.Ra.V().ga.Da===l.i.qa.API}static zb(b,a,c=!1,d=!1){const g=new f(a);var k=[],m=a.wc(),n=b.Ba.map(r=>r.uniqueName);for(var p=0;p<b.Ba.length;p++)if(void 0!==
b.Ba[p].uniqueName&&this.eCa(b.Ba[p])){e.ia(b.Ba[p].formula)&&(a.gd(b.Ba[p].uniqueName)||(b.Ba[p].uniqueName=l.ye.Pg(b.Ba[p].uniqueName)));var t=a.Ba.getItem(b.Ba[p].uniqueName);if(null!=t||!e.ia(b.Ba[p].formula)){this.sta(m.getItem(b.Ba[p].uniqueName),b.Ba[p]);t=a.bx(b.Ba[p],t);t.hidden=!1;if(t.Na&&!a.Ba.Hb(t.A)){if(e.model.C.F.YN&&!g.IKa(t,n))continue;a.lk(t)}if(null==b.Ba[p].active||b.Ba[p].active)t=t.clone(),t.index=k.length,k.push(t)}e.model.C.F.rc&&!e.v(b.Ba[p].filter)&&(t=m.getItem(b.Ba[p].uniqueName),
e.v(t)||(t.filter=e.model.hb.JA.zb(b.Ba[p].filter,t)))}g.z5(k);k=l.O.zr.zb(l.i.ja.La,b.rows,b.Wj,b.Ew,b.Bw,a,r=>g.WC(r),c);m=l.O.zr.zb(l.i.ja.Xa,b.Ka,b.Lj,b.Dw,b.Aw,a,r=>g.WC(r),c);c=l.O.zr.zb(l.i.ja.rt,b.ob,null,[],[],a,null,c);g.rows=k.Oa;g.Ka=m.Oa;g.ob=c.Oa;g.Qc=b.Qc;g.kd=b.kd;if(l.Ra.V().ga&&l.Ra.V().ga.AH)if(g.Ng=b.Ng,e.v(b.ih))if(m.$f!=l.i.za.fd)g.ih=[{sort:m.$f,measure:m.Yf}];else for(n=b.rows.concat(b.Ka.concat(b.ob)),p=0;p<n.length;p++){if(c=n[p],!e.v(c.sortName)&&l.i.za.Ug(c.sortName)&&
c.sortName!=l.i.za.fd){g.ih=[{sort:c.sortName,measure:a.gd(c.uniqueName)}];break}}else g.ih=f.Bca(b.ih,a);g.bd=b.bd;g.Rj=b.Rj;g.Ut(k);g.Ut(m);g.dja();g.fja();d||g.sIa(g);return g}static Bca(b,a){if(e.v(b))return null;const c=[];for(var d=0;d<b.length;d++){var g=b[d];const k=a.gd(g&&g.uniqueName?g.uniqueName:g.measure.uniqueName);g=String(g.sort).toLowerCase();!e.v(k)&&l.i.za.Ug(g)&&c.push({measure:k,sort:g})}return c}fja(){const b=e.model.C.F.rc,a=this.mb.filter(k=>-1<l.i.da.nA.indexOf(k.aa));for(var c=
0;c<this.rows.length;c++){var d=this.rows.ea(c),g=d.filter.measure;b&&d.filter.xi&&!e.v(this.Yc.gd(g.A))||this.Vea(d,g,a)||d.filter.eC()}for(c=0;c<this.Ka.length;c++)d=this.Ka.ea(c),g=d.filter.measure,b&&d.filter.xi&&!e.v(this.Yc.gd(g.A))||this.Vea(d,g,a)||d.filter.eC()}Vea(b,a,c){c=c.find(d=>a&&d.A===a.A);return!(b.filter.xi&&null==this.gd(b.filter.measure.A)||a&&l.Ra.V().ga.Gc&&void 0!==c)}IKa(b,a){b=u.OO.qR(b.ve,b.A,a);return 0==b.Sw?(e.Za(b.errorMessage),!1):!0}sIa(b){if(null!=l.Ra.V().ua){var a=
l.Ra.V().ua.cs,c=b.cs;null!=a&&null!=c&&a.A!=c.A||null==a.Yf||null==b.vi(new e.model.hb.ah(a.Yf.A,a.Yf.aa,a.Yf.index))||null!=c.Yf||(c.Yf=a.Yf,c.WV=a.WV,c.Um=a.Um,c.$f=a.$f)}}n5(){const b=new e.model.hb.pp,a=this.ce(l.i.ja.La).Qa(),c=this.ce(l.i.ja.Xa).Qa();var d=this.ce(l.i.ja.rt).Qa();b.rows=a.hierarchies;b.Ka=c.hierarchies;b.ob=d.hierarchies;b.Ba=[];d=this.Yc.Ba;const g=this.hd();for(var k=0;k<g.length;k++){var m=g[k],n=m.Qa();n.caption=m.kl;n.active=!0;e.model.C.F.rc&&(m=this.Yc.Ck(m.A))&&m.filter.wh&&
!b.XBa(m.A)&&(n.filter=m.filter.Qa());b.Ba.push(n)}for(k=0;k<d.length;k++){const p=d.ea(k);p.hidden&&!p.Na||p.m1()||g.find(t=>t.A===p.A)||(n=p.Qa(),n.active=!1,b.Ba.push(n))}b.Wj=a.sort;b.Lj=c.sort;b.Qc=this.Qc;b.Ew=this.axes.getItem(l.i.ja.La).kca;b.Dw=this.axes.getItem(l.i.ja.Xa).kca;b.kd=this.kd;b.Bw=this.axes.getItem(l.i.ja.La).Yba;b.Aw=this.axes.getItem(l.i.ja.Xa).Yba;b.Ng=this.Ng;b.ih=this.Cca();b.bd=this.bd;b.Rj=this.Rj;return b}Cca(){if(e.v(this.ih))return null;const b=[];for(var a=0;a<this.ih.length;a++){var c=
this.ih[a];b.push({uniqueName:c.measure.A,sort:c.sort})}return b}Qa(){var b={};b.rows=[];for(var a=0;a<this.rows.length;a++){var c=this.rows.ea(a).Qa();b.rows[a]=c}b.columns=[];for(a=0;a<this.Ka.length;a++)c=this.Ka.ea(a).Qa(),b.columns[a]=c;b.pages=[];for(a=0;a<this.ob.length;a++)c=this.ob.ea(a).Qa(),b.pages[a]=c;b.measures=[];for(a=0;a<this.mb.length;a++)this.mb[a].hidden||(c=this.mb[a].Qa(),b.measures[a]=c);return b}L3(){for(var b=0;b<this.Pr.length;b++)this.Pr.ea(b).L3()}flatten(b=!1,a=!1){const c=
this.wc(!1);for(let d=0;d<this.mb.length;d++){if(this.mb[d].hidden)continue;const g=this.mb[d];if(a)g.type===l.i.Pa.xc?c.Hb(g.A)||c.Ta(g.A,g):c.Ta(g.A,g);else{let k=this.Ck(g.A);null!=k&&c.Ta(k.A,k);g.Na&&b&&(k=new h.ht(g.A,g.caption),c.Ta(g.A,k))}}return this.kta(c,this.Ng)}kta(b,a){const c=new e.tb;for(let d=0;d<a.length;d++){const g=a[d];b.Hb(g)&&(c.Ta(g,b.getItem(g)),b.removeItem(g))}for(a=0;a<b.length;a++)c.Ta(b.Jh(a),b.ea(a));return c}isEqual(b){if(null==b)return!1;var a=this.hd(),c=b.hd();
if(this.ob.length!=b.ob.length||this.rows.length!=b.rows.length||this.Ka.length!=b.Ka.length||a.length!=c.length)return!1;for(var d=0;d<this.ob.length;d++)if(this.ob.Jh(d)!=b.ob.Jh(d))return!1;for(d=0;d<this.rows.length;d++)if(this.rows.Jh(d)!=b.rows.Jh(d))return!1;for(d=0;d<this.Ka.length;d++)if(this.Ka.Jh(d)!=b.Ka.Jh(d))return!1;for(d=0;d<a.length;d++)if(a[d].A!=c[d].A||a[d].aa!=c[d].aa)return!1;return!0}Ck(b){return this.Yc.Ck(b)}cf(b){return this.Yc.cf(b)}get nb(){return 0==this.wc(!1).length&&
0==this.mb.length}cDa(){if(e.model.C.F.rc){this.rows=new e.tb;this.Ka=new e.tb;this.ob=new e.tb;for(var b=[],a=[],c=0;c<this.Yc.Ba.length;c++){var d=this.Yc.Ba.ea(c);a.push(d.A);d.type==l.i.Pa.xc?(d=this.Yc.Ck(d.A))&&this.rows.Ta(d.A,d):(d.index=0,b.push(d))}if(e.v(this.oB)||0==this.oB.length)this.oB=a;this.mb=b}else{for(c=0;c<this.Yc.Ba.length&&(d=this.Yc.Ba.ea(c),d.type!=l.i.Pa.jb?null==a&&(a=this.Yc.Ck(d.A)):null==b&&(b=d),null==a||null==b);c++);null==b?b=this.Yc.Ba.ea(0):null==a?(d=this.Yc.Ba.ea(0),
a=this.Yc.Ck(d.A)):null==a&&null==b&&0<this.Yc.Ba.length&&(b=this.Yc.Ba.ea(0),a=this.Yc.Ck(b.A));null!=a&&null!=b&&(this.ob=new e.tb,this.rows=new e.tb,this.Ka=new e.tb,this.rows.Ta(a.A,a),c=[],b.index=0,c.push(b),this.mb=c)}}get Qc(){return this.P9}set Qc(b){this.P9=b}get kd(){return this.BF}set kd(b){this.BF=b}wua(){this.cc.Ed=[];this.Rb.Ed=[]}vua(){this.cc.tf=[];this.Rb.tf=[]}get Ng(){null==this.oB&&(this.oB=[]);return this.oB}set Ng(b){this.oB=b}get ih(){null==this.qQ&&(this.qQ=[]);return this.qQ}set ih(b){this.qQ=
b}get bd(){null==this.lQ&&(this.lQ=[]);return this.lQ}set bd(b){this.lQ=b}get cc(){return this.axes.getItem(l.i.ja.La)}get Rb(){return this.axes.getItem(l.i.ja.Xa)}get VH(){return this.axes.getItem(l.i.ja.rt)}z5(b){void 0===b&&(b=this.mb);const a=[];if(this.Yc instanceof l.external.pc.O.EI&&0<e.model.va.Zm.Xc.length)for(var c=0;c<e.model.va.Zm.Xc.length;c++){var d=e.model.va.Zm.Xc.ea(c);if((d=u.nt.bM(d.Xd,this.Yc.Ba))&&0<d.length)for(var g=0;g<d.length;g++){var k=d[g];let n=this.Yc.Ba.getItem(k.A);
if(null!=n){var m=b.find(p=>p.A===n.A);if(null==m||!m.Na&&m.aa!=k.aa)m=n.clone(),m.aa=k.aa,m.hidden=!0,a.push(m)}}}c=null;for(d=0;d<b.length;d++)if(c=b[d],c.format=this.Yc.Ba.getItem(c.A).format,a.push(c),c.Na){if((g=u.nt.bM(c.Xd,this.Yc.Ba))&&0<g.length)for(k=0;k<g.length;k++){m=g[k];let n=this.Yc.Ba.getItem(m.A);if(null!=n){let p=b.find(t=>t.A===n.A);if(null==p||!p.Na&&p.aa!=m.aa)p=n.clone(),p.aa=m.aa,p.hidden=!0,a.push(p)}}this.Yc instanceof l.external.pc.O.EI&&(c.Xd=u.nt.hH(c.Xd,this.Yc.Ba))}this.Zz(a)}sDa(b){e.v(b)||
(this.Qc=b.Qc,this.kd=b.kd,f.taa(this,b)?(this.cc.Ed=this.YR(b.cc.Ed,this.OS(this.cc.Oa,b.cc.Oa)),this.cc.tf=this.YR(b.cc.tf,this.OS(this.cc.Oa,b.cc.Oa)+2)):(this.cc.Ed=this.Wq(b.cc.Ed),this.cc.tf=this.Wq(b.cc.tf)),f.saa(this,b)?(this.Rb.Ed=this.YR(b.Rb.Ed,this.OS(this.Rb.Oa,b.Rb.Oa)),this.Rb.tf=this.YR(b.Rb.tf,this.OS(this.Rb.Oa,b.Rb.Oa)+2)):(this.Rb.Ed=this.Wq(b.Rb.Ed),this.Rb.tf=this.Wq(b.Rb.tf)))}ZD(b,a){const c=[];for(let d=0;d<this.mb.length;d++)(this.mb[d].A!==b||this.mb[d].aa!==a&&void 0!==
a)&&c.push(this.mb[d]);this.mb=c}Wga(b){this.mb[b.index].A===b.A&&this.mb[b.index].aa===b.aa?this.mb.splice(b.index,1):this.ZD(b.A,b.aa)}gd(b){for(var a=0;a<this.mb.length;a++)if(this.mb[a].A==b)return this.mb[a]}OS(b,a){for(var c=0,d=Math.min(b.length,a.length),g=0;g<d;g++){var k=b.ea(g),m=a.ea(g);if(k.A!=m.A)break;k.Se||c++}return c}YR(b,a){var c=[];if(1<a)for(var d=0;d<b.length;d++){var g=b[d];g.length<=a&&c.push(g.slice())}return c}Wq(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a}q_(b){return this.Zaa(b,
this.yb)}p_(b){return this.Zaa(b,this.Db)}Zaa(b,a){var c=[];if(e.v(b))return c;for(var d=0;d<b.length;d++){var g=a.ea(d);e.v(g)||(g=g.ya(b[d]),e.v(g)||c.push(g.Qa()))}return c}bBa(){let b=this.wc();for(let a=0;a<b.length;a++)if(b.ea(a).mg)return!0;return!1}}h.Lr=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{get JK(){return!0}set JK(c){}gaa(){throw"Not Implemented";}zsa(c,d){e.v(this.my)&&(this.my=new e.tb);this.my.Ta(c,d)}Gda(c,d){return!e.v(this.my)&&this.my.Hb(c.A)?this.OR(this.my.getItem(c.A),d):this.eH(d)}OR(c,d){if("boolean"===typeof c)return!0===c?this.eH(d):null;const g=new a;d=this.eH(d);e.v(c.md)||(g.md=c.md);e.v(c.query)||(g.query="boolean"===typeof c.query?!0===c.query?d.query:[]:c.query.slice());e.v(c.gm)||(g.gm="boolean"===typeof c.gm?!0===
c.gm?d.gm:[]:c.gm.slice());return g}eH(c){var d=new a;d.md=!0;d.gm=l.i.yc.wq;switch(c){case l.i.qb.Ok:d.query=l.i.Bb.wq;break;case l.i.qb.Sa:d.query=l.i.$b.wq;break;case l.i.qb.jb:d.query=l.i.Jg.wq;break;case l.i.qb.dc:d.query=l.i.Qk.wq}return d}}h.wW=f;class b{}h.Wpa=b;class a{get Dea(){return 1==this.md}get EM(){return!e.v(this.query)&&0<this.query.length}get Wea(){return!e.v(this.gm)&&0<this.gm.length}merge(c){void 0===this.md&&(this.md=c.md);void 0===this.query&&(this.query=c.query);void 0===
this.gm&&(this.gm=c.gm)}}h.Vpa=a})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.kt{isEqual(b){return b.Da==l.i.qa.EMPTY}clone(){return new f}Qa(){return{}}}h.FA=f})(l.O||(l.O={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.O.kt{constructor(){super(...arguments);this.requestPermission=this.Td=!1;this.mapping=new l.O.km}isEqual(b){return super.isEqual(b)&&this.filename===b.filename&&!1===this.Td&&!1===b.Td&&this.mapping.isEqual(b.mapping)}}h.$O=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.W5{constructor(){super(...arguments);this.yh=[];this.Mn=[];this.aY=[{value:"Chrome",kN:.76},{value:"Firefox",kN:.11},{value:"Safari",kN:.05},{value:"Edge/IE",kN:.06},{value:"Opera",kN:.02}]}sG(){super.sG();this.yh=[];this.Mn=[]}Bua(){this.yh=[];this.Mn=[];this.values=[]}static clone(b){var a=new f(b.xa);a.rh=b.rh.slice(0);a.Gn=b.Gn.slice(0);a.ub=b.ub.slice(0);a.Fc=b.Fc.slice(0);a.ta=b.ta.slice(0);a.xe=b.xe.slice(0);a.uh=b.uh.slice(0);a.sg=b.sg.slice(0);
a.Ey=b.Ey.slice(0);a.nD=b.nD.slice(0);return a}Iwa(b){var a=this.Gn.indexOf(b);if(!e.v(b)&&-1<a){for(b=0;b<this.uh.length;b++)void 0===this.yh[b]&&(this.yh[b]=[]),void 0!==this.Fc[b]?(this.Fc[b][a]=NaN,this.yh[b][a]={Hp:-this.Fc[b][a],Os:-1}):this.yh[b][a]={Hp:0,Os:0};this.rh=e.Ja.wr(this.rh,this.rh.indexOf(a));this.Gn[a]=null}}update(b,a,c){var d=this.Gn.indexOf(c);if(!e.v(c)&&-1<d){for(c=0;c<this.uh.length;c++)if(this.Fc[c]&&this.Fc[c][d]!==a[c]){var g=a[c]-this.Fc[c][d];isNaN(g)||(null==this.yh[c]&&
(this.yh[c]=[]),this.yh[c][d]={Hp:g,Os:g/this.Fc[c][d]})}for(c=0;c<a.length;c++)this.Fc[c][d]=a[c];for(c=0;c<b.length;c++)this.ub[c][d]=b[c]}else{d=this.Ex;e.v(c)||(this.Gn[d]=c);for(c=0;c<this.uh.length;c++)g=a[c],isNaN(g)||(null==this.yh[c]&&(this.yh[c]=[]),this.yh[c][d]={Hp:g,Os:1});this.rh=e.Ja.vr(this.rh,d);for(c=0;c<b.length;c++)this.ub[c]=e.Ja.vr(this.ub[c],b[c]);for(c=0;c<a.length;c++)this.Fc[c]=e.Ja.vr(this.Fc[c],a[c])}}insert(b,a,c){if(!(-1<b.indexOf(0))){var d;if(0===this.ub.length)for(d=
0;d<b.length;d++)this.ub[d]=[];this.rh=e.Ja.vr(this.rh,this.Ex);e.v(c)||(this.Gn[this.Ex]=c);for(d=0;d<b.length;d++)this.ub[d]=e.Ja.vr(this.ub[d],b[d]);if(0===this.Fc.length)for(d=0;d<a.length;d++)this.Fc[d]=[];for(d=0;d<a.length;d++)this.Fc[d]=e.Ja.vr(this.Fc[d],a[d])}}I0(b,a,c,d,g){if(0!=b.length){var k;for(k=0;k<b.length;k++){var m=this.Fc[c][b[k]];isNaN(m)||this.Fc[c]instanceof Uint8Array&&0==m||g[m]||(d.push(m),g[m]=!0)}if(this.lj.length!=a.length)for(k=0;k<d.length;k++){m=a.slice(0);m.push(d[k]);
var n=this.Ao(b,m,this.lj);this.I0(n,m,c,d,g)}}}AIa(b,a,c,d){b=this.gb[b[0]];a=a[0];var g=[];this.yh=[];this.yh[b]=[];this.values=[];this.Mn=[];if(null!=c){var k=c.wS(d);var m=this.yda(c.ya(this.ub[a][b]),"string"==typeof d);if(null==k)if(1==this.bba(a,this.ub[a][b])){k=c.ya(this.ub[a][b]);var n=this.J0(c,d);n.ordinal=k.ordinal;c.nha(n)}else k=null!=c.Ib(d)?c.lc(new l.O.ae({A:e.P.NL(),caption:d})):c.lc(new l.O.ae({A:d,caption:d}));this.ub[a][b]=k.ordinal;n=null!=this.Gn[b]?this.Gn[b]:b;g.push({id:n,
field:c.A,value:d,oldValue:m});c=parseFloat(d)-this.Fc[a][b];this.yh[b][a]={Hp:c,Os:c/this.Fc[a][b]};this.Fc[a][b]=parseFloat(d);0<g.length&&this.xa.yha(g);return k.ordinal}}yda(b,a){return null==b?"":a?b.caption:b.fc}save(b,a,c,d,g){var k=this.ld(b,this.Gd),m=this.ld(a,this.Ud);g=(b.length*m[0][0].length<a.length*k[0][0].length?this.Ao(m[0][0],b,this.Ph):this.Ao(k[0][0],a,this.lj))[g];b=[];a=this.uh.indexOf(this.xa.O.cf(c.A).A);this.yh=[];this.yh[a]=[];k=parseFloat(d)-this.Fc[a][g];this.yh[a][g]=
{Hp:k,Os:k/this.Fc[a][g]};this.Fc[a][g]=parseFloat(d);this.values=[];this.Mn=[];if(null!=c){m=this.xe.indexOf(c.A);var n=this.bba(m,this.ub[m][g]);k=c.wS(d);k=null===k?c.Ib(d):k;a=this.yda(c.ya(this.ub[m][g]),"string"==typeof d);null==k&&(1==n?(k=c.ya(this.ub[m][g]),n=this.J0(c,d),n.ordinal=k.ordinal,c.nha(n)):k=c.lc(this.J0(c,d)));k.fc=d;this.ub[m][g]=k.ordinal;g=null!=this.Gn[g]?this.Gn[g]:g;b.push({id:g,field:c.A,value:d,oldValue:a});0<b.length&&this.xa.yha(b);return k.ordinal}}J0(b,a){b=this.xa.O.cf(b.A);
l.i.Pa.Sa==b.type?(b=e.P.Bx(a,e.model.C.F.Ep,e.model.C.F.Mj),a=new l.O.ae({A:b,caption:b,fc:a})):l.i.Pa.xc==b.type?a=new l.O.ae({A:a.toString(),caption:a.toString()}):l.i.Pa.dc==b.type?(b=e.P.Cx(a,e.model.C.F.Wo),a=new l.O.ae({A:b,fc:a})):a=new l.O.ae({A:a.toString(),caption:a.toString(),fc:a});return a}bba(b,a){for(var c=0,d=0;d<this.Ex;d++)this.ub[b][d]==a&&c++;return c}bd(b,a){const c=[];c.push(this.xe);var d=this.ld(b,this.Gd);if(e.v(d)||e.v(d[0])||e.v(d[0][0]))return c;var g=this.ld(a,this.Ud);
if(e.v(g)||e.v(g[0])||e.v(g[0][0]))return c;b=b.length*g[0][0].length<a.length*d[0][0].length?this.Ao(g[0][0],b,this.Ph):this.Ao(d[0][0],a,this.lj);for(a=0;a<b.length;a++){d=[];for(g=0;g<this.ub.length;g++)d.push(this.ub[g][b[a]]);c.push(d)}return c}dD(b,a,c){b=this.ds(b,a);a=c.Na?this.slice.hd().findIndex(d=>d.A===c.A)+this.uh.length:this.uh.indexOf(c.A);return void 0==this.Mn[b]?null:this.Mn[b][a]}oda(b,a){if(a.Na)return null;a=this.uh.indexOf(a.A);return null==b?this.TZ(this.gb,a):void 0==this.Mn[b]?
null:this.Mn[b][a]}Du(b){return null==this.gb[b]||null==this.ub[0][this.gb[b]]||""==this.xa.O.id?null:this.Gn[this.gb[b]]}uAa(b,a){if(0==this.Gn.length)return null;var c=this.ld(b,this.Gd);if(e.v(c)||e.v(c[0])||e.v(c[0][0]))return null;const d=this.ld(a,this.Ud);if(e.v(d)||e.v(d[0])||e.v(d[0][0]))return null;b=b.length*d[0][0].length<a.length*c[0][0].length?this.Ao(d[0][0],b,this.Ph):this.Ao(c[0][0],a,this.lj);a=[];for(c=0;c<b.length;c++)a.push(this.Gn[b[c]]);return 0==a.length?null:a}US(b,a,c,d,
g){if(this.xa.ga.yM)return 0===this.ub[0][b]&&this.Sya(b),this.ub[a][b];if(null==this.gb[b]||null==this.ub[0][this.gb[b]])return NaN;if(d)return!c.Na&&this.yh.length&&(d=this.uh.indexOf(c.A),null==this.Mn[b]&&(this.Mn[b]=[]),this.Mn[b][d]=this.TZ([this.gb[b]],d)),c.Na?this.dr([this.gb[b]],c.Xd,c.cl,0,null,null,c.ho):this.Fc[a][this.gb[b]];this.Fc.length!=this.ub.length&&(a=this.xe.indexOf(this.uh[a]),void 0!==g&&(a=this.ta[a][g]));return this.ub[a][this.gb[b]]}Ha(b,a,c){var d=this.ds(b,a),g=this.Zh(c);
if(e.v(this.values[g])||-1==g)this.values[g]=[];g=this.values[g];if(!g[d]){var k=this.ld(b,this.Gd),m=this.ld(a,this.Ud);if(null==k||null==k[0]||null==m||null==m[0])return NaN;var n=[],p=this.uh.indexOf(c.A);0<m.length&&0<k.length&&b.length*m[0][0].length<a.length*k[0][0].length?n=this.Ao(m[0][0],b,this.Ph):0<k.length&&(n=this.Ao(k[0][0],a,this.lj));if(c.Na){if(b=this.dr(n,c.Xd,c.cl,0,b,a,c.ho),!0===b||!1===b)b=!0===b?1:0}else b=c.aa==l.i.da.Ej?c.type==l.i.Pa.xc?this.SS(n,c):this.hda(n,b,a,p):this.qB(n,
p,c.aa);g[d]=b;0<this.yh.length&&(null==this.Mn[d]&&(this.Mn[d]=[]),this.Mn[d][p]=this.TZ(n,p));return b}return g[d]}TZ(b,a){if(void 0==this.yh[a])return null;for(var c=!1,d={Hp:0,Os:0},g=0;g<b.length;g++)this.yh[a][b[g]]&&0!=this.yh[a][b[g]].Hp&&!isNaN(this.yh[a][b[g]].Hp)&&(d.Hp+=this.yh[a][b[g]].Hp,d.Os+=this.yh[a][b[g]].Os,c=!0);return c?d:null}pack(){if(!this.xa.ga.yM){var b=this.xa.O.wc(!1);65536>this.rh.length?this.rh=new Uint16Array(this.rh):4294967296>this.rh.length&&(this.rh=new Uint32Array(this.rh));
var a;for(a=0;a<b.length;a++){var c=b.ea(a),d=this.xe.indexOf(c.A);-1===d&&(d=this.xe.indexOf(c.caption));for(var g=1;g<this.ta[d].length;g++)256>c.Ri&&this.ub.hasOwnProperty(this.ta[d][g])?this.ub[this.ta[d][g]]=new Uint8Array(this.ub[this.ta[d][g]]):65536>c.Ri&&this.ub.hasOwnProperty(this.ta[d][g])?this.ub[this.ta[d][g]]=new Uint16Array(this.ub[this.ta[d][g]]):4294967296>c.Ri&&this.ub.hasOwnProperty(this.ta[d][g])&&(this.ub[this.ta[d][g]]=new Uint32Array(this.ub[this.ta[d][g]]))}for(a=0;a<this.uh.length;a++)c=
b.getItem(this.uh[a]),null!=c&&(c=this.xa.O.TC(c.A),c!==l.i.input.sa.jb&&c!==l.i.input.sa.Dj&&c!==l.i.input.sa.Jc&&c!==l.i.input.sa.dc&&(this.Fc[a]=new Uint8Array(this.Fc[a])))}}filter(){this.Ud=[];this.Gd=[];this.values=[];this.tQ=[];this.Pl=[];this.Mn=[];this.pta();this.pack();var b=e.model.C.F.rc&&e.model.C.F.je!=e.K.Id.dj,a=this.slice.wc(!1,!0,b),c=new e.tb,d=new e.tb,g,k,m=this.slice.hd();for(g=0;g<a.length;g++)(k=a.ea(g))&&k.filter.wh&&(k.filter.xi?(b?d.Ta(k.A,k):m.find(n=>n.A===k.filter.measure.A)&&
!this.slice.ob.Hb(k.A)&&d.Ta(k.A,k),k.filter.wi&&c.Ta(k.A,k)):c.Ta(k.A,k));this.Ov(c,this.rh);for(g=0;g<d.length;g++)k=d.ea(g),!b||k.filter.oz&&k.filter.measure&&this.xa.O.Uq.Hb(k.filter.measure.A)?this.xta(k):this.mta(k);this.Ov(d,this.gb)}Ov(b,a){for(var c=[],d=[],g=0;g<b.length;g++){var k=b.ea(g),m=this.xe.indexOf(k.A);if(k.filter.wh){c.push(m);d.push(k.Ixa().length/k.Ad.children.length);this.filters[m]=[];this.zx[m]=[];for(var n=0;n<k.gb.length;n++){var p=k.ya(k.gb[n]);1===p.level.wb?this.filters[m][p.ordinal]=
!0:(void 0===this.zx[m][p.root.ordinal]&&(this.zx[m][p.root.ordinal]=[]),void 0===this.zx[m][p.root.ordinal][p.level.wb]&&(this.zx[m][p.root.ordinal][p.level.wb]=[]),this.zx[m][p.root.ordinal][p.level.wb][p.ordinal]=!0)}}}d=e.Ja.sort(d,e.Ja.Bv|e.Ja.Ki);if(0<c.length)for(g=0;g<c.length;g++){b=c[d[g]];k=[];for(m=0;m<a.length;m++)if(n=this.ub[this.ta[b][1]][a[m]],!0===this.filters[b][n])k.push(a[m]);else if(void 0!==this.zx[b][n])for(p=2;p<this.ta[b].length;p++)if(void 0!==this.zx[b][n][p]&&!0===this.zx[b][n][p][this.ub[this.ta[b][p]][a[m]]]){k.push(a[m]);
break}a=k}this.gb=a}Vqa(b){var a=this.xe.indexOf(b.kz.A),c=this.xe.indexOf(b.A);-1===a&&(a=this.um(b.kz.A,b.A),this.ta[c].pop(),this.ta[c].splice(1,0,a));var d=[],g;for(g in b.groups)for(var k=b.Ib(b.vm(g)),m=0;m<b.groups[g].length;m++){var n=b.ya(b.groups[g][m]);null!==n&&(d[n.ordinal]=k.ordinal)}b=b.Ib(b.vm("Others"));void 0===this.ub[a]&&(this.ub[a]=[]);for(g=0;g<this.Ex;g++)n=this.ub[c][g],this.ub[a][g]=void 0!==d[n]?d[n]:b.ordinal}cra(b){var a=this.xe.indexOf(b.A);if(this.ta[a]&&this.ta[a].length>
b.ta.length)for(var c=0;c<this.ta[a].length;c++)if(!b.ta.Hb(this.xe[this.ta[a][c]])){this.ta[a].splice(c,1);break}}pta(){var b,a,c=this.slice.wc(!1);for(b=0;b<c.length;b++)(a=c.ea(b))&&(null!=a.kz?this.Vqa(a):this.cra(a))}mta(b){if(b.filter.xi){var a=this.xa.O.Ba.getItem(b.filter.measure.A);if(void 0!==a){for(var c=[],d=[],g=this.uh.indexOf(a.A),k=0;k<this.gb.length;k++)c.push(this.US(k,g,a,!0)),d.push(this.US(k,g,a,!1));b.filter.query.va==l.i.yc.ck?b.gb=this.lta(c,d,b.filter.query.value):b.filter.query.va==
l.i.yc.Hi?b.gb=this.cta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.EQUAL?b.gb=this.dta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.cg?b.gb=this.jta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.GREATER?b.gb=this.fta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.xl?b.gb=this.eta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.LESS?b.gb=this.hta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.yl?b.gb=this.gta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.nh?
b.gb=this.bta(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])):b.filter.query.va==l.i.yc.bh&&(b.gb=this.ita(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])))}}}lta(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.ep|e.Ja.Bv|e.Ja.Ki);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}cta(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.Bv|e.Ja.Ki);c=Math.min(c,a.length);
for(var g=0;g<c;g++)d.push(a[b[g]]);return d}dta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]==c&&d.push(a[k]);return d}jta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]!=c&&d.push(a[k]);return d}fta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>c&&d.push(a[k]);return d}eta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>=c&&d.push(a[k]);return d}hta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<c&&d.push(a[k]);return d}gta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<=c&&d.push(a[k]);
return d}bta(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)b[m]>=c&&b[m]<=d&&g.push(a[m]);return g}ita(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)(b[m]<c||b[m]>d)&&g.push(a[m]);return g}xta(b){if(b.filter.xi){var a=this.slice.vi(b.filter.measure);if(void 0!==a){var c=[],d=[],g=[],k=this.xe.indexOf(b.A);k=this.ta[k][b.oc?b.oc.wb:1];if(this.Pl[k])for(var m in this.Pl[k])g.push(this.Pl[k][m]);else g=[k];k=[];for(m=0;m<g.length;m++)for(var n=0;n<this.gb.length;n++){var p=this.ub[g[m]][this.gb[n]];null==
k[p]&&(k[p]=[]);k[p].push(this.gb[n])}g=this.uh.indexOf(a.A);n=b.filter.wi?b.filter.Pj():b.bs;p=a.Na;var t=b.oc?b.oc.wb:1;for(m=0;m<n.length;m++){var r=b.ya(n[m]);if(!r.Zb&&r.level.wb==t&&void 0!==k[r.ordinal]){if(p){var w=e.v(this.Ey[g])?a.Xd:this.Ey[g];var y=e.v(this.nD[g])?a.cl:this.nD[g];w=this.dr(k[r.ordinal],w,y,0,null,null,a.ho)}else w=k[r.ordinal],w=a.aa==l.i.da.Ej?this.SS(w,a):this.qB(w,g,a.aa);isNaN(w)&&(w=Number.MIN_VALUE);c.push(w);d.push(r.ordinal)}}b.filter.query.va==l.i.yc.ck?b.gb=
this.wta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.Hi?b.gb=this.Zsa(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.EQUAL?b.gb=this.$sa(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.cg?b.gb=this.uta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.GREATER?b.gb=this.ota(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.xl?b.gb=this.nta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.LESS?b.gb=this.rta(c,d,b.filter.query.value):b.filter.query.va==l.i.yc.yl?b.gb=this.qta(c,
d,b.filter.query.value):b.filter.query.va==l.i.yc.nh?b.gb=this.Ysa(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])):b.filter.query.va==l.i.yc.bh&&(b.gb=this.tta(c,d,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])))}}}wta(b,a,c){var d=[];b=e.Ja.sort(b,e.Ja.ep|e.Ja.Bv|e.Ja.Ki);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}Zsa(b,a,c){var d=
[];b=e.Ja.sort(b,e.Ja.Bv|e.Ja.Ki);c=Math.min(c,a.length);for(var g=0;g<c;g++)d.push(a[b[g]]);return d}$sa(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]==c&&d.push(a[k]);return d}uta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]!=c&&d.push(a[k]);return d}ota(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>c&&d.push(a[k]);return d}nta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]>=c&&d.push(a[k]);return d}rta(b,a,c){for(var d=[],g=a.length,k=0;k<g;k++)b[k]<c&&d.push(a[k]);return d}qta(b,a,c){for(var d=
[],g=a.length,k=0;k<g;k++)b[k]<=c&&d.push(a[k]);return d}Ysa(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)b[m]>=c&&b[m]<=d&&g.push(a[m]);return g}tta(b,a,c,d){for(var g=[],k=a.length,m=0;m<k;m++)(b[m]<c||b[m]>d)&&g.push(a[m]);return g}qB(b,a,c){return null===b||-1===a?NaN:0===b.length?c===l.i.da.xc?0:NaN:c===l.i.da.NONE?this.Fc[a][b[0]]:c===l.i.da.xc?this.sza(b,a):c===l.i.da.Ej?this.hda(b,[],[],a):c===l.i.da.Ir?this.oAa(b,a):c===l.i.da.Cv?this.IAa(b,a):c===l.i.da.Dv?this.JAa(b,a):1===b.length?this.Fc&&
this.Fc[a]?this.Fc[a][b[0]]:NaN:c===l.i.da.Iq||c===l.i.da.lp||c===l.i.da.Hq||c===l.i.da.Fq||c===l.i.da.Gq||c===l.i.da.Ji||c===l.i.da.Rn||c===l.i.da.an||c===l.i.da.Wn||c===l.i.da.cn||c===l.i.da.en||c===l.i.da.Yn?this.b1(b,a):c===l.i.da.st?this.sAa(b,a):c===l.i.da.xq?this.Rca(b,a):c===l.i.da.wv?this.aAa(b,a):c===l.i.da.MAX?this.Xza(b,a):c===l.i.da.MIN?this.dAa(b,a):0}kM(){return this.ub}ZH(){this.$Z();for(var b,a=this.xa.O.G0(),c=0;c<a.length;c++){var d=a[c];b=this.xa.O.RC(d);if(b instanceof h.O.V7)l.i.BA.OA==
b.type?(this.um(d+".Year"),this.un(this.xa.O.cf(d+".Year")),this.um(d+".Month"),this.un(this.xa.O.cf(d+".Month")),this.um(d+".Day"),this.un(this.xa.O.cf(d+".Day"))):b.Oa.Hb(d)&&(this.um(d),this.un(this.xa.O.cf(d)));else if(b instanceof h.O.bP)for(this.um(d),this.un(this.xa.O.cf(d)),d=2;d<b.ta.length;d++){var g=b.ta.ea(d);this.um(g.A,b.A)}else b instanceof h.O.pX&&(1===b.wb?(this.um(b.hierarchy.A),this.un(this.xa.O.cf(b.hierarchy.A))):this.um(b.A,b.hierarchy.A))}if(this.slice){for(c=0;c<this.xa.O.Ba.length;c++)b=
this.xa.O.Ba.ea(c),this.um(b.A),this.un(b);for(c=0;c<this.slice.Kf.length;c++)b=this.slice.Kf[c],this.um(b.A),this.un(b)}}un(b){b&&(this.BK(b),this.vy(b))}W$(b){for(var a=this.xa.O.RC("Browser"),c=0;c<b.length;c++)a.lc(new l.O.ae({A:b[c].value}))}Sya(b){var a=this.uga(b,{from:0,Xo:500,hx:30})+1,c=this.uga(b,{from:0,Xo:30,hx:0})+1,d=.3>Math.abs(Math.sin(7*b))?1:0;this.ub[0][b]=this.uHa(5*b,this.aY)+1;this.ub[1][b]=a*(4>c?c:10>c?Math.round(c/3):Math.round(c/7));this.ub[2][b]=c;this.ub[3][b]=d}w0(b){this.W$(this.aY);
var a=u.Kd().Mm?5E5:1E6;this.ub=[];this.ub[0]=new Uint8Array(a);this.ub[1]=new Uint16Array(a);this.ub[2]=new Uint8Array(a);this.ub[3]=new Uint8Array(a);this.rh[a-1]=a;this.Gd=[];this.Gd=[[this.gb,[],[],void 0,void 0]];this.Ud=[[this.gb,[],[],void 0,void 0]];this.W$(this.aY);b()}uga(b,a){b=Math.abs(Math.sin(1.17*b))*(a.Xo-a.from)+a.from;if(b>=a.hx){var c=(b-a.hx)/(5*(a.Xo-a.hx));a=(b-a.hx)*c+a.hx}else c=(a.hx-b)/(5*(a.hx-a.from)),a=(a.hx-b)*c+a.from;return Math.round(a)}uHa(b,a){b=Math.abs(Math.sin(b));
for(var c=0,d=0;d<a.length;d++)if(c+=a[d].kN,c>b)return d;return a.length-1}}h.aP=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.ht{constructor(a,c=""){super(a,c);this.Je=e.model.C.F.Je;a=new f.pX(a+".[(all)]","All",0);this.Hh(a);this.ms=this.wm="(all member)";a=new l.O.ae({A:"(all member)",caption:"All",Zb:!0});super.lc(a)}lc(a,c){if(void 0===c)return super.lc(a);if(e.ia(a.value)||"null"===a.value||"undefined"===a.value)e.model.C.F.br?a.A=a.value+"":(a.A=void 0===a.parent?"":("["===a.parent.A.substr(0,1)?a.parent.A:"["+a.parent.A+"]")+".[]",a.caption=
a.value=""),""===a.caption&&(a.caption=e.model.B.j.zl);if(c===l.i.input.sa.jb)c=this.Lsa(a);else if(c===l.i.input.sa.$c||c===l.i.input.sa.fn||c===l.i.input.sa.$g)c=this.faa(a);else if(c===l.i.input.sa.Sa)c=this.nsa(a);else if(c===l.i.input.sa.Hf)c=this.Esa(a,a.level);else if(c===l.i.input.sa.Bq)c=this.Z$(a,!1);else if(c===l.i.input.sa.hp)c=this.Z$(a,!0);else if(c===l.i.input.sa.Dj)c=this.psa(a);else if(c===l.i.input.sa.Jc)c=this.rsa(a);else if(c===l.i.input.sa.dc)c=this.Ssa(a);else{if(c===l.i.input.sa.Rx||
c===l.i.input.sa.I7||c===l.i.input.sa.iF)return null;c=this.faa(a)}void 0!==a.Ue&&c.Ue.Bsa(a.Ue);return c}YC(){return new f.mna(this)}vm(a="(Total)"){return a.toLocaleLowerCase()}get interval(){return this.type===l.i.Lc.Sa?this.AQ:null}set interval(a){if(this.type===l.i.Lc.Sa){const c=a.substr(-1);if("y"===c||"q"===c||"M"===c||"w"===c)a="1"+c;this.AQ=a}else this.AQ=null}get rk(){return this.hra}set rk(a){this.hra=a}getTimezoneOffset(){if(this.type!==l.i.Lc.Sa)return null;if(!e.v(this.rk))return u.zh.lg(this.rk);
var a=this.mapping.Ha(this.A,"format");if(!e.v(a))return u.zh.lg(a);a=this.ta.ea(1);if(a.type===l.i.ib.Sa||a.type===l.i.ib.Dj){if(a=u.zh.lg(e.model.C.F.Ep),null!==a)return a}else if(a.type===l.i.ib.Jc&&(a=u.zh.lg(e.model.C.F.rk),null!==a))return a;return e.v(e.model.C.F.Mj)||isNaN(e.model.C.F.Mj)?null:e.model.C.F.Mj}get inputType(){return this.zQ}set inputType(a){this.zQ=a}get Wd(){return!0}set Wd(a){}faa(a){var c=void 0===a.A?a.value+"":a.A,d=this.Ib(c);null===d&&(a.A=c,void 0===a.caption&&(a.caption=
a.value+""),d=super.lc(a));return d}Lsa(a){var c=void 0===a.A?a.value+"":a.A;if(!this.Je){var d=this.Ib(c);null===d&&(a.A=c,void 0===a.caption&&(a.caption=a.value+""),a.fc=e.model.C.F.br&&e.v(a.value)?a.value:e.P.j5(a.value),d=super.lc(a))}return d}rsa(a){var c=new e.Zg(a.value,{wy:!1});c.Aj(this.getTimezoneOffset());this instanceof l.external.pc.O.cO||c.round(this.interval);c=c.getTime();let d=a.A;if(void 0===a.A||e.v(a.parent)&&e.v(a.Bi))d=isNaN(c)?e.model.B.j.Qn:""+c;var g=this.Ib(d);null===g&&
(a.A=d,a.fc=c,g=super.lc(a));return g}Ssa(a){const c=parseFloat(a.value);var d=this.mapping.Ha(this.A,"format",e.model.C.F.Wo),g=isNaN(c)||""===String(a.value).trim()||c.toString()!==a.value.toString();d=g?"":e.P.Cx(c,d);g=g?"":`${c}`;let k=this.Ib(g);null===k&&(a.A=g,a.caption=d,a.fc=c,k=super.lc(a));return k}psa(a){var c=new e.Zg(a.value,{wy:!1});c.Aj(this.getTimezoneOffset());this instanceof l.external.pc.O.cO||c.round(this.interval);var d=c.getTime();c=d;let g=a.A;if(void 0===a.A||e.v(a.parent)&&
e.v(a.Bi))g=isNaN(d)?e.model.B.j.Qn:""+d;!e.model.C.F.br||null!==a.value&&"null"!==a.value||(g="null",c=null);d=this.Ib(g);null===d&&(a.A=g,a.fc=c,d=super.lc(a));return d}Z$(a,c){var d=new e.Zg(a.value,{wy:!1});e.v(e.model.C.F.Mj)||d.Aj(e.model.C.F.Mj);var g="";if(null!=d&&!isNaN(d.getTime())&&d.Ug()){var k=e.model.B.j.K8[Math.floor(d.getMonth()/3)];var m=e.model.B.j.Hr[d.getMonth()];var n=d.getDate().toString();var p=d.getFullYear().toString();d=d.getTime()}else return n=e.model.B.j.Qn,p=this.Ib(n),
null===p&&(a.A=n,a.caption=n,p=super.lc(a)),p;var t=""+p,r=p;p=this.Ib(t);null===p&&(a.A=t,a.caption=r,p=super.lc(a));c&&(c=`[${t}].[${k}]`,r=k,g=p,p=this.Ib(c),null===p&&(a.A=c,a.caption=r,a.parent=g,p=super.lc(a)),g=`.[${k}]`);k=m;m=`[${t}]${g}.[${m}]`;g=p;p=this.Ib(m);null===p&&(a.A=m,a.caption=k,a.parent=g,p=super.lc(a));k=n;n=`${m}.[${n}]`;g=p;p=this.Ib(n);null===p&&(a.A=n,a.caption=k,a.parent=g,a.fc=d,p=super.lc(a));return p}nsa(a){var c=[],d=new e.Zg(a.value,{wy:!1});e.v(e.model.C.F.Mj)||d.Aj(e.model.C.F.Mj);
if(null!==d&&!isNaN(d.getTime())&&d.Ug()){var g=e.model.B.j.Hr[d.getMonth()];var k=d.getDate().toString();var m=d.getFullYear().toString();var n=d.getTime()}else{k=e.model.B.j.Qn;for(n=0;3>n;n++){a=this.si.Oa.ea(n);var p=a.Ib(k);null===p&&(p=a.lc(new l.O.ae({A:k})));c.push(p)}return c}a=this.si.Oa.ea(0);var t=this.cW(m);p=a.Ib(t);null===p&&(p=a.lc(new l.O.ae({A:m,caption:t,fc:d.getFullYear()})));c.push(p);a=this.si.Oa.ea(1);m=this.cW(g);p=a.Ib(m);null===p&&(p=a.lc(new l.O.ae({A:g,caption:m})));c.push(p);
a=this.si.Oa.ea(2);g=this.cW(k);p=a.Ib(g);null===p&&(p=a.lc(new l.O.ae({A:k,caption:g,fc:n})));c.push(p);return c}cW(a){return a&&0<a.length&&"NaN"!=a?a:e.model.B.j.Qn}Esa(a,c){var d=void 0===a.parent?this.Ib(a.Bi):a.parent;null===d&&void 0!==a.Bi&&(d=this.wS(a.Bi));var g=e.v(a.A)||!e.v(a.Bi)&&"["===a.Bi.substr(0,1)||!e.v(a.A)&&"["===a.A.substr(0,1)?a.value+"":a.A;if(1<c.wb){var k=c.hierarchy.ta.ea(c.wb-1);null===d&&(d=c.hierarchy.Ib(e.model.B.j.zl),null===d&&(d=k.hierarchy.lc(new l.O.ae({A:e.model.B.j.zl,
caption:e.model.B.j.zl}))));g=1===k.wb?`[${d.A}].[${g}]`:`${d.A}.[${g}]`}k=c.hierarchy.Ib(g);null===k&&(a.A=g,a.caption=e.v(a.caption)?a.value:a.caption,a.parent=1<c.wb?d:void 0,k=this.lc(a,l.i.ib.wE(c.type)));return k}bj(){const a=super.bj();a.type=this.inputType;return a}clone(){var a=super.clone();a.AQ=this.AQ;return a}}f.bP=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.it{constructor(a,c="",d=0){super(a,c,d)}}f.pX=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.JI{Qa(){var a=super.Qa();a.uniqueName=this.qj;this.parent&&(a.parentMember=this.parent.qj);return a}}f.mna=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.Br{constructor(a,c=""){super(a,c)}get hc(){return e.model.Tb.valid(this.vc)?this.vc:e.model.Tb.validate(this.vc)}get caption(){if(!1===e.model.C.F.xx||this.Na)return this.hc;switch(this.aa){case l.i.da.xc:return e.P.bind(e.model.B.j.kO,this.hc);case l.i.da.st:return e.P.bind(e.model.B.j.uP,this.hc);case l.i.da.Ej:return e.P.bind(e.model.B.j.uO,this.hc);case l.i.da.xq:return e.P.bind(e.model.B.j.fO,this.hc);case l.i.da.wv:return e.P.bind(e.model.B.j.rX,
this.hc);case l.i.da.Cv:return e.P.bind(e.model.B.j.CP,this.hc);case l.i.da.Dv:return e.P.bind(e.model.B.j.DP,this.hc);case l.i.da.MAX:return e.P.bind(e.model.B.j.eP,this.hc);case l.i.da.MIN:return e.P.bind(e.model.B.j.nP,this.hc);case l.i.da.Ir:return e.P.bind(e.model.B.j.FJ,this.hc);case l.i.da.lp:return e.P.bind(e.model.B.j.zJ,this.hc);case l.i.da.Hq:return e.P.bind(e.model.B.j.EJ,this.hc);case l.i.da.Fq:return e.P.bind(e.model.B.j.CJ,this.hc);case l.i.da.Gq:return e.P.bind(e.model.B.j.DJ,this.hc);
case l.i.da.Ji:return e.P.bind(e.model.B.j.mJ,this.hc);case l.i.da.en:return e.P.bind(e.model.B.j.vP,this.hc);case l.i.da.Yn:return e.P.bind(e.model.B.j.xP,this.hc);case l.i.da.Rn:return e.P.bind(e.model.B.j.SI,this.hc);case l.i.da.an:return e.P.bind(e.model.B.j.TI,this.hc);case l.i.da.Wn:return e.P.bind(e.model.B.j.AJ,this.hc);case l.i.da.cn:return e.P.bind(e.model.B.j.BJ,this.hc);case l.i.da.NONE:return this.hc}return e.P.bind(e.model.B.j.LJ,this.hc)}set caption(a){this.vc=a}get kl(){return this.vc}set kl(a){}clone(){var a=
new b(this.A);this.iL(a);return a}bj(){const a=super.bj(),c=l.Ra.V().O.Ck(this.A);e.v(c)?a.type=l.i.input.sa.jb:a.type=c.inputType;return a}}f.W7=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.pA{constructor(a,c=""){super(a,c)}}f.V7=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.yW{constructor(){super();this.id=this.$R="";this.ta=[];this.l1=!1;this.EB={};this.uB={};this.xZ();this.bf=new e.tb;this.hw={};this.Mz={};this.Tk=new e.tb;this.types={};this.Ue=[];this.id=this.$R="";this.Je=e.model.C.F.Je}clear(){this.EB={};this.uB={};this.bf=new e.tb;this.hw={};this.Mz={};this.Tk=new e.tb;this.types={};this.id=this.$R="";super.clear()}Do(a,c){return new f.bP(a,c)}vda(a,c){return new f.W7(a,c)}Tl(a,c,d){return new f.pX(a,
c,d)}Ck(a){return this.EB[a]}cf(a){return this.uB[a]}TC(a){if(void 0!==this.types[a])return this.types[a];a=this.Mz[a];if(!e.v(a))return this.types[a]}ada(a){return this.Ue[a]}RC(a){let c=this.bf.getItem(a);if(e.v(c)){if(a=this.hw[a],Array.isArray(a)){let d=[];for(let g=0;g<a.length;g++)c=this.bf.getItem(a[g]),e.v(c)||d.push(c);return d}}else return c}G0(a=!0){let c=this.bf.Nc(!0);if(a||0===Object.keys(this.hw).length)return c;a=[];for(let d=0;d<c.length;d++)void 0!==this.Mz[c[d]]?-1===a.indexOf(this.Mz[c[d]])&&
a.push(this.Mz[c[d]]):a.push(c[d]);return a}EK(a,c){this.Je||(this.EB[a]=this.fh(c),this.uB[c]=this.gd(a))}qp(a,c,d,g){c=this.vda(a,c);c.type=d;g.hasOwnProperty("supportedAggregations")&&(c.Zj=g.supportedAggregations);c.Wc=g.availableAggregations;this.lk(c);this.EK(c.A,a);return c}eaa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.pv;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(m.caption==e.model.B.j.zl?g+".[]":g,m.caption,1);a.type=l.i.ib.$c;m.Hh(a);
this.Je||this.qp(g,k,l.i.Pa.xc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}xsa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption;a.type=l.i.BA.OA;var m=this.Do(g,k);m.type=l.i.Lc.Sa;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);var n=g+".Year";a=this.Tl(n,e.model.B.j.Dl,m.ta.length);a.type=l.i.ib.Dl;m.Hh(a);this.Tk.Ta(n,a);c.type==l.i.input.sa.hp&&(n=g+".Quarter",a=this.Tl(n,e.model.B.j.ut,m.ta.length),a.type=l.i.ib.ut,m.Hh(a),this.Tk.Ta(n,a));n=g+".Month";a=this.Tl(n,e.model.B.j.$g,
m.ta.length);a.type=l.i.ib.$g;m.Hh(a);this.Tk.Ta(n,a);n=g+".Day";a=this.Tl(n,e.model.B.j.$m,m.ta.length);a.type=l.i.ib.$m;m.Hh(a);this.Tk.Ta(n,a);this.Je||this.qp(g,k,l.i.Pa.xc,c);e.v(c.interval)?m.interval=this.mapping.Ha(g,"interval","1d"):m.interval=c.interval;this.bf.Ta(d,m);m.inputType=c.type}aaa(a,c,d){var g=c.hasOwnProperty("hierarchy")?c.hierarchy:c.uniqueName,k=a.fh(g);void 0===k&&(k=this.Do(g,g),void 0!==c.folder&&(k.Mc=c.folder),a.oi(k));var m=0;if(c.hasOwnProperty("parent")){m=k.uu(c.parent);
void 0===m&&(m=k.uu(c.parent.toLowerCase()));if(void 0===m){void 0===this.ta[k.A]&&(this.ta[k.A]=[]);this.ta[k.A][c.parent]=[c,d];return}m=k.ta.indexOf(m.A)}else k.type=l.i.Lc.t0(c.levelType);var n=c.hasOwnProperty("caption")?c.caption:c.hasOwnProperty("level")?c.level:d;m=this.Tl(d,n,m+1);m.type=l.i.ib.t0(c.levelType);k.Hh(m);this.Je||e.v(this.gd(g))&&this.qp(g,g,l.i.Pa.xc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);this.ta[k.A]&&this.ta[k.A][d]&&this.aaa(a,this.ta[k.A][d][0],this.ta[k.A][d][1]);e.v(k.inputType)&&
(k.inputType=c.type)}msa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption;a.type=l.i.BA.OA;var m=g+".Year",n=k+"."+e.model.B.j.Dl;var p=this.Do(m,n);p.type=l.i.Lc.Sa;void 0!==c.folder&&(p.Mc=c.folder);e.v(c.interval)?p.interval=this.mapping.Ha(g,"interval","1d"):p.interval=c.interval;a.oi(p);var t=this.Tl(m+"."+n,n,1);t.type=l.i.ib.Dl;p.Hh(t);this.Tk.Ta(m,t);this.Je||this.qp(m,n,l.i.Pa.xc,c);p.inputType=c.type;m=g+".Month";n=k+"."+e.model.B.j.$g;p=this.Do(m,n);void 0!==c.folder&&(p.Mc=c.folder);
e.v(c.interval)?p.interval=this.mapping.Ha(g,"interval","1d"):p.interval=c.interval;a.oi(p);var r=this.Tl(m+"."+n,n,1);r.type=l.i.ib.$g;p.Hh(r);this.Tk.Ta(m,t);this.Je||this.qp(m,n,l.i.Pa.xc,c);p.inputType=c.type;m=g+".Day";k=k+"."+e.model.B.j.$m;p=this.Do(m,k);void 0!==c.folder&&(p.Mc=c.folder);e.v(c.interval)?p.interval=this.mapping.Ha(g,"interval","1d"):p.interval=c.interval;a.oi(p);g=this.Tl(m+"."+k,k,1);g.type=l.i.ib.$m;p.Hh(g);this.Tk.Ta(m,t);this.Je||this.qp(m,k,l.i.Pa.xc,c);p.inputType=c.type;
this.bf.Ta(d,a)}Ksa(a,c,d,g){var k=c.uniqueName;const m=e.ia(c.caption)?d:c.caption;this.Je?g?(k=this.qp(k,m,l.i.Pa.jb,c),e.ia(c.folder)?e.ia(c.dimensionCaption)?e.ia(c.dimensionUniqueName)||(k.Dg=c.dimensionUniqueName):k.Dg=c.dimensionCaption:k.Dg=c.folder,this.bf.Ta(d,k)):(g=this.Do(k,m),g.type=l.i.Lc.Cq,void 0!==c.folder&&(g.Mc=c.folder),a.oi(g),k=this.Tl(k,m,1),k.type=l.i.ib.jb,g.Hh(k),this.bf.Ta(d,g),this.Tk.Ta(d,g),g.inputType=c.type):(g=this.Do(k,m),g.type=l.i.Lc.Cq,void 0!==c.folder&&(g.Mc=
c.folder),a.oi(g),a=this.Tl(k,m,1),a.type=l.i.ib.jb,g.Hh(a),this.qp(k,m,l.i.Pa.jb,c),this.bf.Ta(d,g),this.Tk.Ta(d,g),g.inputType=c.type)}Isa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.Sa;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.$g;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.xc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}Usa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.pv;void 0!==c.folder&&
(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.$m;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.xc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}osa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.Sa;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.Sa;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.Sa,c);e.v(c.interval)?m.interval=this.mapping.Ha(g,"interval","1d"):m.interval=c.interval;e.v(c.format)||(m.rk=c.format);this.bf.Ta(d,m);this.Tk.Ta(d,
m);m.inputType=c.type}Rsa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.Cq;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.dc;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.dc,c);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}qsa(a,c,d){var g=c.uniqueName,k=e.ia(c.caption)?d:c.caption,m=this.Do(g,k);m.type=l.i.Lc.Sa;void 0!==c.folder&&(m.Mc=c.folder);a.oi(m);a=this.Tl(g,k,1);a.type=l.i.ib.Jc;m.Hh(a);this.Je||this.qp(g,k,l.i.Pa.Jc,c);e.v(c.interval)?
m.interval=this.mapping.Ha(g,"interval","1s"):m.interval=c.interval;e.v(c.format)||(m.rk=c.format);this.bf.Ta(d,m);this.Tk.Ta(d,m);m.inputType=c.type}$qa(a,c){for(var d=0;d<a.length;d++)if("string"!==typeof a[d])return!1;for(var g in c)if(-1===a.indexOf(g))return!1;return!0}bR(a,c){if(a instanceof l.O.km){var d=a;a=a.mapping}else!e.v(c)&&l.O.km.UT(a)&&(d=new l.O.km(a));if(void 0!==d){var g={};if(Array.isArray(c)){if(this.$qa(c,a))for(var k=0;k<c.length;k++){const p=c[k];g[p]=d.B2(p,a[p])}for(var m in a)void 0===
g[m]&&(g[m]=a[m])}else{for(m in a)g[m]=a[m];for(m in c)g[m]="object"!==typeof a[m]?{uniqueName:m,caption:m,type:l.i.input.sa.t5(c[m])}:a[m]}}void 0===g&&(g=a);for(m in g)if(void 0!==d||"string"!==typeof g[m]&&"number"!==typeof g[m])if(void 0===d&&e.v(g[m]))this.oZ(m,l.i.input.sa.$c);else if(void 0===d&&g[m]instanceof Date)this.oZ(m,e.model.C.F.qL);else if(void 0===d&&Array.isArray(g[m]))this.sy(a[m],m);else if(g[m].hasOwnProperty("formula"))e.ia(g[m].formula)||this.Vt(g[m],m);else if(Array.isArray(g[m]))this.sy(g[m],
m);else{k=l.i.input.sa.$c;g[m].hasOwnProperty("type")&&(c=String(g[m].type).trim().toLowerCase(),l.i.input.sa.valid(c),k=l.ye.type(c));k!==l.i.input.sa.jb&&(a[m]&&delete a[m].isMeasure,delete g[m].isMeasure);g[m].hasOwnProperty("isMeasure")&&String(g[m].isMeasure).trim();c={};for(var n in g[m])c[n]=g[m][n];c.type=k;this.sy(c,m)}else c=l.i.input.sa.t5(g[m]),this.oZ(m,c);this.Wd=!0}Vt(a,c){c=new l.O.Br(c,void 0==a.caption?c:a.caption);c.ve=a.formula;c.ho=void 0==a.calculateNaN?c.ho:a.calculateNaN;a.hasOwnProperty("grandTotalCaption")&&
(c.Op=a.grandTotalCaption);e.model.C.F.YN&&(a=u.OO.qR(c.ve,c.A),0==a.Sw&&e.Za(a.errorMessage));e.model.Va.V().Vt(c)}oZ(a,c){this.sy({A:a,caption:a,sL:a,type:c},a)}sy(a,c=""){if(!Array.isArray(a)){var d={},g;for(g in a)d[g]=a[g];d.hasOwnProperty("uniqueName")||(d.uniqueName=c);a=this.mapping.B2(c,d)}if(!a.hasOwnProperty("visible")||!1!==a.visible)if(Array.isArray(a))for(this.hw[c]=[],d=0;d<a.length;d++)void 0===a[d].uniqueName&&(a[d].uniqueName=`${c}.${d}`),this.y9(a[d]),this.hw[c].push(a[d].uniqueName),
this.Mz[a[d].uniqueName]=c;else this.y9(a)}y9(a){var c=a.uniqueName;"[Measures]"===c.substr(0,10)&&(l.ye.yE=!1);e.v(a.hierarchy)||a.type===l.i.input.sa.iF||(a.levelType=a.type===l.i.input.sa.Hf?l.i.input.sa.$c:a.type,a.type=l.i.input.sa.Hf);a.type===l.i.input.sa.Hf&&!1===l.external.pc.O.ap.sM&&(a.type=l.i.input.sa.$c,a.hasOwnProperty("level")&&(a.caption=a.level),delete a.hierarchy,delete a.level,delete a.parent);let d=l.i.input.sa.$c;l.i.input.sa.valid(a.type)&&(d=a.type);var g;a.hasOwnProperty("dimensionUniqueName")?
g=this.Kp(a.dimensionUniqueName):d===l.i.input.sa.Hf&&a.hasOwnProperty("hierarchy")&&(g=this.Kp(a.hierarchy));let k=!1;a.hasOwnProperty("isMeasure")&&(k=e.P.Zc(String(a.isMeasure).trim()));this.Je&&k||void 0!==g||(g=l.O.pA.zb(a),a.uniqueName=l.ye.Pg(a.uniqueName,a.caption),a.hasOwnProperty("dimensionUniqueName")&&(g.caption=g.A=a.dimensionUniqueName),a.hasOwnProperty("dimensionCaption")&&(g.caption=a.dimensionCaption),d===l.i.input.sa.Hf&&a.hasOwnProperty("hierarchy")&&!a.hasOwnProperty("dimensionUniqueName")&&
(g.A=a.hierarchy),this.Wt(g));this.types[c]=d;switch(d){case l.i.input.sa.$c:this.eaa(g,a,c);break;case l.i.input.sa.jb:this.Ksa(g,a,c,k);break;case l.i.input.sa.$g:this.Isa(g,a,c);break;case l.i.input.sa.fn:this.Usa(g,a,c);break;case l.i.input.sa.Sa:this.msa(g,a,c);break;case l.i.input.sa.Jc:this.qsa(g,a,c);break;case l.i.input.sa.dc:this.Rsa(g,a,c);break;case l.i.input.sa.Hf:this.aaa(g,a,c);break;case l.i.input.sa.Bq:case l.i.input.sa.hp:this.xsa(g,a,c);break;case l.i.input.sa.Dj:this.osa(g,a,c);
break;case l.i.input.sa.Rx:this.id=c;this.bf.Ta(c,null);break;case l.i.input.sa.G6:this.$R=c;break;case l.i.input.sa.I7:break;case l.i.input.sa.iF:this.lsa(a,c);break;default:this.eaa(g,a,c)}}lc(a,c,d,g,k){if(Array.isArray(this.hw[c]))for(d=0;d<this.hw[c].length;d++)this.z9(a,this.hw[c][d],this.TC(this.hw[c][d]),g,k);else return this.z9(a,c,d,g,k)}z9(a,c,d,g,k){a=a.clone();if(this.Je&&d===l.i.input.sa.jb)k.push(e.P.j5(a.value));else{var m=c=this.RC(c);if(!e.v(m)){switch(d){case l.i.input.sa.Sa:m=
c.Oa.ea(0);var n=m.lc(a,d);break;case l.i.input.sa.Hf:var p=c.hierarchy.ta.ea(c.wb-1);0<p.wb&&e.v(a.parent)&&e.v(a.Bi)&&(a.parent=c.hierarchy.ya(g[this.Tk.indexOf(p.A)]));a.level=c;p=c.hierarchy.lc(a,d);break;default:p=m.lc(a,d)}switch(d){case l.i.input.sa.jb:this.Je||g.push(p.ordinal);k.push(e.P.j5(a.value));break;case l.i.input.sa.Jc:case l.i.input.sa.Dj:g.push(p.ordinal);this.Je||k.push(p.fc);break;case l.i.input.sa.Bq:1===p.level.wb?(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||k.push(1);break;case l.i.input.sa.hp:1===p.level.wb?(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||k.push(1);break;case l.i.input.sa.Sa:for(d=0;d<n.length;d++)g.push(n[d].ordinal),this.Je||k.push(1);break;case l.i.input.sa.dc:g.push(p.ordinal);this.Je||k.push(p.fc);break;case l.i.input.sa.Hf:g.push(p.ordinal);this.Je||
1===p.level.wb&&k.push(1);break;default:g.push(p.ordinal),this.Je||(e.ia(a.value)?k.push(NaN):k.push(1))}return p}}}lsa(a,c){this.l1=!0;a=a.hierarchy;e.v(this.Ue[a])&&(this.Ue[a]=[]);this.bf.Ta(c,null);this.Ue[a].push(c)}}f.cP=b})(h.O||(h.O={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.LI=1048576;this.ST=!1;this.YB=this.nk=this.TK=0;this.encoding="UTF-8";this.Cia=()=>this.wGa();this.Cj=()=>this.fq()}JN(b,a){this.timer=new u.wt(100,1E5);this.timer.N(u.pf.Al,this.Cia);this.timer.N(u.pf.Bl,this.Cj);this.timer.start();this.oa=new z.l9;this.oa.responseType="blob";this.oa.N(v.fa.vA,()=>this.kEa());this.oa.N(v.fa.ue,c=>this.Mra(c));this.oa.N(v.fa.Oc,()=>this.Kra());this.oa.N(v.fa.Aa,c=>this.Lra(c));this.Qh(this.oa,a);this.oa.load(b)}Mra(b){const a=
b.data;404==a.target.status?this.m3(b):(this.nk=a.loaded,this.TK=a.total,this.qFa(a))}Kra(){if(!e.v(this.oa)&&!e.v(this.oa.response)){this.ST=!0;this.YB=0;this.TK=this.oa.response.size;this.encoding=this.oa.qza();var b=new FileReader;b.addEventListener("loadend",()=>c());var a=null,c=()=>{this.YFa(b.result,()=>{this.YB+=a.size;d()},a.size==this.TK)},d=()=>{this.YB>=this.TK?this.XFa():(a=this.oa.response.slice(this.YB,this.YB+this.LI),b.readAsText(a,this.encoding))};d()}}Lra(b){this.rg();this.m3(b)}Qh(b,
a){if(!e.v(a))for(var c in a)a.hasOwnProperty(c)&&b.sc.push(new z.m9(c,a[c]))}wGa(){0<this.nk||this.ST?this.rg():null!=this.timer&&e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/10,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&this.rg()}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.Cia),this.timer.sb(u.pf.Bl,this.Cj))}}h.Spa=f})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.$O{constructor(){super();this.Pf=null;this.kf="";this.Rm="\n";this.Rp=!0;this.Da=l.i.qa.Sh}get nb(){return e.ia(this.filename)&&(null==this.Td||0==this.Td)}set nb(a){}get Mu(){return!e.v(this.data)}set Mu(a){}isEqual(a){return a==this?!0:super.isEqual(a)}static zb(a){var c=new b;e.v(a.browseForFile)||(c.Td=a.browseForFile);e.v(a.requestPermission)||(c.requestPermission=a.requestPermission);e.v(a.filename)||""==a.filename||(c.filename=
a.filename);e.v(a.fieldSeparator)||(c.Pf=a.fieldSeparator);e.v(a.thousandSeparator)||(c.kf=a.thousandSeparator);e.v(a.thousandsSeparator)||(c.kf=a.thousandsSeparator);e.v(a.recordsetDelimiter)||(c.Rm=a.recordsetDelimiter);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.ignoreQuotedLineBreaks)||(c.Rp=a.ignoreQuotedLineBreaks);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.km?a.mapping:new l.O.km(a.mapping));e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static wk(a){var c=
new b,d=a.find("params");0!=d.find("param[name=ignoreQuotedLineBreaks]").length&&(c.Rp=e.P.Zc(d.find("param[name=ignoreQuotedLineBreaks]").text()));a=a.find("dataSource");0!=a.find("browseForFile").length&&(c.Td=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("fieldSeparator").length&&(c.Pf=a.find("fieldSeparator").text());0!=a.find("thousandSeparator").length&&(c.kf=a.find("thousandSeparator").text());0!=a.find("thousandsSeparator").length&&
(c.kf=a.find("thousandsSeparator").text());0!=a.find("recordsetDelimiter").length&&(c.Rm=a.find("recordsetDelimiter").text());0!=a.find("ignoreQuotedLineBreaks").length&&(c.Rp=e.P.Zc(a.find("ignoreQuotedLineBreaks").text()));return c}Yo(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Da);(a||this.Td)&&c.append(z.ba.create("<browseForFile/>").text(this.Td));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.Vh(this.filename)));this.Pf&&c.append(z.ba.create("<fieldSeparator/>").append(z.ba.Vh(this.Pf)));
this.kf&&c.append(z.ba.create("<thousandsSeparator/>").append(z.ba.Vh(this.kf)));this.Rm&&"\n"!=this.Rm&&c.append(z.ba.create("<recordsetDelimiter/>").append(z.ba.Vh(this.Rm)));(a||0==this.Rp)&&c.append(z.ba.create("<ignoreQuotedLineBreaks/>").text(this.Rp));return c}Qa(a=!1){var c={};c.type=this.Da;if(a||this.Td)c.browseForFile=this.Td;this.filename&&(c.filename=this.filename);this.Pf&&(c.fieldSeparator=this.Pf);this.kf&&(c.thousandsSeparator=this.kf);this.Rm&&"\n"!=this.Rm&&(c.recordsetDelimiter=
this.Rm);if(a||0==this.Rp)c.ignoreQuotedLineBreaks=this.Rp;if(!this.mapping.nb||this.mapping.Jo)c.mapping=this.mapping.Qa(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}clone(){var a=new b;a.Da=this.Da;this.Td&&(a.Td=this.Td);this.filename&&(a.filename=this.filename);this.Pf&&(a.Pf=this.Pf);this.kf&&(a.kf=this.kf);this.Rm&&"\n"!=this.Rm&&(a.Rm=this.Rm);0==this.Rp&&(a.Rp=this.Rp);if(!this.mapping.nb||this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);this.withCredentials&&
(a.withCredentials=this.withCredentials);return a}}f.lO=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.$O{constructor(){super();this.Iea=this.sk=!1;this.Z_=0;this.Da=l.i.qa.Dq}get nb(){return e.ia(this.filename)&&(null==this.Td||0==this.Td)&&(null==this.sk||0==this.sk)}set nb(a){}get Mu(){return this.sk}set Mu(a){}isEqual(a){return super.isEqual(a)&&0==this.sk&&0==a.sk}static zb(a){var c=new b;e.v(a.browseForFile)||(c.Td=a.browseForFile);e.v(a.filename)||""==a.filename||(c.filename=a.filename);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);
e.v(a.embedded)||(c.sk=a.embedded);e.v(a.embeddedDataOffset)||(c.Z_=a.embeddedDataOffset);e.v(a.embeddedDataToLoad)||(c.bca=a.embeddedDataToLoad);e.v(a.isOCSV2Data)||(c.Iea=a.isOCSV2Data);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.km?a.mapping:new l.O.km(a.mapping));return c}Yo(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Da);(a||this.Td)&&c.append(z.ba.create("<browseForFile/>").text(this.Td));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.Vh(this.filename)));
this.sk&&c.append(z.ba.create("<embedded/>").text(this.sk));return c}static wk(a){var c=new b;0!=a.find("browseForFile").length&&(c.Td=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("embedded").length&&(c.sk=e.P.Zc(a.find("embedded").text()));return c}Qa(a=!1){var c={};c.type=this.Da;if(a||this.Td)c.browseForFile=this.Td;this.filename&&(c.filename=this.filename);this.sk&&(c.embedded=this.sk);return c}clone(){var a=new b;a.Da=
this.Da;this.Td&&(a.Td=this.Td);this.filename&&(a.filename=this.filename);this.sk&&(a.sk=this.sk);return a}}f.gF=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.kf="";this.l0=[".csv"];this.Twa=RegExp('""',"g");this.Nea=!1;this.Jta=()=>this.C9();this.tl=()=>this.Ls();this.Cj=()=>this.fq();this.di=0;this.Ru=!1;this.h5=null;this.Aga=0;this.xa=l.Ra.V();this.l0=[".csv"]}clear(){this.data=[];this.mw=this.di=this.vC=this.nk=0;this.Rm="\n";this.oS='"';this.jC=[];this.Se=[];this.uM=this.AM=this.Go=this.QT=!1;this.pe="";this.lb=0;this.Ar=100;null!=this.oa&&(this.oa.Yd(),this.oa.dispose(),
this.oa=null);this.rg();e.Ca(!1)}load(c,d,g,k,m){try{this.clear(),this.filename=c.filename,this.Nb=d,this.ab=g,this.Oe=k,this.nG=m,this.Pf=c.Pf,this.kf=c.kf,this.Rp=c.Rp,c.yM?this.w0():(void 0!==this.filename&&""!=this.filename&&"()"!=this.filename.substr(-2)||!1!==c.Td?this.filename=u.ey.sH(this.filename,!e.model.C.F.hR):this.$l(),!0===c.Td?this.Aaa(c):(e.Ca(!0,e.model.B.j.bg),this.s2(this.filename,c.sc,c.withCredentials)))}catch(n){console.error(n.stack),this.$l()}}w0(){this.Vs();this.Pf=",";this.RD("Browser, Duration, Page Views, New Session",
"Chrome, 100, 3, true",new l.O.km({Browser:{type:"string"},Duration:{type:"time"},"Page Views":{type:"number"},"New Session":{type:"number"}}));this.QT=!0;this.xa.ra.w0(()=>{this.Iz()})}requestPermission(){e.Za(e.model.B.j.foa,e.model.B.j.Kja,e.xb.RO,[e.model.B.j.wl,e.model.B.j.Lja],[this.Jta])}Aaa(c){!0===c.requestPermission?this.requestPermission():this.C9()}C9(){this.Fw=new z.x7;this.Fw.N(v.fa.np,()=>this.NEa());this.Fw.N(v.fa.Oc,()=>this.YM());this.Fw.N(v.fa.ue,c=>this.ZM(c));this.Fw.N(v.fa.BW,
()=>this.LEa());this.Fw.N(v.fa.Aa,()=>this.$l());this.Fw.zaa(this.l0)}NEa(){e.Ca(!0,e.model.B.j.bg,"",!0,!0);this.oa=this.Fw;this.Fw.load();this.Fw=null}s2(c,d=null,g=!1){this.timer=new u.wt(100,1E5);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start();var k=new z.ek;k.dataType=z.zA.aB;k.N(v.fa.Oc,()=>this.YM());k.N(v.fa.vA,()=>this.S2());k.N(v.fa.ue,m=>this.ZM(m));k.N(v.fa.Aa,m=>this.$l(m));k.Qh(d);k.withCredentials=g;k.load(c);this.oa=k}Ls(){0<this.nk||this.Go||this.AM?
this.rg():null!=this.timer&&e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/10,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&this.rg()}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,this.Cj))}LEa(){null!=this.nG&&(this.nG(),this.nG=null);this.clear()}$l(c=null){e.Ca(!1);var d="",g="";null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&(g=e.model.Tb.validate(c.target.response),d=g=700<g.length?
g.substr(0,700):g,g=e.P.bind(e.model.B.j.jP,g).replace(/'/g,""));0==this.AM&&(this.AM=!0,c=e.model.Tb.valid(this.filename)?this.filename:e.model.Tb.validate(this.filename),e.Za(e.P.bind(e.model.B.j.uJ,c)+g,e.model.B.j.Aa,e.xb.Aa));null!=this.ab&&(this.ab(d),this.ab=null);this.rg()}Y2(){e.Ca(!1);e.Za(e.P.bind(e.model.B.j.h8),e.model.B.j.Aa,e.xb.Aa)}ZM(c){var d=c.data;if(404==d.target.status)this.$l(c);else if(!e.v(this.oa))try{var g=this.oa.response;if(null!=g&&0!=g.length&&(this.nk!=d.loaded||this.vC!=
g.length)&&(this.uM=0<d.total&&d.lengthComputable,this.vC=g.length,this.nk=d.loaded,1E4<g.length-this.di||d.loaded==d.total)){this.Go=d.loaded==d.total&&d.loaded>=this.oa.response.length;void 0===g||u.Kd().Xi||this.pr(g.substring(this.di,g.length));this.di=g.length;var k=0==d.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(d.loaded)):e.P.bind(e.model.B.j.eF,u.Yb.Og(d.loaded),u.Yb.Og(d.total),(d.loaded/d.total*100).toFixed(0));e.Ca(!0,e.model.B.j.bg,k)}}catch(m){console.error(m.stack),this.$l()}}S2(){e.Ca(!0,
e.model.B.j.bg,"")}Vs(){null!=this.Oe&&(this.Oe(),this.Oe=null)}YM(){if(!e.v(this.oa)){try{if(0==this.di||!this.uM||u.Kd().Xi||this.di<=this.oa.response.length){var c=this.oa.response;e.ia(c)&&!this.Ru?this.Iz():(this.Go=!0,this.Ru)?this.uM||(this.di<c.length?(this.pr(c.substring(this.di,c.length)),this.di=c.length):this.data.push(this.pe)):this.pr(c)}}catch(d){console.error(d.stack),this.$l()}this.oa=null}}static iea(c){c=c.toLowerCase();return-1!=c.indexOf("<html>")||-1!=c.indexOf("<config>")||
0==c.trim().length||-1!=c.indexOf("<!doctype")?(e.Za(e.model.B.j.boa,e.model.B.j.Aa,e.xb.Aa),!1):!0}pr(c){this.Ru=!0;this.Vs();0===this.mw&&-1===c.indexOf("\n")&&-1!==c.indexOf("\r")&&(this.Rm="\r");e.v(this.Pf)&&(this.Pf=this.oua(-1==c.indexOf("\n")&&-1==c.indexOf("\r")?c:c.substring(0,c.indexOf(this.Rm))));this.appendData(c);!1===this.QT&&(1<this.data.length||e.model.C.F.pE)&&(this.Nea&&this.data.shift(),this.RD(this.data.shift(),this.data[0],this.xa.ga.mapping),this.xa.ra.ZH(),this.QT=!0);0!==
this.di&&!u.Kd().Xi||this.AM||u.Cl.eo({Uo:()=>this.dv(),$e:()=>this.Iz()})}Iz(){e.Ca(!1);this.QT?null!=this.Nb&&this.Nb():(e.model.C.F.pE||e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl),null!=this.ab&&(this.ab(e.model.B.j.xv),this.ab=null));this.clear()}RD(c,d,g){if("string"==typeof c&&!b.iea(c)||"object"==typeof c&&!b.iea(c.toString()))this.$l();else try{e.v(this.Pf)&&(this.Pf=",");var k="string"==typeof c?b.pia(c,this.Pf):c,m="string"==typeof d?b.pia(d,this.Pf):e.v(d)?[]:d;this.Bm=[];for(c=0;c<k.length;c++){var n=
this.NS(m[c]),p=this.Hw(k[c],n,0==m.length),t=this.R0(k[c],n,0==m.length),r=this.SL(k[c]),w=this.QL(r),y={type:p,uniqueName:r,caption:this.mza(k[c])||w,isMeasure:t};void 0!==g&&(y=g.B2(r,y),e.v(g.Ha(r,"hierarchy"))||y.type===l.i.input.sa.iF||(y.type="level"));if(!y.hasOwnProperty("visible")||!1!==y.visible){this.jC[c]=y.type;this.Se[c]=y.isMeasure;this.Bm[c]=r;if(p===l.i.input.sa.Hf){var A=r.split(":");y.hierarchy=A[0];y.level=A.pop();y.parent=A.join(":")}this.xa.O.sy(y,r)}}}catch(C){console.error(C.stack),
this.Y2()}}NS(c){void 0!==c&&null!==c&&"string"==typeof c&&(this.kf&&0<this.kf.length&&(e.v(this.h5)&&(this.h5=new RegExp(this.kf,"g")),c=c.replace(this.h5,"")),c=c.replace(",","."));return c}QL(c){var d=c.split(a.BI);if(1<d.length)return d[1];this.nz(c)&&(d=c.split(":"));return d[d.length-1]}SL(c){c=c.trim().split(a.BI)[0];c=this.e4(c);if(-1<this.Bm.indexOf(c)){for(var d=1,g=c;-1<this.Bm.indexOf(g);)g=c+d,d++;c=g}return c}mza(c){c=c.split(a.BI);return 1<c.length?c[1]:null}e4(c){return c.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,
"")}Hw(c,d,g){var k=l.i.input.sa.jb;c=c.trim();if(e.v(d)&&!g)return l.i.input.sa.$c;"+"===c.charAt(0)?k=l.i.input.sa.$c:"t+"===c.substr(0,2)?k=l.i.input.sa.dc:"dt+"===c.substr(0,3)?k=l.i.input.sa.Jc:"n+"===c.substr(0,2)?k=l.i.input.sa.jb:"-"===c.charAt(0)?k=l.i.input.sa.jb:"ds+"===c.substr(0,3)?k=l.i.input.sa.Dj:"d+"===c.substr(0,2)?k=l.i.input.sa.Sa:"m+"===c.substr(0,2)?k=l.i.input.sa.$g:"w+"===c.substr(0,2)?k=l.i.input.sa.fn:"D+"===c.substr(0,2)?k=l.i.input.sa.Bq:"D4+"===c.substr(0,3)?k=l.i.input.sa.hp:
"id+"===c.substr(0,3)?k=l.i.input.sa.Rx:""===d||void 0===d?k=l.i.input.sa.$c:isNaN(Number(d))&&(k=e.P.HT(d)?e.model.C.F.qL:l.i.input.sa.$c);k===l.i.input.sa.$c&&this.nz(c)&&(k=l.i.input.sa.Hf);return k}R0(c,d,g){return!e.model.C.F.Je||e.v(d)&&!g?!1:"-"===c.trim().charAt(0)}nz(c){"+"===c.charAt(0)&&(c=c.substr(1));return 1<c.split(":").length&&-1<this.Bm.indexOf(c.split(":")[0].trim())}dv(){if(this.lb>=this.data.length)return this.Go;var c=this.data[this.lb];if(!e.ia(c)&&this.Bm){for(var d=!1,g="",
k=0,m=[],n=[],p,t=0;t<c.length;t++){var r=c.charAt(t);if(t===c.length-1||r===this.Pf&&!d){if(t===c.length-1&&r!==this.Pf&&(g+=r),g=g.trim(),g=g.replace("\r",""),g.charAt(0)===this.oS&&g.charAt(g.length-1)===this.oS&&(g=g.slice(1,g.length-1),g=g.replace(this.Twa,'"')),this.jC[k]===l.i.input.sa.Rx&&(p=g),void 0!==this.Bm[k]&&(this.jC[k]===l.i.input.sa.jb&&(g=this.NS(g)),d=new l.O.ae({value:g}),this.xa.O.lc(d,this.Bm[k],this.jC[k],m,n)),d=!1,g="",k++,k>=this.Bm.length)break}else r===this.oS?(g+=r,d=
!d):g+=r}if(k<this.Bm.length)for(c=k;c<this.Bm.length;c++)d=new l.O.ae({value:void 0}),this.xa.O.lc(d,this.Bm[c],this.jC[c],m,n);this.xa.ra.insert(m,n,p);0===this.lb%1E3&&this.Go&&200<u.Qf()-this.Aga&&(m=e.model.B.j.gP,n=(this.lb/this.data.length*100).toFixed(0),n=e.P.bind(e.model.B.j.hP,u.Yb.bz(this.lb.toFixed(0)),u.Yb.bz(this.data.length.toFixed(0)),n),e.Ca(!0,m,n),this.Aga=u.Qf())}this.lb++;return this.Go&&this.lb>=this.data.length}appendData(c){void 0!==this.pe&&0<this.pe.length&&(c=this.pe+c);
c=this.MJa(c);for(var d=0;d<c.length;d++)this.data.push(c[d]);1!=this.Go&&(this.pe=this.data.pop())}MJa(c){var d=!1;c=c.split(this.Rm);if(0==this.Rp)for(var g=0;g<c.length;g++)d?(this.Mea(c[g])&&(d=!1),c[g-1]+="<br/>"+c[g],c.splice(g,1),g--):this.Mea(c[g])&&(d=!0);return c}Mea(c){return 1==this.Kva(c,this.oS)%2}Kva(c,d){var g=0;if(c)for(var k=0;k<c.length;k++)c.charAt(k)==d&&g++;return g}oua(c){if(void 0==this.Pf){var d=c.indexOf("sep=");if(-1<d){const g='"'===c[0];c=c.trim();c=c.substring(d+4,g?
c.length-1:c.length);this.Nea=!0;return c.trim()}return c.split(",").length>c.split(";").length?",":";"}}static pia(c,d){if(null===c)return[];for(var g="",k=!1,m=!1,n=[],p=0;p<c.length;p++){var t=c.charAt(p);p===c.length-1||t===d&&!k?(p===c.length-1&&t===d?(n.push(g),g=""):p===c.length-1&&(g+=t),g=g.trim(),'"'===g.charAt(0)&&'"'===g.charAt(g.length-1)&&(g=g.slice(1,g.length-1)),k=m=!1,n.push(g),g=""):'"'===t?(m||(g+=t),k=!k,m=!0):(g+=t,m=!1)}return n}static cW(c){return c&&0<c.length?c:e.model.B.j.Qn}gl(){}Bk(){}Cz(){}nq(){}ZB(){return!1}cancel(){this.clear();
this.Oe=this.ab=this.Nb=null}}f.GW=b;class a{}a.FLOAT="F";a.BI="+T+";f.C6=a})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.rY=!1;this.H9=0;this.ZI=",";this.FX="\n";this.rf=l.Ra.V();this.Pq=0;this.l$=this.k$=!1;this.qra="\x3c!--";this.rra="--\x3e";this.sY="/**----**";this.pra="**--!--**/";this.fQ=this.Tr="";this.x$=0;this.tl=()=>this.Ls();this.Cj=()=>this.fq();this.RHa=RegExp("%d%","g");this.THa=RegExp("%q%","g");this.SHa=RegExp("%n%","g")}load(a,c,d,g,k){try{this.clear(),this.Ab=a,this.iZ=c,this.Oe=g,this.nG=k,this.nQ=d,this.EF=this.Ab.filename,
this.rY=this.Ab.sk,this.H9=this.Ab.Z_,this.I9=this.Ab.bca,this.O9=!1,0==this.rY&&(this.EF=u.ey.sH(this.EF,!e.model.C.F.hR)),this.rY&&null!=this.I9?this.RCa(this.I9):(e.Ca(!0,e.model.B.j.bg),this.s2(this.EF,this.Ab.sc))}catch(m){console.error(m.stack),this.$l(null,m.message?"Error: "+m.message:"")}}s2(a,c){this.sm=new u.wt(100,1E5);this.sm.N(u.pf.Al,this.tl);this.sm.N(u.pf.Bl,this.Cj);this.sm.start();var d=new z.ek;d.dataType=z.zA.aB;d.N(v.fa.Oc,()=>this.YM());d.N(v.fa.vA,()=>this.S2());d.N(v.fa.ue,
g=>this.ZM(g));d.N(v.fa.Aa,g=>this.$l(g));d.Qh(c);d.load(a);this.qm=d}fq(){this.sm.pl&&this.rg()}rg(){this.sm&&this.sm.pl&&(this.sm.stop(),this.sm.sb(u.pf.Al,this.tl),this.sm.sb(u.pf.Bl,this.Cj))}Fba(a){this.Tr=-1<a.indexOf(this.sY)?this.sY:this.qra;this.fQ=this.Tr==this.sY?this.pra:this.rra}RCa(a){this.Ar=100;this.Pi=0;try{var c=new e.Er(a,this.H9,e.Er.HI),d=c.byteLength>this.Ar?this.Ar:c.byteLength,g=c.jV(d);this.Fba(g);g.substr(0,this.Tr.length)==this.Tr&&(this.cK="",this.cK+=g.substring(this.Tr.length),
this.Pi+=d,this.YJ=c.byteLength,this.Pi<this.YJ?u.Cl.eo({Uo:()=>this.PCa(c),$e:()=>this.kr(),LZ:c}):this.kr())}catch(k){console.error(k.stack),this.$l(null,k.message?"Parsing error: "+k.message:"")}}PCa(a){var c=this.YJ-this.Pi>this.Ar?this.Ar:this.YJ-this.Pi;a=a.jV(c);this.Pi+=c;this.cK+=a;this.P4(this.Pi,this.YJ);return this.Pi>=this.YJ}P4(a,c){a=e.P.bind(e.model.B.j.a8,(a/c*100).toFixed(0));e.Ca(!0,e.model.B.j.dF,a)}kr(){e.Ca(!1);this.oy=!0;this.JHa(this.cK)}Vs(){null!=this.Oe&&(this.Oe(),this.Oe=
null)}JHa(a){a=e.P.trimLeft(a);this.Jaa(a)||this.pr(a)}Ls(){if(0<this.Pi||this.oy||this.DY)this.rg();else{var a=this.sm.tw/10;this.BY?(196<a&&(a=196),a=u.Yb.format(a/2,new e.model.ec.X.Gf,!1,!1,1)+"%"):a=e.P.bind(e.model.B.j.qt,u.Yb.format(a,new e.model.ec.X.Gf,!1,!1,1));e.Ca(!0,e.model.B.j.bg,a)}}$l(a=null,c=""){e.Ca(!1);var d="";""==c&&null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(d=e.model.Tb.validate(a.target.response),c=d=700<d.length?d.substr(0,700):d,d=e.P.bind(e.model.B.j.jP,
d).replace(/'/g,""));0==this.DY&&(this.DY=!0,a=e.model.Tb.valid(this.EF)?this.EF:e.model.Tb.validate(this.EF),e.Za(e.P.bind(e.model.B.j.uJ,a)+d,e.model.B.j.Aa,e.xb.Aa));null!=this.ab&&(this.ab(c),this.ab=null);this.clear()}Jaa(a){if(0==this.l$&&22<a.length){if(this.hCa(a)){if(0==this.DBa(a.substr(0,a.indexOf(this.FX))))return this.iEa(),!0;this.l$=!0;return!1}this.yBa(a)?(u.Cl.cancel(),null!=this.qm&&(this.qm.Yd(),this.qm.dispose(),this.qm=null),e.Za("OCSV data format is deprecated. Please contact the support team for more information."),
this.clear()):(this.clear(),(new f.GW).load(this.Ab,this.iZ,this.nQ,this.Oe,null));return!0}return!1}ZM(a){if(null!=this.qm&&!(null!=a.data&&a.data.target&&400<=a.data.target.status)){a=a.data;try{var c=this.qm.response;if(this.Pi!=a.loaded&&null!=c&&0!=c.length){this.AY=0<a.total&&a.lengthComputable;this.Pi=a.loaded;""==this.Tr&&this.Fba(c);var d=0;if(-1<(d=c.indexOf(this.Tr)))c=c.substring(d+this.Tr.length+1),this.O9=!0;else if(this.Ab.Iea&&!this.O9)return;c=e.P.trimLeft(c);if(!this.Jaa(c)&&(1E4<
c.length-this.Pq||a.loaded==a.total)){this.oy=a.loaded==a.total&&a.loaded>=this.qm.response.length;void 0===c||u.Kd().L1||this.pr(c.substring(this.Pq,c.length));this.Pq=c.length;var g=0==a.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(a.loaded)):e.P.bind(e.model.B.j.eF,u.Yb.Og(a.loaded),u.Yb.Og(a.total));e.Ca(!0,e.model.B.j.bg,g)}}}catch(k){console.error(k.stack),this.$l(null,k.message?"File loading error: "+k.message:"")}}}S2(){this.BY=!0;e.Ca(!0,e.model.B.j.bg,"")}YM(){if(null!=this.qm)try{if(0==this.Pq||
!this.AY||u.Kd().L1||this.Pq<=this.qm.response.length){var a=this.qm.response,c=0;-1<(c=a.indexOf(this.Tr))&&(a=a.substring(c+this.Tr.length+1));if(this.qm.response instanceof ArrayBuffer){var d=new e.Er(this.qm.response,0,e.Er.HI);a=d.jV(d.byteLength)}this.oy=this.BY=!0;this.k$?this.AY?this.Pq<a.length&&(this.pr(a.substring(this.Pq,a.length)),this.Pq=a.length):this.Pq<a.length?(this.pr(a.substring(this.Pq,a.length)),this.Pq=a.length):this.Rk.push(this.py):this.pr(a)}}catch(g){console.error(g.stack),
this.$l(null,g.message?"ERROR: "+g.message:"")}}pr(a){this.k$=!0;this.Vs();this.appendData(a);0==this.FY&&1<this.Rk.length&&(this.Rk.shift(),this.RD(this.Rk.shift()),this.FY=!0,u.Cl.eo({Uo:()=>this.dv(),$e:()=>this.Iz()}))}hCa(a){return"string"==typeof a&&"___ocsv2___"==a.substr(0,11)}yBa(a){try{if("string"==typeof a)for(var c=0;c<a.length;c++){if(10>a.charCodeAt(c)||255<a.charCodeAt(c))return!0;if(50<c)return!1}if(a instanceof ArrayBuffer)return 1600085871!=(new e.Er(a,0,e.Er.HI)).Rga();if(a instanceof
e.Er)return 1600085871!=a.Rga()}catch(d){}return!1}appendData(a){void 0!==this.py&&0<this.py.length&&(a=this.py+a);a=0<=a.indexOf(this.FX)?a.split(this.FX):[];for(var c=0;c<a.length;c++)e.ia(a[c])||this.Rk.push(a[c]);1!=this.oy&&(this.py=e.ia(a[a.length-1])?a.pop():this.Rk.pop(),this.py=this.py==this.fQ?this.Rk.pop():this.py)}DBa(a){this.gY=a.replace("___ocsv2___","").split("/")[1];return void 0!=this.gY&&1==e.P.FR(this.gY,e.ph.ft)?!1:!0}RD(a){a=a.split(this.ZI);this.Sr=[];for(var c=0;c<a.length;c++){var d=
this.Hw(a[c]),g=this.SL(a[c]),k=this.QL(g);this.Ct[c]=d;this.Sr.push(g);k={type:d,caption:k,A:g};d===l.i.input.sa.Hf&&(d=g.split(":"),k.hierarchy=d[0],k.level=d.pop(),k.parent=d.join(":"));this.rf.O.sy(k,g)}this.rf.ra.ZH()}Hw(a){var c=l.i.input.sa.nya(a);c===l.i.input.sa.$c&&this.nz(a)&&(c=l.i.input.sa.Hf);return c}QL(a){var c=a.split(f.C6.BI);if(1<c.length)return c[1];this.nz(a)&&(c=a.split(":"));return c[c.length-1]}nz(a){"+"==a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.Sr.indexOf(a.split(":")[0].trim())}SL(a){a=
a.trim().split(f.C6.BI)[0];a=this.e4(a);a=this.vba(a);if(-1<this.Sr.indexOf(a)){for(var c=1,d=a;-1<this.Sr.indexOf(d);)d=a+c,c++;a=d}return a}e4(a){return a.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")}dv(){if(this.Jf>=this.Rk.length)return this.oy;var a=this.Rk[this.Jf];if(!e.ia(a)&&void 0!==this.Sr){if(a==this.fQ)return!0;if(a.split(this.ZI).length<this.Sr.length)for(var c=a.split(this.ZI).length;c<this.Sr.length;c++)a=a.concat(this.ZI);var d=[],g=[];a=a.split(this.ZI);
for(c=0;c<this.Sr.length;c++)this.SGa(a[c],c,d,g);this.rf.ra.insert(d,g)}this.oy&&200<u.Qf()-this.x$&&(c=e.model.B.j.gP,d=(this.Jf/this.Rk.length*100).toFixed(0),d=e.P.bind(e.model.B.j.hP,u.Yb.bz(this.Jf.toFixed(0)),u.Yb.bz(this.Rk.length.toFixed(0)),d),e.Ca(!0,c,d),this.x$=u.Qf());this.Rk[this.Jf]="";this.Jf++;return this.oy&&this.Jf>=this.Rk.length}SGa(a,c,d,g){var k=!0,m=this.rf.O.RC(this.Sr[c]);if(null!==this.Sr[c]){if(this.Ct[c]===l.i.input.sa.$c||this.Ct[c]===l.i.input.sa.fn||this.Ct[c]===l.i.input.sa.$g){if("^"===
a.charAt(0)){var n=parseInt(a.substring(1));!1===isNaN(n)&&(m=m.ya(n+1),null!=m&&(a=m.caption==e.model.B.j.zl?"":m.caption,k=!1))}}else if(this.Ct[c]==l.i.input.sa.Hf)"^"===a.charAt(0)&&(n=parseInt(a.substring(1)),!1===isNaN(n)&&(m=m.hierarchy.ya(n+1),null!=m&&(a=m.caption==e.model.B.j.zl?"":m.caption,k=!1)));else if(this.Ct[c]===l.i.input.sa.Sa||this.Ct[c]===l.i.input.sa.Dj||this.Ct[c]===l.i.input.sa.Bq||this.Ct[c]===l.i.input.sa.hp)a=1E3*parseInt(a),k=!1;k&&(a=this.vba(a));a=new l.O.ae({value:a});
this.rf.O.lc(a,this.Sr[c],this.Ct[c],d,g)}}vba(a){return a.replace(this.RHa,",").replace(this.THa,'"').replace(this.SHa,"\n")}Iz(){e.Ca(!1);this.FY?this.Nb():(e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl),this.ab(),this.nQ=null);this.clear()}iEa(){e.Ca(!1);e.Za(e.P.bind(e.model.B.j.coa,this.gY),e.model.B.j.Aa,e.xb.Aa);this.ab();this.clear()}clear(){e.Ca(!1);this.Rk=[];this.fQ=this.Tr="";this.Pi=0;this.BY=!1;this.Pq=0;this.Ct=[];this.AY=this.DY=this.oy=this.FY=!1;this.py="";this.Jf=0;this.Ar=100;null!=
this.qm&&(this.qm.Yd(),this.qm.dispose(),this.qm=null);this.rg()}Nb(){null!=this.iZ&&this.iZ()}ab(a){null!=this.nQ&&this.nQ(a)}gl(){}Bk(){}Cz(){}nq(){}ZB(){return!1}cancel(){this.clear();this.Oe=this.ab=this.Nb=null}}f.Doa=b})(h.csv||(h.csv={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.$O{constructor(){super();this.wI=this.mua=!1;this.Da=l.i.qa.JSON}get nb(){return e.ia(this.filename)&&(null==this.Td||0==this.Td)&&e.v(this.data)}set nb(a){}get Mu(){return!e.v(this.data)}set Mu(a){}isEqual(a){return a==this?!0:super.isEqual(a)&&e.v(a.data)}static zb(a){var c=new b;e.v(a.browseForFile)||(c.Td=a.browseForFile);e.v(a.requestPermission)||(c.requestPermission=a.requestPermission);e.ia(a.filename)||(c.filename=a.filename);
e.v(a.data)||(c.data=a.data);e.v(a.checkUpdates)||(c.mua=a.checkUpdates);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.mapping)||(c.mapping=a.mapping instanceof l.O.km?a.mapping:new l.O.km(a.mapping));e.v(a.useStreamLoader)||(c.wI=a.useStreamLoader);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static wk(a){var c=new b;0!=a.find("browseForFile").length&&(c.Td=e.P.Zc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());
return c}Yo(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Da);(a||this.Td)&&c.append(z.ba.create("<browseForFile/>").text(this.Td));this.filename&&c.append(z.ba.create("<filename/>").append(z.ba.Vh(this.filename)));return c}Qa(a=!1){var c={};c.type=this.Da;if(a||this.Td)c.browseForFile=this.Td;this.filename&&(c.filename=this.filename);e.v(this.data)||(c.data=this.data);if(!this.mapping.nb||this.mapping.Jo)c.mapping=this.mapping.Qa(!0);if(a||this.wI)c.useStreamLoader=this.wI;if(a||this.withCredentials)c.withCredentials=
this.withCredentials;return c}clone(){var a=new b;a.Da=this.Da;this.Td&&(a.Td=this.Td);this.filename&&(a.filename=this.filename);e.v(this.data)||(a.data=this.data);if(!this.mapping.nb||this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);this.withCredentials&&(a.withCredentials=this.withCredentials);a.wI=this.wI;return a}}f.TO=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.csv.GW{constructor(){super();this.LI=6553600;this.xz=!0;this.Q3=()=>this.PFa();this.isArray=!1;this.xj=this.hN=0;this.l0=[".js",".json"]}load(a,c,d,g,k){this.clear();this.uC=this.zG=this.uo=null;this.xj=0;this.xz=!0;this.Nb=c;this.ab=d;this.Oe=g;this.nG=k;!0===a.Td?this.Aaa(a):void 0!==a.filename&&""!=a.filename&&"()"!=a.filename.substr(-2)?super.load(a,c,d,g,k):(this.Go=!0,this.AK(a.data))}PFa(){if(!(e.v(this.oa)||e.v(this.oa.response)||
!this.xz&&this.oa.response.length<this.LI/100)){var a=this.oa.response.substr(this.di,this.LI);this.pr(a);this.di+=a.length}}ZM(a){var c=a.data;if(404==c.target.status)this.$l(a);else if(!e.v(this.oa)&&!e.v(this.oa.response))try{if(0!==this.oa.response.length&&(this.nk!=c.loaded||this.vC!=this.oa.response.length)){this.uM=0<c.total&&c.lengthComputable;this.vC=this.oa.response.length;this.nk=c.loaded;this.Go=c.loaded==c.total;var d=0==c.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(c.loaded)):e.P.bind(e.model.B.j.eF,
u.Yb.Og(c.loaded),u.Yb.Og(c.total),(c.loaded/c.total*100).toFixed(0));e.Ca(!0,e.model.B.j.bg,d);this.uM&&c.total<5*this.LI||u.Kd().Xi?this.xz=!0:this.Ru||(this.xz=!1,this.Q3())}}catch(g){console.error(g.stack),this.$l()}}YM(){if(!e.v(this.oa)&&!e.v(this.oa.response))try{if(this.Go=!0,0==this.di||!this.Ru||this.xz){var a=this.oa.response;e.ia(a)&&!this.Ru?this.HU():this.pr(a);this.oa=null}}catch(c){console.error(c.stack),this.$l()}}pr(a){try{if(!this.xz){if(0==a.length){this.Go?this.AK([]):e.Ce(this.Q3,
100);return}a=this.HZ(a)}var c=JSON.parse(a);e.v(c.items)||(c=c.items);if(e.v(c.length)){this.$M();return}}catch(d){this.$M();return}this.AK(c)}HZ(a){void 0!==this.pe&&0<this.pe.length&&(a=this.pe+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 d=a.lastIndexOf("],");e.ia(this.pe)&&-1===c&&-1===d?a="["+a:(c=c<d?d:c,this.pe=a.substr(c+
2),a="["+a.substr(0,c+1)+"]");return a}AK(a){e.v(a.items)||(a=a.items);(e.v(a)||1>a.length)&&!e.model.C.F.pE?!this.Ru&&this.Go&&this.HU():Array.isArray(a)?(this.Ru?this.data=this.data.concat(a.slice()):(this.Ru=!0,this.Vs(),(this.isArray=!e.v(a[1])&&Array.isArray(a[1]))&&this.aJa(a[0]),a[0]&&Array.isArray(a[0])?this.RD(a[0],a[1],this.xa.ga.mapping):this.xa.ga.mapping.uea?this.xa.O.bR(this.xa.ga.mapping,a[0]):this.xa.O.bR(a[0],a[1]),this.data=a.slice(),(l.O.km.UT(a[0])||this.isArray)&&this.data.shift()),
0==this.data.length?this.xz?this.SH():this.Iz(!0):this.xz?u.Cl.eo({Uo:()=>this.dv(),$e:()=>this.SH()}):this.AM||u.Cl.eo({Uo:()=>this.dv(),$e:()=>this.Iz()})):e.Za(e.model.B.j.sJ,e.model.B.j.Aa)}Iz(a=!1){a||e.v(this.oa)||!(this.oa.response.length>this.di)&&this.Go?(this.Ru?(e.ia(this.pe)||("]"==this.pe.substr(-1)&&(this.pe=this.pe.substr(0,this.pe.length-1).trim(),a=this.pe.substr(this.pe.length-1),this.pe="]"!=a&&"}"!=a?this.pe+"]":this.pe),a=JSON.parse(this.pe),this.data.push(a),this.dv()),null!=
this.Nb&&(this.clear(),this.Nb())):(e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl),null!=this.ab&&(this.ab(e.model.B.j.xv),this.ab=null)),this.clear()):e.Ce(this.Q3,1)}Qd(a){if(!(e.v(a)||1>a.length)){this.xa.ra.Bua();for(var c=1<a.length?a[1]&&Array.isArray(a[1]):a[0]&&Array.isArray(a[0]),d=0;d<a.length;d++)this.insertData(a[d],!0,c)}}SH(){this.data=null;e.Ca(!1);e.Fg(this.Nb)&&this.Nb();this.clear()}X0(){return u.Kd().Xi?0==this.data.length?e.P.bind(e.model.B.j.yX,this.xj):e.P.bind(e.model.B.j.hP,this.xj,
this.data.length,(this.xj/this.data.length*100).toFixed(0)):0!=this.nk?e.P.bind(e.model.B.j.eF,u.Yb.Og(this.di),u.Yb.Og(this.nk),(this.di/this.nk*100).toFixed(0)):0==this.nk&&0<this.data.length?e.P.bind(e.model.B.j.hP,this.xj,this.data.length,(this.xj/this.data.length*100).toFixed(0)):e.P.bind(e.model.B.j.jm,u.Yb.Og(this.di))}dv(){if(0===this.xj%100&&200<u.Qf()-this.hN){var a=e.model.B.j.gP,c=this.X0();1==this.Go&&e.Ca(!0,a,c);this.hN=u.Qf()}if(this.xj>=this.data.length)return!0;e.v(this.data[this.xj])||
this.insertData(this.data[this.xj],!1,this.isArray);this.xj++;return this.xj>=this.data.length}y4(){this.uo=this.xa.O.G0(!1);this.zG=[];for(var a=0;a<this.uo.length;a++)this.zG[a]=this.xa.O.TC(this.uo[a]);this.xa.ra.ZH()}aJa(a){this.uC=new e.tb;if(Array.isArray(a))for(var c=0;c<a.length;c++)this.uC.Ta(a[c],c);else{c=0;for(let d in a)a.hasOwnProperty(d)&&(e.v(a[d])||e.ia(a[d].uniqueName)?this.uC.Ta(d,c):this.uC.Ta(a[d].uniqueName,c),c++)}}insertData(a,c,d){null===this.uo&&this.y4();var g=[],k=[],m=
!1,n=new Map;if(c){var p=this.xa.O.$R;""!==p&&(d?(m=this.uC.getItem(p),m=!e.v(a[m])):m=!e.v(a[p]))}for(var t=0;t<this.uo.length;t++){p=this.uo[t];var r=this.zG[t];if(d){var w=this.uC.getItem(p);var y=a.hasOwnProperty(""+w);w=a[w]}else y=a.hasOwnProperty(p),w=a[p];if(r!==l.i.input.sa.iF)if(r===l.i.input.sa.Rx)var A=w;else if(!m){var C=void 0;this.xa.O.l1&&(C=this.M0(a,p,d));y=y?new l.O.ae({Ue:C,value:w,caption:""+w}):new l.O.ae({Ue:C});r===l.i.input.sa.Hf&&(w=this.xa.O.RC(p),w=w.hierarchy.ta.ea(w.wb-
1).A,n.has(w)?y.parent=n.get(w):void 0!==a[w]&&(y.Bi=a[w]));n.set(p,this.xa.O.lc(y,p,r,g,k))}}c?m?this.xa.ra.Iwa(A):this.xa.ra.update(g,k,A):this.xa.ra.insert(g,k,A)}M0(a,c,d=!1){var g=void 0;(c=this.xa.O.ada(c))&&0<c.length&&c.forEach(k=>{if(d){var m=this.uC.getItem(k);m=a[m]}else m=a[k];e.v(m)||(e.v(g)&&(g={}),g[k]=m)});return g}$M(){e.Za(e.model.B.j.sJ,e.model.B.j.Aa);e.Ca(!1);e.Fg(this.ab)&&this.ab(e.model.B.j.sJ);this.Nb=this.ab=null;this.clear()}HU(){e.model.C.F.pE||e.Za(e.model.B.j.xv,e.model.B.j.Aa,
e.xb.vl);e.Ca(!1);e.Fg(this.ab)&&this.ab(e.model.B.j.xv);this.Nb=this.ab=null;this.clear()}}f.Rma=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.NY=null;this.Jf=0;this.Nr=this.hQ=this.Rk=null;this.qf=0}getData(c){this.D9=c;e.Ca(!0,e.model.B.j.n8);this.CHa();this.GR()}CHa(){this.Nr=l.Ra.V().O.wc();this.NY={};this.pm=[];for(this.qf=0;this.qf<this.Nr.length;){var c=this.Nr.ea(this.qf);var d=l.Ra.V().O.cf(c.A).type;d!=l.i.Pa.xc&&d!=l.i.Pa.Sa?this.IHa(l.Ra.V().O.cf(c.A)):this.GHa(c);this.qf++}this.Kua(this.pm)}Kua(c){for(var d,g=0;g<c.length;g++)d={},c[g].type!=l.i.input.sa.Hf&&
(d.caption=c[g].caption),d.type=c[g].type,c[g].type==l.i.input.sa.Hf&&this.gHa(c[g],d),this.NY[c[g].A]=d}gHa(c,d){var g=c.A.split(":");1==g.length?(d.hierarchy=g[0],d.level=g[0]):(d.hierarchy=g[0],d.level=g[g.length-1],d.parent=g[g.length-2],c.A=d.level)}GR(){this.Jf=0;this.Rk=[];this.Rk.push(this.NY);this.co=l.Ra.V().ra.kM();u.Cl.eo({Uo:()=>this.jva(),$e:()=>this.rEa()})}jva(){var c=u.Qf();this.hQ=[];this.gk=this.qf=0;for(var d=this.co&&this.co[0]?this.co[0].length:0;this.Jf<d;){for(this.hQ=[];this.qf+
this.gk<this.co.length&&this.qf<this.pm.length;)this.lc(this.lva()),this.qf++;this.Jf++;this.Rk.push(this.hQ);this.gk=this.qf=0;if(100<u.Qf()-c)break}this.AJa(this.Jf,d);return this.Jf>=d}GHa(c){var d=c.inputType;(d==l.i.input.sa.Hf||2<c.ta.length)&&d!=l.i.input.sa.Bq&&d!=l.i.input.sa.hp?this.HHa(c):d==l.i.input.sa.Sa?(this.pm.push(this.PR(d,c.si.caption,!1,c.si.A)),this.qf+=2):this.pm.push(this.PR(d,c.caption,!1,c.A))}HHa(c){c=c.ta;for(var d,g,k,m=1;m<c.length;m++){k=m;d=c.getItem(c.Jh(m));for(g=
d.caption;1<k;)k--,g=c.getItem(c.Jh(k)).A+":"+g;this.pm.push(this.PR(l.i.input.sa.Hf,d.caption,!1,g))}}lc(c){this.hQ.push(c)}lva(){var c=this.pm[this.qf].type;if(c!=l.i.input.sa.Sa)var d=this.Nr.getItem(this.pm[this.qf].A).ya(this.co[this.qf+this.gk][this.Jf]).caption;if(c==l.i.input.sa.jb)return null!=d?parseFloat(d):"";if(c==l.i.input.sa.$c||c==l.i.input.sa.fn||c==l.i.input.sa.$g)return null!=d&&d!=e.model.B.j.zl?d.toString():"";if(c==l.i.input.sa.Hf){c=this.Nr.getItem(this.pm[this.qf].caption);
for(var g=0;g<c.ta.length-2;g++)this.lc(d),this.pm[this.qf],this.qf++,d=null==this.co[this.qf+this.gk][this.Jf]||""==this.co[this.qf+this.gk][this.Jf]+""?"":c.ya(this.co[this.qf+this.gk][this.Jf]).caption}else{if(c==l.i.input.sa.Dj)return this.Nr.getItem(this.pm[this.qf].caption).ya(this.co[this.qf+this.gk][this.Jf]).fc;if(c==l.i.input.sa.Sa)return d="",c=this.Nr.getItem(this.pm[this.qf].caption+".Year").ya(this.co[this.qf+this.gk][this.Jf]),d+=c.caption+"-",this.gk++,c=this.Nr.getItem(this.pm[this.qf].caption+
".Month").ya(this.co[this.qf+this.gk][this.Jf]),d+=e.model.B.j.Hr.indexOf(c.caption)+1+"-",this.gk++,c=this.Nr.getItem(this.pm[this.qf].caption+".Day").ya(this.co[this.qf+this.gk][this.Jf]),d+=c.caption;if(c==l.i.input.sa.Bq||c==l.i.input.sa.hp)return this.cva(c);if(c==l.i.input.sa.Jc||c==l.i.input.sa.dc)return this.Nr.getItem(this.pm[this.qf].A).ya(this.co[this.qf+this.gk][this.Jf]).fc}return d}rEa(){e.Ca(!1);null!=this.D9&&this.D9(this.Rk)}cva(c){this.gk+=2;this.gk=c==l.i.input.sa.hp?this.gk+1:
this.gk;return this.Nr.getItem(this.pm[this.qf].caption).cM(this.co[this.qf+this.gk][this.Jf])}IHa(c){this.pm.push(this.PR(l.i.Pa.wE(c.type),c.kl,!0,c.A))}AJa(c,d){c=e.P.bind(e.model.B.j.a8,(c/d*100).toFixed(0));e.Ca(!0,e.model.B.j.n8,c)}PR(c,d,g=!1,k){var m=new a;m.caption=d;m.type=c;m.ng=g;m.A=k;return m}}f.mX=b;class a{constructor(){}get type(){return this.yg}set type(c){this.yg=c}get caption(){return this.vc}get ng(){return this.Bra}set ng(c){this.Bra=c}set caption(c){this.vc=c}get A(){return this.vK}set A(c){this.vK=
c}}f.ELa=a})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.Spa{constructor(){super(...arguments);this.xj=this.hN=0;this.uo=null;this.isArray=this.S1=this.XT=!1}load(a,c,d,g,k){this.clear();this.Nb=c;this.ab=d;this.Oe=g;this.nG=k;this.ma=a;this.filename=a.filename;!e.ia(this.filename)&&"()"!=this.filename.substr(-2)||!1!==a.Td?(this.filename=u.ey.sH(this.filename,!e.model.C.F.hR),e.Ca(!0,e.model.B.j.bg),this.JN(this.filename,a.sc)):this.m3()}kEa(){e.Ca(!0,e.model.B.j.bg,"")}qFa(a){a=0==
a.total?e.P.bind(e.model.B.j.jm,u.Yb.Og(a.loaded)):e.P.bind(e.model.B.j.eF,u.Yb.Og(a.loaded),u.Yb.Og(a.total),(a.loaded/a.total*100).toFixed(0));e.Ca(!0,e.model.B.j.bg,a)}m3(a=null){e.Ca(!1);var c="",d="";null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(d=e.model.Tb.validate(a.target.response),c=d=700<d.length?d.substr(0,700):d,d=e.P.bind(e.model.B.j.jP,d).replace(/'/g,""));0==this.S1&&(this.S1=!0,a=e.model.Tb.valid(this.filename)?this.filename:e.model.Tb.validate(this.filename),
e.Za(e.P.bind(e.model.B.j.uJ,a)+d,e.model.B.j.Aa,e.xb.Aa));null!=this.ab&&(this.ab(c),this.ab=null);this.rg()}YFa(a,c,d){try{const g=d?JSON.parse(a):JSON.parse(this.HZ(a));Array.isArray(g)?(this.AK(g),u.Cl.eo({Uo:()=>this.dv(),$e:c})):this.$M()}catch(g){this.$M()}}HZ(a){void 0!==this.pe&&0<this.pe.length&&(a=this.pe+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 d=a.lastIndexOf("],");c=c<d?d:c;this.pe=a.substr(c+2);return a="["+a.substr(0,c+1)+"]"}AK(a){e.v(a.items)||(a=a.items);(e.v(a)||1>a.length)&&!e.model.C.F.pE?!this.XT&&this.ST&&this.HU():Array.isArray(a)?(this.XT?this.data=this.data.concat(a.slice()):(this.XT=!0,this.Vs(),this.fe=l.Ra.V().O,this.ra=l.Ra.V().ra,this.isArray=a[1]&&Array.isArray(a[1]),this.ma.mapping.nb?a[0]&&Array.isArray(a[0])?this.RD(a[0],a[1]):this.fe.bR(a[0]):
this.fe.bR(this.ma.mapping.Qa()),this.data=a.slice(),(l.O.km.UT(a[0])||this.isArray)&&this.data.shift()),0==this.data.length&&this.SH()):e.Za(e.model.B.j.sJ,e.model.B.j.Aa)}RD(a,c){try{var d=e.v(c)?[]:c;this.Bm=[];for(c=0;c<a.length;c++){var g=this.NS(d[c]),k=this.Hw(a[c],g,0==d.length),m=this.R0(a[c],g,0==d.length),n=this.SL(a[c]),p=this.QL(n),t={type:k,uniqueName:n,caption:p,isMeasure:m};if(!t.hasOwnProperty("visible")||!1!==t.visible){this.jC[c]=t.type;this.Se[c]=t.isMeasure;this.Bm[c]=n;if(k===
l.i.input.sa.Hf){var r=n.split(":");t.hierarchy=r[0];t.level=r.pop();t.parent=r.join(":")}this.fe.sy(t,n)}}}catch(w){console.error(w.stack),this.Y2()}}Y2(){e.Ca(!1);e.Za(e.P.bind(e.model.B.j.h8),e.model.B.j.Aa,e.xb.Aa)}NS(a){void 0!==a&&null!==a&&"string"==typeof a&&(a=a.replace(",","."));return a}SL(a){a=a.trim();if(-1<this.Bm.indexOf(a)){for(var c=1,d=a;-1<this.Bm.indexOf(d);)d=a+c,c++;a=d}return a}QL(a){return this.nz(a)?(a=a.split(":"),a[a.length-1]):a}R0(a,c,d){return!e.model.C.F.Je||e.v(c)&&
!d?!1:"-"===a.trim().charAt(0)}Hw(a,c,d){var g=l.i.input.sa.jb;a=a.trim();if(e.v(c)&&!d)return l.i.input.sa.$c;"+"===a.charAt(0)?g=l.i.input.sa.$c:"t+"===a.substr(0,2)?g=l.i.input.sa.dc:"dt+"===a.substr(0,3)?g=l.i.input.sa.Jc:"n+"===a.substr(0,2)?g=l.i.input.sa.jb:"-"===a.charAt(0)?g=l.i.input.sa.jb:"ds+"===a.substr(0,3)?g=l.i.input.sa.Dj:"d+"===a.substr(0,2)?g=l.i.input.sa.Sa:"m+"===a.substr(0,2)?g=l.i.input.sa.$g:"w+"===a.substr(0,2)?g=l.i.input.sa.fn:"D+"===a.substr(0,2)?g=l.i.input.sa.Bq:"D4+"===
a.substr(0,3)?g=l.i.input.sa.hp:"id+"===a.substr(0,3)?g=l.i.input.sa.Rx:""==c||void 0===c?g=l.i.input.sa.$c:isNaN(Number(c))&&(g=e.P.HT(c)?e.model.C.F.qL:l.i.input.sa.$c);g===l.i.input.sa.$c&&this.nz(a)&&(g=l.i.input.sa.Hf);return g}nz(a){"+"===a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.Bm.indexOf(a.split(":")[0].trim())}dv(){if(0===this.xj%100&&200<u.Qf()-this.hN){var a=e.model.B.j.gP,c=this.X0();1==this.ST&&e.Ca(!0,a,c);this.hN=u.Qf()}if(this.xj>=this.data.length)return!0;
e.v(this.data[this.xj])||this.insertData(this.data[this.xj],this.isArray);this.data[this.xj]=void 0;this.xj++;return this.xj>=this.data.length}y4(){this.uo=this.fe.G0(!1);this.zG=[];for(var a=0;a<this.uo.length;a++)this.zG[a]=this.fe.TC(this.uo[a]);this.ra.ZH()}insertData(a,c){null===this.uo&&this.y4();for(var d,g,k=[],m=[],n,p,t,r=0;r<this.uo.length;r++)if(d=this.uo[r],g=this.zG[r],c?(t=a.hasOwnProperty(""+r),p=a[r]):(t=a.hasOwnProperty(d),p=a[d]),g!==l.i.input.sa.iF)if(g===l.i.input.sa.Rx)n=p;else{var w=
void 0;this.fe.l1&&(w=this.M0(a,d,c));p=t?new l.O.ae({Ue:w,value:p,caption:String(p)}):new l.O.ae({Ue:w});g===l.i.input.sa.Hf&&(t=this.fe.RC(d),t=t.hierarchy.ta.ea(t.wb-1).A,p.Bi=a[t]);this.fe.lc(p,d,g,k,m)}this.ra.insert(k,m,n)}M0(a,c,d=!1){var g=void 0;(c=this.fe.ada(c))&&0<c.length&&c.forEach(k=>{var m=d?a[this.uo.indexOf(k)]:a[k];e.v(m)||(e.v(g)&&(g={}),g[k]=m)});return g}X0(){return e.P.bind(e.model.B.j.Nna,u.Yb.bz(this.xj.toString()),(this.YB/this.TK*100).toFixed(0))}SH(){this.data=null;e.Ca(!1);
e.Fg(this.Nb)&&this.Nb();this.clear()}Vs(){null!=this.Oe&&(this.Oe(),this.Oe=null)}XFa(){e.Ca(!1);if(this.XT){if(!e.ia(this.pe)){if("]"==this.pe.substr(-1)){this.pe=this.pe.substr(0,this.pe.length-1).trim();var a=this.pe.substr(this.pe.length-1);this.pe="]"!=a&&"}"!=a?this.pe+"]":this.pe}a=JSON.parse(this.pe);this.data.push(a);this.dv()}null!=this.Nb&&(this.clear(),this.Nb())}else e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl),null!=this.ab&&(this.ab(),this.ab=null);this.clear()}$M(){e.Za(e.model.B.j.sJ,
e.model.B.j.Aa);e.Ca(!1);e.Fg(this.ab)&&this.ab();this.Nb=this.ab=null;this.clear()}HU(){e.model.C.F.pE||e.Za(e.model.B.j.xv,e.model.B.j.Aa,e.xb.vl);e.Ca(!1);e.Fg(this.ab)&&this.ab();this.Nb=this.ab=null;this.clear()}clear(){this.data=[];this.nk=0;this.jC=[];this.Se=[];this.S1=!1;this.pe="";null!=this.oa&&(this.oa.Yd(),this.oa.dispose(),this.oa=null);this.rg()}cancel(){this.clear();this.Oe=this.ab=this.Nb=null}gl(){throw Error("Method not implemented.");}Bk(){throw Error("Method not implemented.");
}Cz(){throw Error("Method not implemented.");}nq(){throw Error("Method not implemented.");}ZB(){throw Error("Method not implemented.");}}f.Sma=b})(h.json||(h.json={}))})(l.local||(l.local={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.W5{ZH(){this.$Z();const b=[];for(var a=this.slice.wc(!1),c=0;c<a.length;c++){const g=a.ea(c);this.um(g.A,g.A);e.model.C.F.rc&&this.un(this.xa.O.cf(g.A));for(var d=1;d<g.ta.length;d++){const k=g.ta.ea(d);this.um(k.A,g.A)}}a=e.u.i.qa.Tc===this.xa.ga.Da?this.Mxa(this.slice.Kf):this.slice.Kf;for(c=0;c<a.length;c++)this.un(a[c],b);if(e.u.i.qa.Tc===this.xa.ga.Da)for(c=0;c<a.length;c++)d=a[c],d.Na&&(this.vy(d.A,d.xm),this.BK(d));this.slice.Zz(b)}Mxa(b){const a=
[],c={};if(void 0!==b){let k,m,n;for(var d=0;d<b.length;d++){var g=b[d].aa;k=b[d].A;m=b[d].hidden;void 0===c[k+"_"+g]?(n=a.length,c[k+"_"+g]={ED:n,xea:m},a.push(b[d])):(g=c[k+"_"+g],g.xea&&!m&&(a.splice(g.ED,1),g.ED=a.length,g.xea=b[d].hidden,a.push(b[d])))}}return a}Zh(b,a,c){let d,g;"string"!==typeof b?(d=b.A,g=l.i.da.GM(b.aa)?b.aa:b.xm):d=b;e.v(a)||(g=a);return super.Zh(d,g,c)}un(b,a){b&&(e.u.i.qa.Tc===this.xa.ga.Da&&b.Na||(this.vy(b.A,b.xm),l.i.da.GM(b.aa)&&this.vy(b.A,b.aa),this.BK(b)),b.Na&&
this.O$(b,this.slice.Yc.Ba,a),void 0!==a&&a.push(b))}O$(b,a,c){if((a=u.nt.bM(b.Xd,a))&&0<a.length)for(let k=0;k<a.length;k++){var d=a[k],g=this.xa.O.gd(d.A);if(null!=g){let m=this.slice.vi(d);if(null==m){m=g.clone();m.aa=d.aa;d=m.hidden=!0;if(void 0!==c)for(g=0;g<c.length;g++)c[g].A===m.A&&(m.aa===l.i.da.NONE||c[g].aa===b.aa&&c[g].xm===b.xm)&&(d=!1);d&&(c.push(m),this.BK(m),this.vy(m.A,m.xm),l.i.da.GM(m.aa)&&this.vy(m.A,m.aa))}}}}UB(b){return this.xa.ga.Da==l.i.qa.ag&&b&&0==this.xa.ga.mapping.Ha(b.A,
"min_doc_count")}gG(b){return this.xa.ga.Da==l.i.qa.ag&&b&&0==this.xa.ga.mapping.Ha(b.A,"min_doc_count")}}h.WW=f})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));var Ka=q||(q={}),La=Ka.u||(Ka.u={}),Ma=La.external||(La.external={}),Na=Ma.Eb||(Ma.Eb={});class Oa{}Oa.NONE=0;Oa.FW=1;Oa.JX=2;Oa.OX=3;Oa.KI=4;Oa.NW=5;Na.Gj=Oa;
(function(e){(function(l){(function(h){(function(f){class b extends l.O.km{constructor(a=null){super(a)}}f.qP=b})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.kt{constructor(){super(...arguments);this.wn=!1;this.oj=this.uj=this.Hk=this.hf=this.We=this.rf=this.E9=this.Wh="";this.mapping=new f.qP;this.Fx=!0;this.Lv="";this.version=0}get Be(){return this.E9}set Be(a){a=a.replace("[","");this.E9=a=a.replace("]","")}get xa(){return this.rf}set xa(a){a=a.replace("[","");this.rf=a=a.replace("]","")}get Cm(){return this.Da!=l.i.qa.Tc?"":""==this.Lv&&null!=this.credentials&&this.credentials.Lm?
"credentials="+this.credentials.hash:this.Lv}set Cm(a){this.Lv=a}get DM(){return this.wn}get nb(){return e.ia(this.hf)}set nb(a){}get Mu(){return!1}set Mu(a){}get AH(){return!1}get KT(){return this.Da!=l.i.qa.le||this.DM?!0:!1}get JT(){return this.Da==l.i.qa.Tc&&this.DM}isEqual(a){return super.isEqual(a)&&this.hf===a.hf&&this.Be===a.Be&&this.xa===a.xa&&this.Wh===a.Wh&&this.wn===a.wn&&this.We===a.We&&this.mapping.isEqual(a.mapping)&&this.Fx===a.Fx&&(this.Da!=l.i.qa.le?this.We===a.We:!0)&&(this.Da===
l.i.qa.Tc?this.uj===a.uj:!0)&&(this.Da===l.i.qa.Tc?this.oj===a.oj:!0)&&(this.Da===l.i.qa.Tc?this.Cm===a.Cm:!0)}static zb(a){var c=new b;e.v(a.dataSourceType)||(c.Da=a.dataSourceType);e.v(a.dataSourceInfo)||(c.Wh=a.dataSourceInfo);e.v(a.catalog)||(c.Be=a.catalog);e.v(a.cube)||(c.xa=a.cube);e.v(a.roles)||(c.Hk=a.roles);e.v(a.proxyUrl)||(c.hf=a.proxyUrl);e.v(a.localeIdentifier)||(c.uj=a.localeIdentifier);e.v(a.subquery)||(c.We=a.subquery);e.v(a.effectiveUserName)||(c.oj=a.effectiveUserName);e.v(a.customData)||
(c.Cm=a.customData);e.v(a.binary)||(c.wn=a.binary);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.mapping)||(c.mapping=a.mapping instanceof f.qP?a.mapping:new f.qP(a.mapping));e.v(a.useGranularityNamesForDateFilters)||(c.Fx=a.useGranularityNamesForDateFilters);c.credentials=f.cj.r9.zb(a);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}static wk(a){var c=new b;a=a.find("dataSource");var d=a.attr("type");void 0!==d&&(d=d.toLowerCase());"msolap"==d&&(d=l.i.qa.Tc);d&&-1<d.indexOf("pentaho")&&
(d=l.i.qa.le);if(!l.i.qa.valid(d)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(d=l.i.qa.Tc)}c.Da=d;0!=a.find("dataSourceInfo").length&&(c.Wh=a.find("dataSourceInfo").text());0!=a.find("catalog").length&&(c.Be=a.find("catalog").text());0!=a.find("cube").length&&(c.xa=a.find("cube").text());0!=a.find("subquery").length&&(c.We=a.find("subquery").text());0!=a.find("roles").length&&(c.Hk=a.find("roles").text());0!=a.find("proxyUrl").length&&(c.hf=a.find("proxyUrl").text());0!=a.find("localeIdentifier").length&&
(c.uj=a.find("localeIdentifier").text());0!=a.find("effectiveUserName").length&&(c.oj=a.find("effectiveUserName").text());0!=a.find("customData").length&&(c.Cm=a.find("customData").text());0!=a.find("binary").length&&(c.wn=e.P.Zc(a.find("binary").text()));0!=a.find("credentials").length&&(d={},0!=a.find("credentials").find("hash").length&&(d.hash=a.find("credentials").find("hash").text()),0!=a.find("credentials").find("username").length&&(d.username=a.find("credentials").find("username").text()),
0!=a.find("credentials").find("password").length&&(d.password=a.find("credentials").find("password").text()),c.credentials=f.cj.r9.zb(d));return c}Yo(a=!1){var c=z.ba.create("<dataSource/>");c.attr("type",this.Da);switch(this.Da){case l.i.qa.Tc:(a||""!=this.uj)&&c.append(z.ba.create("<localeIdentifier/>").text(this.uj)),(a||""!=this.oj)&&c.append(z.ba.create("<effectiveUserName/>").text(this.oj)),(a||""!=this.Lv)&&c.append(z.ba.create("<customData/>").text(this.Lv));case l.i.qa.le:c.append(z.ba.create("<proxyUrl/>").append(z.ba.Vh(this.hf))),
(a||""!=this.Wh)&&c.append(z.ba.create("<dataSourceInfo/>").text(this.Wh)),c.append(z.ba.create("<catalog/>").text(this.Be)),c.append(z.ba.create("<cube/>").text(this.xa)),c.append(z.ba.create("<binary/>").text(this.wn)),(a||""!=this.Hk)&&c.append(z.ba.create("<roles/>").text(this.Hk)),this.credentials&&this.credentials.Lm&&(a=z.ba.create("<hash/>").text(this.credentials.hash),c.append(z.ba.create("<credentials/>").append(a)))}return c}Qa(a=!1){var c={};c.type=this.Da;switch(this.Da){case l.i.qa.Tc:if(a||
""!=this.uj)c.localeIdentifier=this.uj;if(a||""!=this.oj)c.effectiveUserName=this.oj;if(a||""!=this.Lv)c.customData=this.Lv;if(a||this.withCredentials)c.withCredentials=this.withCredentials;if(a||1!=this.Fx)c.useGranularityNamesForDateFilters=this.Fx;case l.i.qa.le:c.proxyUrl=this.hf;if(a||""!=this.Wh)c.dataSourceInfo=this.Wh;c.catalog=this.Be;c.cube=this.xa;c.binary=this.wn;if(a||""!=this.Hk)c.roles=this.Hk;this.credentials&&this.credentials.Lm&&(c.credentials={hash:this.credentials.hash})}if(!this.mapping.nb||
this.mapping.Jo)c.mapping=this.mapping.Qa(!0);return c}clone(){var a=new b;a.Da=this.Da;switch(this.Da){case l.i.qa.Tc:""!==this.uj&&(a.uj=this.uj),""!==this.oj&&(a.oj=this.oj),""!==this.Lv&&(a.Cm=this.Lv),this.withCredentials&&(a.withCredentials=this.withCredentials),1!=this.Fx&&(a.Fx=this.Fx);case l.i.qa.le:a.hf=this.hf,""!==this.Wh&&(a.Wh=this.Wh),a.Be=this.Be,a.xa=this.xa,a.wn=this.wn,""!==this.Hk&&(a.Hk=this.Hk),this.credentials&&this.credentials.Lm&&(a.credentials={hash:this.credentials.hash})}if(!this.mapping.nb||
this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);return a}}b.sessionId=0;f.kp=b})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.WW{yT(a,c,d,g,k,m){for(var n=[],p=[],t=0;t<a.length;t++){if(-1===a[t][1])return;p[t]=a[t][1];n[this.ta[this.Ph[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.ta[this.lj[t]][c[t][0]]]=a[t]}c=this.ds(p,a);p=this.ub.length;void 0!==this.values[c]?p=this.Wxa(n):(this.rh.push(p),this.ub.push(n));0<g.length&&(n=k===l.i.ja.La?this.ld(g,this.Gd):this.ld(g,this.Ud),-1===n[0][0].indexOf(p)&&n[0][0].push(p),
m===l.i.Rd.KW&&(g=g.slice(0,-1),k=k===l.i.ja.La?this.ld(g,this.Gd):this.ld(g,this.Ud),-1===k[0][0].indexOf(p)&&k[0][0].push(p)));this.values[c]=d}Wxa(a){for(var c,d=0;d<this.ub.length;d++)if(a.length===this.ub[d].length){c=!0;for(var g=0;g<a.length;g++)if(a[g]!==this.ub[d][g]){c=!1;break}if(c)return d}return this.ub.length}Ha(a,c,d){var g=this.ds(a,c),k=this.Zh(d);void 0===this.values[g]&&(this.values[g]=[]);if(!e.model.C.F.bu||!d.Na)return e.v(this.values[g][k])?NaN:this.values[g][k];if(void 0==
this.values[g][k]){var m=this.ld(a,this.Gd),n=this.ld(c,this.Ud);if(void 0===m||void 0===m[0]||void 0===n||void 0===n[0])return NaN;a=this.dr([g],d.Xd,d.cl,0,a,c,d.ho);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][k]=a}return e.v(this.values[g][k])?NaN:this.values[g][k]}mB(a,c,d){if(void 0!==a){var g=a[0][0];if(0<g.length&&!isNaN(c))for(var k=0;k<g.length;k++){var m=this.ub[g[k]][this.ta[c][1]];0!==m&&void 0!==m&&(void 0===a[m]?(a[m]=[[[g[k]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[k]))}void 0===
a[0][3]&&(a[0][3]=[]);void 0===d?a[0][3][this.sg.length]=!0:a[0][3][this.Zh(d)]=!0;a[0][5]=!0}}kQ(a,c,d,g,k){var m=c[0][0];if(0<m.length&&!isNaN(g))for(var n=0;n<m.length;n++){var p=this.ub[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.Pl[d][p]=g):-1===a[p][0][0].indexOf(m[n])&&a[p][0][0].push(m[n]))}void 0===c[0][4]&&(c[0][4]=[]);void 0===k?c[0][4][this.sg.length]=!0:c[0][4][this.Zh(k)]=!0}Ao(a,c,d){for(var g=0;g<c.length;g++){var k=c[g],m=d[g];
if(e.model.C.F.kT){var n=this.slice.wc().getItem(this.xe[m]),p=n.ya(k);e.v(n.kz)||e.v(this.ta)||e.v(d[g])||e.v(this.ta[d[g]])||(m=this.ta[d[g]][p.level.wb])}m=e.v(this.Pl[m])||e.v(this.Pl[m][k])?m:this.Pl[m][k];n=[];for(p=0;p<a.length;p++)this.ub[a[p]][m]===k&&n.push(a[p]);a=n}return a}un(a,c){a&&super.un(a,c)}O$(a,c,d){a=u.nt.bM(a.Xd,c);for(var g=0;g<a.length;g++){var k=this.xa.O.gd(a[g].A);null==k||c.Hb(k.A)||(k.hidden=!0,d.push(k),this.BK(k),this.vy(k.A,k.xm),l.i.da.GM(k.aa)&&this.vy(k.A,k.aa))}}}
f.Eoa=b})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Pja{constructor(c,d){super(c,d)}}b.x8=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Br{constructor(c,d=""){super(c,d)}get Zj(){return this.Na||this.Tg?[]:l.i.da.M5}set Zj(c){}get aa(){return""==this.fk?this.Wc[0]:this.fk}set aa(c){c&&c.toLowerCase()!=this.fk?(c=c.toLowerCase(),l.i.da.Ty(c)&&(c=l.i.da.cz(c)),l.i.da.HKa(c)||this.Na&&c==l.i.da.NONE?(this.Qv=void 0,this.fk=c,-1==this.Wc.indexOf(c)&&(this.fk=this.Wc[0])):this.qV()):""==c&&this.qV()}get hc(){return e.model.Tb.valid(this.vc)?this.vc:e.model.Tb.validate(this.vc)}get caption(){if(0==
e.model.C.F.xx)return this.hc;switch(this.aa){case l.i.da.Ir:return e.P.bind(e.model.B.j.FJ,this.hc);case l.i.da.lp:return e.P.bind(e.model.B.j.zJ,this.hc);case l.i.da.Hq:return e.P.bind(e.model.B.j.EJ,this.hc);case l.i.da.Fq:return e.P.bind(e.model.B.j.CJ,this.hc);case l.i.da.Gq:return e.P.bind(e.model.B.j.DJ,this.hc);case l.i.da.Ji:return e.P.bind(e.model.B.j.mJ,this.hc);case l.i.da.Rn:return e.P.bind(e.model.B.j.SI,this.hc);case l.i.da.an:return e.P.bind(e.model.B.j.TI,this.hc);case l.i.da.Wn:return e.P.bind(e.model.B.j.AJ,
this.hc);case l.i.da.cn:return e.P.bind(e.model.B.j.BJ,this.hc)}return this.hc}set caption(c){""==c.trim()?this.vc=e.model.B.j.zl:this.vc=c}get kl(){return this.hc}set kl(c){}clone(){var c=new a(this.A);this.iL(c);return c}}b.SA=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.JI{get caption(){return this.hierarchy.XC(this.ordinal)}set caption(c){}get Oh(){return this.level.Nu?!0:this.hierarchy.FM||this.hierarchy.As||this.level.Nu?(this.Rg||!this.vf)&&0==this.children.length:!1}set Oh(c){}get qj(){return this.A}}b.y8=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.it{constructor(c,d="",g=0){super(c,d,g)}}b.Hoa=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.ht{constructor(c,d=""){super(c,d);this.A$=0}get Qm(){return this.A$}set Qm(c){this.Mh||(c+=1);this.A$=c}lc(c){c.A==this.Or&&(c.Zb=!0);return super.lc(c)}set wm(c){""!=c&&!e.v(c)||this.Se?this.Or=c:(this.Or=this.A+".[(All)]",this.Hh(new l.O.it(this.A,this.caption+" (All)")),this.lc(new l.O.ae({A:this.Or,caption:this.caption+" (All)",Zb:!0})),this.tB=!1)}get wm(){return this.Or}vm(c="(Total)"){if(this.Mh)return this.wm+
".["+c+"]";var d=this.ms.split("].");d.pop();d.push("["+c+"]");return d.join("].")}TV(c,d){var g=this.Hia(c.children);g=e.Fg(this.ex)?this.lia(g):this.eZ(g);for(var k=[],m=0;m<g.length;m++)if(k.push(g[m].ordinal),d&&!c.Oh){var n=this.Yj(g[m],d);0<n.length&&(k=k.concat(n))}return k}eZ(c){this.Zf===l.i.za.ic&&e.Ja.sort(c,e.Ja.Ki,d=>d.fc);this.Zf===l.i.za.Kc&&e.Ja.sort(c,e.Ja.ep|e.Ja.Ki,d=>d.fc);return c}wS(c){c=this.Jv.find(c);return this.ya(c)}YC(){return new b.y8(this)}}b.AX=a})(f.O||(f.O={}))})(h.Eb||
(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.pA{constructor(c,d=""){super(c,d)}}b.Foa=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.yW{constructor(){super();this.VG=new b.Goa}vZ(c,d){this.e2.Ta(c.A,c);if(0==e.ia(c.value)){var g=new b.SA(c.value,this.hz(c.value,c.caption,e.model.B.j.O7,d));g.Dg=e.model.B.j.Sx;g.Mc=c.caption;g.type=l.i.Pa.jb;g.gr=c.A;this.lk(g)}0==e.ia(c.Ow)&&(g=new b.SA(c.Ow,this.hz(c.Ow,c.caption,e.model.B.j.K7,d)),g.Dg=e.model.B.j.Sx,g.Mc=c.caption,g.type=l.i.Pa.jb,g.gr=c.A,this.lk(g));0==e.ia(c.status)&&(g=new b.SA(c.status,
this.hz(c.status,c.caption,e.model.B.j.M7,d)),g.Dg=e.model.B.j.Sx,g.Mc=c.caption,g.type=l.i.Pa.jb,g.gr=c.A,g.uz=!0,this.lk(g));0==e.ia(c.Dx)&&(d=new b.SA(c.Dx,this.hz(c.Dx,c.caption,e.model.B.j.N7,d)),d.Dg=e.model.B.j.Sx,d.Mc=c.caption,d.type=l.i.Pa.jb,d.gr=c.A,d.vz=!0,this.lk(d))}bx(c,d=null,g=!1){var k=d?d:new b.SA(c.uniqueName);return super.bx(c,k,e.v(d)||g)}}b.Ioa=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.wW{eH(c){var d=super.eH(c);c!=l.i.qb.NONE&&(d.gm=[l.i.yc.ck,l.i.yc.Hi]);return d}}b.Goa=a})(f.O||(f.O={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(){this.$x=20;this.hpa=RegExp("<Tuple>(.|\n|\r)*?</Tuple>","gi");this.fpa=RegExp("<Cell (.|\n|\r)*?</Cell>","gi");this.gpa=RegExp("<row>(.|\n|\r)*?</row>","g");this.N8=RegExp("<soap:Fault(.|\n|\r)*?</soap:Fault>","gi");this.M8=RegExp("<SOAP-ENV:Fault(.|\n|\r)*?</SOAP-ENV:Fault>","gi");this.ha=l.Ra.V();this.v5=!0;this.yB=!1;this.tl=()=>this.Ls();this.Cj=()=>this.fq();this.pca=()=>this.MEa();this.Oz=c=>this.eq(c);this.ab=
()=>this.Sb()}load(c,d,g){this.ga=c;this.ik=d;this.Jb=g;this.yB=!1;this.Zw()}bd(c,d,g,k,m,n){this.ga=c;this.ik=d;this.Jb=n;this.yB=!0;this.Zw()}Zw(){e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,"0.5"));this.Qh();this.pD();b.dg.Ab=this.ga;this.oa.data=z.ba.Ic(b.dg.qw(this.ik.body));this.oa.load(this.ga.hf);this.timer=new u.wt(500,1E5);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start()}AL(){e.v(this.ga.withCredentials)||(this.oa.withCredentials=this.ga.withCredentials)}Qh(){this.oa=
new z.ek;this.oa.Kga=100;this.oa.contentType=z.yA.IP;this.oa.dataType=z.zA.ba;this.oa.rr=z.xt.zv;const c=JSON.parse(JSON.stringify(e.v(this.ga.sc)?{}:this.ga.sc));this.v5&&(c.Accept="application/xml");this.AL();this.ga.credentials&&this.ga.credentials.Lm&&(c.Authorization="Basic "+this.ga.credentials.hash,this.oa.withCredentials=!0);this.oa.Qh(c)}Ls(){null!=this.timer&&e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/2,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&e.Za("Can't connect to data source!",
e.model.B.j.Aa)}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,this.Cj))}pD(){this.oa.N(v.fa.Oc,this.pca);this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ab);this.Tj=f.Gj.NONE;this.ad=[];this.Lb=[];this.aC=[];this.BC=[];this.AC=[];this.KG=[];this.LY="";this.IQ=0;this.Ka=[];this.rows=[];this.Ba=[];this.wc=this.ha.O.wc();this.Kf=this.ha.ua.qr;this.vY=this.WF=!1;this.VD=this.UD=-1;this.Fc=[]}MEa(){var c=z.ba.Ic(z.ba.create(this.oa.response));
this.vY=!0;this.Nra(c)}eq(c){c=c.data;c.loaded!==this.nk&&(this.rg(),this.nk=c.loaded,this.P4(c.loaded))}Nra(c){this.Qd(c);!this.WF&&this.Tj>f.Gj.NONE&&this.RJa()}Qd(c){if(0!=c.length&&this.IQ!=c.length){var d=this.LY+c.substring(this.IQ);if(this.Tj===f.Gj.NONE){if(this.ga.Da==l.i.qa.Tc){if(this.N8.test(d)){this.ZGa(d.match(this.N8)[0]);this.kr();return}}else if(this.ga.Da==l.i.qa.le&&this.M8.test(d)){this.$Ga(d.match(this.M8)[0]);this.kr();return}var g=this.kW(d);-1<g&&(d=d.substr(g))}this.Tj==f.Gj.NW&&
(g=this.kW(d),0>g&&(g=d.lastIndexOf("</row>")+6),5!=g&&(this.zKa(d.substring(0,g),this.BC),d=d.substr(g)));this.Tj==f.Gj.FW&&(g=this.kW(d),0>g&&(g=d.lastIndexOf("</Tuple>")+8),7!=g&&(this.aja(d.substring(0,g),this.ad),d=d.substr(g)));this.Tj==f.Gj.JX&&(g=this.kW(d),0>g&&(g=d.lastIndexOf("</Tuple>")+8),7!=g&&(this.aja(d.substring(0,g),this.Lb),d=d.substr(g)));this.Tj==f.Gj.OX&&(g=d.indexOf("<CellData>"),-1<g&&(this.Tj=f.Gj.KI,d=d.substr(g)));this.Tj==f.Gj.KI&&(g=d.indexOf("</CellData>"),0>g&&(g=d.lastIndexOf("</Cell>")+
7),6!=g&&(this.xKa(d.substring(0,g),this.aC),d=d.substr(g)));this.IQ=c.length;this.LY=d}}$Ga(c){c=c.replace(/SOAP-ENV:Fault/gi,"Fault");c=c.replace(/XA:error/gi,"error");c=z.ba.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),e.Za(c,e.model.B.j.Aa,e.xb.Aa))}ZGa(c){c=c.replace(/soap:Fault/gi,"Fault");c=z.ba.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),e.Za(c,e.model.B.j.Aa,e.xb.Aa))}kW(c){var d=-1;if(this.yB&&this.Tj<f.Gj.NW){d=c.indexOf("<row>");this.Tj=
f.Gj.NW;if(-1<d)return d;e.Za("No data received from the server.",e.model.B.j.Aa)}if(this.Tj<f.Gj.FW&&(d=c.indexOf('<Axis name="Axis0">'),-1<d))return this.Tj=f.Gj.FW,d;if(this.Tj<f.Gj.JX&&(d=c.indexOf('<Axis name="Axis1">'),-1<d))return this.Tj=f.Gj.JX,d;if(this.Tj<f.Gj.OX&&(d=c.indexOf('<Axis name="SlicerAxis">'),-1<d))return this.Tj=f.Gj.OX,d;this.Tj<f.Gj.KI&&(d=c.indexOf("<CellData>"),-1<d&&(this.Tj=f.Gj.KI));return d}zKa(c,d){c=c.match(this.gpa);for(var g=0;g<c.length;g++){var k=c[g].replace(/xsi:/g,
"");k=k.replace(/xsd:/g,"");d.push(z.ba.create(k))}}aja(c,d){c=c.match(this.hpa);if(!e.v(d)&&!e.v(c))for(var g=0;g<c.length;g++){var k=c[g].replace(/xsi:/g,"");d.push(z.ba.create(k))}}xKa(c,d){c=c.match(this.fpa);if(!e.v(c)&&!e.v(d))for(var g=0;g<c.length;g++)e.v(c[g])||e.ia(c[g])||d.push(c[g])}RJa(){this.WF=!0;u.Cl.eo({Uo:()=>this.parse(),$e:()=>this.kr()})}parse(){0<this.ad.length&&this.ZU();0<this.Lb.length&&this.aV();this.Tj==f.Gj.KI&&(0==this.Ka.length&&(this.Ka=[[[0,0]]]),0==this.rows.length&&
(this.rows=[[]]));0<this.aC.length&&this.PGa();0<this.BC.length&&this.VGa();return this.vY&&0==this.ad.length&&0==this.Lb.length&&0==this.aC.length&&0==this.BC.length}PGa(){for(var c,d,g,k,m,n=this.$x>this.aC.length?this.aC.length:this.$x,p=this.aC.splice(0,n),t=e.model.C.F.vq&&this.ga.Da===l.i.qa.Tc,r=0;r<n;r++)c=p[r],g=null===c.match(/<Value.*>(.*)<\/Value>/)?0:parseFloat(c.match(/<Value.*>(.*)<\/Value>/)[1]),t&&(k=c.match(/<FmtValue.*>(.*)<\/FmtValue>/),k=null!=k&&1<k.length?k[1]:""),d=parseInt(c.match(/CellOrdinal="(.*)"/)[1]),
c=this.aD(d),d=this.QC(d),m=this.Ba[d],c==this.VD&&this.Ka[this.UD].toString()==this.Ka[d].toString()||-1==this.VD||-1==this.UD||(this.ha.ra.yT(this.rows[this.VD],this.Ka[this.UD],this.Fc,this.ik.lf,this.ik.Yt,this.ik.type),this.Fc=[]),this.Fc[m]=t&&this.Kf[m].aa==l.i.da.NONE?l.xJ.V().aA(k,g):g,this.VD=c,this.UD=d;-1!=this.VD&&-1!=this.UD&&this.ha.ra.yT(this.rows[this.VD],this.Ka[this.UD],this.Fc,this.ik.lf,this.ik.Yt,this.ik.type)}VGa(){for(var c,d,g=this.$x>this.BC.length?this.BC.length:this.$x;0<
g;){c=this.BC.shift();d=[];for(var k=0;k<c.getChildren().length;k++)this.XGa(c.getChildren()[k],d,k);this.AC.push(d);g--}}XGa(c,d,g){d[c.localName]=c.text();0>this.KG.indexOf(c.localName)&&this.KG.splice(g,0,c.localName)}vHa(){for(var c=[],d=0;d<this.KG.length;d++)c[this.KG[d]]=d;for(d=0;d<this.AC.length;d++){var g=this.AC[d],k=[],m;for(m in g)k[c[m]]=g[m];this.AC[d]=k}c=this.KG.map(n=>this.WGa(n));this.AC.unshift(c)}WGa(c){c=c.replace(/_x005B_/g,"[");c=c.replace(/_x005D_/g,"]");c=c.replace(/_x0020_/g,
" ");c=c.replace(/_x0024_/g,"");var d=this.wc.getItem(c);if(null!=d)return d.caption;d=this.Kf.find(g=>g.A===c);if(null!=d)return d.caption;d=c.split("].[");1<d.length&&(c=d[d.length-1].substr(0,d[d.length-1].length-1));return c}QC(c){return c%this.Ka.length}aD(c){return Math.floor(c/this.Ka.length)}aV(){for(var c,d,g=this.$x>this.Lb.length?this.Lb.length:this.$x;0<g;){this.rowIndex=0;d=[];c=this.Lb.shift();var k=c.find("Member");for(c=0;c<k.length;c++)this.oHa(k[c],d);this.rows.push(d);g--}}oHa(c,
d){var g=c.find("HIERARCHY_UNIQUE_NAME").text();g=this.wc.getItem(g);null!=g&&(c=this.Ib(c,g),d.push([c.level.wb,c.ordinal]),this.rowIndex++)}ZU(){for(var c,d,g=this.$x>this.ad.length?this.ad.length:this.$x;0<g;){this.Iua=0;c=[];d=this.ad.shift();d=d.find("Member");for(var k=0;k<d.length;k++)this.RGa(d[k],c);this.Ka.push(c);g--}}RGa(c,d){var g=c.find("HIERARCHY_UNIQUE_NAME").text();if("Measures"!=g&&"[Measures]"!=g){var k=this.wc.getItem(g);null==k&&(k=this.wc.getItem("["+g+"]"));null!=k&&(c=this.Ib(c,
k),d.push([c.level.wb,c.ordinal]),this.Iua++)}else{var m=c.find("UName").text();d=this.Kf.findIndex(n=>n.A===m);this.Ba.push(d)}}Ib(c,d){var g=c.find("UName").text(),k=d.Ib(g);if(e.v(k)){var m=c.find("Caption").text();-1<m.indexOf("(Total")&&(d.Mh?g=g.substring(0,g.lastIndexOf(".[(")):(g=g.substring(0,g.lastIndexOf(".[("))+".[(All)]",null==d.Ib(g)&&(g=g.substring(0,g.length-8))),k=d.Ib(g))}e.v(k)&&(m=c.find("Caption").text(),c=c.find("PARENT_UNIQUE_NAME").text(),k=d.lc(new l.O.ae({A:g,caption:m,vf:!0,
Bi:c})));return k}P4(c){c=u.Yb.Og(c);e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.jm,c))}kr(){e.Ca(!1);this.Jb&&(this.yB?(this.vHa(),this.Jb(this.AC)):this.Jb());this.clear()}Sb(){}clear(){this.oa&&(this.oa.sb(v.fa.Oc,this.pca),this.oa.sb(v.fa.ue,this.Oz),this.oa.sb(v.fa.Aa,this.ab),this.oa.close(),this.oa=null);this.timer&&this.timer.pl&&this.timer.stop();this.Tj=0;this.ad=[];this.Lb=[];this.aC=[];this.BC=[];this.AC=[];this.KG=[];this.IQ=0;this.LY="";this.Ka=[];this.rows=[];this.Ba=[];this.Kf=this.wc=
null;this.vY=this.WF=!1;this.VD=this.UD=-1;this.Fc=[]}cancel(){this.clear();this.Jb=null}}b.s9=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c){this.Wl=this.jl=this.QH=0;this.Vq=5E3;this.Cfa=1E3;this.state=l.jp.bF;this.td="";this.Wu=!1;this.bfa="";this.$aa=()=>this.mEa();this.cba=()=>this.oEa();this.pfa=()=>this.wj();this.Oz=d=>this.eq(d);this.sha=()=>this.kGa();this.tha=d=>this.lGa(d);this.qha=()=>this.gGa();this.aba=d=>this.nEa(d);this.ti=d=>this.Sb(d);b.dg.Ab=this.ga=c}Jm(){this.oa=new z.ek;this.oa.contentType=z.yA.IP;this.oa.dataType=z.zA.ba;this.oa.rr=
z.xt.zv;this.AL();const c=JSON.parse(JSON.stringify(e.v(this.ga.sc)?{}:this.ga.sc));this.ga.credentials&&this.ga.credentials.Lm&&(c.Authorization="Basic "+this.ga.credentials.hash,this.oa.withCredentials=!0);this.oa.Qh(c)}AL(){e.v(this.ga.withCredentials)||(this.oa.withCredentials=this.ga.withCredentials)}BH(){return e.ia(this.hierarchy.gg)?this.hierarchy.Qm<this.Cfa:this.hierarchy.Qm<10*this.Cfa}po(){return e.ia(this.ga.We)?"["+this.ga.xa+"]":"("+this.ga.We+")"}Jva(c,d){this.Lva=c;this.ab=d;c=this.po();
c=e.P.bind("with member [Measures].[CountAllMembers] as Count({0}.allmembers) select NON EMPTY {[Measures].[CountAllMembers]} ON columns FROM {1}",this.hierarchy.A,c);this.Jm();this.oa.data=z.ba.Ic(b.dg.qw(c));this.oa.N(v.fa.Oc,this.$aa);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}mEa(){var c=z.ba.create(this.oa.response);this.jA(c)&&(this.hierarchy.Qm=parseInt(c.find("root CellData Cell Value").text()));this.Lva()}jA(c){return 0==c.length?(e.Za(e.model.B.j.cF,"",e.xb.Aa),e.Ca(!1),!1):0<c.find("root Fault").length?
(e.Za(z.ba.Ic(c.find("root Fault faultstring")),"Query error!",e.xb.Aa),!1):!0}load(c,d,g){this.td="";this.dE&&(this.dE.length=0);this.Wl=this.jl=this.QH=0;this.Jb=d;this.ab=g;this.bc=c;this.BH()?this.gl():this.count()}count(){var c=this.po();c=null==this.bc?e.P.bind("with member [Measures].[CountMembers] as Count({0}.levels(1).allmembers) select  NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",this.hierarchy.A,c):e.P.bind("with member [Measures].[CountMembers] as Count({0}.children) select NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",
this.bc.A,c);this.Jm();this.oa.data=z.ba.Ic(b.dg.qw(c));this.oa.N(v.fa.Oc,this.cba);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}oEa(){var c=z.ba.create(this.oa.response);this.jA(c)&&(this.QH=parseInt(c.find("root CellData Cell Value").text()),this.gl())}mC(){return""}j_(){return""}gl(){var c=this.j_();this.state=l.jp.bF;this.Jm();this.oa.data=z.ba.Ic(b.dg.qw(c));this.oa.N(v.fa.Oc,this.pfa);this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}wj(){this.Wl+=this.oa.Pi;
var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;this.jA(c)&&this.SD(c);this.jl+=this.Vq;this.jl<this.QH&&!this.BH()?this.gl():this.CU()}SD(c){var d=c.find("root");if(0<d.find("Fault").length)e.Za(z.ba.Ic(d.find("Fault faultstring")),"Query error!",e.xb.Aa);else{c=[];d=d.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var g=this.hierarchy.Ri,k=0;k<d.length;k++)c.push(this.$U(d[k],k+g));return c}}$U(){return null}CU(){e.Ca(!1);this.Jb(this.hierarchy)}eq(c){c=u.Yb.Og(c.data.loaded+
this.Wl);e.Ca(!0,e.model.B.j.Un,this.hierarchy.caption+", "+e.P.bind(e.model.B.j.jm,c))}Sb(c){e.Za(c.message,"Error",e.xb.Aa);null!=this.ab&&(this.ab(c.message),this.ab=null)}MZ(c,d,g,k,m){this.Jb=k;this.ab=m;this.Wu=g;this.hierarchy=c;this.state=l.jp.L5;c=[];for(g=0;g<d.length;g++)c.push(e.P.bind("Ascendants({0})",d[g]));d="{"+c.join(", ")+"}";this.Wl=0;this.Jm();c=this.po();d=e.P.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",d,c);this.oa.data=
z.ba.Ic(b.dg.qw(d));this.oa.N(v.fa.Oc,()=>this.J2());this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}J2(){this.Wl+=this.oa.Pi;var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;if(this.jA(c)){c=this.SD(c);for(var d=0;d<c.length;d++)this.hierarchy.ya(c[d]).vf=!0;this.Wu?this.R4(c,this.ab):this.hierarchy.pw()}this.Wu||this.Jb(this.hierarchy)}ww(c,d,g,k,m){this.Jb=k;this.ab=m;this.hierarchy=c;this.bfa=g;this.state=l.jp.Wka;this.Wl=0;this.Jm();c=this.po();
d=e.P.bind("SELECT Hierarchize(Distinct(Descendants({0}, {1}, SELF_AND_BEFORE))) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {2}",d.A,g,c);this.oa.data=z.ba.Ic(b.dg.qw(d));this.oa.N(v.fa.Oc,()=>this.AEa());this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}AEa(){this.Wl+=this.oa.Pi;var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;if(this.jA(c)){c=this.SD(c);for(var d=0;d<c.length;d++){var g=this.hierarchy.ya(c[d]);g.level.A==this.bfa?g.vf=!0:
this.hierarchy.Xy(g)}}this.Jb(this.hierarchy)}R4(c,d){this.ab=d;d=[];for(var g=0;g<c.length;g++)d.push(e.P.bind("{0}.Siblings",this.hierarchy.ya(c[g]).A));c="{"+d.join(", ")+"}";this.state=l.jp.X8;this.Wl=0;this.Jm();d=this.po();c=e.P.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",c,d);this.oa.data=z.ba.Ic(b.dg.qw(c));this.oa.N(v.fa.Oc,()=>this.F3());this.oa.N(v.fa.ue,this.Oz);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}F3(){this.Wl+=this.oa.Pi;
var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;this.Wu=!1;if(this.jA(c)){c=this.SD(c);for(var d=0;d<c.length;d++)this.hierarchy.ya(c[d]).vf=!0;this.hierarchy.pw()}this.Jb(this.hierarchy)}search(c,d,g){this.td=c.toLowerCase().replace(RegExp('"',"g"),'""').replace(RegExp("'","g"),"''");this.Jb=d;this.ab=g;this.Wl=this.jl=this.QH=0;this.state=l.jp.KX;this.dE&&0<this.dE.length?this.dE.length=0:this.dE=[];this.Ova()}m_(){var c=e.P.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.allmembers, {1}), (INSTR(1, {0}.CurrentMember.member_caption, {2}) > 0))'",
this.hierarchy.A,this.hierarchy.wm,'"'+this.td+'"');var d=e.P.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.wm);return c+"\n"+d+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"}Ova(){var c=this.po(),d="MEMBER [Measures].[CountSearchSet] AS 'COUNT([SearchSet])'\nSELECT NON EMPTY {[Measures].[CountSearchSet]} ON COLUMNS FROM {0}";d="WITH "+this.m_()+"\n"+e.P.bind(d,c);this.Jm();
this.oa.data=z.ba.Ic(b.dg.qw(d));this.oa.N(v.fa.Oc,this.qha);this.oa.N(v.fa.ue,this.aba);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}gGa(){var c=z.ba.create(this.oa.response);this.jA(c)&&(this.QH=parseInt(c.find("root CellData Cell Value").text()),this.nq())}nEa(c){e.Ca(!0,"Counting members...",this.hierarchy.caption+", "+Math.round(c.data.loaded/1E3)+"K loaded")}nq(){var c=this.po(),d="SELECT SUBSET([SearchSet], {0}, {1}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM {2}";d="WITH "+
this.m_()+"\n"+e.P.bind(d,this.jl,this.Vq,c);this.Jm();this.oa.data=z.ba.Ic(b.dg.qw(d));this.oa.N(v.fa.Oc,this.sha);this.oa.N(v.fa.ue,this.tha);this.oa.N(v.fa.Aa,this.ti);this.oa.load(this.ga.hf)}lGa(c){c=u.Yb.Og(c.data.loaded+this.Wl);e.Ca(!0,e.model.B.j.Un,this.hierarchy.caption+", "+e.P.bind(e.model.B.j.jm,c))}kGa(){this.Wl+=this.oa.Pi;var c=z.ba.create(this.oa.response);this.oa.close();this.oa=null;this.jA(c)&&this.qHa(c);this.jl+=this.Vq;this.jl<this.QH?this.nq():this.ND()}qHa(c){c=c.find("root");
if(0<c.find("Fault").length)e.Za(z.ba.Ic(c.find("Fault faultstring")),"Query error!",e.xb.Aa);else{c=c.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var d=0;d<c.length;d++)this.pHa(c[d])}}pHa(c){var d=c.find("PARENT_UNIQUE_NAME").text();var g=c.find("Caption").text(),k=c.find("UName").text(),m=parseInt(c.find("MEMBER_ORDINAL").text()),n=this.hierarchy.Ib(k);if(null==n&&(n=this.hierarchy.lc(new l.O.ae({A:k,caption:g,fc:m,Bi:d})),n.level&&0<n.level.Ue.length))for(g=0;g<n.level.Ue.length;g++)d=
n.level.Ue.ea(g),n.setProperty(d.A,c.find(d.XN).text());n.parent&&!n.parent.Zb&&(n.parent.vf=!0);this.dE.push(n.ordinal)}ND(){e.Ca(!1);this.Jb(this.dE)}cancel(){this.oa&&(this.oa.sb(v.fa.Oc,this.$aa),this.oa.sb(v.fa.Oc,this.cba),this.oa.sb(v.fa.Oc,this.pfa),this.oa.sb(v.fa.ue,this.Oz),this.oa.sb(v.fa.Oc,this.sha),this.oa.sb(v.fa.ue,this.tha),this.oa.sb(v.fa.Oc,this.qha),this.oa.sb(v.fa.ue,this.aba),this.oa.sb(v.fa.Aa,this.ti),this.oa.close());this.ab=this.oa=null}}b.t9=a})(f.cj||(f.cj={}))})(h.Eb||
(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c){this.xa=l.Ra.V();this.v5=!0;this.Jba=()=>this.EU();this.Kba=d=>this.BEa(d);this.lDa=()=>this.yFa();this.nDa=d=>this.AFa(d);this.ti=d=>this.Sb(d);this.Xda=()=>this.Z2();this.Yda=d=>this.bFa(d);this.dfa=()=>this.i3();this.efa=d=>this.lFa(d);this.Lga=()=>this.UFa();this.Mga=d=>this.WFa(d);this.wfa=()=>this.p3();this.xfa=d=>this.CFa(d);this.P7=()=>this.e3();this.Q7=d=>this.hFa(d);this.ga=c;this.Nl=new z.ek;this.CD=
new z.ek;this.Qp=new z.ek;this.Wp=new z.ek;this.Sp=new z.ek;this.Vp=new z.ek;this.jq=new z.ek}Mp(c){return c.find("row")}load(c,d,g,k){this.Nb=d;this.ab=g;this.Oe=k;this.o2(this.M2)}Jm(c){this.AL(c);this.Qh(c)}AL(c){e.v(this.ga.withCredentials)||(c.withCredentials=this.ga.withCredentials)}Qh(c){c.contentType=z.yA.IP;c.dataType=z.zA.ba;c.rr=z.xt.zv;const d=JSON.parse(JSON.stringify(e.v(this.ga.sc)?{}:this.ga.sc));this.v5&&(d.Accept="application/xml");this.ga.credentials&&this.ga.credentials.Lm&&(d.Authorization=
"Basic "+this.ga.credentials.hash,c.withCredentials=!0);c.Qh(d);return c}Sb(c){this.Nl.Yd(v.fa.Aa);this.Nl.Yd(v.fa.Oc);this.Nl.Yd(v.fa.ue);c=c.target.url.trim();c=e.model.B.j.Xna.replace("{0}",'<u><a href="'+c+'">'+c+"</a></u>");e.Za(c,"",e.xb.Aa);this.ab(c)}Vs(){null!=this.Oe&&(this.Oe(),this.Oe=null)}o2(c){e.Ca(!0,e.model.B.j.tJ);this.FG=c;this.Jm(this.Nl);b.dg.Ab=this.ga;this.Nl.data=z.ba.Ic(b.dg.Wua());this.Nl.N(v.fa.Oc,this.Jba);this.Nl.N(v.fa.ue,this.Kba);this.Nl.N(v.fa.Aa,this.ti);this.Nl.load(this.ga.hf)}BEa(c){c=
u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.tJ,e.P.bind(e.model.B.j.jm,c))}EU(){this.Vs();var c=z.ba.create(this.Nl.response);c=this.Mp(c);if(0<c.length){for(var d=0;d<c.length;d++)this.mga(c[d]);this.FG()}else e.Za(e.model.B.j.cF,"",e.xb.Aa),e.Ca(!1)}mga(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=this.ga.mapping.Ha(d,"caption",c.find("DIMENSION_CAPTION").text());c=parseInt(c.find("DIMENSION_TYPE").text());d=new l.O.pA(d,g);d.type=c;this.xa.O.Wt(d)}M2(){this.ga.Da==l.i.qa.Tc?this.VCa(this.zFa):
this.oU(this.MU)}VCa(c){e.Ca(!0,e.model.B.j.tJ);this.mDa=c;this.Jm(this.CD);b.dg.Ab=this.ga;this.CD.data=z.ba.Ic(b.dg.kva());this.CD.N(v.fa.Oc,this.lDa);this.CD.N(v.fa.ue,this.nDa);this.CD.N(v.fa.Aa,this.ti);this.CD.load(this.ga.hf)}AFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.tJ,e.P.bind(e.model.B.j.jm,c))}yFa(){this.Vs();var c=z.ba.create(this.CD.response);c=this.Mp(c);for(var d=0;d<c.length;d++)this.iHa(c[d]);this.mDa()}iHa(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("MEASUREGROUP_NAME").text();
c=c.find("DIMENSION_GRANULARITY").text();d=this.xa.O.Kp(d);if(null!=d){d.fD||(d.fD=[]);var k=d.fD;k[g]=c;d.fD=k}}zFa(){this.oU(this.MU)}oU(c){e.Ca(!0,e.model.B.j.vX);this.vM=c;this.Jm(this.Qp);this.Qp.data=z.ba.Ic(b.dg.rw());this.Qp.N(v.fa.Oc,this.Xda);this.Qp.N(v.fa.ue,this.Yda);this.Qp.N(v.fa.Aa,this.ti);this.Qp.load(this.ga.hf)}Z2(){var c=z.ba.create(this.Qp.response);c=this.Mp(c);if(0==c.length)e.Za(e.model.B.j.cF,"",e.xb.Aa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.cHa(c[d]);this.vM()}}cHa(c){var d=
c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=this.ga.mapping.Ha(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());d=this.xa.O.Kp(d);null!=d&&(g=this.ga.Da==l.i.qa.Tc?new f.O.AX(g,k):new f.Yp.O.t8(g,k),g.origin=1,g.Mc=n,g.type=l.i.Lc.JC(m),g.wm=p,g.ms=t,1==c&&(g.FM=!0),2==c&&
(g.As=!0),d.oi(g))}bFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.vX,e.P.bind(e.model.B.j.jm,c))}MU(){this.SM(this.j3)}SM(c){e.Ca(!0,e.model.B.j.wX);this.QM=c;this.Jm(this.Vp);this.Vp.data=z.ba.Ic(b.dg.iva());this.Vp.N(v.fa.Oc,this.dfa);this.Vp.N(v.fa.ue,this.efa);this.Vp.N(v.fa.Aa,this.ti);this.Vp.load(this.ga.hf)}lFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.wX,e.P.bind(e.model.B.j.jm,c))}i3(){var c=z.ba.create(this.Vp.response);c=this.Mp(c);if(0==c.length)e.Za(e.model.B.j.cF,"",e.xb.Aa),
e.Ca(!1);else{for(var d=0;d<c.length;d++)this.qga(c[d]);this.QM()}}j3(){e.model.C.F.jI?this.WCa(this.VFa):this.qU(this.SU)}qga(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_CAPTION").text(),m=parseInt(c.find("LEVEL_TYPE").text()),n=c.find("LEVEL_UNIQUE_NAME").text();c=parseInt(c.find("LEVEL_NUMBER").text());d=this.xa.O.Kp(d);null!=d&&(g=d.fh(g),null!=g&&(k=new l.O.it(n,k,c),k.type=l.i.ib.JC(m),g.Hh(k),d.oi(g)))}WCa(c){e.Ca(!0,e.model.B.j.l8);
this.KHa=c;this.Jm(this.jq);this.jq.data=z.ba.Ic(b.dg.nva());this.jq.N(v.fa.Oc,this.Lga);this.jq.N(v.fa.ue,this.Mga);this.jq.N(v.fa.Aa,this.ti);this.jq.load(this.ga.hf)}WFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.l8,e.P.bind(e.model.B.j.jm,c))}UFa(){var c=z.ba.create(this.jq.response);c=this.Mp(c);if(0!=c.length)for(var d=0;d<c.length;d++)this.N3(c[d]);this.KHa()}N3(){}VFa(){this.qU(this.SU)}qU(c){e.Ca(!0,e.model.B.j.kP);this.TM=c;this.Jm(this.Wp);this.Wp.data=z.ba.Ic(b.dg.qo());this.Wp.N(v.fa.Oc,
this.wfa);this.Wp.N(v.fa.ue,this.xfa);this.Wp.N(v.fa.Aa,this.ti);this.Wp.load(this.ga.hf)}CFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.kP,e.P.bind(e.model.B.j.jm,c))}p3(){var c=z.ba.create(this.Wp.response);c=this.Mp(c);if(0==c.length)e.Za(e.model.B.j.cF,"",e.xb.Aa),e.Ca(!1);else{for(var d=0;d<c.length;d++)this.jHa(c[d]);this.TM()}}jHa(c){var d=c.find("MEASURE_UNIQUE_NAME").text(),g=this.ga.mapping.Ha(d,"caption",c.find("MEASURE_CAPTION").text()),k=c.find("MEASUREGROUP_NAME").text();c=c.find("MEASURE_DISPLAY_FOLDER").text()||
"";g=new f.O.SA(d,g);g.type=1;g.Dg=k;g.Mc=c;g.Wc=this.ga.mapping.Ha(d,"aggregations");this.xa.O.lk(g)}SU(){this.pU(this.f3)}pU(c){e.Ca(!0,e.model.B.j.k8);this.IM=c;this.Jm(this.Sp);this.Sp.data=z.ba.Ic(b.dg.eva());this.Sp.N(v.fa.Oc,this.P7);this.Sp.N(v.fa.ue,this.Q7);this.Sp.N(v.fa.Aa,this.ti);this.Sp.load(this.ga.hf)}hFa(c){c=u.Yb.Og(c.data.loaded);e.Ca(!0,e.model.B.j.kP,e.P.bind(e.model.B.j.jm,c))}e3(){var c=z.ba.create(this.Sp.response);c=this.Mp(c);if(0!=c.length)for(var d=0;d<c.length;d++)this.eHa(c[d]);
this.IM()}eHa(c){var d=c.find("KPI_NAME").text(),g=this.ga.mapping.Ha(d,"caption",c.find("KPI_CAPTION").text()),k=c.find("KPI_VALUE").text(),m=c.find("KPI_STATUS").text(),n=c.find("KPI_GOAL").text();c=c.find("KPI_TREND").text();d=new f.O.x8(d,g);d.value=k;d.status=m;d.Ow=n;d.Dx=c;this.xa.O.vZ(d,this.ga.mapping)}f3(){e.Ca(!1);null!=this.Nb&&this.Nb()}gl(c,d,g){e.Ca(!0,e.model.B.j.Un,c.caption);this.Nb=d;this.ab=g;this.Xl.hierarchy=c;this.Xl.Jva(()=>{this.Bk(c,null,k=>this.Sj(k),g)},this.ab)}Sj(c){var d=
c.ev;if(0<c.filter.cm.length)this.RM(c,c.filter.cm,c.filter.YH,k=>this.Sj(k),this.ab);else if(0<d.length){var g=d.shift();c.ev=d;d=c.Ib(g[1]);c.Xy(d);null!=g[0]&&""!=g[0]?this.Cz(d,g[0],k=>this.Sj(k),this.ab):this.Bk(c,d,k=>this.Sj(k),this.ab)}else this.Nb(c)}Bk(c,d,g,k){e.Ca(!0,e.model.B.j.Un,c.caption);this.Xl.hierarchy=c;this.Xl.load(d,g,k)}RM(c,d,g,k,m){this.Xl.hierarchy=c;this.Xl.MZ(c,d,g,k,m)}Cz(c,d,g,k){this.Xl.hierarchy=c.hierarchy;this.Xl.ww(c.hierarchy,c,d,g,k)}nq(c,d,g,k){this.Xl.hierarchy=
c;this.Xl.search(d,g,k)}ZB(){return!0}cancel(){this.Nl&&(this.Nl.sb(v.fa.Oc,this.Jba),this.Nl.sb(v.fa.ue,this.Kba),this.Nl.sb(v.fa.Aa,this.ti),this.Nl.close(),this.Nl=null);this.Qp&&(this.Qp.sb(v.fa.Oc,this.Xda),this.Qp.sb(v.fa.ue,this.Yda),this.Qp.sb(v.fa.Aa,this.ti),this.Qp.close(),this.Qp=null);this.Vp&&(this.Vp.sb(v.fa.Oc,this.dfa),this.Vp.sb(v.fa.ue,this.efa),this.Vp.sb(v.fa.Aa,this.ti),this.Vp.close(),this.Vp=null);this.jq&&(this.jq.sb(v.fa.Oc,this.Lga),this.jq.sb(v.fa.ue,this.Mga),this.jq.sb(v.fa.Aa,
this.ti),this.jq.close(),this.jq=null);this.Wp&&(this.Wp.sb(v.fa.Oc,this.wfa),this.Wp.sb(v.fa.ue,this.xfa),this.Wp.sb(v.fa.Aa,this.ti),this.Wp.close(),this.Wp=null);this.Sp&&(this.Sp.sb(v.fa.Oc,this.P7),this.Sp.sb(v.fa.ue,this.Q7),this.Sp.sb(v.fa.Aa,this.ti),this.Sp.close(),this.Sp=null);this.Xl&&(this.Xl.cancel(),this.Xl=null);this.Oe=this.ab=this.Nb=null}}b.u9=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{static qw(c){var d=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),g=z.ba.create("<Catalog/>").text(this.Ab.Be),k=z.ba.create("<AxisFormat/>").text("TupleFormat"),m=z.ba.create("<Content/>").text("Data"),n=z.ba.create("<Format/>").text("Multidimensional");d=a.hs([d,g,k,m,n]);c=z.ba.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement><![CDATA['+c+"]]\x3e</Statement></Command>"+z.ba.Ic(d)+"</Execute>");
return a.Jp(c)}static Sua(){return a.Jp(a.gs(z.ba.create("<RequestType/>").text("DISCOVER_DATASOURCES"),z.ba.create("<Restrictions/>"),z.ba.create("<Properties/>")))}static qva(){var c=z.ba.create("<Content/>").text("Data"),d=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh);c=a.hs([c,d]);return a.Jp(a.gs(z.ba.create("<RequestType/>").text("DISCOVER_PROPERTIES"),z.ba.create("<Restrictions/>").append(z.ba.create("<RestrictionList/>").append(z.ba.create("<PropertyName/>").text("DBMSVersion"))),c))}static Mua(){var c=
z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d]);d=z.ba.create("<RequestType/>").text("DBSCHEMA_CATALOGS");var g=z.ba.create("<Restrictions/>");return a.Jp(a.gs(d,g,c))}static Rua(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);d=a.Ly([d]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_CUBES");
return a.Jp(a.gs(g,d,c))}static Wua(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_DIMENSIONS");return a.Jp(a.gs(g,d,c))}static kva(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),
g=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_MEASUREGROUP_DIMENSIONS");return a.Jp(a.gs(g,d,c))}static rw(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);
g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_HIERARCHIES");return a.Jp(a.gs(g,d,c))}static iva(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_LEVELS");
return a.Jp(a.gs(g,d,c))}static nva(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_PROPERTIES");return a.Jp(a.gs(g,d,c))}static eva(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),
d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_KPIS");return a.Jp(a.gs(g,d,c))}static qo(){var c=z.ba.create("<DataSourceInfo/>").text(this.Ab.Wh),d=z.ba.create("<Catalog/>").text(this.Ab.Be),g=z.ba.create("<Cube/>").text(this.Ab.xa),k=z.ba.create("<Format/>").text("Tabular");
c=a.hs([c,d,g,k]);d=z.ba.create("<CATALOG_NAME/>").text(this.Ab.Be);g=z.ba.create("<CUBE_NAME/>").text(this.Ab.xa);d=a.Ly([d,g]);g=z.ba.create("<RequestType/>").text("MDSCHEMA_MEASURES");return a.Jp(a.gs(g,d,c))}static Jp(c){var d=z.ba.create('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" flexmonster="true"><SOAP-ENV:Body></SOAP-ENV:Body></SOAP-ENV:Envelope>');
d.firstElementChild.appendChild(c);return d}static hs(c){var d=z.ba.create("<PropertyList/>").attr("flexmonster","true"),g=z.ba.create("<Properties/>");if(""!=a.Ab.Hk){var k=z.ba.create("<Roles/>").text(a.Ab.Hk);c.push(k)}""!=a.Ab.oj&&(k=z.ba.create("<EffectiveUserName/>").text(a.Ab.oj),c.push(k));""!=a.Ab.uj&&(k=z.ba.create("<LocaleIdentifier/>").text(a.Ab.uj),c.push(k));""!=a.Ab.Cm&&(k=z.ba.create("<CustomData/>").text(a.Ab.Cm),c.push(k));for(k=0;k<c.length;k++)d.append(c[k]);g.append(d);return g}static Ly(c){for(var d=
z.ba.create("<RestrictionList/>"),g=z.ba.create("<Restrictions/>"),k=0;k<c.length;k++)d.append(c[k]);g.append(d);return g}static gs(c,d,g){return z.ba.create('<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">'+z.ba.Ic(c)+z.ba.Ic(d)+z.ba.Ic(g)+"</Discover>")}static Nua(c,d,g){var k=z.ba.create('<ClearCache xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"/>'),m=z.ba.create("<Object/>");null!=c&&m.append(z.ba.create("<DatabaseID/>").text(c));null!=d&&m.append(z.ba.create("<CubeID/>").text(d));
null!=g&&m.append(z.ba.create("<MeasureGroupID/>").text(g));k.append(m);return a.Jp(z.ba.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"/>').append(z.ba.create("<Command/>").append(k)).append(z.ba.create("<Properties/>")))}}b.dg=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(){this.lN=this.eV="";if(null!=a.instance)throw Error("Singleton");}static V(){null==a.instance&&(a.instance=new a);return a.instance}static dispose(){a.instance=null}Mp(c){return c.find("row")}IV(){this.oa=new z.ek;this.oa.contentType=z.yA.IP;this.oa.rr=z.xt.zv}eD(c,d){this.Jb=d;this.lN!=c?this.bda(c,()=>function(){d(this.eV)}):this.Jb&&this.Jb(this.eV);return this.eV}bda(c,d){this.Jb=d;this.lN=c;this.IV();this.oa.data=
z.ba.Ic(b.dg.Sua());this.oa.N(v.fa.Oc,()=>this.uEa());this.oa.N(v.fa.Aa,()=>this.vEa());this.oa.load(c)}uEa(){if(!e.ia(this.oa.response)){var c=z.ba.create(this.oa.response);c=this.Mp(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("DataSourceName").text();this.eV=c[g].find("ProviderName").text();d.push(k)}this.Jb&&this.Jb(d)}}vEa(){const c=e.model.Tb.valid(this.lN)?this.lN:e.model.Tb.validate(this.lN);e.Za("Error opening URL <u>"+c+"</u><br/>Please check your Internet connection.<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#url-error' target='_blank'>Read more info about this error</a></u>",
e.model.B.j.Aa,e.xb.Aa);this.Jb&&this.Jb([])}dza(c,d,g){this.Jb=g;b.dg.Ab=new f.kp;b.dg.Ab.Wh=d;this.IV();this.oa.data=z.ba.Ic(b.dg.Mua());this.oa.N(v.fa.Oc,()=>this.SDa());this.oa.N(v.fa.Aa,()=>this.TDa());this.oa.load(c)}SDa(){var c=z.ba.create(this.oa.response);c=this.Mp(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("CATALOG_NAME").text();d.push(k)}this.Jb&&this.Jb(d)}TDa(){e.Za("Error discovering catalogs",e.model.B.j.Aa,e.xb.Aa);this.Jb&&this.Jb([])}uza(c,d,g,k){this.Jb=k;b.dg.Ab=new f.kp;
b.dg.Ab.Wh=d;b.dg.Ab.Be=g;this.IV();this.oa.data=z.ba.Ic(b.dg.Rua());this.oa.N(v.fa.Oc,()=>this.pEa());this.oa.N(v.fa.Aa,()=>this.qEa());this.oa.load(c)}pEa(){var c=z.ba.create(this.oa.response);c=this.Mp(c);for(var d=[],g=0;g<c.length;g++){var k=c[g].find("CUBE_NAME").text();d.push(k)}this.Jb&&this.Jb(d)}qEa(){e.Za("Error discovering cubes",e.model.B.j.Aa,e.xb.Aa);this.Jb&&this.Jb([])}vR(c,d,g,k,m){this.IV();this.oa.data=z.ba.Ic(b.dg.Nua(d,g,k));this.oa.N(v.fa.Oc,()=>this.ZDa(m));this.oa.N(v.fa.Aa,
()=>this.$Da(m));this.oa.load(c)}ZDa(c){null!=c&&c({complete:!0,response:this.oa.response})}$Da(c){null!=c&&c({complete:!1})}}b.q9=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d=null){this.VY=this.wK=this.GF="";null==d?this.GF=c:(this.wK=c,this.VY=d)}set hash(c){}get hash(){return 0<this.GF.length?this.GF:u.Nja.encode(this.wK+":"+this.VY)}set Lm(c){}get Lm(){return this.GF&&0<this.GF.length||this.wK&&0<this.wK.length}static zb(c){var d=new a("");c.hasOwnProperty("hash")&&(d.GF=c.hash?c.hash:"");c.hasOwnProperty("username")&&(d.wK=c.username?c.username:"");c.hasOwnProperty("password")&&
(d.VY=c.password?c.password:"");return d}}b.r9=a})(f.cj||(f.cj={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{am(c){if(e.model.Ua.V().n1(e.model.Ua.OJ)){const d=new e.model.cd(e.model.Ua.OJ,g=>{if(!e.v(g)&&!e.v(g.requestHeaders)){const k=this.ma.sc||{};for(let m in g.requestHeaders)g.requestHeaders.hasOwnProperty(m)&&(k[m]=g.requestHeaders[m]);this.ma.sc=k;this.jf.sc=k}c(!0)});e.model.Ua.V().Fa(d)}else c(!1)}}b.rW=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.rW{constructor(c){super();this.xa=l.Ra.V();this.ma=c;this.oa=new b.Fja(c)}load(c,d,g,k){this.ma=c;this.Nb=d;this.Oe=k;this.ab=g;this.jf=new b.yP(this.ma.hf,e.model.Ga.pa.J(e.model.Ga.pa.fV),!0,this.ma.sc,this.ma.withCredentials);this.Pda=()=>this.JN();this.YAa()}YAa(){e.Ca(!0,e.model.B.j.dF);null!=this.jf&&this.jf.call("Handshaking",{componentVersion:e.ph.ft,acceleratorMinVersion:a.jja},()=>this.Pda(),c=>this.Sb(c),
c=>this.am(c))}JN(){null!=this.Oe&&(this.Oe(),this.Oe=null);this.FG=()=>this.M2();this.o2()}o2(){null!=this.jf&&(e.Ca(!0,e.model.B.j.tJ),this.jf.call("DiscoverDimensions",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},(c,d)=>this.EU(c,d),c=>this.Sb(c),c=>this.am(c)))}EU(c,d){if(null!=this.FG){null!=d&&0<d.sessionId&&(f.kp.sessionId=
d.sessionId);for(d=0;d<c.length;d++){var g=c[d];var k=g.uniqueName;var m=this.ma.mapping.Ha(k,"caption",g.caption),n=g.type;k=new f.O.Foa(k,m);k.type=n;k.fD=g.granularityNames;k.description=g.description;this.xa.O.Wt(k)}this.FG()}}M2(){this.vM=()=>this.MU();this.oU()}oU(){null!=this.jf&&(e.Ca(!0,e.model.B.j.vX),this.jf.call("DiscoverHierarchies",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,
customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},c=>this.Z2(c),c=>this.Sb(c),c=>this.am(c)))}Z2(c){if(null!=this.vM){for(var d=0;d<c.length;d++){var g=c[d],k=g.dimensionUniqueName,m=g.uniqueName,n=this.ma.mapping.Ha(m,"caption",g.caption),p=g.type,t=g.allMemberName,r=g.defaultMemberName,w=g.displayFolder||"",y=g.isParentChild||!1,A=g.isRagged||!1;k=this.xa.O.Kp(k);null!=k&&(m=this.ma.Da==l.i.qa.Tc?new f.O.AX(m,n):new f.Yp.O.t8(m,n),m.origin=1,m.type=
l.i.Lc.JC(p),m.wm=t,m.ms=r,m.Mc=w,m.As=y,m.FM=A,m.description=g.description,k.oi(m))}this.vM()}}MU(){this.QM=()=>this.j3();this.SM()}SM(){null!=this.jf&&(e.Ca(!0,e.model.B.j.wX),this.jf.call("DiscoverLevels",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},c=>this.i3(c),c=>this.Sb(c),c=>this.am(c)))}i3(c){if(null!=
this.QM){for(var d=0;d<c.length;d++){var g=c[d],k=g.hierarchyUniqueName,m=g.caption,n=g.type,p=g.dbType,t=g.uniqueName,r=g.levelNumber,w=g.properties,y=this.xa.O.Kp(g.dimensionUniqueName);if(null!=y&&(k=y.fh(k),null!=k&&(m=new f.O.Hoa(t,m,r),m.type=e.v(n)?l.i.ib.$c:l.i.ib.JC(n,!e.v(p)&&0==n,p),m.description=g.description,k.Hh(m),y.oi(k),e.model.C.F.jI&&null!=w&&0<w.length)))for(n=0;n<w.length;n++)g=e.v(w[n].item)?w[n]:w[n].item,g=new l.O.xW(g[0],g[1]),m.zZ(g)}this.QM()}}j3(){this.TM=()=>this.SU();
this.qU()}qU(){null!=this.jf&&(e.Ca(!0,e.model.B.j.kP),this.jf.call("DiscoverMeasures",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},c=>this.p3(c),c=>this.Sb(c),c=>this.am(c)))}p3(c){if(null!=this.TM){for(var d,g=0;g<c.length;g++){var k=c[g],m=k.uniqueName;d=this.ma.mapping.Ha(m,"caption",k.caption);
var n="String"==typeof k.type?l.i.Pa.sya(k.type):l.i.Pa.jb,p=k.groupCaption||k.groupName||"",t=k.displayFolder||"";d=new f.O.SA(m,d);d.type=n;d.Dg=p;d.Mc=t;d.Wc=this.ma.mapping.Ha(m,"aggregations");d.description=k.description;this.xa.O.lk(d)}this.TM()}}SU(){this.ma.Da==l.i.qa.Tc?(this.IM=()=>this.f3(),this.pU()):this.mr()}pU(){null!=this.jf&&(e.Ca(!0,e.model.B.j.k8),this.jf.call("DiscoverKpis",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:
null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},c=>this.e3(c),c=>this.Sb(c),c=>this.am(c)))}e3(c){if(null!=this.IM){for(var d=0;d<c.length;d++){var g=c[d],k=g.uniqueName,m=this.ma.mapping.Ha(k,"caption",g.caption),n=g.value,p=g.status,t=g.goal,r=g.trend;k=new f.O.x8(k,m);k.value=n;k.status=p;k.Ow=t;k.Dx=r;k.description=g.description;this.xa.O.vZ(k,this.ma.mapping)}this.IM()}}f3(){this.mr()}gl(c,d){e.Ca(!0,e.model.B.j.Un,
c.caption);this.Nb=d;this.Bk(c,null,g=>this.Sj(g))}Bk(c,d,g){this.oa.hierarchy=c;this.oa.Qc=this.xa.ua.Qc;this.oa.kd=this.xa.ua.kd;this.oa.children(c,d,g,this.ab)}Sj(c){if(null!=this.Nb){var d=c.ev;if(0<c.filter.cm.length)c.Ri<c.Qm?this.RM(c,c.filter.cm,c.filter.YH,k=>this.Sj(k)):(c.pw(),this.Sj(c));else if(0<d.length){var g=d.shift();0==d.length&&c.Saa();c.ev=d;d=c.Ib(g[1]);c.Xy(d);this.Bk(c,d,k=>this.Sj(k))}else c.Wd=!0,this.Nb(c)}}RM(c,d,g,k){this.oa.hierarchy=c;this.oa.Qc=this.xa.ua.Qc;this.oa.kd=
this.xa.ua.kd;this.oa.MZ(c,d,g,k)}Cz(){}nq(c,d,g){this.oa.hierarchy=c;this.oa.Qc=this.xa.ua.Qc;this.oa.kd=this.xa.ua.kd;this.oa.search(d,g)}ZB(){return!0}cancel(){this.IM=this.TM=this.QM=this.vM=this.FG=this.Pda=null;null!=this.jf&&this.jf.cancel();this.jf=null;null!=this.Xl&&this.Xl.cancel();this.Xl=null;null!=this.oa&&this.oa.cancel();this.Oe=this.ab=this.Nb=this.oa=null}mr(){e.Ca(!1);null!=this.Nb&&this.Nb()}Sb(c){e.Ca(!1);let d=null;e.v(c)?(d=`Cannot connect to ${e.model.Tb.valid(this.ma.hf)?
this.ma.hf:e.model.Tb.validate(this.ma.hf)}`,e.Za(d,e.model.B.j.Aa)):(d=e.ia(c.message)?e.model.B.j.lP:c.message,"Unknown error."==d?e.Za(e.model.B.j.Wna,e.model.B.j.Aa):"ERROR_SESSION_EXPIRED"==d?e.model.C.F.PV?e.Za(e.model.B.j.uX,e.model.B.j.Ym,e.xb.Ym,[e.model.B.j.IE,e.model.B.j.wl],[()=>this.Jz(),null]):this.Jz():-1<d.indexOf("2.416")||-1<d.indexOf("2.400")?e.Za("Your current version of Flexmonster Pivot Table & Charts is not compatible with Flexmonster Accelerator. Please update both products to the latest available version.",
e.model.B.j.Aa):e.Za(d,e.model.B.j.Aa));null!=this.ab&&this.ab(d)}Jz(){e.model.Va.V().b4()}}a.jja="2.7.11";b.P5=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.rW{constructor(c){super();this.mw=this.OH=0;this.td="";this.state=l.jp.bF;this.tl=()=>this.Ls();this.Cj=()=>this.fq();this.VM=[];this.Ez=[];this.UM=0;this.ma=c;this.jf=new b.yP(this.ma.hf,e.model.Ga.pa.J(e.model.Ga.pa.fV),!0,this.ma.sc,this.ma.withCredentials)}reset(){this.td="";this.mw=this.UM=this.OH=0;this.Ez=[];this.ab=this.Wu=this.sK=this.UJ=this.bc=this.e_=this.Jb=null;this.state=""}search(c,d){this.reset();this.state=
l.jp.KX;this.Jb=d;this.td=c.toLowerCase();this.load(()=>this.ND())}ND(){for(var c=[],d=0;d<this.Ez.length;d++){var g=this.Ez[d];g.vf=!0;c.push(g.ordinal)}e.Ca(!1);this.Jb(c)}children(c,d,g,k){this.reset();this.state=l.jp.bF;this.Jb=g;this.ab=k;this.bc=d;this.hierarchy=c;null==this.bc||this.bc.vf?this.load(()=>this.Sj()):g(this.hierarchy)}Sj(){null!=this.bc&&(this.bc.vf=!1);this.Jb(this.hierarchy)}MZ(c,d,g,k){this.reset();this.state=l.jp.L5;this.Jb=k;this.UJ=d;this.Wu=g;this.hierarchy=c;this.load(()=>
this.J2())}J2(){for(var c=[],d=0;d<this.Ez.length;d++){var g=this.Ez[d];g.vf=!0;c.push(g.A)}this.Wu?this.R4(c,this.Jb):(this.hierarchy.pw(),this.Jb(this.hierarchy))}R4(c,d){this.reset();this.state=l.jp.X8;this.Jb=d;this.sK=c;this.load(()=>this.F3())}F3(){for(var c=this.Ez,d=0;d<c.length;d++)this.hierarchy.ya(c[d]).vf=!0;this.hierarchy.pw();this.Jb(this.hierarchy)}load(c){this.e_=c;e.Ca(!0,e.model.B.j.Un);this.gl();this.timer=new u.wt(500,1E4);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);
this.timer.start()}mC(){for(var c=this.hierarchy.nU,d=[],g=0;g<c.length;g++)d.push(this.hierarchy.A+".["+c.ea(g).A+"]");return 0<d.length?", "+d.join(","):""}gl(){if(null!=this.jf){var c=this.mC(this.hierarchy);this.jf.call("DiscoverMembers",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,subquery:this.ma.We,hierarchyUniqueName:this.hierarchy.A,properties:c,memberUniqueName:this.bc?this.bc.A:"",allMemberName:this.hierarchy.wm,hasAllMember:this.hierarchy.Mh,loadAll:this.kd,searchPhrase:this.td,chunkIndex:this.mw,
ascendants:null==this.UJ?"":this.UJ.join(",,"),siblings:null==this.sK?"":this.sK.join(",,"),activeLevel:null==this.hierarchy.gg?"":this.hierarchy.gg,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,effectiveUserName:this.ma.oj,roles:this.ma.Hk},d=>this.wj(d),d=>this.Sb(d),d=>this.am(d));this.mw++}}Ls(){if(null!=this.timer){var c=this.timer.tw/2;2<c&&e.Ca(!0,e.model.B.j.Un,e.P.bind(e.model.B.j.qt,
u.Yb.format(c,new e.model.ec.X.Gf,!1,!1,1)))}}fq(){this.timer.pl&&e.Za("Can't connect to data source!",e.model.B.j.Aa)}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,this.Cj))}wj(c){null!=this.jf&&(this.rg(),1==this.mw&&(this.OH=c.count),1>this.hierarchy.Qm&&(this.hierarchy.Qm=c.all),this.SD(c.members,()=>this.SH()))}SD(c,d){if(e.v(c))d();else if(this.VM=c,0==this.VM.length)this.CU();else{for(c=this.hierarchy.Ri;!this.kHa(c);)c++;d()}}kHa(c){var d=
this.VM.shift();if(null!=d){var g=d.parentUniqueName,k=d.caption,m=d.uniqueName,n=d.ordinal,p=d.properties;var t=this.hierarchy.Ib(m);if(null==t&&(d=new l.O.ae({A:m,caption:k,Bi:g,ordinal:n}),""===this.td&&null==this.UJ&&null==this.sK&&(d.fc=c),t=this.hierarchy.lc(d),null!=p&&0<p.length))for(g=0;g<p.length;g++)d=e.v(p[g].item)?p[g]:p[g].item,t.setProperty(d[0],d[1]);""!=this.td||null!=this.UJ||null!=this.sK?this.Ez.push(t):t.fc=c;null!=t&&!t.Zb&&1E3<this.hierarchy.Qm&&!this.kd&&(t.vf=!0);this.UM++}return 0>=
this.VM.length}SH(){var c=0==this.OH?100:Math.round(this.UM/this.OH*100);100<c&&(c=100);e.Ca(!0,e.model.B.j.Un,this.hierarchy.caption+" - "+c+"% ("+this.UM+" of "+this.OH+")");this.UM>=this.OH?this.CU():this.gl()}CU(){e.Ca(!1);this.rg();this.e_();this.VM=[];this.Ez=[]}Sb(c){this.rg();e.Ca(!1);c=e.ia(c.message)?e.model.B.j.lP:c.message;"ERROR_SESSION_EXPIRED"==c?e.model.C.F.PV?e.Za(e.model.B.j.uX,e.model.B.j.Ym,e.xb.Ym,[e.model.B.j.IE,e.model.B.j.wl],[()=>this.Jz(),null]):this.Jz():(e.Za(c,e.model.B.j.Aa),
null!=this.ab&&(this.ab(c),this.ab=null))}Jz(){e.model.Va.V().b4()}BH(){return!1}cancel(){null!=this.jf&&this.jf.cancel();this.jf=null;null!=this.timer&&this.rg();this.e_=this.ab=this.Jb=this.timer=null}}b.Fja=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends b.rW{constructor(){super(...arguments);this.rf=l.Ra.V();this.Lb=[];this.ad=[];this.tl=()=>this.Ls();this.Cj=()=>this.fq()}load(c,d,g){e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,"0.5"));this.ma=c;this.ik=d;this.Jb=g;this.ri=this.mw=0;this.Kf=this.rf.ua.qr;this.jf=new b.yP(this.ma.hf,e.model.Ga.pa.J(e.model.Ga.pa.fV),!0,this.ma.sc,this.ma.withCredentials);this.requestId=e.P.NL();this.Zw();this.timer=new u.wt(500,1E4);
this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start()}Zw(){if(null!=this.jf){for(var c=[],d=this.rf.ua.qr,g=0;g<d.length;g++)c.push(d[g].A);this.jf.call("Execute",{catalog:this.ma.Be,cubeUniqueName:this.ma.xa,subquery:this.ma.We,queryString:this.ik.body,columns:this.rf.ua.Db.Nc(!0),rows:this.rf.ua.yb.Nc(!0),measures:c,chunkIndex:this.mw,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,
effectiveUserName:this.ma.oj,roles:this.ma.Hk,expandAll:this.ik.type==l.i.Rd.np&&this.rf.ua.Qc,formatted:e.model.C.F.vq,requestId:this.requestId},k=>this.aq(k),k=>this.Sb(k),k=>this.am(k));this.mw++}}Ls(){null!=this.timer&&e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,u.Yb.format(this.timer.tw/2,new e.model.ec.X.Gf,!1,!1,1)))}fq(){this.timer.pl&&e.Za("Can't connect to data source!",e.model.B.j.Aa)}rg(){this.timer&&this.timer.pl&&(this.timer.stop(),this.timer.sb(u.pf.Al,this.tl),this.timer.sb(u.pf.Bl,
this.Cj))}bd(c,d,g,k,m,n){e.Ca(!0,e.model.B.j.bg,e.P.bind(e.model.B.j.qt,"0.5"));this.ma=c;this.ik=d;this.Jb=n;this.Kf=this.rf.ua.qr;this.jf=new b.yP(this.ma.hf,e.model.Ga.pa.J(e.model.Ga.pa.fV),!0,this.ma.sc,this.ma.withCredentials);c=this.Fza(this.rf.ua,g,k);m={catalog:this.ma.Be,cubeUniqueName:this.ma.xa,subquery:this.ma.We,measureUniqueName:m.A,members:c,credentials:this.ma.credentials&&this.ma.credentials.Lm?this.ma.credentials.hash:null,sessionId:f.kp.sessionId,customData:this.ma.Cm,localeIdentifier:this.ma.uj,
effectiveUserName:this.ma.oj,roles:this.ma.Hk};this.ma.Da==l.i.qa.Tc&&(m.drillThroughMaxRows=e.model.C.F.LG);this.jf.call("DrillThrough",m,p=>this.CEa(p),p=>this.Sb(p),p=>this.am(p));this.timer=new u.wt(500,1E4);this.timer.N(u.pf.Al,this.tl);this.timer.N(u.pf.Bl,this.Cj);this.timer.start()}Fza(c,d,g){for(var k=[],m,n,p=0;p<c.Db.length;p++){var t=c.Db.ea(p);m=[];n=!1;if(!t.Se){if(null!=g[p]){var r=t.ya(g[p]);e.v(r)||e.ia(r.A)||(m.push(r.A),n=!0)}if(t.filter.wi&&!n)for(n=0;n<t.gb.length;n++)r=t.ya(t.gb[n]),
e.v(r)||e.ia(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.ma.Da==l.i.qa.le?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}}for(p=0;p<c.yb.length;p++)if(t=c.yb.ea(p),n=!1,m=[],!t.Se){null!=d[p]&&(r=t.ya(d[p]),e.v(r)||e.ia(r.A)||(m.push(r.A),n=!0));if(t.filter.wi&&!n)for(n=0;n<t.gb.length;n++)r=t.ya(t.gb[n]),e.v(r)||e.ia(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.ma.Da==l.i.qa.le?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}for(p=0;p<c.ob.length;p++){t=c.ob.ea(p);m=[];
if(t.filter.wi)for(n=0;n<t.gb.length;n++)r=t.ya(t.gb[n]),e.v(r)||e.ia(r.A)||-1==m.indexOf(r.A)&&m.push(r.A);0<m.length&&(this.ma.Da==l.i.qa.le?k.push(m.join(",")):k.push("{"+m.join(",")+"}"))}return k}CEa(c){if(null!=this.jf){c=c.cellData;if(null!=c&&0<c.length&&null!=c[0].item)for(var d=0;d<c.length;d++)c[d]=c[d].item;this.rg();e.Ca(!1);this.Jb(c)}}cancel(){this.ma=this.rf=null;this.Lb=[];this.ad=[];this.Jb=this.ik=null;null!=this.jf&&this.jf.cancel();this.jf=null;this.rg();this.timer=null}aq(c){null!=
this.jf&&(c.isComplete||this.Zw(),this.rg(),this.ma.Da==l.i.qa.le?(this.ZU(c.columnsList?JSON.parse(c.columnsList):[]),this.aV(c.rowsList?JSON.parse(c.rowsList):[]),this.kga(c.cellData?JSON.parse(c.cellData):[],c.cellDataFmt?JSON.parse(c.cellDataFmt):[])):(this.ZU(c.columnsList),this.aV(c.rowsList),this.kga(c.cellData,c.cellDataFmt)),this.ri+=this.Lb.length*this.ad.length,c.isComplete?(e.Ca(!1),this.Jb()):(c=null!=c.percent?Math.round(1E4*c.percent)/100:NaN,e.Ca(!0,e.model.B.j.bg,this.ri+" items "+
(isNaN(c)||0>=c?"":"("+(100<c?100:c)+"%)"))))}ZU(c){this.ad=c;if(e.v(c)||0==this.ad.length)this.ad=[[[0,0]]]}aV(c){this.Lb=[[]];e.v(c)?this.Lb=[[]]:(this.Lb=c,0==this.Lb.length&&(this.Lb=[[]]))}OBa(c,d){if(c.length!=d.length)return!1;for(var g=0;g<c.length;g++)if(1<c[g].length&&c[g][1]!=d[g][1])return!1;return!0}kga(c,d=null){e.v(c)&&(c=[]);var g=this.Lb.length,k=this.ad.length;var m=this.rf.ua.qr;for(var n=[],p=0;p<m.length;p++)n[p]=m[p].type;var t=l.TX.V();this.rf.ua.rows.ea(1);for(p=0;p<g;p++)if(void 0!=
c[p]&&null!=this.Lb[p]){m=[];for(var r=[],w,y,A=!1,C=0;C<k;C++)null!=this.ad[C]&&(w=r,r=this.ad[C].slice(0),y=r.pop()[0],this.OBa(r,w)||(A&&this.rf.ra.yT(this.Lb[p],w,m,this.ik.lf,this.ik.Yt,this.ik.type),A=!1,m=[]),void 0!=c[p][C]&&(A=!0),e.model.C.F.vq&&null!=d&&this.Kf[y].aa==l.i.da.NONE?m[y]=l.xJ.V().aA(d[p][C],c[p][C]):n[y]==l.i.Pa.jb?m[y]=c[p][C]:n[y]==l.i.Pa.Sa&&(w=c[p][C]?t.gi(c[p][C].toString()):0,m[y]=w));A&&this.rf.ra.yT(this.Lb[p],r,m,this.ik.lf,this.ik.Yt,this.ik.type)}}Sb(c){this.rg();
e.Ca(!1);c=e.ia(c.message)?e.model.B.j.lP:c.message;"ERROR_SESSION_EXPIRED"==c?e.model.C.F.PV?e.Za(e.model.B.j.uX,e.model.B.j.Ym,e.xb.Ym,[e.model.B.j.IE,e.model.B.j.wl],[()=>this.Jz(),null]):this.Jz():e.Za(c,e.model.B.j.Aa)}Jz(){e.model.Va.V().b4()}}b.O5=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d=null,g=!0,k=null,m=!1){this.fv=null;this.withCredentials=!1;this.sc=null;this.url=c;this.url.lastIndexOf("/")==this.url.length-1&&(this.url=this.url.substr(0,this.url.length-1));g&&0>this.url.indexOf("/FlexmonsterProxy")&&this.url.lastIndexOf(":")>this.url.lastIndexOf("/")&&(this.url+="/FlexmonsterProxy");this.sc=k;this.fv=d;this.withCredentials=m}call(c,d=null,g=null,k=null,m=null){this.action=c;this.Nb=g;this.ab=
k;this.RN=m;this.Xd=d;u.Zn.load("lib/sha1.min.js",()=>{this.xhr=new XMLHttpRequest;this.xhr.open("POST",this.url+"/"+c,!0);this.xhr.withCredentials=this.withCredentials;this.xhr.onreadystatechange=n=>this.bv(n);this.xhr.setRequestHeader("Content-type","application/json; charset=UTF-8");this.xhr.setRequestHeader("Accept","application/json");this.PK(this.sc);this.xhr.send(this.CJa(d))})}PK(c){if(!e.v(c))for(var d in c)c.hasOwnProperty(d)&&this.xhr.setRequestHeader(d,c[d])}CJa(c){if(null!=this.fv){delete c.signature;
var d=this.getHash(c);d=d.replace(/[^a-zA-Z0-9]/gm,"");var g=new jsSHA("SHA-1","TEXT");g.setHMACKey(this.fv,"TEXT");g.update(d);c.signature=g.getHMAC("B64")}return JSON.stringify(c)}getHash(c){var d=[];for(g in c)d.push(g);d.sort();var g="";for(var k=0;k<d.length;k++){var m=c[d[k]];e.v(m)||"string"==typeof m&&e.ia(m)||Array.isArray(m)&&0==m.length||("sessionId"!=d[k]||0!=m)&&"customData"!=d[k]&&"localeIdentifier"!=d[k]&&"effectiveUserName"!=d[k]&&(g+=d[k]+":"+m)}return g.toLowerCase()}bv(){if(null!=
this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.oI();if(401===this.xhr.status&&e.Fg(this.RN))return this.RN(c=>{c?this.call(this.action,this.Xd,this.Nb,this.ab):this.ab({message:this.xhr.statusText})});this.ab({message:this.xhr.statusText})}}oI(){var c=JSON.parse(this.xhr.response);c&&null==c.error?null!=this.Nb&&this.Nb(c.data,c):this.ab&&c&&this.ab(c.error)}cancel(){null!=this.xhr&&(this.xhr.onerror=null,this.xhr.onreadystatechange=null,this.xhr.abort());this.fv=this.url=
this.Nb=this.xhr=this.sc=null}}b.yP=a})(f.tp||(f.tp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.cj.t9{constructor(c){super(c)}mC(){for(var c=this.hierarchy.nU,d=[],g=0;g<c.length;g++)d.push(this.hierarchy.A+".["+c.ea(g).A+"]");return 0<d.length?", "+d.join(","):""}j_(){var c=this.mC(this.hierarchy),d=this.po();return null==this.bc?this.BH()?e.P.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{1} on columns FROM {2}",this.hierarchy.A,c,d):this.hierarchy.Mh?e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{2} on 0 FROM {1}",
this.hierarchy.A,d,c,this.jl.toString(),this.Vq.toString()):e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{2} on 0 FROM {1}",this.hierarchy.A,d,c,this.jl.toString(),this.Vq.toString()):e.P.bind("SELECT Subset({0}.children, {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME {2} on columns FROM {1}",this.bc.A,d,c,this.jl.toString(),this.Vq.toString(),this.hierarchy.A)}$U(c,d){var g=c.find("PARENT_UNIQUE_NAME").text();var k=c.find("Caption").text(),
m=c.find("UName").text(),n=parseInt(c.find("MEMBER_ORDINAL").text());var p=this.hierarchy.Ib(m);if(null==p){p=this.hierarchy.lc(new l.O.ae({A:m,caption:k,Bi:g}));if(p.level&&0<p.level.Ue.length)for(k=0;k<p.level.Ue.length;k++){g=p.level.Ue.ea(k);p.setProperty(g.A,c.find(g.XN).text());m=c.getChildren();for(var t=0;t<m.length;t++){var r=m[t];r.nodeName.toLowerCase()==g.XN.toLowerCase()&&(r=r.text(),p.setProperty(g.A,r))}}p.fc=isNaN(n)?d:n}else this.state==l.jp.bF&&(p.fc=isNaN(n)?d:n);null==p||p.Zb||
(p.vf=!0);p.parent&&!p.parent.Zb&&(p.parent.vf=!1);return p.ordinal}}b.Bpa=a})(f.tE||(f.tE={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.cj.u9{constructor(c){super(c);this.Xl=new b.Bpa(c)}EU(){var c=z.ba.create(this.Nl.response);c=this.Mp(c);if(0<c.length){this.Vs();for(var d=0;d<c.length;d++)this.mga(c[d]);this.ZCa();this.FG()}else c=e.model.B.j.cF,e.Za(c,"",e.xb.Aa),e.Ca(!1),this.ab(c)}ZCa(){this.BE=new z.ek;this.BE=this.Qh(this.BE);this.BE.data=z.ba.Ic(f.cj.dg.qva());this.BE.N(v.fa.Oc,()=>this.DGa());this.BE.N(v.fa.Aa,c=>this.Sb(c));this.BE.load(this.ga.hf)}DGa(){var c=
z.ba.create(this.BE.response);c=this.Mp(c);this.ga.version=parseFloat(c.find("Value").text().substr(0,5))}qga(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_CAPTION").text(),m=c.find("LEVEL_UNIQUE_NAME").text(),n=parseInt(c.find("LEVEL_NUMBER").text());c=parseInt(c.find("LEVEL_TYPE").text());d=this.xa.O.Kp(d);null!=d&&(g=d.fh(g),null!=g&&(k=new l.O.it(m,k,n),k.type=l.i.ib.JC(c),g.Hh(k),d.oi(g)))}N3(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),
g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_UNIQUE_NAME").text(),m=c.find("PROPERTY_CAPTION").text();c.find("PROPERTY_TYPE").text();c=c.find("PROPERTY_NAME").text();var n=(g+".["+c+"]").replace(/\[/g,"_x005B_").replace(/\]/g,"_x005D_").replace(/\s/g,"_x0020_");"NAME"!=c&&"KEY0"!=c&&"KEY1"!=c&&"KEY2"!=c&&"TRAN0"!=c&&"TRAN1"!=c&&"TRAN2"!=c&&"MEMBER_VALUE"!=c&&"CUSTOM_ROLLUP"!=c&&"UNARY_OPERATOR"!=c&&(d=this.xa.O.Kp(d),null!=d&&(g=d.fh(g),null!=g&&(k=g.uu(k),null!=k&&(m=new l.O.xW(c,m,n),
k.zZ(m)))))}}b.Cpa=a})(f.tE||(f.tE={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d){this.slice=c;this.ga=d}get zE(){return this.ga&&this.ga.wn&&!e.model.C.F.C1?!0:!1}GS(c){return c.As?"members":"allmembers"}FS(c){return c.Mh?c.wm:e.P.bind("{0}.levels(0).{1}",c.A,this.GS(c))}oT(){return 0<this.slice.ce(l.i.ja.Xa).Ed.length}pT(){return 0<this.slice.ce(l.i.ja.La).Ed.length}qo(){const c=[],d=this.slice.qr;for(var g=0;g<d.length;g++)c.push(d[g].A);return"{"+c.join(", ")+"}"}kC(){var c=this.qo();
if(0<this.slice.Db.length){var d=this.bL(this.slice.Db),g="";this.oT()&&(g=this.Ky(this.slice.ce(l.i.ja.Xa).Ed,this.slice.Db));return"Crossjoin("+(0<g.length?"Union("+d+", "+g+")":d)+", "+c+")"}return c}nC(){if(0<this.slice.yb.length){var c=this.bL(this.slice.yb),d="";this.pT()&&(d=this.Ky(this.slice.ce(l.i.ja.La).Ed,this.slice.yb));return 0<d.length?"Union("+c+", "+d+")":c}return""}bL(c){for(var d=[],g=0;g<c.length;g++){var k=c.ea(g);k=this.i_(k,this.slice.Qc||0==g,this.slice.kd);0<k.length&&d.push(k)}if(1<
d.length){c=this.qo();k=d[0];for(g=1;g<d.length;g++)k=e.model.C.F.C1?e.P.bind("Crossjoin({0}, {1})",k,d[g]):e.P.bind("NonEmpty(Crossjoin({0}, {1}), {2})",k,d[g],c);return k}return d[0]}i_(c,d,g){var k=this.FS(c);if(g)d="Hierarchize({"+c.A+"."+this.GS(c)+"})";else if(d)for(d=null!=c.oc?"Hierarchize({Descendants({"+c.A+".levels(0)."+this.GS(c)+"}, "+c.oc.A+", SELF_AND_BEFORE)})":c.Mh?"Hierarchize({DrilldownLevel({"+k+"})})":"{{"+c.vm()+","+k+"}}",g=1;g<c.ta.length;g++)k=c.ta.ea(g),k=c.CC(k),0!=k.length&&
(k=c.vs(k).join(","),d=10.5<this.ga.version?"DrilldownMember({{"+d+"}}, {"+k+"},,INCLUDE_CALC_MEMBERS)":"DrilldownMember({{"+d+"}}, {"+k+"})");else{if(c.Mh)return k;d="{{"+c.vm()+","+k+"}}"}return d}RV(c){return c=c.replace(/[\]|\[]/g,"")}Cp(c,d,g){for(var k=[],m,n=0;n<d.length;n++){var p=d.ea(n);if(n==c.length-1)m=p.ya(c[n]),m.Zb?(this.i_(p,!0,!1),k.push(this.i_(p,!0,!1))):void 0!==g&&null!=p.uu(g)?k.push("Descendants("+m.A+", "+g+", SELF_AND_BEFORE)"):m.Rg?k.push(m.A+".CHILDREN"):k.push(m.A);else if(n<
c.length){m=p.ya(c[n]);if(null==m)return"";p=p.vs(m.children);m=m.Sg?"{"+p.join(",")+"}":m.A;k.push(m)}else k.push(this.FS(p))}return 1<k.length?"Crossjoin({"+k.join("}, {")+"})":k[0]}Ky(c,d){for(var g,k=0;k<c.length;k++){var m=c[k].slice(1);m.push(0);m=this.Cp(m,d);g=g&&!e.ia(m)?e.P.bind("Union({0}, {1})",m,g):m}return g}U_(c,d){return 0<this.slice.yb.length?this.Cp(c,this.slice.yb,d):""}T_(c,d){var g=this.qo();return 0<this.slice.Db.length?"Crossjoin("+this.Cp(c,this.slice.Db,d)+", "+g+")":g}g0(c){var d=
this.qo();return 0<this.slice.Db.length?(c=c.slice(0),c.push(0),"Crossjoin("+this.Cp(c,this.slice.Db)+", "+d+")"):d}j0(c){return 0<this.slice.yb.length?(c=c.slice(0),c.push(0),this.Cp(c,this.slice.yb)):""}Tua(c,d){0<=l.i.$b.Wx.indexOf(d.va)&&(d=d.LR(c.getTimezoneOffset()));if(d.va==l.i.$b.EQUAL){var g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<CDate('{2}')))";var k=d.value.clone().Ln();var m=k.clone().qZ(1).Ln()}d.va==l.i.$b.cg&&(g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))",
k=d.value.clone().Ln(),m=k.clone());d.va==l.i.$b.FE&&(k=d.value.clone().Ln(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}')))");d.va==l.i.$b.GE&&(k=d.value.clone().Ln(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<=CDate('{1}')))");d.va==l.i.$b.CE&&(k=d.value.clone().Ln(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>CDate('{1}')))");d.va==l.i.$b.DE&&(k=d.value.clone().Ln(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}')))");
d.va==l.i.$b.nh&&(k=d.value[0].clone().Ln(),m=d.value[1].clone().eA(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<=CDate('{2}')))");d.va==l.i.$b.bh&&(k=d.value[0].clone().Ln(),m=d.value[1].clone().eA(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))");d=this.slice.qr[0].Dg;let n;this.ga.Fx&&(n=c.si.fD[d]);e.ia(n)&&(n=c.A);g=e.P.bind(g,n,k.format("yyyy-MM-dd"),m?m.format("yyyy-MM-dd"):
"",c.Mh?1:0);return[g]}fva(c,d){var g,k=d.value,m=k.length;d.va==l.i.Bb.EQUAL&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption='{2}'))");d.va==l.i.Bb.cg&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<>'{2}'))");d.va==l.i.Bb.HE&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})='{2}'))");d.va==l.i.Bb.PA&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})<>'{2}'))");d.va==l.i.Bb.CA&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})='{2}'))");
d.va==l.i.Bb.RA&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})<>'{2}'))");d.va==l.i.Bb.On&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')>0))");d.va==l.i.Bb.QA&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')=0))");d.va==l.i.Bb.GREATER&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>'{2}'))");d.va==l.i.Bb.xl&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'))");d.va==l.i.Bb.LESS&&
(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<'{2}'))");d.va==l.i.Bb.yl&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'))");if(d.va==l.i.Bb.nh){g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'  AND {0}.CurrentMember.member_caption<='{4}'))";k=d.value[0];var n=d.value[1]}d.va==l.i.Bb.bh&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'  OR {0}.CurrentMember.member_caption>='{4}'))",k=d.value[0],n=d.value[1]);g=e.P.bind(g,
c.A,c.Mh?1:0,k,m,n);return[g]}Bp(c){for(var d=[],g="",k=0;k<c.length;k++){var m=c.ea(k),n=[];m.filter.wi&&(n=m.vs(m.gb));m.filter.mz&&(n=this.Tua(m,m.filter.query));m.filter.Qw&&(n=this.fva(m,m.filter.query));if(!m.Mh){var p=m.vm();this.md.Hb(p)||this.md.Ta(p,this.FS(m))}0<n.length&&d.push("{"+n.join(",")+"}")}0<d.length&&(g="("+d.join(", ")+")");return g}pva(c,d,g){for(var k=[],m=c.indexOf(d.A),n=0;n<m;n++){var p=c.ea(n);k.push("Hierarchize("+p.A+".levels("+(p.Mh?1:0)+")."+this.GS(d)+")")}c="Hierarchize({"+
this.FS(d)+"})";0<k.length&&(c="CrossJoin("+k.join(",")+", "+c+")");return e.P.bind("( SELECT Generate({0} AS {1}, {7}( Filter( Except(  DrilldownLevel({1}.Current AS {2}, , {5}{8} ), {2}), Not IsEmpty({3})), {4}, {3})) ON COLUMNS FROM {6})",c,"["+d.caption+"___0___0]","["+d.caption+"_1_1_1]",d.filter.measure.A,d.filter.query.value,""+m,g,d.filter.query.va==l.i.yc.ck?"TopCount":"BottomCount",", INCLUDE_CALC_MEMBERS")}Uaa(c,d){for(var g=0;g<c.length;g++){var k=c.ea(g);k.filter.xi&&this.slice.Kf.find(m=>
m.A===k.filter.measure.A)&&(d=this.pva(c,k,d))}return d}oC(){if(0==this.md.length)return"";for(var c="with",d=0;d<this.md.length;d++)c+=e.P.bind(" member {0} as IIF(IsError(Aggregate({{1}})), null, Aggregate({{1}}))",this.WD(this.md.Jh(d)),this.WD(this.md.ea(d)));return c}po(c=!0){var d=e.ia(this.ga.We)?"["+this.ga.xa+"]":"("+this.ga.We+")";var g=this.Bp(this.slice.Db),k=this.Bp(this.slice.yb),m="";let n="";if(0!==this.slice.ob.length)for(let t=0;t<this.slice.ob.length;t++){const r=this.slice.ob.ea(t);
if(r.filter&&r.filter.wi){var p=r.filter.Pj();1==p.length&&c?n=0===n.length?` WHERE (${r.V0(p[0])})`:n.substring(0,n.length-1)+`, ${r.V0(p[0])})`:1<p.length&&c&&(n=0===n.length?` WHERE (${r.A+".CurrentMember"})`:n.substring(0,n.length-1)+`, ${r.A+".CurrentMember"})`)}}0<this.slice.ob.length&&(m=this.Bp(this.slice.ob));0==g.length&&0==k.length&&0==m.length?c=d:(0<g.length&&(g+=" ON COLUMNS"),0<k.length&&(0<g.length?k=", "+k+" ON ROWS":(g=k+" ON COLUMNS",k="")),0<m.length&&(m="SELECT "+m+" ON COLUMNS FROM "+
d),0<g.length||0<k.length?(c="SELECT "+g+k+" FROM ",c=0<m.length?c+("("+m+")"):c+d):c=m,c="("+c+")");c=this.Uaa(this.slice.yb,c);c=this.Uaa(this.slice.Db,c);0<n.length&&(c+=n);return c}WD(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c}expand(c,d){this.md=new e.tb;c==l.i.ja.La?(c=this.kC(),d=this.j0(d)):(c=this.g0(d),d=this.nC());var g=this.po();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";d=this.zE?0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+
d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var k=this.oC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,g,this.h_(),k)}Mf(c,d,g,k){this.md=new e.tb;c==l.i.ja.La?(c=this.kC(),d=this.U_(d,k)):(c=this.T_(d,k),d=this.nC());k=this.po();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";
d=this.zE?0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.oC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,k,this.h_(),g)}select(){this.md=new e.tb;var c=this.kC(),d=this.nC(),g=this.po();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";
d=this.zE?0<d.length?", NON EMPTY _ROWS_TOKEN_START_"+d+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<d.length?", NON EMPTY "+d+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var k=this.oC();return e.P.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,d,g,this.h_(),k)}h_(){return 0==e.model.C.F.vq||this.ga.Da!=l.i.qa.Tc?"VALUE":"VALUE, FORMATTED_VALUE"}bd(c,d,g){this.md=new e.tb;for(var k=
"DRILLTHROUGH MAXROWS "+e.model.C.F.LG+" SELECT {0} ON 0 FROM {1} {2}",m,n=[],p=0;p<this.slice.Db.length;p++)m=this.slice.Db.ea(p),m.Se||null==d[p]||(m=m.ya(d[p]),null!=m&&n.push(m.A));for(p=0;p<this.slice.yb.length;p++)m=this.slice.yb.ea(p),m.Se||null==c[p]||(m=m.ya(c[p]),null!=m&&n.push(m.A));c=0<n.length?"where ("+n.join(",")+")":"";d=this.po(!1);return e.P.bind(k,g.A,d,c)}}b.qX=a})(f.tE||(f.tE={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.cj.t9{constructor(c){super(c);this.$H=[]}m_(){var c=e.P.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.members, {1}), (INSTR(1, lcase({0}.CurrentMember.Caption), {2}) > 0))'",this.hierarchy.A,this.hierarchy.ms,'"'+this.td+'"');var d=e.P.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.ms);return c+"\n"+d+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"}j_(){var c=
this.hierarchy.nU,d=[],g=[];if(0<c.length)for(var k=0;k<c.length;k++){var m=c.ea(k).A;g.push("[Measures].["+m+"]");d.push(e.P.bind('member [Measures].[{0}] as {1}.CurrentMember.Properties("{0}")',m,this.hierarchy.A))}c=this.po();0<g.length?(g=0<g.length?g.join(", "):"",d=0<d.length?"with "+d.join(" "):"",d=null==this.bc?this.BH()?e.P.bind("{3} SELECT crossjoin(DISTINCT({{0}.allmembers}), {{2}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,g,d):this.hierarchy.Mh?
e.P.bind("{5} SELECT crossjoin(Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.jl.toString(),this.Vq.toString(),g,d):e.P.bind("{5} SELECT crossjoin(Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.jl.toString(),this.Vq.toString(),g,d):e.P.bind("{5} SELECT crossjoin(Subset({0}.children, {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",
this.bc.A,c,this.jl.toString(),this.Vq.toString(),g,d)):d=null==this.bc?this.BH()?e.P.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c):this.hierarchy.Mh?e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers, {0}.levels(1).allmembers}), {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.A,c,this.jl.toString(),this.Vq.toString()):e.P.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",
this.hierarchy.A,c,this.jl.toString(),this.Vq.toString()):e.P.bind("SELECT Subset({0}.children, {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.bc.A,c,this.jl.toString(),this.Vq.toString());return d}SD(c){var d=c.find("root");if(0<d.find("Fault").length)e.Za(z.ba.Ic(d.find("Fault faultstring")),"Query error!",e.xb.Aa);else{this.$H=[];c=[];for(var g=d.find('Axes Axis[name="Axis0"] Tuples Tuple Member'),k=this.hierarchy.Ri,m=0;m<g.length;m++)c.push(this.$U(g[m],m+k));d=d.find("CellData Cell");
for(m=0;m<d.length;m++)if(k=d[m],g=parseInt(k.attr("CellOrdinal")),k=k.find("Value").text(),0>k.indexOf("MondrianEvaluationException")&&!e.v(this.$H)&&!e.v(this.$H[g])){var n=this.$H[g][1];g=this.hierarchy.Ib(this.$H[g][0]);null!=g&&g.setProperty(n,k)}return c}}$U(c,d){var g=c.find("PARENT_UNIQUE_NAME").text();var k=c.find("LName").text();var m=c.find("Caption").text(),n=c.find("UName").text();c=parseInt(c.find("MEMBER_ORDINAL").text());if("[Measures].[MeasuresLevel]"==k)null!=this.$ea&&this.$H.push([this.$ea.A,
m]);else return k=this.hierarchy.Ib(n),null==k?(k=this.hierarchy.lc(new l.O.ae({A:n,caption:m,Bi:g})),k.fc=isNaN(c)?d:c):this.state==l.jp.bF&&(k.fc=isNaN(c)?d:c),this.$ea=k,null==k||k.Zb||(k.vf=!0),k.parent&&!k.parent.Zb&&(k.parent.vf=!1),k.ordinal}}b.voa=a})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.cj.u9{constructor(c){super(c);this.Xl=new b.voa(c)}pU(){e.Ca(!1);null!=this.Nb&&this.Nb()}N3(c){var d=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),k=c.find("LEVEL_UNIQUE_NAME").text(),m=c.find("PROPERTY_CAPTION").text();c.find("PROPERTY_TYPE").text();c=c.find("PROPERTY_NAME").text();d=this.xa.O.Kp(d);null!=d&&(g=d.fh(g),null!=g&&(k=g.uu(k),null!=k&&(m=new l.O.xW(c,m),k.zZ(m))))}}b.woa=
a})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a{constructor(c,d){this.slice=c;this.Ab=d}get zE(){return this.Ab&&this.Ab.wn?!0:!1}oT(){return 0<this.slice.ce(l.i.ja.Xa).Ed.length}pT(){return 0<this.slice.ce(l.i.ja.La).Ed.length}RV(c){return c=c.replace(/[\]|\[]/g,"")}WD(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c}dL(c,d=!1){var g=[];var k=0!=c.gb.length||c.Mh?c.gb:c.Vu(c.ta.ea(1).A);for(var m=c.vs(k),n=[],p,t=0;t<k.length;t++)if(p=c.ya(k[t]),!e.ia(p.A)){g.push(p.A);
if(p.Rg||this.slice.kd)d?g.push(e.P.bind("Descendants({0})",p.A)):g.push(e.P.bind("{0}.CHILDREN",p.A));for(;null!=p.parent;){p=p.parent;for(var r=p.ww,w=[],y=0;y<r.length;y++){var A=c.ya(r[y]).A;-1<m.indexOf(A)&&w.push(A)}r=!c.Mh&&p.Zb?c.vm():p.iaa;if(c.type==l.i.Lc.Sa&&!c.Mh){if(p.Zb)continue;r=p.A}-1==n.indexOf(r)&&n.push(r);this.md.Hb(r)||c.As||this.md.Ta(r,w.join(","))}}d=this.RV(c.A)+"FilterSet";this.Hg.Ta(d,g.join(", "));c=this.RV(c.A)+"CalculatedSet";this.Hg.Ta(c,n.join(", "));return["["+d+
"]","["+c+"]"]}eL(c,d,g){if(g)if(c.filter.wi){var k=this.dL(c,!0);g=k[0];k=k[1];d=e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",g,k)}else d="Hierarchize({"+c.A+".AllMembers})";else{var m=c.Mh?e.P.bind("Union({{0}}, {1}.levels(1).AllMembers)",c.wm,c.A):c.type==l.i.Lc.Sa?e.P.bind("{0}.levels(0).AllMembers",c.A):e.P.bind("Union({{0}}, {1}.levels(0).AllMembers)",c.vm(),c.A);var n=this.Zua(c);c.filter.wi||!c.Mh&&c.type!=l.i.Lc.Sa?(k=this.dL(c,d&&0<n.length),g=k[0],k=k[1],d=d?0<n.length?e.P.bind("Hierarchize(Distinct(Union(Intersect({0}, Union({1}, {3})), {2})))",
g,n,k,m):e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",g,k):c.vm()):d=d?0<n.length?e.P.bind("Hierarchize(Distinct(Union({0}, {1})))",m,n):m:e.P.bind("{0}.levels(0).AllMembers",c.A)}c="set_"+this.slice.wc().indexOf(c.A)+"_set";this.Hg.Ta(c,d);return"["+c+"]"}Zua(c){for(var d=[],g=1;g<c.ta.length;g++){var k=c.ta.ea(g);c.oc&&c.oc.A==k.A&&d.push(e.P.bind("Descendants({{0}}, {1}, SELF_AND_BEFORE)",c.ms,c.oc.A));k=c.CC(k);if(0!=k.length)for(var m=0;m<k.length;m++){var n=c.ya(k[m]);c.type!=l.i.Lc.Sa||
c.Mh?d.push(e.P.bind("{0}.CHILDREN",n.A)):(n=c.vs(n.children),d.push(e.P.bind("{"+n.join(","))+"}"))}}return 0<d.length?(c=this.RV(c.A)+"DrilledSet",this.Hg.Ta(c,d.join(",")),"["+c+"]"):""}Ky(c,d){for(var g="",k=0;k<c.length;k++){var m=c[k].slice(1);m=this.Cp(m,d);""!=m&&(g=g?e.P.bind("Union({0}, {1})",m,g):m)}return g}Cp(c,d){for(var g="",k=d.length-1;0<=k;k--){var m=d.ea(k);if(null!=c[k]){var n=m.ya(c[k]);if(null==n){g="";break}m.filter.wi?(m=this.dL(m,!0),n=e.P.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",
n.A,m[0],m[1])):n="{"+n.A+"}"}else n=c.length==k?this.eL(m,!0,!1):this.eL(m,!1,!1);g=k==d.length-1?n:e.P.bind("CrossJoin({{0}}, {{1}})",n,g)}return g}bL(c){var d=[];for(var g=this.slice.hd(),k=0;k<g.length;k++)d.push("isEmpty("+g[k].A+")");d=d.join(" and ");g="";for(k=0;k<c.length;k++){var m=c.ea(k);m=this.eL(m,this.slice.Qc||0==k,this.slice.kd);m="Filter("+m+", not ("+d+"))";g=0<k?"Crossjoin("+g+","+m+")":m}return g}kC(){if(0<this.slice.Db.length){var c=this.bL(this.slice.Db);this.Hg.Ta("columnHierarchiesSet",
c);c="";this.oT()&&(c=this.Ky(this.slice.ce(l.i.ja.Xa).Ed,this.slice.Db),0<c.length&&this.Hg.Ta("columnExpandedSet",c));this.Hg.Ta("columnSet","Crossjoin("+(0<c.length?"Union([columnHierarchiesSet], [columnExpandedSet])":"[columnHierarchiesSet]")+", [measureSet])")}else this.Hg.Ta("columnSet","[measureSet]")}nC(){if(0<this.slice.yb.length){var c=this.bL(this.slice.yb);this.Hg.Ta("rowHierarchiesSet",c);c="";this.pT()&&(c=this.Ky(this.slice.ce(l.i.ja.La).Ed,this.slice.yb),0<c.length&&this.Hg.Ta("rowExpandedSet",
c));this.Hg.Ta("rowSet",0<c.length?"Union([rowHierarchiesSet], [rowExpandedSet])":"[rowHierarchiesSet]")}}g0(c){0<this.slice.Db.length?(c=this.Cp(c,this.slice.Db),this.Hg.Ta("columnSet","Crossjoin("+c+", [measureSet])")):this.Hg.Ta("columnSet","[measureSet]")}j0(c){0<this.slice.yb.length&&(c=this.Cp(c,this.slice.yb),this.Hg.Ta("rowSet",c))}T_(c,d){0<this.slice.Db.length?(c=this.Uba(c,d,this.slice.Db),this.Hg.Ta("columnSet","Crossjoin("+c+", [measureSet])")):this.Hg.Ta("columnSet","[measureSet]")}U_(c,
d){0<this.slice.yb.length&&(c=this.Uba(c,d,this.slice.yb),this.Hg.Ta("rowSet",c))}Uba(c,d,g){var k=[];for(var m=this.slice.hd(),n=0;n<m.length;n++)k.push("isEmpty("+m[n].A+")");k=k.join(" and ");m="";for(n=g.length-1;0<=n;n--){var p=g.ea(n);if(d.hierarchy.A==p.A)if(p.filter.wi){var t=this.dL(p,!0);p=t[0];t=t[1];var r=e.P.bind("Hierarchize(Distinct(Union(Intersect({0}.CHILDREN, {1}), {2})))",d.A,p,t)}else r=this.eL(p,!0,!1),r=e.P.bind("Intersect({0}.CHILDREN, {{1}})",d.A,r);else if(null!=c[n]){r=p.ya(c[n]);
if(null==r){m="";break}p.filter.wi?(t=this.dL(p,!0),p=t[0],t=t[1],r=e.P.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",r.A,p,t)):r="{"+r.A+"}"}else r=this.eL(p,!1,!1);r="Filter("+r+", not ("+k+"))";m=n==g.length-1?r:e.P.bind("CrossJoin({{0}}, {{1}})",r,m)}return m}k_(){for(var c="",d=[],g=0;g<this.slice.ob.length;g++){var k=this.slice.ob.ea(g);k.filter.wi&&(this.md.Ta(k.vm(),k.vs(k.gb).join(",")),d.push(k.vm()))}0<d.length&&(c=e.P.bind("where ({0})",d.join(", ")));return c}qo(){for(var c=
[],d=0;d<this.slice.qr.length;d++)c.push(this.slice.qr[d].A);this.Hg.Ta("measureSet",c.join(", "))}oC(){for(var c="with",d=0;d<this.Hg.length;d++)c+=e.P.bind(" set [{0}] as '{{1}}'",this.WD(this.Hg.Jh(d)),this.WD(this.Hg.ea(d)));for(d=0;d<this.md.length;d++)c+=e.P.bind(" member {0} as 'Aggregate({{1}})'",this.WD(this.md.Jh(d)),this.WD(this.md.ea(d)));return c}select(){this.Hg=new e.tb;this.md=new e.tb;this.qo();this.kC();this.nC();var c=this.k_();var d=this.zE?this.Hg.Hb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"":this.Hg.Hb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.oC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",d,this.Ab.xa,c)}expand(c,d){this.Hg=new e.tb;this.md=new e.tb;this.qo();c==l.i.ja.La?(this.kC(),this.j0(d)):(this.g0(d),this.nC());c=this.k_();d=this.zE?this.Hg.Hb("rowSet")?
", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Hg.Hb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.oC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",d,this.Ab.xa,c)}Mf(c,d,
g){this.Hg=new e.tb;this.md=new e.tb;this.qo();c==l.i.ja.La?(this.kC(),this.U_(d,g)):(this.T_(d,g),this.nC());c=this.k_();d=this.zE?this.Hg.Hb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.Hg.Hb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.oC();return e.P.bind("{0} Select {1} {2} FROM [{3}] {4} CELL PROPERTIES VALUE",
g,"NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS",d,this.Ab.xa,c)}bd(){return""}}b.qX=a})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){(function(a){class c extends f.O.AX{constructor(){super(...arguments);this.El=new u.HP(!1);this.Jv=new u.HP}vm(d="(Total)"){if(this.Mh)return this.wm+".["+d+"]";var g=this.ms.split("].");g.pop();g.push("["+d+"]");return g.join("].")}YC(){return new a.uoa(this)}Ib(d){d=this.El.find(d);return-1==d?null:this.ya(d)}}a.t8=c})(b.O||(b.O={}))})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){(function(a){class c extends f.O.y8{get Oh(){return this.level.Nu?!0:this.hierarchy.FM||this.hierarchy.As||this.level.Nu?(this.Rg||!this.vf)&&0==this.children.length:!1}set Oh(d){}}a.uoa=c})(b.O||(b.O={}))})(f.Yp||(f.Yp={}))})(h.Eb||(h.Eb={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.pA{constructor(c,d=""){super(c,d)}}b.ula=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.ht{constructor(c,d=""){super(c,d);this.Eea=!1;this.zQ=this.iga="";c=new b.R6(c+".[(all)]","All",0);this.Hh(c);this.ms=this.wm="(all member)";c=new l.O.ae({A:"(all member)",caption:"All",Zb:!0});this.lc(c)}YC(){return new b.wla(this)}lc(c){void 0!==c.caption&&e.ia(c.caption)?c.caption=e.model.B.j.zl:e.ia(c.A)&&(c.caption=e.model.B.j.zl);return super.lc(c)}ya(c){return super.ya(c)}get inputType(){return this.zQ}set inputType(c){this.zQ=
c}bj(){const c=super.bj();c.type=this.inputType;return c}}b.vla=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.it{constructor(c,d="",g=0){super(c,d,g)}}b.R6=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Br{constructor(c,d=""){super(c,d)}get Zj(){return this.Na?[]:this.type==l.i.Pa.jb?l.i.da.Bja:l.i.da.Cja}set Zj(c){}get caption(){if(0==e.model.C.F.xx)return this.vc;switch(this.aa){case l.i.da.xc:return e.P.bind(e.model.B.j.kO,this.vc);case l.i.da.st:return e.P.bind(e.model.B.j.uP,this.vc);case l.i.da.Ej:return e.P.bind(e.model.B.j.uO,this.vc);case l.i.da.xq:return e.P.bind(e.model.B.j.fO,this.vc);case l.i.da.Cv:return e.P.bind(e.model.B.j.CP,
this.vc);case l.i.da.Dv:return e.P.bind(e.model.B.j.DP,this.vc);case l.i.da.MAX:return e.P.bind(e.model.B.j.eP,this.vc);case l.i.da.MIN:return e.P.bind(e.model.B.j.nP,this.vc);case l.i.da.Ir:return e.P.bind(e.model.B.j.FJ,this.vc);case l.i.da.lp:return e.P.bind(e.model.B.j.zJ,this.vc);case l.i.da.Hq:return e.P.bind(e.model.B.j.EJ,this.vc);case l.i.da.Fq:return e.P.bind(e.model.B.j.CJ,this.vc);case l.i.da.Gq:return e.P.bind(e.model.B.j.DJ,this.vc);case l.i.da.Ji:return e.P.bind(e.model.B.j.mJ,this.vc);
case l.i.da.en:return e.P.bind(e.model.B.j.vP,this.vc);case l.i.da.Yn:return e.P.bind(e.model.B.j.xP,this.vc);case l.i.da.Rn:return e.P.bind(e.model.B.j.SI,this.vc);case l.i.da.an:return e.P.bind(e.model.B.j.TI,this.vc);case l.i.da.Wn:return e.P.bind(e.model.B.j.AJ,this.vc);case l.i.da.cn:return e.P.bind(e.model.B.j.BJ,this.vc);case l.i.da.NONE:return this.vc}return e.P.bind(e.model.B.j.LJ,this.vc)}set caption(c){""==c.trim()?this.vc=e.model.B.j.zl:this.vc=c}get kl(){return this.vc}set kl(c){}m1(){var c=
new a("","");return this.format!=c.format||0==this.Km?!1:!0}clone(){var c=new a(this.A);this.iL(c);return c}bj(){const c=super.bj(),d=l.Ra.V().O.Ck(this.A);e.v(d)?c.type=l.i.input.sa.jb:c.type=d.inputType;return c}}b.S6=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.JI{Qa(){var c=super.Qa();c.uniqueName=this.qj;this.parent&&(c.parentMember=this.parent.qj);return c}set caption(c){}get caption(){return this.hierarchy.XC(this.ordinal)}}b.wla=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.yW{constructor(){super();this.EB={};this.uB={};this.xZ()}EK(c,d){this.EB[c]=this.fh(d);this.uB[d]=this.gd(c)}Ck(c){return this.EB[c]}cf(c){return this.uB[c]}bx(c,d=null,g=!1){var k=d?d:new b.S6(c.uniqueName);return super.bx(c,k,e.v(d)||g)}clear(){this.EB={};this.uB={};super.clear()}}b.yla=a})(f.O||(f.O={}))})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.kt{constructor(){super();this.node=null;this.index="";this.mapping=new f.zO;this.We=null;this.Da=l.i.qa.ag}isEqual(a){return a.connection&&a.connection===this.connection&&this.index==a.index?!0:super.isEqual(a)&&JSON.stringify(this.node)==JSON.stringify(a.node)&&this.index==a.index&&this.mapping.isEqual(a.mapping)&&JSON.stringify(this.We)==JSON.stringify(a.We)}get AH(){return!1}Iw(a){if(!e.v(this.connection))return a(this.connection);
var c=new Pa.y6({host:this.node,headers:this.sc,withCredentials:this.withCredentials});a(c)}static zb(a){var c=new b;e.v(a.host)||(c.node=a.host);e.v(a.node)||(c.node=a.node);e.v(a.index)||(c.index=a.index);e.v(a.mapping)||(c.mapping=a.mapping instanceof f.zO?a.mapping:new f.zO(a.mapping));e.v(a.subquery)||(c.We=a.subquery);e.v(a.connection)||(c.connection=a.connection);e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c}Qa(a=!1){var c=
{};c.type=this.Da;e.v(this.node)||(c.node=this.node);e.v(this.index)||(c.index=this.index);if(!this.mapping.nb||this.mapping.Jo)c.mapping=this.mapping.Qa(!0);e.v(this.We)||(c.subquery=this.We);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}clone(){var a=new b;a.Da=this.Da;e.v(this.node)||(a.node=this.node);e.v(this.index)||(a.index=this.index);if(!this.mapping.nb||this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);e.v(this.We)||(a.We=this.We);e.v(this.withCredentials)||
(a.withCredentials=this.withCredentials);return a}}f.Q6=b})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a,c){this.slice=a;this.ma=c}select(){var a={size:0};e.v(this.ma.We)||(a.query=u.Sc.nj(this.ma.We));var c=this.slice.yb.Nc(),d=this.slice.Db.Nc();this.slice.Qc||(c=c.slice(0,1),d=d.slice(0,1));this.Bp(a);0==c.length&&0==d.length?this.qo(a,this.slice.hd(),!0):this.rw(a,c.concat(d));0<d.length&&this.rw(a,d.concat(c),!0);return a}expand(a,c){var d={size:0};e.v(this.ma.We)||(d.query=u.Sc.nj(this.ma.We));var g=a==l.i.ja.La;a=this.slice.yb.Nc();
var k=this.slice.Db.Nc();this.Bp(d);this.Cp(d,c,g?a:k);if(this.slice.Qc)return this.rw(d,a.concat(k)),0<k.length&&this.rw(d,k.concat(a),!0),d;var m=[];if(g){c=c.length+1;var n=this.mda(l.i.ja.Xa),p=this.Mda(this.slice.ce(l.i.ja.Xa).Ed);for(g=1;g<=n;g++)if(!e.v(p[g])||1==g){var t=u.Sc.nj(d);1!=g&&this.Ky(t,p[g],k);var r=a.slice(0,c),w=k.slice(0,g);this.rw(t,r.concat(w));m.push(t)}}else for(g=c.length+1,n=this.mda(l.i.ja.La),p=this.Mda(this.slice.ce(l.i.ja.La).Ed),c=1;c<=n;c++)e.v(p[c])&&1!=c||(t=u.Sc.nj(d),
1!=c&&this.Ky(t,p[c],a),r=a.slice(0,c),w=k.slice(0,g),this.rw(t,r.concat(w)),0<w.length&&this.rw(t,w.concat(r),!0),m.push(t));return m}Mda(a){for(var c={},d=0;d<a.length;d++){var g=a[d].length;e.v(c[g])&&(c[g]=[]);c[g].push(a[d])}return c}bd(a,c,d,g=null){d={size:e.model.C.F.LG};e.v(this.ma.We)||(d.query=u.Sc.nj(this.ma.We));d._source=g.map(k=>{let m=this.slice.Yc.fh(k);return m&&m.Eea?m.iga:k});this.Bp(d);this.Cp(d,a,this.slice.yb.Nc());this.Cp(d,c,this.slice.Db.Nc());return d}A_(a){e.v(a.query)&&
(a.query={});e.v(a.query.bool)&&(a.query.bool={});e.v(a.query.bool.must)?a.query.bool.must=[]:Array.isArray(a.query.bool.must)||(a.query.bool.must=[a.query.bool.must]);e.v(a.query.bool.must_not)?a.query.bool.must_not=[]:Array.isArray(a.query.bool.must_not)||(a.query.bool.must_not=[a.query.bool.must_not])}Cp(a,c,d){this.A_(a);c.forEach((g,k)=>{k=d[k];g=k.ya(g);a.query.bool.must.push(this.fL(k,g))})}Mf(){return null}mda(a){a=this.slice.ce(a).Ed;return 0<a.length?Math.max.apply(Math,a.map(c=>c.length)):
1}Ky(a,c,d){var g={bool:{should:[]}};c.forEach(k=>{k=k.slice(1);d.forEach((m,n)=>{null!=k[n]&&(n=m.ya(k[n]),g.bool.should.push(this.fL(m,n)))})});a.query.bool.must.push(g)}oT(){return 0<this.slice.ce(l.i.ja.Xa).Ed.length}pT(){return 0<this.slice.ce(l.i.ja.La).Ed.length}rw(a,c,d=!1){for(var g=this.slice.hd(),k=0;k<c.length;k++)if(this.qo(a,g,!0),!d||k!=c.length-1){var m=c[k];this.dva(a,m);a=a.aggs[m.A]}d||this.qo(a,g)}dva(a,c){e.v(a.aggs)&&(a.aggs={});e.v(a.aggs[c.A])&&(a.aggs[c.A]={});c.type==l.i.Lc.Sa?
a.aggs[c.A].date_histogram={field:c.A,min_doc_count:this.ma.mapping.Ha(c.A,"min_doc_count"),interval:this.ma.mapping.Ha(c.A,"interval"),time_zone:this.ma.mapping.Ha(c.A,"time_zone"),format:this.ma.mapping.Ha(c.A,"format",e.model.C.F.Ep)}:a.aggs[c.A].terms={field:c.A,size:c.Qm}}qo(a,c,d=!1){e.v(a.aggs)&&(a.aggs={});c.forEach(g=>{a.aggs[(d?"total_":"")+(g.aa+"_")+g.A]={[this.Zya(g)]:{field:g.A}}})}Zya(a){if(a.aa!=l.i.da.Iq){if(a.aa==l.i.da.xq)return"avg";if(a.aa==l.i.da.xc)return"value_count";if(a.aa==
l.i.da.Ej)return"cardinality";if(a.aa==l.i.da.MIN)return"min";if(a.aa==l.i.da.MAX)return"max"}return"sum"}Bp(a){this.slice.ob.Nc().forEach(c=>this.cL(a,c));this.slice.Db.Nc().forEach(c=>this.cL(a,c));this.slice.yb.Nc().forEach(c=>this.cL(a,c))}cL(a,c){if(c.filter.wi){this.A_(a);const m={bool:{should:[]}};for(var d=c.filter.Pj(c.filter.O1),g=0;g<d.length;g++){var k=c.ya(d[g]);m.bool.should.push(this.fL(c,k))}a.query.bool[c.filter.O1?"must_not":"must"].push(m)}else if(c.filter.Qw||c.filter.tM||c.filter.mz)this.A_(a),
d={bool:{should:[]}},c=c.filter.mz?this.Uua(c):this.gva(c),d.bool.should.push(c),a.query.bool[c.isExclude?"must_not":"must"].push(d),delete c.isExclude}Uua(a){const c={},d=0<=l.i.$b.Wx.indexOf(a.filter.query.va)?a.filter.query.LR(a.getTimezoneOffset()):a.filter.query;if(l.i.$b.EQUAL===d.va||l.i.$b.cg===d.va){var g=d.value;c.range={[a.A]:{gte:g.format("yyyy-MM-dd"),lt:g.format("yyyy-MM-dd")+"||+1d/d"}};c.isExclude=l.i.$b.cg===d.va}else if(l.i.$b.FE===d.va)c.range={[a.A]:{lt:d.value.format("yyyy-MM-dd")}},
c.isExclude=!1;else if(l.i.$b.GE===d.va)c.range={[a.A]:{lt:d.value.format("yyyy-MM-dd")+"||+1d/d"}},c.isExclude=!1;else if(l.i.$b.CE===d.va)c.range={[a.A]:{gte:d.value.format("yyyy-MM-dd")+"||+1d/d"}},c.isExclude=!1;else if(l.i.$b.DE===d.va)c.range={[a.A]:{gte:d.value.format("yyyy-MM-dd")}},c.isExclude=!1;else if(l.i.$b.nh===d.va||l.i.$b.bh===d.va)g=d.value[1],c.range={[a.A]:{gte:d.value[0].format("yyyy-MM-dd"),lte:g.format("yyyy-MM-dd")}},c.isExclude=l.i.$b.bh===d.va;return c}gva(a){const c={},d=
a.filter.query;if(l.i.Bb.HE===d.va||l.i.Bb.PA===d.va)c.prefix={[a.A]:d.value},c.isExclude=l.i.Bb.PA===d.va;else if(l.i.Bb.EQUAL===d.va||l.i.Bb.cg===d.va)c.match={[a.A]:d.value},c.isExclude=l.i.Bb.cg===d.va;else if(l.i.Bb.CA===d.va||l.i.Bb.RA===d.va)c.wildcard={[a.A]:"*"+d.value},c.isExclude=l.i.Bb.RA===d.va;else if(l.i.Bb.On===d.va||l.i.Bb.QA===d.va)c.wildcard={[a.A]:"*"+d.value+"*"},c.isExclude=l.i.Bb.QA===d.va;else if(l.i.Bb.GREATER===d.va)c.range={[a.A]:{gt:d.value}},c.isExclude=!1;else if(l.i.Bb.xl===
d.va)c.range={[a.A]:{gte:d.value}},c.isExclude=!1;else if(l.i.Bb.LESS===d.va)c.range={[a.A]:{lt:d.value}},c.isExclude=!1;else if(l.i.Bb.yl===d.va)c.range={[a.A]:{lte:d.value}},c.isExclude=!1;else if(l.i.Bb.nh===d.va||l.i.Bb.bh===d.va)c.range={[a.A]:{gte:d.value[0],lte:d.value[1]}},c.isExclude=l.i.Bb.bh===d.va;return c}fL(a,c){return a.type==l.i.Lc.Sa?{range:{[a.A]:{gte:c.fc,lt:e.CK(new Date(c.fc),this.ma.mapping.Ha(a.A,"interval")).getTime()}}}:{term:{[a.A]:c.caption}}}}f.xla=b})(h.Qe||(h.Qe={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));var Pa;
(function(e){class l extends z.ek{constructor(f){super();f||(f={host:"http://localhost:9200"});this.host="string"===typeof f.host?new h(f.host):h.zb(f.host);f.headers&&(this.host.headers=f.headers);this.contentType=z.yA.K5;this.withCredentials=f.withCredentials}nZ(f,b=q.model.B.j.lP){this.yia=()=>{this.sb(v.fa.Oc,this.yia);f(null,JSON.parse(this.response))};this.N(v.fa.Oc,this.yia);this.eca=()=>{this.sb(v.fa.Aa,this.eca);let a=b;try{const c=JSON.parse(this.response);c&&c.message?a=c.message:c&&c.error&&
c.error.reason&&(a=c.error.reason)}catch(c){}a=q.model.Tb.valid(a)?a:q.model.Tb.validate(a);f({message:a},null)};this.N(v.fa.Aa,this.eca)}search(f,b){this.nZ(b);this.rr=z.xt.zv;this.Qh(this.host.headers);this.data="string"===typeof f.body?f.body:JSON.stringify(f.body);this.load(this.host.sU(`/${f.index}/_search`));this.data=null}Q0(f){this.nZ(f,this.Xca());this.rr=z.xt.fX;this.Qh(this.host.headers);this.load(this.host.sU("/_cat/indices?format=json"))}Wza(f,b){this.nZ(b,this.Xca());this.rr=z.xt.fX;
this.Qh(this.host.headers);this.load(this.host.sU(`/${f}/_mapping`))}Xca(){const f=q.model.B.j.Yna;let b=this.host.sU();b=q.model.Tb.valid(b)?b:q.model.Tb.validate(b);return q.P.bind(f,b)}}e.y6=l;class h{constructor(f){q.ia(f)||this.Mca(f)}Mca(f){f=q.sHa(f);this.host=f.hostname;this.protocol=f.protocol;this.port=f.port;this.path=f.pathname}sU(f=""){this.host&&-1<this.host.indexOf("http")&&this.Mca(this.host);var b="";this.port!==h.Gwa[this.protocol]&&(b=":"+this.port);var a=q.ia(this.path)?"":this.path;
"/"!==a.charAt(0)&&(a="/"+a);var c=q.ia(this.protocol)?"http":this.protocol;b=this.host?c+"://"+this.host+b+a:a;"/"==b.charAt(b.length-1)&&(b=b.substr(0,b.length-1));return b+f}static zb(f){var b=new h;b.headers=f.headers;b.host=f.host;b.path=f.path;b.port=f.port;b.protocol=f.protocol;return b}}h.Gwa={http:80,https:443}})(Pa||(Pa={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){if(null!=b.instance)throw Error("Singleton");}static V(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.instance=null}Q0(a,c){(new Pa.y6(a)).Q0((d,g)=>{if(d)return e.Za(d.message,e.model.B.j.Aa,e.xb.Aa),c(d,g);if(e.v(g))return console.warn("ESConnector: empty response"),c(d,g);d=g.map(k=>k.index).filter(k=>0>k.indexOf(".kibana")&&0>k.indexOf(".security"));c(null,d)})}}f.rla=b})(h.Qe||(h.Qe={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.xa=l.Ra.V();this.ra=this.xa.ra}load(a,c,d,g){this.ma=a;this.query=c;this.Nb=d;this.ab=g;this.ma.Iw(k=>{this.yo=k;this.Zw()})}X4(a,c,d,g=!1){for(var k in c){var m=this.xa.O.fh(k),n=Math.ceil(m.Qm/b.yJ);if(1==n)m=u.Sc.xG(c),delete m[k],this.X4(a,m,d);else for(var p=0;p<n;p++)c[k].forEach(t=>{t.include={partition:p,num_partitions:n}}),d.push(JSON.stringify(a)),m=u.Sc.xG(c),delete m[k],this.X4(a,m,d);if(g)break}return d}Aca(a,
c){for(var d in a){var g=this.xa.O.fh(d);e.v(g)||(e.v(a[d].terms)||(e.v(c[d])&&(c[d]=[]),c[d].push(a[d].terms)),a[d].aggs&&this.Aca(a[d].aggs,c))}return c}Zw(){e.Ca(!0,e.model.B.j.bg);if(this.query.type==l.i.Rd.np){var a=this.Aca(this.query.body.aggs,{}),c=this.X4(this.query.body,a,[],!0);0==c.length&&c.push(JSON.stringify(this.query.body));var d=new u.MJ;c.forEach((g,k)=>{d.add(m=>this.n2(g,k,c.length,m))});d.pg(()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})}else Array.isArray(this.query.body)?(d=new u.MJ,
this.query.body.forEach(g=>{d.add(k=>this.n2(g,0,0,k))}),d.pg(()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})):this.n2(this.query.body,0,0,()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})}n2(a,c,d,g){0<c&&e.Ca(!0,e.model.B.j.bg,(c/d*100).toFixed(0)+"%");this.yo.search({index:this.ma.index,body:a},(k,m)=>{if(k)return this.Sb(k.message,this.ab),g();k=this.xa.ua.yb.Nc();var n=this.xa.ua.Db.Nc();this.query.type!=l.i.Rd.np||this.xa.ua.Qc||(k=k.slice(0,1),n=n.slice(0,1));var p=this.xa.ua.hd();this.K3(m.aggregations,k.concat(n),
p,0,[],[]);0<n.length&&this.lga(m.aggregations,n.concat(k),p,0,[],[]);g()})}K3(a,c,d,g,k,m){const n=c[g];if(n&&a.hasOwnProperty(n.A))a[n.A].buckets.forEach(t=>{var r=null;n.type==l.i.Lc.Sa&&(r=n.vu(t.key));e.v(r)&&(r=n.Ib(t.key_as_string||""+t.key));const w=k.slice(),y=m.slice();r&&this.xa.ua.rows.Hb(n.A)?w.push(r.ordinal):r&&y.push(r.ordinal);this.Vda(t,d)?(r=d.map(A=>this.P3(t,A)),this.ra.insert(w,y,r)):this.K3(t,c,d,g+1,w,y)});else if(g<c.length){var p=k.slice();const t=m.slice();this.xa.ua.rows.Hb(n.A)?
p.push(null):t.push(null);this.K3(a,c,d,g+1,p,t)}p=d.map(t=>this.P3(a,t,!0));this.ra.aA(k,m,p)}P3(a,c,d=!1){if(0==a.doc_count)return c.aa==l.i.da.xc||c.aa==l.i.da.Ej?0:NaN;c=(d?"total_":"")+c.aa+"_"+c.A;return e.v(a[c])?NaN:a[c].value}lga(a,c,d,g,k,m){const n=c[g];e.v(a[n.A])||a[n.A].buckets.forEach(p=>{const t=l.i.Lc.Sa==n.type?n.Ib(""+p.key):n.Ib(p.key_as_string||""+p.key),r=k.slice(),w=m.slice();this.xa.ua.rows.Hb(n.A)?r.push(t.ordinal):w.push(t.ordinal);let y;this.Vda(p,d,!0)&&(y=d.map(A=>this.P3(p,
A,!0)));this.ra.aA(r,w,y);g<c.length-2&&this.lga(p,c,d,g+1,r,w)})}qT(a,c){return c&&a.hasOwnProperty(c.A)}Vda(a,c,d=!1){return(c=c[0])&&a.hasOwnProperty((d?"total_":"")+c.aa+"_"+c.A)}bd(a,c,d,g,k,m,n){e.Ca(!0,e.model.B.j.bg,e.model.B.j.bg);a.Iw(p=>{this.yo=p;this.yo.search({index:a.index,body:c.body},(t,r)=>{if(t)return this.Sb(t.message,n);var w=r.hits.hits.map(A=>A._source),y=c.body._source;w.forEach((A,C)=>{w[C]=y.map(B=>u.Sc.resolve(B,A))});w.unshift(y);m(w)})})}cancel(){this.yo&&this.ma&&!this.ma.connection&&
this.yo.close();this.ab=this.Nb=this.ma=this.xa=this.yo=null}Sb(a,c){console.error(a);e.Ca(!1);e.Za(a,e.model.B.j.Aa,e.xb.Aa);e.Fg(c)&&c(a)}}b.yJ=5E4;f.sla=b})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.WW{Ha(a,c,d){a=this.ds(a,c);d=this.Zh(d);return e.v(this.values[a])?NaN:e.v(this.values[a][d])?NaN:this.values[a][d]}aA(a,c,d){a=this.ds(a,c);e.v(this.values[a])&&(this.values[a]=d)}qB(a,c){return null==a||0==a.length?NaN:this.Fc[c][a[0]]}zda(a,c){var d=a.slice(0);a=a.indexOf(null);0<a&&(d.length=a);d[d.length-1]=0;return this.ld(d,c)}insert(a,c,d){for(;a.length<this.Ph.length;)a.push(null);for(;c.length<this.lj.length;)c.push(null);
var g=a.concat(c);if(!(-1<g.indexOf(0))){if(0==this.ub.length)for(var k=0;k<g.length;k++)this.ub[k]=[];(k=this.zda(a,this.Gd))&&k[0]&&k[0].push(this.Ex);(k=this.zda(c,this.Ud))&&k[0]&&k[0].push(this.Ex);this.rh=e.Ja.vr(this.rh,this.Ex);for(k=0;k<g.length;k++)this.ub[k]=e.Ja.vr(this.ub[k],g[k]);if(0==this.Fc.length)for(k=0;k<d.length;k++)this.Fc[k]=[];for(k=0;k<d.length;k++)this.Fc[k]=e.Ja.vr(this.Fc[k],d[k]);this.values[this.ds(a,c)]=d}}filter(){}}f.tla=b})(h.Qe||(h.Qe={}))})(l.external||(l.external=
{}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){class b extends l.O.km{constructor(a=null){super(a);this.mu={};this.mu.interval="day";this.mu.min_doc_count=1;this.mu.filters=!0}}f.zO=b})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.xa=l.Ra.V();this.yJ=1E5;this.ma=a}load(a,c,d,g){this.Nb=c;this.Oe=g;this.ab=d;e.Ca(!0,e.model.B.j.dF);a.Iw(k=>{this.yo=k;this.w2()})}w2(){this.yo.Wza(this.ma.index,(a,c)=>{if(a)return this.Sb(a.message,this.ab);e.Fg(this.Oe)&&this.Oe();for(var d in c){a=c[d].mappings;for(var g in a)"properties"==g?this.WH(a[g]):this.WH(a[g].properties)}this.mr()})}WH(a,c=null,d="",g="",k=""){for(var m in a)if(this.ma.mapping.Ha(d+m,"visible",
!0)){var n=a[m];if(this.KBa(n)){var p=c?c:this.Wt(m,m);this.WH(n.properties,p,d+m+".",g,k+m+"/")}else if(this.ng(n)){p=c?c:this.Wt(m,m);p=this.oi(p,d+m,m,n,k);var t=this.lk(d+m,m,n);this.xa.O.EK(t.A,p.A)}else if(this.mg(n)){p=c?c:this.Wt(m,m);t=m;var r=!e.ia(g);r&&(t="keyword"==m?g:g+" ("+m+")");p=this.oi(p,d+m,t,n,k);r&&(p.Eea=!0,p.iga=d.substr(0,d.length-1));t=this.lk(d+m,t,n);this.xa.O.EK(t.A,p.A)}e.v(n.fields)||(p=c?c:this.Wt(m,m),this.WH(n.fields,p,d+m+".",m,k+m+"/"))}}Wt(a,c){var d=this.xa.O.Kp(a);
e.v(d)&&(c=this.ma.mapping.Ha(a,"caption",c),d=new f.O.ula(a,c),this.xa.O.Wt(d));return d}oi(a,c,d,g,k=null){var m=a.fh(c);e.v(m)&&(d=this.ma.mapping.Ha(c,"caption",d),m=new f.O.vla(c,d),m.type=l.i.Lc.u0(g.type),m.inputType=g.type,a.oi(m),e.ia(k)?m.Mc=a.caption:("/"==k.charAt(k.length-1)&&(k=k.substr(0,k.length-1)),m.Mc=k),a=new f.O.R6(c,c,1),m.type==l.i.Lc.Sa?a.type=l.i.ib.Jc:m.type==l.i.Lc.Cq&&(a.type=l.i.ib.jb),m.Hh(a));return m}lk(a,c,d){var g=this.xa.O.gd(a);e.v(g)&&(c=this.ma.mapping.Ha(a,"caption",
c),g=new f.O.S6(a,c),g.type=l.i.Pa.u0(d.type),g.Wc=this.ma.mapping.Ha(a,"aggregations"),this.xa.O.lk(g));return g}ng(a){return 0<=l.i.Pa.zL.indexOf(a.type)}KBa(a){return!e.v(a.properties)}mg(a){return 0<=l.i.Lc.zL.indexOf(a.type)}mr(){e.Ca(!1);null!=this.Nb&&this.Nb()}gl(a,c,d){e.Ca(!0,e.model.B.j.Un,a.caption);a.type==l.i.Lc.Sa?this.QCa(a,g=>{if(g)return this.Sb(g,d);a.Wd=!0;e.Ca(!1);c(a)}):this.Nva(a,(g,k)=>{if(g)return this.Sb(g,d);0==k?(a.Wd=!0,c(a)):this.ofa(a,0,Math.ceil(k/this.yJ),k,m=>{if(m)return this.Sb(m,
d);a.Wd=!0;e.Ca(!1);c(a)})})}Nva(a,c){a={size:0,aggs:{count:{cardinality:{field:a.A}}}};e.v(this.ma.We)||(a.query=u.Sc.nj(this.ma.We));this.yo.search({index:this.ma.index,body:a},(d,g)=>{if(d)return c(d.message);c(null,g.aggregations.count.value)})}ofa(a,c,d,g,k){var m={size:0,aggs:{[a.A]:{terms:{field:a.A,include:{partition:c,num_partitions:d},size:2*this.yJ}}}};e.v(this.ma.We)||(m.query=u.Sc.nj(this.ma.We));this.yo.search({index:this.ma.index,body:m},(n,p)=>{if(n)return k(n.message);n=p.aggregations[a.A].buckets;
for(p=0;p<n.length;p++)this.lc(a,n[p].key_as_string||n[p].key,n[p].key);c<d-1?(e.Ca(!0,e.model.B.j.Un,e.P.bind("{0}: {1} of {2} loaded",a.caption,(c+1)*this.yJ,g)),this.ofa(a,c+1,d,g,k)):k()})}QCa(a,c){var d={size:0,aggs:{[a.A]:{date_histogram:{field:a.A,min_doc_count:this.ma.mapping.Ha(a.A,"min_doc_count"),interval:this.ma.mapping.Ha(a.A,"interval"),time_zone:this.ma.mapping.Ha(a.A,"time_zone"),format:this.ma.mapping.Ha(a.A,"format",e.model.C.F.Ep)}}}};e.v(this.ma.We)||(d.query=u.Sc.nj(this.ma.We));
this.yo.search({index:this.ma.index,body:d},(g,k)=>{if(g)return c(g.message);g=k.aggregations[a.A].buckets;for(k=0;k<g.length;k++)this.lc(a,g[k].key_as_string,g[k].key);c()})}lc(a,c,d){"string"!=typeof c&&(c=""+c);const g="number"===typeof d?d:null;let k=a.type!==l.i.Lc.Sa?a.Ib(c):a.vu(g);null==k?(c=a.type==l.i.Lc.Sa?new l.O.ae({A:String(g),caption:c,fc:g}):new l.O.ae({A:c,fc:g}),k=a.lc(c)):k.fc!=d&&a.type==l.i.Lc.Sa&&(k=a.lc(new l.O.ae({A:`${c}-${d}`,caption:c,fc:g})));return k}Bk(a,c,d,g){this.gl(a,
d,g)}Cz(){throw"Not Implemented";}nq(){throw"Not Implemented";}ZB(){return!1}cancel(){this.yo&&this.ma&&!this.ma.connection&&this.yo.close();this.Oe=this.ab=this.Nb=this.ma=this.xa=this.yo=null}Sb(a,c){console.error(a);e.Ca(!1);e.Za(a,e.model.B.j.Aa,e.xb.Aa);e.Fg(c)&&c(a)}}f.zla=b})(h.Qe||(h.Qe={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.O.kt{constructor(){super();this.index=this.url=null;this.Qo=!1;this.mapping=new f.dO;this.Aha="2.8.5";this.Da=l.i.qa.API}isEqual(a){return super.isEqual(a)&&this.url==a.url&&this.index==a.index&&this.Qo==a.Qo&&this.mapping.isEqual(a.mapping)}get AH(){return!0}static zb(a){var c=new b;e.v(a.url)||""==a.url||(c.url=a.url);e.v(a.index)||(c.index=a.index.toString());e.v(a.requestHeaders)||(c.sc=a.requestHeaders);e.v(a.mapping)||(c.mapping=
a.mapping instanceof f.dO?a.mapping:new f.dO(a.mapping));e.v(a.withCredentials)||(c.withCredentials=a.withCredentials);e.v(a.singleEndpoint)||(c.Qo=a.singleEndpoint);return c}Qa(a=!1){var c={};c.type=this.Da;e.v(this.url)||(c.url=this.url);e.v(this.index)||(c.index=this.index);if(a||this.Qo)c.singleEndpoint=this.Qo;if(!this.mapping.nb||this.mapping.Jo)c.mapping=this.mapping.Qa(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c}Iw(){return new f.oA({url:this.url,Qo:this.Qo,
sc:this.sc,withCredentials:this.withCredentials})}clone(){var a=new b;a.Da=this.Da;e.v(this.url)||(a.url=this.url);e.v(this.index)||(a.index=this.index);e.v(this.Qo)||(a.Qo=this.Qo);if(!this.mapping.nb||this.mapping.Jo)a.mapping=this.mapping.clone(this.Da);this.withCredentials&&(a.withCredentials=this.withCredentials);return a}}f.G5=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.pA{constructor(c,d=""){super(c,d)}}b.WKa=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.local.O.bP{constructor(c,d=""){super(c,d);this.Qu=!1}YC(){return new b.vja(this)}get j1(){return e.Fg(this.ex)||this.Qu}TV(c,d){return this.Qu?0<c.UZ.length?this.FJa(c.UZ.slice()):this.GJa(c.children):super.TV(c,d)}FJa(c){return this.Gh===l.i.za.ic?c:this.Gh===l.i.za.Kc?c.reverse():c}GJa(c){this.Gh===l.i.za.ic&&e.Ja.sort(c,e.Ja.Ki);this.Gh===l.i.za.Kc&&e.Ja.sort(c,e.Ja.ep|e.Ja.Ki);return c}clone(){var c=super.clone();
c.Qu=this.Qu;return c}get Wd(){return this.xB}set Wd(c){this.xB=c}}b.cO=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.it{constructor(c,d="",g=0){super(c,d,g)}}b.uja=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.Br{constructor(c,d=""){super(c,d);this.XF=[];this.Sv=void 0}get hc(){return e.model.Tb.valid(this.vc)?this.vc:e.model.Tb.validate(this.vc)}get caption(){if(0==e.model.C.F.xx)return this.hc;switch(this.aa){case l.i.da.Iq:return e.P.bind(e.model.B.j.LJ,this.hc);case l.i.da.xc:return e.P.bind(e.model.B.j.kO,this.hc);case l.i.da.st:return e.P.bind(e.model.B.j.uP,this.hc);case l.i.da.Ej:return e.P.bind(e.model.B.j.uO,
this.hc);case l.i.da.xq:return e.P.bind(e.model.B.j.fO,this.hc);case l.i.da.wv:return e.P.bind(e.model.B.j.rX,this.hc);case l.i.da.Cv:return e.P.bind(e.model.B.j.CP,this.hc);case l.i.da.Dv:return e.P.bind(e.model.B.j.DP,this.hc);case l.i.da.MAX:return e.P.bind(e.model.B.j.eP,this.hc);case l.i.da.MIN:return e.P.bind(e.model.B.j.nP,this.hc);case l.i.da.Ir:return e.P.bind(e.model.B.j.FJ,this.hc);case l.i.da.lp:return e.P.bind(e.model.B.j.zJ,this.hc);case l.i.da.Hq:return e.P.bind(e.model.B.j.EJ,this.hc);
case l.i.da.Fq:return e.P.bind(e.model.B.j.CJ,this.hc);case l.i.da.Gq:return e.P.bind(e.model.B.j.DJ,this.hc);case l.i.da.Ji:return e.P.bind(e.model.B.j.mJ,this.hc);case l.i.da.en:return e.P.bind(e.model.B.j.vP,this.hc);case l.i.da.Yn:return e.P.bind(e.model.B.j.xP,this.hc);case l.i.da.Rn:return e.P.bind(e.model.B.j.SI,this.hc);case l.i.da.an:return e.P.bind(e.model.B.j.TI,this.hc);case l.i.da.Wn:return e.P.bind(e.model.B.j.AJ,this.hc);case l.i.da.cn:return e.P.bind(e.model.B.j.BJ,this.hc);case l.i.da.NONE:return this.hc}return-1<
l.i.da.nO.indexOf(this.aa)?`${this.hc} (${this.aa})`:e.P.bind(e.model.B.j.LJ,this.hc)}set Op(c){this.Qv=c}get Op(){return-1<l.i.da.nO.indexOf(this.fk)?`${this.hc} (${this.fk})`:super.Op}set caption(c){this.vc=c}get kl(){return this.vc}set kl(c){}get Zj(){return this.XF}set Zj(c){this.XF=[];if(!e.v(c))for(var d=0;d<c.length;d++)if("string"==typeof c[d]){var g=c[d].trim().toLowerCase();l.i.da.Ty(g)&&(g=l.i.da.cz(g));l.i.da.iA(g)&&this.XF.push(g)}}set Wc(c){if(e.v(c))this.hn=this.Zj,this.type==l.i.Pa.jb&&
0<this.hn.length&&(this.hn=this.hn.concat(l.i.da.nA));else{for(var d=[],g=0;g<c.length;g++){var k=c[g].trim().toLowerCase();l.i.da.Ty(k)&&(k=l.i.da.cz(k));(-1!==this.Zj.indexOf(k)||this.type==l.i.Pa.jb&&-1!==l.i.da.nA.indexOf(k))&&d.push(k)}this.hn=0<d.length?d:this.Zj}this.Sv=void 0;this.ZAa(this.hn)||(this.hn=[])}get Wc(){return!1===this.Sv||0<this.hn.length?this.hn:this.Zj}ZAa(c){if(void 0===this.Sv){this.Sv=!1;for(var d=0;d<c.length;d++)if(l.i.da.zT(c[d])){this.Sv=!0;break}}return this.Sv}m1(){var c=
new a("","");return this.ve!=c.ve||this.format!=c.format||0==this.Km?!1:!0}clone(){var c=new a(this.A);this.iL(c);void 0!=this.XF&&(c.XF=this.XF.slice());void 0!=this.Sv&&(c.Sv=this.Sv);return c}}b.J5=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.JI{constructor(){super(...arguments);this.UZ=[]}get Oh(){return this.level.Nu?!0:!(this.Rg||this.vf)&&0===this.children.length}}b.vja=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.local.O.cP{constructor(){super();this.VG=new b.ap}Do(c,d){return new b.cO(c,d)}vda(c,d){return new b.J5(c,d)}Tl(c,d,g){return new b.uja(c,d,g)}bx(c,d=null,g=!1){var k=d?d:new b.J5(c.uniqueName);return super.bx(c,k,e.v(d)||g)}}b.EI=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends l.O.wW{constructor(){super(...arguments);this.A9=!1}get JK(){return this.A9}set JK(c){this.A9=c}gaa(c,d){e.v(this.nB)&&(this.nB=new e.tb);this.nB.Ta(c,d)}Gda(c,d){let g=void 0;if(!e.v(this.nB)){const k=l.i.Lc.wE(c.type);this.nB.Hb(k)?g=this.OR(this.nB.getItem(k),d):this.nB.Hb(l.i.input.sa.DI)&&(g=this.OR(this.nB.getItem(l.i.input.sa.DI),d))}return!e.v(this.my)&&this.my.Hb(c.A)?(c=this.OR(this.my.getItem(c.A),d),void 0!==
g&&c.merge(g),c):g?g:this.JK?this.eH(d):null}}a.wH=!1;b.ap=a})(f.O||(f.O={}))})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.interval=this.A=void 0}}f.XKa=b;class a{constructor(){this.xk=void 0;this.aOa=null}}f.YKa=a;class c{constructor(d){this.rows={};this.Ka={};this.values={};this.filters={};this.slice=d}select(){var d=this.lC(l.i.ja.La),g=this.lC(l.i.ja.Xa),k=this.HR(),m=this.Bp(),n={aggs:{}};!m||Array.isArray(m)&&0===m.length||(n.filter=m);if(0<d.length||0<g.length)n.aggs={by:{}},0<d.length&&(n.aggs.by.rows=d),0<g.length&&(n.aggs.by.cols=
g);n.aggs.values=k;return n}QIa(){var d=this.lC(l.i.ja.La),g=this.HR(),k=this.Bp(),m={aggs:{}};!k||Array.isArray(k)&&0===k.length||(m.filter=k);m.fields=d;m.aggs.values=g;return m}Mf(d){var g=this.lC(l.i.ja.La),k=this.lC(l.i.ja.Xa),m=this.HR(),n=this.Bp();d={type:l.i.Rd.qv,axisName:d,aggs:{}};!n||Array.isArray(n)&&0===n.length||(d.filter=n);if(0<g.length||0<k.length)d.aggs={by:{}},0<g.length&&(d.aggs.by.rows=g),0<k.length&&(d.aggs.by.cols=k);0<m.length&&(d.aggs.values=m);return d}expand(d){var g=
this.lC(l.i.ja.La),k=this.lC(l.i.ja.Xa),m=this.HR(),n=this.Bp();d={type:l.i.Rd.EA,axisName:d,aggs:{}};!n||Array.isArray(n)&&0===n.length||(d.filter=n);if(0<g.length||0<k.length)d.aggs={by:{}},0<g.length&&(d.aggs.by.rows=g),0<k.length&&(d.aggs.by.cols=k);0<m.length&&(d.aggs.values=m);return d}bd(d,g,k=!0){return k?this.qxa(d):this.W_(d,g)}qxa(d){d=this.Xua(d);var g=this.Bp(),k={};k.limit=e.model.C.F.LG;!g||Array.isArray(g)&&0===g.length||(k.filter=g);k.fields=d;return k}W_(d,g){var k=[];const m=this.slice.wc(!1,
!0,!0,!0).Nc();var n=[];for(let w=0;w<d.length;w++){var p={uniqueName:d[w]},t=m.find(y=>y.A===d[w]);if(t){var r=t.ta.ea(1);this.CK(r,t.interval,p)}k.push(p);void 0!==g[d[w]]&&(t={},t.field={uniqueName:d[w]},p=g[d[w]],l.i.ib.VT(r.type)&&!isNaN(p)&&null!==p?p=+p:r.type===l.i.ib.$c&&(p=""+p),t.include=[{member:p}],n.push(t))}e.v(this.filters)||n.push(...this.Yua());g={};g.limit=e.model.C.F.LG;0<n.length&&(g.filter=n);g.fields=k;return g}Xua(d){const g=[],k=this.slice.Yc.wc(!1).Nc();for(var m=0;m<d.length;m++){const p=
{uniqueName:d[m]};var n=k.find(t=>t.A===d[m]);n&&this.CK(n.ta.ea(1),n.interval,p);g.push(p)}return g}lC(d){const g=[],k=this.slice.wc(!1,!0,!0,!0).Nc();d=d===l.i.ja.La?this.rows:this.Ka;for(var m=0;m<k.length;m++){const t=k[m].A;if(void 0!==d[t])if(0===d[t].length){var n={uniqueName:t};this.CK(k[m].ta.ea(1),k[m].interval,n);g.push(n)}else for(n=0;n<k[m].ta.length;n++){var p=k[m].ta.ea(n).A;-1!==d[t].indexOf(p)&&g.push({uniqueName:p})}}return g}CK(d,g,k){if(d.type===l.i.ib.Sa||d.type===l.i.ib.Jc)k.interval=
g}HR(){let d=[];for(let g in this.values)for(let k=0;k<this.values[g].length;k++)d.push({func:this.values[g][k],field:{uniqueName:g}});return d}cL(d){var g=d.A,k=d.mg?d.ta.ea(1).A:g,m={};m.field={uniqueName:k};if(void 0!==this.filters[g].query)if(f.O.ap.wH)Array.isArray(this.filters[g].query)?m={type:"or",value:this.filters[g].query}:m.query=this.filters[g].query;else if(d.mg){var n=Object.keys(this.filters[g].query)[0];l.i.qb.hea(d.ta.ea(1).type,n)&&(m.query=this.filters[g].query)}else m.query=this.filters[g].query;
void 0!==this.filters[g].value&&(m.value=this.filters[g].value);if(void 0!==this.filters[g].include)for(m.include=[],n=0;n<this.filters[g].include.length;n++)m.include.push(this.filters[g].include[n]);if(void 0!==this.filters[g].exclude)for(m.exclude=[],n=0;n<this.filters[g].exclude.length;n++)m.exclude.push(this.filters[g].exclude[n]);if(void 0!==this.filters[g].intersect)if(f.O.ap.wH)void 0!==m.include?m={type:"and",value:[{field:{uniqueName:k},include:this.filters[g].intersect},{field:{uniqueName:k},
include:this.filters[g].include}]}:void 0!==m.query||void 0!==m.exclude||void 0===m.field?m={type:"and",value:[{field:{uniqueName:k},include:this.filters[g].intersect},m]}:m.include=this.filters[g].intersect;else{k={};k.field={uniqueName:d.mg?d.ta.ea(1).A:g};k.include=[this.filters[g].intersect[0]];if(void 0!==m.include||void 0!==m.exclude||void 0!==m.query)k.include[0].filter=m;m=k}return m}Yua(){for(var d=[],g=this.slice.wc(!1,!0,!0).Nc(),k=0;k<g.length;k++)if(void 0!==this.filters[g[k].A]){var m=
{};if(this.filters[g[k].A].intersect)m.include=this.filters[g[k].A].intersect;else if(this.filters[g[k].A]){var n=Object.keys(this.filters[g[k].A]),p=n[0];m[p]=this.filters[g[k].A][p];n[1]&&(p=n[1],m[p]=this.filters[g[k].A][p])}else continue;m.field={uniqueName:g[k].mg?g[k].ta.ea(1).A:g[k].A};d.push(m)}return d}Bp(){for(var d=[],g=this.slice.wc(!1,!0,!0).Nc(),k=0;k<g.length;k++){var m=g[k];this.rZ(m);void 0!==this.filters[m.A]&&d.push(this.cL(m))}if(!f.O.ap.wH)return d;if(0<d.length)return{type:"and",
value:d}}Uk(d,g){this.ty(this.rows,d,g)}tm(d,g){this.ty(this.Ka,d,g)}ty(d,g,k){var m=g.A;void 0===d[m]&&(d[m]=[]);if(void 0===k&&g.mg){if(null!=g.oc||this.slice.kd){for(k=1;k<g.ta.length;k++){var n=g.ta.ea(k);-1===d[m].indexOf(n.A)&&d[m].push(n.A);if(n==g.oc&&!this.slice.kd)break}return}k=g.ta.ea(1)}void 0!==k&&(g=k.A,-1===d[m].indexOf(g)&&d[m].push(g))}daa(d){d.forEach(g=>{this.Uk(g)})}R$(d){d.forEach(g=>{this.tm(g)})}FK(d){if(""!==d.xm){var g=d.A,k=d.xm;void 0===this.values[g]&&(this.values[g]=
[]);d.Na||-1!==this.values[g].indexOf(k)||this.values[g].push(k)}}tsa(d,g){void 0===this.filters[d.A]&&(this.filters[d.A]={});d.filter.mz&&(g=g.LR(d.getTimezoneOffset()));g=this.Qga(g);if(d.mg&&f.O.ap.wH){for(var k=[],m=1;m<d.ta.length;m++){var n=Object.keys(g)[0],p=d.ta.ea(m);l.i.qb.hea(p.type,n)&&k.push({field:{uniqueName:p.A},query:g})}this.filters[d.A].query=k}else this.filters[d.A].query=g}usa(d,g,k){d=d.A;void 0===this.filters[d]&&(this.filters[d]={});this.filters[d].query=this.Qga(g);this.filters[d].value=
{field:{uniqueName:k.A},func:k.aa}}Qga(d){let g=d.value;g instanceof e.Zg&&(g=g.getTime());Array.isArray(g)&&g[0]instanceof e.Zg&&(g=[g[0].getTime(),g[1].getTime()]);return{[d.va]:g}}$r(d,g,k,m){var n=d.A;f.O.ap.sM||"intersect"!==k||(k="include");void 0===this.filters[n]&&(this.filters[n]={});void 0===this.filters[n][k]&&(this.filters[n][k]=[]);for(var p,t,r;!g.Zb&&void 0!==g.parent;){var w=g.level.A;t=g.A;e.model.C.F.br&&("null"===t&&(t=null),"undefined"===t&&(t=void 0),"(blank)"===t&&(t=""));e.ia(t)||
(t=l.i.ib.VT(g.level.type)&&!isNaN(g.fc)?g.fc:1<g.level.wb?g.A.substr(1,g.A.length-2).split("].[").pop():g.A);r={};g.parent.Zb?(r.member=t,void 0!==p&&(r.filter=p)):(m?this.Uk(d,g.level):this.tm(d,g.level),r.field={uniqueName:w},r.include=[{member:t}],void 0!==p&&(r.include[0].filter=p));p=r;g=g.parent}this.filters[n][k].push(p)}rZ(d,g=!1,k){var m=d.filter.clone();if(m.wi&&!g){var n=m.Pj().length<d.Ri/2;g=n?m.Pj():m.Pj(!0);for(var p=0;p<g.length;p++){var t=d.ya(g[p]);this.$r(d,t,n?"include":"exclude",
k)}}!e.v(m.query)&&m.oz&&(!e.v(m.measure)&&m.xi?(k=this.slice.Yc.gd(m.measure.A))&&!0!==k.Na&&(l.i.da.zT(m.measure.aa)||(m.measure.aa=k.xm),this.usa(d,m.query,m.measure)):this.tsa(d,m.query))}clone(){var d=new c(this.slice);d.rows=u.Sc.nj(this.rows);d.Ka=u.Sc.nj(this.Ka);d.values=u.Sc.nj(this.values);d.filters=u.Sc.nj(this.filters);return d}}c.lX=["type","axisName"];f.lv=c})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.slice=c}get tBa(){return h.pc.O.ap.sM}select(){return e.model.C.F.rc&&e.model.C.F.je!==e.K.Id.dj?this.ava():this.mva()}ava(){for(var c=new f.lv(this.slice),d=this.slice.wc(!1,!0,!0,!0),g=0;g<d.length;g++){var k=this.slice.cf(d.ea(g).A);this.Aea(k)&&c.FK(k);k=d.ea(g);if(k.mg)for(var m=1;m<k.ta.length;m++)c.Uk(k,k.ta.ea(m));else c.Uk(k)}for(g=0;g<this.slice.Kf.length;g++)d=this.slice.Kf[g],this.Aea(d)&&c.FK(d);return c.QIa()}Aea(c){return c.type!==
l.i.Pa.xc&&c.type!==l.i.Pa.Sa}mva(){var c=new f.lv(this.slice),d=this.slice.yb.Nc(),g=this.slice.Db.Nc();this.slice.Qc?(0<d.length&&c.daa(d),0<g.length&&c.R$(g)):(0<d.length&&c.Uk(d[0]),0<g.length&&c.tm(g[0]));for(d=0;d<this.slice.Kf.length;d++)g=this.slice.Kf[d],g.Na||c.FK(g);return c.select()}T$(c,d){d(c);if(2<c.ta.length){let k=1;var g=c.ta.ea(k);for(g=c.CC(g);g&&0<g.length;)g=c.ta.ea(++k),d(c,g),g=c.CC(g)}}expand(c,d){const g=new f.lv(this.slice);var k=c==l.i.ja.La,m=this.slice.yb.Nc(),n=this.slice.Db.Nc();
if(k){0<n.length&&this.T$(n[0],(t,r)=>g.tm(t,r));for(n=0;n<d.length;n++)for(var p=m[n].ya(d[n]);!p.Zb;)g.Uk(p.hierarchy,p.level),g.$r(m[n],p,"intersect",!0),p=p.parent;p=m[d.length];if(null==p.oc)g.Uk(p,p.ta.ea(1));else for(d=1;d<p.ta.length&&(m=p.ta.ea(d),g.Uk(p,m),m!=p.oc);d++);}else{0<m.length&&this.T$(m[0],(t,r)=>g.Uk(t,r));for(m=0;m<d.length;m++)for(p=n[m].ya(d[m]);!p.Zb;)g.tm(p.hierarchy,p.level),g.$r(n[m],p,"intersect",!1),p=p.parent;p=n[d.length];if(null==p.oc)g.tm(p,p.ta.ea(1));else for(d=
1;d<p.ta.length&&(m=p.ta.ea(d),g.tm(p,m),m!=p.oc);d++);}for(d=0;d<this.slice.Kf.length;d++)p=this.slice.Kf[d],p.Na||g.FK(p);k=this.N$(g,k?l.i.ja.Xa:l.i.ja.La);k.unshift(g.expand(c));return k}Mf(c,d,g){var k=new f.lv(this.slice),m=c==l.i.ja.La,n=this.slice.yb.Nc(),p=this.slice.Db.Nc();if(m)for(k.daa(n.slice(0,d.length)),0<p.length&&k.tm(p[0]),p=0;p<d.length-1;p++)k.$r(n[p],n[p].ya(d[p]),"intersect",!0);else for(k.R$(p.slice(0,d.length)),0<n.length&&k.Uk(n[0]),n=0;n<d.length-1;n++)k.$r(p[n],p[n].ya(d[n]),
"intersect",!1);d=g;n=d.hierarchy.ta.ea(d.level.wb+1);if(m)for(k.Uk(d.hierarchy,n);!d.Zb;)k.Uk(d.hierarchy,d.level),d=d.parent;else for(k.tm(d.hierarchy,n);!d.Zb;)k.tm(d.hierarchy,d.level),d=d.parent;k.$r(g.hierarchy,g,"intersect",m);for(g=0;g<this.slice.Kf.length;g++)d=this.slice.Kf[g],d.Na||k.FK(d);g=this.N$(k,m?l.i.ja.Xa:l.i.ja.La);m=this.dsa(k,m?l.i.ja.Xa:l.i.ja.La);g.concat(m);g.unshift(k.Mf(c));return g}N$(c,d){var g=[],k=d===l.i.ja.La,m=this.slice.yb.Nc(),n=this.slice.Db.Nc(),p=k?this.slice.cc.Ed:
this.slice.Rb.Ed;for(let w=0;w<p.length;w++){const y=p[w];var t=c.clone();if(k){for(var r=0;r<y.length-1;r++)t.Uk(m[r]),t.$r(m[r],m[r].ya(y[r+1]),"intersect",!0);t.Uk(m[y.length-1])}else{for(r=0;r<y.length-1;r++)t.tm(n[r]),t.$r(n[r],n[r].ya(y[r+1]),"intersect",!1);t.tm(n[y.length-1])}g.push(t.expand(d))}return g}dsa(c,d){var g=[],k=d===l.i.ja.La,m=this.slice.yb.Nc(),n=this.slice.Db.Nc(),p=k?this.slice.cc.tf:this.slice.Rb.tf;for(let A=0;A<p.length;A++){var t=p[A].slice(),r=c.clone(),w=t.pop();t.shift();
if(k){for(var y=0;y<t.length;y++)r.Uk(m[y]),r.$r(m[y],m[y].ya(t[y+1]),"intersect",!0);t=m[t.length-1];r.Uk(t)}else{for(y=0;y<t.length;y++)r.tm(n[y]),r.$r(n[y],n[y].ya(t[y+1]),"intersect",!1);t=n[t.length-1];r.tm(t)}w=y=t.ya(w);y=t.ta.ea(y.level.wb+1);if(k)for(c.Uk(t,y);!w.Zb;)c.Uk(t,w.level),w=w.parent;else for(c.tm(t,y);!w.Zb;)c.tm(t,w.level),w=w.parent;g.push(r.Mf(d))}return g}bd(c,d,g,k=null){return this.tBa?this.pxa(c,d,k):this.W_(c,d,k)}pxa(c,d,g=null){const k=new f.lv(this.slice),m=this.slice.ob.Nc(),
n=this.slice.yb.Nc(),p=this.slice.Db.Nc(),t=this.slice.Kf;this.V_(m,[],k,g,!1);this.V_(n,c,k,g,!0);this.V_(p,d,k,g,!1);for(c=0;c<t.length;c++)-1===g.indexOf(t[c].A)&&g.push(t[c].A);return k.bd(g,!0)}V_(c,d,g,k,m){for(var n,p=0;p<c.length;p++)if(g.rZ(c[p],!e.v(d[p]),m),d[p]&&(n=c[p].ya(d[p]))&&g.$r(c[p],n,"intersect",m),c[p].mg){let r=k.indexOf(c[p].A);-1!==r&&k.splice(r,1);for(n=1;n<c[p].ta.length;n++){var t=c[p].ta.ea(n);-1===k.indexOf(t.A)&&(-1===r?k.push(t.A):k.splice(r++,0,t.A))}}else-1===k.indexOf(c[p].A)&&
k.push(c[p].A)}W_(c,d,g=null){const k=new f.lv(this.slice),m=this.slice.ob.Nc(),n=this.slice.yb.Nc(),p=this.slice.Db.Nc(),t=this.slice.Kf,r={};this.X_(m,[],r,k,g);this.X_(n,c,r,k,g);this.X_(p,d,r,k,g);for(c=0;c<t.length;c++)-1===g.indexOf(t[c].A)&&g.push(t[c].A);return k.bd(g,r,!1)}X_(c,d,g,k,m){let n,p;for(var t=0;t<c.length;t++)p=c[t].A,k.rZ(c[t],!e.v(d[t])),d[t]&&(n=c[t].ya(d[t]))&&(g[p]=l.i.ib.VT(n.level.type)?n.fc:n.A),-1===m.indexOf(p)&&m.push(p)}}f.wja=b;class a{constructor(c){this.page=0;
this.mx=null;this.OK=d=>{null!=this.mx?d.pageToken=this.mx:d.page=this.page};e.v(c.mx)||(this.mx=c.mx);e.v(c.page)||(this.page=c.page)}}f.Xm=a})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.IH=[];this.withCredentials=this.closed=!1;"string"===typeof c.url?this.url=c.url:e.Fg(c.url)&&(this.bja=(d,g,k)=>c.url(d,g,k));this.Qo=c.Qo;this.sc=c.sc;this.withCredentials=c.withCredentials}Qh(c){this.sc=c;for(const d of this.IH)d.Qh(this.sc)}nx(c,d,g,k=null){if(e.v(this.url))e.v(this.bja)?e.Ce(()=>{g(e.model.B.j.Vna,null)},1):e.Ce(()=>{d=this.rba(d);this.bja(JSON.stringify(d),n=>{if(!this.closed)if("object"==typeof n)g(null,
n);else if("string"==typeof n)try{var p=JSON.parse(n);g(null,p)}catch(t){g(t,null)}},n=>{if(!this.closed)if("object"==typeof n)g(n.message||n,null);else if("string"==typeof n)try{var p=JSON.parse(n);g(p.message||p,null)}catch(t){g(t,null)}})},1);else{var m=this.gwa();m.$e=g;m.RN=k;d=this.rba(d,m);m.data=JSON.stringify(d);m.load(this.Qo?this.url:`${this.url}/${c}`)}}gwa(){var c=z.xt.zv,d=new a;d.contentType=z.yA.K5;d.rr=c;d.withCredentials=this.withCredentials;d.Qh(this.sc);d.N(v.fa.Oc,()=>this.kr(d));
d.N(v.fa.Aa,g=>this.Sb(g,d));this.IH.push(d);return d}rba(c,d){if(!e.v(b.nL)){var g=JSON.parse(JSON.stringify(c));g.requestHeaders=e.v(this.sc)?{}:this.sc;g=b.nL(g);e.v(g)||(e.v(g.requestHeaders)||(e.v(d)||d.Qh(g.requestHeaders),delete g.requestHeaders),c=g)}return c}a_(c){c.close();this.IH.splice(this.IH.indexOf(c),1)}kr(c){if("object"==typeof c.response)c.$e(null,c.response);else if("string"==typeof c.response)try{var d=JSON.parse(c.response);c.$e(null,d)}catch(g){c.$e(g,null)}this.a_(c)}Sb(c,d){d.$e(this.parseError(c.data,
d),null);this.a_(d)}parseError(c,d){let g=e.v(c)?"":c;if("object"==typeof d.response)g+=d.response.message||d.response;else if("string"==typeof d.response)try{var k=JSON.parse(d.response);g+=k.message||k}catch(m){g=e.v(c)?m:c}return g}close(){for(this.closed=!0;0<this.IH.length;)this.a_(this.IH[0])}}b.nL=null;f.oA=b;class a extends z.ek{bv(c){if(null!=this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.oI();if(401===this.xhr.status&&e.Fg(this.RN))return this.RN(d=>{d?this.retry():
this.Sb(c)});this.Sb(c)}null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Fa(new v.fa(v.fa.vA)))}Sb(){var c;0===this.xhr.status?c=e.P.bind(e.model.B.j.Una,this.url):404===this.xhr.status?c=e.P.bind(e.model.B.j.Pna,this.url):400===this.xhr.status?c=e.P.bind(e.model.B.j.Ona,this.url):500===this.xhr.status&&(c=e.P.bind(e.model.B.j.Qna,this.url));this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText;this.Fa(new v.fa(v.fa.Aa,this,c))}}})(h.pc||(h.pc=
{}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{am(a){if(e.model.Ua.V().n1(e.model.Ua.OJ)){const c=new e.model.cd(e.model.Ua.OJ,d=>{if(!e.v(d)&&!e.v(d.requestHeaders)){const g=this.ma.sc||{};for(let k in d.requestHeaders)d.requestHeaders.hasOwnProperty(k)&&(g[k]=d.requestHeaders[k]);this.ma.sc=g;this.client.Qh(g)}a(!0)});e.model.Ua.V().Fa(c)}else a(!1)}}f.F5=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.F5{constructor(a){super();this.xa=l.Ra.V();this.ma=a;this.client=this.ma.Iw()}load(a,c,d,g){this.Nb=c;this.ab=d;this.Oe=g;this.wia=!1;this.XAa()}XAa(){this.client.nx("handshake",{type:"handshake",version:e.ph.ft},(a,c)=>{a=!0;let d;e.v(c)||(this.client.close(),d=c.version,a=this.nua(d),this.ma.Aha=d,this.client=this.ma.Iw());if(a&&!this.wia)this.w2();else if(!e.v(d)&&this.sCa(d))return this.Sb(e.P.bind(e.model.B.j.Tna,this.ma.url,
b.NX))},a=>this.am(a));e.Ca(!0,e.model.B.j.dF)}nua(a){return e.ia(a)?!0:-1!=e.P.FR(a,b.NX)}sCa(a){return-1==e.P.FR(a,b.NX)}w2(){this.wia=!0;this.client.nx("fields",{index:this.ma.index,type:"fields"},(a,c)=>{if(a)return this.Sb(a);this.mr(c)},a=>this.am(a));e.Ca(!0,e.model.B.j.dF)}mr(a){e.Ca(!1);null!=this.Oe&&this.Oe();if(e.v(a)||e.v(a.fields))return this.Sb(e.P.bind(e.model.B.j.Sna,this.ma.url));a.sorted&&(this.xa.O.Qu=!0);let c;e.v(a.aggregations)||(c=this.MGa(a.aggregations));e.v(a.filters)||
this.aHa(a.filters);this.WH(a.fields,c);null!=this.Nb&&this.Nb()}MGa(a){let c={};if(Array.isArray(a))c[l.i.input.sa.DI]=a.map(n=>n.toString());else for(var d=0;d<l.i.input.sa.MK.length;d++){var g=l.i.input.sa.MK[d];if(!e.v(a[g])&&Array.isArray(a[g])){e.v(c[g])&&(c[g]=[]);for(var k=0;k<a[g].length;k++){var m=a[g][k].toLowerCase();c[g].push(m);-1===l.i.da.mA.indexOf(m)&&m!==l.i.da.NONE&&(l.i.da.mA.push(m),l.i.da.nO.push(m))}}}return c}ywa(a){let c;switch(a){case l.i.input.sa.$c:c=l.i.qb.Ok;break;case l.i.input.sa.jb:c=
l.i.qb.jb;break;case l.i.input.sa.Sa:c=l.i.qb.Sa}return c}aHa(a){if(!0===a||!1===a)this.xa.O.VG.JK=a;else{for(var c=0;c<l.i.input.sa.MK.length;c++){var d=l.i.input.sa.MK[c];if(!e.v(a[d])){const g=this.pga(a[d],this.ywa(d));this.xa.O.VG.gaa(d,g)}}f.O.ap.sM=!0===a.advanced;f.O.ap.sM&&(f.O.ap.wH=1==e.P.FR(this.ma.Aha,"2.8.21"))}}pga(a,c){if(!0===a||!1===a)return a;let d=new l.O.Wpa;e.v(a.members)||(d.md=!0===a.members);if(!e.v(a.query))if("boolean"===typeof a.query)d.query=a.query;else if(Array.isArray(a.query))for(let g of a.query)if(c==
l.i.qb.Ok&&l.i.Bb.Ug(g)||c==l.i.qb.jb&&l.i.Jg.Ug(g)||c==l.i.qb.Sa&&l.i.$b.Ug(g)||e.v(c)&&l.i.Bb.Ug(g)&&l.i.Jg.Ug(g)&&l.i.$b.Ug(g))e.v(d.query)&&(d.query=[]),d.query.push(g);if(!e.v(a.valueQuery))if("boolean"===typeof a.valueQuery)d.gm=a.valueQuery;else if(Array.isArray(a.valueQuery))for(let g of a.valueQuery)l.i.yc.Ug(g)&&(e.v(d.gm)&&(d.gm=[]),d.gm.push(g));return d}WH(a,c){for(let m=0;m<a.length;m++){var d=a[m],g=d.type;if(!d.hasOwnProperty("uniqueName")||e.v(d.uniqueName)||"string"!==typeof d.uniqueName)continue;
var k=d.uniqueName;let n=void 0;if(!e.v(d.aggregations)&&Array.isArray(d.aggregations)){const p=d.aggregations;n=[];for(let t=0;t<p.length;t++){const r=p[t].toLowerCase();n.push(r);-1===l.i.da.mA.indexOf(r)&&r!==l.i.da.NONE&&(l.i.da.mA.push(r),l.i.da.nO.push(r))}}void 0!==n&&0<n.length?d.supportedAggregations=n:e.v(c)||(e.v(c[g])?e.v(c[l.i.input.sa.DI])||(d.supportedAggregations=c[l.i.input.sa.DI]):d.supportedAggregations=c[g]);d.type===l.i.input.sa.Sa&&(d.type=l.i.input.sa.Dj);this.xa.O.sy(d,k);
g=this.xa.O.RC(k);g instanceof f.O.cO&&!e.v(d.filters)&&(k=e.model.hb.JA.WS(g),d=this.pga(d.filters,k),this.xa.O.VG.zsa(g.A,d))}}Sb(a){console.error(a);e.Ca(!1);a=a.message||a;e.Za(a,e.model.B.j.Aa,e.xb.Aa);this.ab&&e.Fg(this.ab)&&(this.ab(a),this.ab=null)}gl(a,c,d){const g=this.xa.ga.mapping.Ha(a.A,"filters");!1===g||!1===g.members?setTimeout(c,1,a):(this.ab=d,e.Ca(!0,e.model.B.j.Un,a.caption),a.mg?null!==a.oc||this.xa.ua.kd?this.SM(a,k=>this.Sj(k,c)):this.Bk(a,a.Ad,k=>this.Sj(k,c)):this.v2(a,new f.Xm({page:0}),
k=>this.Sj(k,c)))}v2(a,c,d){var g={};if(a.ta.ea(1).type===l.i.ib.Sa||a.ta.ea(1).type===l.i.ib.Jc)g.interval=a.interval;g.uniqueName=a.A;g={index:this.ma.index,type:"members",field:g};c.OK(g);this.client.nx("members",g,(k,m)=>{if(k)return this.Sb(k);if(!this.M3(a,m))return this.Sb(e.P.bind(e.model.B.j.b8,this.ma.url));e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?(e.Ca(!0,e.model.B.j.Un,`${a.caption} - ${Math.round((c.page+1)/m.pageTotal*100)}%`),this.v2(a,new f.Xm({page:c.page+1}),
d)):(a.Wd=!0,d(a)):(e.Ca(!0,e.model.B.j.Un,a.caption),this.v2(a,new f.Xm({mx:m.nextPageToken}),d))},k=>this.am(k))}fL(a){for(var c;!a.Zb;){var d={};if(a.level.type===l.i.ib.Sa||a.level.type===l.i.ib.Jc)d.interval=a.level.hierarchy.interval;d.uniqueName=a.level.A;var g=a.A;l.i.ib.VT(a.level.type)&&!isNaN(a.fc)?g=a.fc:1<a.level.wb&&(g=a.A.substr(1,a.A.length-2).split("].[").pop());var k=c;c={field:d,include:[{member:g}]};k&&(c.include[0].filter=k);a=a.parent}return c}nfa(a,c,d,g){var k={};if(a.type===
l.i.ib.Sa||a.type===l.i.ib.Jc)k.interval=a.hierarchy.interval;k.uniqueName=a.A;k={index:this.ma.index,type:"members",field:k};var m=this.fL(c);m&&(k.filter=f.O.ap.wH?{type:"and",value:[m]}:m);d.OK(k);this.client.nx("members",k,(n,p)=>{if(n)return this.Sb(n);if(!this.QGa(c,p))return this.Sb(e.P.bind(e.model.B.j.b8,this.ma.url));!e.v(p.pageTotal)&&d.page+1<p.pageTotal?(e.Ca(!0,e.model.B.j.Un,a.caption+" - "+(d.page+1)+"/"+p.pageTotal),this.nfa(a,c,new f.Xm({page:d.page+1}),g)):(c.vf=!1,g(a.hierarchy))},
n=>this.am(n))}Sj(a,c){var d=a.ev;this.T4(d);if(0<a.filter.cm.length)this.RM(a,a.filter.cm,a.filter.YH,k=>{k.pw();this.Sj(k,c)});else if(0<d.length){var g=d.shift();0==d.length&&a.Saa();a.ev=d;d=a.Ib(g[1]);a.Xy(d);this.Bk(a,d,k=>this.Sj(k,c))}else a.Wd=!0,c(a)}T4(a){a.sort((c,d)=>{if(c.length!==d.length)return 0;var g=c.length-1;c=c[g];d=d[g];return e.v(d)||void 0===d.indexOf?1:e.v(c)||void 0===c.indexOf||-1!==d.indexOf(c)?-1:-1!==c.indexOf(d)?1:0})}QGa(a,c){if(e.v(c)||e.v(c.members))return!1;if(0===
c.members.length||1===c.members.length&&e.ia(c.members[0].value))return a.vf=!1,a.Rg=!1,!0;for(var d=c.members,g=0;g<d.length;g++){var k=this.lc(a.hierarchy,a,d[g]);c.sorted&&a.UZ.push(k.ordinal);k.vf=!k.level.Nu}c.sorted&&(a.hierarchy.Qu=!0);return!0}M3(a,c){if(e.v(c)||e.v(c.members))return!1;for(var d=c.members,g=0;g<d.length;g++)this.lc(a,null,d[g]);c.sorted&&(a.Qu=!0);return!0}lc(a,c,d){var g=String(d.value);var k=a.type===l.i.Lc.pv&&void 0!==d.id?String(d.id):null===c||c.Zb?g:("["===c.A.substr(0,
1)?c.A:"["+c.A+"]")+".["+g+"]";var m=a.Ib(k);e.v(m)&&(g=new l.O.ae({A:k,caption:g}),e.v(c)||(g.parent=c),g.value=d.value,a.mg?(c=a.ta.ea(c.level.wb+1),d=c.A,g.level=c,c=this.xa.O.TC(d)):c=this.xa.O.TC(a.A),m=a.lc(g,c));a.wV(m);return m}Bk(a,c,d){null==c||!c.Zb&&!c.vf||c.Oh?d(a):this.nfa(a.ta.ea(c.level.wb+1),c,new f.Xm({page:0}),()=>{c.vf=!1;d(a)})}SM(a,c){this.u2(a,new f.Xm({page:0}),()=>{c(a)})}u2(a,c,d){for(var g=[],k=1;k<a.ta.length;k++){var m=a.ta.ea(k);g.push({uniqueName:m.A});if(m==a.oc)break}m=
[];for(k=0;k<g.length;k++)m.push({field:g[k],func:"count"});g={type:"select",index:this.ma.index,query:{aggs:{by:{rows:g},values:m}}};c.OK(g);this.client.nx("select",g,(n,p)=>{n?(this.Sb(n),d(a)):this.hHa(p,a)?e.v(p.nextPageToken)?!e.v(p.pageTotal)&&c.page+1<p.pageTotal?this.u2(a,new f.Xm({page:c.page+1}),d):d(a):this.u2(a,new f.Xm({mx:p.nextPageToken}),d):(this.Sb(e.P.bind(e.model.B.j.c8,this.ma.url)),d(a))},n=>this.am(n))}hHa(a,c){if(e.v(a)||e.v(a.aggs))return!1;a=a.aggs;for(var d,g,k,m,n,p,t=0;t<
a.length;t++){d=a[t].keys;n=void 0;g=[];for(var r in d)m=d[r],g.push(m),k=1===g.length?m:`[${g.join("].[")}]`,p=c.Ib(k),null==p&&(k=new l.O.ae({A:k,caption:m,parent:n}),p=c.lc(k),p.vf=!p.level.Nu),n=p}return!0}RM(a,c,d,g){this.Gca(a,c,0,g)}Gca(a,c,d,g){d===c.length?g(a):this.Hca(a,"["===c[d].substr(0,1)?c[d].substr(1,c[d].length-2).split("].["):[c[d]],0,()=>this.Gca(a,c,d+1,g))}Hca(a,c,d,g){if(d===c.length)g(a);else{var k="";if(0<d){k=[];for(var m=0;m<=d;m++)k.push("["+c[m]+"]");k=k.join(".")}else k=
c[0];a.type===l.i.Lc.Sa?(k=(new e.Zg(k)).getTime(),k=a.vu(k)):k=a.Ib(k);this.Bk(a,k,()=>this.Hca(a,c,d+1,g))}}Cz(){}nq(a,c,d,g){d&&(this.Nb=d);g&&(this.ab=g);throw"Not Implemented";}ZB(){return!1}cancel(){this.Oe=this.ab=this.Nb=this.ma=this.xa=null;this.client&&(this.client.close(),this.client=null)}}b.NX="2.8.5";f.xja=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.F5{constructor(){super(...arguments);this.xa=l.Ra.V();this.ra=this.xa.ra}load(a,c,d,g){this.ma=a;this.query=c;this.Nb=d;this.ab=g;this.client=this.ma.Iw();this.Zw()}Zw(){e.Ca(!0,e.model.B.j.bg);this.V3=0;if(Array.isArray(this.query.body)){var a=new u.MJ;this.query.body.forEach(c=>{a.add(d=>this.rU(c,this.query.type,new f.Xm({page:0}),d))});a.pg(()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})}else this.rU(this.query.body,this.query.type,
new f.Xm({page:0}),()=>{null!=this.Nb&&this.Nb();e.Ca(!1)})}rU(a,c,d,g){let k=this.qua(a);a={type:"select",index:this.ma.index,query:k};e.model.C.F.rc||(a.querytype=c);d.OK(a);this.client.nx("select",a,(m,n)=>{if(m)return this.Sb(m,this.ab),g();if(!this.nHa(n))return this.Sb(e.P.bind(e.model.B.j.c8,this.ma.url),this.ab),g();e.v(n.nextPageToken)?!e.v(n.pageTotal)&&d.page+1<n.pageTotal?(e.Ca(!0,e.model.B.j.bg,`${Math.round((d.page+1)/n.pageTotal*100)}%`),this.rU(k,c,new f.Xm({page:d.page+1}),g)):g():
this.rU(k,c,new f.Xm({mx:n.nextPageToken}),g)},m=>this.am(m))}qua(a){a=u.Sc.nj(a);for(let c=0;c<f.lv.lX.length;c++)a[f.lv.lX[c]]&&delete a[f.lv.lX[c]];return a}nHa(a){if(e.v(a))return!1;a.aggs&&(this.NGa(a.aggs,this.zH()),(e.v(a.nextPageToken)&&e.v(a.pageTotal)||1>=a.pageTotal-a.page)&&this.V3++);a.hits&&this.bHa(a.fields,a.hits);return!0}zH(){return e.model.C.F.rc&&e.model.C.F.je!==e.K.Id.dj}bHa(a,c){for(var d=this.T0(this.xa.ua.wc(!1,!0,!0,!0)),g=0;g<c.length;g++){for(var k=[],m=[],n,p=0;p<a.length;p++){n=
a[p].uniqueName;var t=this.ra.Zh(n),r=c[g][p];n=d.getItem(n);var w=n.hierarchy;if(w.type===l.i.Lc.Sa){var y=w.vu(r);y=e.v(y)?-1:y.ordinal}else w.type!==l.i.Lc.pv?(y=w.vu(parseFloat(r)),y=null!==y?y.ordinal:-1):y=w.iz(e.ia(r)?"":""+r);if(-1===y)if(w.mg){var A=n.YU;y=[];for(var C=1;C<w.ta.length;C++){var B=w.ta.ea(C),I=a.findIndex(L=>L.uniqueName===B.A);y.push(c[g][I]);if(A===B.A)break}A="["+y.join("].[")+"]";C=A+".["+r+"]";1===y.length&&(A=y[0]);y=w.iz(C);-1===y&&(B=n.level,A=w.lc(new l.O.ae({A:C,
caption:r,value:r,level:B,Bi:A}),l.i.ib.wE(B.type)),null!=A&&(y=A.ordinal))}else A=this.xa.O.TC(w.A),A=w.lc(new l.O.ae({A:String(r),caption:String(r),value:r}),A),null!=A&&(y=A.ordinal);k[n.fc]=y;m[t]=w.type===l.i.Lc.Cq?"number"===typeof r?r:NaN:w.type===l.i.Lc.Sa?!e.model.C.F.br||null!==r&&"null"!==r?"number"===typeof r?r:NaN:null:1}this.ra.rBa(k,m)}}T0(a){for(var c,d=new e.tb,g=0,k=0,m=0;m<a.length;m++){c=a.ea(m);if(c.mg){k++;for(var n=1;n<c.ta.length;n++)d.Ta(c.ta.ea(n).A,{hierarchy:c,ordinal:g,
level:c.ta.ea(n),YU:c.ta.ea(n-1).A,oc:c.oc,fc:k++})}else n=this.xa.ga.mapping.Ha(c.A,"filters"),d.Ta(c.A,{hierarchy:c,ordinal:g,level:c.ta.ea(1),fc:k++,wi:!1!==n&&!1!==n.members});g++}return d}Pta(a){let c=0;for(let d=0;d<this.query.lf.length;d++){const g=a.ea(d).ya(this.query.lf[d]);c+=g.level.wb}return c}NGa(a,c){const d=this.T0(this.xa.ua.yb),g=this.T0(this.xa.ua.Db);let k=!1;if(Array.isArray(this.query.body)){var m=this.query.body[this.V3];0<this.V3&&(k=!0)}else m=this.query.body;const n=m.type;
var p=m.axisName;m=0;p!=this.query.Yt||n!==l.i.Rd.EA&&n!==l.i.Rd.qv||(m=this.Pta(p===l.i.ja.La?this.xa.ua.yb:this.xa.ua.Db));for(p=0;p<a.length;p++)if(c){var t=this.tga(a[p].values);this.ra.aA(t)}else{t=this.tga(a[p].values);const r=this.sga(a[p].keys,d),w=this.sga(a[p].keys,g);if(this.Uea(r)&&this.Uea(w)){if(n===l.i.Rd.EA||n===l.i.Rd.qv)if(e.v(a[p].keys)||Object.keys(a[p].keys).length<=m)continue;this.ra.insert(r,w,t,this.query.lf,this.query.Yt,!k)}}}Uea(a){for(let c=0;c<a.length;c++)if(e.v(a[c]))return!1;
return!0}tga(a){var c=[],d;for(d in a)if(a.hasOwnProperty(d))for(var g in a[d])if(a[d].hasOwnProperty(g)){var k=this.ra.Zh(d,g,!0);c[k]=a[d][g]}return c}sga(a,c){const d=[];if(e.v(a))return d;const g=c.length;for(let w=0;w<g;w++){var k=c.Jh(w);if(void 0!==a[k]){var m=a[k];"string"!==typeof m&&(m=""+m);var n=c.getItem(k);const y=[];if(n.level){var p=n.YU;for(1<n.level.wb&&(m=`[${m}]`);void 0!==a[p];)m=`[${a[p]}].${m}`,p=c.getItem(p).YU}n.hierarchy.type===l.i.Lc.pv||n.level.type!==l.i.ib.Sa&&n.level.type!==
l.i.ib.Jc&&n.level.type!==l.i.ib.dc&&n.level.type!==l.i.ib.Dl?p=n.hierarchy.iz(m):(p=n.hierarchy.vu(a[k]),p=e.v(p)?-1:p.ordinal);const A=c.getItem(n.hierarchy.ta.ea(1).A).ordinal;if(n.oc||this.xa.ua.kd){if(-1===p){var t=n.YU;m=[];for(var r=1;r<n.hierarchy.ta.length;r++){const C=n.hierarchy.ta.ea(r);m.push(a[C.A]);if(t===C.A)break}t="["+m.join("].[")+"]";r=t+".["+a[k]+"]";1===m.length&&(t=m[0]);k=n.hierarchy.lc(new l.O.ae({A:r,caption:a[k],level:n.level,Bi:t}));null!=k&&(p=k.ordinal)}y.push(n.level.wb);
y.push(p);void 0===d[A]&&(d[A]=[n.oc?n.hierarchy.ta.length-n.oc.wb:0]);d[A].push(y)}else n.level?(-1===p&&!1===n.wi&&(k=n.hierarchy.lc(new l.O.ae({A:m,caption:a[k]})),null!=k&&(p=k.ordinal)),y.push(n.level.wb),y.push(p),d[A]=y):(-1===p&&!1===n.wi&&(n=n.hierarchy.lc(new l.O.ae({A:m,caption:a[k]})),null!=n&&(p=n.ordinal)),y.push(1),y.push(p),d.push(y))}}return d}Sb(a,c){console.error(a);e.Ca(!1);e.Za(a.message||a,e.model.B.j.Aa,e.xb.Aa);e.Fg(c)&&c()}bd(a,c,d,g,k,m){e.Ca(!0,e.model.B.j.bg);this.ma=a;
e.v(this.client)&&(this.client=this.ma.Iw());this.DC=[];this.p2(c,new f.Xm({page:0}),m)}p2(a,c,d){const g={type:"select",index:this.ma.index,query:a.body};c.OK(g);this.client.nx("select",g,(k,m)=>{if(k)return this.Sb(k,d);if(!this.YGa(m))return this.Sb(e.P.bind(e.model.B.j.Rna,this.ma.url),d);e.v(m.nextPageToken)?!e.v(m.pageTotal)&&c.page+1<m.pageTotal?this.p2(a,new f.Xm({page:c.page+1}),d):d(this.DC):this.p2(a,new f.Xm({mx:m.nextPageToken}),d)},k=>this.am(k))}YGa(a){if(e.v(a))return!1;if(a.fields&&
0==this.DC.length){var c=a.fields.map(d=>d.A);this.DC.push(c)}if(a.hits)for(c=0;c<a.hits.length;c++)this.DC.push(a.hits[c]);return!0}cancel(){this.ab=this.query=this.Nb=this.ma=this.ra=this.xa=null;this.client&&(this.client.close(),this.client=null);this.DC&&(this.DC.length=0,this.DC=null)}}f.sja=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.WW{constructor(){super(...arguments);this.s5=new e.tb}sG(){this.s5.clear();super.sG()}Ha(a,c,d,g=!1){g=g?0:this.xY(a,c);const k=this.Zh(d);if(e.v(this.values[g]))return l.i.da.Rf(d.aa)?0:NaN;if(d.Na){this.JF=!1;a=this.dr([g],d.Xd,d.cl,0,a,c,d.ho);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][k]=a}return e.v(this.values[g][k])?l.i.da.Rf(d.aa)?0:NaN:this.values[g][k]}gw(a,c,d,g){return this.dr([this.xY(a,c)],d,!1,g)}xY(a,c){return a+
" "+c}aA(a){this.values[0]=a}qB(a,c){return null===a||0===a.length?NaN:this.values[a[0]]?this.values[a[0]][c]:NaN}L0(a,c){const d=this.slice.vi(new e.model.hb.ah(a,c));null!=d&&(c=l.i.da.GM(d.aa)?d.aa:d.xm);return this.Zh(a,c,!this.JF)}SS(a,c){const d=l.i.da.Ej;c=this.L0(c.A,d);return this.qB(a,c,d)}un(a,c){super.un(a,c);this.um(a.A)}insert(a,c,d,g,k,m){var n=[],p=[];const t=[];for(var r=0;r<a.length;r++)if(Array.isArray(a[r][1])){p[r]=a[r][a[r].length-1][1];if(a[r].length>a[r][0]){var w=[];g&&(w=
g.slice());w.concat(n.slice());0<w.length&&t.push(w)}for(w=1;w<a[r].length;w++)n[this.ta[this.Ph[r]][a[r][w][0]]]=a[r][w][1]}else{if(-1===a[r][1])return;p[r]=a[r][1];n[this.ta[this.Ph[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],w=[],g&&(w=g.slice()),w.concat(n.slice()),0<w.length&&t.push(w),w=1;w<c[r].length;w++)n[this.ta[this.lj[r]][c[r][w][0]]]=c[r][w][1];else{if(-1===c[r][1])return;a[r]=c[r][1];n[this.ta[this.lj[r]][c[r][0]]]=a[r]}p=
this.xY(p,a);c=this.ub.length;void 0!==this.values[p]?(n=this.s5.getItem(n.join("-")),void 0!==n&&(c=n),m&&(this.values[p]=d)):(this.rh.push(c),this.ub.push(n),this.s5.Ta(n.join("-"),this.ub.length-1),this.values[p]=d);0<g.length&&(0===this.Gd.length&&(this.expand([],l.i.ja.La,void 0),this.expand([],l.i.ja.Xa,void 0)),d=k===l.i.ja.La?this.ld(g,this.Gd):this.ld(g,this.Ud),void 0!=d&&-1===d[0][0].indexOf(c)&&d[0][0].push(c));if(0<t.length)for(d=0;d<t.length;d++){g=k===l.i.ja.La?this.ld(t[d],this.Gd):
this.ld(t[d],this.Ud);if(void 0===g){g=[];m=void 0;for(n=0;n<t[d].length;n++)g.push(t[d][n]),m=k===l.i.ja.La?this.ld(g,this.Gd):this.ld(g,this.Ud),void 0!==m&&void 0!==m[0]&&void 0!==m[0][0]&&(p=t[d][n+1])&&(m[p]=[[[c],[],[],void 0,void 0]]);g=m}void 0!==g&&void 0!==g[0]&&void 0!==g[0][0]&&-1===g[0][0].indexOf(c)&&g[0][0].push(c)}}rBa(a,c){let d;if(0===this.ub.length)for(d=0;d<a.length;d++)this.ub[d]=[];this.rh=e.Ja.vr(this.rh,this.Ex);for(d=0;d<a.length;d++)this.ub[d]=e.Ja.vr(this.ub[d],a[d]);0===
this.values.length&&this.aA([]);this.values.push(c)}US(a,c,d,g,k){if(void 0===this.gb[a])return NaN;if(g)return this.JF=!0,d.Na?this.dr([this.gb[a]+1],d.Xd,d.cl,0,null,null,d.ho):this.values[this.gb[a]+1][c];c=this.xe.indexOf(this.uh[c]);void 0!==k&&(c=this.ta[c][k+1]);return void 0===this.ub[c]?NaN:this.ub[c][this.gb[a]]}filter(){}mB(a,c,d){if(null!==a){var g=a[0][0];if(0<g.length&&!isNaN(c)){for(let k=0;k<g.length;k++){const m=this.ub[g[k]][this.ta[c][1]];0!==m&&void 0!==m&&(void 0===a[m]?(a[m]=
[[[g[k]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[k]))}void 0===a[0][3]&&(a[0][3]=[]);void 0===d?a[0][3][this.sg.length]=!0:a[0][3][this.Zh(d)]=!0;a[0][5]=!0}}}kQ(a,c,d,g,k){if(void 0!==c&&void 0!==c[0]){var m=c[0][0];if(0<m.length&&!isNaN(g)){for(let n=0;n<m.length;n++){const p=this.ub[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.Pl[d][p]=g):-1===a[p][0][0].indexOf(m[n])&&a[p][0][0].push(m[n]))}void 0===c[0][4]&&
(c[0][4]=[]);void 0===k?c[0][4][this.sg.length]=!0:c[0][4][this.Zh(k)]=!0}}}}f.I5=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{}b.a9={date:"date string","year/month/day":"date string","year/quarter/month/day":"date string"};class a extends l.O.km{constructor(c=null){super(c);this.mW()}mW(){this.csa();this.bsa()}bsa(){for(let c in this.mapping)Array.isArray(this.mapping[c])&&(this.mapping[c]=this.mapping[c][0])}csa(){var c=this.mapping;for(let d in c)c=this.Ha(d,"type"),null!=c&&b.a9.hasOwnProperty(c)&&this.gi(d,"type",b.a9[c])}}f.dO=a})(h.pc||(h.pc={}))})(l.external||
(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){if(null!=b.instance)throw Error("Singleton");}static V(){null==b.instance&&(b.instance=new b);return b.instance}static dispose(){b.instance=null}async CN(a,c){return new Promise((d,g)=>{u.Zn.load("lib/sha1.min.js",()=>{var k=e.model.Ga.pa.J(e.model.Ga.pa.gIa);if(null!=k){var m=JSON.stringify(c.Qa());var n=new jsSHA("SHA-1","TEXT");n.setHMACKey(k,"TEXT");n.update(m);m=n.getHMAC("B64")}a.Qh({"x-flexmonster":m});a.nx("save",null!==
c?c.Qa():{},(p,t)=>{if(e.v(t))p&&(e.Za(e.P.bind(e.model.B.j.g8,p),e.model.B.j.Aa,e.xb.Aa),a.close(),g(p));else{p=new URL(location.href);p.searchParams.set("flexmonsterreport",t);var r=p.href;e.Za(e.P.bind(e.model.B.j.doa,r),e.model.B.j.Ym,e.xb.Ym,[e.model.B.j.T5,e.model.B.j.wl],[()=>{const w=document.createElement("textarea");w.value=r;w.setAttribute("readonly","");w.style.position="fixed";w.style.left="-9999px";document.body.appendChild(w);w.select();document.execCommand("copy");document.body.removeChild(w)},
()=>{}]);a.close();d(r)}})})})}XCa(a,c,d){var g=new f.oA(a);g.nx("load",c,(k,m)=>{e.v(m)||d&&d(m);k&&(e.Za(e.P.bind(e.model.B.j.f8,k),e.model.B.j.Aa,e.xb.Aa),console.error("Can't load the shared file. The URL to the server hasn't been found. "+k),d&&d());g.close()})}}f.H5=b})(h.pc||(h.pc={}))})(l.external||(l.external={}))})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h extends x.be.dk{constructor(f,b){super();this.RT=this.R1=!1;this.$da="theme/accessible/flexmonster.min.css";this.Rea=!1;this.ka=e.model.Va.V();this.SG=null;this.g2=this.h2=this.height=this.width=0;this.PN=!1;this.S9=0;this.DG=[];this.Kfa=0;this.Tba=!1;this.Fy=d=>this.Yu(d);this.Gy=d=>this.Zu(d);this.Hy=()=>this.XM();this.Dy=null;this.mca=()=>{h.Fb.sb(l.Ni.$o,this.mca);this.Wb.tk(this.SG.ru,this.SG.rb,(...d)=>{this.Wb.I=null;this.ka.I=e.u.sf.Fj.zc("chart");null!=this.SG.yp&&
this.SG.yp.apply(null,d);this.SG=null})};this.Mha("fm-pivot-view");null!=this.gf&&this.gf.dispose();f.empty();this.gf=f;h.Fb=this;var a=b.width?"number"===typeof b.width?b.width+"px":-1<b.width.indexOf("px")||b.width.indexOf("%")==b.width.length-1?b.width:b.width+"px":"100%";f=b.height?"number"===typeof b.height?b.height+"px":-1<b.height.indexOf("px")||b.height.indexOf("%")==b.height.length-1?b.height:b.height+"px":"500px";var c=/\d+(?=px|%)/;a=a.match(c)?a:"100%";f=f.match(c)?f:"500px";this.gf.R("width",
a);this.gf.R("height",f);this.G.R("width",a);this.G.R("height",f);this.gf.append(this.G);f=[];b.toolbar?(f=["toolbar/flexmonster.toolbar.js"],this.PN=!0):this.PN=!1;u.u6.Yca()||(c=new x.Ea("div","fm-csscheck"),this.gf.append(c),"flexmonster"!=window.getComputedStyle(c.element).getPropertyValue("font-family")&&'"flexmonster"'!=window.getComputedStyle(c.element).getPropertyValue("font-family")&&f.unshift("flexmonster.css"),c.remove());u.Zn.load(f,()=>{this.G.requestAnimationFrame(()=>{u.Kd().Xi||u.u6.$ta(e.ph.ft)||
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/).");this.toolbar=b.toolbar?new FlexmonsterToolbar(this.gf.element,e.ph.instance.pc,"html5",a,e.model.B.NA.V().Zca(),
e.model.Ga.uc.Oj()):null;e.ph.instance.pc.toolbar=this.toolbar;this.Uda&&(e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.sW,this.toolbar)),this.toolbar.create());this.PN=!1;this.He();this.kb()})},()=>{this.PN=!1});this.ka.Ia.N(e.model.jc.nd.Tx,()=>this.n3());this.ka.Ia.N(e.model.jc.nd.nX,()=>this.KFa());this.ka.Ia.N(e.model.jc.nd.PW,()=>this.P2());this.ka.Ia.N(e.model.jc.nd.ZE,()=>this.l3());this.ka.Ia.N(e.model.jc.nd.XA,()=>{});this.ka.Ia.N(e.model.jc.nd.Pk,d=>this.sEa(d));this.ka.Ia.N(e.model.jc.nd.ii,
()=>this.w3());this.ka.Ia.N(e.model.jc.nd.lF,()=>this.x3());this.ka.Ia.N(e.model.jc.nd.aF,()=>this.RH());this.ka.N(e.vg.VW,d=>this.HEa(d));this.ka.N(e.vg.CX,()=>this.RFa());this.ka.N(l.Na.ak.c6,d=>this.LFa(d));this.ka.N(l.Ni.p6,d=>this.MFa(d));this.N(l.Ni.$o,()=>this.LDa());e.vk.addEventListener("fullscreenchange",()=>this.FU(),!1);e.vk.addEventListener("mozfullscreenchange",()=>this.FU(),!1);e.vk.addEventListener("webkitfullscreenchange",()=>this.FU(),!1);e.vk.addEventListener("MSFullscreenChange",
()=>this.FU(),!1);this.gf.N("fullscreenchange",d=>this.LU(d),!1);this.gf.N("mozfullscreenchange",d=>this.LU(d),!1);this.gf.N("webkitfullscreenchange",d=>this.LU(d),!1);this.gf.N("MSFullscreenChange",d=>this.LU(d),!1);u.VO.V().N(u.KeyboardEvent.g9,()=>this.yGa())}get Uda(){return this.toolbar&&null!=this.toolbar.create}yGa(){this.Nha(!this.R1)}Nha(f){this.R1=f;this.gf.Wa("fm-keyboard-mode",this.R1)}get xE(){if(this.toolbar){var f=x.Ea.Vb(this.gf.element.querySelector("#fm-toolbar-wrapper"));return null==
f?0:f.height}return 0}static get gv(){var f=h.Fb.G.borderWidth;return h.Fb.gf.uf(u.PT())-f.left-f.right}static get ria(){var f=h.Fb.G.borderWidth;return h.Fb.gf.xd(u.PT())-f.top-f.bottom}static get lo(){return e.model.C.F.je==l.Id.Tn?h.YP:h.gv-h.Fb.GC}static get jo(){return e.model.C.F.je==l.Id.Tn?h.ZJ:h.Fb.hq()}static get rM(){return e.model.C.F.je==l.Id.Tn?h.vQ:h.gv-h.Fb.GC}static get gD(){return e.model.C.F.je==l.Id.Tn?h.uQ:h.Fb.hq()}get GC(){return"right"==e.model.C.F.FC&&e.model.C.F.yn?this.S9:
0}set GC(f){this.S9=f}hq(){return this.mT()&&null!=this.ym?h.ria-(this.ym.xd()+this.ym.G.borderWidth.top)-h.Fb.xE:h.ria-h.Fb.xE}sr(f){this.Wb&&this.Wb.la&&this.Wb.la.sr(f)}Us(f){this.Wb&&this.Wb.la&&this.Wb.la.Us(f)}kb(f=!1){this.Kaa();if(this.Tba||this.Rea&&(e.model.Ga.uc.error||!e.ia(e.model.Ga.uc.Py))){var b=this.G.requestAnimationFrame(()=>{this.Kaa();this.oY(f)});this.DG.push(b)}else 500>this.Kfa++||(this.PN||e.ia(e.model.Ga.uc.Py))&&5E3>this.Kfa?this.HDa=e.Ce(()=>{this.kb(f)},10):this.gf.visible&&
(console.error("Something went wrong.\nTo fix the issue please try the following:\n1. Check if the componentFolder parameter is defined correctly.\n2. Check if the path to the css file is valid.\n3. Check if DevTools (press F12) has an exception.\n4. Ask the support team for help (https://www.flexmonster.com/technical-support/)"),"hidden"!=document.visibilityState&&(e.model.Ga.uc.iq||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/)")))}Kaa(){for(;0<
this.DG.length;)this.G.cancelAnimationFrame(this.DG.pop());this.DG=[];e.ts(this.HDa);e.ts(this.Yga)}Via(){if(!this.gf)return!1;var f=u.PT(),b=this.gf.uf(),a=this.gf.xd();a-=this.xE;if(this.h2!==b||this.g2!==a)this.G.R("width",b+"px"),f?this.G.R("height","calc(100% - "+this.xE+"px)"):this.G.R("height",a+"px");return this.h2!==b||this.g2!==a}H3(){this.toolbar&&null!=this.toolbar.applyToolbarLayoutClasses&&this.toolbar.applyToolbarLayoutClasses();this.kb(!0)}n3(){this.ka.Ia.zf==e.model.jc.mp.INIT&&this.HG()}P2(){null!=
this.Wb&&this.Wb.fu();this.kb()}l3(){this.ka.Ia.zf!=e.model.jc.mp.PJ&&this.ka.Ia.zf!=e.model.jc.mp.wA&&this.HG()}KFa(){this.HG()}$fa(){this.ka.Ia.ga.Gc&&(null!=this.Wb&&this.Wb.fu(),this.kb())}Zfa(){this.ka.Ia.zf!=e.model.jc.mp.PJ&&this.ka.Ia.zf!=e.model.jc.mp.wA&&this.HG()}Ofa(){this.ka.Ia.zf!=e.model.jc.mp.PJ&&this.ka.Ia.zf!=e.model.jc.mp.wA&&this.HG()}sEa(f){this.ka.Ia.zf==e.model.jc.mp.INIT||this.ka.Ia.zf==e.model.jc.mp.S7||null==this.Wb||f.data!=e.u.i.Rd.np&&f.data!=e.u.i.Rd.EO||(this.Wb.fu(),
this.kb())}RH(){null!=this.toolbar&&this.toolbar.updateLabels(e.model.B.NA.V().Zca());null!=this.ui&&this.ui.updateLabels()}Cw(f){f=this.ka.ha.ua.wc().getItem(f);null!=f&&this.yea(f)&&(this.Wb.fu(),this.ka.I.Cw(f))}YQ(f,b){f=this.ka.ha.ua.ce(f);let a=[],c=0;for(let g=0;g<b.length;g++){let k=f.Oa.ea(c);k.Se&&(c++,k=f.Oa.ea(c));var d=k.Ib(b[g]);e.v(d)&&(d=k.Ib(e.u.ye.Ds(b[g])));if(e.v(d))return[];a.push(d.ordinal);c++}return a}lS(f,b,a){this.Wb.fu();this.ka.I.expand(this.YQ(f,b),f,this.ka.ha.ua.gd(a))}CR(f,
b,a){this.Wb.fu();this.ka.I.collapse(this.YQ(f,b),f,this.ka.ha.ua.gd(a))}hS(f,b,a,c){this.Wb.fu();var d=this.ka.ha.ua.ce(f);const g=d.Ya&&d.ie<=b.length?d.Oa.ea(b.length+1):d.Oa.ea(b.length);d=g.Ib(c);e.v(d)&&(c=e.u.ye.Ds(c),d=g.Ib(c));e.v(d)||(b=this.YQ(f,b),b.push(d.ordinal),this.ka.I.Ip(b,d,f,this.ka.ha.ua.gd(a)))}gS(f,b,a,c){this.Wb.fu();var d=this.ka.ha.ua.ce(f);const g=d.Ya&&d.ie<=b.length?d.Oa.ea(b.length+1):d.Oa.ea(b.length);d=g.Ib(c);e.v(d)&&(c=e.u.ye.Ds(c),d=g.Ib(c));e.v(d)||(b=this.YQ(f,
b),b.push(d.ordinal),this.ka.I.Mf(b,d,f,this.ka.ha.ua.gd(a)))}ow(f){f=this.ka.ha.ua.wc().getItem(f);null!=f&&this.yea(f)&&(this.Wb.fu(),this.ka.I.ow(f))}yea(f){const b=this.ka.ha.ua,a=b.rows.Hb(f.A)?e.u.i.ja.La:e.u.i.ja.Xa;return(a==e.u.i.ja.La?b.yb.indexOf(f.A):b.Db.indexOf(f.A))+1<(a==e.u.i.ja.La?b.yb.length:b.Db.length)}w3(){this.ka.Ia.zf==e.model.jc.mp.cp?this.HG():this.gf&&this.kb()}x3(){this.Dua()}FU(){this.Oda()}LU(f){f.stopPropagation();this.Oda()}Oda(){var f=u.PT();null!=e.model.Ua.jsFullScreenHandler&&
e.model.Ua.jsFullScreenHandler.call(null,f);var b=0,a=()=>{this.gf.xd()!=parseInt(this.gf.element.style.height)&&5>b?(b++,this.gf.requestAnimationFrame(a)):this.Via()&&this.kb(!0)};this.gf.requestAnimationFrame(a)}He(){this.toolbar&&(this.G.height-=this.xE);this.Wb=new l.Y.Kma;this.Wb.N(l.Ni.Qx,f=>this.QEa(f));this.Wb.N(l.Ni.LW,f=>this.Pfa(f));this.W(this.Wb);this.ui=new l.pd.gp;this.ui.N(v.fa.OPENED,()=>{});this.ui.N(v.fa.CLOSED,()=>{});this.ui.N(l.pd.gp.BO,()=>this.R2());this.ui.N(l.pd.gp.WI,f=>
this.Q2(f));this.W(this.ui);e.vk.addEventListener("keydown",f=>this.cq(f));this.PF=new u.spa(this.gf.parent);this.PF.N(v.fa.HX,f=>this.H3(f));this.Rea=!0}QHa(){l.hO.V().Pu&&l.hO.V().zp()}oY(f=!1){null==this.ka||0==this.gf.width||f&&x.vL.xO.V().LBa||(this.Via(),this.QHa(),1>e.model.Ga.uc.Oj()||(this.Tba=!0,this.PF.refresh(),this.mT()&&this.Uwa(),this.dBa()&&(this.W(this.nW),this.nW.kb()),e.model.C.F.rc&&this.ka.ha.ga&&!this.ka.ha.ga.AH&&(e.model.C.F.rc=!1,e.Za(e.P.bind(e.model.B.j.aoa,e.u.i.qa.J(this.ka.ha.ga.Da)),
e.model.B.j.XO)),e.model.C.F.rc&&e.model.C.F.je==l.Id.Tn&&this.ka.ha.ga&&this.ka.ha.ga.Da==e.u.i.qa.API&&(e.model.C.F.je=l.Id.ot,e.Za(e.P.bind(e.model.B.j.sX),e.model.B.j.XO,e.xb.vl)),null!=this.uk&&this.uk.kb(),e.v(this.ka.Ia.ga)||this.ka.Ia.ga.nb||!e.model.C.F.IR?this.ui.eb():this.ui.show(),f||e.model.C.F.pC||l.Na.QE.GK||(e.model.C.F.yn=!1),e.v(this.ka.ha.ua)||e.v(this.ka.ha.O)||this.ka.ha.O.nb||!this.ka.ha.ua.nb||(e.model.C.F.yn=!0),e.model.C.F.yn&&null!=this.ka.Ia.ga&&!this.ka.Ia.ga.nb?this.ui.open(this.ka.ha.O,
this.ka.ha.ua,this.ka.Ia.ga.Da):this.ui.close(),e.model.C.F.je==l.Id.dj?this.O_(f):e.model.C.F.je==l.Id.Tn?this.Q_(f):this.P_(f),null!=this.$k&&this.$k.isVisible()&&(e.model.C.F.rc&&e.model.C.F.je===l.Id.ot?this.$k.close():this.$k.X3()),this.h2=this.uf(),this.g2=this.xd()))}HG(){e.model.C.F.je==l.Id.dj?this.O_(!1,!0):e.model.C.F.je==l.Id.Tn?this.Q_(!1):this.P_(!1,!0);e.v(this.ui)||(this.ui.close(),this.ui.eb())}NV(){if(this.ka.Ia.ga.Da==e.u.i.qa.API&&e.model.C.F.rc&&e.model.C.F.je==l.Id.dj){const f=
e.model.C.F.Kw(!1,!0);f.na("viewType",l.Id.ot);this.ka.qq(f.Qa())}else e.model.C.F.je=l.Id.ot,e.model.C.F.rc&&this.ui&&this.ui.Pu&&this.ui.open(this.ka.ha.O,this.ka.ha.ua,this.ka.Ia.ga.Da),this.P_()}P_(f=!1,b=!1){null!=this.Wb&&(null!=this.jd&&this.jd.eb(),null!=this.Mk&&this.Mk.eb(),f||null==this.uk||this.uk.close(),this.Wb.I=b?null:this.ka.I=e.u.sf.Fj.zc(),this.Wb.G.R("top","").R("left","").R("right","").R("bottom",""),this.Wb.G.R("position","absolute"),this.Wb.show(),this.Wb.G.R("height",h.gD+
"px"),this.Wb.G.R("width",h.gv+"px"),b&&this.Wb.fu(),this.Wb.kb())}EN(f="",b=!1){if(this.ka.Ia.ga.Da==e.u.i.qa.API&&e.model.C.F.rc&&e.model.C.F.je==l.Id.ot){const a=e.model.C.F.Kw(!1,!0);a.na("viewType",l.Id.dj);a.na("chartType",f);a.na("chartMultipleMeasures",l.Bd.Me.Fea(f)?b:!1);this.ka.qq(a.Qa())}else e.model.C.F.je=l.Id.dj,e.model.C.F.WK=f,e.model.C.F.pG=l.Bd.Me.Fea(f)?b:!1,this.O_()}O_(f=!1,b=!1){u.Zn.load("lib/d3.v3.min.js",()=>{f||null==this.uk||this.uk.close();null!=this.Wb&&this.Wb.eb();
null!=this.Mk&&this.Mk.eb();null==this.jd&&this.dG();this.jd.G.R("top","").R("left","").R("right","").R("bottom","");this.jd.G.R("position","absolute");this.jd.show();this.jd.G.R("height",h.jo+"px");this.jd.G.R("width",h.lo+"px");this.jd.I=b?null:this.ka.I=e.u.sf.Fj.D0(e.model.C.F.pR);this.jd.kb();e.model.C.F.rc&&this.ui&&this.ui.Pu&&this.ui.open(this.ka.ha.O,this.ka.ha.ua,this.ka.Ia.ga.Da);b||0!=this.DG.length||(this.Yga=e.Ce(()=>{this.$a(l.Ni.GX)},1))})}OV(f="",b="bottom",a=!1){this.ka.Ia.ga.Da==
e.u.i.qa.API&&e.model.C.F.rc?e.Za(e.P.bind(e.model.B.j.sX),e.model.B.j.XO,e.xb.vl):(e.model.C.F.je=l.Id.Tn,e.model.C.F.WK=f,e.model.C.F.Iy=b,e.model.C.F.pG=a,this.Q_())}Q_(f=!1){u.Zn.load("lib/d3.v3.min.js",()=>{f||null==this.uk||this.uk.close();null!=this.Wb&&(this.Wb.show(),this.Wb.I=this.ka.I=e.u.sf.Fj.zc(),null==this.jd&&this.dG(),this.jd.show(),this.jd.I=e.u.sf.Fj.D0(e.model.C.F.pR),null==this.Mk&&this.Qsa(),this.Mk.show(),this.Mk.direction="left"==e.model.C.F.Iy||"right"==e.model.C.F.Iy?x.MP.YX:
x.MP.lJ,this.Mk.zva=[150,150,h.gv-150,this.hq()-150],this.Sba(e.model.C.F.Iy))})}rGa(f){var b=e.model.C.F.Iy;this.Sba(b,"left"==b||"right"==b?f.data.left:f.data.top)}Sba(f="bottom",b=NaN){var a=h.gv-h.Fb.GC;isNaN(b)&&(b="left"==f||"right"==f?Math.round(a/2):Math.round(this.hq()/2));switch(f){case "bottom":h.vQ=a;h.uQ=b;this.Wb.G.R("width",h.rM+"px");this.Wb.G.R("height",h.gD+"px");this.Wb.G.R("top",0).R("left",0).R("right","").R("bottom","");h.YP=a;h.ZJ=this.hq()-this.Wb.G.xd()-this.Mk.xd();this.jd.G.R("width",
h.lo+"px");this.jd.G.R("height",h.ZJ+"px");this.jd.G.R("bottom",this.mT()&&!e.v(this.ym)?this.ym.xd()+"px":0).R("left",0).R("right","").R("top","");this.Mk.G.R("top",b+"px").R("left","").R("right","").R("bottom","");break;case "top":h.YP=a;h.ZJ=b;this.jd.G.R("width",h.lo+"px");this.jd.G.R("height",h.jo+"px");this.jd.G.R("top",0).R("left",0).R("right","").R("bottom","");h.vQ=a;h.uQ=this.hq()-this.jd.G.xd()-this.Mk.xd();this.Wb.G.R("width",h.rM+"px");this.Wb.G.R("height",h.gD+"px");this.Wb.G.R("bottom",
this.mT()&&!e.v(this.ym)?this.ym.xd()+"px":0).R("left",0).R("right","").R("top","");this.Mk.G.R("top",b+"px").R("left","").R("right","").R("bottom","");break;case "left":h.YP=b;h.ZJ=this.hq();this.jd.G.R("width",h.lo+"px");this.jd.G.R("height",h.jo+"px");this.jd.G.R("top",0).R("left",0).R("right","").R("bottom","");h.vQ=a-this.jd.G.uf()-this.Mk.uf();h.uQ=this.hq();this.Wb.G.R("width",h.rM+"px");this.Wb.G.R("height",h.gD+"px");this.Wb.G.R("top",0).R("right",h.Fb.GC+"px").R("left","").R("bottom","");
this.Mk.G.R("left",b+"px").R("top","").R("right","").R("bottom","");break;case "right":h.vQ=b,h.uQ=this.hq(),this.Wb.G.R("width",h.rM+"px"),this.Wb.G.R("height",h.gD+"px"),this.Wb.G.R("top",0).R("left",0).R("right","").R("bottom",""),h.YP=a-this.Wb.G.uf()-this.Mk.uf(),h.ZJ=this.hq(),this.jd.G.R("width",h.lo+"px"),this.jd.G.R("height",h.jo+"px"),this.jd.G.R("top",0).R("right",h.Fb.GC+"px").R("left","").R("bottom",""),this.Mk.G.R("left",b+"px").R("top","").R("right","").R("bottom","")}this.Wb.G.R("position",
"absolute");this.jd.G.R("position","absolute");this.Wb.kb();this.jd.kb()}Pfa(f){null==this.$k&&this.ssa();for(var b,a=this.ka.ha.ua.hd(),c=0;c<a.length;c++){var d=a[c];d.A==f.measure.A&&d.aa==f.measure.aa&&(b=d)}this.$k.Ns(this.ka.I,this.ka.ha.ua,f.Bg,f.lh,b,f.cell)}JGa(f){if(null!=this.ka.ha&&null!=this.ka.ha.O){var b=this.ka.ha.O.wc(!1).getItem(f),a=this.ka.ha.ua;null!=b&&(a.ob.Hb(f)||a.rows.Hb(f)||a.Ka.Hb(f))&&(f={hierarchy:b.bj()},e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Qx,f)),this.UH(b))}}VU(){e.v(this.ka.Ia.ga)||
this.ka.Ia.ga.nb||("right"==e.model.C.F.FC?(e.model.C.F.pC=!0,e.model.C.F.yn=!0,this.kb()):this.ui.open(this.ka.ha.O,this.ka.ha.ua,this.ka.Ia.ga.Da))}YK(){"right"==e.model.C.F.FC?(e.model.C.F.pC=!1,e.model.C.F.yn=!1,this.kb()):this.ui.close()}Q2(f){if(!u.Sc.Eg(this.ka.ha.ua.Rj)){var b=new e.model.hb.pp;b.Rj=this.ka.ha.ua.Rj;f.data.Rj=b.Rj}this.ka.ne(f.data)}ABa(){return!e.v(this.ka.Ia.ga)&&(!this.ka.Ia.ga.Gc||this.ka.Ia.ga.Da===e.u.i.qa.API)&&!this.ka.ha.O.nb||e.model.C.F.bu&&this.ka.Ia.ga.Da===e.u.i.qa.Tc}fN(f=
null,b=null){e.v(this.ka.Ia.ga)||this.ka.Ia.ga.nb||!this.ABa()||(e.v(b)||(this.Dy="string"==typeof b?e.model.Ua.qda(b):b),e.ia(f)||e.model.Va.V().N(l.Na.ak.rA,this.Gy),e.model.Va.V().Fa(new l.Na.HW(f)),e.model.Va.V().N(l.Na.ak.qA,this.Fy),e.model.Va.V().N(l.Na.ak.sA,this.Hy))}Yu(f){e.model.Va.V().sb(l.Na.ak.qA,this.Fy);e.v(this.Dy)||this.Dy({uniqueName:f.Cs,isRemoved:!1});this.Dy=null}Zu(f){e.model.Va.V().sb(l.Na.ak.rA,this.Gy);e.v(this.Dy)||this.Dy({uniqueName:f.Cs,isRemoved:!0});this.Dy=null}XM(){e.model.Va.V().sb(l.Na.ak.sA,
this.Hy);this.Dy=null}PEa(f){null==this.uk&&this.sZ();this.uk.G.Wa("fm-charts-filter",!0);this.KU(f)}QEa(f){null==this.uk&&this.sZ();this.uk.G.Wa("fm-charts-filter",!1);this.KU(f)}KU(f){var b={hierarchy:f.hierarchy.bj()};e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Qx,b));this.UH(f.hierarchy)}UH(f){null==this.uk&&this.sZ();this.uk.Ns(f)}Dua(){null!=this.$k&&this.$k.close()}Uwa(){null!=this.ym&&null!=this.hW||this.esa();this.W(this.ym);this.ym.Wa("fm-layout-660",660>this.ym.uf());this.ym.Wa("fm-layout-520",
520>this.ym.uf());var f="";e.model.Ga.uc.hv&&(f=e.model.Ga.pa.J(e.model.Ga.pa.Sia)+"("+u.zh.format(e.model.Ga.uc.QG,"MM/dd/yyyy")+")",new Date(Date.now()+432E6)>e.model.Ga.uc.QG&&(f+=e.model.Ga.pa.J(e.model.Ga.pa.Gxa)));e.model.Ga.uc.Gp&&(u.sea()||e.model.Ga.uc.Hba||(f=e.model.Ga.pa.J(e.model.Ga.pa.Lwa)+e.model.Ga.uc.j2+")"));this.hW.cb(f,!0)}R2(){this.VU()}cq(f){if(this.Km||this.i1)73===f.keyCode&&(f.ctrlKey||f.metaKey)&&f.altKey&&this.gia(),72===f.keyCode&&(f.ctrlKey||f.metaKey)&&f.altKey&&this.iJa(!this.RT),
27===f.keyCode&&(null!=this.uk&&this.uk.close(),null!=this.$k&&(this.$k.Et.Pu?this.$k.Et.close():this.$k.close()),null!=this.lG&&this.lG.isVisible()?this.lG.close():this.ui.close())}iJa(f){f?(f=document.querySelector("link[data-fm-hc-theme]"))?(f.disabled=!1,this.RT=!0,this.kb()):u.Zn.m2(this.$da,{QK:{"data-fm-hc-theme":""},pj:!0},()=>{this.RT=!0;this.kb()}):(u.Zn.uKa(),this.kb(),this.RT=!1)}jJa(f){this.$da=f}HEa(f){this.$k&&this.$k.isVisible()?this.$k.tk(f.ru,f.rb,f.yp):e.model.C.F.je==l.Id.ot?(this.Wb.I=
e.u.sf.Fj.zc(e.model.C.F.hD==l.Y.te.Bh?"flat":"pivot"),this.Wb.tk(f.ru,f.rb,f.yp)):e.model.C.F.je!=l.Id.dj||f.ru!=e.model.Ac.ej.Sh&&f.ru!=e.model.Ac.ej.TE?e.model.C.F.je==l.Id.dj?(null==this.jd&&this.dG(),this.jd.tk(f.rb)):e.model.C.F.je==l.Id.Tn&&(f.ru==e.model.Ac.ej.LA||f.ru==e.model.Ac.ej.vv||f.ru==e.model.Ac.ej.TA?(null==this.jd&&this.dG(),this.jd.tk(f.rb,!0,b=>{this.Wb.tk(f.ru,f.rb,f.yp,b)})):this.Wb.tk(f.ru,f.rb,f.yp)):(this.Wb.I=e.u.sf.Fj.zc(e.model.C.F.hD==l.Y.te.Bh?"flat":"pivot"),this.SG=
f,h.Fb.N(l.Ni.$o,this.mca),this.Wb.kb())}RFa(){e.model.C.F.je==l.Id.ot?this.Wb.print():e.model.C.F.je==l.Id.dj?(null==this.jd&&this.dG(),this.jd.print()):e.model.C.F.je==l.Id.Tn&&(null==this.jd&&this.dG(),this.jd.print(f=>this.YDa(f)))}YDa(f){this.Wb.print(f)}mT(){e.model.Ga.uc.Oj();return e.model.Ga.uc.By||e.model.Ga.uc.iq?!1:!0}dBa(){return!e.model.Ga.uc.iq&&!e.model.Ga.uc.Gp&&!e.model.Ga.uc.By}gia(){var f=new Date(parseFloat(e.ph.tW)/61);let b=u.zh.format(f,"MMMM yyyy")+" (v. "+e.ph.ft+")";b+=
e.model.Ga.pa.J(e.model.Ga.pa.VB);b+=e.P.bind(e.model.Ga.pa.J(e.model.Ga.pa.Lta),u.zh.format(f,"MM/dd/yyyy HH:mm:ss"));b+=e.model.Ga.pa.J(e.model.Ga.pa.VB);b+=e.model.Ga.pa.J(e.model.Ga.pa.xwa)+e.model.Ga.uc.MCa();e.model.Ga.uc.Gp?b+=e.model.Ga.pa.J(e.model.Ga.pa.LGa)+e.model.Ga.uc.j2:e.model.Ga.uc.iq&&(b+=e.model.Ga.pa.J(e.model.Ga.pa.Rwa)+e.model.Ga.uc.ffa);f=!1;e.model.Ga.uc.hv?e.model.Ga.uc.Gp||e.model.Ga.uc.iq?b+=e.model.Ga.pa.J(e.model.Ga.pa.ICa)+u.zh.format(e.model.Ga.uc.QG,"MM/dd/yyyy"):(f=
!0,b+=e.model.Ga.pa.J(e.model.Ga.pa.oKa)+u.zh.format(e.model.Ga.uc.QG,"MM/dd/yyyy")):b+=e.model.Ga.pa.J(e.model.Ga.pa.JCa);f||(b+=e.model.Ga.pa.J(e.model.Ga.pa.zia)+u.zh.format(e.model.Ga.uc.bW,"MM/dd/yyyy"));b+=e.model.Ga.pa.J(e.model.Ga.pa.LCa)+e.model.Ga.uc.Py;b+=e.model.Ga.pa.J(e.model.Ga.pa.info);e.Za(b,e.model.Ga.pa.J(e.model.Ga.pa.Lua),e.xb.RO)}kg(f,b){return this.Wb.kg(f,b)}VS(f,b){return this.Wb.VS(f,b)}pH(){return this.Wb.pH()}$z(f,b){this.Wb.$z(f,b)}$D(){this.Wb.$D()}get qM(){return this.Wb.qM}get pM(){return this.Wb.pM}LFa(f){null==
this.lG&&this.gsa();this.lG.Ns(f.Cs)}MFa(f){null==this.contextMenu&&this.jsa();var b=f.data.rDa;b&&0<b.length&&this.contextMenu.Po(this.G,b,f.data.coords,null,f.data.IK)}LDa(){0==this.DG.length&&(this.Yga=e.Ce(()=>{this.$a(l.Ni.GX)},1))}gsa(){this.lG=new l.Na.QE;this.W(this.lG)}dG(){this.jd=new l.Bd.ov;this.jd.N(l.Ni.Qx,f=>this.PEa(f));this.jd.N(l.Ni.LW,f=>this.Pfa(f));this.W(this.jd)}ssa(){this.$k=new l.Nf.SE;this.W(this.$k)}sZ(){this.uk=new l.filter.Bma;this.uk.N(v.fa.OPENED,()=>{});this.uk.N(v.fa.CLOSED,
()=>{});this.W(this.uk)}Qsa(){this.Mk=new x.MP;this.Mk.eb();this.Mk.N(x.MP.SW,f=>this.rGa(f));this.W(this.Mk)}jsa(){this.contextMenu=new x.$q.sF(h.Fb.G);this.contextMenu.$("fm-context-menu");this.contextMenu.eb();this.W(this.contextMenu)}esa(){this.ym=new x.be.dk;this.ym.$("fm-branding-bar");this.hW=new x.Uc;this.hW.$("fm-version-label");this.ym.W(this.hW);this.gW=new x.Uc;this.gW.$("fm-link");this.gW.cb(e.model.Ga.pa.J(e.model.Ga.pa.vga),!0);this.ym.W(this.gW);var f=new x.Ea("span","fm-info-icon");
f.N("click",()=>this.gia());this.gW.G.append(f);this.nW=new l.Gqa}dispose(){this.ka=null;this.Wb&&this.Wb.dispose();this.jd&&this.jd.dispose();this.$k&&this.$k.dispose();this.G.dispose();this.gf.dispose();l.hO.dispose();l.filter.y7.dispose();l.DX.dispose();x.vL.xO.dispose();u.VO.dispose();h.Fb=null;this.toolbar&&(this.toolbar.dispose&&this.toolbar.dispose(),this.toolbar=null);this.PF&&(this.PF.Yd(v.fa.HX),this.PF.dispose(),this.PF=null)}}l.Mb=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{static Ug(f){if(e.v(f)||"string"!=typeof f)return!1;f=f.toLowerCase();return f==h.ot||f==h.dj||f==h.Tn}}h.ot="grid";h.dj="charts";h.Tn="grid_charts";l.Id=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{constructor(){this.sm=0;this.VF=!1;this.dK=this.NF="";this.ZF=!1}show(f,b,a,c=!0,d=!1){f?(d&&this.M4(f,b,a,c),0==this.VF?(this.VF=f,this.NF=b,this.dK=a,this.ZF=c,this.sm=e.Ce(()=>this.Bia(),h.F6)):0==this.sm?this.M4(f,b,a,c):(this.VF=f,this.NF=b,this.dK=a,this.ZF=c)):(d&&this.M4(f,b,a,c),1==this.VF&&(this.VF=f,this.sm=e.Ce(()=>this.Bia(),h.F6)))}M4(f,b,a,c){this.$ga();this.zga(f,b,a,c)}Bia(){this.$ga();this.zga(this.VF,this.NF,this.dK,this.ZF)}$ga(){e.ts(this.sm);
this.sm=0}zga(f,b,a,c){l.DX.V()&&l.DX.V().Ns(f,b,a,c)}static V(){null==h.ze&&(h.ze=new h);return h.ze}static dispose(){h.ze=null}}h.F6=250;l.dpa=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.be.ay{constructor(){if(null!=h.ze)throw Error("Singleton");super(l.Mb.Fb.G);this.$("fm-preloader-view");this.Ik("status");this.He()}Ns(f=!0,b="",a="",c=!0){this.NF=b;this.dK=a;this.Dra=c;f?this.open():this.close()}open(){super.open();this.kb()}He(){this.OD.$("fm-overlay-preloader");this.OD.sb("click",this.u$);this.c$=new x.Ma("div","fm-spinner");this.c$.vn();this.W(this.c$);this.Yr=new x.Uc;this.Yr.vn();this.Yr.$("fm-message-label");this.W(this.Yr);this.ZQ=
new x.Uc;this.ZQ.vn();this.ZQ.$("fm-details-label");this.W(this.ZQ);this.eb();l.Mb.Fb.W(this)}kb(){this.OD.oJa(!this.Dra);this.gI(this.NF);this.dJa(this.dK);this.mc(this.NF);this.validate()}gI(f){this.Yr.cb(f)}dJa(f){this.ZQ.cb(f)}close(){super.close();this.clear()}clear(){this.gI("");this.gI("")}static V(){if(null==l.Mb.Fb)return null;null==h.ze&&(h.ze=new h);return h.ze}static dispose(){h.ze=null}}l.DX=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ea{constructor(){super("div","fm-charts-layout");this.O4=!0;this.Ol();this.He()}He(){this.B_();this.awa()}B_(){this.sp=new x.Uc;this.sp.G.display="block";this.sp.$("fm-chart-title");this.sp.$("fm-pivot-title");this.sp.KV(!0);this.sp.G.R("position","relative");this.sp.eb();this.RB(this.sp)}awa(){this.Ur=new x.Ma("div","fm-ui-row fm-header-toolbar");this.RB(this.Ur);this.Wv=new x.Ma("div","fm-ui-col-2");this.Wv.G.display="inline-block";this.Ur.W(this.Wv);
this.rm=new x.zd.Mr;this.rm.$("fm-chart-measures-dropdown");this.rm.N(v.fa.$d,a=>this.tFa(a));this.rm.eb();this.Wv.W(this.rm);this.Xv=new x.zd.Mr;this.Xv.$("fm-chart-pie-dropdown");this.Xv.N(v.fa.$d,a=>this.QFa(a));this.Xv.eb();this.Wv.W(this.Xv);this.Lt=new x.Ma("div","fm-ui-col-2 fm-charts-filters-container");this.Lt.G.display="inline-block";this.Ur.W(this.Lt);this.Pv=new x.zd.Mr;this.Pv.hl=!1;this.Pv.$("fm-charts-filters-btn");this.Pv.fi(e.model.B.j.bB);this.Pv.N(v.fa.$d,a=>this.Rfa(a));this.Pv.ei(this.Lxa);
this.Ur.W(this.Pv)}Lxa(a,c){var d=new b;d.setData(a);d.Tm(c);d.$("fm-charts-filter");d.G.attr("title",e.model.B.j.bB);return d}get tq(){return this.sp}get ff(){return this.mn}get es(){return this.rp}resize(a,c){this.CB=a;this.BB=c}kb(){this.width=this.CB;this.height=this.BB;e.v(this.I)||this.I.nb?this.xJa&&this.kxa():(e.ia(e.model.C.F.zm)||this.S_(),null!=this.Cb&&(this.Ur.G.Wa("fm-fields-list-padding",this.aBa),e.model.C.F.yx&&e.model.C.F.dia&&this.Xwa(),this.Cb.type!=h.Me.PE&&e.model.C.F.$ha&&this.dxa(),
this.Cb.type==h.Me.yv&&1<this.Cb.ul.length&&this.hxa(),e.model.C.F.Zha&&this.Cb.ff&&0<this.Cb.ff.length&&this.Rba(),this.Pba(),e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.qW))))}get aBa(){return e.model.C.F.IR&&!(e.model.C.F.yn&&"right"==e.model.C.F.FC)&&!(e.model.C.F.je==l.Id.Tn&&("bottom"==e.model.C.F.Iy||"left"==e.model.C.F.Iy))}clear(){this.sp.eb();this.Ur.eb();this.rm.eb();this.Xv.eb();this.Lt.eb();this.Pv.eb();this.Wv.Fd("fm-wide");this.rp&&(this.rp.Gg(!0),this.rp=null);this.mn&&(this.mn.Gg(!0),
this.mn=null);this.OB&&this.OB.eb()}get xJa(){return e.model.Va.V().Ia.aE==e.model.jc.nd.ii&&(e.v(this.I)||this.I.nb&&!e.model.C.F.K4)}kxa(){null==this.OB&&(this.OB=new x.Uc(e.model.B.j.g6),this.OB.$("fm-charts-msg"),this.RB(this.OB));this.OB.cb(e.model.B.j.g6);this.OB.show()}S_(){this.sp.cb(e.model.C.F.zm);this.sp.show()}dxa(){var a=[],c=this.I.Ba;const d=this.Cb.zK;for(var g=0;g<c.length;g++){var k=c[g],m=new e.model.hb.ah(k.A,k.aa,k.index);m.label=e.P.zo(k.label,!0,!0);a.push(m)}if(e.model.C.F.I4||
!e.model.C.F.I4&&1<a.length){this.rm.kE(e.model.B.j.Xja);this.rm.Yea=this.rm.fo&&this.Cb.Gz;this.rm.fo=this.Cb.Gz;this.rm.Wf(a);if(this.Cb.Gz){c=[];for(g=0;g<a.length;g++)for(k=a[g],m=0;m<d.length;m++)if(k.A==d[m].A&&(k.aa==d[m].aa||e.ia(d[m].aa))&&(k.index==d[m].index||-1==d[m].index)){c.push(g);break}this.rm.BN(c)}else{a=d[0];const n=new e.model.hb.ah(a.A,a.aa,a.index);this.rm.Ws(p=>p.index===n.index)}this.rm.show();this.Ur.show();this.Cb.type==h.Me.yv&&1<this.Cb.ul.length?this.rm.Xj(this.Wv.uf()/
2-10):this.rm.Xj(this.Wv.uf()-10)}}hxa(){for(var a=[],c=0;c<this.Cb.ul.length;c++)a.push({label:e.P.zo(this.Cb.ul[c].label,!0,!0)});this.Xv.Wf(a);this.Xv.Jk(e.model.C.F.VK);this.Xv.show();this.Ur.show();this.Xv.Xj(this.Wv.uf()/2-10)}Xwa(){this.Lt.G.ox();if(null!=e.u.Ra.V().ua){for(var a=e.u.Ra.V().ua.wc(!1),c=0;c<a.length;c++)this.Lt.W(this.Yva(a.ea(c)));this.Lt.show();this.Ur.show();for(c=a=0;c<this.Lt.G.element.children.length;c++){var d=this.Lt.G.element.children.item(c);a+=d.offsetWidth}a>this.Lt.uf()&&
this.Ywa()}}Ywa(){for(var a=[],c=e.u.Ra.V().ua.wc(!1),d=0;d<c.length;d++){var g=c.ea(d);a.push({label:g.caption,A:g.A,OT:g.filter.wh})}this.Pv.Wf(a);this.Pv.show();this.Lt.eb();this.Wv.$("fm-wide")}Yva(a){var c=new x.Kg;c.$("fm-ui-btn-superlight");c.$("fm-charts-filter");c.G.Wa("fm-filtered",a.filter.wh);c.N(x.Md.mf,d=>this.Rfa(d));c.cb(a.label);c.G.attr("data-hierarchy",a.A);c.G.attr("title",e.model.B.j.bB);return c}Pba(){null!=this.rp&&this.rp.Gg(!0);this.rp=h.Kka.gza(this.Cb.type);this.RB(this.rp);
this.rp.E4((c,d,g)=>this.EGa(c,d,g));var a=this.BB-this.sp.xd(!0)-this.Ur.xd(!0)-this.rp.padding.top-this.rp.padding.bottom;this.mn&&(a-=this.mn.G.element.offsetHeight);this.rp.Qd(this.Cb,this.CB-20,a);this.rp.G.R("max-width",this.CB+"px");this.rp.G.R("max-height",a+"px")}Rba(){null!=this.mn&&this.mn.Gg(!0);this.mn=new h.ff.Lka(this.O4);this.mn.$("fm-chart-legend");this.mn.ZIa((a,c,d)=>this.kFa(a,c,d));this.mn.N(v.fa.$d,()=>this.jFa());this.mn.$Ia(this.Cb.Ap);this.mn.Qd(this.Cb.ff);this.mn.FH.R("max-height",
(this.BB-this.sp.xd(!0)-this.Ur.xd())/2+"px");this.RB(this.mn)}jFa(){this.O4=!this.O4;this.Rba();this.Pba()}Wy(a,c,d){null==d||d.Zb||d.Oh||((a==e.u.i.ja.La?this.I.ai(c,d):this.I.yk(c,d))?this.I.Ip(c,d,a):this.I.Mf(c,d,a))}qu(a,c){a==e.u.i.ja.La?this.I.bi(c)?this.I.collapse(c,e.u.i.ja.La):this.I.expand(c,e.u.i.ja.La):this.I.zk(c)?this.I.collapse(c,e.u.i.ja.Xa):this.I.expand(c,e.u.i.ja.Xa)}gca(a,c){a==e.u.i.ja.La?c.length<=e.model.C.F.du.length?this.I.collapse(c,e.u.i.ja.La):this.I.expand(c,e.u.i.ja.La):
c.length<=e.model.C.F.cC.length?this.I.collapse(c,e.u.i.ja.Xa):this.I.expand(c,e.u.i.ja.Xa)}Rfa(a){a=a.type==v.fa.$d?a.data.ql.A:a.target.G.attr("data-hierarchy");a=e.u.Ra.V().O.fh(a);this.Fa(new l.NO(a))}kFa(a,c,d){e.model.C.F.ko?"expand"==a?this.gca(this.Cb.EH,c):"drill"==a&&this.Wy(this.Cb.EH,c,d):"expand"==a?this.qu(this.Cb.EH,c):"drill"==a&&this.Wy(this.Cb.EH,c,d)}EGa(a,c,d){var g=this.Cb.EH==e.u.i.ja.Xa?e.u.i.ja.La:e.u.i.ja.Xa;e.model.C.F.ko?"expand"==a?this.gca(g,c):"drill"==a&&this.Wy(g,c,
d):"expand"==a?this.qu(g,c):"drill"==a&&this.Wy(g,c,d)}tFa(a){if(this.Cb.Gz){for(var c=[],d=this.rm.hM().slice(),g=0;g<d.length;g++)(a=d[g])&&c.push(a);e.model.C.F.oG=c}else e.model.C.F.io=a.data.ql;this.$a("chart_changed")}QFa(a){e.model.C.F.VK=a.data.selectedIndex;this.$a("chart_changed")}}h.Oka=f;class b extends x.Ci.cB{kb(){var a=this.getData();null==this.label&&(this.label=new x.Uc,this.label.$("fm-text-display"),this.G.append(this.label.G));this.label.cb(a[this.er()],!0);this.G.Wa("fm-filtered",
!0===a.OT);this.G.attr("data-hierarchy",a.A)}}})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(a){return a==f.tA||a==f.EE||a==f.nJ||a==f.yv||a==f.KJ||a==f.$A||a==f.PE?a:a==f.Dpa?f.$A:a==f.aka?f.PE:a==f.R5?f.EE:f.tA}static Fea(a){if("string"!=typeof a||e.ia(a))return!1;a=a.toLowerCase();return a==f.tA||a==f.EE||a==f.R5||a==f.nJ||a==f.KJ?!0:!1}}f.tA="column";f.EE="bar_h";f.R5="bar_horizontal";f.nJ="line";f.yv="pie";f.KJ="scatter";f.$A="stacked_column";f.Dpa="bar_stack";f.PE="column_line";f.aka="bar_line";h.Me=f;class b{}b.YA="series";
b.qF="series_label";b.ena="legend";h.Pn=b})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){if(!e.v(c))for(let d in c)c.hasOwnProperty(d)&&(this[d]=c[d])}Qa(){const c={};e.v(this.label)||(c.label=this.label);e.v(this.color)||(c.color=this.color);e.v(this.bc)||(c.member=this.bc.Qa());e.v(this.lf)||(c.tuple=this.qKa==e.u.i.ja.La?e.model.Va.V().ha.ua.q_(this.lf):e.model.Va.V().ha.ua.p_(this.lf));e.v(this.measure)||(c.measure={uniqueName:this.measure.A,caption:this.measure.caption,aggregation:this.measure.aa});e.v(this.level)||
(c.level=this.level);e.v(this.Sf)||(c.isExpanded=this.Sf);e.v(this.isCollapsed)||(c.isCollapsed=this.isCollapsed);e.v(this.Rg)||(c.isDrilledDown=this.Rg);e.v(this.yH)||(c.isDrilledUp=this.yH);return c}}f.U7=b;class a{constructor(){this.Gz=!1;this.Ix=this.et=this.dt="";this.ul=[];this.Gi=[];this.EH=e.u.i.ja.Xa;this.Pw=[];this.data=[];this.vw=[];this.oE=this.cu=this.Qea=this.Kea=this.mea=this.Uw=this.de=this.Rf=!1}}f.Mka=a})(h.X||(h.X={}))})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.dk{constructor(){super();this.lo=600;this.jo=400;this.Bfa=15;this.C2=3;this.$("fm-chart")}Qd(b,a,c){this.lo=a;this.jo=c;this.Cb=b;this.oBa(this.lo,this.jo)}oBa(b,a){d3v3.select(l.Mb.Fb.gf.element).select(".fm-chart").selectAll("svg").remove();this.svg=d3v3.select(l.Mb.Fb.gf.element).select(".fm-chart").append("svg").attr("width",b).attr("height",a).append("g")}E4(){}b0(b){this.G.R("overflow-y","auto");d3v3.select(l.Mb.Fb.gf.element).select(".fm-chart").selectAll("svg").attr("height",
b)}cca(b){this.G.R("overflow-x","auto");d3v3.select(l.Mb.Fb.gf.element).select(".fm-chart").selectAll("svg").attr("width",b)}Jl(b,a){if(e.Fg(h.ov.tC)){var c=h.ov.tC,d=h.ov.Faa,g=this.Cb.type;b.each(function(k){k=d(k.data?k.data:k);k.type=a;k.chartType=g;c(this,k)})}}ZP(b){b.forEach(a=>{Infinity===Math.abs(a.value)&&(a.value=0);a.Rh&&this.ZP(a.Rh)})}}h.vW=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vW{constructor(){super();this.Ix=this.et=this.dt="";this.aO=0;this.qia=!1;this.fA=10;this.iG=200;this.GZ=[0,15,30,45,60,75,90]}Qd(b,a,c){super.Qd(b,a,c);this.dt=b.dt;this.et=b.et;this.Ix=b.Ix}mk(b,a){this.aw=this.lo;this.Ht=this.jo;this.fA=this.Cb.oE?20:10;this.iG=this.aw/5;this.ZP(b);this.mZ(b,a);this.svg.attr("transform","translate("+this.oW+", "+this.fA+")")}aM(b){return d3v3.max(b,function(a){return d3v3.max(a.Rh,function(c){return c.value})})}dM(b){return d3v3.min(b,
function(a){return d3v3.min(a.Rh,function(c){return c.value})})}E4(b){this.gu=b}qu(b){if(!e.v(b)&&this.gu){var a=b.data,c=b.vw,d=b.eh||b.Cg;b.collapsed||b.Of?this.gu("expand",a,c):d&&this.gu("drill",a,c)}}mZ(b,a){var c=this.lo,d=this.jo,g=this.aM(b),k=this.dM(b);g=0>g&&(!this.Cb.cu||k==g)?0:g;k=0>k||this.Cb.cu&&k!=g?k:0;this.hm=d3v3.scale.linear().range([d,0]).domain([k,g]).nice();var m=this.Cb.yu,n=this.Cb.Rf,p=this.Cb.de,t=this.Cb.Uw,r=!0===e.model.C.F.bC||null===e.model.C.F.bC&&1E7<g,w=this.Cb.Kca,
y=d3v3.svg.axis().scale(this.hm).orient("left").tickFormat(function(aa){return e.P.wba(w(aa,m,n,p,t,r))}),A=0,C=0,B=0;b=this.svg.append("g").attr("class","fm-y fm-axis").call(y).each(function(){A=this.getBBox().width});b.append("text").attr("class","fm-y fm-axis fm-axis-label fm-title").text(this.et).each(function(){C=this.getBBox().width}).style("text-anchor","end").attr("dy","-0.5em").attr("transform","translate(-"+A+", 0) rotate(-90)");b.each(function(){A=this.getBBox().width;c-=A});this.oW=A;
var I=!e.v(a)&&0<a.length;if(I){var L=this.aM(a),Y=this.dM(a);L=0>L&&(!this.Cb.cu||Y==L)?0:L;Y=0>Y||this.Cb.cu&&Y!=L?Y:0;var D=!0===e.model.C.F.bC||null===e.model.C.F.bC&&1E7<L;this.$N=d3v3.scale.linear().range([d,0]).domain([Y,L]).nice();var E=this.Cb.s0,G=this.Cb.mea,F=this.Cb.Kea,J=this.Cb.Qea,H=d3v3.svg.axis().scale(this.$N).orient("right").tickFormat(function(aa){return e.P.wba(w(aa,E,G,F,J,D))}),M=0,K=this.svg.append("g").attr("class","fm-y fm-axis fm-axis-2").call(H).each(function(){M=this.getBBox().width});
K.append("text").attr("class","fm-y fm-axis fm-axis-label-2 fm-title").text(this.Ix).each(function(){B=this.getBBox().width}).attr("dy","1.3em").attr("transform","translate("+(M+20)+", 0) rotate(90)");K.each(function(){M=this.getBBox().width+2;c-=M}).attr("transform","translate("+c+", 0)")}var Q=this.Cb.ul,N=Math.max(Q.length*Math.max(this.qia?this.C2:this.Cb.Pw.length*this.C2,this.Bfa),c);I&&K.attr("transform","translate("+N+", 0)");a=N>c;this.$j=d3v3.scale.ordinal().rangeRoundBands([0,N],a?0:.1).domain(Q.map(function(aa){return aa.id}));
Q=d3v3.svg.axis().scale(this.$j).tickFormat(function(){return""}).orient("bottom");Q=this.svg.append("g").attr("class","fm-x fm-axis").call(Q);this.CZ(Q);var W,O=Q.each(function(){W=this.getBBox().height}).append("text").attr("class","fm-x fm-axis fm-title").attr("dy","1.2em").style("text-anchor",a?"start":"middle").text(this.dt).attr("transform","translate("+(a?0:N/2)+", "+W+")"),V=this.dt;O.each(function(){this.getBBox().width>=N&&O.append("svg:title").text(V)});d-=this.fA;d=a?d-16:d;var ca=!1;
Q.each(function(){W=this.getBBox().height;d=(ca=W>4*d/5)?1*d/5:d-W}).attr("transform","translate(0,"+d+")");b.select(".fm-y.fm-axis-label").style("text-anchor",C<d?"middle":"end").attr("transform","translate(-"+(A-20)+","+(C<d?d/2:0)+") rotate(-90)");I&&K.select(".fm-y.fm-axis-label-2").style("text-anchor",B<d?"middle":"start").attr("transform","translate("+(M+5)+","+(B<d?d/2:0)+") rotate(90)");ca&&this.b0(d+W+this.fA);var fa=Math.min(60,d/2);b.select(".tick").each(function(){var aa=this.getBBox().height;
fa=Math.max(fa,aa)});Q=Math.floor(d/fa);n&&1>(g-k)/Q&&(Q=g-k);y.ticks(Q);this.hm.range([d,0]);b.call(y);I&&(H.ticks(Q),this.$N.range([d,0]),K.call(H));this.aO=0<k&&0<g?this.hm.domain()[0]:0>k&&0>g?this.hm.domain()[1]:0;I&&(0<Y&&0<L?this.$N.domain():0>Y&&0>L&&this.$N.domain());this.aw=c;this.Ht=d;var U=this.hm;g=U.ticks(Q);g.shift();b.selectAll(".refline").data(g).enter().append("line").attr("class","fm-refline").attr("x1",0).attr("x2",N).attr("y1",function(aa){return U(aa)}).attr("y2",function(aa){return U(aa)});
a&&this.cca(I?A+N+M:A+N)}CZ(b){var a=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.Cb.Gi).enter().append("g").attr("class","fm-level");var c=b.selectAll("text").data(function(A){return A}).enter().append("text").on("click",A=>this.qu(A)).attr("class","fm-label").style("text-anchor","middle").text(function(A){return A.Of||A.Cg?"- "+A.label:A.collapsed||A.eh?"+ "+A.label:A.label}).style("cursor",function(A){return A.collapsed||A.Of||A.Cg||A.eh?"pointer":"auto"});b.selectAll("text").filter(function(A){return A.Df&&
0<A.Df.length||A.collapsed||A.Of||A.Cg||A.eh}).append("svg:title").text(function(A){return A.Df&&0<A.Df.length?A.Df:A.collapsed||A.eh?e.model.B.j.KP:A.Of||A.Cg?e.model.B.j.JP:""});var d=0;for(d=0;d<c.length;d++)this.iN(c[d],0);var g=Math.floor(this.$j.rangeBand()),k=[],m=0;for(d=0;d<c.length;d++){var n=this.Uza(c[d],g);k.push(n);m=Math.max(m,n)}for(d=0;d<c.length;d++)0!=k[d]&&this.iN(c[d],-m);for(d=0;d<c.length;d++)0!=k[d]&&this.iN(c[d],-m);var p=[],t=6;b.each(function(){t+=this.getBBox().height+
6;p.push(this.getBBox().height)});b.attr("transform",function(A,C){t-=p[C]+6;return"translate(0, "+t+")"});p=p.reverse();for(var r=this.$j,w=1<r.range().length?(r.range()[1]-r.range()[0]-r.rangeBand())/2:0,y=0;y<this.Cb.Gi.length;y++)a.selectAll(".refline").data(this.Cb.Gi[y].slice(1)).enter().append("line").attr("class","fm-refline").attr("x1",function(A){return r(A.id)-w}).attr("x2",function(A){return r(A.id)-w}).attr("y1",function(){return 0}).attr("y2",function(){for(var A=0,C=p.length-y,B=0;B<
C;B++)A+=p[B]+6;return A})}iN(b,a){for(var c=0;c<b.length;c++)x.Ea.Vb(b[c]).R("text-anchor","middle"),x.Ea.Vb(b[c]).attr("dy","0.38em"),x.Ea.Vb(b[c]).attr("transform",this.c1(b[c])+(0!=a?" rotate("+a+")":""))}c1(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;var c=1<this.$j.range().length?(this.$j.range()[1]-this.$j.range()[0]-this.$j.rangeBand())/2:0;return"translate("+(this.$j(b.id)+this.$j.rangeBand()*b.hC/2+c*(b.hC-1))+", "+a+")"}Uza(b,a){var c=0,d=0;b.forEach(function(g){g=g.getBBox();
c<g.width&&(c=g.width,d=g.height)});return this.Nta(a,Math.sqrt(c*c+d*d),this.Fia(Math.atan(d/c)))}Nta(b,a,c){b=Math.min(90,this.Fia(Math.acos(b/a))+c||0);if(0==b)return 0;for(a=0;a<this.GZ.length;a++)if(this.GZ[a]>b)return this.GZ[a];return b}Fia(b){return 180*b/Math.PI}fS(b,a){var c=this.Cb.Ap,d=this.$j,g=0;if(0<this.Cb.Pw.length){var k=this.Cb.Pw;var m=d3v3.scale.ordinal().rangeRoundBands([0,d.rangeBand()],.1).domain(k);k=m.rangeBand();var n=Math.min(k,this.iG);g=k!=n?(k-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",
function(r){return"translate("+(d(r.id)+g)+",0)"});var p=this.aO;k=b.selectAll("rect").data(function(r){return r.Rh}).enter().append("rect");k.attr("class","fm-bar").attr("x",function(r){return m(r.id)}).attr("width",n).attr("y",function(r){return 0<r.value?Math.floor(100*a(r.value))/100:Math.floor(100*a(p))/100}).attr("height",function(r){return Math.floor(100*Math.abs(a(p)-a(r.value)))/100}).style("fill",function(r){return e.v(r.Yq)?c(r.id):c(r.Yq)}).append("title").text(function(r){return r.Df});
this.Jl(k,h.Pn.YA);if(this.Cb.oE){var t=0;b=b.selectAll("text").data(function(r){return r.Rh}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.qs}).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 w=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;this.getBBox().width+3>Math.abs(w)&&(w-=Math.min(this.getBBox().width,Math.floor(100*Math.abs(a(p)-a(r.value)))/100));return w}).attr("dx",
function(r){var w=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;return this.getBBox().width+3>Math.abs(w)&&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.Df});
this.Jl(b,h.Pn.qF)}}R_(b,a){for(var c=this.$j,d=d3v3.svg.line().interpolate("linear").x(function(n){return c(n.id)+c.rangeBand()/2}).y(function(n){return a(n.value)}),g=0;g<b.length;g++){var k=e.v(b[g].Yq)?this.Cb.Ap(b[g].id):this.Cb.Ap(b[g].Yq),m=this.svg.append("g");const n=m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",k).attr("d",function(p){return d(p.Rh)});this.Jl(n,h.Pn.YA);k=m.selectAll("circle").data(b[g].Rh).enter().append("circle").attr("class","fm-circle").style("stroke",
k).attr("cx",function(p){return c(p.id)+c.rangeBand()/2}).attr("cy",function(p){return a(p.value)}).attr("r",4);k.append("title").text(function(p){return p.Df});this.Jl(k,h.Pn.YA);this.Cb.oE&&(m=m.selectAll("text").data(b[g].Rh).enter().append("text").attr("class","fm-data-label").text(function(p){return p.qs}),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.Df}),
this.Jl(m,h.Pn.qF))}}}h.II=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vW{constructor(){super();this.Ix=this.et=this.dt="";this.aO=0;this.fA=10;this.iG=200}Qd(b,a,c){super.Qd(b,a,c);this.dt=b.dt;this.et=b.et;this.Ix=b.Ix}mk(b,a){this.aw=this.lo;this.Ht=this.jo;this.iG=this.aw/5;this.ZP(b);this.mZ(b,a);this.svg.attr("transform","translate("+this.oW+", "+this.fA+")")}aM(b){return d3v3.max(b,function(a){return d3v3.max(a.Rh,function(c){return c.value})})}dM(b){return d3v3.min(b,function(a){return d3v3.min(a.Rh,function(c){return c.value})})}E4(b){this.gu=
b}qu(b){if(!e.v(b)&&this.gu){var a=b.data,c=b.vw,d=b.eh||b.Cg;b.collapsed||b.Of?this.gu("expand",a,c):d&&this.gu("drill",a,c)}}mZ(b){var a=this.lo,c=this.jo,d=this.aM(b),g=this.dM(b);d=0>d&&(!this.Cb.cu||g==d)?0:d;g=0>g||this.Cb.cu&&g!=d?g:0;this.hm=d3v3.scale.linear().range([0,a]).domain([g,d]).nice();var k=this.Cb.yu,m=this.Cb.Rf,n=this.Cb.de,p=this.Cb.Uw,t=!0===e.model.C.F.bC||null===e.model.C.F.bC&&1E7<d,r=this.Cb.Kca,w=d3v3.svg.axis().scale(this.hm).orient("bottom").tickFormat(function(H){return r(H,
k,m,n,p,t)}),y=this.svg.append("g").attr("class","fm-y fm-axis").call(w),A,C;y.each(function(){C=A=this.getBBox().height}).append("text").attr("class","fm-x fm-axis fm-title").attr("dy","1.2em").style("text-anchor","middle").text(this.et).attr("transform","translate("+a/2+", "+C+")");c-=this.fA;y.each(function(){A=this.getBBox().height;c-=A});var B=this.Cb.ul,I=Math.max(B.length*Math.max(this.Cb.Pw.length*this.C2,this.Bfa),c);y.attr("transform","translate(0,"+I+")");b=I>c;this.$j=d3v3.scale.ordinal().rangeRoundBands([0,
I],b?0:.1).domain(B.map(function(H){return H.id}));B=d3v3.svg.axis().scale(this.$j).orient("left").tickFormat(function(){return""});var L=0;B=this.svg.append("g").attr("class","fm-x fm-axis").call(B).each(function(){L=this.getBBox().width;a-=L});this.oW=L;this.CZ(B);B.each(function(){L=this.getBBox().width});var Y=B.append("text").attr("class","fm-x fm-axis fm-axis-label fm-title").text(this.dt).style("text-anchor",b?"end":"middle").attr("dy","-0.5em").attr("transform","translate(-"+L+", "+(b?0:I/
2)+") rotate(-90)"),D=this.dt;Y.each(function(){this.getBBox().width>=I&&Y.append("svg:title").text(D)});a=b?a-16:a;var E=!1;B.each(function(){L=this.getBBox().width;a=(E=L>4*a/5)?1*a/5:a-L});E&&this.cca(a+L);this.oW=L;B=10;var G=20,F=0;y.selectAll(".tick").each(function(){G=this.getBBox().width;F=Math.max(F,G)});a-=G/2;F*=1.8;a/B<F&&(B=Math.floor(a/F));m&&1>(d-g)/B&&(B=d-g);w.ticks(B);this.hm.range([0,a]);y.call(w);y.select(".fm-title").attr("transform","translate("+a/2+", "+C+")");this.aO=0<g&&
0<d?this.hm.domain()[0]:0>g&&0>d?this.hm.domain()[1]:0;this.aw=a;this.Ht=c;var J=this.hm;d=J.ticks(B);d.shift();y.selectAll(".refline").data(d).enter().append("line").attr("class","fm-refline").attr("y1",0).attr("y2",-I).attr("x1",function(H){return J(H)}).attr("x2",function(H){return J(H)});d=A+I+this.fA;b&&this.b0(d)}CZ(b){var a=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.Cb.Gi).enter().append("g").attr("class","fm-level");var c=b.selectAll("text").data(function(t){return t}).enter().append("text").on("click",
t=>this.qu(t)).attr("class","fm-label").style("text-anchor","middle").text(function(t){return t.Of||t.Cg?"- "+t.label:t.collapsed||t.eh?"+ "+t.label:t.label}).style("cursor",function(t){return t.collapsed||t.Of||t.Cg||t.eh?"pointer":"auto"});b.selectAll("text").filter(function(t){return t.Df&&0<t.Df.length||t.collapsed||t.Of||t.Cg||t.eh}).append("svg:title").text(function(t){return t.Df&&0<t.Df.length?t.Df:t.collapsed||t.eh?e.model.B.j.KP:t.Of||t.Cg?e.model.B.j.JP:""});var d=0;for(d=0;d<c.length;d++)this.iN(c[d],
0);var g=[],k=6;b.each(function(){k+=this.getBBox().width+6;g.push(this.getBBox().width)});b.attr("transform",function(t,r){k-=g[r];t="translate("+-k+", 0)";k-=6;return t});g=g.reverse();for(var m=this.$j,n=1<m.range().length?(m.range()[1]-m.range()[0]-m.rangeBand())/2:0,p=0;p<this.Cb.Gi.length;p++)a.selectAll(".refline").data(this.Cb.Gi[p].slice(1)).enter().append("line").attr("class","fm-refline").attr("y1",function(t){return m(t.id)-n}).attr("y2",function(t){return m(t.id)-n}).attr("x1",function(){return 0}).attr("x2",
function(){for(var t=0,r=g.length-p,w=0;w<r;w++)t+=g[w]+6;return-t})}iN(b,a){for(var c=0;c<b.length;c++)x.Ea.Vb(b[c]).R("text-anchor","end"),x.Ea.Vb(b[c]).attr("dy","0.38em"),x.Ea.Vb(b[c]).attr("transform",this.c1(b[c])+(0!=a?" rotate("+a+")":""))}c1(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;b=this.$j(b.id)+this.$j.rangeBand()*b.hC/2;return"translate("+a+", "+b+")"}fS(b,a){var c=this.Cb.Ap,d=this.$j,g=0;if(0<this.Cb.Pw.length){var k=this.Cb.Pw;var m=d3v3.scale.ordinal().rangeRoundBands([0,
d.rangeBand()],.1).domain(k);k=m.rangeBand();var n=Math.min(k,this.iG);g=k!=n?(k-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",function(t){return"translate(0,"+(d(t.id)+g)+")"});var p=this.aO;k=b.selectAll("rect").data(function(t){return t.Rh}).enter().append("rect").attr("class","fm-bar").attr("y",function(t){return m(t.id)}).attr("height",n).attr("x",function(t){return 0>t.value?Math.floor(100*a(t.value))/100:Math.floor(100*a(p))/100}).attr("width",function(t){return Math.floor(100*
Math.abs(a(p)-a(t.value)))/100}).style("fill",function(t){return e.v(t.Yq)?c(t.id):c(t.Yq)});k.append("title").text(function(t){return t.Df});this.Jl(k,h.Pn.YA);if(this.Cb.oE){const t=this.G.find("svg").getBoundingClientRect();b=b.selectAll("text").data(function(r){return r.Rh}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.qs}).attr("x",function(r){return Math.floor(100*a(r.value))/100}).attr("y",function(r){return m(r.id)+n/2}).attr("dx",function(){const r=this.getBoundingClientRect();
return r.right>t.right?`${t.right-r.right}px`:"2px"}).attr("dy","0.38em");b.append("title").text(function(r){return r.Df});this.Jl(b,h.Pn.qF)}}R_(b,a){for(var c=this.$j,d=d3v3.svg.line().interpolate("linear").x(function(n){return c(n.id)+c.rangeBand()/2}).y(function(n){return a(n.value)}),g=0;g<b.length;g++){var k=e.v(b[g].Yq)?this.Cb.Ap(b[g].id):this.Cb.Ap(b[g].Yq),m=this.svg.append("g");m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",k).attr("d",function(n){return d(n.Rh)});
m.selectAll("circle").data(b[g].Rh).enter().append("circle").attr("class","fm-circle").style("stroke",k).attr("cx",function(n){return c(n.id)+c.rangeBand()/2}).attr("cy",function(n){return a(n.value)}).attr("r",4).append("title").text(function(n){return n.Df})}}}h.Oja=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.II{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}mk(b){super.mk(b);this.fS(b,this.hm)}}h.z6=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.II{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}mk(b){super.mk(b);this.R_(b,this.hm)}}h.kna=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.II{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}mk(b){super.mk(b);for(var a=this.$j,c=this.hm,d="triangle-up cross circle square triangle-down diamond".split(" "),g=0;g<b.length;g++){var k=e.v(b[g].Yq)?this.Cb.Ap(b[g].id):this.Cb.Ap(b[g].Yq),m=d[g%d.length],n=this.svg.append("g");m=d3v3.svg.symbol().type(m);m=n.selectAll(".scatter-point").data(b[g].Rh).enter().append("path").attr("class","fm-scatter-point").attr("d",m).style("stroke",
function(){return k}).attr("transform",function(p){return"translate("+Math.round(a(p.id)+a.rangeBand()/2)+","+Math.round(c(p.value))+")"});m.append("title").text(function(p){return p.Df});this.Jl(m,h.Pn.YA);this.Cb.oE&&(n=n.selectAll("text").data(b[g].Rh).enter().append("text").attr("class","fm-data-label").text(function(p){return p.qs}),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.Df}),this.Jl(n,h.Pn.qF))}}}h.Kpa=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.vW{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.update(b.data)}update(b){if(0!=b.length){var a=this.lo,c=Math.max(this.jo,70),d=Math.min(a,c)/2;c>this.jo&&this.b0(c);var g=this.Cb.Ap,k=d3v3.svg.arc().outerRadius(d-20).innerRadius(0),m=d3v3.layout.pie().sort(null).value(function(y){return Math.abs(y.value)});this.svg.attr("transform","translate("+a/2+","+c/2+")");b=this.svg.selectAll(".arc").data(m(b[0].Rh)).enter().append("g").attr("class",
"fm-arc");b.append("path").attr("d",k).style("fill",function(y){return g(y.data.id)}).append("title").text(function(y){return y.data.Df});var n=d3v3.svg.arc().outerRadius(d-20).innerRadius(d),p=0;d=this.svg.append("g").attr("class","fm-pie-label");d.append("text").text("Test").each(function(){p=this.getBBox().height});d.remove();var t=[],r=[],w=[];b.each(function(y){var A=n.centroid(y);if(e.model.C.F.Wha||0==r.length||2==r.length&&Math.abs(A[1]-r[1])>p||0<=r[0]&&0>=A[0])w.push(y),t.push(A),r=A});
d=this.svg.selectAll(".pie-label").data(w).enter().append("g").attr("class","fm-pie-label");d.append("text").text(function(y){return y.data.label+" ("+y.data.qs+")"}).attr("transform",function(y,A){return"translate("+t[A]+")"}).attr("dy",".35em").style("text-anchor",function(y,A){return 0<t[A][0]?"start":"end"});d.selectAll("text").filter(function(y){return y.data.f2&&0<y.data.f2.length}).append("svg:title").text(function(y){return y.data.f2});this.Jl(b,h.Pn.YA);this.Jl(d,h.Pn.qF);b=this.svg[0][0].getBBox();
if(b.x+b.width>a/2||b.x<-a/2)d=x.Ea.Vb(this.svg[0][0]),k=d3v3.transform(d.attr("transform")),a=a/2/(a/2+Math.max(-a/2-b.x,b.x+b.width-a/2)),k.scale=[a,a],d.attr("transform",k.toString())}}}h.apa=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.II{constructor(){super();this.qia=!0}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}aM(b){return d3v3.max(b,function(a){return a.UKa})}dM(b){return d3v3.min(b,function(a){return a.TKa})}mk(b){this.ZP(b);b.forEach(function(p){var t=0,r=0;p.Rh.forEach(function(w){0<=w.value?(w.D5=t,t+=w.value,w.y1=t):(w.y1=r,r+=w.value,w.D5=r)});p.TKa=r;p.UKa=t});super.mk(b);var a=this.Cb.Ap,c=this.$j,d=this.hm;var g=c.rangeBand();0<this.Cb.Pw.length&&(g=this.Cb.Pw,
g=d3v3.scale.ordinal().rangeRoundBands([0,c.rangeBand()],.1).domain([g[0]]),g=g.rangeBand());var k=Math.min(g,this.iG),m=g!=k?(g-k)/2:0;m+=(c.rangeBand()-g)/2;b=this.svg.selectAll(".state").data(b).enter().append("g").attr("class","fm-bar-stack").attr("transform",function(p){return"translate("+(c(p.id)+m)+",0)"});g=b.selectAll("rect").data(function(p){return p.Rh}).enter().append("rect").attr("width",k).attr("y",function(p){return Math.round(100*d(p.y1))/100}).attr("height",function(p){return Math.round(100*
Math.abs(d(p.D5)-d(p.y1)))/100}).style("fill",function(p){return a(p.id)});g.append("title").text(function(p){return p.Df});b.selectAll("path").data(function(p){return p.Rh}).enter().append("path").attr("d",function(p){return"M0 "+Math.round(100*d(p.y1))/100+" l"+k+" 0"});this.Jl(g,h.Pn.YA);if(this.Cb.oE){var n=0;b=b.selectAll("text").data(function(p){return p.Rh}).enter().append("text").attr("class","fm-data-label").text(function(p){return p.qs}).each(function(){n=Math.max(n,this.getBBox().height)});
b.text(function(p){return n+1>Math.round(100*Math.abs(d(p.D5)-d(p.y1)))/100?"":p.qs});g=Math.floor(n);b.style("text-anchor","middle").attr("x",function(){return k/2}).attr("y",function(p){return Math.round(100*d(p.y1))/100}).attr("dy",g+"px");b.append("title").text(function(p){return p.Df});this.Jl(b,h.Pn.qF)}}}h.Qpa=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends h.II{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data,b.vw)}mk(b,a){super.mk(b,a);this.fS(b,this.hm);this.R_(a,this.$N)}}h.Qka=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));(function(e){(function(l){(function(h){class f extends h.Oja{constructor(){super()}Qd(b,a,c){super.Qd(b,a,c);this.mk(b.data)}mk(b){super.mk(b);this.fS(b,this.hm)}}h.Mja=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ci.cB{constructor(){super();this.z_();this.kL()}z_(){null==this.mD&&(this.mD=new x.Ea("span","fm-icon-display"))}kL(){null==this.Vo&&(this.Vo=new x.Ea("span","fm-text-display"))}kb(){var a=this.getData();this.G.empty();0==a.Sf&&this.mD.R("background-color",a.color);this.G.append(this.mD);this.Vo.html(a[this.er()]);var c=a.Df;c&&0<c.length&&this.Vo.attr("title",c);a.isCollapsed||a.yH?this.G.attr("title",e.model.B.j.KP):(a.Sf||a.Rg)&&
this.G.attr("title",e.model.B.j.JP);this.G.$("fm-level-"+a.level);this.G.append(this.Vo);e.v(a.measure)||isNaN(a.measure.index)||this.G.attr("data-measure-index",a.measure.index);this.G.Wa(l.Y.X.wa.EW,a.isCollapsed||a.yH);this.G.Wa(l.Y.X.wa.UW,a.Sf||a.Rg);this.Jl(this.G.element,h.Pn.ena)}Jl(a,c){if(e.Fg(h.ov.tC)){var d=this.getData().Qa();d.type=c;d.chartType=e.model.C.F.WK;h.ov.tC(a,d)}}}f.jna=b})(h.ff||(h.ff={}))})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.dk{constructor(a){super();this.FN=!0;this.FN=a;this.G.Ol();this.color=d3v3.scale.category20c();e.model.C.F.H4&&(this.DN=new x.Kg,this.FN?this.DN.$("fm-chart-legend-btn fm-hide"):this.DN.$("fm-chart-legend-btn fm-show"),this.DN.G.attr("title",this.FN?e.model.B.j.Wja:e.model.B.j.Yja),this.DN.N(x.Md.mf,()=>this.oGa()),this.W(this.DN));this.FH=new x.Ea("div");this.FH.$("fm-chart-legend-container");this.FN&&this.G.append(this.FH)}oGa(){this.$a(v.fa.$d)}$Ia(a){this.color=
a}Qd(a){if(this.FN){this.FH.ox();this.FH.Wa("fm-legend-btn-shown",e.model.C.F.H4);for(var c=new x.Ea("table"),d=new x.Ea("tr"),g=0;g<a.length;g++){for(var k=0;k<a[g].length;k++)a[g][k].Sf||a[g][k].Rg||(a[g][k].color=this.color(a[g][k].id));k=new x.Ea("td");var m=new x.zd.ij;m.$("fm-legend-lst-"+g);m.ei(this.Su);m.qg("label");m.useCache=!1;m.Wf(a[g]);m.N(v.fa.$d,n=>this.NU(n));k.append(m.G);d.append(k)}c.append(d);this.FH.append(c)}}ZIa(a){this.gu=a}Su(a,c){var d=new f.jna;d.setData(a);d.Tm(c);return d}NU(a){a=
a.data.ql;var c=a.yH||a.Rg;a.isCollapsed||a.Sf?this.gu("expand",a.lf,a.bc):c&&this.gu("drill",a.lf,a.bc)}}f.Lka=b})(h.ff||(h.ff={}))})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static gza(b){switch(b){case h.Me.tA:b=new h.z6;break;case h.Me.EE:b=new h.Mja;break;case h.Me.nJ:b=new h.kna;break;case h.Me.KJ:b=new h.Kpa;break;case h.Me.yv:b=new h.apa;break;case h.Me.$A:b=new h.Qpa;break;case h.Me.PE:b=new h.Qka;break;default:b=new h.z6}return b}}h.Kka=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.dk{constructor(){super();this.X7=50;this.model=e.model.Va.V();this.$("fm-charts-view");this.Ie();new h.Nka(this)}dispose(){this.model=this.I=null;this.Nq&&this.Nq.dispose();this.Nq=null}kb(){if(!(1>e.model.Ga.uc.Oj())){null==this.Nq&&(this.Nq=this.Rva(),this.G.W(this.Nq));this.Nq.clear();this.Nq.I=this.I;this.Nq.resize(l.Mb.lo,l.Mb.jo);this.Nq.Cb=null;if(this.I&&this.I.ri){if(null==this.z0()){e.Za(e.model.B.j.Zja,e.model.B.j.Aa);return}this.Nq.Cb=
this.Qva()}this.Nq.kb()}}Rva(){var b=new h.Oka;b.N("chart_changed",()=>this.VDa());b.N(l.Ni.Qx,a=>this.KU(a));b.N("dblclick",a=>this.XDa(a));b.N("click",a=>this.WDa(a));return b}get Am(){return this.Nq}VDa(){this.kb()}KU(b){this.Fa(b)}SBa(b){b=x.Ea.Vb(b);return b.closest(".fm-charts-filters-container")||b.closest(".fm-charts-filters-btn")?!0:!1}UH(b){b=x.Ea.Vb(b).closest(".fm-charts-filter");null!=b&&(b=e.u.Ra.V().O.fh(b.attr("data-hierarchy")),null!=b&&this.Fa(new l.NO(b)))}tk(b,a=!1,c=null){e.model.Ac.xA.pg(this,
b,a,c)}print(b=null){if(this.Pea){var a=e.model.Ac.xA.nS(this,null,!0);a=e.model.Ac.xA.jL(e.model.Rs.jF.V().C.Ui)+a+e.model.Ac.xA.jL(e.model.Rs.jF.V().C.pj)}else a=e.model.Ac.xA.nca(this,null,!0);!e.ia(e.model.C.F.zm)&&this.Pea&&(a="<center><div style='"+l.Y.X.ed.dz(this.G.find(".fm-chart-title"))+"'>"+e.model.C.F.zm+"</div></center>"+a);null!=b?b(a):(z.I8.print(a,"",e.model.C.F.zm),e.model.Rs.jF.V().bga());e.model.Ac.xA.clear()}get Pea(){var b=new x.Ea("div");b.text("FM");b.R("font-size","10px");
b.eb();document.body.appendChild(b.element);var a="10px"==b.R("font-size");b.remove();return a}Qva(){var b=new h.X.Mka;b.type=e.model.C.F.WK;b.cu=e.model.C.F.cu;b.oE=e.model.C.F.Yha;b.Tt=this.z0();b.Gz=e.model.C.F.pG&&(b.type==h.Me.tA||b.type==h.Me.EE||b.type==h.Me.nJ||b.type==h.Me.KJ);b.yu=b.Tt.Yh(b.Tt.A,b.Tt.aa).clone();b.Rf=e.u.i.da.Rf(b.Tt.aa);b.de=e.u.i.da.de(b.Tt.aa);b.yu.rd=b.Tt.aa==e.u.i.da.Ji?"":b.yu.rd;b.Uw=b.Tt.type==e.u.i.Pa.dc&&e.u.i.da.Zo(b.Tt.aa);b.Kca=this.Jca;var a="on"==e.model.C.F.Bf||
"rows"==e.model.C.F.Bf?this.I.Dd-1:this.I.Dd,c="on"==e.model.C.F.Bf||"columns"==e.model.C.F.Bf?this.I.Cd-1:this.I.Cd;0==a&&(a=1);0==c&&(c=1);var d=3E3<c*a?3E3:-1;b.zK=b.Gz?this.Qca():[b.Tt];e.model.C.F.ko&&(null!=this.I.fU&&(e.model.C.F.du=this.I.fU),null!=this.I.eU&&(e.model.C.F.cC=this.I.eU),0==this.kAa(e.model.C.F.du)&&(e.model.C.F.du=[]),0==this.lAa(e.model.C.F.cC)&&(e.model.C.F.cC=[]));var g=!1;switch(b.type){case h.Me.tA:case h.Me.EE:case h.Me.$A:g=this.Cga(b,a,c,b.zK,b.data,b.Gz&&1<b.zK.length,
void 0,d);break;case h.Me.nJ:case h.Me.KJ:g=this.Dga(b,a,c,b.zK,b.data,b.Gz&&1<b.zK.length,void 0,d);break;case h.Me.yv:g=this.yHa(b,a,c,b.Tt,void 0,d);break;case h.Me.PE:g=0<this.I.Ba.length?this.I.Ba[0]:null;var k=1<this.I.Ba.length?this.I.Ba[1]:null;b.yu=g.Yh(g.A,g.aa).clone();b.Rf=e.u.i.da.Rf(g.aa);b.de=e.u.i.da.de(g.aa);b.yu.rd=g.aa==e.u.i.da.Ji?"":b.yu.rd;b.Uw=g.type==e.u.i.Pa.dc&&e.u.i.da.Zo(g.aa);e.v(k)||(b.s0=k.Yh(k.A,k.aa).clone(),b.mea=e.u.i.da.Rf(k.aa),b.Kea=e.u.i.da.de(k.aa),b.s0.rd=
k.aa==e.u.i.da.Ji?"":b.s0.rd,b.Qea=k.type==e.u.i.Pa.dc&&e.u.i.da.Zo(k.aa));g=this.xHa(b,a,c,g,k,d)}e.model.C.F.aia&&g&&e.Za(e.model.B.j.$ja,e.model.B.j.o9,e.xb.vl);this.wHa(b);b.type!=h.Me.yv&&(b.dt=this.PAa(),b.type==h.Me.PE?(g=0<this.I.Ba.length?this.I.Ba[0]:null,k=1<this.I.Ba.length?this.I.Ba[1]:null,b.et=null!=g?g.label:"",b.Ix=null!=k?k.label:""):(e.model.C.F.pG?(a=this.Qca(),b.et=1==a.length?a[0].label:""):b.et=this.z0().label,b.Ix=""));return b}wHa(b){if(e.v(this.S4)||0==this.S4.length)this.S4=
this.lza();b.Ap=d3v3.scale.ordinal().range(this.S4);if(b.ff&&0<b.ff.length){var a=[],c=[],d,g;for(d=0;d<b.ff.length;d++){var k=b.ff[d][0].id;var m=b.Ap(k);b.ff[d][0].Sf||(a.push(k),c.push(m));k=[];for(g=1;g<b.ff[d].length;g++)b.ff[d][g].Sf||k.push(b.ff[d][g].id);a=a.concat(k);g=d3v3.rgb(m);g=d3v3.rgb(g.r-25,g.g-25,g.b-25);m=d3v3.rgb("#EEEEEE");m=d3v3.scale.linear().domain([0,k.length+1]).range([g,m]);g=1;for(k=0;g<b.ff[d].length;g++)b.ff[d][g].Sf||(c.push(m(k).toString()),k++)}b.Ap=d3v3.scale.ordinal().domain(a).range(c)}}lza(){var b=
[],a=1,c=new x.Ea("div");c.eb();for(l.Mb.Fb.G.W(c);100>a;){c.d4("class");c.$("fm-charts-color-"+a);var d=window.getComputedStyle(c.element).fill;e.ia(d)&&(d="#000");if("none"!=d)b.push(d);else break;a++}c.remove();return b}z0(){var b=this.I.Ba.find(k=>k.A===e.model.C.F.io.A);if(null!=b&&(""!=e.model.C.F.io.aa||e.model.C.F.io.index)){var a=!0,c=!0;for(g=0;g<this.I.Ba.length;g++){var d=this.I.Ba[g];if(d.A==e.model.C.F.io.A)if(""==e.model.C.F.io.aa){b=d;break}else if(d.aa==e.model.C.F.io.aa)if(a=!1,
null==e.model.C.F.io.index||-1==e.model.C.F.io.index){b=d;break}else if(d.index==e.model.C.F.io.index){b=d;c=!1;break}}a&&(e.model.C.F.io.aa="");c&&(e.model.C.F.io.index=-1)}if(null==b)if(e.model.C.F.rc)for(var g=0;g<this.I.Ba.length&&(b=this.I.Ba[g],b.type==e.u.i.Pa.xc||b.type==e.u.i.Pa.Sa);g++);else b=this.I.Ba[0];return b}Qca(){var b=[],a=e.model.C.F.oG;if(0<a.length)for(var c=[],d=0;d<a.length;d++){for(var g=a[d],k,m=!0,n=!0,p=0;p<this.I.Ba.length;p++){var t=this.I.Ba[p];if(t.A==g.A)if(-1==c.indexOf(t.index)&&
(k=t),""==g.aa)break;else if(t.aa==g.aa)if(m=!1,null==g.index||-1==g.index){if(-1==c.indexOf(t.index)){k=t;break}}else if(t.index==g.index){k=t;n=!1;break}}m&&(e.model.C.F.oG[d].aa="");n&&(e.model.C.F.oG[d].index=-1);null!=k&&(c.push(k.index),b.push(k))}else b=this.I.Ba.slice();0==b.length&&(b=this.I.Ba.slice(),e.model.C.F.oG=[]);return b}kAa(b){for(var a=0,c,d=0;d<this.I.Cd;d++)c=this.I.Fn(d),this.sR(b,c)&&a++;return a}lAa(b){for(var a=0,c,d=0;d<this.I.Dd;d++)c=this.I.Nj(d),this.tR(b,c)&&a++;return a}sR(b,
a){return a.length!=b.length+1||0!=b.length&&0!=a.join(",").indexOf(b.join(",")+",")?!1:!0}tR(b,a){return a.join()==b.join()||a.length==b.length+1&&(0==b.length||0==a.join(",").indexOf(b.join(",")+","))?!0:!1}PAa(){for(var b=[],a=0;a<this.I.rows.length;a++)b.push(this.I.rows.ea(a).label);return b.join(" / ")}pda(b){for(var a=[],c,d=0;d<b.length;d++)c=b[d],c=c.Yh(c.A,c.aa).clone(),a.push(c);return a}jM(b,a,c,d,g,k=""){a=c+": "+a;b.type==h.Me.yv&&0<k.length&&(a+=" of "+k);c=this.I.Rb.Ya&&1==this.I.Ka.length;
d=this.I.cc.Ya&&1==this.I.rows.length?"":this.d1(d,e.u.i.ja.La,!1,null,!0);g=c?"":this.d1(g,e.u.i.ja.Xa,!1,null,!0);d=this.Lw(d);g=this.Lw(g);0<d.length&&(a=a+"\n"+d);0<g.length&&(a=a+"\n"+g);b.type!=h.Me.yv&&0<k.length&&(a=a+"\nTotal: "+k);return a}d1(b,a,c=!1,d=null,g=!1){if(c&&a==e.u.i.ja.La)return null!=d?d.hierarchy.label+": "+d.caption:e.model.B.j.dqa+" "+(b[0]+1).toString();c=[];a=a==e.u.i.ja.Xa?this.I.Db:this.I.yb;for(var k,m=0;m<b.length;m++)d=a.ea(m),null!=d&&(k=b[m],c.push(this.rfa(d.ya(k),
g)));return c.join(" - ")}XDa(b){this.pea(b.target)&&this.bd(b.target)}WDa(b){b=this.QS(b.target,!0);e.v(b)||e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.f6,b))}pea(b){if(e.v(e.u.Ra.V().ga)||!e.u.Ra.V().ga.KT||!e.model.C.F.bd)return!1;b=b.__data__;null!=b&&b.data&&(b=b.data);return b&&b.measure&&null==this.model.ha.O.gd(b.measure.A)?!1:b&&b.measure&&b.Bg&&b.lh}bd(b){var a=b.__data__;null!=a&&a.data&&(a=a.data);b=new l.O6(a.measure,a.Bg,a.lh,this.QS(b,!0));this.Fa(b)}rfa(b,a=!1){var c="";if(!e.v(b)){for(var d=
[];!e.v(b.parent);)d.unshift(b.caption),b=b.parent;c=a?b.hierarchy.label+": ":"";c+=d.join("/")}return c}Lw(b){return b=b.length<=this.X7?b:b.substr(0,this.X7)+"..."}Rg(b,a){if(0==b.length)return!1;var c=a==e.u.i.ja.Xa?this.I.Ka:this.I.rows;if(0==c.length)return!1;c=c.ea((a==e.u.i.ja.Xa?this.I.Rb:this.I.cc).Ya&&(0==b.length||b.length>this.I.ie)?b.length:b.length-1).ya(b[b.length-1]);return a==e.u.i.ja.Xa?this.I.yk(b,c):this.I.ai(b,c)}wZ(b,a,c){if(0!=a.length){var d=c==e.u.i.ja.Xa?this.I.Rb:this.I.cc,
g=c==e.u.i.ja.Xa?this.I.Ka:this.I.rows;if(0!=g.length){var k=d.Ya&&1==g.length,m=g.ea(d.Ya&&a.length>this.I.ie?a.length:a.length-1);d=m.ya(a[a.length-1]);var n=g=k?m.label:d.caption;g=this.Lw(g);n=g!=n?n:"";g=e.P.zo(g,!0,!0);k=k?"":d.level.A;k=c==e.u.i.ja.Xa?this.I.iC.indexOf(k):this.I.ol.indexOf(k);var p=this.fr(a),t=c==e.u.i.ja.Xa?this.I.zk(a):this.I.bi(a),r=c==e.u.i.ja.Xa?this.I.yk(a,d):this.I.ai(a,d),w=a.length<(c==e.u.i.ja.Xa?this.I.Yk:this.I.ml)&&!t&&!r;m=m.mg&&!d.Oh&&!d.Zb&&!d.Sg&&!t&&!r;0!=
k&&0!=b.length||b.push([]);b[b.length-1].push(new h.X.U7({label:g,id:p,lf:a,qKa:c,bc:d,level:k,Sf:t,isCollapsed:w,Rg:r,yH:m,Df:n}))}}}fr(b){return b.join("-")}BZ(b,a,c,d=!1,g=null,k=null){var m=c==e.u.i.ja.Xa?this.I.Rb:this.I.cc,n=c==e.u.i.ja.Xa?this.I.Db:this.I.yb,p=m.Ya&&1==n.length,t=a.length-1,r=n.ea(t);if(null==r)return b.ul.push({label:"",id:this.fr(a)}),"";t=a[a.length-1];t=r.ya(t);var w="";if(0<a.length)if(d)w=null!=g?g.caption:(a[0]+1).toString();else if(0<n.length){w=p?r.label:t.caption;
var y=p?"":t.level.A}g=this.fr(a);var A=this.Lw(p?"":w);b.ul.push({label:A,id:g});y=this.I.ol.indexOf(y);null==b.Gi[y]&&(b.Gi[y]=[]);var C=e.model.C.F.ko?a.length<=e.model.C.F.du.length:p?!1:c==e.u.i.ja.Xa?this.I.zk(a):this.I.bi(a);var B=c==e.u.i.ja.Xa?this.I.Yk:this.I.ml;b.Gi[y].push({label:A,id:g,data:a,vw:t,Of:C,collapsed:p?!1:!C&&a.length<B,Cg:!1,eh:p?!1:r.mg&&!t.Oh&&!t.Zb&&!t.Sg,hC:1,Df:A!=w?w:""});this.AZ(b,a,t,c,g);for(d=d?0:a.length-1;0<d;)d--,t=m.Ya&&d+1>this.I.ie?d+1:d,r=n.ea(t),t=a[d],
t=r.ya(t),y=t.level.A,y=this.I.ol.indexOf(y),null==b.Gi[y]&&(b.Gi[y]=[]),r=p?r.label:t.caption,A=this.Lw(r),r=A!=r?r:"",C=k.pop(),void 0===C?b.Gi[y][b.Gi[y].length-1].hC++:b.Gi[y].push({label:A,id:g,data:C,vw:t,Of:!0,collapsed:!1,Cg:!1,eh:!1,hC:1,Df:r}),this.AZ(b,a,t,c,g);return w}AZ(b,a,c,d,g){try{c.level.wb}catch(r){c.level.wb}if(c&&1<c.level.wb){var k=this.I.ol.indexOf(c.parent.level.A);null==b.Gi[k]&&(b.Gi[k]=[]);var m=c.parent.caption,n=m;m=this.Lw(m);n=m!=n?n:"";if(m===(0<b.Gi[k].length?b.Gi[k][b.Gi[k].length-
1].label:""))b.Gi[k][b.Gi[k].length-1].hC++;else{var p=(d==e.u.i.ja.Xa?this.I.Db:this.I.yb).indexOf(c.hierarchy.A),t=a.slice(0,p);t[p]=c.parent.ordinal;b.Gi[k].push({label:m,id:g,data:t,vw:c.parent,Of:!1,collapsed:!1,Cg:!0,eh:!1,hC:1,Df:n})}this.AZ(b,a,c.parent,d,g)}}J(b,a){if(0==b.length)return"";var c=a==e.u.i.ja.Xa?this.I.Rb:this.I.cc,d=a==e.u.i.ja.Xa?this.I.Ka:this.I.rows;if(0==d.length)return"";a=c.Ya&&1==d.length;c=d.ea(c.Ya&&(0==b.length||b.length>this.I.ie)?b.length:b.length-1);b=b[b.length-
1];return a?c.label:this.rfa(c.ya(b))}eR(b,a,c){b.push([]);b[b.length-1].push(new h.X.U7({label:a.label,id:c,measure:a,level:0,Sf:!1,isCollapsed:!1,Rg:!1,yH:!1,Df:""}))}Np(b,a,c,d,g,k,m,n){return this.model.Ia.ga.Da!=e.u.i.qa.Tc&&this.model.Ia.ga.Da!=e.u.i.qa.le||!e.model.C.F.vq||d.aa!=e.u.i.da.NONE?this.Jca(b,g,k,m,n):this.I.Np(a,c,d)}Jca(b,a,c,d,g,k=!1){return g?e.P.Cx(b,e.model.C.F.Wo):d?u.Yb.format(b,a,c,d):k?u.Yb.wJa(b,a,c,d):u.Yb.format(b,a,c,d)}Dga(b,a,c,d,g,k=!1,m=null,n=-1){var p=!0,t=!0,
r=[],w=this.I.Rb.Ya&&1==this.I.Ka.length,y=this.I.cc.Ya&&1==this.I.rows.length;var A="";var C=NaN,B,I=d[0],L=this.pda(d),Y=L[0],D=e.u.i.da.Rf(I.aa),E=e.u.i.da.de(I.aa);Y.rd=I.aa==e.u.i.da.Ji?"":Y.rd;var G=I.type==e.u.i.Pa.dc&&e.u.i.da.Zo(I.aa);if(null!=m)var F=this.I.Nj(this.model.ha.ua.rows.indexOf(m.A)),J=this.model.ha.O.cf(m.A);var H=!1,M=c;for(c=0;c<a;c++){var K=c;K=this.I.Nj(K);if(!e.model.C.F.ko||this.tR(e.model.C.F.cC,K)||w||0==this.I.Ka.length){var Q=this.Rg(K,e.u.i.ja.Xa);k||w||this.wZ(r,
K,e.u.i.ja.Xa);if(!Q){if(0<this.I.Ka.length&&0<K.length){var N=[];if(!k&&(C=this.I.Ha(N,K,I),!this.yz(C)))continue;A=this.I.Rb.Ya&&(0==K.length||K.length>this.I.ie)?K.length:K.length-1;A=this.I.Ka.ea(A);var W=K[K.length-1];A=w?A.label:A.ya(W).caption}Q=0==K.length?!1:this.I.zk(K);if(!Q){W=[];var O=[];if(k){for(var V=0;V<d.length;V++){I=d[V];D=e.u.i.da.Rf(I.aa);E=e.u.i.da.de(I.aa);L[V].rd=I.aa==e.u.i.da.Ji?"":L[V].rd;G=I.type==e.u.i.Pa.dc&&e.u.i.da.Zo(I.aa);t&&this.eR(r,I,V.toString());W=[];for(B=
0;B<M;B++){N=this.I.Fn(B);var ca=this.fr(N);if(Q=0==N.length?!1:this.I.bi(N))if(O.push(N),!e.model.C.F.ko)continue;Q=this.Rg(N,e.u.i.ja.La);if(!Q&&(!e.model.C.F.ko||this.sR(e.model.C.F.du,N)||y||0==this.I.rows.length)){Q=p?this.BZ(b,N,e.u.i.ja.La,null,null,O.splice(0)):this.J(N,e.u.i.ja.La);O=[];var fa=this.I.Ha(N,K,I);if(this.yz(fa)){var U=this.Np(fa,N,K,I,L[V],D,E,G);var aa=this.jM(b,U,I.label,N,K);W.push({label:Q,value:fa,qs:U,id:ca,Df:aa,measure:{A:I.A,aa:I.aa,index:I.index},lh:N,Bg:K})}if(p&&
0<b.ul.length&&(ca=b.ul.length,-1<n&&ca>=n)){M=B+1;H=!0;break}}}p=!1;ca=this.fr(K)+"-"+V;B=V.toString();g.push({label:A,value:C,id:ca,Yq:B,Rh:W})}t=!1}else{for(B=0;B<M;B++){N=this.I.Fn(B)||[];ca=this.fr(N);if(Q=0==N.length?!1:this.I.bi(N))if(O.push(N),!e.model.C.F.ko)continue;Q=this.Rg(N,e.u.i.ja.La);if(!Q&&(!e.model.C.F.ko||this.sR(e.model.C.F.du,N)||y||0==this.I.rows.length)){if(p){if(null!=m){var ka=this.I.Ha(N,F,J);ka=m.ya(ka)}Q=this.BZ(b,N,e.u.i.ja.La,!1,ka,O.slice(0))}else Q=this.J(N,e.u.i.ja.La);
O=[];fa=this.I.Ha(N,K,I);this.yz(fa)&&(U=this.Np(fa,N,K,I,Y,D,E,G),aa=this.jM(b,U,I.label,N,K,""),W.push({label:Q,value:fa,qs:U,id:ca,Df:aa,measure:{A:I.A,aa:I.aa,index:I.index},lh:N,Bg:K}));if(p&&0<b.ul.length&&(ca=b.ul.length,-1<n&&ca>=n)){M=B+1;H=!0;break}}}p=!1;ca=this.fr(K);g.push({label:A,value:C,id:ca,Bg:K,Rh:W})}}}}}b.ff=r;return H}Cga(b,a,c,d,g,k=!1,m=null,n=-1){var p=!0,t=!0,r=[],w=[],y=this.I.cc.Ya&&1==this.I.rows.length,A=this.I.Rb.Ya&&1==this.I.Ka.length;var C="";var B=NaN,I,L,Y,D=d[0],
E=this.pda(d),G=E[0],F=e.u.i.da.Rf(D.aa),J=e.u.i.da.de(D.aa);G.rd=D.aa==e.u.i.da.Ji?"":G.rd;var H=D.type==e.u.i.Pa.dc&&e.u.i.da.Zo(D.aa);if(null!=m)var M=this.I.Nj(this.model.ha.ua.rows.indexOf(m.A)),K=this.model.ha.O.cf(m.A);var Q=!1,N=a,W=[];for(L=0;L<c;L++){var O=this.I.Fn(L)||[];if(I=0==O.length?!1:this.I.bi(O))if(W.push(O),!e.model.C.F.ko)continue;var V=this.Rg(O,e.u.i.ja.La);if(!V&&(!e.model.C.F.ko||this.sR(e.model.C.F.du,O)||y||0==this.I.rows.length)){if(null!=m){V=this.I.Ha(O,M,K);var ca=
m.ya(V)}var fa=this.BZ(b,O,e.u.i.ja.La,!1,ca,W.slice(0));W=[];var U=[];if(!k&&(B=this.I.Ha(O,U,D),!this.yz(B)&&!e.u.i.da.zM(D.aa)))continue;var aa=[];var ka=this.Np(B,O,U,D,b.yu,b.Rf,b.de,b.Uw);for(Y=0;Y<N;Y++)if(U=Y,U=this.I.Nj(U),!e.model.C.F.ko||this.tR(e.model.C.F.cC,U)||A||0==this.I.Ka.length){var ha=this.fr(U);I=0==U.length?!1:this.I.zk(U);V=this.Rg(U,e.u.i.ja.Xa);k||(p&&!A&&this.wZ(r,U,e.u.i.ja.Xa),t&&(I||V||w.push(ha)));if(!V&&(0<this.I.Ka.length&&0<U.length&&(C=this.I.Rb.Ya&&(0==U.length||
U.length>this.I.ie)?U.length:U.length-1,C=this.I.Ka.ea(C),V=U[U.length-1],C=A?C.label:C.ya(V).caption),!I))if(k){for(var R,P=0;P<d.length;P++){D=d[P];F=e.u.i.da.Rf(D.aa);J=e.u.i.da.de(D.aa);E[P].rd=D.aa==e.u.i.da.Ji?"":E[P].rd;H=D.type==e.u.i.Pa.dc&&e.u.i.da.Zo(D.aa);R=ha+"-"+P;var ba=P.toString();p&&this.eR(r,D,P.toString());t&&(I||w.push(R));V=this.I.Ha(O,U,D);if(this.yz(V)){var Z=this.Np(V,O,U,D,E[P],F,J,H);var X=b.type==h.Me.$A?ka:"";X=this.jM(b,Z,D.label,O,U,X);aa.push({label:C,value:V,qs:Z,
id:R,Yq:ba,Df:X,measure:{A:D.A,aa:D.aa,index:D.index},lh:O,Bg:U})}if(-1<n&&w.length>=n){N=Y+1;break}}p=!1}else if(V=this.I.Ha(O,U,D),this.yz(V)&&(Z=this.Np(V,O,U,D,G,F,J,H),X=b.type==h.Me.$A?ka:"",X=this.jM(b,Z,D.label,O,U,X),aa.push({label:C,value:V,qs:Z,id:ha,Df:X,measure:{A:D.A,aa:D.aa,index:D.index},lh:O,Bg:U})),-1<n&&w.length>=n){N=Y+1;break}}t=p=!1;ha=this.fr(O);g.push({label:fa,value:B,id:ha,Rh:aa});O=b.type==h.Me.$A?b.ul.length:b.ul.length*a;if(-1<n&&O>=n){Q=!0;break}}}b.ff=r;b.Pw=w;return Q}yHa(b,
a,c,d,g=null,k=-1){b.EH=e.u.i.ja.La;var m=!0,n=[],p=this.I.Rb.Ya&&1==this.I.Ka.length,t;var r=t="";var w,y=e.model.C.F.VK;if(y>=a||-1==y)y=e.model.C.F.VK=0;null!=g&&this.I.Nj(this.model.ha.ua.rows.indexOf(g.A));var A=!1;for(g=0;g<a;g++){var C=g;C=this.I.Nj(C);var B=[];var I=this.I.Ha(B,C,d);if(0<this.I.Ka.length&&0<C.length){var L=this.I.Rb.Ya&&(0==C.length||C.length>this.I.ie)?C.length:C.length-1;r=this.I.Ka.ea(L);L=C[C.length-1];r=p?r.label:r.ya(L).caption;r=this.Lw(r)}var Y=p?"":this.d1(C,e.u.i.ja.Xa);
Y=this.Lw(Y);b.ul.push({label:Y,id:this.fr(C)});if(this.yz(I)&&(b.ul.length-1==y||1==a)){var D=[];var E=this.Np(I,B,C,d,b.yu,b.Rf,b.de,b.Uw);Y=this.I.cc.Ya&&1==this.I.rows.length;for(w=0;w<c;w++)if(B=this.I.Fn(w)||[],!e.model.C.F.ko||this.tR(e.model.C.F.du,B)||Y||0==this.I.rows.length){var G=this.I.Ha(B,C,d);if(this.yz(G)&&(L=this.Rg(B,e.u.i.ja.La),m&&!Y&&this.wZ(n,B,e.u.i.ja.La),!L&&(L=0==B.length?!1:this.I.bi(B),!L))){0<this.I.rows.length&&(L=this.I.cc.Ya&&(0==B.length||B.length>this.I.ie)?B.length:
B.length-1,t=this.I.rows.ea(L),L=B[B.length-1],t=Y?t.label:t.ya(L).caption);L=this.fr(B);var F=this.Np(G,B,C,d,b.yu,b.Rf,b.de,b.Uw);var J=this.jM(b,F,d.label,B,C,E);var H=t;t=this.Lw(t);H=Y||H==t?"":H;D.push({label:Y?"":t,value:G,qs:F,id:L,Df:J,measure:{A:d.A,aa:d.aa,index:d.index},lh:B,Bg:C,f2:H});B=D.length;if(-1<k&&B>=k){A=!0;break}}}m=!1;L=this.fr(C);b.data.push({label:r,value:I,id:L,Bg:C,Rh:D})}}b.ff=n;return A}xHa(b,a,c,d,g,k=-1){k=this.Cga(b,a,c,[d],b.data,!1,null,k);if(!e.v(g)){var m=-1;k&&
(m=b.ul.length);b.ul=[];b.Gi=[];var n=b.ff;b.ff=[];this.Dga(b,a,c,[g],b.vw,!1,null,m);0==n.length&&(this.eR(n,d,"0"),this.eR(n,g,"1"));b.ff=n;1==b.vw.length&&(b.vw[0].Yq="2")}return k}QS(b,a=!1){var c=b.__data__;null!=c&&c.data&&(c=c.data);if(e.v(c)&&e.model.C.F.pG){var d=x.Ea.Vb(b).closest("li.fm-ui-element");!e.v(d)&&d.attr("data-measure-index")&&(c={ED:parseInt(d.attr("data-measure-index"))})}d=c;a&&(d=f.Faa(c),e.v(d)||(d.element=b));return d}yz(b){return!isNaN(b)&&e.u.i.wO.vO!=b}static Faa(b){if(e.v(b))return null;
var a={};e.v(b.id)||(a.id=b.id);e.v(b.label)||(a.label=b.label);e.v(b.value)||(a.value=b.value);e.v(b.measure)||(a.measure=e.model.Va.V().ha.ua.gd(b.measure.A).bj());e.v(b.ED)||(a.measureIndex=b.ED);e.v(b.lh)||(a.rows=e.model.Va.V().ha.ua.q_(b.lh));e.v(b.Bg)||(a.columns=e.model.Va.V().ha.ua.p_(b.Bg));return a}}f.tC=null;h.ov=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.$q.tpa{constructor(a){super(a);this.Gb=e.model.Va.V()}ez(a){var c=[];a.Wc.forEach(d=>{c.push({id:`aggregation_${d}`,label:e.u.i.da.fG(d),isSelected:d==a.aa,handler:()=>this.Nfa(a,d)})});return c}Nfa(a,c){const d=this.Gb.ha.ua.clone();a=d.hd()[a.index];e.v(a)||(a.aa=c,this.Gb.ne(d))}XR(a,c,d){e.Fg(f.oL)&&(a=f.oL(a.slice(),c,d)||a);return a}dS(a,c,d=null){this.Gb.$a(e.K.Ni.p6,this,{rDa:a,coords:c,IK:d})}}f.oL=null;h.rO=f;class b extends f{constructor(a){super(a.G);
this.K=a;this.K.N(h.tc.kJ,()=>this.XEa());this.K.N(h.tc.mt,c=>this.OEa(c))}XEa(){const a=this.K.la.tr;if(0!=a.length){var c=a[0];const d=this.K.G.lg(),g=d.left+this.K.la.coords.Ul(c.qc,this.K.la.ac)+this.K.la.coords.vh(c.qc);c=d.top+this.K.la.coords.Eo(c.lb,this.K.la.ac)+this.K.la.coords.Vd(c.lb);1==a.length?this.show(a[0],{left:g,top:c}):this.eia(a,{left:g,top:c})}}OEa(a){if(a.i4){var c=this.K.la.Bu(a.i4.G.element);a=a.i4.G.getBoundingClientRect();this.show(c,{left:a.right,top:a.bottom})}else{c=
this.K.la.kg(a.lb,a.qc,!0);c.lb=a.lb;c.qc=a.qc;var d=this.K.G.lg();a=d.left+this.K.la.coords.Ul(c.qc,this.K.la.ac)+this.K.la.coords.vh(c.qc);d=d.top+this.K.la.coords.Eo(c.lb,this.K.la.ac)+this.K.la.coords.Vd(c.lb);this.show(c,{left:a,top:d})}}o3(a,c){a=this.K.la.Bu(a.target)||this.K.la.Vca(c.clientX,c.clientY);null==a||e.ia(a.label)&&isNaN(a.value)||(this.show(a,{left:c.clientX,top:c.clientY}),this.K.la.os())}B3(a){var c=this.K.G.lg(),d=a.clientX-c.left,g=a.clientY-c.top,k=a.clientX,m=a.clientY;if(!(0>
d||0>g||d>this.K.uf()||g>this.K.xd())){d=this.K.la.Bu(a.target)||this.K.la.Vca(a.clientX,a.clientY);g=this.K.la.tr;0==a.which&&0!=g.length&&(d=g[0],k=c.left+this.K.la.coords.Ul(d.qc,this.K.la.ac)+this.K.la.coords.vh(d.qc),m=c.top+this.K.la.coords.Eo(d.lb,this.K.la.ac)+this.K.la.coords.Vd(d.lb));c=!1;if(1<g.length)for(var n=0;n<g.length;n++)if(g[n].lb==d.lb&&g[n].qc==d.qc){c=!0;break}(1<g.length&&c?this.eia(g,{left:k,top:m}):this.show(d,{left:k,top:m}))&&a.preventDefault()}}eia(a,c){if(e.model.C.F.readOnly)return!1;
var d=[],g=this.K;if(this.UBa(a)){var k=a[0].hierarchy,m=a.map(n=>n.bc.ordinal);d.push({id:"group",label:e.model.B.j.lka,handler:()=>{e.sKa({dga:n=>{k.X$(n,m);this.Gb.ha.select();this.K.la.os()},DU:()=>{this.K.la.os()}})}})}d=this.XR(d,a.map(n=>n.Qa()),g.Vi?"flat":"pivot");return 0<d.length?(this.dS(d,c),!0):!1}UBa(a){if(!e.model.C.F.kT)return!1;var c=a[0].hierarchy;if(e.v(c))return!1;for(var d=0;d<a.length;d++){var g=a[d];if(g.hierarchy!=c||e.v(g.bc))return!1}return!0}show(a,c){if(e.model.C.F.readOnly)return!1;
let d=[];const g=this.K;var k=e.v(a)||e.ia(a.label)&&isNaN(a.value);!k&&a.ci&&!isNaN(a.value)&&e.model.C.F.bd&&!e.model.C.F.rc&&e.u.Ra.V().ga&&e.u.Ra.V().ga.KT&&d.push({id:"drillthrough",label:e.model.B.j.o6,handler:()=>{g.bd(a)}});const m=this.Gb.ha.ua;if(!e.v(m)){!k&&a.el&&e.model.C.F.yx&&d.push({id:"open_filter",label:e.model.B.j.q6,handler:()=>{this.K.Fa(new l.NO(a.hierarchy))}});if(!k&&a.el&&!e.model.C.F.rc){var n=m.Txa(a.hierarchy.A);e.v(n)||(n.A!=e.u.i.ja.La&&d.push({id:"move_to_rows",label:e.model.B.j.qka,
handler:()=>{n.Oa.removeItem(a.hierarchy.A);m.cc.Oa.Ta(a.hierarchy.A,a.hierarchy);this.Gb.ne(m)}}),n.A!=e.u.i.ja.Xa&&d.push({id:"move_to_columns",label:e.model.B.j.oka,handler:()=>{n.Oa.removeItem(a.hierarchy.A);m.Rb.Oa.Ta(a.hierarchy.A,a.hierarchy);this.Gb.ne(m)}}),n.A!=e.u.i.ja.rt&&d.push({id:"move_to_report_filters",label:e.model.B.j.pka,handler:()=>{n.Oa.removeItem(a.hierarchy.A);m.VH.Oa.Ta(a.hierarchy.A,a.hierarchy);this.Gb.ne(m)}}),d.push({id:"remove_field",label:e.P.bind(e.model.B.j.r6,a.hierarchy.caption),
handler:()=>{n.Oa.removeItem(a.hierarchy.A);this.Gb.ne(m)}}))}k||!a.zi&&!a.Nh||(a.Of&&d.push({id:"collapse",label:e.model.B.j.eka,handler:()=>{g.qu(a)}}),a.collapsed&&d.push({id:"expand",label:e.model.B.j.jka,handler:()=>{g.qu(a)}}),a.hierarchy&&2<a.hierarchy.ta.length&&!m.kd&&(a.Cg||a.eh)&&d.push({id:a.Cg?"drill_up":"drill_down",label:a.Cg?e.model.B.j.hka:e.model.B.j.gka,handler:()=>{g.Wy(a)}}));!k&&(a.zi||a.Nh)&&a.bc&&a.bc.Sg&&d.push({id:"ungroup",label:e.model.B.j.Aka,handler:()=>{a.hierarchy.SN(a.bc);
this.Gb.ha.select()}});!k&&a.zi&&!a.el&&a.Kn&&(a.So||d.push({id:"sort_row_desc",label:e.model.B.j.zka,handler:()=>{g.U4(a,e.u.i.za.Kc)}}),a.Ro||d.push({id:"sort_row_asc",label:e.model.B.j.yka,handler:()=>{g.U4(a,e.u.i.za.ic)}}),(a.Ro||a.So)&&d.push({id:"clear_sorting",label:e.model.B.j.n6,handler:()=>{g.zua()}}));!k&&a.Nh&&!a.el&&a.Kn&&(a.So||d.push({id:"sort_column_desc",label:e.model.B.j.xka,handler:()=>{g.HN(a,e.u.i.za.Kc)}}),a.Ro||d.push({id:"sort_column_asc",label:e.model.B.j.wka,handler:()=>
{g.HN(a,e.u.i.za.ic)}}),(a.Ro||a.So)&&d.push({id:"clear_sorting",label:e.model.B.j.n6,handler:()=>{g.uua()}}));if(!k&&(a.zi||a.Nh)){if(e.model.C.F.jI&&a.hierarchy&&a.bc&&0<a.bc.level.Ue.length){var p=this.cAa(a.bc.level.Ue,a.bc.level.A);0<p.length&&d.push({id:"member_properties",label:e.model.B.j.ska,submenu:p})}a.bc&&e.model.C.F.yx&&1!==a.bc.hierarchy.gb.length&&d.push({id:"filter_by",label:e.P.bind(e.model.B.j.kka,a.bc.caption),handler:()=>{a.hierarchy.filter;this.Gb.em(a.hierarchy.A,{members:[a.bc.qj]})}})}k||
!this.vBa(a)&&!this.uBa(a)||(p=this.ez(a.measure),0<p.length&&d.push({id:"aggregation",label:e.model.B.j.m6,submenu:p}));!k&&a.measure&&l.Mb.Fb.Uda&&(d.push({id:"number_formatting",label:e.model.B.j.rka,handler:()=>{this.KGa(a.measure)}}),d.push({id:"conditional_formatting",label:e.model.B.j.fka,handler:()=>{this.IGa(a.measure)}}));!k&&a.measure&&a.measure.Na&&d.push({id:"edit_calculated_value",label:e.P.bind(e.model.B.j.ika,a.measure.caption),handler:()=>{l.Mb.Fb.fN(a.measure.A)}});var t=m.hd();
!k&&a.measure&&1<t.length&&!e.model.C.F.rc&&d.push({id:"remove_measure",label:e.model.B.j.tka,handler:()=>{m.Wga(a.measure);this.Gb.rN(m.n5())}});!k&&a.el&&e.model.C.F.rc&&(e.v(a.measure)&&e.v(a.hierarchy)||d.push({id:"remove_field",label:e.P.bind(e.model.B.j.r6,a.hierarchy?a.hierarchy.caption:a.measure.caption),handler:()=>{a.hierarchy&&m.Ka.Hb(a.hierarchy.A)?m.Ka.removeItem(a.hierarchy.A):a.hierarchy&&m.rows.Hb(a.hierarchy.A)?m.rows.removeItem(a.hierarchy.A):a.hierarchy&&m.ob.Hb(a.hierarchy.A)&&
m.ob.removeItem(a.hierarchy.A);a.measure&&t.find(r=>r.A===a.measure.A)&&m.Wga(a.measure);this.Gb.ne(m)}}));if(!k&&a.el&&!e.v(a.hierarchy)&&e.model.C.F.pk&&(k=m.rows.Hb(a.hierarchy.A),p=m.Ka.Hb(a.hierarchy.A),(k?m.yb.indexOf(a.hierarchy.A)!=m.yb.length-1:m.Db.indexOf(a.hierarchy.A)!=m.Db.length-1)&&(k||p))){let r=!0===a.hierarchy.Cf;void 0===a.hierarchy.Cf&&(!k||"on"!=e.model.C.F.Cf&&"rows"!=e.model.C.F.Cf||(r=!0),!p||"on"!=e.model.C.F.Cf&&"columns"!=e.model.C.F.Cf||(r=!0));d.push({id:r?"hide_hierarchy_totals":
"show_hierarchy_totals",label:r?e.model.B.j.nka:e.model.B.j.vka,handler:()=>{a.hierarchy.Cf=!r;this.Gb.ne(m)}})}d=this.XR(d,a?a.Qa():null,g.Vi?"flat":"pivot");return 0<d.length?(this.dS(d,c,r=>this.Wsa(r,a)),!0):!1}}Wsa(a,c){var d=["open_filter","drillthrough","number_formatting","conditional_formatting","edit_calculated_value"];if(a&&0<=d.indexOf(a.id))return!1;d=["move_to_rows","move_to_columns","move_to_report_filters","remove_field"];if(a&&0<=d.indexOf(a.id))return!0;this.K.$z(c.lb,c.qc);return!1}KGa(a=
null){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.v8,{measureName:a.A,aggregation:a.aa}))}IGa(a=null){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.l6,{measureName:a.A}))}vBa(a){return!e.model.C.F.rc&&e.model.C.F.rl&&a.measure&&!a.measure.Na&&!a.measure.Tg}uBa(a){return e.model.C.F.rc&&e.model.C.F.rl&&a.measure&&!a.measure.Na&&a.sz&&a.ys&&0<=a.measure.index}cAa(a,c){for(var d=[],g=0;g<a.length;g++){var k=a.ea(g);if(k){var m=this.Gb.ha.ua.Rj;m&&m[c]&&-1<m[c].indexOf(k.A)?d.push({id:"hide_member_property",
label:e.P.bind(e.model.B.j.mka,k.caption),data:{levelName:c,propertyName:k.A},handler:n=>{this.K.fia(n,!1)}}):d.push({id:"show_member_property",label:e.P.bind(e.model.B.j.uka,k.caption),data:{levelName:c,propertyName:k.A},handler:n=>{this.K.fia(n,!0)}})}}return d}}h.G7=b})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.dk{constructor(){super();this.ug=this.nf=this.op=this.Zx=this.Mi=0;this.Gb=e.model.Va.V();this.Xc=[];this.b$=()=>this.YEa();this.dU=b=>this.cq(b);this.$("fm-grid-view");this.Ie();this.Ik("grid");new h.G7(this);this.Gb.N("reset_grid",this.b$);this.Tu=u.VO.V();this.Tu.N(u.KeyboardEvent.UO,this.dU)}dispose(){this.I=null;this.Gb.sb("reset_grid",this.b$);this.Gb=null;this.la&&this.la.dispose();this.Ze=null}cq(b){if(this.Km&&null!=this.Tu&&null!=
this.Ze){var a=b.ctrlKey||b.metaKey;switch(b.keyCode){case 37:this.scroll("left",a);b.gq.preventDefault();break;case 38:this.scroll("up",a);b.gq.preventDefault();break;case 39:this.scroll("right",a);b.gq.preventDefault();break;case 40:this.scroll("down",a);b.gq.preventDefault();break;case 13:case 32:null!=this.pH()?this.la.focus():this.$z(this.la.coords.gh,this.la.coords.jg),b.stopPropagation()}}}scroll(b,a=!1){switch(b){case "up":a?this.Ze.KIa():this.Ze.sr(this.Ze.coords.gh-1);break;case "down":a?
this.Ze.HIa():this.Ze.sr(this.Ze.coords.gh+1);break;case "left":a?this.Ze.IIa():this.Ze.Us(this.Ze.coords.jg-1);break;case "right":a?this.Ze.JIa():this.Ze.Us(this.Ze.coords.jg+1)}}Vva(){var b=new h.sheet.qO;b.SC=(a,c)=>this.getData(a,c);b.N(h.tc.Vn,a=>this.HD(a));b.N(h.tc.wJ,a=>this.W2(a));b.N(h.tc.sv,a=>this.bq(a));b.N(h.tc.mF,a=>this.z3(a));b.N(h.tc.nF,a=>this.A3(a));b.N(h.tc.kJ,a=>this.Fa(a));b.N(h.tc.mt,a=>this.Fa(a));this.G.append(b);return b}Sva(){var b=new h.sheet.dC.pO;b.SC=(a,c)=>this.getData(a,
c);b.N(h.tc.Vn,a=>this.HD(a));b.N(h.tc.wJ,a=>this.W2(a));b.N(h.tc.sv,a=>this.bq(a));b.N(h.tc.mF,a=>this.z3(a));b.N(h.tc.nF,a=>this.A3(a));b.N(h.tc.kJ,a=>this.Fa(a));b.N(h.tc.mt,a=>this.Fa(a));this.G.append(b);return b}Zva(){var b=new h.sheet.flat.iJ;b.SC=(a,c)=>this.getData(a,c);b.N(h.tc.Vn,a=>this.HD(a));b.N(h.tc.wJ,a=>this.W2(a));b.N(h.tc.sv,a=>this.bq(a));b.N(h.tc.mF,a=>this.z3(a));b.N(h.tc.nF,a=>this.A3(a));b.N(h.tc.kJ,a=>this.Fa(a));b.N(h.tc.mt,a=>this.Fa(a));this.G.append(b);return b}xza(){if(e.model.C.F.pk){if(this.la&&
this.la.type==h.sheet.dC.pO.TYPE)return this.la;null!=this.la&&this.la.Gg(!0);return this.Sva()}if(e.model.C.F.rc){if(this.la&&this.la.type==h.sheet.flat.iJ.TYPE)return this.la;null!=this.la&&this.la.Gg(!0);return this.Zva()}if(this.la&&this.la.type==h.sheet.qO.TYPE)return this.la;null!=this.la&&this.la.Gg(!0);return this.Vva()}kb(){if(!(1>e.model.Ga.uc.Oj())&&(this.Ze=this.xza(),null!=this.la)){this.Ze.slice=e.u.Ra.V().ua;this.la.kia=this.Gb.Ia.tI?100:1E3;if(this.I&&this.I.ri){this.la.clearData();
this.Zx=this.op=this.Mi=0;var b=this.I.xn,a=e.model.C.F.pk?0<this.I.yb.length?1:0:this.I.ml;if(a>=b+1){var c=0;var d=c+a;var g=c+(a-b)-1}else g=0,c=0<this.I.Yk?g+(b-a)+1:g,0==this.I.Db.length&&0==this.I.yb.length&&(c+=1),d=c+a;var k=g;this.Mi=Math.min(c,k);this.Zx=k;this.op=0;this.nf=d;this.ug=this.Vi?0:e.model.C.F.pk?this.I.cc.Ya&&this.I.Yl?this.I.ol.length+1:this.I.ol.length:0==this.I.rows.length?0:1;e.model.C.F.Zs||(this.Zx=1==a&&0==this.I.Yk?0:-1,this.nf=b);this.Vi&&(this.la.yL.lha=(m,n,p)=>this.saveData(m,
n,p),this.la.yL.Jha(e.model.C.F.EC));this.Vi&&"on"==e.model.C.F.Bf&&"top"==e.model.C.F.uH&&this.nf++;d=this.I.Bn;this.Vi&&"on"==e.model.C.F.Bf&&"bottom"==e.model.C.F.uH&&(d+=1);k=this.I.Cn;0==k&&(k=this.I.Ka.length-(this.I.Rb.Ya?1:0));this.la.Gha(d,k);this.la.mya(this.ug);this.la.Lca(this.nf);if(this.la instanceof h.sheet.qO&&(this.la.coords.tG=this.nf-this.I.xn-1,this.la.DR.rowIndex=this.la.coords.tG,this.la.DR.Xz(this.I.Db),this.la.fha.Xz(this.I.yb),this.la.hga.Xz(this.I.ob),e.model.C.F.Nm)){d=
this.I.yb.length;for(k=1;k<=d;k++)this.la.coords.vx(this.la.coords.ge-k,52);this.la.coords.vx(this.la.coords.tG,52)}this.la instanceof h.sheet.dC.pO&&(this.la.coords.tG=this.nf-this.I.xn-1,this.la.DR.rowIndex=this.la.coords.tG,this.la.DR.Xz(this.I.Db),this.la.fha.Xz(this.I.yb),this.la.hga.Xz(this.I.ob));(1<this.I.Ka.length||!this.I.Rb.Ya)&&e.model.C.F.Zs&&this.V$(g,this.ug,e.u.i.ja.Xa);(1<this.I.rows.length||!this.I.cc.Ya)&&e.model.C.F.Zs&&(e.model.C.F.pk?this.Tqa(c):this.V$(c,0,e.u.i.ja.La));this.lIa();
this.mIa();this.kIa();this.pIa();this.nIa();this.oIa();this.G.zg("rowcount",`${this.la.coords.il}`);this.G.zg("colcount",`${this.la.coords.vj}`)}else this.la.fs();this.Xc=e.model.va.Zm.Xc.Nc();this.la.resize(l.Mb.rM,l.Mb.gD);this.la.kb()}}fu(){e.v(this.la)||(this.la.rG(0),this.la.fC(0))}getData(b,a,c=!1){if(null==this.I||!this.I.ri||b<this.Zx||a<this.op)return null;var d=b-this.nf,g=a-this.ug;if((d>this.I.Bn-1||g>this.I.Cn-1)&&!(this.Vi&&"on"==e.model.C.F.Bf&&"bottom"==e.model.C.F.uH&&d==this.I.Bn&&
g<=this.I.Cn-1))return null;var k=this.I.Fn(d,!0),m=this.I.Nj(g,!0);if(null==k&&null==m)return null;var n=this.I.vi(d,g),p;if(this.Vi){var t=this.I.Nj(g,!0,!0);t instanceof Array&&(p=t[0][1])}if(this.Vi&&"on"==e.model.C.F.Bf&&"top"==e.model.C.F.uH&&(e.model.C.F.Zs&&1==b||!e.model.C.F.Zs&&0==b)||this.Vi&&"on"==e.model.C.F.Bf&&"bottom"==e.model.C.F.uH&&(e.model.C.F.Zs&&b==this.I.Bn+1||!e.model.C.F.Zs&&b==this.I.Bn))return this.Kza(k,m,n);if(null==k)return c=1==(e.model.C.F.pk?1:this.I.yb.length)&&0==
this.I.Yk?b-this.Zx:b-this.Zx-1,0==this.I.yb.length&&0==this.I.Db.length&&(c=b-this.Zx),g=this.I.RL(g),this.nza(m,n,g,c,a,p);t=this.I.aT(d);d=this.I.fT(d);g=this.I.RL(g);return null==m?e.model.C.F.pk?this.wra(k,n,t,b,a,d):this.wAa(k,n,t,b):this.dH(k,m,n,b,a,c,t,g,d,p)}dH(b,a,c,d,g,k=!1,m=NaN,n=NaN,p=-1,t){if(e.v(c)){var r=new h.X.ke;r.ci=!0;r.Bg=a;r.lh=b;r.Vl=this.I.ml>b.length;r.Vw=this.I.Yk>a.length;r.uD=0==a.length;r.ys=0==b.length;return r}var w=c.Yh(c.A,c.aa).clone();c.aa==e.u.i.da.Ji?w.rd="":
e.u.i.da.Rf(c.aa)?w.Rf=!0:e.u.i.da.de(c.aa)&&(w.de=!0,w.rd="%");r=new h.X.ke;r.ci=!0;r.Bg=a;r.measure=c;r.hierarchy=this.Gb.ha.O.Ck(c.A);r.lh=b;e.model.C.F.pk?0==b.length?r.level=0:(m=this.U0(b),-1<m&&(r.level=m)):e.model.C.F.rc||(r.level=m);t=this.I.Ha(b,a,c,t);r.value=t;this.Vi?(w=c.type!=e.u.i.Pa.xc?c.Yh(c.A,c.aa).clone():c.Yh(c.A,c.aa,!0).clone(),c.type==e.u.i.Pa.xc?(m=this.I.aH(a).ya(t),null!=m&&(r.bc=m,r.label=m.caption)):c.type==e.u.i.Pa.jb?"string"===typeof t?r.label=t:(r.label=u.Yb.format(t,
w),r.numeric=!0):c.type==e.u.i.Pa.Sa?null===t?r.label=e.model.B.j.IW:(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.Ep),r.label=e.P.Bx(t,m,e.model.C.F.Mj)):c.type==e.u.i.Pa.dc?isNaN(t)||(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.Wo),r.label=e.P.Cx(t,m)):c.type!=e.u.i.Pa.Jc||isNaN(t)||(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.rk),r.label=e.P.ON(t,m,e.model.C.F.Mj))):(m=(this.Gb.Ia.ga.Da==e.u.i.qa.Tc||this.Gb.Ia.ga.Da==e.u.i.qa.le)&&e.model.C.F.vq&&c.aa==e.u.i.da.NONE,m||
c.type!=e.u.i.Pa.jb&&c.type!=e.u.i.Pa.xc)?m||c.type!=e.u.i.Pa.Sa?m||c.type!=e.u.i.Pa.dc?m||c.type!=e.u.i.Pa.Jc?(r.label=m?this.I.Np(b,a,c):e.u.TX.V().Ha(t),r.numeric=m&&e.u.i.Pa.jb===c.type):isNaN(r.value)||(e.u.i.da.AE(c.aa)?(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.rk),r.label=e.P.ON(t,m,e.model.C.F.Mj)):r.label=u.Yb.format(t,w)):isNaN(t)||(e.u.i.da.Zo(c.aa)?(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.Wo),r.label=e.P.Cx(t,m)):r.label=u.Yb.format(t,w)):isNaN(t)||(e.u.i.da.AE(c.aa)?
(m=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.Ep),r.label=e.P.Bx(r.value,m,e.model.C.F.Mj)):r.label=u.Yb.format(t,w)):"string"===typeof t?r.label=t:(r.label=u.Yb.format(t,w),r.numeric=!0);r.mN=this.I.Du(b,a);m=!1;var y=this.I.ai(b,void 0,c);if(this.I.ml>b.length||y||this.I.Yk>a.length){m=!0;r.Vl=this.I.ml>b.length||y;r.Vw=this.I.Yk>a.length;if("on"!=e.model.C.F.Cf&&!e.model.C.F.pk){var A=this.I.Dz;if(0!=b.length&&(this.I.bi(b)||this.I.bi(b,c)||y)&&("off"==e.model.C.F.Cf||"columns"==e.model.C.F.Cf)||
0!=a.length&&(this.I.zk(a)||this.I.zk(a,c))&&("off"==e.model.C.F.Cf||"rows"==e.model.C.F.Cf))return null;if(0==A&&1<this.I.Ba.length)if(this.I.cc.Ya&&("off"==e.model.C.F.Cf||"columns"==e.model.C.F.Cf)){if(d<("on"==e.model.C.F.Bf||"columns"==e.model.C.F.Bf?this.nf+this.I.Bn-this.I.Ba.length:this.nf+this.I.Bn)&&this.I.bi(b,c))return null}else if(this.I.Rb.Ya&&("off"==e.model.C.F.Cf||"rows"==e.model.C.F.Cf)&&g<("on"==e.model.C.F.Bf||"rows"==e.model.C.F.Bf?this.ug+this.I.Cn-this.I.Ba.length:this.ug+this.I.Cn)&&
this.I.zk(a,c))return null}r.ys=0==b.length;r.uD=0==a.length;r.ET=r.Vl&&2==p&&!r.ys;if(e.model.C.F.pk&&r.sz&&"on"!=e.model.C.F.Bf&&("off"==e.model.C.F.Bf||"rows"==e.model.C.F.Bf&&r.ys||"columns"==e.model.C.F.Bf&&r.uD))return null}this.I.W1(d)&&(m=!0,r.Vl=!0);this.I.H1(g)&&(m=!0,r.Vw=!0);r.measure&&(r.measure.vz||r.measure.uz)&&!isNaN(r.value)&&(r.label="",r.vz=r.measure.vz,r.uz=r.measure.uz);if(k)return r;""!=w.textAlign&&r.Qy({"text-align":w.textAlign});if(0<this.Xc.length&&r.measure)for(k=0;k<this.Xc.length;k++)(p=
this.Xc[k],p.Ss!=d&&-1!=p.Ss||p.hu!=g&&-1!=p.hu||!(p.measure==c.A&&""===p.aa||""==p.measure&&r.numeric||p.measure=="[Measures].["+c.A+"]"||p.measure==c.A&&p.aa===r.measure.aa)||p.Ak!==m&&void 0!==p.Ak||""!=p.hierarchy&&!this.dua(b,a,p.hierarchy,p.bc))||((this.Gb.Ia.ga.Da==e.u.i.qa.API?(e.v(p.TG)&&(p.TG=u.nt.hH(p.Xd,this.Gb.ha.O.Ba)),y=p.TG.slice(0)):y=p.Xd.slice(0),p.Y1)?this.Gb.Ia.tI&&(w=this.I.dD(b,a,c))&&(-1<p.ve.toLowerCase().indexOf(e.u.i.nc.OP)?t=w.Hp:-1<p.ve.toLowerCase().indexOf(e.u.i.nc.PP)&&
(t=100*w.Os),w=this.I.gw(b,a,y,t),null!=w&&r.sba(w)):(w=this.I.gw(b,a,y,t),e.v(p.format)||!0!==w&&"truestyle"!==w||(r.Qy(p.format.Dia()),r.Xc.push(p.id)),r.BJa=!0));"after"===e.model.C.F.$K&&this.I.yk(a,void 0,c)&&-1!==n&&(r.label="");return r}Kza(b,a,c){if(e.v(c))return null;var d=new h.X.ke;d.ci=!0;d.Bg=a;d.measure=c;d.hierarchy=this.Gb.ha.O.Ck(c.A);d.lh=b;if(c.type==e.u.i.Pa.jb||c.type==e.u.i.Pa.dc||c.type==e.u.i.Pa.Jc){var g=c.Yh(c.A,c.aa).clone();if(c.aa==e.u.i.da.Ji)g.rd="";else if(e.u.i.da.Rf(c.aa))g.Rf=
!0;else if(e.u.i.da.de(c.aa)||c.Na&&-1<c.ve.indexOf("percent"))g.de=!0,g.rd="%";d.value=this.I.Ha(null,null,c);if(c.type==e.u.i.Pa.jb)d.label=u.Yb.format(d.value,g),d.numeric=!0;else if(c.type==e.u.i.Pa.dc)isNaN(d.value)||(d.label=e.u.i.da.Zo(c.aa)?e.P.Cx(d.value,e.model.C.F.Wo):u.Yb.format(d.value,g));else if(c.type==e.u.i.Pa.Jc&&!isNaN(d.value)){var k=this.Gb.ha.ga.mapping.Ha(c.A,"format",e.model.C.F.rk);d.label=e.u.i.da.AE(c.aa)?e.P.ON(d.value,k,e.model.C.F.Mj):u.Yb.format(d.value,g)}d.ys=!0;d.Vl=
!0;""!=g.textAlign&&d.Qy({"text-align":g.textAlign});if(0<this.Xc.length)for(g=0;g<this.Xc.length;g++){k=this.Xc[g];let p;this.Gb.Ia.ga.Da==e.u.i.qa.API?(e.v(k.TG)&&(k.TG=u.nt.hH(k.Xd,this.Gb.ha.O.Ba)),p=k.TG.slice(0)):p=k.Xd.slice(0);if(k.measure==c.A&&k.Y1&&this.Gb.Ia.tI){var m=this.I.dD(b,a,c);if(m){var n;-1<k.ve.toLowerCase().indexOf(e.u.i.nc.OP)?n=m.Hp:-1<k.ve.toLowerCase().indexOf(e.u.i.nc.PP)&&(n=100*m.Os);k=this.I.gw(b,a,p,n);null!=k&&d.sba(k)}}}}return d}dua(b,a,c,d){var g=this.I.Ka.indexOf(c);
if(-1<g){if(g<a.length)return b=this.I.Ka.getItem(c),a[g]&&b.ya(a[g]).NG(d)}else if(a=this.I.rows.indexOf(c),-1<a&&a<b.length)return c=this.I.rows.getItem(c),b[a]&&c.ya(b[a]).NG(d);return!1}nza(b,a,c,d,g,k){return this.Vi?this.vra(b,a,k):this.ura(b,a,c,d,g)}$P(b){if(b.Oh)return!0;if(1<b.children.length)return!1;b=b.hierarchy.ya(b.children[0]);return b.caption!==e.model.B.j.zl&&b.caption!==e.model.B.j.Qn?!1:this.$P(b)}ura(b,a,c,d,g){if(0==b.length){if(this.I.cc.Ya&&d==this.I.xn-1)return this.iH(a,
e.u.i.ja.Xa);b=this.I.Cn-this.I.Ba.length+1;if(this.I.Rb.Ya&&d==this.I.xn-1&&g>=b&&1==this.I.Ba.length)return this.iH(a,e.u.i.ja.Xa);b="on"==e.model.C.F.Bf||"rows"==e.model.C.F.Bf?this.ug+this.I.Cn-this.I.Ba.length:this.ug+this.I.Cn;if(this.I.Rb.Ya&&0==d&&g>=b&&1<this.I.xn){if(g==b){var k=this.VC();k.label=e.model.B.j.Jma;return k}return this.VL()}return this.I.Rb.Ya&&0==d&&1<this.I.xn?this.iH(a,e.u.i.ja.Xa):this.I.Rb.Ya&&d==this.I.xn-1?g>=b||1==this.I.Rb.Oa.length?this.iH(a,e.u.i.ja.Xa):this.VC():
this.I.Rb.Ya&&0<d&&g<=b?this.VC():0<=d?this.VL():null}var m=this.I.Rb.Ya&&(b.length>this.I.ie||0==this.I.ie)?b.length:b.length-1,n=this.I.Ka.ea(m),p,t=this.I.M1(g-this.ug);void 0!==t&&-1<d&&(m=p=d,this.I.Rb.Ya&&m>=this.I.ie&&1<this.I.Ba.length&&(p--,m++),p<t[0]&&(t=void 0));this.I.Rb.Ya&&m>this.I.ie&&(1==this.I.Ba.length?m--:c++);if(c>d&&void 0===t||0>d)return 0<=d?this.VL():null;k=new h.X.ke;k.Nh=!0;k.measure=this.I.Rb.Ya&&(1<this.I.Ba.length||e.model.C.F.iI)?a:void 0;var r=!1,w=this.I.Dz;if(void 0!==
t)if(e.v(b[p]))if(d==w-1)k.label=void 0!==a?a.caption:e.model.B.j.hX,k.CM=!0;else return this.VL();else{var y=b[p];n=this.I.Db.ea(p)}else y=b[b.length-1];y=n.ya(y);k.mN=this.I.Du([],b);if(this.I.Rb.Ya&&1<this.I.Ba.length&&d==w-1||this.I.Rb.Ya&&e.model.C.F.iI&&d==w-1&&1!=w||this.I.Rb.Ya&&e.model.C.F.iI&&d==w&&1==w&&2>this.I.Ba.length)k.label=a.label,k.CM=!0,y=null;else{if(this.I.Rb.Ya&&0<a.index&&d<w)return this.VL();c<d?m==d?(r=b.length-1!=this.I.Yk-1&&!y.Zb,k.label=y.caption):(k.label=this.I.xn-
1==d&&e.model.C.F.iI?void 0!==a?a.caption:e.model.B.j.hX:"",y=null):(r=b.length-1!=this.I.Yk-1&&!y.Zb,k.label=y.caption,this.I.Rb.Ya&&d<w&&1<this.I.Ba.length&&(k.measure=a=void 0));void 0!==t&&(t[t.length-1]>=p&&(r=!0),e.v(b[p])&&(r=!1))}d=null==y?!1:this.I.yk(b,y,a);!y||this.$P(y)||y.Zb||y.Oh||!y.hierarchy.mg||y.level.Nu||(r||e.model.C.F.qE?d?k.Cg=!0:k.eh=!0:d?k.Of=!0:k.collapsed=!0);r&&!d&&(this.I.zk(b,a)||void 0!==t&&-1<t.indexOf(p)?k.Of=!0:k.collapsed=!0);if("on"==e.model.C.F.Bj||"columns"==e.model.C.F.Bj){k.Kn=
!0;if(e.ia(k.label)||e.v(a))k.Kn=!1;"off"!=e.model.C.F.Cf&&"rows"!=e.model.C.F.Cf||!k.Of||(k.Kn=!1);k.Kn&&this.I.Hl&&this.I.Hl.toString()==b.toString()&&this.I.Zq==a&&(this.I.Ih==e.u.i.za.Kc?k.So=!0:this.I.Ih==e.u.i.za.ic&&(k.Ro=!0))}k.Vw=this.I.Yk>b.length||k.eh||k.Cg||!e.model.C.F.qE&&(k.Of||k.collapsed);k.Vw&&this.I.x4(g);"after"!==e.model.C.F.$K||-1!==c||k.CM||(k.Kn=!1,k.label="",k.Of=!1,k.collapsed=!1,k.Cg=!1,k.eh=!1);k.lf=void 0!==t?b.slice(0,p+1):b;k.hierarchy=n;k.bc=y;return k}vra(b,a,c){const d=
this.I.aH(b);if(void 0===d){if(e.v(a))return null;b=new h.X.ke;b.Nh=!0;b.label=a.caption;b.measure=a;this.raa(b,a);return b}let g;void 0!==c&&(g=d.ta.ea(c));const k=new h.X.ke;k.Nh=!0;k.el=!0;k.rT=d.sS;k.gb=d.filter.wh;k.label=void 0===g?d.label:d.label+"."+g.caption;k.lf=b;k.hierarchy=d;k.level=c;k.bc=null;k.measure=a;k.draggable=!0;this.raa(k,a);return k}raa(b,a){if("on"===e.model.C.F.Bj||"columns"===e.model.C.F.Bj){b.Kn=!0;const c=this.I.MS(a.A);!e.v(c)&&c.measure&&c.measure.A==a.A&&(c.sort==e.u.i.za.Kc?
b.So=!0:c.sort==e.u.i.za.ic&&(b.Ro=!0),1<this.I.sh.length&&(b.W4=this.I.sh.indexOf(c)))}}VC(){var b=new h.X.ke;b.Nh=!0;return b}VL(){var b=this.VC();b.nb=!0;return b}iH(b,a){var c=new h.X.ke;c.label=void 0===b?e.model.B.j.gX:b.Op;c.CM=void 0!==b;void 0!==b&&b.p1&&(c.label=b.label);if(a==e.u.i.ja.Xa){c.Nh=!0;c.Vw=c.uD=!0;if("on"===e.model.C.F.Bj||"columns"===e.model.C.F.Bj)c.Kn=!0,!this.I.Hl||""!==this.I.Hl.toString()||void 0!==b&&this.I.Zq!==b||(this.I.Ih===e.u.i.za.Kc?c.So=!0:this.I.Ih===e.u.i.za.ic&&
(c.Ro=!0));this.I.Rb.Ya?c.measure=b:c.label=e.model.B.j.gX}else{c.zi=!0;c.Vl=c.ys=!0;if("on"===e.model.C.F.Bj||"rows"===e.model.C.F.Bj)c.Kn=!0,!this.I.yj||""!==this.I.yj.toString()||void 0!==b&&this.I.Lo!==b||(this.I.Vj===e.u.i.za.Kc?c.So=!0:this.I.Vj===e.u.i.za.ic&&(c.Ro=!0));this.I.cc.Ya?c.measure=b:c.label=e.model.B.j.gX;c.level=0}c.lf=[];return c}wAa(b,a,c,d){if(0==b.length)return this.iH(a,e.u.i.ja.La);var g=this.I.cc.Ya&&b.length>this.I.ie?b.length:b.length-1,k=b[b.length-1],m=this.I.rows.ea(g),
n=new h.X.ke;n.zi=!0;var p=!1;k=m.ya(k);n.level=c;void 0!==a&&this.I.cc.Ya&&this.I.Yl&&g<=this.I.ie?(n.label=a.label,k=null):k&&(p=this.mC(k),n.sT=""!=p,n.label=k.caption+p,p=b.length!=this.I.ml&&!k.Zb&&!k.Sg);c=null==k?!1:this.I.ai(b,k,a);!k||k.Zb||!k.hierarchy.mg||k.Oh||this.$P(k)||(e.model.C.F.qE?c?n.Cg=!0:n.eh=!0:c?n.Of=!0:n.collapsed=!0);p&&!c&&(this.I.bi(b,a)?n.Of=!0:n.collapsed=!0);if("on"==e.model.C.F.Bj||"rows"==e.model.C.F.Bj)if(!(this.I.cc.Ya&&1<this.I.Ba.length&&this.I.ie>=b.length)||
a&&n.label==a.caption)n.Kn=!0,this.I.yj&&this.I.yj.toString()==b.toString()&&this.I.Lo==a&&(this.I.Vj==e.u.i.za.Kc?n.So=!0:this.I.Vj==e.u.i.za.ic&&(n.Ro=!0));n.Vl=this.I.ml>b.length||n.Cg||n.eh||!e.model.C.F.qE&&(n.Of||n.collapsed);n.lf=b;n.hierarchy=m;n.bc=k;n.measure=this.I.cc.Ya&&1<this.I.Ba.length?a:void 0;n.Vl&&this.I.JV(d);return n}wra(b,a,c,d,g,k){if(0===b.length){if(0===g)return this.iH(a,e.u.i.ja.La);var m=new h.X.ke;m.zi=!0;m.Vl=m.ys=!0;m.nb=!0;m.level=c;return m}var n=g;m=this.I.ol[g];
for(var p,t,r=0;r<this.I.yb.length;r++){var w=this.I.yb.ea(r);p=w.uu(m);if(null!=p){var y=w;n=r;break}}r=null==b[n]?0:b[n];m=new h.X.ke;m.zi=!0;m.Vl=this.I.ml>b.length;m.ET=m.Vl&&2==k;p=!1;c>g&&(p=!0);c>g&&2==k&&(p=!0);c+1<g&&2==k&&(p=!0);m.level=Math.min(b.length-1,g);var A=b.slice(0);w=!1;if(g==this.I.ol.length)m.label=a.label,w=!0;else{var C=!1;A=void 0===a?0:a.index;var B=y.ya(r);t=this.I.ol.indexOf(B.level.A)-g;var I=null!=B&&(B.Sg||2!=k);if(0>t)if(B.Zb)w=!0;else return m;else if(0<t)for(r=0;r<
t;r++)B=B.parent;B&&(r=this.I.ol.indexOf(B.level.A),-1<r&&(m.level=r));m.bc=B;if(2==k)B&&c==g&&(m.label=this.I.cc.Ya&&1<this.I.Ba.length?B.caption+" "+a.label:B.caption+" "+e.model.B.j.hX,w=!0);else{if(0>t)return e.ia(m.label)&&(m.nb=!0),r=this.U0(b),-1<r&&(m.level=r),m;0<A&&(B=null);B&&0!=B.ordinal&&(r=this.mC(B),m.sT=""!=r,m.label=B.caption+r);C=1==k&&n<this.I.yb.length-1&&0>=A&&!B.Sg}m.mN=this.I.Du(b,[]);A=b.slice(0,n+1);if(I&&B){A[n]=B.ordinal;var L=this.I.ai(A,B,a);B.Zb||!B.hierarchy.mg||B.Oh||
2==k&&(!B.Sg||L)||this.$P(B)||(e.model.C.F.qE?L?m.Cg=!0:(m.eh=!0,m.Vl=!0):L?m.Of=!0:(m.collapsed=!0,m.Vl=!0))}C&&!L&&(this.I.bi(A,a)?m.Of=!0:m.collapsed=!0)}if(p)m.label="",m.Ro=m.So=m.collapsed=m.Of=m.Cg=m.eh=!1;else if(m.lf=A,m.hierarchy=y,m.measure=this.I.cc.Ya&&1<this.I.Ba.length?a:void 0,"on"==e.model.C.F.Bj||"rows"==e.model.C.F.Bj)m.Kn=!0,!this.I.yj||this.I.yj.toString()!=A.toString()||this.I.Lo!=a||m.Of||m.Cg||this.I.cc.Ya&&1<this.I.Ba.length&&(!(this.I.cc.Ya&&1<this.I.Ba.length)||null!=m.bc&&
!m.ET)||(this.I.Vj==e.u.i.za.Kc?m.So=!0:this.I.Vj==e.u.i.za.ic&&(m.Ro=!0));w&&(r=this.U0(b),-1<r&&(m.level=r));e.ia(m.label)&&(m.nb=!0,m.QBa=2==k&&B&&g-1>c?!1:!0);m.Vl&&this.I.JV(d);return m}U0(b){return(b=this.I.bT(b).ya(b[b.length-1]))?this.I.ol.indexOf(b.level.A):-1}mC(b){if(this.Gb.Ia.ga.Da!==e.u.i.qa.Tc&&this.Gb.Ia.ga.Da!==e.u.i.qa.le||!e.model.C.F.jI)return"";var a=this.Gb.ha.ua.Rj[b.level.A];if(void 0===a||0===a.length)return"";for(var c=[],d=0;d<a.length;d++){var g=b.level.Ue.getItem(a[d]),
k=b.tAa(a[d]);e.ia(k)||null==g||c.push('<br/><span class="fm-member-property-label">'+g.caption+':</span> <span class="fm-member-property-value">'+k+"</span>")}return 0<c.length?c.join("")+"<br/>":""}HD(b){e.v(b.cell)||e.model.C.F.readOnly||!b.cell.Nh&&!b.cell.zi||(b.cell.QB==h.X.Aq.J6?this.Wy(b.cell):b.cell.QB==h.X.Aq.YO&&b.cell.bCa||(e.v(b.cell.bc)||b.cell.QB==h.X.Aq.JJ?b.cell.QB==h.X.Aq.JJ&&(b.cell.Nh&&this.HN(b.cell,null,!u.hj.Ho&&b.gq.ctrlKey||u.hj.Ho&&b.gq.metaKey),b.cell.zi&&this.U4(b.cell)):
e.model.C.F.qE||b.cell.bc.Oh?this.qu(b.cell):this.Wy(b.cell)))}bq(b){e.model.C.F.yx&&b.hierarchy.HM&&this.Fa(new l.NO(b.hierarchy))}Wy(b){if(b.eh||b.Cg||b.Of||b.collapsed){var a=b.lf,c=e.model.C.F.pk?void 0:b.measure,d=b.bc;if(null!=d&&!d.Zb&&!d.Oh){if(b.zi){b=e.u.i.ja.La;var g=this.I.ai(a,d,c)}else b=e.u.i.ja.Xa,g=this.I.yk(a,d,c);g?this.I.Ip(a,d,b,c):this.I.Mf(a,d,b,c)}}}qu(b){if(!e.v(this.la)&&(b.Of||b.collapsed)){var a=b.lf,c=b.Nh?e.u.i.ja.Xa:e.u.i.ja.La,d=e.model.C.F.pk&&c==e.u.i.ja.La?void 0:
b.measure;b.Of?(this.la.clearData(),this.I.collapse(a,c,d)):b.collapsed&&(this.la.clearData(),this.I.expand(a,c,d));b.Nh?this.la.rG(b.qc+1):this.la.fC(b.lb+1)}}W2(b){b.Oea?this.DJa(b.cell):(e.model.C.F.bd&&!e.model.C.F.rc&&this.Gb.ha.ga&&this.Gb.ha.ga.KT&&this.bd(b.cell),this.Swa(b.cell))}bd(b){b.ci&&void 0!==b.measure&&(b=new l.O6({A:b.measure.A,aa:b.measure.aa},b.Bg,b.lh,b.Qa()),this.Fa(b))}DJa(b){var a=b.Qa();this.zV(a,b.qc,b.lb);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.e6,a))}Swa(b){var a=
b.Qa();this.zV(a,b.qc,b.lb);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.jO,a))}zV(b,a,c){b.x=this.la.coords.Ul(a,this.la.ac);b.y=this.la.coords.Eo(c,this.la.ac);b.width=this.la.coords.vh(a);b.height=this.la.coords.Vd(c)}U4(b,a=""){var c=b.lf;b=b.measure;void 0===b&&(b=this.I.Ba[0]);this.I.yj&&this.I.yj.toString()==c.toString()&&this.I.Lo==b?this.I.Vj=this.I.Vj==e.u.i.za.Kc?e.u.i.za.ic:e.u.i.za.Kc:(this.I.Vj=e.u.i.za.Kc,this.I.yj=c,this.I.Lo=b);""!=a&&(this.I.Vj=a);this.I.sort();this.la.rG(0);this.kb()}HN(b,
a="",c=!1){e.model.C.F.rc?(a=this.I.MS(b.measure.A),e.v(a)?(b={measure:b.measure,sort:e.u.i.za.$S("",b.measure.type!=e.u.i.Pa.xc,!0)},!e.v(this.I.sh)&&c?this.I.sh.push(b):this.I.sh=[b]):(a.sort=e.u.i.za.$S(a.sort,b.measure.type!=e.u.i.Pa.xc,!0),a.sort==e.u.i.za.fd?this.I.sh.splice(this.I.sh.indexOf(a),1):c||(this.I.sh=[a]))):(this.I.Hl=b.lf,this.I.Zq=e.v(b.measure)?this.I.Ba[0]:b.measure,this.I.Ih=e.ia(a)?e.u.i.za.$S(this.I.Ih):a);this.I.sort();this.la.fC(0);this.kb()}uua(){this.I.Ih=e.u.i.za.fd;
this.I.Hl=null;this.I.Zq=void 0;this.I.Rb.gC();this.I.sort();this.la.fC(0);this.kb()}zua(){this.I.Vj=e.u.i.za.fd;this.I.yj=null;this.I.Lo=void 0;this.I.cc.gC();this.I.sort();this.la.rG(0);this.kb()}fia(b,a){var c=this.Gb.ha.ua.Rj;c||(c={});c[b.levelName]||(c[b.levelName]=[]);var d=c[b.levelName].indexOf(b.propertyName);a?-1==d&&(c[b.levelName].push(b.propertyName),this.Gb.ha.ua.Rj=c):-1<d&&c[b.levelName].splice(d,1);this.la.clearData();this.la.fC(0);this.kb()}saveData(b,a,c){b=this.getData(b,a);b.label!=
c&&b.value!=c&&(this.I.save(b.lh,b.Bg,b.hierarchy,c),this.Vi&&this.kb())}V$(b,a,c){for(var d=c==e.u.i.ja.Xa?this.I.Db:this.I.yb,g,k=0,m=0;m<d.length;m++){var n=d.ea(m);n.Se||(g=new h.X.ke,g.label=n.label,g.el=!0,g.draggable=!0,g.rT=!0,g.gb=n.filter.wh,g.level=k,g.hierarchy=n,c==e.u.i.ja.Xa?(g.isFrozen=!this.Vi,this.la.I.AV(b,a+m,g)):(g.zi=!0,this.la.I.AV(b+k,a,g),k++))}}Tqa(b){for(var a=this.I.yb,c,d=0,g=this.I.cc.Ya&&1<this.I.Ba.length?this.ug-1:this.ug,k=0;k<a.length;k++){var m=a.ea(k);c=new h.X.ke;
c.label=m.label;c.el=!0;c.draggable=!0;c.rT=!0;c.gb=m.filter.wh;c.hierarchy=m;this.la.I.AV(b,0+d,c);d++;if(2<m.ta.length)for(var n=null==m.oc?2:m.oc.wb+1;n<m.ta.length;n++){var p=m.ta.ea(n);-1!=this.I.ol.indexOf(p.A)&&(c=new h.X.ke,c.label=p.caption,c.zi=!0,c.rT=!0,this.la.I.AV(b,0+d,c),d++);if(d>=g)break}if(d>=g)break}}get Vi(){return e.model.C.F.rc}get la(){return this.Ze}tk(b,a,c=null,d=null){b==e.model.Ac.ej.LA&&e.model.Ac.Z6.pg(this,a,d);b==e.model.Ac.ej.vv&&e.model.Ac.Y6.pg(this,a,this.la.coords.Kl,
this.la.coords.Dp,d);b==e.model.Ac.ej.Sh&&e.model.Ac.X6.pg(this,a,this.la.coords.Kl,this.la.coords.Dp,c);b==e.model.Ac.ej.JSON&&e.model.Ac.a7.pg(this,a,this.la.coords.Kl,this.la.coords.Dp,c);b==e.model.Ac.ej.TA&&e.model.Ac.Xe.pg(this,a,this.la.coords.Kl,this.la.coords.Dp,d);b==e.model.Ac.ej.TE&&(a.hA=a.hA&&(this.Gb.Ia.ga.Da==e.u.i.qa.Tc||this.Gb.Ia.ga.Da==e.u.i.qa.le)&&e.model.C.F.vq,e.model.Ac.c7.pg(this,a,this.la.coords.Kl,this.la.coords.Dp))}print(b=""){e.model.Rs.jF.V().pg(this,b)}kg(b,a){b=this.VS(b,
a);a=b.Qa();this.zV(a,b.qc,b.lb);return a}VS(b,a){let c=null;this.la&&(c=this.la.kg(b,a,!0));if(null==c){c=new h.X.ke;c.lb=b;c.qc=a;const d=this.getData(b,a,!0);c.value=d?d.value:NaN;isNaN(c.value)||(c.label=u.Yb.format(c.value))}-1==c.lb&&(c.lb=b);-1==c.qc&&(c.qc=a);return c}pH(){if(e.v(this.la))return null;var b=this.la.tr.map(a=>a.Qa());if(0==b.length)return null;if(1<b.length)return b;b=b[0];this.zV(b,b.columnIndex,b.rowIndex);return b}$z(b,a){e.v(this.la)||this.la.select(b,a,b,a)}$D(){e.v(this.la)||
this.la.os()}get qM(){return this.I.ri?this.I.Bn+this.nf:0}get pM(){return this.I.ri?this.I.Cn+this.ug:0}z3(b){this.r$(b.data.qc,b.data.width)}A3(b){this.s$(b.data.lb,b.data.height)}r$(b,a){if(b<this.ug)0<a?e.model.size.vd.Lg[b]=a:delete e.model.size.vd.Lg[b];else{var c=this.I.Nj(b-this.ug,!0);null!=c&&(b=this.I.LS(b-this.ug),this.I.Rb.Ya&&c.push(b),0<a?e.model.size.vd.Lf[c.join(",")]=a:delete e.model.size.vd.Lf[c.join(",")])}}lIa(){var b=e.model.size.vd.Zk;e.model.size.vd.Zk={};var a=[],c;for(c in b)isNaN(b[c])||
(a[parseInt(c)]=b[c]);for(var d in a)this.la.l4(parseInt(d),a[d]),this.r$(parseInt(d),a[d])}mIa(){var b=e.model.size.vd.Lg,a=[],c;for(c in b)isNaN(b[c])||(a[c]=b[c]);for(var d in a)b=parseInt(d),b<this.ug&&this.la.l4(b,a[b])}kIa(){var b=e.model.size.vd.Lf,a=[],c;for(c in b)if(!isNaN(b[c])){var d=this.I.QC(""==c?[]:c.split(","));-1!=d&&(d+=this.ug,a[d]=b[c])}for(var g in a)this.la.l4(parseInt(g),a[g])}pIa(){var b=e.model.size.vd.Uj;e.model.size.vd.Uj={};var a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)]=
b[c]);for(var d in a)this.la.n4(parseInt(d),a[d]),this.s$(parseInt(d),a[d])}nIa(){e.model.size.vd.uE=this.Mi;var b=e.model.size.vd.Xg,a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)+this.Mi]=b[c]);for(var d in a)parseInt(d)<this.nf&&this.la.n4(parseInt(d),a[d])}oIa(){var b=e.model.size.vd.Vf,a=[],c;for(c in b)if(!isNaN(b[c])){var d=this.I.aD(""==c?[]:c.split(","));-1!=d&&(d+=this.nf,a[d]=b[c])}for(var g in a)this.la.n4(parseInt(g),a[g])}s$(b,a){e.model.size.vd.uE=this.Mi;if(b<this.Mi)0<a?e.model.size.vd.kh[b]=
a:delete e.model.size.vd.kh[b];else if(b<this.nf)0<a?e.model.size.vd.Xg[b-this.Mi]=a:delete e.model.size.vd.Xg[b-this.Mi];else{var c=this.I.Fn(b-this.nf,!0);null!=c&&(b=this.I.eT(b-this.nf),this.I.cc.Ya&&c.push(b),0<a?e.model.size.vd.Vf[c.join(",")]=a:delete e.model.size.vd.Vf[c.join(",")])}}YEa(){this.la&&(this.la.sr(0),this.la.Us(0),this.la.os())}}h.Kma=f})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.Vn="mclick";f.wJ="singledoubleclick";f.L6="dthclosed";f.sv="filter_click";f.pJ="live_filter_change";f.mF="resize_c";f.nF="resize_r";f.ipa="request_data_doubleclick";f.I6="dragndrop_remove";f.H6="dragndrop_move";f.mt="filter_keyboard_select";f.kJ="grid_keyboard_select";h.tc=f;class b extends v.fa{constructor(k,m=null,n=null){super(f.Vn);this.cell=k;this.element=m;this.gq=n}}h.F7=b;class a extends v.fa{constructor(k,m,n=null){super(f.wJ);this.cell=k;
this.Oea=m;this.element=n}}h.H7=a;class c extends v.fa{constructor(k,m,n=null){super(f.sv);this.hierarchy=k;this.cell=m;this.element=n}}h.LO=c;class d extends v.fa{constructor(k,m,n=null){super(f.mt);this.lb=k;this.qc=m;this.i4=n}}h.MO=d;class g extends v.fa{constructor(k,m){super(f.pJ);this.Pg=k;this.value=m}}h.lna=g})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{static validate(b){return b==f.uA||b==f.nv||b==f.Bh?b:f.uA}}f.uA="compact";f.nv="classic";f.Bh="flat";h.te=f})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.be.ay{constructor(){if(null!=h.ze)throw Error("Singleton");super(l.Mb.Fb.G);this.$("fm-alert-view");this.Ik("alertdialog");this.He()}static V(){null==h.ze&&(h.ze=new h);return h.ze}static dispose(){h.ze=null}He(){this.OD.$("fm-overlay-alert");this.XJ=[];var f=new x.Ma("div","fm-content");this.W(f);this.Zr=new x.Uc;this.Zr.$("fm-popup-title");f.W(this.Zr);this.Yr=new x.Uc;f.W(this.Yr);this.Rt=new x.Ma("div","fm-ui-btns-row");f.W(this.Rt);this.vB=new x.Ma("div",
"fm-alert-icon");this.vB.vn();this.W(this.vB);e.vk.addEventListener("keydown",b=>this.cq(b))}Ns(f="",b="",a=e.xb.vl,c=null,d=null,g=!1){this.clear();this.Tha(b);this.gI(f);this.kJa(a);this.XIa(c,d);l.Mb.Fb.W(this);this.T1=g;this.open();this.aya();this.zp()}aya(){let f=this.Rt.G.find(".fm-ui-btn-dark");null==f&&(f=this.Rt.G.find(".fm-ui-btn"));f&&f.focus({preventScroll:!0})}clear(){this.Tha("");for(this.gI("");0<this.XJ.length;)this.XJ.pop().Gg();this.G.Wa("fm-alert",!1);this.G.Wa("fm-confirmation",
!1);this.G.Wa("fm-error",!1);this.G.Wa("fm-info",!1);this.G.Wa("fm-question",!1)}Tha(f){this.Zr.KV(!1);this.Zr.cb(f)}gI(f){this.Yr.cb(f,!0)}XIa(f,b){null==f&&(f=[e.model.B.j.uW]);f.reverse();null!=b&&b.reverse();this.zY=b;for(var a=0;a<f.length;a++)b=new x.Kg,b.cb(f[a]),b.N(x.Md.mf,c=>this.Mta(c)),this.XJ.push(b),this.isPrimary(f[a])&&b.$("fm-ui-btn-dark"),this.isPrimary(f[a])&&(u.hj.Ho||u.hj.vD)?this.Rt.W(b):this.isPrimary(f[a])?this.Rt.G.prepend(b.G):this.Rt.W(b)}isPrimary(f){switch(f){case e.model.B.j.uW:case e.model.B.j.V5:case e.model.B.j.T5:case e.model.B.j.IE:return!0}return!1}Mta(f){f=
f.target;for(var b=-1,a=0;a<this.XJ.length;a++)if(this.XJ[a]==f){b=a;break}if(!(0>b)&&(this.close(),null!=this.zY&&null!=this.zY[b]))this.zY[b]()}kJa(f){this.vB.G.ox();f==e.xb.vl?this.vB.G.W(this.bwa()):f==e.xb.Ym?this.vB.G.W(this.cwa()):f==e.xb.Aa?this.vB.G.W(this.dwa()):f==e.xb.RO&&this.vB.G.W(this.ewa())}cwa(){var f=new x.Ea("span","fm-circle");f.W(new x.Ea("span","fm-ui-icon fm-icon-notif_confirm"));return f}ewa(){var f=new x.Ea("span","fm-circle");f.W(new x.Ea("span","fm-ui-icon fm-icon-notif_info"));
return f}bwa(){var f=new x.Ea("span","fm-triangle-wrap");f.W(new x.Ea("span","fm-triangle"));f.W(new x.Ea("span","fm-ui-icon fm-icon-notif_warning"));return f}dwa(){var f=new x.Ea("span","fm-hexagon");f.W(new x.Ea("span","fm-ui-icon fm-icon-notif_arrow"));return f}close(){super.close();this.clear()}t3(){this.T1||super.t3()}cq(f){27===f.keyCode&&(super.close(),this.clear())}}l.hO=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h extends x.be.ay{constructor(){if(null!=h.ze)throw Error("Singleton");super(l.Mb.Fb.G);this.$("fm-prompt-view");this.He()}static V(){null==h.ze&&(h.ze=new h);return h.ze}static dispose(){h.ze=null}He(){this.OD.$("fm-overlay-alert");var f=new x.Ma("div","fm-content");this.W(f);this.Yr=new x.Uc;this.Yr.$("fm-message-label");f.W(this.Yr);this.uK=new x.Hj;this.uK.$("fm-prompt-input");f.W(this.uK);this.Rt=new x.Ma("div","fm-ui-btns-row");f.W(this.Rt);f=new x.Kg("fm-ui-btn-dark");
f.cb(e.model.B.j.uW);f.N(x.Md.mf,()=>this.KD());this.Rt.W(f);f=new x.Kg;f.cb(e.model.B.j.wl);f.N(x.Md.mf,()=>this.Is());this.Rt.W(f,u.hj.Ho||u.hj.vD)}Ns(f="",b=null){this.C=b;this.Yr.cb(f);this.uK.zj(b&&b.defaultValue?b.defaultValue:"");l.Mb.Fb.W(this);this.open();this.zp();this.uK.G.element.focus()}KD(){this.C&&this.C.dga&&this.C.dga(this.uK.Ti());this.close()}Is(){this.C&&this.C.DU&&this.C.DU();this.close()}}l.epa=h})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.value=NaN;this.label="";this.level=NaN;this.So=this.Ro=this.Kn=this.Cg=this.eh=this.draggable=this.collapsed=this.Of=this.gb=this.sT=this.rT=this.BJa=this.bCa=this.ci=this.ET=this.uD=this.ys=this.Vw=this.Vl=this.CM=this.Nh=this.zi=this.isFrozen=this.el=this.Ku=this.numeric=!1;this.qc=this.lb=this.W4=-1;this.mN=null;this.dl=this.QBa=this.nb=!1;this.Xc=[];this.uz=this.vz=!1;this.QB=f.Aq.Q5}get jS(){return this.sT?this.label:
e.P.zo(this.label,!0,!0)}get Ak(){return this.Vl||this.Vw}get sz(){return this.ys||this.uD}Eza(){return this.Cg||this.eh?this.hierarchy.ta.ea(this.bc.level.wb+1).caption:""}J(a=!1){if(null!=b.uw){var c=new Qa;c.clear();c.tag="div";c.text+=this.jS;b.uw(c.node,this.Qa());var d=c.text;d=e.model.Tb.valid(d)?d:e.model.Tb.validate(d);this.Ku=d!=this.label?!0:this.Ku;c.clear();c=document.createElement("div");c.innerHTML=d;d=c.textContent&&"number"!=typeof d?c.textContent.trim():d;a&&!this.sT&&(d=e.P.zo(d,
!0,!0));return d}return a?this.jS:this.label}Qy(a){this.Ku=!0;null==this.style&&(this.style=new f.w6);this.style.fsa(a)}sba(a){this.Ku=!0;null==this.style&&(this.style=new f.w6);this.style.cw(a);this.style.ksa(a)}Qa(){if(this.Lfa)return this.Lfa;var a=e.model.Va.V().ha.ua,c=[];e.model.C.F.rc||e.v(a)||(c=a.p_(this.Nh&&this.lf?this.lf:this.Bg));var d=[];e.model.C.F.rc||e.v(a)||(d=a.q_(this.zi&&this.lf?this.lf:this.lh));a={columnIndex:this.qc,columns:c,label:this.label,escapedLabel:this.jS,measure:this.measure?
this.measure.bj():null,hierarchy:this.hierarchy?this.hierarchy.bj():null,member:this.bc?this.bc.Qa():null,rowIndex:this.lb,rows:d,type:this.Nh||this.zi||this.el?"header":"value",value:this.value,expanded:this.Of,collapsed:this.collapsed,drilledUp:this.eh,drilledDown:this.Cg,recordId:this.mN,isTotal:this.Ak,isTotalRow:this.Vl,isTotalColumn:this.Vw,isClassicTotalRow:this.ET,isGrandTotal:this.sz,isGrandTotalRow:this.ys,isGrandTotalColumn:this.uD,isDrillThrough:this.dl};isNaN(this.level)||(a.level=this.level);
0<this.Xc.length&&(a.conditions=this.Xc);return this.Lfa=a}}b.uw=null;f.ke=b})(h.X||(h.X={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.$V=[];this.sC=[];this.R={}}cw(a){-1==this.$V.indexOf(a)&&this.$V.push(a)}ksa(a){-1==this.sC.indexOf(a)&&this.sC.push(a)}fsa(a){for(var c in a)this.R[c]=a[c]}PS(){return this.sC.join(" ")}hT(){var a="",c;for(c in this.R)a+=c+":"+this.R[c]+";";return a}}f.w6=b})(h.X||(h.X={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){}static Mza(c){return 500<c?b.Jja:b.yoa}}b.yoa="";b.Jja="Bold";f.Gma=b;class a{merge(c){this.color=this.color||c.color;this.backgroundColor=this.backgroundColor||c.backgroundColor;this.backgroundImage=this.backgroundImage||c.backgroundImage;this.borderColor=this.borderColor||c.borderColor;this.fontSize=this.fontSize||c.fontSize;this.fontWeight=this.fontWeight||c.fontWeight;this.textAlign=this.textAlign||c.textAlign;this.fontFamily=
this.fontFamily||c.fontFamily;this.width=this.width||c.width;this.maxWidth=this.maxWidth||c.maxWidth;this.minWidth=this.minWidth||c.minWidth;this.height=this.height||c.height;this.maxHeight=this.maxHeight||c.maxHeight;this.minHeight=this.minHeight||c.minHeight}clone(){var c=new a;c.color=this.color;c.backgroundColor=this.backgroundColor;c.backgroundImage=this.backgroundImage;c.borderColor=this.borderColor;c.fontSize=this.fontSize;c.fontWeight=this.fontWeight;c.textAlign=this.textAlign;c.fontFamily=
this.fontFamily;c.width=this.width;c.maxWidth=this.maxWidth;c.minWidth=this.minWidth;c.height=this.height;c.maxHeight=this.maxHeight;c.minHeight=this.minHeight;return c}static vya(c,d=null){var g=new a;if(null==d||null!=d&&d.R("color")!=c.R("color"))g.color=c.R("color");if(null==d||null!=d&&d.R("background-color")!=c.R("background-color"))g.backgroundColor=c.R("background-color");if(null==d||null!=d&&d.R("background-image")!=c.R("background-image"))g.backgroundImage=c.R("background-image");if(null==
d||null!=d&&d.R("border-color")!=c.R("border-color"))g.borderColor=c.R("border-color");if(null==d||null!=d&&d.R("font-size")!=c.R("font-size"))g.fontSize=parseInt(c.R("font-size"));if(null==d||null!=d&&d.R("font-weight")!=c.R("font-weight"))g.fontWeight=c.R("font-weight");if(null==d||null!=d&&d.R("fill")!=c.R("fill"))g.fill=c.R("fill");if(null==d||null!=d&&d.R("text-align")!=c.R("text-align"))g.textAlign=c.R("text-align");if(null==d||null!=d&&d.R("font-family")!=c.R("font-family"))g.fontFamily=c.R("font-family");
if(null==d||null!=d&&d.R("width")!=c.R("width"))g.width=parseInt(c.R("width"));if(null==d||null!=d&&d.R("max-width")!=c.R("max-width"))g.maxWidth=parseInt(c.R("max-width"));if(null==d||null!=d&&d.R("min-width")!=c.R("min-width"))g.minWidth=parseInt(c.R("min-width"));if(null==d||null!=d&&d.R("height")!=c.R("height"))g.height=parseInt(c.R("height"));if(null==d||null!=d&&d.R("max-height")!=c.R("max-height"))g.maxHeight=parseInt(c.R("max-height"));if(null==d||null!=d&&d.R("min-height")!=c.R("min-height"))g.minHeight=
parseInt(c.R("min-height"));return g}static Sl(c,d=null,g=!0){var k=new x.Ea("div");k.$(c).eb();c=new x.Ea("div");null==d?l.Mb.Fb.G.append(k).append(c):d.append(k).append(c);d=a.vya(k,g?c:null);k.remove();c.remove();return d}static DS(c){var d=new a,g;for(c=c.replace(/ /g,";");-1<(g=c.indexOf(";"));)this.Hwa(c.substring(0,g),d),c=c.substring(g+1);return d}static wT(c){c=c.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(d,g,k,m){return g+g+k+k+m+m});c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(c);
return null==c?"":"rgb("+parseInt(c[1],16)+","+parseInt(c[2],16)+","+parseInt(c[3],16)+")"}static Hwa(c,d){-1<c.indexOf("background-color")?d.backgroundColor=this.wT(c.substring(17,c.length)):-1<c.indexOf("background-image")?d.backgroundImage=c.substring(17,c.length):-1<c.indexOf("border-color")?d.borderColor=this.wT(c.substring(13,c.length)):-1<c.indexOf("color")?d.color=this.wT(c.substring(6,c.length)):-1<c.indexOf("font-size")?d.fontSize=parseInt(c.substring(10,c.length)):-1<c.indexOf("fill")?
d.fill=this.wT(c.substring(5,c.length)):-1<c.indexOf("text-align")?d.textAlign=c.substring(11,c.length):-1<c.indexOf("max-width")?d.maxWidth=parseInt(c.substring(10,c.length)):-1<c.indexOf("max-height")?d.maxHeight=parseInt(c.substring(11,c.length)):-1<c.indexOf("width")&&(d.width=parseInt(c.substring(6,c.length)))}static dz(c,d=null,g=null){var k="";null==d&&(d=a.Tka);for(var m=0;m<d.length;m++)if(null==g||null!=g&&c.R(d[m])!=g.R(d[m]))k+=d[m]+":"+c.R(d[m])+";";return k}static bl(c,d=null,g=null){var k=
new x.Ea("div");k.$(c).eb();if(void 0===m){var m=new x.Ea("div");m.eb()}null==d?l.Mb.Fb.G.append(k).append(m):d.append(k).append(m);c=a.dz(k,g,m);k.remove();null!=m&&m.remove();return c}static O3(c){var d=[],g=c.split("rgb");2<g.length&&(c=g[2]);c=c.replace(/[^\d,]/g,"");c=c.split(",");for(g=0;g<c.length;g++)d[g]=parseInt(c[g]);void 0==d[3]&&(d[3]=1);return d}}a.Tka="background-color background-image color font-family font-size font-weight text-align padding-top padding-left padding-right padding-bottom border border-top-width border-top-color border-top-style border-bottom-width border-bottom-color border-bottom-style border-left-width border-left-color border-left-style border-right-width border-right-color border-right-style".split(" ");
f.ed=a})(h.X||(h.X={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));var Ra=q||(q={}),Sa=Ra.K||(Ra.K={}),Ta=Sa.Y||(Sa.Y={}),Ua=Ta.X||(Ta.X={});class T{}T.UX="fm-pivot-title";T.Le="fm-cell";T.DW="fm-empty";T.BP="fm-sheet-header";T.bk="fm-header";T.KA="fm-header-c";T.uv="fm-header-r";T.Kna="fm-measure-header";T.zq="fm-filter-header";T.oJ="fm-live-filtering-header";T.fJ="fm-filter-icon";T.$W="fm-filtered";T.$I="fm-filtered-icon";T.Fv="fm-total";T.jqa="fm-total-r";T.iqa="fm-total-c";T.jJ="fm-grand-total";
T.Ima="fm-grand-total-r";T.Hma="fm-grand-total-c";T.jX="fm-hierarchy-link";T.YO="fm-link";T.yqa="fm-v-sort";T.Bqa="fm-v-sort-icon";T.zqa="fm-v-sort-asc";T.Aqa="fm-v-sort-desc";T.Lma="fm-h-sort";T.Oma="fm-h-sort-icon";T.Mma="fm-h-sort-asc";T.Nma="fm-h-sort-desc";T.ZA="fm-sort-icon";T.Y8="fm-with-order";T.UW="fm-expanded";T.V6="fm-expanded-icon";T.EW="fm-collapsed";T.j6="fm-collapsed-icon";T.Hf="fm-level-";T.dla="fm-drilled-up";T.cla="fm-drilled-down";T.kX="fm-icon";T.L7="fm-kpi";T.Tma="fm-kpi-status-bad-icon";
T.Xma="fm-kpi-status-risk-icon";T.Vma="fm-kpi-status-ok-icon";T.Wma="fm-kpi-status-rising-icon";T.Uma="fm-kpi-status-good-icon";T.Yma="fm-kpi-trend-bad-icon";T.bna="fm-kpi-trend-risk-icon";T.$ma="fm-kpi-trend-ok-icon";T.ana="fm-kpi-trend-rising-icon";T.Zma="fm-kpi-trend-good-icon";Ua.wa=T;var Va=q||(q={}),Wa=Va.K||(Va.K={}),Xa=Wa.Y||(Wa.Y={}),Ya=Xa.X||(Xa.X={});class Za{}Za.dna="left icon";Za.JJ="right icon";Za.Ok="label";Za.J6="drill";Za.YO="link";Za.Q5="backgroud";Ya.Aq=Za;
(function(e){(function(l){(function(h){class f extends l.Y.rO{constructor(b){super(b.G);this.jd=b}o3(b,a){this.show(b.target,{left:a.clientX,top:a.clientY},b)}B3(b){this.show(b.target,{left:b.clientX,top:b.clientY},b)}Yza(b){b=this.jd.QS(b);var a=this.Gb.ha.ua.hd();if(b&&!isNaN(b.ED))return a[b.ED];if(b&&b.measure)for(var c=0;c<a.length;c++)if(a[c].A==b.measure.A&&a[c].aa==b.measure.aa&&a[c].index==b.measure.index)return a[c];return null}show(b,a,c){if(!e.model.C.F.readOnly){var d=[];this.jd.pea(c.target)&&
d.push({id:"drillthrough",label:e.model.B.j.o6,handler:()=>{this.jd.bd(c.target)}});this.jd.SBa(c.target)&&d.push({id:"open_filter",label:e.model.B.j.q6,handler:()=>{this.jd.UH(c.target)}});var g=this.Yza(b);g&&!g.Na&&!g.Tg&&e.model.C.F.rl&&(g=this.ez(g),0<g.length&&d.push({id:"aggregation",label:e.model.B.j.m6,submenu:g}));d=this.XR(d,this.jd.QS(b,!0),"charts");0<d.length&&c.preventDefault();this.dS(d,a)}}Nfa(b,a){var c=this.Gb.ha.ua.clone();b=c.hd()[b.index];b.aa=a;e.model.C.F.io.aa=b.aa;this.Gb.ne(c)}}
h.Nka=f})(l.Bd||(l.Bd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Mv=this.Nv=-1;this.tG=this.o0=this.dW=this.GN=this.scrollLeft=this.scrollTop=this.jg=this.gh=this.ge=this.Od=this.Dp=this.Kl=this.cZ=this.VQ=0;this.KB=15E5;this.MB=this.LB=1;this.jj=[];this.At=[];this.Mt=[];this.Rr=[];this.Nt=[];this.xF=[];this.UF=[];this.KB=this.EAa();this.VQ=b.W8;this.cZ=b.V8;this.iE();this.Qha()}get we(){return this.dW+this.o0}Qha(){if(void 0===this.aZ||void 0===this.$Y){var c=this.FAa();c&&(this.aZ=
c.width,this.$Y=c.height)}}FAa(){return u.Kd().Mm?this.Eaa():u.Kd().L1?{width:15,height:15}:u.hj.Ho||u.Kd().DT||u.Kd().Jea?this.Eaa():{width:17,height:17}}Eaa(){if(null==l.Mb.Fb.G.element.offsetParent)return null;var c=document.createElement("div");c.style.width="100%";c.style.height="100px";var d=document.createElement("div");u.hj.Ho&&d.classList.add("fm-scrollbars");d.style.position="absolute";d.style.top="0px";d.style.left="0px";d.style.visibility="hidden";d.style.width="50px";d.style.height="50px";
d.style.overflow="hidden";d.appendChild(c);l.Mb.Fb.G.element.appendChild(d);let g=c.offsetWidth;d.style.overflow="scroll";let k=c.offsetWidth;g==k&&(k=d.clientWidth);c.style.width="100px";c.style.height="100%";d.style.overflow="hidden";var m=c.offsetHeight;d.style.overflow="scroll";c=c.offsetHeight;m==c&&(c=d.clientHeight);l.Mb.Fb.G.element.removeChild(d);d=g-k;m-=c;u.Kd().BM&&(m=d);return{width:d,height:m}}EAa(){return u.aS().DT||u.aS().BM?1E7:15E5}rG(c){this.At.length-1>=c&&(this.At.length=c);this.Rr.length-
1>=c&&(this.Rr.length=c);this.xF.length-1>=c&&(this.xF.length=c);for(let d in this.jj)this.jj.hasOwnProperty(d)&&!e.v(this.jj[d])&&this.jj[d].length-1>=c&&(this.jj[d].length=c);this.Nv=-1}fC(c){this.Mt.length-1>=c&&(this.Mt.length=c);this.Nt.length-1>=c&&(this.Nt.length=c);this.UF.length-1>=c&&(this.UF.length=c);this.jj.length-1>=c&&(this.jj.length=c);this.Mv=-1}reset(){this.At.length=0;this.Mt.length=0;this.Rr.length=0;this.Nt.length=0;this.xF.length=0;this.UF.length=0;this.Mv=this.Nv=-1;this.o0=
this.dW=this.scrollLeft=this.scrollTop=this.jg=this.gh=this.ge=this.Od=this.Dp=this.Kl=0;this.VQ=b.W8;this.cZ=b.V8;this.MB=this.LB=1;this.GN=this.jj.length=0;this.iE()}iE(){var c=l.Y.X.ed.Sl(u.Kd().Mm?"fm-grid-column-mobile":"fm-grid-column");isNaN(c.minWidth)||(b.OE=c.minWidth);isNaN(c.width)||(b.jt=Math.max(b.OE,c.width));isNaN(c.maxWidth)||(b.yq=0>=c.maxWidth?0:Math.max(b.OE,c.maxWidth));var d=l.Y.X.ed.Sl(u.Kd().Mm?"fm-grid-row-mobile":"fm-grid-row");isNaN(d.minHeight)||(b.NE=d.minHeight);isNaN(d.height)||
(b.mv=Math.max(b.NE,d.height));isNaN(d.maxHeight)||(b.Cr=0>=c.maxHeight?0:Math.max(b.NE,d.maxHeight))}setScale(){var c=this.$t(this.ge,this.ge+this.Dp);this.MB=c>this.KB?this.KB/c:1;c=this.au(this.Od,this.Od+this.Kl);this.LB=c>this.KB?this.KB/c:1}resize(c,d){this.CB=c;this.BB=d}get cE(){return this.kD?this.aZ:0}get bE(){return this.iD?this.$Y:0}get Up(){return this.CB}get Bs(){return this.BB}get zy(){return this.BB-this.bE-this.we}get Xt(){return this.CB-this.cE}get Dd(){return this.CB-this.mq}get Cd(){return this.BB-
this.Xq-this.we}get vj(){return this.Od+this.Kl}get il(){return this.ge+this.Dp}Vd(c){var d=isNaN(this.Mt[c])?b.mv:this.Mt[c];return 0<b.Cr&&!this.yD(c)?Math.min(b.Cr,d):d}vx(c,d,g=!1,k=!1){0!=d&&(d=Math.max(d,b.NE));if(g){if(isNaN(this.Nt[c])||d>this.Nt[c])this.Nt[c]=d}else this.Mt[c]=d,this.Mv=-1;k&&(this.UF[c]=!0)}jIa(c){if(this.yD(c)){delete this.Mt[c];delete this.Nt[c];delete this.UF[c];this.Mv=-1;for(let d in this.jj)this.jj.hasOwnProperty(d)&&delete this.jj[d]}}vh(c){if(-1==c)return this.xs();
if(c>=this.vj)return Math.max(100,b.jt);var d=isNaN(this.At[c])?b.jt:this.At[c];return 0<b.yq&&!this.sD(c)?Math.min(b.yq,d):d}IL(c,d,g){return 0>=g?Math.max(d,c):Math.min(g,Math.max(d,c))}yN(c,d,g=!1,k=!1){0!=d&&(d=this.IL(d,b.OE,b.yq));if(g){if(isNaN(this.Rr[c])||d>this.Rr[c])this.Rr[c]=d}else-1==c?this.VQ=d:this.At[c]=d,this.Nv=-1;k&&(this.xF[c]=!0)}hIa(c){if(this.sD(c)){delete this.At[c];delete this.Rr[c];delete this.xF[c];this.Nv=-1;for(let d in this.jj)this.jj.hasOwnProperty(d)&&(e.v(this.jj[d])||
delete this.jj[d][c])}}sD(c){return!0===this.xF[c]}yD(c){return!0===this.UF[c]}kR(){const c=new a;for(var d in this.Nt){var g=parseInt(d);if(!isNaN(g)&&!this.yD(g)){var k=this.Nt[g];!isNaN(k)&&k>this.Vd(g)&&(this.vx(g,k),c.rows.push(g))}}this.Nt.length=0;for(var m in this.Rr)d=parseInt(m),isNaN(d)||this.sD(d)||(g=this.Rr[d],!isNaN(g)&&g>this.vh(d)&&(this.yN(d,g),c.Ka.push(d)));this.Rr.length=0;return c}gM(c,d=!1){var g=c/this.ku*(this.Bs/this.MB-this.Bs)*this.MB;if(1!=this.MB&&c+g>=this.ku-this.Bs){d=
this.il;for(g=this.ku;g>c;)g-=this.Vd(d),d--;return d+1}d=d?0:this.ge;for(var k=0;k<c+g;)k+=this.Vd(d)*this.MB,d++;return d}PL(c,d=!1){var g=c/this.lu*(this.Up/this.LB-this.Up)*this.LB;if(1!=this.LB&&c+g>=this.lu-this.Up){d=this.vj;for(g=this.lu;g>c;)g-=this.vh(d),d--;return d+1}d=d?0:this.Od;for(var k=0;k<c+g;)k+=this.vh(d)*this.LB,d++;return d}Jda(c){for(var d=0,g=0,k=this.Cd;g<k;)g+=this.Vd(c+d),d++;return d}Ida(c){for(var d=0,g=0,k=this.Dd;g<k;)g+=this.vh(c+d),d++;return d}get lu(){return 0<=
this.Nv?this.Nv:this.Nv=1>this.LB?this.KB:this.au(this.Od,this.Od+this.Kl)}au(c,d){if(c>=d)return 0;var g=0,k=0,m;for(m in this.At){var n=parseInt(m);!isNaN(n)&&!isNaN(this.At[n])&&n>=c&&n<d&&(k++,g+=this.vh(n))}g+=(Math.min(d,this.vj)-c-k)*(0<b.yq?Math.min(b.yq,b.jt):b.jt);d>=this.vj&&(g+=(d-this.vj)*this.vh(d));return g}get ku(){return 0<=this.Mv?this.Mv:this.Mv=1>this.MB?this.KB:this.$t(this.ge,this.ge+this.Dp)}$t(c,d){if(c>=d)return 0;var g=0,k=0,m;for(m in this.Mt){var n=parseInt(m);!isNaN(n)&&
!isNaN(this.Mt[n])&&n>=c&&n<d&&(k++,g+=this.Vd(n))}return g+=(d-c-k)*(0<b.Cr?Math.min(b.Cr,b.mv):b.mv)}tua(){this.jj.length=0}jea(c,d){return e.v(this.jj[c])?!1:!0===this.jj[c][d]}YIa(c,d){e.v(this.jj[c])&&(this.jj[c]=[]);this.jj[c][d]=!0}vR(){this.Nv=this.Mv=-1}get wDa(){for(var c=0,d=this.Od+this.Kl,g=this.Od;g<d;g++)if(c+=this.vh(g),c>b.r8)return b.r8;return c}get mq(){for(var c=this.xs(),d=0;d<this.Od;d++)c+=this.vh(d);return c}get Xq(){for(var c=this.Eu(),d=0;d<this.ge;d++)c+=this.Vd(d);return c}xs(){return e.model.C.F.sl?
this.VQ:0}Eu(){return e.model.C.F.sl?this.cZ:0}jza(){for(var c=[],d=this.Od;d<this.Kl&&(this.kea(d)||(c.push(d),!(50<=c.length)));d++);return c}kza(c){var d=[];c.bottom=Math.min(c.bottom,this.il);for(var g=c.left;g<=c.right;g++)for(var k=c.top;k<=c.bottom;k++)if(!this.jea(k,g)){d.push(g);break}return d}kea(c,d=!0){return!isNaN(this.At[c])||(d?!isNaN(this.Rr[c]):!1)}get iD(){return this.lu+(this.ku>this.Cd?this.aZ:0)>this.Dd}get kD(){return this.ku+(this.lu>this.Dd?this.$Y:0)>this.Cd}bD(c,d=!1){var g=
e.model.C.F.sl&&d?this.Eu():0;return g+=this.$t(d?0:this.ge,c)}OC(c,d=!1){var g=e.model.C.F.sl&&d?this.xs():0;return g+=this.au(d?0:this.Od,c)}get iw(){return u.Kd().Xi?!1:500>Math.max(this.vj,this.Xt/b.jt)*Math.max(this.il,this.zy/b.mv)}get Vta(){return u.Kd().Xi?!1:(this.kD||this.iD)&&1E5>this.vj*this.il}Co(c=!1){return new f.ME(this.YG(c),this.ZG(c),this.NC(c),this.fz(c))}ZG(c=!1){return this.iw?this.ge:c?Math.max(this.ge,this.gh-b.O8):Math.max(this.ge,this.gh)}YG(c=!1){return this.iw?this.Od:
c?Math.max(this.Od,this.jg-b.k6):Math.max(this.Od,this.jg)}fz(c=!1){var d=this.Jda(this.gh);return this.iw?this.kD?this.il:this.gh+d:c?Math.min(this.gh+d+(this.kD?b.O8:0),this.kD?this.il:Number.MAX_VALUE):this.gh+d}NC(c=!1){var d=this.Ida(this.jg);return this.iw?this.iD?this.vj:this.jg+d:c?Math.min(this.jg+d+(this.iD?b.k6:0),this.iD?this.vj:Number.MAX_VALUE):this.jg+d}wD(c=NaN){isNaN(c)&&(c=this.NC());return 0<this.scrollLeft&&c>=this.vj}xD(c=NaN){isNaN(c)&&(c=this.fz());return 0<this.scrollTop&&
c>=this.il}OL(c=NaN){isNaN(c)&&(c=this.jg);return this.wD()?this.lu-this.scrollLeft-this.au(c,this.vj):0}fM(c=NaN){isNaN(c)&&(c=this.gh);return this.xD()?this.ku-this.scrollTop-this.$t(c,this.il):0}dT(c,d){if(c<this.we)return NaN;if(e.model.C.F.sl&&c<this.we+this.Eu())return-1;var g=0,k=this.we+this.Eu();c>this.Xq&&(g=this.gh,k=this.we+this.Xq,d&&g>this.ge?(d=this.scrollTop-this.bD(g-1),0<d&&(k-=d,g--)):d||(c-=this.fM()));for(;k<c;)k+=this.Vd(g),g++;return g-1}JS(c,d){if(e.model.C.F.sl&&c<this.xs())return-1;
var g=0,k=this.xs();c>this.mq&&(g=this.jg,k=this.mq,d&&g>this.Od?(d=this.scrollLeft-this.OC(g-1)+this.GN,0<d&&(k-=d,g--)):d||(c-=this.OL()));for(;k<c;)k+=this.vh(g),g++;return g-1}Eo(c,d,g=!0){var k=0,m=(g?this.we:0)+this.Eu();c>this.ge&&(k=this.gh,m=(g?this.we:0)+this.Xq,k<=c&&(m+=d?this.bD(this.gh)-this.scrollTop:this.fM()));return m+=this.$t(k,c)}Ul(c,d){var g=0,k=this.xs();c>this.Od&&(g=this.jg,k=this.mq,g<=c&&(k+=d?this.OC(this.jg)-this.scrollLeft-this.GN:this.OL()));return k+=this.au(g,c)}qCa(c){return isNaN(this.Mt[c])}get lya(){return this.scrollLeft+
this.Dd-this.lu-this.cE}get kya(){return this.scrollTop+this.Cd-this.ku-this.bE}Fo(c,d){return!isNaN(c)&&0==this.Vd(c)||!isNaN(d)&&0==this.vh(d)?!0:!1}}b.O8=5;b.k6=5;b.jt=100;b.OE=50;b.yq=480;b.mv=30;b.NE=30;b.Cr=100;b.V8=25;b.W8=25;b.r8=200;f.Ch=b;class a{constructor(){this.rows=[];this.Ka=[]}}f.LNa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ea{constructor(a,c){super("div");this.CY=!1;this.cell=new Qa;this.ca=a;this.ln=c;this.element.addEventListener("click",d=>this.TU(d))}Cy(a=!1){for(var c=!1,d=this.element.children,g=0;g<d.length;g++){var k=d.item(g);c=this.Zia(k,!0)||c;k=k.children;for(var m=0;m<k.length;m++){const n=k.item(m);c=this.TN(n,a)||c}}this.CY=c}get tD(){return this.CY}Zia(a,c=!1){if(null!=this.ca){var d=!1,g=parseInt(a.getAttribute("data-r"));if(isNaN(g)||
this.ca.yD(g))return!1;var k=a.clientHeight;a=a.offsetHeight;var m=a-k;a-this.ca.Vd(g)>m?(this.ca.vx(g,Math.ceil(a),c),d=!0):k<=f.Ch.mv&&this.ca.vx(g,f.Ch.mv,c);return d}}TN(a,c=!1,d=!1){if(null!=this.ca){var g=!1,k=parseInt(a.getAttribute("data-c")),m=parseInt(a.getAttribute("data-r"));if(isNaN(k)||a.classList.contains(h.X.wa.BP)&&0<=k||this.ca.sD(k)||this.ca.jea(m,k)&&!d)return!1;a=a.offsetWidth;if(a>this.ca.vh(k)){if(1<a-this.ca.vh(k)||1==window.devicePixelRatio||1!=window.devicePixelRatio&&this.ca.vh(k)==
f.Ch.jt)this.ca.yN(k,Math.ceil(a+3),c),g=!0}else-1!=k&&a<=f.Ch.jt&&!this.ca.kea(k,!0)&&this.ca.yN(k,f.Ch.jt,c);this.ca.YIa(m,k);return g}}Ny(a,c){var d=this.ln?this.ln(a,c):null;this.cell.clear();this.cell.tag="div";if(this.ca.Fo(a,c))return this.cell.style.display="none",this.cell;this.cell.$(h.X.wa.Le);var g=a>=this.ca.il||c>=this.ca.vj;!d&&g?this.cell.$(h.X.wa.DW):(this.cell.attr.role="gridcell",this.cell.attr["aria-rowindex"]=a+1,this.cell.attr["aria-colindex"]=c+1);d&&!isNaN(d.level)&&this.cell.$(h.X.wa.Hf+
d.level);d&&d.zi&&(this.cell.$(h.X.wa.bk),this.cell.$(h.X.wa.uv),this.cell.$(h.X.wa.Hf+d.level),this.cell.attr.role="rowheader");d&&d.Nh&&(this.cell.$(h.X.wa.bk),this.cell.$(h.X.wa.KA),this.cell.attr.role="columnheader");d&&d.CM&&this.cell.$(h.X.wa.Kna);d&&d.Ak&&this.cell.$(h.X.wa.Fv);d&&d.Vw&&this.cell.$(h.X.wa.iqa);d&&d.Vl&&this.cell.$(h.X.wa.jqa);d&&d.sz&&this.cell.$(h.X.wa.jJ);d&&d.uD&&this.cell.$(h.X.wa.Hma);d&&d.ys&&this.cell.$(h.X.wa.Ima);d&&d.Of&&(this.cell.$(h.X.wa.UW),this.cell.text+=this.so(h.X.wa.V6,
e.model.B.j.JP));d&&d.collapsed&&(this.cell.$(h.X.wa.EW),this.cell.text+=this.so(h.X.wa.j6,e.model.B.j.KP));d&&d.vz&&(this.cell.$(h.X.wa.L7),-.75>=d.value?this.cell.$(h.X.wa.Yma):-.25>=d.value?this.cell.$(h.X.wa.bna):.25>d.value?this.cell.$(h.X.wa.$ma):.75>d.value?this.cell.$(h.X.wa.ana):1>=d.value&&this.cell.$(h.X.wa.Zma));d&&d.uz&&(this.cell.$(h.X.wa.L7),-.75>=d.value?this.cell.$(h.X.wa.Tma):-.25>=d.value?this.cell.$(h.X.wa.Xma):.25>d.value?this.cell.$(h.X.wa.Vma):.75>d.value?this.cell.$(h.X.wa.Wma):
1>=d.value&&this.cell.$(h.X.wa.Uma));this.cell.text+=d?d.jS:"";d&&(d.eh||d.Cg)&&(this.cell.text+='<span class="'+h.X.wa.jX+'" title="'+(d.eh?e.model.B.j.aqa:e.model.B.j.bqa)+'">'+d.Eza()+"</span>",d.eh&&this.cell.$(h.X.wa.dla),d.Cg&&this.cell.$(h.X.wa.cla));if(d&&d.Nh){if(d.Kn&&!d.nb){var k="";0<=d.W4&&(k="<span>"+(d.W4+1)+"</span>");const n=e.v(d.measure)||d.measure.type!=e.u.i.Pa.xc;this.cell.text=d.Ro?this.cell.text+this.so([h.X.wa.ZA,h.X.wa.zqa,e.ia(k)?"":h.X.wa.Y8],this.kH(e.u.i.za.ic,n,e.model.C.F.rc),
k):d.So?this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Aqa,e.ia(k)?"":h.X.wa.Y8],this.kH(e.u.i.za.Kc,n,e.model.C.F.rc),k):this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Bqa],this.kH(e.u.i.za.fd,n,e.model.C.F.rc))}d.nb&&this.cell.$(h.X.wa.DW);d.nb||this.cell.$(h.X.wa.yqa)}d&&d.zi&&(d.Kn&&!d.nb&&(this.cell.text=d.Ro?this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Mma],this.kH(e.u.i.za.ic)):d.So?this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Nma],this.kH(e.u.i.za.Kc)):this.cell.text+this.so([h.X.wa.ZA,h.X.wa.Oma],this.kH(e.u.i.za.fd))),
this.cell.$(h.X.wa.Lma));this.cell.attr["data-c"]=c;this.cell.attr["data-r"]=a;this.cell.attr["data-n"]=0==a%2?"even":"odd";0!=c||e.model.C.F.sl||(this.cell.style.height=this.ca.Vd(a)+"px");if(d&&d.style){for(k=0;k<d.style.$V.length;k++)this.cell.$(d.style.$V[k]);k=d.style.R;for(var m in k)this.cell.style[m]=k[m]}this.Bha(this.cell,a,c,d&&d.ci);null==h.X.ke.uw||g||(null==d&&(d=new h.X.ke,d.lb=a,d.qc=c),h.X.ke.uw(this.cell.node,d.Qa()));return this.cell}kH(a,c=!0,d=!1){a=e.u.i.za.$S(a,c,d);return a==
e.u.i.za.ic?e.model.B.j.eqa:a==e.u.i.za.Kc?e.model.B.j.fqa:a==e.u.i.za.fd?e.model.B.j.hqa:e.model.B.j.gqa}F1(a,c){return this.ln?(a=this.ln(a,c),e.v(a)||e.ia(a.label)):!0}Bha(a,c,d,g=!1){this.ca.sD(d)||this.ca.yD(c)?(a.style.width=this.ca.vh(d)+"px",a.style.height=this.ca.Vd(c)+"px"):(a.style["min-width"]=this.ca.vh(d)+"px",a.style[g?"height":"min-height"]=this.ca.Vd(c)+"px");!this.ca.sD(d)&&0<f.Ch.yq&&(a.style["max-width"]=f.Ch.yq+"px");!this.ca.yD(c)&&0<f.Ch.Cr&&(a.style["max-height"]=f.Ch.Cr+"px")}so(a,
c=null,d=""){Array.isArray(a)&&(a=a.join(" "));a='<i aria-hidden="true" class="'+h.X.wa.kX+" "+a+'"';c&&(a+='title="'+c+'"');return a+(">"+d+"</i>")}lwa(){this.cell.clear();this.cell.tag="div";this.cell.$(h.X.wa.Le);this.cell.$(h.X.wa.BP);this.cell.style.width=this.ca.xs()+"px";this.cell.style.height=this.ca.Eu()+"px";this.cell.attr["aria-hidden"]="true";return this.cell}gba(a){this.cell.clear();this.cell.tag="div";if(this.ca.Fo(-1,a))return this.cell.style.display="none",this.cell;this.cell.$(h.X.wa.Le);
this.cell.$(h.X.wa.BP);this.cell.text+=a+1;this.cell.style.width=this.ca.vh(a)+"px";0<f.Ch.yq&&!this.ca.sD(a)&&(this.cell.style["max-width"]=f.Ch.yq+"px");this.cell.style.height=this.ca.Eu()+"px";this.cell.attr["data-r"]=-1;this.cell.attr["data-c"]=a;this.cell.attr["aria-hidden"]="true";return this.cell}UR(a){this.cell.clear();this.cell.tag="div";if(this.ca.Fo(a,-1))return this.cell.style.display="none",this.cell;this.cell.$(h.X.wa.Le);this.cell.$(h.X.wa.BP);this.cell.text+=a+1;this.cell.style["min-width"]=
this.ca.xs()+"px";this.cell.style.height=this.ca.Vd(a)+"px";this.cell.style["line-height"]=this.ca.Vd(a)-2+"px";0<f.Ch.Cr&&!this.ca.yD(a)&&(this.cell.style["max-height"]=f.Ch.Cr+"px");this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=-1;this.cell.attr["aria-hidden"]="true";return this.cell}C0(a,c){a=this.ca.PL(a)-1;c=this.ca.gM(c)-1;var d=null;null!=this.ln&&(d=this.ln(c,a));null==d&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}Bu(a){for(;!a.Rc(h.X.wa.Le);)if(a=a.parent,null==a)return null;var c=parseInt(a.attr("data-c"));
a=parseInt(a.attr("data-r"));var d=null!=this.ln?this.ln(a,c):l.Mb.Fb.VS(a,c);null==d&&(d=new h.X.ke,d.lb=a,d.qc=c);return d}TU(a){var c=x.Ea.Vb(a.target),d=this.Bu(c)||this.C0(a.offsetX,a.offsetY);switch(a.type){case "click":var g=new h.F7(d,c,a)}g&&this.Fa(g)}dispose(){super.dispose();this.ca=this.ln=null}}f.gO=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.gO{constructor(a,c){super(a,c);this.HQ=!1;this.$("fm-sheet-canvas");this.Fl=new $a;this.W(this.Fl);this.nm=new f.ME;this.li=new f.ME}kb(){}Vy(){}get ac(){return this.HQ}set ac(a){this.HQ!=a&&(this.HQ=a,this.$a(this.ac?b.U6:b.TW))}Aia(){0!=this.ac&&(this.nm.reset(),this.li.reset(),this.kb())}qG(){this.nm.reset()}rua(){this.li.reset()}nw(){this.qG();this.rua()}Cy(a=!1){for(var c=!1,d=this.Fl.content.element.children,g=0;g<d.length;g++){var k=
d.item(g);c=this.Zia(k,a)||c;k=k.children;for(var m=0;m<k.length;m++){var n=k.item(m);c=this.TN(n,a)||c}}this.CY=c}Vz(){this.Fl.content.width=this.aw-this.ca.cE;this.Fl.content.height=this.Ht-this.ca.bE}get pb(){return this.Fl}get width(){return this.aw}set width(a){this.aw!=a&&(this.element.style.minWidth=a+"px",this.aw=a,this.Fl.width=a)}get height(){return this.Ht}set height(a){this.Ht!=a&&(this.element.style.height=a+"px",this.Ht=a,this.Fl.height=a)}eza(a,c){a=this.ca.JS(a,this.ac);c=this.ca.dT(c,
this.ac);var d=null;null!=this.ln&&(d=this.ln(c,a));null==d&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}TU(a){var c=this.parent.lg();var d=a.clientX-c.left;var g=a.clientY-c.top;c=a.target;c==this.pb.placeholder.element&&(this.pb.placeholder.R("pointer-events","none"),c=document.elementFromPoint(a.clientX,a.clientY),this.pb.placeholder.R("pointer-events",""));c=x.Ea.Vb(c);d=this.Bu(c)||this.eza(d,g);null!=d&&null!=c&&(g=h.X.Aq.Q5,c.Rc(h.X.wa.jX)?g=h.X.Aq.J6:c.Rc(h.X.wa.V6)||c.Rc(h.X.wa.j6)?g=h.X.Aq.dna:
c.Rc(h.X.wa.ZA)?g=h.X.Aq.JJ:c.Rc(h.X.wa.YO)&&(g=h.X.Aq.YO),d.QB=g);switch(a.type){case "click":var k=new h.F7(d,c,a)}k&&this.Fa(k)}yG(a,c=!1,d=!1){var g=[],k=new Qa;d&&g.push(this.Tva(a));for(d=a.top;d<a.bottom;d++){k.tag="div";k.$("fm-row");k.attr["data-r"]=d;d<this.ca.il&&this instanceof f.N6&&(k.attr.role="row");c&&(k.text+=ab(this.UR(d)));for(var m=a.left;m<a.right;++m)k.text+=ab(this.Ny(d,m));g.push(ab(k))}return g.join("")}Tva(a){for(var c="",d=a.left;d<a.right;++d)c+=ab(this.gba(d));a=new Qa;
a.tag="div";a.$("fm-row");a.text=c;return c=ab(a)}Fda(){var a=this.ca.ZG();return this.ac?this.ca.$t(this.li.top,a)-this.pb.qC:this.ca.fM(a)}Eda(){var a=this.ca.YG();return this.ac?this.ca.au(this.li.left,a)-this.pb.js:this.ca.OL(a)}dispose(){this.pb.dispose();super.dispose()}}b.U6="switched_to_smooth";b.TW="switched_to_simple";f.KE=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a=0,c=0,d=0,g=0){this.left=a;this.top=c;this.right=d;this.bottom=g}set(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom}reset(){this.bottom=this.right=this.top=this.left=0}contains(a){return this.left<=a.left&&this.top<=a.top&&this.right>=a.right&&this.bottom>=a.bottom}clone(){return new b(this.left,this.top,this.right,this.bottom)}}f.ME=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||
(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.KC=[];this.data=[];this.coords=a}reset(){this.data=[];this.KC=[]}setData(a,c,d,g=!1){d.lb=a;d.qc=c;if(c<this.coords.Od||g)null==this.data[a]&&(this.data[a]=[]),this.data[a][c]=d}AV(a,c,d){null==this.KC[a]&&(this.KC[a]=[]);this.KC[a][c]=d}Wta(a,c){void 0===this.data[a]&&(this.data[a]=[]);return void 0!==this.data[a][c]}getData(a,c,d=!0){if(0==this.Wta(a,c)){var g=this.SC(a,c);null!=g&&(g.lb=a,g.qc=c);if(d)this.data[a][c]=g;
else return g}if(null!==this.data[a][c])return this.data[a][c]}Bza(a,c){return this.KC[a]&&this.KC[a][c]?this.KC[a][c]:null}sua(a,c){null!=this.data[a]&&(this.data[a][c]=this.getData(a,c))}dispose(){this.reset();this.SC=null}}f.Npa=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(c){this.YF=this.ny=null;this.tj=new e.tb;this.oK={};this.aK={};this.dU=d=>this.cq(d);this.la=c;this.coords=this.la.coords;this.Sm=new f.Lpa(this,this.la);this.SIa=new f.Hja;this.Tu=u.VO.V();this.Tu.N(u.KeyboardEvent.UO,this.dU)}dispose(){null!=this.tj&&0<this.tj.length&&this.WZ();this.Tu.sb(u.KeyboardEvent.UO,this.dU);this.Tu=this.la=null;this.Sm.dispose()}kb(){this.Sm.X3()}wga(c,d){this.Sm.ZT?this.xIa(c,d):this.kha(c,d);this.kb()}xga(c,
d){this.Sm.GT||(null==this.Sm.No&&(this.Sm.No=new f.b9(this.la)),this.Sm.No.kw=c.toString()+"|"+d.toString(),this.kb())}select(c,d){this.os();this.ny=c;this.YF=d;this.wga(c,d)}xIa(c,d){this.lea(c,d)&&!this.tj.Hb(this.uG(c,d))&&(this.WZ(),this.kha(c,d))}kha(c,d){null!=this.Sm.No&&(this.Sm.No.remove(),this.Sm.No=null);if(!this.Sm.GT||this.lea(c,d))if(this.tj.Hb(this.uG(c,d)))g=this.tj.getItem(this.uG(c,d)),null!=g.Ko&&delete this.oK[c.y.toString()],null!=g.mo&&delete this.aK[c.x.toString()],g.remove(),
this.tj.removeItem(this.uG(c,d));else if(null!=c&&null!=d){var g=new f.b9(this.la);g.kw=this.uG(c,d);this.tj.Ta(g.kw,g)}}WZ(){for(;0<this.tj.length;)this.tj.ea(0).remove(),this.tj.h4(0);this.oK={};this.aK={}}uG(c,d){return c.x.toString()+"|"+c.y.toString()+"|"+d.x.toString()+"|"+d.y.toString()}BG(c){c=c.split("|");var d={};4==c.length?(d.from=new e.K.Y.sheet.Jr(parseInt(c[0]),parseInt(c[1])),d.Xo=new e.K.Y.sheet.Jr(parseInt(c[2]),parseInt(c[3]))):2==c.length&&(d.Ss=parseInt(c[0]),d.hu=parseInt(c[1]));
return d}Lea(c){return this.oK.hasOwnProperty(c.y.toString())&&this.aK.hasOwnProperty(c.x.toString())&&this.oK[c.y.toString()]==f.x6.eO&&this.aK[c.x.toString()]==f.x6.eO}lea(c,d){return null==c||null==d||!c.NG(d)||this.Lea(c)||this.Lea(d)||0>c.x*c.y||0>d.x*d.y?!1:!0}selectAll(){this.select(new a(0,0),new a(this.coords.Kl+this.coords.Od-1,this.coords.Dp+this.coords.ge-1))}xha(c){if(!(null==this.ny||this.ny.NG(c)&&this.tj.Hb(this.uG(this.ny,c)))){var d=this.ny;this.os();this.ny=d;this.YF=c;this.wga(d,
c)}}RIa(c){this.os();this.xga(c,-1)}OIa(c){this.os();this.xga(-1,c)}os(){!this.Sm.GT&&0<this.tj.length&&!this.Sm.ZT&&this.WZ();null!=this.Sm.No&&(this.Sm.No.remove(),this.Sm.No=null);this.YF=this.ny=null}clear(){this.os();this.kb()}BBa(c){return c.ci&&!isNaN(c.value)||c.dl&&c.ci&&""!=c.label}zta(c){if(null==c)return!1;let d=0;for(let g=0;g<c.length;g++)if(this.BBa(c[g])&&d++,2<=d)return!0;return!1}get tr(){return this.tj}get Xo(){return this.YF}set Xo(c){this.YF=c}get from(){return this.YF}set from(c){this.ny=
c}oya(c,d){return c&&d?Math.min(c.x,d.x):-1}$Ja(c,d){return c&&d?Math.max(c.x,d.x):-1}wya(c,d){return c&&d?Math.min(c.y,d.y):-1}lKa(c,d){return c&&d?Math.max(c.y,d.y):-1}move(c,d,g=!1){switch(c){case 37:this.BDa(g);break;case 38:this.EDa(g);break;case 39:this.CDa(g);break;case 40:this.ADa(g)}}get gha(){return this.oK}get Qaa(){return this.aK}BDa(c=!1){this.Gfa(-1,c)}CDa(c=!1){this.Gfa(1,c)}EDa(c=!1){this.Hfa(-1,c)}ADa(c=!1){this.Hfa(1,c)}Gfa(c,d=!1){if(1==this.tj.length){var g=this.BG(this.tj.ea(0).kw),
k=g.from,m=g.Xo;g=d?m.x:k.x;var n=d?m.x:k.x;g=this.Yxa(g+c,d?m.y:k.y);g<this.coords.jg?(c=Math.max(g,this.coords.Od),this.la.Us(c)):g>=this.coords.Ida(this.coords.jg)+this.coords.jg-1&&(c=this.coords.jg+(g-n),this.la.Us(c+1));c=d?m.y:k.y;m=g;this.select(new a(d?k.x:g,k.y),new a(m,c))}}Hfa(c,d=!1){if(1==this.tj.length){var g=this.BG(this.tj.ea(0).kw),k=g.from,m=g.Xo;g=d?m.y:k.y;var n=d?m.y:k.y;g=this.Zxa(g+c,d?m.x:k.x);g<this.coords.gh?(c=Math.max(g,this.coords.ge),this.la.sr(c)):g>=this.coords.Jda(this.coords.gh)+
this.coords.gh-1&&(c=this.coords.gh+(g-n),this.la.sr(c+1));c=g;m=d?m.x:k.x;this.select(new a(k.x,d?k.y:g),new a(m,c))}}Zxa(c,d){return Math.max(d<this.coords.Od?this.coords.ge:this.coords.tG+1,Math.min(c,this.coords.il-1))}Yxa(c,d){return Math.max(d<this.coords.ge?this.coords.Od:this.coords.Od-1,Math.min(c,this.coords.vj-1))}get Gta(){return this.SIa}cq(c){if(null!=this.Tu&&(this.la.Km||this.Tu.wea)){var d=c.ctrlKey||c.metaKey;switch(c.keyCode){case 13:case 32:d||this.la.$a(h.tc.kJ);break;case 65:d&&
(this.selectAll(),c.gq.preventDefault());break;case 37:case 39:case 38:case 40:this.move(c.keyCode,c.ctrlKey,c.shiftKey),c.gq.preventDefault()}!d||c.altKey||c.shiftKey||this.Tu.wea||67!==c.keyCode||this.xG()}}xG(){var c="";if(0<this.tj.length)for(var d,g=0;g<this.tj.length;g++)d=this.tj.ea(g),null!=d.Kj&&(d=this.BG(d.kw),c+=this.Hva(d.from,d.Xo),g<this.tj.length-1&&(c+="\n"));0<c.length&&this.Tu.xG(c)}Hva(c,d){var g="";if(null==c||null==d)return g;var k=Math.min(c.x,d.x),m=Math.max(c.x,d.x),n=Math.max(c.y,
d.y);for(d=Math.min(c.y,d.y);d<=n;d++){for(var p=k;p<=m;p++){p>k&&(g+="\t");c=this.la.kg(d,p,!0);if(null==c&&(c=d<this.coords.gh&&p>=this.coords.jg?this.la.kg(d,p-this.coords.jg+this.coords.Od,!0):null,null==c))continue;g+=null==c?"":c.J()}d<n&&(g+="\n")}return g}}f.Mpa=b;class a{constructor(c=0,d=0){this.x=c;this.y=d}NG(c){return c.x==this.x&&c.y==this.y}}f.Jr=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(d,g){this.WF=this.GT=!1;this.Mq=this.I$=null;this.waa=5;this.LIa=17;this.ZT=!1;this.PH=k=>this.TU(k);this.Efa=k=>this.r3(k);this.Ai=d;this.la=g;this.coords=this.la.coords;this.Mq=new f.Gja;this.Mq.eb();this.la.W(this.Mq);this.la.element.addEventListener("mousedown",this.PH);this.la.element.addEventListener("mouseup",this.PH)}get cA(){return this.WF}set cA(d){this.WF=d;this.cA||(this.la.element.removeEventListener("mousemove",
this.PH),document.removeEventListener("mousemove",this.Efa))}get No(){return this.I$}set No(d){this.I$=d}TU(d){if(1==d.which||3==d.which){var g=x.Ea.Vb(d.target);if("mousedown"!=d.type||!(g.Rc(h.X.wa.zq)||g.Rc(h.X.wa.fJ)||g.Rc(h.X.wa.$I)||null!=g.closest(".fm-filters")||null!=g.closest("."+h.X.wa.oJ))){var k=this.la.lg();g=d.clientX-k.left;k=d.clientY-k.top;if(!(g>this.coords.Xt||k>this.coords.we+this.coords.zy||(k=this.coords.dT(k,this.la.ac),g=this.coords.JS(g,this.la.ac),isNaN(k)||isNaN(g))))switch(this.GT=
!u.hj.Ho&&d.ctrlKey||u.hj.Ho&&d.metaKey,this.ZT=3==d.which,d.type){case "mousedown":this.kx(k,g);break;case "mousemove":this.lx(k,g);break;case "mouseup":this.lr(k,g)}}}}r3(d){var g=x.Ea.Vb(this.la.element),k=d.clientX;d=d.clientY;(k<g.left||d<g.top||k>g.left+this.la.width||d>g.top+this.la.height)&&this.TJa()}select(d,g,k,m){this.cA=!1;this.Ai.select(new f.Jr(g,d),new f.Jr(m,k))}TJa(){this.cA=!1}kx(d,g){this.cA=!0;this.Ai.select(new f.Jr(g,d),new f.Jr(g,d));this.la.element.addEventListener("mousemove",
this.PH);e.vk.addEventListener("mousemove",this.Efa)}lr(d,g){this.cA&&(this.cA=!1,this.ZT||(-1==d?this.Ai.OIa(g):-1==g?this.Ai.RIa(d):this.Ai.from&&!this.Ai.from.NG(new f.Jr(g,d))&&this.Ai.xha(new f.Jr(g,d))))}lx(d,g){this.cA&&(!this.Ai.Xo||this.Ai.Xo.x==g&&this.Ai.Xo.y==d||this.Ai.xha(new f.Jr(g,d)))}dispose(){this.la.element&&this.la.element.removeEventListener("mousedown",this.PH);this.la.element&&this.la.element.removeEventListener("mouseup",this.PH);this.Mq.dispose();this.coords=this.la=this.Ai=
null;null!=this.No&&(this.No.remove(),this.No=null)}X3(){this.Mq.iIa();for(var d=0;d<this.Ai.tr.length;d++){var g=this.Ai.tr.ea(d);var k=this.Ai.BG(this.Ai.tr.Jh(d));this.Tra(g,k.from,k.Xo)}this.Ura(this.Mq);this.Zwa(this.No)}Zwa(d){if(null!=d){d.eb();var g=this.Ai.BG(d.kw);-1!=g.Ss&&this.jxa(g.Ss,d);-1!=g.hu&&this.ixa(g.hu,d)}}Ura(d){d.eb();if(e.model.C.F.Xha&&d.EBa()&&null!=e.u.Ra.V()&&null!=e.u.Ra.V().O){var g=this.la.tr;if(this.Ai.zta(g)&&(d.bDa(),this.wKa(d,g),!d.wBa())){d.show();d.bw.Xj("auto");
d.top=d.Il.bottom;g=this.coords.Ul(this.coords.Od,this.la.ac);for(var k=0,m=0;m<d.vp.length;m++)k+=d.vp.ea(m).width;k=k+2*this.waa+2*(d.vp.length-1)*this.waa;d.bw.width=k;g-d.Il.right+k>this.coords.scrollLeft?d.Il.right=d.Il.left+k:g>d.Il.right-k?(d.bw.R("left","auto"),d.bw.right=0,k=d.Il.right-g):d.Il.dha>=this.coords.Xt&&(d.bw.R("left","right"),d.bw.left=0,k=k-(d.Il.dha-this.coords.Xt)-1,k=0>k?0:k);this.coords.we+this.coords.zy<=d.Il.bottom+d.height&&(d.top=d.Il.bottom-this.LIa);d.left=d.Il.right-
k;d.Sga.width=k;d.width=k}}}wKa(d,g){this.Ai.Gta.PHa(d,g)}Tra(d,g,k){d.eb();var m=Math.min(g.x,k.x),n=Math.min(g.y,k.y),p=Math.max(g.x,k.x);g=Math.max(g.y,k.y);this.FHa(m,p,n,g,d);e.model.C.F.sl&&this.bxa(m,p,n,g,d);k=this.coords.Xt;var t=this.coords.we+this.coords.zy,r=Math.max(this.coords.we,this.coords.Eo(n,this.la.ac)-1),w=this.coords.Eo(g+1,this.la.ac),y=Math.min(t,w),A=Math.max(0,this.coords.Ul(m,this.la.ac)-1),C=this.coords.Ul(p+1,this.la.ac),B=Math.min(k,C),I=y-r,L=B-A;2>=L||2>=I?null!=d.Kj&&
d.Kj.eb():A<k&&r<t?(null!=d.Kj&&(d.Kj.show(),d.Kj.top=r,d.Kj.left=A,d.Kj.width=L,d.Kj.height=I,this.Mq.Il.bottom*this.Mq.Il.right<=B*y&&(this.Mq.Il.left=A,this.Mq.Il.right=B,this.Mq.Il.bottom=y,this.Mq.Il.dha=C)),n<this.coords.ge&&C>B&&(d.dba(),d.Wk.top=r,d.Wk.left=B,d.Wk.width=Math.min(C,this.coords.Up)-B,d.Wk.height=Math.min(y,this.coords.we+this.coords.Xq)-r,d.Wk.Wa("fm-clear-border-bottom",g>this.coords.ge),d.Wk.Wa("fm-clear-border-right",C>this.coords.Up),d.Wk.Fd("fm-clear-border"),d.Wk.show()),
m<this.coords.Od&&w>y&&(d.kba(),d.nl.top=y,d.nl.left=A,d.nl.width=Math.min(B,this.coords.mq)-A,d.nl.height=Math.min(w,this.coords.Bs)-y,d.nl.Wa("fm-clear-border-bottom",w>this.coords.Bs),d.nl.Wa("fm-clear-border-right",p>this.coords.Od),d.nl.Fd("fm-clear-border"),d.nl.show()),null!=d.Kj&&(d.Kj.Wa("fm-clear-border-right",C>B),d.Kj.Wa("fm-clear-border-bottom",w>y))):null!=d.Kj&&d.Kj.eb()}jxa(d,g){if(!isNaN(d)){null==g.Ko&&g.lba();var k=this.coords.Eo(d,this.la.ac);d=this.coords.Eo(d+1,this.la.ac);var m=
Math.min(this.coords.we+this.coords.zy,d);k<this.coords.we+this.coords.zy?(g.Ko.left=0,g.Ko.top=k,g.Ko.width=this.coords.Xt,g.Ko.height=m-k,g.Ko.show(),d>m&&(g.kba(),g.nl.top=m,g.nl.left=0,g.nl.width=this.coords.mq,g.nl.height=Math.min(d,this.coords.Bs)-m,g.nl.$("fm-clear-border"),g.nl.show())):g.Ko.eb()}}ixa(d,g){if(!isNaN(d)){null==g.mo&&g.eba();var k=this.coords.Ul(d,this.la.ac);d=this.coords.Ul(d+1,this.la.ac);var m=Math.min(this.coords.Xt,d);k<this.coords.Xt?(g.mo.left=k,g.mo.top=this.coords.we,
g.mo.width=m-k,g.mo.height=this.coords.zy,g.mo.show(),d>m&&(g.dba(),g.Wk.top=this.coords.we,g.Wk.left=m,g.Wk.width=Math.min(d,this.coords.Up)-m,g.Wk.height=this.coords.Xq,g.Wk.$("fm-clear-border"),g.Wk.show())):g.mo.eb()}}bxa(d,g,k,m,n){this.$wa(n.mo,d,g);this.axa(n.Ko,k,m)}FHa(d,g,k,m,n){if(!this.Ai.gha.hasOwnProperty(k.toString())){n.lba();for(var p=k;p<=m;p++)this.Ai.gha[p.toString()]=k==m&&d==g?a.D8:a.eO}if(!this.Ai.Qaa.hasOwnProperty(d.toString()))for(n.eba(),p=d;p<=g;p++)this.Ai.Qaa[p.toString()]=
k==m&&d==g?a.D8:a.eO}$wa(d,g,k){null!=d&&(g=this.coords.Ul(g,this.la.ac),k=Math.min(this.coords.Up,this.coords.Ul(k+1,this.la.ac)),g<this.coords.Up?(d.left=g,d.top=this.coords.we,d.width=k-g,d.height=this.coords.Eu(),d.show()):d.eb())}axa(d,g,k){null!=d&&(g=this.coords.Eo(g,this.la.ac),k=Math.min(this.coords.Bs,this.coords.Eo(k+1,this.la.ac)),d.left=0,d.top=g,d.width=this.coords.xs(),d.height=k-g,d.show())}}f.Lpa=b;class a{}a.D8=1;a.eO=2;f.x6=a;class c{constructor(d){this.la=this.nK=this.$J=this.SF=
this.wF=this.XP=null;this.la=d;this.XP=this.lL()}lL(){var d=new x.Ea("div","fm-sheet-selection-canvas");d.eb();this.la.W(d);return d}eba(){null==this.wF&&(this.wF=this.lL(),this.wF.$("fm-sheet-selection-header"))}lba(){null==this.SF&&(this.SF=this.lL(),this.SF.$("fm-sheet-selection-header"))}kba(){null==this.nK&&(this.nK=this.lL(),this.nK.$("fm-clear-border-top"))}dba(){null==this.$J&&(this.$J=this.lL(),this.$J.$("fm-clear-border-left"))}get kw(){return this.Xqa}set kw(d){this.Xqa=d}get nl(){return this.nK}get Wk(){return this.$J}get Ko(){return this.SF}set Ko(d){this.SF=
d}get mo(){return this.wF}set mo(d){this.wF=d}get Kj(){return this.XP}set Kj(d){this.XP=d}eb(){this.mo&&this.mo.eb();this.Ko&&this.Ko.eb();this.Wk&&this.Wk.eb();this.nl&&this.nl.eb();this.Kj&&this.Kj.eb()}remove(){null!=this.Kj&&(this.Kj.remove(),this.XP=null);null!=this.mo&&(this.mo.remove(),this.wF=null);null!=this.Ko&&(this.Ko.remove(),this.SF=null);null!=this.Wk&&(this.Wk.remove(),this.$J=null);null!=this.nl&&(this.nl.remove(),this.nK=null);this.la=null}}f.b9=c})(h.sheet||(h.sheet={}))})(l.Y||
(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.W9=null}PHa(a,c){this.Gm=this.Vxa(c);const d=null==this.Gm?e.model.ec.gj.RS().clone():this.Gm.Yh(this.Gm.A,this.Gm.aa).clone();d.Ml=d.Ml==e.model.ec.gj.Tca().Ml?2:d.Ml;for(var g=0;g<a.Bz.length;g++){var k=this.Qta(a.Bz[g],c);0!=k?a.gi(a.Bz[g],this.Nza(k,a.Bz[g],d.clone())):a.eBa(a.Bz[g])}this.Gm=null}Nza(a,c,d){var g="count"==c||null!=this.Gm&&e.u.i.da.Rf(this.Gm.aa),k="count"!=c&&null!=this.Gm&&e.u.i.da.de(this.Gm.aa),
m=null!=this.Gm&&this.Gm.type==e.u.i.Pa.dc&&e.u.i.da.Zo(this.Gm.aa);d.de="count"==c?!1:d.de;d.rd=null!=this.Gm&&this.Gm.aa==e.u.i.da.Ji?"":d.rd;return m&&!isNaN(a)&&"count"!=c?e.P.Cx(a,e.model.C.F.Wo):u.Yb.format(a,d,g,k)}Qta(a,c){switch(a){case "sum":return this.Tta(c);case "average":return this.Rta(c);case "count":return this.Sta(c)}return 0}Tta(a){for(var c=0,d=0;d<a.length;d++)c+=a[d].ci&&!isNaN(a[d].value)&&this.WT(a[d])?a[d].value:0;return c}Rta(a){for(var c=0,d=0,g=0;g<a.length;g++)a[g].ci&&
!isNaN(a[g].value)&&this.WT(a[g])&&(c+=a[g].value,d++);return 0==d?0:c/d}Sta(a){for(var c=0,d=0;d<a.length;d++)(a[d].ci&&!isNaN(a[d].value)||a[d].dl&&a[d].ci&&""!=a[d].label)&&c++;return c}Vxa(a){for(var c=null,d=0;d<a.length;d++)if(this.WT(a[d])&&null==c&&!e.v(a[d].measure))c=a[d].measure;else if(this.WT(a[d])&&null!=c&&c.A!=a[d].measure.A){c=null;break}return c}WT(a){return a.dl&&a.ci&&!isNaN(a.value)||a.ci&&null!=a.measure&&!isNaN(a.value)&&e.u.i.Pa.xc!=a.measure.type&&e.u.i.Pa.Sa!=a.measure.type&&
e.u.i.Pa.Jc!=a.measure.type}get Gm(){return this.W9}set Gm(a){this.W9=a}}f.Hja=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ea{constructor(c=null){super("div","fm-auto-calculation-bar");this.MY=["average","count","sum"];this.fR={};this.dQ={right:-1E3,bottom:1E3};this.Uqa=new e.tb;this.MY=null==c?this.MY:c;this.mBa();this.He()}mBa(){this.fR.average=e.model.B.j.N5;this.fR.sum=e.model.B.j.Z8;this.fR.count=e.model.B.j.s6}get vp(){return this.Uqa}He(){this.XY=new x.Ea("div");this.XY.R("position","relative");this.W(this.Sga);this.Sqa=new x.Ea("div","fm-auto-calculation-bar-conainer");
this.bw.R("position","absolute");this.XY.W(this.bw);for(var c,d=0;d<this.Bz.length;d++)c=new a,c.UIa(this.fR[this.Bz[d]]),this.bw.W(c),this.vp.Ta(this.Bz[d],c)}EBa(){return-1E3!=this.dQ.right&&1E3!=this.dQ.bottom}gi(c,d){this.vp.getItem(c).VIa(d)}eBa(c){this.vp.getItem(c).eb()}get bw(){return this.Sqa}get Sga(){return this.XY}bDa(){for(var c,d=0;d<this.vp.length;d++)c=this.vp.ea(d),c.visible||c.show()}wBa(){for(var c=0;c<this.vp.length;c++)if(this.vp.ea(c).visible)return!1;return!0}get Il(){return this.dQ}get Bz(){return this.MY}iIa(){this.dQ=
{right:-1E3,bottom:1E3}}clear(){for(;0<this.vp.length;)this.vp.ea(0).dispose(),this.vp.h4(0);this.dispose()}}f.Gja=b;class a extends x.Ea{constructor(){super("div","fm-auto-calculation-bar-content");this.display="inline-block";this.He()}He(){this.jaa=new x.Ea("div","fm-auto-calculation-bar-content-text");this.W(this.jaa);this.kaa=new x.Ea("div","fm-auto-calculation-bar-content-results");this.W(this.kaa)}show(){this.element.style.display=this.display}UIa(c){this.jaa.text(c+":")}VIa(c){this.kaa.text(c)}}
f.ZKa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
class $a extends x.Ea{constructor(){super("div","fm-scroll-pane");this.H$=()=>this.C3();this.OF=!1;this.jY=this.iY=0;u.hj.Ho&&this.$("fm-scrollbars");this.Kt=new x.Ea("div","fm-scroll-placeholder");this.cQ=new x.Ea("div","fm-scroll-content");this.W(this.Kt);this.W(this.cQ);this.element.addEventListener("scroll",this.H$,!0)}C3(){if(this.OF)return this.OF=!1;this.$a(bb)}get rC(){return this.Kt.width}set rC(e){this.Kt.width=e}get o_(){return this.Kt.height}set o_(e){this.Kt.height=e}get scrollLeft(){return this.element.scrollLeft}set scrollLeft(e){this.OF=
!1;this.element.scrollLeft=Math.max(0,e)}set uN(e){this.OF=!0;this.element.scrollLeft=Math.max(0,e)}get scrollTop(){return this.element.scrollTop}set scrollTop(e){this.OF=!1;this.element.scrollTop=Math.max(0,e)}set wN(e){this.OF=!0;this.element.scrollTop=Math.max(0,e)}get placeholder(){return this.Kt}get content(){return this.cQ}get js(){return this.iY}set js(e){this.iY=e;this.cQ.left=-this.iY}get qC(){return this.jY}set qC(e){this.jY=e;this.cQ.top=-this.jY}set hBa(e){this.element.style.overflowX=
e?"scroll":"hidden"}set JKa(e){this.element.style.overflowY=e?"scroll":"hidden"}dispose(){this.element&&this.element.removeEventListener("scroll",this.H$);super.dispose()}}var bb="fm_scroll_event";
(function(e){(function(l){(function(h){(function(f){class b extends f.gO{constructor(a){super(a,null);this.ca=a}kb(){var a=[],c=new Qa;if(e.model.C.F.sl){c.tag="div";c.$("fm-row");c.text+=ab(this.lwa());for(var d=0;d<this.ca.Od;d++)c.text+=ab(this.gba(d));a.push(ab(c));for(d=0;d<this.ca.ge;d++)c.text=ab(this.UR(d)),a.push(ab(c))}a=a.join("");this.element.innerHTML!=a&&this.html(a)}clear(){}}f.Opa=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
class cb{constructor(){this.text=this.tag="";this.style={};this.attr={};this.classes=[];this.addClass=function(e){0>this.classes.indexOf(e)&&this.classes.push(e)};this.toHtml=function(){var e="<"+this.tag,l=[],h;for(h in this.style)l.push(h+":"+this.style[h]);0<l.length&&(e+=' style="'+l.join(";")+';"');0<this.classes.length&&(e+=' class="'+this.classes.join(" ")+'"');for(var f in this.attr)e+=" "+f+'="'+this.attr[f]+'"';return e+=">"+(this.text||"")+"</"+this.tag+">"};this.tag="div"}}
function ab(e,l=!0){var h=e.node.toHtml();l&&e.clear();null!=q.K.Y.X.ke.uw&&(h=q.model.Tb.valid(h)?h:q.model.Tb.validate(h));return h}
class Qa{constructor(e="div"){this.Jra=new cb;this.clear();this.tag=e}get node(){return this.Jra}get tag(){return this.node.tag}set tag(e){this.node.tag=e}get text(){return this.node.text}set text(e){this.node.text=e}get style(){return this.node.style}set style(e){this.node.style=e}get attr(){return this.node.attr}set attr(e){this.node.attr=e}$(e){this.node.addClass(e)}clear(){this.tag="div";this.text="";this.style={};this.attr={};this.node.classes=[]}}
(function(e){(function(l){(function(h){(function(f){class b extends f.KE{kb(){this.Vz();var a=this.Co();if(this.ac||this.ca.xD(a.bottom)||this.ca.wD(a.right)||!this.nm.contains(a)){var c=a.clone();0!=this.ca.vj&&(c.right=Math.min(c.right,this.ca.vj));0!=this.ca.il&&(c.bottom=Math.min(c.bottom,this.ca.il));if(!this.ac||!this.li.contains(c)||!this.ca.iw&&(a.left>this.ca.Od&&a.left<=this.li.left||a.top>this.ca.ge&&a.top<=this.li.top))this.ca.wD(a.right)&&(a.left=Math.max(a.left-1,this.ca.Od)),this.ca.xD(a.bottom)&&
(a.top=Math.max(a.top-1,this.ca.ge)),this.pb.content.html(this.yG(a)),this.ac=!1,this.nm.set(a)}}HK(){this.ac?(this.pb.qC=this.ca.scrollTop-this.ca.$t(this.ca.ge,this.li.top),this.pb.js=this.ca.scrollLeft-this.ca.au(this.ca.Od,this.li.left)):(this.pb.qC=-this.ca.fM(this.nm.top),this.pb.js=-this.ca.OL(this.nm.left))}Vy(){var a=this.pb.rC;this.Vz();a=this.pb.rC-a;var c=this.Co(!0);if(!(this.ac&&this.ca.iw&&this.li.contains(c))){var d=this.Fda(),g=this.Eda(),k=this.Co();this.li=c;this.pb.content.html(this.yG(c));
this.pb.qC=this.ca.$t(this.li.top,k.top)-d;this.pb.js=this.ca.au(this.li.left,k.left)-g;this.ac||this.ca.xD(this.nm.bottom)||(this.pb.wN=this.ca.bD(this.ca.gh,!1));this.ac||(this.ca.wD(this.nm.right)?(this.ca.GN=a,this.pb.js+=a):this.pb.uN=this.ca.OC(this.ca.jg,!1));this.ac=!0}}Co(a=!1){var c=new f.ME;c.top=this.ca.ZG(a);c.left=this.ca.YG(a);c.bottom=this.ca.fz(a);c.right=this.ca.NC(a);return c}Vz(){this.pb.rC=Math.max(this.ca.lu,this.ca.Dd-this.ca.cE);this.pb.o_=Math.max(this.ca.ku,this.ca.Cd-this.ca.bE);
this.pb.content.right=this.ca.cE;this.pb.content.bottom=this.ca.bE;this.pb.hBa=this.ca.iD;this.pb.JKa=this.ca.kD}jN(a,c){for(var d=[],g=this.Co(!0),k=g.top;k<g.bottom;k++)for(var m=0;m<a.length;m++){var n=a[m];this.F1(k,n)||(n=this.Ny(k,n),delete n.attr.tabindex,d.push(ab(n)))}var p=this.Fl.content.element.querySelector(".fm-row-hidden");null==p&&(p=document.createElement("div"),p.classList.add("fm-row"),p.classList.add("fm-row-hidden"),this.Fl.content.element.appendChild(p),this.Fl.content.element.insertBefore(p,
this.Fl.content.element.childNodes[0]));p.innerHTML=d.join("");this.requestAnimationFrame(()=>{for(var t=0;t<p.children.length;t++)this.TN(p.children.item(t),!1,!0);c()})}dispose(){super.dispose();this.pb.dispose()}}f.N6=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.KE{kb(){this.Vz();var a=this.Co();if(this.ac||this.ca.xD(a.bottom)||!this.nm.contains(a)){var c=a.clone();0!=this.ca.il&&(c.bottom=Math.min(c.bottom,this.ca.il));this.ac&&this.li.contains(c)||(this.ca.xD(a.bottom)&&(a.top=Math.max(a.top-1,this.ca.ge)),this.pb.content.html(this.yG(a,e.model.C.F.sl)),this.HQ=!1,this.nm.set(a))}}UR(a){this.cell=super.UR(a);this.cell.style["min-height"]=this.cell.style.height;delete this.cell.style.height;
delete this.cell.style["line-height"];return this.cell}HK(){this.pb.qC=this.ac?this.ca.scrollTop-this.ca.$t(this.ca.ge,this.li.top):-this.ca.fM(this.nm.top)}Co(a=!1){var c=new f.ME;c.top=this.ca.ZG(a);c.left=0;c.bottom=this.ca.fz(a);c.right=this.ca.Od;a&&c.bottom==this.ca.il&&c.bottom++;return c}Vy(){var a=this.Co(!0);if(!(this.ac&&this.ca.iw&&this.li.contains(a))){var c=this.Fda(),d=this.Co();this.li=a;this.pb.content.html(this.yG(a,e.model.C.F.sl));this.pb.qC=this.ca.$t(this.li.top,d.top)-c;this.ac||
this.ca.xD(this.nm.bottom)||(this.ca.scrollTop=this.pb.wN=this.ca.bD(this.ca.gh,!1));this.ac=!0}}DKa(a){for(var c=0;c<a.Ka.length;c++){const d=this.pb.content.element.querySelectorAll(`[data-c="${c}"]`);for(let g=0;g<d.length;g++)d.item(g).style.minWidth=this.ca.vh(c)+"px"}}Vz(){this.pb.o_=this.ca.ku+this.ca.bE;this.pb.content.bottom=0;this.pb.scrollTop=this.ca.scrollTop}C0(a,c){a=this.ca.PL(a,!0)-1;c=this.ca.gM(c)-1;var d=this.ln(c,a);null==d&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}}f.upa=b})(h.sheet||
(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.KE{constructor(a,c){super(a,c);this.pn=new f.oX(this);this.rQ=new f.Fma(this)}kb(){u.cancelIdleCallback(this.VJ);this.Vz();var a=this.Co();if(this.ac||this.ca.wD(a.right)||!this.nm.contains(a)){var c=a.clone();0!=this.ca.vj&&(c.right=Math.min(c.right,this.ca.vj));this.ac&&this.li.contains(c)||(this.ca.wD(a.right)&&(a.left=Math.max(a.left-1,this.ca.Od)),this.pn.qx(),this.rQ.qx(),this.pb.content.html(this.yG(a,!1,e.model.C.F.sl)),
this.pn.Tz(),this.rQ.Tz(),this.ac=!1,this.nm.set(a))}}HK(){this.pb.js=this.ac?this.ca.scrollLeft-this.ca.au(this.ca.Od,this.li.left):-this.ca.OL(this.nm.left)}Co(a=!1){var c=new f.ME;c.top=0;c.left=this.ca.YG(a);c.bottom=this.ca.ge;c.right=this.ca.NC(a);a&&c.right==this.ca.vj&&c.right++;return c}Vy(){var a=this.pb.rC;this.Vz();a=this.pb.rC-a;var c=this.Co(!0);if(!(this.ac&&this.ca.iw&&this.li.contains(c))){u.cancelIdleCallback(this.VJ);var d=this.Eda(),g=this.Co();this.li=c;this.pn.qx();this.rQ.qx();
this.pb.content.html(this.yG(c,!1,e.model.C.F.sl));this.pn.Tz();this.rQ.Tz();this.pb.js=this.ca.au(this.li.left,g.left)-d;this.ac||(this.ca.wD(this.nm.right)?this.pb.js+=a:this.pb.uN=this.ca.OC(this.ca.jg,!1));this.ac=!0}}Vz(){this.pb.rC=this.ca.lu+this.ca.cE;this.pb.content.right=0}Hta(){u.cancelIdleCallback(this.VJ);this.VJ=u.requestIdleCallback(()=>this.B9())}B9(){var a=this.ca.jza();if(0!=a.length){for(var c=[],d=0;d<this.ca.ge;d++)for(var g=0;g<a.length;g++){var k=a[g];this.F1(d,k)||(k=this.Ny(d,
k),delete k.attr.tabindex,c.push(ab(k)))}var m=this.Fl.content.element.querySelector(".fm-row-hidden");null==m&&(m=document.createElement("div"),m.classList.add("fm-row"),m.classList.add("fm-row-hidden"),this.Fl.content.element.insertBefore(m,this.Fl.content.element.childNodes[0]));m.innerHTML=c.join("");this.requestAnimationFrame(()=>{for(var n=0;n<m.children.length;n++)this.TN(m.children.item(n),!1,!0);this.VJ=u.requestIdleCallback(()=>this.B9())})}}jN(a,c){for(var d=[],g=0;g<this.ca.ge;g++)for(var k=
0;k<a.length;k++){var m=a[k];this.F1(g,m)||(m=this.Ny(g,m),delete m.attr.tabindex,d.push(ab(m)))}var n=this.Fl.content.element.querySelector(".fm-row-hidden");null==n&&(n=document.createElement("div"),n.classList.add("fm-row"),n.classList.add("fm-row-hidden"),this.Fl.content.element.insertBefore(n,this.Fl.content.element.childNodes[0]));n.innerHTML=d.join("");this.requestAnimationFrame(()=>{for(var p=0;p<n.children.length;p++)this.TN(n.children.item(p),!1,!0);c()})}C0(a,c){a=this.ca.PL(a)-1;c=this.ca.gM(c,
!0)-1;var d=this.ln(c,a);null==d&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}XK(){u.cancelIdleCallback(this.VJ)}dispose(){this.XK();super.dispose()}}f.A6=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ea{constructor(){super("div","fm-grid-layout");this.kia=1E3;this.xy=[];this.gK=!1;this.b_=a=>this.hEa(a);this.hha=a=>this.dGa(a);this.Vha=a=>this.nGa(a);this.yR=0;this.Ol();this.ca=new f.Ch;this.kn=new f.Npa(this.ca);this.sn=new f.Mpa(this);this.He();this.Ie(-1);this.preventScroll()}He(){this.B_();this.mwa();this.fba();this.kwa();this.Wva();this.jwa()}B_(){this.Xr=new x.Uc;this.Xr.G.display="block";this.Xr.$("fm-grid-title");this.Xr.$("fm-pivot-title");
this.Xr.KV(!0);this.Xr.G.R("position","relative");this.Xr.eb();this.RB(this.Xr)}mwa(){this.Wr=new f.Opa(this.ca);this.Wr.$("fm-sheet-headers");this.W(this.Wr)}fba(){this.od=new f.A6(this.ca,(a,c)=>this.kg(a,c));this.od.$("fm-cols-sheet");this.od.pb.element.addEventListener("wheel",this.b_);this.od.N(h.tc.Vn,a=>this.Dk(a));u.Kd().Mm&&(this.od.pb.R("overflow","scroll"),this.od.pb.placeholder.R("z-index","1"),this.od.pb.N(bb,()=>this.fEa(),!0));this.W(this.od)}kwa(){this.Ae=new f.upa(this.ca,(a,c)=>
this.kg(a,c));this.Ae.$("fm-rows-sheet");this.Ae.pb.element.addEventListener("wheel",this.hha);this.Ae.N(h.tc.Vn,a=>this.Dk(a));u.Kd().Mm&&(this.Ae.pb.R("overflow","scroll"),this.Ae.pb.placeholder.R("z-index","1"),this.Ae.pb.N(bb,()=>this.cGa(),!0));this.W(this.Ae)}Wva(){this.Vc=new f.N6(this.ca,(a,c)=>this.kg(a,c));this.Vc.$("fm-data-sheet");this.Vc.pb.N(bb,()=>this.tEa(),!0);this.Vc.N(f.KE.TW,a=>this.Yfa(a));this.Vc.N(f.KE.U6,a=>this.Yfa(a));this.Vc.N(h.tc.Vn,a=>this.Dk(a));this.W(this.Vc)}jwa(){this.Qr=
new f.Rka(this);this.Qr.$("fm-cols-resize");this.Qr.N(h.tc.mF,a=>this.cEa(a));this.W(this.Qr);this.Vr=new f.vpa(this);this.Vr.$("fm-rows-resize");this.Vr.N(h.tc.nF,a=>this.bGa(a));this.W(this.Vr);this.element.addEventListener("dblclick",this.Vha)}kb(a=!1){this.ca.Qha();this.ca.vR();this.Vc.width&&this.Vc.height||this.JG();this.ca.setScale();this.ca.GN=0;this.haa();e.ts(this.pY);this.N_();this.xy.push(this.requestAnimationFrame(()=>this.oY(a)))}N_(){for(;0<this.xy.length;)this.cancelAnimationFrame(this.xy.pop())}oY(a=
!1){this.$a(l.Ni.Jx,this,{smooth:!1});l.Mb.Fb.$a(l.Ni.Jx,this,{smooth:!1});const c=this.ca.kR();this.ac&&this.Ae.DKa(c);this.IG();this.gK&&(this.PZ()&&(this.ca.kR(),this.od.qG(),this.Ae.qG(),this.IG()),this.gK=!1);this.wL();e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.$o,{smooth:!1}));this.xy.push(this.requestAnimationFrame(()=>{this.JG();this.sn.kb()}));this.xy.push(this.requestAnimationFrame(()=>{var d=!a&&this.OZ();d?(this.od.qG(),this.Ae.qG(),this.Vc.qG(),this.kb(!0)):this.ca.Vta&&(e.ts(this.pY),
this.pY=e.Ce(()=>this.Vy(),this.kia));!d&&e.model.C.F.Uy&&this.LH()}));this.xy.push(this.requestAnimationFrame(()=>{this.$a(l.Ni.$o,this,{smooth:!1});l.Mb.Fb.$a(l.Ni.$o,this,{smooth:!1})}))}IG(){this.S_();this.ca.dW=this.Tda()?this.Xr.xd(!0):0;this.od.kb();this.od.HK();this.Ae.kb();this.Ae.HK()}wL(){this.Wr.kb();this.sn.kb();this.Qr.kb();this.Vr.kb();this.Vc.kb();this.Vc.HK()}S_(){this.Tda()?(this.Xr.cb(e.model.C.F.Pp),this.Xr.show()):this.Xr.eb()}Tda(){return!(e.ia(e.model.C.F.Pp)||this instanceof
f.flat.iJ&&this.dl)}PZ(){this.od.Cy(!0);this.Ae.Cy(!0);return this.od.tD||this.Ae.tD}OZ(){this.Vc.Cy(!0);this.od.Cy(!0);this.Ae.Cy(!0);return this.Vc.tD||this.od.tD||this.Ae.tD}Vy(){this.N_();this.xy.push(this.requestAnimationFrame(()=>this.lra()))}lra(){this.jN(()=>{l.Mb.Fb.$a(l.Ni.Jx,this,{smooth:!0});this.od.Vy();this.Ae.Vy();this.Vc.Vy();this.ca.scrollLeft=this.Vc.pb.scrollLeft;this.ca.scrollTop=this.Vc.pb.scrollTop;e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.$o,{smooth:!0}));this.type==f.flat.iJ.TYPE&&
e.model.C.F.Uy&&this.LH();this.ca.iw||0!=this.ca.scrollLeft||this.od.Hta();this.xy.push(this.requestAnimationFrame(()=>{l.Mb.Fb.$a(l.Ni.$o,this,{smooth:!0})}))})}jN(a){var c=this.ca.kza(this.ca.Co(!0));0==c.length?a():this.od.jN(c,()=>{this.Vc.jN(c,a)})}Yfa(a){a.type==f.KE.TW&&this.requestAnimationFrame(()=>{this.od.Aia();this.Ae.Aia()})}tEa(){this.C4(this.Vc.pb.scrollTop,this.Vc.pb.scrollLeft)}cGa(){this.C4(this.Ae.pb.scrollTop)}fEa(){this.C4(NaN,this.od.pb.scrollLeft)}dGa(a){if(this.coords.kD){var c=
a.wheelDeltaY||a.deltaY||a.wheelDelta||0;u.Kd().BM&&(c*=-40);u.Kd().Xi&&(c*=-1);isNaN(c)||0==c||(this.Vc.pb.scrollTop=this.ca.scrollTop-c);a.preventDefault()}}hEa(a){if(this.coords.iD){var c=a.wheelDeltaX||a.deltaX||0;u.Kd().BM&&(c*=-40);u.Kd().Xi&&(c*=-1);0!=c&&(this.Vc.pb.scrollLeft=this.ca.scrollLeft-c);a.preventDefault()}}preventScroll(){this.element.addEventListener("scroll",a=>{a.target.scrollTo(0,0)})}get slice(){return this.Qb}set slice(a){this.Qb=a}get type(){return this.yg}get coords(){return this.ca}JG(){this.width=
this.coords.Up;this.height=this.coords.Bs;this.Qr.left=0;this.Qr.top=this.coords.we;this.Qr.right=0;this.Qr.height=this.coords.Eu();this.Vr.left=0;this.Vr.top=this.coords.we;this.Vr.bottom=0;this.Vr.width=this.coords.xs()}get tr(){var a=[];if(0<this.v4.tr.length)for(var c,d=0;d<this.sn.tr.length;d++)null!=this.sn.tr.ea(d).Kj&&(c=this.sn.BG(this.sn.tr.ea(d).kw),this.GAa(a,c.from,c.Xo));return a}GAa(a,c,d){if(c&&d)for(var g=this.sn.wya(c,d);g<=this.sn.lKa(c,d);g++)for(var k=this.sn.oya(c,d);k<=this.sn.$Ja(c,
d);k++){var m=this.kg(g,k,!0);null==m&&(m=new h.X.ke,m.lb=g,m.qc=k);a.push(m)}}kg(a,c,d=!1){var g=this.kn.getData(a,c,!d);return d&&null==g?this.kn.Bza(a,c):g}insertCell(a,c,d,g=!1){this.kn.setData(a,c,d,g)}resize(a,c){this.ca.resize(a,c,!0)}set SC(a){this.kn.SC=a}Gha(a,c){this.ca.Dp=a;this.ca.Kl=c}Lca(a){a!=this.ca.ge&&(this.ca.gh=a+(this.ca.gh-this.ca.ge));this.ca.ge=a}mya(a){a!=this.ca.Od&&(this.ca.jg=a+(this.ca.jg-this.ca.Od));this.ca.jg<a&&(this.ca.jg=a);this.ca.Od=a}fs(){this.gK=!0;this.kn.reset();
this.ca.reset();this.od.nw();this.Ae.nw();this.Vc.nw();this.sn.clear();this.Vc.pb.scrollTop=0;this.Vc.pb.scrollLeft=0;this.XK()}clearData(){this.kn.reset();this.od.nw();this.Ae.nw();this.Vc.nw();this.ca.vR();this.ca.tua()}rG(a){this.gK=!0;this.ca.rG(a)}fC(a){this.gK=!0;this.ca.fC(a)}select(a,c,d,g){this.sn.select(new f.Jr(c,a),new f.Jr(g,d));this.element.focus({preventScroll:!0})}os(){this.sn.clear();this.element.blur()}XK(){this.N_();e.ts(this.pY);e.ts(this.Cua);this.od.XK()}dispose(){this.kn.dispose();
this.sn.dispose();this.XK();this.od.pb.element&&this.od.pb.element.removeEventListener("wheel",this.b_);this.od.dispose();this.Ae.pb.element&&this.Ae.pb.element.removeEventListener("wheel",this.hha);this.Ae.dispose();this.Vc.dispose();this.Qr.dispose();this.Vr.dispose();this.element&&this.element.removeEventListener("dbclick",this.Vha);super.dispose()}Dk(a){null!=a.cell&&this.Fa(a);this.aEa(a)}bq(a){this.Fa(a)}aEa(a){this.yR++;1==this.yR&&(this.Cua=e.Ce(()=>{if(1==this.yR){if(a.cell){var c=new h.H7(a.cell,
!0,a.element);this.Fa(c)}}else a.cell&&(c=new h.H7(a.cell,!1,a.element),this.Fa(c));this.yR=0},300))}C4(a=NaN,c=NaN){var d=!1;isNaN(a)||a==this.coords.scrollTop||(this.coords.scrollTop=a,this.coords.gh=this.coords.gM(a),this.Ae.pb.wN=a,d=!0);isNaN(c)||c==this.coords.scrollLeft||(this.coords.scrollLeft=c,this.coords.jg=this.coords.PL(c),this.od.pb.uN=c,d=!0);d&&this.kb()}cEa(a){this.Fa(a);this.ca.kR();0<a.data.width?this.ca.yN(a.data.qc,a.data.width,!1,!0):this.ca.hIa(a.data.qc);this.eS()}bGa(a){this.Fa(a);
this.ca.kR();0<a.data.height?this.ca.vx(a.data.lb,a.data.height,!1,!0):this.ca.jIa(a.data.lb);this.eS()}nGa(a){if(0!=e.model.C.F.sl){var c=this.lg(),d=a.clientX-c.left;a=a.clientY-c.top;d>this.coords.xs()&&a>this.coords.we+this.coords.Eu()||(a=this.coords.dT(a,this.ac),d=this.coords.JS(d,this.ac),-1!=a||isNaN(d)||this.Qr.$a(h.tc.mF,this,{width:-1,qc:d}),-1!=d||isNaN(a)||(this.Vr.$a(h.tc.nF,this,{height:-1,lb:a}),this.$a(h.tc.ipa,this,{height:-1,lb:a})))}}eS(){this.od.nw();this.Ae.nw();this.Vc.nw();
this.haa();this.kb()}haa(){if(0<this.coords.scrollLeft&&0<this.coords.lya){var a=Math.max(0,this.coords.lu-this.coords.Dd+this.coords.cE);this.coords.scrollLeft=a;this.coords.jg=this.coords.PL(a);this.Vc.pb.uN=a;this.od.pb.uN=a}0<this.coords.scrollTop&&0<this.coords.kya&&(a=Math.max(0,this.coords.ku-this.coords.Cd+this.coords.bE),this.coords.scrollTop=a,this.coords.gh=this.coords.gM(a),this.Vc.pb.wN=a,this.Ae.pb.wN=a)}Bu(a){var c=x.Ea.Vb(a);a=c.closest(".fm-cell");return null!=a?(c=parseInt(a.attr("data-r")),
a=parseInt(a.attr("data-c")),this.kg(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.ob.ea(a),c=new h.X.ke,c.label=a.caption,c.el=!0,c.hierarchy=a,c):null}Vca(a,c){c=this.coords.dT(c-this.offset().top,!1);a=this.coords.JS(a-this.offset().left,!1);let d=this.kg(c,a,!0);e.v(d)&&(d=new h.X.ke,d.lb=c,d.qc=a);return d}get ac(){return this.Vc.ac}sr(a){this.Vc.pb.scrollTop=this.coords.bD(a)}Us(a){this.Vc.pb.scrollLeft=
this.coords.OC(a)}HIa(){this.Vc.pb.scrollTop+=this.coords.Cd}KIa(){this.Vc.pb.scrollTop-=this.coords.Cd}JIa(){this.Vc.pb.scrollLeft+=this.coords.Dd}IIa(){this.Vc.pb.scrollLeft-=this.coords.Dd}get I(){return this.kn}get v4(){return this.sn}l4(a,c){this.coords.yN(a,c,!1,!0)}n4(a,c){this.coords.vx(a,c,!1,!0)}LH(){this.ps({Pm:(a,c,d,g)=>this.Pm(a,c,d,g),Om:(a,c,d,g)=>this.Om(a,c,d,g),Zl:(a,c,d,g)=>this.Zl(a,c,d,g)})}hba(a){var c=new x.Ea("span");c.$("fm-helper");c.$("fm-draggable");c.$("fm-header-helper");
c.R("position","absolute");c.R("z-index",100);c.text(a.element.firstChild.textContent);a=new x.Ea("i","fm-remove-icon");c.W(a);return c}Om(a,c,d,g){a&&a.Wa("fm-drag-remove",!1);c&&c.Wa("fm-drag-remove",!1);a=x.Ea.Vb(g.target);a.Rc("fm-header-drop-indicator")||this.rE(a,a)}Zl(a,c){this.dm();a&&a.Wa("fm-drag-remove",!0);c&&c.Wa("fm-drag-remove",!0)}Pm(){}rE(){}sw(){return this.wd?this.wd:new x.Ea("div","fm-header-drop-indicator")}dm(){this.wd&&(this.wd.Gg(!0),this.wd=null)}RU(a){e.ts(this.OCa);var c=
this.slice.Yc.fh(a.Pg);if(!e.v(c)){var d=this.fwa(c,a.value);if(c.filter.oz||null!=d)c.filter.oz&&a.value==c.filter.query.value||(this.OCa=e.Ce(()=>{e.model.Va.V().em(c.A,d);c.filter.zea=!0},300))}}fwa(a,c){var d={};if(e.model.hb.JA.WS(a)==e.u.i.qb.jb){a=parseFloat(c);if(isNaN(a))return null;d.query={equal:a}}else{if(e.ia(c))return null;d.query={contain:c}}return d}}f.Y5=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.gO{constructor(a){super(a,null);this.ca=a;this.vb=[];this.$("fm-filters");this.N(h.tc.Vn,c=>this.Dk(c));this.N("keydown",c=>this.JD(c));this.pn=new f.oX(this)}kb(){for(var a=[],c=new Qa,d=0;d<this.ca.ge;d++){c.tag="div";c.$("fm-row");for(var g=0;g<this.ca.Od;g++)if(e.model.C.F.Zs){var k=d-this.ca.ge+this.vb.length;c.text+=ab(this.RR(d,g,0<=k?this.vb[k]:null))}else c.text+=ab(this.Ny(d,g));a.push(ab(c))}a=a.join("");this.element.innerHTML!=
a&&(this.pn.qx(),this.html(a),this.pn.Tz())}RR(a,c,d){var g=this.vb.indexOf(d);this.cell.clear();this.cell.tag="div";this.cell.$(h.X.wa.Le);this.cell.$(h.X.wa.bk);this.cell.$(h.X.wa.uv);d?(this.cell.$(h.X.wa.Hf+g),this.cell.text=e.P.zo(d.caption,!0,!0).replace(/\n/g,"<br>"),d.HM&&(e.model.C.F.Nm?(this.pz(this.cell,d),this.cell.$(h.X.wa.oJ),this.cell.attr["data-h-name"]=d.A,this.cell.text+=this.pn.y_(d)):e.model.C.F.yx&&(this.cell.attr.title=e.model.B.j.bB,this.pz(this.cell,d)))):this.cell.$(h.X.wa.DW);
this.Bha(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}pz(a,c){a.$(h.X.wa.zq);c.filter.wh&&(a.$(h.X.wa.$W),a.text+=this.so(h.X.wa.$I,e.model.B.j.VX));a.text+=this.so(h.X.wa.fJ)}Xz(a){for(var c=this.vb.length=0;c<a.length;c++){var d=a.ea(c);0==d.Se&&this.vb.push(d)}}Dk(a){if(!e.model.C.F.Nm){var c=a.element;c.Rc(h.X.wa.zq)&&(c=parseInt(c.attr("data-h")),isNaN(c)||this.Fa(new h.LO(this.vb[c],a.cell)))}}JD(a){if(!e.model.C.F.Nm&&
(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.Fa(new h.MO(a,c))}}clear(){this.vb.length=0;this.kb()}}f.U8=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.gO{constructor(a){super(a,null);this.rowIndex=0;this.ca=a;this.vb=[];this.$("fm-filters");this.eb();this.N(h.tc.Vn,c=>this.Dk(c));this.N("keydown",c=>this.JD(c));this.pn=new f.oX(this)}kb(){this.pn.qx();this.ox();if(e.model.C.F.Zs){var a=new Qa("div");a.$("fm-row");a.style.height=this.ca.Vd(this.rowIndex)+"px";for(var c=0;c<this.vb.length;c++)a.text+=ab(this.RR(this.rowIndex,c,this.vb[c]));this.html(ab(a));this.pn.Tz();0==this.vb.length?
this.eb():this.show()}else this.eb()}RR(a,c,d){this.cell.clear();this.cell.tag="div";this.cell.$(h.X.wa.Le);this.cell.$(h.X.wa.bk);d&&(this.cell.text=e.P.zo(d.caption,!0,!0).replace(/\n/g,"<br>"),d.HM&&(e.model.C.F.Nm?(this.pz(this.cell,d),this.cell.$(h.X.wa.oJ),this.cell.attr["data-h-name"]=d.A,this.cell.text+=this.pn.y_(d)):e.model.C.F.yx&&(this.cell.attr.title=e.model.B.j.bB,this.pz(this.cell,d))));this.cell.style["min-height"]=this.ca.Vd(a)+"px";this.cell.style["max-height"]=this.ca.Vd(a)+"px";
this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=this.ca.jg+c;this.cell.attr["data-h"]=c;this.cell.attr.tabindex="0";return this.cell}pz(a,c){a.$(h.X.wa.zq);c.filter.wh&&(a.$(h.X.wa.$W),a.text+=this.so(h.X.wa.$I,e.model.B.j.VX));a.text+=this.so(h.X.wa.fJ)}Xz(a){for(var c=this.vb.length=0;c<a.length;c++){var d=a.ea(c);0==d.Se&&this.vb.push(d)}0==this.vb.length?this.eb():this.show()}Dk(a){if(!e.model.C.F.Nm&&(a=a.element,a.Rc(h.X.wa.zq))){var c=parseInt(a.attr("data-h"));isNaN(c)||this.Fa(new h.LO(this.vb[c],
null,a))}}JD(a){if(!e.model.C.F.Nm&&(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.Fa(new h.MO(a,c))}}clear(){this.vb.length=0;this.kb()}}f.Ska=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ea{constructor(){super();this.vb=[];this.$("fm-ui-hgroup");this.$("fm-filters");this.eb()}kb(){this.ox();if(e.model.C.F.yx&&e.model.C.F.kI){var c=[];for(let d=0;d<this.vb.length;d++){const g=this.vb[d];if(!g.HM){c.push(d);continue}const k=new a(g,!0);k.G.attr("data-h",d);k.N("click",()=>this.Dk(k));k.N("keydown",m=>this.JD(m,k));this.W(k.G)}0==this.vb.length||c.length==this.vb.length?this.eb():this.show()}else this.eb()}Xz(c){for(var d=
this.vb.length=0;d<c.length;d++){var g=c.ea(d);0==g.Se&&this.vb.push(g)}this.kb()}Dk(c){this.Fa(new h.LO(c.hierarchy,null,c.G))}JD(c,d){e.model.C.F.Nm||32!=c.keyCode&&13!=c.keyCode||this.Fa(new h.MO(0,0,d))}clear(){this.vb.length=0;this.kb()}get nb(){return 0==this.vb.length}}f.$oa=b;class a extends x.Md{constructor(c,d=!1){super();this.h$=!1;this.G.Yd();this.Cc=c;this.h$=d;this.cb(this.Cc.caption);this.Fd("fm-ui-btn");this.$(h.X.wa.zq);this.$(h.X.wa.bk);this.G.attr("title",e.model.B.j.bB);this.U9=
new x.Ea("i",h.X.wa.kX);this.U9.$(h.X.wa.fJ);this.G.append(this.U9);this.V9=new x.Ea("i",h.X.wa.kX);this.V9.$(h.X.wa.$I);this.G.append(this.V9);this.OT=this.Cc.filter.wh;this.h$&&(this.Ij=new x.Uc,this.Ij.cb(this.Jza()),this.Ij.$("fm-filter-desc"),this.W(this.Ij))}get hierarchy(){return this.Cc}get OT(){return this.G.Rc("fm-filtered")}set OT(c){this.G.Wa("fm-filtered",c)}Jza(){var c=e.model.B.j.aJ;this.hierarchy.filter.wh&&(c=1==this.hierarchy.gb.length?this.hierarchy.ya(this.hierarchy.gb[0]).caption:
e.model.B.j.gJ);return c}}f.kMa=a})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.Y5{constructor(){super();this.yg=b.TYPE;this.$("fm-compact-view")}He(){super.He();this.iwa();this.mba();this.Uva()}Uva(){this.dh=new f.Ska(this.ca);this.dh.$("fm-cols-filter");this.dh.N(h.tc.sv,a=>this.bq(a));this.dh.N(h.tc.pJ,a=>this.RU(a));this.dh.N(h.tc.mt,a=>this.Fa(a));this.W(this.dh)}mba(){this.me=new f.U8(this.ca);this.me.$("fm-rows-filter");this.me.N(h.tc.sv,a=>this.bq(a));this.me.N(h.tc.Vn,a=>this.Dk(a));this.me.N(h.tc.pJ,
a=>this.RU(a));this.me.N(h.tc.mt,a=>this.Fa(a));this.W(this.me)}iwa(){this.Qi=new f.$oa;this.Qi.$("fm-page-filter");this.Qi.N(h.tc.sv,a=>this.bq(a));this.Qi.N(h.tc.mt,a=>this.Fa(a));this.W(this.Qi)}IG(){this.ca.o0=this.Qi.nb?0:this.Qi.element.offsetHeight;super.IG();this.me.kb()}wL(){super.wL();this.dh.kb()}PZ(){this.me.Cy(!0);return super.PZ()||this.me.tD}OZ(){this.me.Cy(!0);return super.OZ()||this.me.tD}JG(){super.JG();this.Qi.nb||(this.Qi.top=this.ca.dW,this.Qi.left=0,this.Qi.right=0);this.Wr.top=
this.ca.we;this.Wr.left=0;this.Wr.width=this.ca.mq;this.Wr.height=this.ca.Xq;this.me.left=this.ca.OC(0,!0);this.me.top=this.ca.we+this.ca.bD(0,!0);this.dh.top=this.ca.we+this.ca.bD(this.dh.rowIndex,!0);this.dh.left=this.ca.mq;this.dh.right=Math.max(0,this.ca.Up-this.ca.Ul(this.ca.vj,this.ac));this.Qr.top=this.LHa()?this.ca.we:this.dh.xd();this.Vr.top=this.ca.we;this.od.left=this.ca.mq;this.od.top=this.ca.we;this.od.width=this.ca.Dd;this.od.height=this.ca.Bs-this.ca.we;this.Ae.left=0;this.Ae.top=this.ca.Xq+
this.ca.we;this.Ae.width=this.ca.Up;this.Ae.height=this.ca.Cd;this.Vc.left=this.ca.mq-parseInt(this.Vc.R("border-left-width"));this.Vc.top=this.ca.Xq+this.ca.we-parseInt(this.Vc.R("border-top-width"));this.Vc.width=this.ca.Dd;this.Vc.height=this.ca.Cd}LHa(){return!(this.dh.visible&&!e.model.C.F.sl)}eS(){super.eS();this.me.kb();this.dh.kb()}LH(){super.LH();for(var a={ro:g=>this.hba(g),$u:g=>this.$u(g)},c=this.dh.find(".fm-header:not(.fm-empty)",!0),d=0;d<c.length;d++)c[d].draggable(a);c=this.me.find(".fm-header:not(.fm-empty)",
!0);for(d=0;d<c.length;d++)c[d].draggable(a);c=this.Qi.find(".fm-header:not(.fm-empty)",!0);for(d=0;d<c.length;d++)c[d].draggable(a)}$u(a){if(a.Rc("fm-drag-remove")){var c=parseInt(a.attr("data-h"));const d=a.closest(".fm-filters");a=this.slice.clone();d==this.dh?(c=a.Db.ea(c).A,a.Ka.removeItem(c)):d==this.me?(c=a.yb.ea(c).A,a.rows.removeItem(c)):d==this.Qi&&a.ob.h4(c);e.model.Va.V().ne(a)}}Pm(a,c,d){d=this.kda(d);if(null==d)this.dm();else{var g=this.Gza(d,this.wd);this.dm();if(!isNaN(g)){var k=parseInt(a.attr("data-h")),
m=a.closest(".fm-filters");c=this.slice.clone();if(m==this.dh){var n=c.Db.ea(k);k=c.Ka.indexOf(n.A)}else m==this.me?(n=c.yb.ea(k),k=c.rows.indexOf(n.A)):m==this.Qi&&(n=c.ob.ea(k),k=c.ob.indexOf(n.A));null!=n&&(d==m&&k<g&&g--,d!=m||k!=g)&&(a.eb(),d==m?d==this.dh?(g=0<c.Ka.length&&c.Ka.YS().Se&&g>=c.Ka.length-1?c.Ka.length-2:g,c.Ka.G2(k,g)):d==this.me?(g=0<c.rows.length&&c.rows.YS().Se&&g>=c.rows.length-1?c.rows.length-2:g,c.rows.G2(k,g)):d==this.Qi&&c.ob.G2(k,g):(c.Ka.removeItem(n.A),c.rows.removeItem(n.A),
c.ob.removeItem(n.A),d==this.dh?(g=0<c.Ka.length&&c.Ka.YS().Se&&g>=c.Ka.length?c.Ka.length-1:g,c.Ka.DK(n.A,n,g)):d==this.me?(g=0<c.rows.length&&c.rows.YS().Se&&g>=c.rows.length?c.rows.length-1:g,c.rows.DK(n.A,n,g)):d==this.Qi&&c.ob.DK(n.A,n,g)),1<c.Ka.length&&c.Ka.ea(0).Se&&(a=c.Ka.ea(0),c.Ka.splice(0,1),c.Ka.DK(a.A,a,c.Ka.length)),e.model.Va.V().ne(c))}}}Gza(a,c){return a==this.dh?this.oza(c):a==this.me?this.Bda(c):a==this.Qi?this.mAa(c):NaN}oza(a){if(null!=a){a=a.index();if(a>this.slice.Ka.length)return this.slice.Ka.length;
var c=this.slice.Ka.indexOf("[Measures]");0<=c&&c<=a&&0!=a&&a++;return a}return NaN}Bda(a){if(null!=a){a=a.parent.Rc("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}mAa(a){return null!=a?(a=a.index(),a>this.slice.ob.length?this.slice.ob.length:a):NaN}kda(a){var c=a.closest(".fm-filters");if(null==c){var d=
a.closest(".fm-cell");null!=d?(d.attr("data-r"),a=parseInt(d.attr("data-c")),this.iCa(a)?c=this.dh:this.jCa(a)&&(c=this.me)):(a=a.closest(".fm-resize-handles"),null!=a&&(a.Rc("fm-cols-resize")?c=this.dh:a.Rc("fm-rows-resize")&&(c=this.me)))}return c}iCa(a){return a>=this.coords.Od}jCa(a){return a<=this.coords.Od}rE(a,c){a=this.kda(a);if(null==a)this.dm();else{var d=c.closest(".fm-header:not(.fm-empty)");null!=c.closest(".fm-filters")&&null!=d?(this.wd=this.sw(),a==this.Qi?d.before(this.wd):c.before(this.wd)):
(this.wd=this.sw(),a==this.dh?this.dh.find(".fm-row").append(this.wd):a==this.me?null!=c.closest(".fm-filters")?this.me.find(".fm-header").before(this.wd):this.yg==f.dC.pO.TYPE?this.me.find(".fm-header").parent.append(this.wd):this.me.append(this.wd):a==this.Qi&&this.Qi.append(this.wd))}}fs(){super.fs();this.dh.clear();this.Qi.clear();this.me.clear()}get DR(){return this.dh}get fha(){return this.me}get hga(){return this.Qi}dispose(){this.dh.Yd();this.dh.dispose();this.me.Yd();this.me.dispose();this.Qi.Yd();
super.dispose()}}b.TYPE="compact";f.qO=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ea{constructor(a){super("div","fm-resize-handles");this.kK=c=>this.kx(c);this.It=c=>this.lr(c);this.FB=c=>this.lx(c);this.kZ=c=>this.G3(c);this.Rv=new Qa;this.Ze=a;this.ca=a.coords;this.element.addEventListener("mousedown",this.kK);this.element.addEventListener("touchstart",this.kK);e.Dn.addEventListener("mouseup",this.It);e.Dn.addEventListener("touchend",this.It);e.Dn.addEventListener("touchcancel",this.It);this.Tv=new x.Ea("div",
"fm-indicator");this.Tv.eb();this.W(this.Tv);this.PB=new x.Ea("div","fm-wrapper");this.PB.attr("title",e.model.B.j.e9);this.W(this.PB);u.Kd().Mm&&this.$("fm-pointer-events-none");this.zg("hidden","true")}kb(){this.PB.attr("title",e.model.B.j.e9)}iu(a){this.Rv.tag="div";this.Rv.$("fm-handle");this.Rv.attr["data-idx"]=a;this.Rv.attr.title=e.model.B.j.cqa;return this.Rv}kx(a){if(a.target.classList.contains("fm-handle")){this.Kv=a.target;this.Kv.classList.add("fm-active");this.hB=this.lg();e.Dn.addEventListener("mousemove",
this.FB);e.Dn.addEventListener("touchmove",this.kZ);a.stopImmediatePropagation();var c=parseInt(this.Kv.getAttribute("data-idx"));this.KN(c);a.preventDefault();a.stopImmediatePropagation()}}KN(){}lr(){e.Dn.removeEventListener("mousemove",this.FB);e.Dn.removeEventListener("touchmove",this.kZ);if(this.Kv){this.Kv.classList.remove("fm-active");var a=parseInt(this.Kv.getAttribute("data-idx"));this.LN(this.Kv,a);this.Kv=null;this.Tv.eb()}}LN(){}G3(a){a=a.touches[0];this.bV(this.Kv,a.clientX-this.hB.left,
a.clientY-this.hB.top);this.Tv.show()}lx(a){var c=a.clientX-this.hB.left,d=a.clientY-this.hB.top;0>c||0>d||c>this.ca.Up||d>this.ca.Bs?this.lr(a):(this.bV(this.Kv,c,d),this.Tv.show())}bV(){}dispose(){this.element&&this.element.removeEventListener("mousedown",this.kK);e.Dn.removeEventListener("mousemove",this.FB);e.Dn.removeEventListener("mouseup",this.It);e.Dn.removeEventListener("touchmove",this.kZ);e.Dn.removeEventListener("touchend",this.It);e.Dn.removeEventListener("touchcancel",this.It);super.dispose()}}
f.S8=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.S8{kb(){super.kb();this.PB.ox();let a="";for(var c=0;c<this.ca.ge;c++)a+=ab(this.iu(c),!0);var d=this.ca.gh;for(c=Math.min(this.ca.il,this.ca.fz());d<c;d++)a+=ab(this.iu(d),!0);this.PB.html(a)}iu(a){super.iu(a);this.Rv.style.top=this.ca.Eo(a,this.Ze.ac,!1)+this.ca.Vd(a)+"px";return this.Rv}KN(a){this.hZ=this.ca.Eo(a,this.Ze.ac,!1)}LN(a,c){a=Math.round(a.offsetTop+a.clientHeight/2-this.hZ);a=this.ca.IL(a,f.Ch.NE,f.Ch.Cr);this.$a(h.tc.nF,
this,{height:a,lb:c})}bV(a,c,d){d=this.ca.IL(d,this.hZ+f.Ch.NE,this.hZ+f.Ch.Cr);a.style.top=d+"px";this.Tv.top=d;this.Tv.width=this.ca.Xt}}f.vpa=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.S8{kb(){super.kb();this.PB.ox();let a="";for(var c=0;c<this.ca.Od;c++)a+=ab(this.iu(c),!0);c=Math.min(this.ca.vj,this.ca.NC());for(var d=this.ca.jg;d<c;d++)a+=ab(this.iu(d),!0);this.PB.html(a)}iu(a){super.iu(a);this.Rv.style.left=this.ca.Ul(a,this.Ze.ac)+this.ca.vh(a)+"px";return this.Rv}KN(a){this.gZ=this.ca.Ul(a,this.Ze.ac)}LN(a,c){a=Math.round(a.offsetLeft+a.clientWidth/2-this.gZ);a=this.ca.IL(a,f.Ch.OE,f.Ch.yq);this.$a(h.tc.mF,
this,{width:a,qc:c})}bV(a,c){c=this.ca.IL(c,this.gZ+f.Ch.OE,this.gZ+f.Ch.yq);a.style.left=c+"px";this.Tv.left=c;this.Tv.height=this.ca.zy}}f.Rka=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.f$=!1;this.om=[];this.qn=[];this.dca=()=>this.EEa();this.oba=()=>this.DEa();this.Fca=()=>this.FEa();this.Ze=a;this.ca=a.coords;this.Ze.N(h.tc.Vn,c=>this.HD(c))}kb(){this.Qba(this.Fh)}set lha(a){this.G$=a}Jha(a=!0){this.f$=a}uia(){this.s4();null!=this.Fh&&(this.Fh.Gg(!0),this.Fh=null)}HD(a){this.stop();this.MBa(a.cell.qc)&&a.cell.ci&&this.$ba(a.cell)}MBa(a){return this.f$||-1<this.om.indexOf(a)}clear(){this.om=[];this.qn=
[];this.qd=null}$ba(a){!e.model.C.F.EC||null!=this.qd&&this.qd.lb==a.lb&&this.qd.qc==a.qc||(this.qd=a,this.Wwa(),this.Ze.v4.kb())}Fsa(a){this.qd.label=a+"\n"}get rea(){return null!=this.qd}stop(){e.model.C.F.EC&&(this.uia(),this.qd=null)}save(a){if((e.model.C.F.EC||this.rea)&&null!=this.qd){a=a.replace(/\n/gi,"<br>");if(this.qd.measure.type==e.u.i.Pa.Sa)this.qd.value=Date.parse(a);else if(this.qd.measure.type!=e.u.i.Pa.xc){a=a.replace(/,/gi,".");a=a.replace(/[^\d|\.|\-]/gi,"");this.qd.value=parseFloat(a);
const c=this.qd.measure.Yh(this.qd.measure.A,this.qd.measure.aa).clone();this.qd.label=u.Yb.format(this.qd.value,c)}else this.qd.label=a;null!=this.G$&&this.G$(this.qd.lb,this.qd.qc,this.qd.measure.type!=e.u.i.Pa.xc?this.qd.value:a);null!=this.qd&&this.Ze.I.sua(this.qd.lb,this.qd.qc)}}Wwa(){null!=this.qd&&this.qd.ci&&(null!=this.Fh&&(this.Fh.Yd(),this.Fh.Gg(),this.Fh=null),this.qd.lb<this.ca.ZG()||this.qd.qc<this.ca.YG()||this.qd.lb>this.ca.fz()||this.qd.qc>this.ca.NC()||(this.Fh=new x.Hv,this.Fh.$("fm-editing-cell"),
this.Ze.RB(this.Fh),this.Qba(this.Fh),this.qd.label=this.qd.label.replace(/<br\s*[\/]?>/gi,"\n"),this.Fh.zj(this.Hza(this.qd)),this.Fh.N(x.Hv.DA,this.dca),this.Fh.N(x.Hv.QW,this.oba),this.Fh.N(x.Hv.RW,this.Fca),this.Fh.G.focus(),this.Fh.selectAll(),this.Fh.show()))}Hza(a){return a.measure.type==e.u.i.Pa.xc?a.label:isNaN(a.value)?"":a.measure.type==e.u.i.Pa.Sa?(new Date(a.value)).toISOString().substr(0,10):a.value.toString()}Qba(a){if(a){this.qd.lb<this.ca.ZG()||this.qd.qc<this.ca.YG()||this.qd.lb>
this.ca.fz()||this.qd.qc>this.ca.NC()?a.eb():a.show();var c=Math.min(this.ca.vh(this.qd.qc),this.ca.Xt-this.ca.Ul(this.qd.qc,this.Ze.ac));a.G.R("left",this.ca.Ul(this.qd.qc,this.Ze.ac)-1+"px");a.G.R("top",this.ca.Eo(this.qd.lb,this.Ze.ac)-1+"px");a.Xj(c+1);a.pq(this.ca.Vd(this.qd.lb)+1)}}EEa(){this.Tga();this.s4();var a=this.Ze.kg(this.qd.lb+1,this.qd.qc);this.stop();null!=a?(a.lb>this.ca.fz()-3&&this.Ze.sr(this.ca.gh+1),this.$ba(a)):this.stop()}FEa(){this.Tga();this.s4();this.stop()}DEa(){this.rea&&
this.Fsa(this.Fh.Ti());this.Fh.zj(this.qd.label)}s4(){null!=this.Fh&&this.save(this.Fh.Ti());null!=this.qd&&(this.Ze.clearData(),this.Ze.kb())}Tga(){this.Fh.sb(x.Hv.DA,this.dca);this.Fh.sb(x.Hv.QW,this.oba);this.Fh.sb(x.Hv.RW,this.Fca)}}f.Bla=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.focused=null;this.zD=!1;this.target=a;this.target.N("keyup",c=>this.Sfa(c));this.target.N("paste",c=>this.Sfa(c));this.target.N("focusout",()=>this.V2())}y_(a){return"<div><input type='text' class='fm-ui-text-input' value='"+((a.filter.oz?a.filter.query.value:"")+"'></div>")}qx(){if(e.model.C.F.Nm&&(this.zD=!0,document.activeElement&&"input"==document.activeElement.tagName.toLowerCase())){var a=document.activeElement,
c=a.parentElement.parentElement.getAttribute("data-h-name");e.ia(c)?this.focused=null:this.focused={Pg:c,selectionStart:a.selectionStart,selectionEnd:a.selectionEnd,value:a.value}}}Tz(){if(e.model.C.F.Nm){if(null!=this.focused){var a=this.target.element.querySelector("."+h.X.wa.oJ+'[data-h-name="'+this.focused.Pg+'"] input');a&&(a.focus(),a.value=this.focused.value,a.selectionStart=this.focused.selectionStart,a.selectionEnd=this.focused.selectionEnd)}this.zD=!1}}V2(){this.zD||(this.focused=null)}Sfa(a){a=
a.target;var c=a.parentElement.parentElement.getAttribute("data-h-name");this.target.Fa(new h.lna(c,a.value))}}f.oX=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.focused=null;this.zD=!1;this.target=a;this.target.N("focusin",()=>this.qx());this.target.N("focusout",()=>this.V2())}qx(){if(!e.model.C.F.Nm&&(this.zD=!0,document.activeElement&&"columnheader"==document.activeElement.getAttribute("role"))){var a=document.activeElement;const c=a.getAttribute("data-c");this.focused=(a=a.getAttribute("data-r"))||c?{$Na:c,Ss:a}:null}}Tz(){if(!e.model.C.F.Nm){if(null!=this.focused){const a=
document.querySelector("."+h.X.wa.zq+`[data-c="${this.focused.col}"][data-r="${this.focused.row}"]`);a&&a.focus()}this.zD=!1}}V2(){this.zD||(this.focused=null)}}f.Fma=b})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.qO{constructor(){super();this.yg=a.TYPE;this.Fd("fm-compact-view");this.$("fm-classic-view")}mba(){this.me=new b.Pka(this.ca);this.me.$("fm-rows-filter");this.me.N(h.tc.sv,c=>this.bq(c));this.me.N(h.tc.Vn,c=>this.Dk(c));this.me.N(h.tc.pJ,c=>this.RU(c));this.me.N(h.tc.mt,c=>this.Fa(c));this.W(this.me)}IG(){this.CBa?super.IG():(e.Za(e.model.B.j.hoa,e.model.B.j.Ym,e.xb.Ym),e.model.Va.V().qq({gridType:h.te.uA}),e.model.Va.V().refresh())}get CBa(){return this.ca.Dd>
this.ca.wDa}Bda(c){var d=this.slice;if(null!=c){c=c.index();if(c>d.rows.length)return d.rows.length;d=d.rows.indexOf("[Measures]");0<=d&&d<=c&&0!=c&&c++;return c}return NaN}}a.TYPE="classic";b.pO=a})(f.dC||(f.dC={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.U8{constructor(c){super(c)}kb(){for(var c=[],d=new Qa,g=0;g<this.ca.ge;g++){d.tag="div";d.$("fm-row");for(var k=0;k<this.ca.Od;k++)d.text=e.model.C.F.Zs?d.text+ab(this.RR(g,k,g==this.ca.ge-1?this.vb[k]:null)):d.text+ab(this.Ny(g,k));c.push(ab(d))}this.pn.qx();this.html(c.join(""));this.pn.Tz()}}b.Pka=a})(f.dC||(f.dC={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.Y5{constructor(){super();this.Uy=this.yB=!1;this.yg=a.TYPE;this.$("fm-flat-view");this.N9=new f.Bla(this)}fba(){this.od=new b.Dma(this.ca,(c,d)=>this.kg(c,d));this.od.$("fm-cols-sheet");this.od.pb.element.addEventListener("wheel",this.b_);this.od.pb.N(bb,()=>this.gEa());this.od.N(h.tc.Vn,c=>this.Dk(c));this.od.N(h.tc.sv,c=>this.bq(c));this.od.N(h.tc.pJ,c=>this.RU(c));this.od.N(h.tc.mt,c=>this.Fa(c));this.W(this.od)}gEa(){this.Vc.pb.scrollLeft=
this.od.pb.scrollLeft}Dk(c){this.Uy||super.Dk(c)}bq(c){this.Uy||super.bq(c)}JG(){super.JG();this.Wr.top=this.ca.we;this.Wr.left=0;this.Wr.width=this.ca.mq;this.Wr.height=this.ca.Xq;this.od.left=this.ca.mq;this.od.top=this.ca.we;this.od.width=this.ca.Dd;this.od.height=this.ca.Bs-this.ca.we;this.Ae.left=0;this.Ae.top=this.ca.Xq+this.ca.we;this.Ae.width=this.ca.Up;this.Ae.height=this.ca.Cd;this.Vc.left=this.ca.mq-parseInt(this.Vc.R("border-left-width"));this.Vc.top=this.ca.Xq+this.ca.we-parseInt(this.Vc.R("border-top-width"));
this.Vc.width=this.ca.Dd;this.Vc.height=this.ca.Cd+parseInt(this.Vc.R("border-top-width"))}wL(){super.wL();this.N9.kb()}get yL(){return this.N9}get dl(){return this.yB}set dl(c){this.yB=c}LH(){if(!this.dl||e.u.Ra.V().ga.JT){super.LH();for(var c={ro:k=>this.hba(k),$u:k=>this.$u(k),jx:(k,m)=>this.jx(k,m),GU:k=>this.GU(k)},d=this.od.find(".fm-header",!0),g=0;g<d.length;g++)d[g].draggable(c)}}qea(c){if(e.v(c))return!1;c=this.Bu(c.element);return e.v(c)?!0:1===c.level||void 0===c.level}rE(c,d){c=d.closest(".fm-cell");
this.qea(c)?(c=parseInt(c.attr("data-c")),c=Math.min(c,this.coords.Kl),this.wd=this.sw(),this.wd.left=this.coords.Ul(c,this.ac)-(c==this.coords.Kl?0:this.wd.width),this.wd.top=this.ca.we+this.coords.Eo(0,this.ac)-1,this.wd.height=this.coords.Vd(0)+1,this.append(this.wd)):this.dm()}jx(c,d){return"input"==d.target.tagName.toLowerCase()||1<this.Bu(c.element).level?!1:!0}GU(){this.v4.clear();this.Uy=!0}$u(c){setTimeout(()=>{this.Uy=!1},100);if(c.Rc("fm-drag-remove"))if(c=parseInt(c.attr("data-c")),this.dl)this.$a(h.tc.I6,
this,{index:c});else{var d=this.slice.clone(),g=d.flatten(!0),k=g.ea(c);g.removeItem(k.A);d.Ka.Hb(k.A)?d.Ka.removeItem(k.A):d.rows.Hb(k.A)?d.rows.removeItem(k.A):d.ob.Hb(k.A)&&d.ob.removeItem(k.A);d.hd().find(m=>m.A===k.A)&&d.ZD(k.A);d.Ng=g.Nc(!0);e.model.Va.V().ne(d)}}Pm(c,d,g){this.dm();var k=g.closest(".fm-cell");if(null!=k){d=parseInt(c.attr("data-c"));g=parseInt(k.attr("data-c"));c=this.Bu(c.element);var m=this.Bu(k.element),n=c.hierarchy?c.hierarchy.ta.length:0;g=g>d?g-(0<n?n-2:0):g;d!==g&&
(this.dl?this.$a(h.tc.H6,this,{uya:d,gKa:g}):this.qea(k)&&(k=this.slice.clone(),0==k.Ng.length&&(k.Ng=k.flatten(!0).Nc(!0)),k.bBa&&void 0===c.level&&(n=d>g?1:-1,d=k.Ng.indexOf(c.hierarchy.A),g=null===m?g:k.Ng.indexOf(m.hierarchy.A),g=d===g?g+n:g),g=Math.max(0,Math.min(g,k.Ng.length)),d<g&&g--,e.Ja.F2(k.Ng,d,g),e.model.Va.V().ne(k)))}}}a.TYPE="flat";b.iJ=a})(f.flat||(f.flat={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){(function(b){class a extends f.A6{constructor(c,d){super(c,d);this.N(h.tc.Vn,g=>this.bq(g));this.N("keydown",g=>this.JD(g));this.N("focusin",g=>this.U2(g))}U2(c){const d=this.pb.content.element.scrollLeft;0!=d?(this.pb.content.pJa(),this.pb.scrollLeft=this.pb.element.scrollLeft+d):(c=parseInt(c.target.getAttribute("data-c")),!isNaN(c)&&this.ca.OC(c,this.ac)<this.ca.scrollLeft&&(this.pb.scrollLeft-=this.ca.Dd/2))}bq(c){null!=c.cell&&c.cell.el&&null!=
c.cell.hierarchy&&c.cell.QB!=h.X.Aq.JJ&&(e.model.C.F.Nm||this.Fa(new h.LO(c.cell.hierarchy,c.cell)))}JD(c){if(!e.model.C.F.Nm&&(32==c.keyCode||13==c.keyCode)){var d=c.target;c=parseInt(d.getAttribute("data-r"));d=parseInt(d.getAttribute("data-c"));isNaN(c)||isNaN(d)||this.Fa(new h.MO(c,d))}}Ny(c,d){this.cell=super.Ny(c,d);(c=this.ln?this.ln(c,d):null)&&c.el&&c.hierarchy.HM&&(e.model.C.F.Nm?(this.pz(this.cell,c.hierarchy),this.cell.$(h.X.wa.oJ),this.cell.text+=this.pn.y_(c.hierarchy),this.cell.attr["data-h-name"]=
c.hierarchy.A):e.model.C.F.yx&&(this.pz(this.cell,c.hierarchy),this.cell.attr.title=e.model.B.j.bB,this.cell.attr.tabindex="0",this.cell.text+=this.so(h.X.wa.fJ)));return this.cell}pz(c,d){c.$(h.X.wa.zq);d.filter.wh&&(c.$(h.X.wa.$W),c.text+=this.so(h.X.wa.$I,e.model.B.j.VX))}}b.Dma=a})(f.flat||(f.flat={}))})(h.sheet||(h.sheet={}))})(l.Y||(l.Y={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){e=e.K||(e.K={});e=e.pd||(e.pd={});e=e.gra||(e.gra={});e=e.xma||(e.xma={});e[e.HLa=0]="DESELECT";e[e.ILa=1]="DESELECT_ALL";e[e.ONa=2]="TOGGLE_EXPANDED";e[e.PNa=3]="TOGGLE_SELECTED";e[e.iNa=4]="MOVE_UP";e[e.dNa=5]="MOVE_DOWN";e[e.gNa=6]="MOVE_TO_ROWS";e[e.eNa=7]="MOVE_TO_COLUMNS";e[e.fNa=8]="MOVE_TO_FILTERS";e[e.hNa=9]="MOVE_TO_VALUES";e[e.KLa=10]="EDIT_CALCULATED_VALUE";e[e.FNa=11]="SELECT_AGGREGATION"})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div");this.mU=a=>this.r3(a);this.list=new x.zd.ij;this.list.hl=!0;this.list.ei(this.Su);this.list.qg("caption");this.list.Ie();this.list.N(v.fa.$d,a=>this.av(a));this.W(this.list);this.G.Ol();this.G.N("keydown",a=>{27==a.keyCode&&(this.close(),a.stopImmediatePropagation())});var b=new x.Ea("div","fm-arrow");this.G.W(b)}Po(b,a,c=-1){this.origin=a;this.DL=b;this.oca=c;this.setData(b);this.show();this.G.N("mouseleave",this.mU);
e.Dn.addEventListener("mousedown",this.mU);b=a.lg(this.G.element.offsetParent);this.G.R("right",this.G.element.offsetParent.clientWidth-b.left+"px");this.G.R("top",b.top-this.xd()/2+a.xd()/2+"px");this.Yv=document.activeElement;this.list.focus()}r3(b){"mousedown"==b.type&&this.G.JR(b)||(this.G.sb("mouseleave",this.mU),e.Dn.removeEventListener("mousedown",this.mU),this.close())}setData(b){let a=0;const c=[];for(let d=0;d<b.Wc.length;d++){const g={caption:b.RK[d],aa:b.Wc[d]};void 0!=b.ew&&(g.fW=b.ew[d]);
c.push(g);b.Wc[d]==b.aa&&(a=d)}this.list.Wf(c);this.list.Jk(a);this.list.G.wx(0)}av(b){this.close();this.$a(v.fa.$d,this,{DL:this.DL,oca:this.oca,DZ:b.data.ql,origin:this.origin})}Su(b,a){var c=new x.Ci.SX;c.setData(b);c.Tm(a);return c}close(){this.eb();this.Yv&&this.Yv.focus({preventScroll:!0})}}h.FI=f})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.Ft=this.tn=null}update(a,c,d,g){this.fe=a;this.Qb=c;this.ao=d;this.Ft=g;this.Jy();this.uq();this.VN()}uq(){this.ob=this.$C();this.rows=this.nH();this.tfa(this.rows);this.Ka=this.cH();this.tfa(this.Ka);this.Ba=this.hd();this.gDa(this.Ba);this.ZZ()}VN(){this.vb=[];this.Ye=[];this.ysa(this.vb,this.WG());this.pCa&&this.aIa(this.vb);this.Hsa(this.vb,this.us());e.model.C.F.iia&&this.bIa(this.vb);this.lI(this.vb);if(b.h0){b.h0=
!1;var a=this.vb.find(c=>c.A==="/"+e.model.B.j.l7);null!=a&&this.hca(a)}this.hl(this.ob);this.hl(this.Ka);this.hl(this.rows);this.hl(this.Ba)}Yu(a){if(null!=this.fe){var c=this.us().find(g=>g.A===a);if(null!=c){c.ng=!0;c.rl=this.wz;var d=this.Ba.findIndex(g=>g.A===a);0<=d?(c.G1=!0,this.Ba[d]=c):this.Ba.push(c)}this.VN()}}Zu(a){if(null!=this.Qb&&null!=this.fe){const c=this.Ba.findIndex(d=>d.A===a);-1<c&&this.Ba.splice(c,1);this.b5();this.VN()}}ZZ(){this.tn=null}b5(){this.tn={pages:this.ob,rows:this.rows,
columns:this.Ka,measures:this.Ba}}tfa(a){a=a.find(c=>"[Measures]"===c.A);null!=a&&(a.caption=e.model.B.j.HA,a.cU=!0)}gDa(a){for(var c=0;c<a.length;c++)a[c].ng=!0,a[c].rl=e.model.C.F.rl&&!a[c].Tg}hl(a){for(var c,d=0;d<a.length;d++){a[d].yd=!0;c=this.yca(a[d].A,a[d].ng);var g=this.Qb.wc().getItem(a[d].A);if(null!=c&&(this.aj(c,!0),c.Wi))for(var k=0;k<c.children.length;k++)g.gg==c.children[k].A&&this.aj(c.children[k],!0);a[d].Wi&&null!=g.oc&&(a[d].caption=a[d].caption+" / "+g.oc.caption)}}aj(a,c){a.yd=
c;null!=a.parent&&a.parent.yd!=c&&(1==c?this.aj(a.parent,c):0==this.cBa(a.parent.children)&&this.aj(a.parent,c));if(a.Wi&&0==c)for(var d=0;d<a.children.length;d++)this.aj(a.children[d],c)}cBa(a){for(var c=0;c<a.length;c++)if(!0===a[c].yd)return!0;return!1}Asa(a,c){var d=null;c=c.split(/[\/\\]/);for(var g="",k=null,m=0;m<c.length;m++){var n=c[m];if(!e.ia(n)){g=g+(e.ia(g)?"":"/")+n;var p="[Folder]."+g;(d=this.Ye.find(t=>t.A===p))?k=d:(d=new h.X.fj,d.wf=!0,d.A=p,d.caption=n,d.children=[],this.Ye.push(d),
k?(d.level=k.level+1,d.parent=k,k.children.push(d)):(d.level=0,a.push(d)),k=d)}}return d}ysa(a,c){for(var d,g,k,m=0;m<c.length;m++){k=this.fe.cf(c[m].A);var n=null!=k&&k.type!=e.u.i.Pa.xc,p=this.ao==e.u.i.qa.ag||this.ao==e.u.i.qa.API||this.ao==e.u.i.qa.JSON||this.ao==e.u.i.qa.Sh||this.ao==e.u.i.qa.Dq;c[m].Hea=null!=k&&k.type==e.u.i.Pa.jb;c[m].Uw=null!=k&&k.type==e.u.i.Pa.dc;c[m].IBa=null!=k&&k.type==e.u.i.Pa.Jc;e.ia(c[m].Mc)||!n&&!p?(d=a.find(t=>t.A===c[m].sL),null==d&&(d=new h.X.fj,d.wf=!0,d.A=c[m].sL,
d.caption=c[m].EG,d.children=[],d.level=0,d.description=d.description,a.push(d),this.Ye.push(d)),c[m].Qj?(k=e.ia(c[m].Mc)?d:g,k=k.children.find(t=>t.A===c[m].Pg),c[m].level=k.level+1,c[m].parent=k,null==k.children&&(k.children=[]),k.children.push(c[m]),k.Wi=!0):e.ia(c[m].Mc)?(c[m].level=1,c[m].parent=d,d.children.push(c[m])):(g=d.children.find(t=>t.A===d.A+c[m].Mc),null==g&&(g=new h.X.fj,g.wf=!0,g.A=d.A+c[m].Mc,g.caption=c[m].Mc,g.children=[],g.level=1,g.parent=d,g.description=d.description,d.children.push(g),
this.Ye.push(g)),c[m].level=2,c[m].parent=g,g.children.push(c[m]))):(g=c[m].Qj?this.Ye.find(t=>t.A===c[m].Pg):this.Ye.find(t=>t.A==="[Folder]."+c[m].Mc),null==g&&(g=this.Asa(a,c[m].Mc)),c[m].level=g.level+1,c[m].parent=g,e.v(g.children)&&(g.children=[]),g.children.push(c[m]));this.Ye.push(c[m])}}Hsa(a,c){for(let k=0;k<c.length;k++){c[k].ng=!0;c[k].rl=e.model.C.F.rl&&!c[k].Tg;c[k].Na&&(c[k].Dg=e.model.B.j.l7);var d=null;if(this.wz){var g=this.Gia(c[k].A);d=this.Ye.find(m=>m.A===g&&!m.wf)}this.wz&&
null!=d?(d.Vg=c[k],d.Vg.xT=d,c[k].parent=d.parent):""!==c[k].Dg?(d=this.Ye.find(m=>m.A==="[Folder]."+c[k].Dg+"/"+c[k].Mc),null==d&&(d=this.Gsa(a,c[k].Dg,c[k].Mc,c[k].Tg,c[k].Na)),c[k].level=d.level+1,c[k].parent=d,d.children.push(c[k])):(c[k].level=0,a.push(c[k]));this.Ye.push(c[k])}}Gsa(a,c,d,g=!1,k=!1){var m=null;d=d.split(/[\/\\]/);d.unshift(c);c="";for(var n=null,p=0;p<d.length;p++){var t=d[p];if(!e.ia(t)){c=c+(e.ia(c)?"":"/")+t;var r="[Folder]."+c;m=this.Ye.find(w=>w.A===r);e.v(m)&&0==p&&(m=
this.Ye.find(w=>w.caption===t))&&!m.wf&&(m=null);m?n=m:(m=new h.X.fj,m.wf=!0,m.A=r,m.caption=t,m.children=[],m.Ou=!0,m.Tg=g,m.xH=k,this.Ye.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}aIa(a){for(var c,d=0;d<a.length;d++)if(!0===a[d].wf&&1==a[d].children.length&&!0!==a[d].children[0].wf&&!a[d].children[0].Na&&(c=a[d].children[0],c.level=0,c.parent=null,a.splice(d,1,c),c.children))for(var g=0;g<c.children.length;g++)--c.children[g].level}bIa(a){for(var c=
0;c<a.length;c++)!0===a[c].wf&&!0!==a[c].xH&&(a[c]=this.C$(a[c].children,a[c]))}C$(a,c){for(var d=0;d<a.length;d++)!0===a[d].wf&&(a[d]=this.C$(a[d].children,a[d]));return 1==a.length&&!0!==a[0].wf?(a=a[0],a.level=c.level,a.parent=c.parent,a):c}lI(a){this.fe.Qu||(e.v(this.Ft)?a.sort((c,d)=>{var g=this.ZL(c),k=this.ZL(d);return g==k?c.caption.localeCompare(d.caption):k-g}):a.sort((c,d)=>this.Ft(h.X.fj.eW(c),h.X.fj.eW(d),"pivot")))}ZL(a){return!0===a.Qj?0:e.model.C.F.Je?a.xH?-1:0:!0===a.wf&&!0!==a.Ou?
3:!0!==a.wf&&!0!==a.ng?2:!0===a.wf&&!0===a.Ou?1:0}Naa(a){if(!this.Io){for(var c=this.vb.indexOf(a)+1,d=0;d<a.children.length;d++)!0===a.children[d].Sf&&this.Naa(a.children[d]);this.vb.splice(c,a.children.length);a.Sf=!1}}hca(a){if(!this.Io){var c=this.vb.indexOf(a)+1;a.Wi&&e.v(this.Ft)||this.lI(a.children);e.Ja.insert(this.vb,a.children,c);a.Sf=!0}}Gia(a){a=this.fe.Ck(a);return null!=a?a.A:""}iKa(a){a=this.fe.cf(a);return null!=a?a.A:""}fh(a){for(var c=0;c<this.Ye.length;c++)if(!this.Ye[c].ng&&!this.Ye[c].wf&&
this.Ye[c].A==a)return this.Ye[c]}gd(a){for(var c=0;c<this.Ye.length;c++)if(this.Ye[c].ng&&!this.Ye[c].wf&&this.Ye[c].A==a)return this.Ye[c]}yca(a,c=!1){return c?this.gd(a):this.fh(a)}Z1(){return 0<this.Ba.length}iM(){const a=new h.X.Ppa;a.ob=this.ob.map(d=>h.X.GP.CS(d));a.rows=this.rows.map(d=>h.X.GP.CS(d));a.Ka=this.Ka.map(d=>h.X.GP.CS(d));a.Ba=this.Ba.map(d=>h.X.GP.CS(d));a.Ng=this.Qb?this.Qb.Ng:[];a.ih=this.Qb?this.Qb.ih:[];if(this.Qb){if(this.Qb.cc.Yf){var c=this.Qb.cc.Qa();void 0===a.Bj&&(a.Bj=
{});a.Bj.row=c.sort}this.Qb.Rb.Yf&&(c=this.Qb.Rb.Qa(),void 0===a.Bj&&(a.Bj={}),a.Bj.column=c.sort)}return a}aU(a){return null==this.Qb?!0:this.IT(a.ob,this.Qb.ob.Nc())||this.IT(a.rows,this.Qb.rows.Nc())||this.IT(a.Ka,this.Qb.Ka.Nc())||this.IT(a.Ba,this.Qb.hd())}IT(a,c){if(a.length!=c.length)return!0;for(var d=0;d<c.length;d++)if(a[d].A!=c[d].A||a[d].aa!=c[d].aa||a[d].gg!=c[d].gg||a[d].G1)return!0;return!1}get wz(){var a=this.ao;return a==e.u.i.qa.Sh&&!e.model.C.F.Je||a==e.u.i.qa.Dq&&!e.model.C.F.Je||
a==e.u.i.qa.JSON&&!e.model.C.F.Je||a==e.u.i.qa.ag||a==e.u.i.qa.API}get MT(){for(var a=0;a<this.vb.length;a++)if((this.vb[a].wf||this.vb[a].Ou||this.vb[a].Wi)&&!this.vb[a].Sf)return!0;return!1}get Qda(){for(var a=0;a<this.vb.length;a++)if(this.vb[a].wf||this.vb[a].Ou||this.vb[a].Wi)return!0;return!1}Maa(){if(!this.Io){for(var a=0;a<this.vb.length;a++)if(this.vb[a].wf||this.vb[a].Ou||this.vb[a].Wi)this.vb[a].Sf=!1;var c=[];for(a=0;a<this.vb.length;a++)0==this.vb[a].level&&c.push(this.vb[a]);this.vb.splice(0,
this.vb.length);e.Ja.insert(this.vb,c,0)}}Qc(){if(!this.Io){this.Maa();for(var a=0;a<this.vb.length;a++)(this.vb[a].wf||this.vb[a].Wi)&&this.sra(this.vb[a],a+1)}}sra(a,c){a.Sf=!0;null!=a.children&&0<a.children.length&&(this.lI(a.children),e.Ja.insert(this.vb,a.children,c))}$C(){return null!==this.tn?this.tn.pages:null!=this.Qb?this.MR(this.Qb.ob):[]}nH(){return null!==this.tn?this.tn.rows:null!=this.Qb?this.MR(this.Qb.rows):[]}cH(){return null!==this.tn?this.tn.columns:null!=this.Qb?this.MR(this.Qb.Ka):
[]}hd(){return null!==this.tn?this.tn.measures:null!=this.Qb?h.X.fj.gL(this.Qb.hd()):[]}WG(){return null!=this.fe?this.MR(this.fe.wc(!1),!0):[]}us(){return null!=this.fe?h.X.fj.gL(this.fe.Ba.Nc()):[]}MR(a,c=!1){for(var d=[],g=0;g<a.length;g++){var k=a.ea(g),m=this.fe.cf(k.A),n=new h.X.fj;c||null==k.oc?(n.A=k.A,n.caption=k.caption,n.sL=k.si.A,n.EG=k.si.caption,n.Mc=k.Mc,n.Qj=!1,n.Wi=k.mg&&c):(n.A=k.oc.A,n.caption=k.oc.caption,n.sL=k.si.A,n.EG=k.si.caption,n.Pg=k.A,n.w1=k.caption,n.Qj=!0,n.Wi=!1);n.Tw=
m?m.Tw():!1;n.description=k.description;d.push(n);if(k.mg&&c)for(m=0;m<k.ta.length;m++)if(0!=m){var p=k.ta.ea(m);n=new h.X.fj;n.A=p.A;n.caption=p.caption;n.sL=k.si.A;n.EG=k.si.caption;n.Mc=k.Mc;n.Pg=k.A;n.w1=k.caption;n.Qj=!0;n.Wi=!1;n.Tw=!1;n.description=p.description;d.push(n)}}return d}search(a){a=a.toLowerCase();if(this.td!=a){this.td=a;this.Uz=[];for(var c=this.Ye.length,d=0;d<c;d++){var g=this.Ye[d];g.wf||g.ng&&this.wz&&!g.Na||!e.P.contains(g.caption,a)||(g.td=a,this.Nsa(g,this.Uz),this.Uz.push(g))}}}Nsa(a,
c){if(a.parent&&0>c.indexOf(a.parent)){for(var d=[];null!=a.parent;)d.push(a.parent),a=a.parent;d=d.reverse();for(a=0;a<d.length;a++)0>c.indexOf(d[a])&&c.push(d[a])}}Jy(){this.td="";this.Uz=null}get pCa(){return e.model.Va.V().Ia.ga.Da!=e.u.i.qa.Tc}get Io(){return!e.ia(this.td)}get $T(){return e.model.C.F.L4||this.Ye&&50<this.Ye.length}get rD(){return(!e.model.Va.V().Ia.ga.Gc||e.model.Va.V().Ia.ga.Da===e.u.i.qa.API)&&e.model.C.F.G4||e.model.C.F.bu&&e.model.Va.V().Ia.ga.Da===e.u.i.qa.Tc}get BT(){return this.rD&&
!this.Yc.nb}get Oa(){return this.Io?this.Uz:this.vb}get Yc(){return this.fe}mE(a){this.Qb=a}}b.h0=!1;f.H8=b})(h.Jt||(h.Jt={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends v.Ah{constructor(a,c){super();this.type="pivot";this.hK=!1;this.Fy=d=>this.Yu(d);this.Gy=d=>this.Zu(d);this.Hy=()=>this.XM();this.model=new f.H8;this.hK=c;this.view=this.Re?new f.cpa:new f.bpa(this,a);this.view.N(v.fa.CLOSED,d=>this.Fa(d));this.zd=[this.view.og,this.view.xf,this.view.Tf,this.view.Ub];this.view.Uh&&this.view.Uh.N(x.Md.mf,()=>this.KD());this.view.Ne&&this.view.Ne.N(x.Md.mf,()=>this.Is());null!=this.view.hg&&this.view.hg.N(v.fa.$d,
d=>this.H2(d));this.view.fb&&(this.view.fb.G.N("click",d=>this.b3(d)),this.view.fb.G.N("keydown",d=>this.c3(d)),this.view.fb.ps({Pm:d=>this.$Ea(d),O2:(d,g)=>this.Vfa(d,g),Om:(d,g)=>this.Vfa(d,g),Zl:(d,g,k,m)=>this.Zl(d,g,k,m),zz:"li"}),this.view.fb.G.Ol());a={Pm:(d,g,k,m)=>this.Pm(d,g,k,m),Om:(d,g,k,m)=>this.Om(d,g,k,m),Zl:(d,g,k,m)=>this.Zl(d,g,k,m),zz:"li",scroll:!0};this.view.og&&(this.view.og.ps(a),this.view.og.G.N("dblclick",d=>this.IU(d)),this.view.og.G.N("keydown",d=>this.JU(d,this.view.og)),
this.view.og.G.Ol());this.view.xf&&(this.view.xf.ps(a),this.view.xf.G.N("dblclick",d=>this.IU(d)),this.view.xf.G.N("keydown",d=>this.JU(d,this.view.xf)),this.view.xf.G.Ol());this.view.Tf&&(this.view.Tf.ps(a),this.view.Tf.G.N("dblclick",d=>this.IU(d)),this.view.Tf.G.N("keydown",d=>this.JU(d,this.view.Tf)),this.view.Tf.G.Ol());this.view.Ub&&(this.view.Ub.G.N("click",d=>this.xFa(d)),this.view.Ub.G.N("dblclick",d=>this.IU(d)),this.view.Ub.G.N("keydown",d=>this.JU(d,this.view.Ub)),this.view.Ub.ps(a),this.view.Ub.G.Ol());
this.view.pi&&this.view.pi.N(x.Md.mf,()=>this.BU());this.view.WB&&this.view.WB.N(x.Md.mf,()=>this.BU());this.view.Zt&&this.view.Zt.N(x.Md.mf,()=>this.eEa());this.view.he&&(this.view.he.yV(500),this.view.he.N(x.Hj.Mx,()=>this.cN()));this.view.qe&&(this.view.qe.N("click",()=>this.Js()),this.view.qe.N("keydown",d=>this.Kz(d,!1)));this.view.$i&&(this.view.$i.N("click",()=>this.Ks()),this.view.$i.N("keydown",d=>this.Kz(d,!0)))}get Re(){return this.hK}Is(){this.Re?e.ph.instance.YK():this.view.close()}KD(){this.ne();
this.view.close()}Kz(a,c){if(32===a.keyCode||13===a.keyCode)c?this.Ks():this.Js()}Js(){this.view.Ve.$("fm-search-opened");this.view.he.G.focus()}Ks(){this.view.Ve.Fd("fm-search-opened");this.view.he.clear();this.view.qe.G.focus()}cN(){this.model.search(this.view.he.Ti());this.view.fb.G.Wa("fm-searched",this.model.Io);this.view.fb.Wf(this.model.Oa);this.Nn(this.view.fb);this.view.Zt&&this.view.Zt.isVisible(this.model.Qda&&!this.model.Io)}ne(){var a=this.model.iM();this.model.aU(a)&&(a=e.u.O.Lr.zb(e.model.hb.pp.zb(a.Qa()),
this.model.Yc),this.Re&&(a.z2=!1,e.ph.instance.$D(),this.model.mE(a)),e.model.Va.V().ne(a))}Yu(a){e.model.Va.V().sb(l.Na.ak.qA,this.Fy);this.model.Yu(a.Cs);this.Vm();this.Re&&this.ne()}Zu(a){e.model.Va.V().sb(l.Na.ak.rA,this.Gy);this.model.Zu(a.Cs);this.Vm();this.Re&&this.ne()}XM(){this.view.rI=!1;e.model.Va.V().sb(l.Na.ak.sA,this.Hy);this.view.fb.focus({preventScroll:!0})}BU(){this.TH()}eEa(){this.model.MT?this.model.Qc():this.model.Maa();this.Nn(this.view.fb);this.view.Xf()}IU(a){var c=x.Ea.Vb(a.target).closest("ul");
null!=c&&(c=this.Jw(c),a=x.Ea.Vb(a.target).closest("li"),null!=a&&(a=parseInt(a.attr("data-index")),this.mV(c,a)))}xFa(a){a=x.Ea.Vb(a.target);var c=a.closest("li");if(null!=c){c=parseInt(c.attr("data-index"));var d=this.model.Ba[c];a.Rc("fm-aggr-display")?this.view.hg.Po(d,a,c):a.Rc("fm-calc-display")&&this.TH(d.A)}}H2(a){this.Yz(a.data.DL,a.data.DZ)}Yz(a,c){a.aa=c.aa;a.caption=e.model.C.F.xx?e.P.bind(c.fW,a.name):a.name;this.view.Ub.xr(a);let d=this.model.Oa.find(g=>g.A===a.A);null!=d&&(this.model.wz&&
null!=d.Vg&&(d=d.Vg),d.aa=a.aa,d.caption=a.caption,this.view.fb.xr(g=>g.A===d.A));this.Re&&this.ne()}TH(a=null){this.view.rI=!0;e.model.Va.V().Fa(new l.Na.HW(a));e.model.Va.V().N(l.Na.ak.qA,this.Fy);e.model.Va.V().N(l.Na.ak.sA,this.Hy);e.ia(a)||e.model.Va.V().N(l.Na.ak.rA,this.Gy)}ez(a){const c=[];for(let d=0;d<a.Wc.length;d++){const g={caption:a.RK[d],aa:a.Wc[d]};void 0!=a.ew&&(g.fW=a.ew[d]);c.push({label:e.u.i.da.fG(a.Wc[d]),isSelected:a.Wc[d]==a.aa,handler:()=>this.Yz(a,g)})}return c}JU(a,c){if(32===
a.keyCode||13===a.keyCode){if(this.view.Si){const d=c.Au();if(e.v(d))return;const g=[];!0!==d.data.cU&&g.push({label:e.model.B.j.YW,handler:()=>this.Lh(0,d.data,d.index,c)});0<d.index&&g.push({label:e.model.B.j.i7,handler:()=>this.Lh(4,d.data,d.index,c)});d.index<c.zc().length-1&&g.push({label:e.model.B.j.d7,handler:()=>this.Lh(5,d.data,d.index,c)});d.data.ng&&!d.data.Na&&g.push({label:e.model.B.j.XW,submenu:this.ez(d.data)});c!=this.view.xf&&this.Lu(d.data,c,this.view.xf)&&g.push({label:e.model.B.j.g7,
handler:()=>this.Lh(6,d.data,d.index,c)});c!=this.view.Tf&&this.Lu(d.data,c,this.view.Tf)&&g.push({label:e.model.B.j.e7,handler:()=>this.Lh(7,d.data,d.index,c)});c!=this.view.og&&this.Lu(d.data,c,this.view.og)&&g.push({label:e.model.B.j.f7,handler:()=>this.Lh(8,d.data,d.index,c)});c!=this.view.Ub&&this.Lu(d.data,c,this.view.Ub)&&g.push({label:e.model.B.j.h7,handler:()=>this.Lh(9,d.data.Vg,d.index,c)});d.data.Na&&g.push({label:e.model.B.j.ZW,handler:()=>this.Lh(10,d.data,d.index),preventFocusRestore:!0});
this.view.Si.Po(this.view.G,g,d.element.lg(),{top:10,left:10})}a.preventDefault()}}c3(a){if(32===a.keyCode||13===a.keyCode){if(this.view.Si){const c=this.view.fb.Au();if(e.v(c))return;if(c.data.wf){this.Lh(2,c.data,c.index);return}const d=[];c.data.Wi&&d.push({label:c.data.Sf?e.model.B.j.Ela:e.model.B.j.Fla,handler:()=>this.Lh(2,c.data,c.index)});this.P1(c.data)&&d.push({label:e.model.B.j.YW,handler:()=>this.Lh(1,c.data,c.index)});this.Lu(c.data,this.view.fb,this.view.xf)&&d.push({label:e.model.B.j.g7,
handler:()=>this.Lh(6,c.data,c.index,this.view.fb)});this.Lu(c.data,this.view.fb,this.view.Tf)&&d.push({label:e.model.B.j.e7,handler:()=>this.Lh(7,c.data,c.index,this.view.fb)});this.Lu(c.data,this.view.fb,this.view.og)&&d.push({label:e.model.B.j.f7,handler:()=>this.Lh(8,c.data,c.index,this.view.fb)});if(this.Lu(c.data,this.view.fb,this.view.Ub)){const g={label:e.model.B.j.h7,handler:()=>this.Lh(9,c.data.Vg,c.index,this.view.fb)};c.data.Hea?d.splice(this.P1(c.data)?1:0,0,g):d.push(g)}c.data.Na&&d.push({label:e.model.B.j.ZW,
handler:()=>this.Lh(10,c.data,c.index),preventFocusRestore:!0});this.view.Si.Po(this.view.G,d,c.element.lg(),{top:10,left:10})}a.preventDefault()}}Lh(a,c,d,g=null){1==a?(1==c.yd&&(this.model.aj(c,!1),this.tu(c)),null!=c.Vg&&1==c.Vg.yd&&(this.model.aj(c.Vg,!1),this.tu(c.Vg)),this.x5(this.view.fb,d),this.ct(),this.Re&&this.ne()):0==a?(this.mV(g,d),g.Ei(Math.min(d,g.zc().length-1))):6==a?(g==this.view.fb?this.ty(g,this.view.xf,d,this.model.rows.length):this.Fs(g,this.view.xf,d,this.model.rows.length),
g.Ei(Math.min(d,g.zc().length-1))):7==a?(g==this.view.fb?this.ty(g,this.view.Tf,d,this.model.Ka.length):this.Fs(g,this.view.Tf,d,this.model.Ka.length),g.Ei(Math.min(d,g.zc().length-1))):8==a?(g==this.view.fb?this.ty(g,this.view.og,d,this.model.ob.length):this.Fs(g,this.view.og,d,this.model.ob.length),g.Ei(Math.min(d,g.zc().length-1))):9==a?(g==this.view.fb?this.ty(g,this.view.Ub,d,this.model.Ba.length):this.Fs(g,this.view.Ub,d,this.model.Ba.length),g.Ei(Math.min(d,g.zc().length-1))):4==a?(this.Fs(g,
g,d,d-1),g.Ei(d-1)):5==a?(this.Fs(g,g,d,d+2),g.Ei(d+1)):2==a?(c.Sf?this.model.Naa(c):this.model.hca(c),this.Nn(this.view.fb),this.view.Xf()):10==a?this.TH(c.A):11==a&&this.view.hg.Po(c,null.find(".fm-aggr-display"))}b3(a){const c=this.view.fb.IC(a.target);if(!e.v(c))if(a=x.Ea.Vb(a.target),a.Rc("fm-aggr-display"))this.view.hg.Po(c.data,a);else if(a.Rc("fm-calc-display"))this.Lh(10,c.data,c.index);else if(c.data.wf||c.data.Wi&&!a.Rc("fm-moreicon-display"))this.Lh(2,c.data,c.index);else{if(this.P1(c.data))1==
c.data.yd&&(this.model.aj(c.data,!1),this.tu(c.data)),null!=c.data.Vg&&1==c.data.Vg.yd&&(this.model.aj(c.data.Vg,!1),this.tu(c.data.Vg));else if(c.data.ng&&c.data.Tw){this.model.aj(c.data,!0);a=[];for(var d in c.data)c.data[d]instanceof h.X.fj&&a.push(d);d=u.Sc.nj(c.data,a);this.model.Ba.push(d);this.Nn(this.view.Ub)}else if(c.data.Vg&&c.data.Tw&&c.data.Vg.type!=e.u.i.Pa.xc&&c.data.Vg.type!=e.u.i.Pa.Sa){this.model.aj(c.data.Vg,!0);a=[];for(d in c.data.Vg)c.data.Vg[d]instanceof h.X.fj&&a.push(d);d=
u.Sc.nj(c.data.Vg,a);this.model.Ba.push(d);this.Nn(this.view.Ub)}else{if(c.data.Qj)for(c.data.parent.yd&&this.tu(c.data.parent),d=0;d<c.data.parent.children.length;d++)a=c.data.parent.children[d],a.A!=c.data.A&&(a.yd&&this.tu(a),a.yd=!1);this.model.aj(c.data,!0);this.model.rows.push(c.data);this.Nn(this.view.xf)}this.x5(this.view.fb,c.index);this.ct();this.Re&&this.ne()}}x5(a,c){a.bt(c);c=a.zc()[c];null!=c.parent&&this.ZN(a,c.parent);if(c.Wi)for(var d=0;d<c.children.length;d++)a.xr(c.children[d]);
if(c.Qj)for(d=0;d<c.parent.children.length;d++)a.xr(c.parent.children[d])}ZN(a,c,d=null){a.xr(d||c);c.parent&&this.ZN(a,c.parent);if(c.Wi)for(d=0;d<c.children.length;d++)a.xr(c.children[d]);if(c.Qj)for(d=0;d<c.parent.children.length;d++)a.xr(c.parent.children[d])}jx(){return!0}$Ea(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.Jw(a.closest("ul"));a!=this.view.fb&&this.mV(a,c)}}Vfa(a,c){a&&a.closest("ul")&&(a=this.Jw(a.closest("ul")),a!=this.view.fb&&(c&&c.$("fm-drag-remove"),
a.G.Rc("fm-droppable")?c&&c.$("fm-droppable-valid"):c&&c.$("fm-droppable-invalid")))}Om(a,c,d,g){let k;g instanceof MouseEvent?(k=x.Ea.Vb(g.target),g=g.clientY):(g=g.changedTouches[0],k=x.Ea.Vb(document.elementFromPoint(g.clientX,g.clientY)),g=g.clientY);if(!k.Rc("fm-drop-indicator")&&(this.dm(),c&&(c.Fd("fm-no-drop"),c.Fd("fm-drag-remove")),a&&a.closest("ul"))){d instanceof x.zd.ij||(d=this.Jw(d));var m=this.Jw(a.closest("ul"));m.G.Rc("fm-droppable")&&(this.Lu(this.$ca(a,m),m,d)?this.rE(k,g):c.$("fm-no-drop"))}}P1(a){return a.yd||
a.Vg&&a.Vg.yd}Lu(a,c,d){return a.cU&&d!=this.view.Tf&&d!=this.view.xf||!1===a.Tw&&d==this.view.Ub||0==this.model.wz&&(d!=this.view.Ub&&(a.ng||a.Tg)||d==this.view.Ub&&!a.ng&&!a.Tg)||a.Na&&d!=this.view.Ub||a.children&&0<a.children.length&&d==this.view.Ub?!1:a.Na&&d==this.view.Ub&&c==this.view.Ub?!0:a.Na&&d==this.view.Ub?e.v(this.view.Ub.zc().find(g=>g.A===a.A)):c==this.view.fb&&null!=d.zc().find(g=>g.A===a.A)&&d!=this.view.Ub?!1:!0}$ca(a,c){a=parseInt(a.attr("data-index"));return c.zc()[a]}Zl(a,c){this.dm();
c&&(c.Fd("fm-no-drop"),c.Fd("fm-drag-remove"));if(a&&a.closest("ul")&&c){c.Fd("fm-droppable-valid");c.Fd("fm-droppable-invalid");const d=this.Jw(a.closest("ul"));a.Rc("fm-values")||d==this.view.fb||c.$("fm-drag-remove")}}Pm(a,c){if(null!=this.wd)if(a&&a.closest("ul")){c=c instanceof x.zd.ij?c:this.Jw(c);var d=this.Jw(a.closest("ul"));if(0==this.Lu(this.$ca(a,d),d,c))this.dm();else{var g=c.zc().length;this.wd.element.previousElementSibling?g=parseInt(this.wd.element.previousElementSibling.getAttribute("data-index"))+
1:this.wd.element.nextElementSibling&&(g=parseInt(this.wd.element.nextElementSibling.getAttribute("data-index")));this.dm();a=parseInt(a.attr("data-index"));d==this.view.fb&&c!=this.view.fb?this.ty(d,c,a,g):this.Fs(d,c,a,g);a=c.G.element.scrollTop;this.gja();c.G.wx(a);c.vN(g)}}else this.dm()}$u(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.Jw(a.closest("ul"));a!=this.view.fb&&this.mV(a,c)}}rE(a,c){const d=a.closest("li");null!=d?(this.wd=this.sw(),a=d.getBoundingClientRect(),
c>a.top+.75*a.height?d.after(this.wd):d.before(this.wd)):(c=a.closest("ul"),null!=c&&(this.wd=this.sw(),c.append(this.wd)))}sw(){return new x.Ea("div","fm-drop-indicator")}dm(){this.wd&&(this.wd.Gg(!0),this.wd=null)}Fs(a,c,d,g){var k=a.zc()[d];a==c?(a=c.zc(),d<g&&--g,a.splice(g,0,a.splice(d,1)[0])):(k=a.zc()[d],a.zc().splice(d,1),a.yr(),c==this.view.Ub&&(this.model.aj(k,!1),k=this.model.gd(this.model.iKa(k.Qj?k.Pg:k.A)),null!=k.xT&&this.model.aj(k.xT,!1)),a==this.view.Ub&&(-1==a.zc().findIndex(m=>
m.A===k.A)&&this.model.aj(k,!1),k=this.model.fh(this.model.Gia(k.A)),null!=k.Vg&&this.model.aj(k.Vg,!1)),null!=k&&(this.model.aj(k,!0),this.tu(k,null,!0),c.zc().splice(g,0,k)));this.Nn(c);this.ct();this.Re&&this.ne()}ty(a,c,d,g){var k=a.zc()[d];if(k.Qj){k.parent.yd&&this.tu(k.parent);for(d=0;d<k.parent.children.length;d++){var m=k.parent.children[d];m.A!=k.A&&(m.yd&&this.tu(m),m.yd=!1)}this.ZN(this.view.fb,k)}this.model.wz&&c==this.view.Ub&&null!=k.Vg&&(k=k.Vg);k.yd&&!k.ng?(this.model.aj(k,!1),this.tu(k,
a,!0),this.model.aj(k,!0)):(this.model.aj(k,!0),a=this.view.fb.zc().findIndex(p=>p.A===k.A),this.x5(this.view.fb,a));if(this.model.wz&&c==this.view.Ub&&k.ng){a=[];for(var n in k)k[n]instanceof h.X.fj&&a.push(n);k=u.Sc.nj(k,a)}c.zc().splice(g,0,k);this.Nn(c);this.ct();this.Re&&this.ne()}mV(a,c){if(!(a.zc().length<=c)){var d=a.zc()[c];if(!d.cU){a.zc().splice(c,1);this.Nn(a);if(!(d.ng&&-1<this.view.Ub.zc().findIndex(g=>g.A===d.A))){a=this.model.yca(d.A,d.ng);if(null!=a){this.model.aj(a,!1);const g=null!=
a.xT?a.xT:a;this.ZN(this.view.fb,g,k=>k.A===g.A);a.Qj&&(this.model.aj(a.parent,!1),this.ZN(this.view.fb,a.parent))}this.ct()}this.Re&&this.ne()}}}tu(a,c=null,d=!1){for(var g=-1,k=0;k<this.zd.length;k++)if(this.zd[k]!=c&&(this.zd[k]!=this.view.Ub||!d))for(var m=!0;m||-1<g;)m=!1,g=this.zd[k].zc().findIndex(n=>n.A===a.A||n.Pg===a.A),-1==g&&(g=this.zd[k].zc().findIndex(n=>n.A===a.A||n.Pg===a.A)),-1<g&&(this.zd[k].zc().splice(g,1),this.Nn(this.zd[k]))}Jw(a){return a.element==this.view.fb.G.element?this.view.fb:
a.element==this.view.og.G.element?this.view.og:a.element==this.view.xf.G.element?this.view.xf:a.element==this.view.Tf.G.element?this.view.Tf:a.element==this.view.Ub.G.element?this.view.Ub:null}update(a,c,d="",g=!0){g&&this.model.update(a,c,d,h.gp.pS);this.Vm(!0)}ct(){this.view.Uh&&this.view.Uh.oq(this.model.Z1())}get MT(){return this.model.MT}Vm(a=!1){this.view.reset&&this.view.reset();this.view.pi&&(this.view.pi.isVisible(this.model.rD),this.view.pi.oq(this.model.BT));this.view.WB&&(this.view.WB.isVisible(this.model.rD),
this.view.WB.oq(this.model.BT));this.view.fb&&this.view.fb.Wf(this.model.Oa,!1);this.view.og&&this.view.og.Wf(this.model.ob,!1);this.view.xf&&this.view.xf.Wf(this.model.rows,!1);this.view.Tf&&this.view.Tf.Wf(this.model.Ka,!1);this.view.Ub&&this.view.Ub.Wf(this.model.Ba,!1);this.view.Zt&&this.view.Zt.isVisible(this.model.Qda);this.view.Ve&&this.view.Ve.isVisible(this.model.$T);this.view.he&&(this.view.he.clear(!1),this.model.Jy());this.view.Xf();this.view.G.requestAnimationFrame(()=>{this.gja();a&&
e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.VE))})}Nn(a){a.yr();var c={jx:g=>this.jx(g),ro:g=>this.view.ro(g)};u.Kd().Mm&&(c.lT=".fm-drag-handle");var d=a.G.find("li",!0);if(a==this.view.fb)for(a=0;a<d.length;a++)d[a].Rc("fm-folder")&&!d[a].Rc("fm-level-folder")||d[a].draggable(c);else for(a.ps({Pm:(g,k,m,n)=>this.Pm(g,k,m,n),Om:(g,k,m,n)=>this.Om(g,k,m,n),Zl:(g,k,m,n)=>this.Zl(g,k,m,n),zz:"li",scroll:!0}),c.$u=g=>this.$u(g),a=0;a<d.length;a++)d[a].draggable(c)}gja(){try{this.ct(),this.Nn(this.view.fb),
this.Nn(this.view.og),this.Nn(this.view.xf),this.Nn(this.view.Tf),this.Nn(this.view.Ub)}catch(a){}}}f.G8=b})(h.Jt||(h.Jt={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.ay{constructor(a,c){super(c);this.xE=0;this.controller=a;this.$("fm-pivot-fields");this.He();this.G.Ol();this.G.Zi({QV:[x.Zi.ji.Hi,x.Zi.ji.YE,x.Zi.ji.pF],KR:l.Mb.Fb.G,FZ:!0,resize:d=>this.eN(d),complete:()=>this.zp()})}eN(a){a.sE==x.Zi.ji.YE||a.sE==x.Zi.ji.pF?(this.Xj(a.size.width+(a.size.width-a.J3.width)),this.zp()):a.sE==x.Zi.ji.Hi&&this.pq(a.size.height);this.TB()}He(){var a=new x.Ma("div","fm-popup-header fm-ui-row");this.W(a);
var c=new x.Ma("div","fm-ui-col fm-vam");a.W(c);this.Yw=new x.Uc(e.model.B.j.Ox);this.Yw.$("fm-popup-title");c.W(this.Yw);this.Xw=new x.Uc(e.model.B.j.n7);this.Xw.$("fm-popup-subtitle");c.W(this.Xw);c=new x.Ma("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.W(c);this.pi=new x.Kg("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");this.pi.cb(e.model.B.j.GA);c.W(this.pi);this.Ne=new x.Kg;this.Ne.cb(e.model.B.j.wl);this.Uh=new x.Kg("fm-ui-btn-dark");this.Uh.cb(e.model.B.j.Kx);u.hj.vD||u.hj.Ho?(c.W(this.Ne),
c.W(this.Uh)):(c.W(this.Uh),c.W(this.Ne));a=new x.Ma("div","fm-popup-content");this.W(a);var d=new x.Ma("div","fm-ui-row");a.W(d);c=new x.Ma("div","fm-ui-col-3");d.W(c);var g=new x.Ma("div","fm-list-wrap fm-list-wrap-all");c.W(g);var k=new x.Ma("div","fm-list-header fm-list-header-wide");g.W(k);c=new x.Ma("div","fm-list-header-label-wrap");k.W(c);this.LM=new x.Uc(e.model.B.j.rv);c.W(this.LM);this.Zt=new x.Md("fm-ui-link-btn fm-btn-collapse-expand-all");this.Zt.Fd("fm-ui-btn");this.Zt.cb(e.model.B.j.j7);
c.W(this.Zt);this.Ve=new x.Ma("div","fm-search-wrap");k.W(this.Ve);this.qe=new x.Ma("a","fm-search-btn");this.qe.Ie(0);this.qe.Ik("button");this.Ve.W(this.qe);c=new x.Ma("span","fm-ui-icon fm-icon-act_search");this.qe.W(c);this.he=new x.Hj;this.he.$("fm-search-inp");this.Ve.W(this.he);this.$i=new x.Ma("span","fm-close-search fm-ui-icon fm-icon-act_close");this.$i.Ie(0);this.$i.Ik("button");this.Ve.W(this.$i);k=new x.Ma("div","fm-list-content");g.W(k);this.fb=new x.zd.ij;this.fb.Ie();this.fb.$("fm-lst-hierarchies");
this.fb.ei((m,n)=>this.eE(m,n));this.fb.HV(m=>m.caption);k.W(this.fb);c=new x.Ma("div","fm-ui-col-3");d.W(c);g=new x.Ma("div","fm-list-wrap fm-list-wrap-pages");c.W(g);k=new x.Ma("div","fm-list-header");g.W(k);this.OM=new x.Uc(e.model.B.j.Gr);k.W(this.OM);k=new x.Ma("div","fm-list-content");g.W(k);this.og=new x.zd.ij;this.og.Ie();this.og.$("fm-lst-pages");this.og.ei((m,n)=>this.rs(m,n));this.og.qg("caption");k.W(this.og);this.kU=new x.Uc(e.model.B.j.Nx);this.kU.$("fm-prompt");this.kU.vn();g.W(this.kU);
g=new x.Ma("div","fm-list-wrap fm-list-wrap-rows");c.W(g);k=new x.Ma("div","fm-list-header");g.W(k);this.PM=new x.Uc(e.model.B.j.WE);k.W(this.PM);k=new x.Ma("div","fm-list-content");g.W(k);this.xf=new x.zd.ij;this.xf.Ie();this.xf.$("fm-lst-rows");this.xf.ei((m,n)=>this.rs(m,n));this.xf.qg("caption");k.W(this.xf);this.lU=new x.Uc(e.model.B.j.Nx);this.lU.$("fm-prompt");this.lU.vn();g.W(this.lU);c=new x.Ma("div","fm-ui-col-3");d.W(c);g=new x.Ma("div","fm-list-wrap fm-list-wrap-columns");c.W(g);k=new x.Ma("div",
"fm-list-header");g.W(k);this.KM=new x.Uc(e.model.B.j.UE);k.W(this.KM);k=new x.Ma("div","fm-list-content");g.W(k);this.Tf=new x.zd.ij;this.Tf.Ie();this.Tf.$("fm-lst-columns");this.Tf.ei((m,n)=>this.rs(m,n));this.Tf.qg("caption");k.W(this.Tf);this.hU=new x.Uc(e.model.B.j.Nx);this.hU.$("fm-prompt");this.hU.vn();g.W(this.hU);g=new x.Ma("div","fm-list-wrap fm-list-wrap-measures");c.W(g);k=new x.Ma("div","fm-list-header");g.W(k);this.NM=new x.Uc(e.model.B.j.HA);k.W(this.NM);this.WB=new x.Kg("fm-btn-add-measure-2 fm-icon-act_calc");
k.W(this.WB);k=new x.Ma("div","fm-list-content");g.W(k);this.Ub=new x.zd.ij;this.Ub.Ie();this.Ub.$("fm-lst-measures");this.Ub.ei((m,n)=>this.rs(m,n));this.Ub.qg("caption");k.W(this.Ub);this.jU=new x.Uc(e.model.B.j.Nx);this.jU.$("fm-prompt");this.jU.vn();g.W(this.jU);this.hg=new h.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}Xf(){this.Yw.cb(e.model.B.j.Ox);this.Xw.cb(e.model.B.j.n7);this.Ne.cb(e.model.B.j.wl);this.Uh.cb(e.model.B.j.Kx);
this.LM.cb(e.model.B.j.rv);this.OM.cb(e.model.B.j.Gr);this.PM.cb(e.model.B.j.WE);this.KM.cb(e.model.B.j.UE);this.NM.cb(e.model.B.j.HA);this.pi.cb(e.model.B.j.GA);this.pi.fi(e.model.B.j.GA);this.WB.fi(e.model.B.j.GA);this.kU.cb(e.model.B.j.Nx);this.lU.cb(e.model.B.j.Nx);this.hU.cb(e.model.B.j.Nx);this.jU.cb(e.model.B.j.Nx);this.Zt.cb(this.controller.MT?e.model.B.j.Hla:e.model.B.j.j7);this.mc(e.model.B.j.Ox);this.Yw.vn();this.Xw.vn();this.fb.mc(e.model.B.j.rv);this.og.mc(e.model.B.j.Gr);this.xf.mc(e.model.B.j.WE);
this.Tf.mc(e.model.B.j.UE);this.Ub.mc(e.model.B.j.HA);this.qe.mc(e.model.B.j.CO);this.he.mc(e.model.B.j.CO);this.$i.mc(e.model.B.j.m7)}rs(a,c){var d=new h.Ci.cX;d.setData(a);d.Tm(c);return d}eE(a,c){a=new h.Ci.FP(a,c);a.Tm(c);return a}reset(){this.Ve.Fd("fm-search-opened");this.he.clear(!1)}ro(a){const c=new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.Wa("fm-values",a.Rc("fm-values"));c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",
a.attr("data-index"));const d=new x.Ea("span","fm-label");d.text(a.text());c.W(d);c.W(new x.Ea("i","fm-drag-icon"));return c}TB(){super.TB(!0)}}f.bpa=b})(h.Jt||(h.Jt={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.dk{constructor(){super();this.xE=0;this.$("fm-pivot-fields");this.$("fm-instant-view");this.He();this.G.Ol()}He(){var a=new x.Ma("div","fm-popup-content");this.W(a);var c=new x.Ma("div","fm-list-wrap fm-list-wrap-all");a.W(c);var d=new x.Ma("div","fm-list-header fm-list-header-wide");c.W(d);var g=new x.Ma("div","fm-list-header-label-wrap");d.W(g);this.LM=new x.Uc(e.model.B.j.rv);g.W(this.LM);this.pi=new x.Kg("fm-btn-add-measure");
d.W(this.pi);this.Ne=new x.Kg("fm-btn-close-fields");d.W(this.Ne);d=new x.Ma("div","fm-list-content");c.W(d);this.fb=new x.zd.ij;this.fb.$("fm-lst-hierarchies");this.fb.Ie();this.fb.ei((k,m)=>this.eE(k,m));this.fb.qg("caption");d.W(this.fb);g=new x.Ma("div","fm-ui-row");a.W(g);d=new x.Ma("div","fm-ui-col-2");g.W(d);c=new x.Ma("div","fm-list-wrap fm-list-wrap-pages");d.W(c);d=new x.Ma("div","fm-list-header");c.W(d);this.OM=new x.Uc(e.model.B.j.Gr);d.W(this.OM);d=new x.Ma("div","fm-list-content");c.W(d);
this.og=new x.zd.ij;this.og.$("fm-lst-pages");this.og.Ie();this.og.ei((k,m)=>this.rs(k,m));this.og.qg("caption");d.W(this.og);d=new x.Ma("div","fm-ui-col-2");g.W(d);c=new x.Ma("div","fm-list-wrap fm-list-wrap-columns");d.W(c);d=new x.Ma("div","fm-list-header");c.W(d);this.KM=new x.Uc(e.model.B.j.UE);d.W(this.KM);d=new x.Ma("div","fm-list-content");c.W(d);this.Tf=new x.zd.ij;this.Tf.$("fm-lst-columns");this.Tf.Ie();this.Tf.ei((k,m)=>this.rs(k,m));this.Tf.qg("caption");d.W(this.Tf);g=new x.Ma("div",
"fm-ui-row");a.W(g);c=new x.Ma("div","fm-list-wrap fm-list-wrap-rows");g.W(c);d=new x.Ma("div","fm-list-header");c.W(d);this.PM=new x.Uc(e.model.B.j.WE);d.W(this.PM);d=new x.Ma("div","fm-list-content");c.W(d);this.xf=new x.zd.ij;this.xf.$("fm-lst-rows");this.xf.Ie();this.xf.ei((k,m)=>this.rs(k,m));this.xf.qg("caption");d.W(this.xf);g=new x.Ma("div","fm-ui-row");a.W(g);c=new x.Ma("div","fm-list-wrap fm-list-wrap-measures");g.W(c);d=new x.Ma("div","fm-list-header");c.W(d);this.NM=new x.Uc(e.model.B.j.HA);
d.W(this.NM);d=new x.Ma("div","fm-list-content");c.W(d);this.Ub=new x.zd.ij;this.Ub.$("fm-lst-measures");this.Ub.Ie();this.Ub.ei((k,m)=>this.rs(k,m));this.Ub.qg("caption");d.W(this.Ub);this.hg=new h.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}Xf(){this.LM.cb(e.model.B.j.rv);this.OM.cb(e.model.B.j.Gr);this.PM.cb(e.model.B.j.WE);this.KM.cb(e.model.B.j.UE);this.NM.cb(e.model.B.j.HA);this.pi.fi(e.model.B.j.GA);this.mc(e.model.B.j.Ox);
this.fb.mc(e.model.B.j.rv);this.og.mc(e.model.B.j.Gr);this.xf.mc(e.model.B.j.WE);this.Tf.mc(e.model.B.j.UE);this.Ub.mc(e.model.B.j.HA);this.Ne.mc(e.model.B.j.YI)}rs(a,c){var d=new h.Ci.cX;d.setData(a);d.Tm(c);return d}eE(a,c){a=new h.Ci.FP(a,c);a.Tm(c);return a}ro(a){const c=new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.Wa("fm-values",a.Rc("fm-values"));c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",a.attr("data-index"));
const d=new x.Ea("span","fm-label");d.text(a.text());c.W(d);c.W(new x.Ea("i","fm-drag-icon"));return c}open(){this.show();this.$a(v.fa.OPENED)}close(){this.eb();this.$a(v.fa.CLOSED)}reset(){}}f.cpa=b})(h.Jt||(h.Jt={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super();this.zR=()=>this.dN();this.$("fm-fields-view-wrap");this.He()}He(){this.Ms=new x.Kg("fm-btn-open-fields");this.Ms.fi(e.model.B.j.LP);this.Ms.mc(e.model.B.j.VE);this.Ms.N(x.Md.mf,()=>this.s3());this.W(this.Ms)}updateLabels(){this.Ms.fi(e.model.B.j.LP);this.Ms.mc(e.model.B.j.VE)}open(b,a,c=""){!this.Re||this.gea||this.vea||this.nea||e.v(this.lK)?(this.controller&&this.controller.sb(v.fa.CLOSED,this.zR),this.close(),this.controller&&
this.controller.N(v.fa.CLOSED,this.zR),this.G.Wa("fm-fields-opened",!0),this.G.Wa("fm-fields-instant",this.Re),this.Re&&this.G.pq(l.Mb.Fb.hq()),e.model.C.F.yn=!0,this.controller=this.rza(),this.controller.update(b,a,c,this.$Aa),this.controller.view.$("fm-fields-view"),this.W(this.controller.view),this.isVisible()||this.show(),this.controller.view.open(),!this.controller.view.rI&&this.controller.view.fb&&this.controller.view.fb.focus({preventScroll:!0}),l.Mb.Fb.GC=this.Re?this.controller.view.uf():
0,this.Uv=!0,this.lK=e.u.Ra.V().ua?e.u.Ra.V().ua.clone():null,this.Ab=e.u.Ra.V().ga,this.Cra=e.u.Ra.V().O&&e.u.Ra.V().O.Wd,this.JF=e.model.C.F.rc,this.zra=e.model.C.F.je==l.Id.dj,this.JF&&e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.VE))):this.G.pq(l.Mb.Fb.hq())}get Re(){return"right"==e.model.C.F.FC}get vea(){return this.JF!=e.model.C.F.rc||e.model.C.F.rc&&this.zra!=(e.model.C.F.je==l.Id.dj)}get gea(){return this.Uv!=e.model.C.F.yn}get nea(){return null==this.Ab||null==e.u.Ra.V().O||this.Cra!=e.u.Ra.V().O.Wd||
!this.Ab.isEqual(e.u.Ra.V().ga)}get tCa(){return null==e.u.Ra.V().ua&&null!=this.lK||null!=e.u.Ra.V().ua&&null==this.lK||e.u.Ra.V().ua&&this.lK&&!e.u.Ra.V().ua.isEqual(this.lK)}get $Aa(){return this.gea||this.nea||this.tCa||this.vea}rza(){var b=null,a=e.model.C.F.rc&&e.model.C.F.je!=l.Id.dj,c=l.Mb.Fb.G;null==this.controller?b=a?new h.flat.dX(c,this.Re):new h.Jt.G8(c,this.Re):!a||"flat"==this.controller.type&&this.controller.Re==this.Re?a||"pivot"==this.controller.type&&this.controller.Re==this.Re||
(b=new h.Jt.G8(c,this.Re)):b=new h.flat.dX(c,this.Re);if(null==b)return this.controller;this.controller&&this.controller.Yd();b.N(v.fa.CLOSED,this.zR);b.N(f.WI,d=>this.I2(d));return b}I2(b){this.Fa(b)}dN(){this.Uv=void 0;this.Ab=null;this.JF=void 0;this.controller.sb(v.fa.CLOSED,this.zR);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.YI));e.model.C.F.V();e.model.C.F.IR?this.show():this.eb();e.model.C.F.yn=!1;this.$a(v.fa.CLOSED);this.G.Wa("fm-fields-opened",!1);this.G.pq("")}close(){this.controller&&
this.controller.view.close()}s3(){this.$a(f.BO)}get Pu(){return this.Uv}}f.WI="EVENT_APPLY_SLICE";f.BO="EVENT_OPEN";h.gp=f})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ci.cB{constructor(){super();this.kL()}kL(){null==this.Vo&&(this.Vo=new x.Ea("span","fm-text-display"))}u_(){null==this.dw&&(this.dw=new x.Ea("span","fm-aggr-display"),this.dw.attr("title",e.model.B.j.f9),this.dw.zg("hidden","true"))}v_(){null==this.fw&&(this.fw=new x.Ea("span","fm-calc-display"),this.fw.attr("title",e.model.B.j.d9),this.fw.zg("hidden","true"))}w_(){null==this.yw&&(this.yw=new x.Ea("span","fm-drag-handle"),this.yw.zg("hidden",
"true"))}f5(a,c){return null==a?a:a.replace(new RegExp("("+c.td+")","i"),'<b class="fm-search-highlight">$&</b>')}kb(){const a=this.getData();this.G.empty();var c=null!=this.Ww?(0,this.Ww)(a):a.Qj?a.w1+" / "+a[this.er()]:a[this.er()];this.Vo.html(void 0!==a.td?this.f5(c,a):c);this.Vo.attr("title",c+(e.ia(a.description)?"":`\n${a.description}`));this.mc(c);this.G.append(this.Vo);1==a.ng&&!a.Tg&&1==a.rl&&1<a.Wc.length&&e.model.C.F.rl&&(this.u_(),this.G.append(this.dw));!0===a.ng&&!0===a.Na&&(this.v_(),
this.G.append(this.fw));this.w_();this.G.append(this.yw);this.G.Wa("fm-measure",!0===a.ng);this.G.Wa("fm-values",!0===a.cU);this.G.Wa("fm-selected",!0===a.yd);this.G.Wa("fm-level",!0===a.Qj)}}f.cX=b})(h.Ci||(h.Ci={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ci.cB{constructor(a=null){super();this.data=a;this.z_();this.kL()}z_(){null==this.mD&&(this.mD=new x.Ea("span","fm-icon-display"),this.mD.zg("hidden","true"))}hwa(){null==this.D2&&(this.D2=new x.Ea("span","fm-moreicon-display"),this.D2.zg("hidden","true"))}kL(){null==this.Vo&&(this.Vo=new x.Ea("span","fm-text-display"))}u_(){null==this.dw&&(this.dw=new x.Ea("span","fm-aggr-display"),this.dw.attr("title",e.model.B.j.f9),this.dw.zg("hidden",
"true"))}v_(){null==this.fw&&(this.fw=new x.Ea("span","fm-calc-display"),this.fw.attr("title",e.model.B.j.d9),this.fw.zg("hidden","true"))}w_(){null==this.yw&&(this.yw=new x.Ea("span","fm-drag-handle"),this.yw.zg("hidden","true"))}f5(a,c){return null==a?a:a.replace(new RegExp("("+c.td+")","i"),'<b class="fm-search-highlight">$&</b>')}kb(){const a=this.getData();this.G.empty();this.G.append(this.mD);a.Wi&&(this.hwa(),this.G.append(this.D2));var c=this.J();this.Vo.html(void 0!==a.td?this.f5(c,a):c);
this.Vo.attr("title",this.J()+(e.ia(a.description)?"":`\n${a.description}`));this.G.append(this.Vo);!0===a.ng&&!a.Tg&&!0!==a.Na&&1<a.Wc.length&&e.model.C.F.rl&&"right"!=e.model.C.F.FC&&(this.u_(),this.G.append(this.dw));!0!==a.ng||!0!==a.Na||!0!==a.rl&&!e.model.C.F.bu||(this.v_(),this.G.append(this.fw));a.wf||a.Ou?null!=this.yw&&this.yw.remove():(this.w_(),this.G.append(this.yw));c=!0===a.yd||null!=a.Vg&&!0===a.Vg.yd;for(var d=1;10>d;d++)this.G.Wa("fm-level-"+d,a.level===d);this.G.Wa("fm-selected",
!0===c);this.G.Wa("fm-checked",!0!==a.wf&&!0!==a.Qj&&!0===c||1==a.Qj&&!0===c);this.G.Wa("fm-unchecked",!0!==a.wf&&!0!==a.Qj&&!0!==c||1==a.Qj&&!0!==c);this.G.Wa("fm-measure",a.Tw&&(!0===a.ng&&!0!==a.Tg||a.Hea||a.Uw||a.IBa));this.G.Wa("fm-folder",!0===a.wf||!0===a.Wi);this.G.Wa("fm-level-folder",!0===a.Wi);this.G.Wa("fm-level",!0===a.Qj);this.G.Wa("fm-measures-folder",!0===a.Ou&&!0!==a.Tg);this.G.Wa("fm-measures-calculated-folder",!0===a.Ou&&!0!==a.Tg&&!0===a.xH);this.G.Wa("fm-kpis-folder",!0===a.Tg&&
!0===a.wf);this.G.Wa("fm-kpi",!0===a.Tg&&!0!==a.wf);this.G.Wa("fm-calculated",!0===a.Na);this.G.Wa(l.Y.X.wa.EW,(!0===a.wf||!0===a.Wi)&&!0!==a.Sf);this.G.Wa(l.Y.X.wa.UW,(!0===a.wf||!0===a.Wi)&&!0===a.Sf);this.mc(this.J());this.vaa(!0===c);!0!==a.wf&&!0!==a.Wi||this.uaa(!0===a.Sf)}}f.FP=b})(h.Ci||(h.Ci={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{Qa(){const d={};e.v(this.ob)||(d.pages=this.ob.map(g=>g.Qa()));e.v(this.rows)||(d.rows=this.rows.map(g=>g.Qa()));e.v(this.Ka)||(d.columns=this.Ka.map(g=>g.Qa()));e.v(this.Ba)||(d.measures=this.Ba.map(g=>g.Qa()));e.v(this.Ng)||(d.flatOrder=this.Ng.slice());e.v(this.ih)||(d.flatSort=this.ih.slice());e.v(this.Bj)||(d.sorting=this.Bj);return d}}f.Ppa=b;class a{Qa(){const d={};e.v(this.A)||(d.uniqueName=this.A);e.v(this.aa)||(d.aggregation=this.aa);
e.v(this.gg)||(d.activeLevelName=this.gg);return d}static CS(d){const g=new a;g.A=d.A;d.ng&&(g.aa=d.aa,g.G1=d.G1);d.Qj&&(g.gg=d.A,g.A=d.Pg);return g}}f.GP=a;class c{static gL(d){const g=[];for(let k=0;k<d.length;k++)g.push(c.NR(d[k]));return g}static eW(d){return d.Wi||d.wf?c.fKa(d):c.mKa(d)}static fKa(d){const g={caption:d.caption,isFolder:!0};void 0!==d.xH&&d.xH&&(g.isCalculated=d.xH);void 0!==d.Ou&&(g.isMeasureFolder=d.Ou);e.v(d.parent)||(g.folder=void 0!==d.EG?d.EG:d.parent.caption);void 0!==
d.Tg&&d.Tg&&(g.isKPI=d.Tg);return g}static mKa(d){const g={caption:d.caption,isFolder:!1};void 0!==d.Na&&d.Na&&(g.isCalculated=d.Na);void 0!==d.Tg&&d.Tg&&(g.isKPI=d.Tg);void 0!==d.Dg&&void 0!==d.Mc&&d.Tg?g.folder=d.Dg+"/"+d.Mc:void 0!==d.Dg?g.folder=d.Dg:void 0!==d.Mc&&0<d.Mc.length?g.folder=d.Mc:!e.v(d.parent)&&d.parent.Qj?g.folder=d.w1:e.v(d.parent)||(g.folder=d.EG);return g}static NR(d){const g=d.Wc,k=new f.fj;k.A=d.A;k.caption=d.caption;k.name=d.kl;k.type=d.type;k.aa=d.aa;k.Na=d.Na;k.Mc=d.Mc;
k.Dg=d.Dg;k.gr=d.gr;k.Tg=d.Tg;k.Wc=g;k.RK=e.u.i.da.EZ(g);k.ew=e.u.i.da.laa(g);k.Tw=d.Tw();k.description=d.description;return k}}f.fj=c})(h.X||(h.X={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(a){this.wpa=40;this.Ft=null;this.ao=a}get Yc(){return this.fe}set Yc(a){this.fe=a}get Oa(){return this.Io?this.Uz:this.vb}set Oa(a){this.vb=a}Z1(){return 0<this.HAa().length}Jy(){this.td="";this.Uz=null}get $T(){return(e.model.C.F.L4||this.Oa&&this.Oa.length>this.wpa)&&this.ao!=e.u.i.qa.Tc}get Io(){return!e.ia(this.td)}search(a){a=a.toLowerCase();if(this.td!=a){this.td=a;this.Uz=[];for(var c=0;c<this.vb.length;c++){var d=this.vb[c];
e.P.contains(d.caption,a)&&(d.td=this.td,this.Uz.push(d))}}}Y0(){for(var a=0,c=0;c<this.Oa.length;c++)this.Oa[c].yd&&a++;return 0==a?0:a==this.Oa.length?1:-1}HAa(){const a=[];if(!e.v(this.vb))for(let c=0;c<this.vb.length;c++)this.vb[c].yd&&a.push(this.vb[c]);return a}get rD(){return(!e.model.Va.V().Ia.ga.Gc||e.model.Va.V().Ia.ga.Da===e.u.i.qa.API)&&e.model.C.F.G4||e.model.C.F.bu&&e.model.Va.V().Ia.ga.Da===e.u.i.qa.Tc}get BT(){return this.rD&&!this.Yc.nb}lI(a,c){if(0!==c.length||!e.v(this.Ft))if(e.v(this.Ft))a.sort((d,
g)=>this.Dba(d,g,c));else{const d=[];let g=[];if(0<c.length){for(let m=0;m<a.length;m++)a[m].yd?d.push(a[m]):g.push(a[m]);d.sort((m,n)=>this.Dba(m,n,c))}else g=a;const k=this.Iza();g.sort((m,n)=>this.Ft(h.X.fj.eW(m),h.X.fj.eW(n),k));this.Oa=[...d,...g]}}Iza(){return this instanceof f.z7?"flat":"drillThrough"}Dba(a,c,d){const g=this.ZL(a,d);d=this.ZL(c,d);return g==d?a.caption.localeCompare(c.caption):d-g}ZL(a,c){return a.yd?c.length-c.indexOf(a.A):0}hl(a){for(var c=0;c<this.Oa.length;c++)this.Oa[c].yd=
0<=a.indexOf(this.Oa[c].A)}Lza(a){return this.jKa(this.Oa,a)}jKa(a,c){for(var d=[],g=0;g<c.length;g++){var k=a[c[g]];k.yd&&d.push({A:k.A,aa:k.aa})}return d}Iia(a,c){for(var d=[],g=0;g<c.length;g++){var k=a[c[g]];k.yd&&d.push(k)}return d}}f.X5=b})(h.flat||(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends f.X5{constructor(a){super(a);this.tn=null}update(a,c,d){this.fe=a;this.Qb=c;this.Ft=d;this.VN();this.uq()}VN(){this.Oa=[];for(var a=this.fe.wc(!1),c=0;c<a.length;c++){var d=a.ea(c),g=this.fe.cf(d.A);e.v(g)||g.type==e.u.i.Pa.xc||g.type==e.u.i.Pa.Sa||this.Qb.rows.Hb(g.A)||this.Qb.Ka.Hb(g.A)||this.Qb.ob.Hb(g.A)?this.Oa.push(this.Bva(d)):this.Oa.push(this.NR(g))}a=this.fe.Uq;for(c=0;c<a.length;c++)g=a.ea(c),this.Oa.push(this.NR(g))}uq(){if(null!==
this.tn)this.Oa=this.tn.hierarchies,this.ZZ();else{var a=this.Qb.flatten(!0,!0).Nc(!0);this.hl(a);this.WIa(this.Qb.hd());this.lI(this.Oa,a)}}WIa(a){for(var c=0;c<a.length;c++){var d=this.Uxa(a[c].A);e.v(d)||(d.aa=a[c].aa)}}Uxa(a){for(var c=0;c<this.vb.length;c++)if(this.vb[c].A==a)return this.vb[c];return null}NR(a){var c=new h.X.fj;c.A=a.A;c.caption=a.kl;c.aa=a.aa;c.Na=a.Na;a=a.Wc;c.Wc=a;c.RK=e.u.i.da.EZ(a);c.ew=e.u.i.da.laa(a);c.ng=!0;c.rl=e.model.C.F.rl;return c}Bva(a){var c=new h.X.fj;c.A=a.A;
c.caption=a.caption;return c}iM(a){var c=this.Qb.clone(),d=this.Iia(this.Oa,a),g=d.map(r=>r.A),k=c.flatten(!0,!0);a=c.hd();for(var m=0;m<k.length;m++){var n=k.ea(m).A;if(0>g.indexOf(n)){c.ob.Hb(n)&&c.ob.removeItem(n);c.Ka.Hb(n)&&c.Ka.removeItem(n);c.rows.Hb(n)&&c.rows.removeItem(n);let r=this.fe.cf(n);e.v(r)&&(r=this.fe.Uq.getItem(n));e.v(r)||(n=a.findIndex(w=>w.A===r.A),-1<n&&a.splice(n,1))}}for(m=0;m<d.length;m++)if(n=d[m].A,!k.Hb(n)){var p=this.fe.fh(n),t=this.fe.gd(n);e.v(t)||e.v(p)||t.type==
e.u.i.Pa.xc||p.type==e.u.i.Lc.Sa?e.v(p)?this.fe.Uq.Hb(n)&&a.push(this.fe.Uq.getItem(n)):c.rows.Ta(n,p):a.push(t)}for(m=0;m<d.length;m++)if(k=d[m],k.aa)for(n=0;n<a.length;n++)a[n].A==k.A&&(a[n].aa=k.aa);c.Ng=g;for(d=0;d<a.length;d++)a[d].index=d;c.Zz(a);return c}us(){return null!=this.fe?h.X.fj.gL(this.fe.Ba.Nc()):[]}Yu(a){if(null!=this.Qb&&null!=this.fe){const c=this.us().find(d=>d.A===a);if(null!=c){c.yd=!0;let d=0;for(let g=0;g<this.Oa.length;g++)this.Oa[g].yd&&(d=g);this.Oa=[...this.Oa.slice(0,
d+1),c,...this.Oa.slice(d+1)]}}}Zu(a){if(null!=this.Qb&&null!=this.fe){const c=this.Oa.findIndex(d=>d.A===a);this.Oa.splice(c,1);this.b5()}}ZZ(){this.tn=null}b5(){this.tn={hierarchies:this.Oa}}aU(a){var c=this.Qb.flatten(!0,!0).Nc();if(a.length!=c.length)return!0;for(var d=0;d<a.length;d++){var g=a[d],k=c[d];if(g.A!=k.A||void 0!=g.aa&&void 0!=k.aa&&g.aa!=k.aa)return!0}return!1}mE(a){this.Qb=a}}f.z7=b})(h.flat||(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends v.Ah{constructor(a,c){super();this.type="flat";this.hK=!1;this.Fy=d=>this.Yu(d);this.Gy=d=>this.Zu(d);this.Hy=()=>this.XM();this.Gb=this.TR(e.u.Ra.V().ga.Da);this.hK=c;this.view=this.nba(a);this.view.N(v.fa.CLOSED,d=>this.Fa(d));this.view.Uh&&this.view.Uh.N(x.Md.mf,()=>this.KD());this.view.Ne&&this.view.Ne.N(x.Md.mf,()=>this.Is());null!=this.view.hg&&this.view.hg.N(v.fa.$d,d=>this.H2(d));this.view.fb&&(this.view.fb.G.N("click",d=>
this.b3(d)),this.view.fb.G.N("keydown",d=>this.c3(d)),this.view.fb.G.ps({Pm:(d,g,k,m)=>this.Pm(d,g,k,m),Om:(d,g,k,m)=>this.Om(d,g,k,m),Zl:(d,g,k,m)=>this.Zl(d,g,k,m),zz:"li",scroll:!0}));this.view.Zd&&this.view.Zd.N(v.fa.$d,()=>this.E3());this.view.pi&&this.view.pi.N(x.Md.mf,()=>this.BU());this.view.he&&(this.view.he.yV(500),this.view.he.N(x.Hj.Mx,()=>this.cN()));this.view.qe&&(this.view.qe.N("click",()=>this.Js()),this.view.qe.N("keydown",d=>this.Kz(d,!1)));this.view.$i&&(this.view.$i.N("click",
()=>this.Ks()),this.view.$i.N("keydown",d=>this.Kz(d,!0)))}get Re(){return this.hK}nba(a){return this.Re?new f.Ema:new f.A7(a)}TR(a){return new f.z7(a)}Kz(a,c){if(32===a.keyCode||13===a.keyCode)c?this.Ks():this.Js()}Js(){this.view.Ve.$("fm-search-opened-flat");this.view.he.G.focus()}Ks(){this.view.Ve.Fd("fm-search-opened-flat");this.view.he.clear();this.view.qe.G.focus()}Om(a,c,d,g){g instanceof MouseEvent?(d=x.Ea.Vb(g.target),g=g.clientY):(g=g.changedTouches[0],d=x.Ea.Vb(document.elementFromPoint(g.clientX,
g.clientY)),g=g.clientY);d.Rc("fm-drop-indicator")||(this.dm(),a&&a.closest("ul")&&(c&&c.$("fm-droppable-valid"),a.$("fm-drag-over"),this.rE(d,g)))}Zl(a,c){this.dm();a&&a.closest("ul")&&(c&&c.Fd("fm-droppable-valid"),c&&c.Fd("fm-droppable-invalid"),a.Fd("fm-drag-over"))}cN(){this.Gb.search(this.view.he.Ti());this.view.fb.G.Wa("fm-searched",this.Gb.Io);this.view.fb.Wf(this.Gb.Oa);this.BL()}H2(a){this.Yz(a.data.DL,a.data.DZ)}Yz(a,c){a.aa=c.aa;a.caption=a.name;this.view.fb.xr(a);c=this.Gb.Oa.find(d=>
d.A===a.A);null!=c&&(c.aa=a.aa,c.caption=a.caption);this.Re&&this.ne()}Pm(a){if(null!=this.wd)if(a&&a.closest("ul")){a=parseInt(a.attr("data-index"));var c=this.view.fb.zc()[a],d=this.view.fb.zc().length;this.wd.element.previousElementSibling?d=parseInt(this.wd.element.previousElementSibling.getAttribute("data-index"))+1:this.wd.element.nextElementSibling&&(d=parseInt(this.wd.element.nextElementSibling.getAttribute("data-index")));this.dm();this.Fs(a,d);this.view.fb.Ei(this.view.fb.zc().indexOf(c));
this.view.fb.G.wx(this.view.fb.G.element.scrollTop);this.view.fb.vN(d)}else this.dm()}Fs(a,c){if(a!=c){var d=this.view.fb.zc();a<c&&--c;d.splice(c,0,d.splice(a,1)[0]);this.view.fb.yr();this.ct();this.BL();this.Re&&this.ne()}}Is(){this.Re?e.ph.instance.YK():this.view.close()}KD(){this.view.he&&this.Gb.Io&&(this.view.he.clear(!1),this.Gb.Jy(),this.view.fb.Wf(this.Gb.Oa),this.BL());this.ne();this.view.close()}E3(){for(var a=this.view.Zd.checked,c=this.Gb.Oa,d=0;d<c.length;d++)c[d].yd=a;this.view.fb.yr();
this.ct();this.BL();this.Re&&this.ne()}c3(a){if(32===a.keyCode||13===a.keyCode){if(this.view.Si){const c=this.view.fb.Au();if(e.v(c))return;const d=[];d.push({label:c.data.yd?e.model.B.j.YW:e.model.B.j.Gla,handler:()=>this.Lh(3,c.data,c.index)});0<c.index&&d.push({label:e.model.B.j.i7,handler:()=>this.Lh(4,c.data,c.index)});c.index<this.view.fb.zc().length-1&&d.push({label:e.model.B.j.d7,handler:()=>this.Lh(5,c.data,c.index)});c.data.ng&&d.push({label:e.model.B.j.XW,submenu:this.ez(c.data)});c.data.Na&&
d.push({label:e.model.B.j.ZW,handler:()=>this.Lh(10,c.data,c.index)});this.view.Si.Po(this.view.G,d,c.element.lg(),{top:10,left:10})}a.preventDefault()}}ez(a){const c=[];for(let d=0;d<a.Wc.length;d++){const g={caption:a.RK[d],aa:a.Wc[d]};void 0!=a.ew&&(g.fW=a.ew[d]);c.push({label:e.u.i.da.fG(a.Wc[d]),isSelected:a.Wc[d]==a.aa,handler:()=>this.Yz(a,g)})}return c}Lh(a,c,d){3==a?(c.yd=!c.yd,this.view.fb&&this.view.fb.bt(d),this.view.Zd&&this.view.Zd.Af(this.Gb.Y0()),this.ct(),this.Re&&this.ne()):4==a?
(this.Fs(d,d-1),this.view.fb.Ei(d-1)):5==a?(this.Fs(d,d+2),this.view.fb.Ei(d+1)):10==a&&this.TH(c.A)}b3(a){const c=this.view.fb.IC(a.target);e.v(c)||(a=x.Ea.Vb(a.target),a.Rc("fm-aggr-display")?this.view.hg.Po(c.data,a):a.Rc("fm-calc-display")?this.Lh(10,c.data,c.index):this.Lh(3,c.data,c.index))}TH(a=null){this.view.rI=!0;e.model.Va.V().Fa(new l.Na.HW(a));e.model.Va.V().N(l.Na.ak.sA,this.Hy);e.model.Va.V().N(l.Na.ak.qA,this.Fy);e.model.Va.V().N(l.Na.ak.rA,this.Gy)}BU(){this.TH()}Yu(a){e.model.Va.V().sb(l.Na.ak.qA,
this.Fy);this.Gb.Yu(a.Cs);this.Vm();this.Re&&this.ne()}Zu(a){e.model.Va.V().sb(l.Na.ak.rA,this.Gy);this.Gb.Zu(a.Cs);this.Vm();this.Re&&this.ne()}XM(){this.view.rI=!1;e.model.Va.V().sb(l.Na.ak.sA,this.Hy);this.view.fb.focus({preventScroll:!0})}Vm(){this.view.reset&&this.view.reset();this.view.Ve&&this.view.Ve.isVisible(this.Gb.$T);this.view.he&&(this.view.he.clear(!1),this.Gb.Jy());this.view.fb&&(this.view.fb.Wf(this.Gb.Oa),this.ct(),this.BL());this.view.pi&&(this.view.pi.isVisible(this.Gb.rD),this.view.pi.oq(this.Gb.BT))}BL(){var a=
{ro:g=>this.view.ro(g)};u.Kd().Mm&&(a.lT=".fm-drag-handle");for(var c=this.view.fb.G.find("li",!0),d=0;d<c.length;d++)c[d].draggable(a)}update(a,c){e.v(a)||e.v(c)||(this.Gb.update(a,c,h.gp.pS),this.Vm(),this.view.Zd&&this.view.Zd.Af(this.Gb.Y0()),this.view.Xf())}ct(){this.view.Uh&&this.view.Uh.oq(this.Gb.Z1())}ne(){for(var a=[],c=this.view.fb.G.find("li",!0),d=0;d<c.length;d++){var g=parseInt(c[d].attr("data-index"));a.push(g)}c=this.Gb.Lza(a);this.Gb.aU(c)&&(a=this.Gb.iM(a),this.Re&&a instanceof
e.u.O.Lr&&(a.z2=!1,e.ph.instance.$D(),this.Gb.mE(a)),e.model.Va.V().ne(a))}rE(a,c){const d=a.closest("li");null!=d?(this.wd=this.sw(),a=d.getBoundingClientRect(),c>a.top+a.height/2?d.after(this.wd):d.before(this.wd)):(c=a.closest("ul"),null!=c&&(this.wd=this.sw(),c.append(this.wd)))}sw(){return new x.Ea("div","fm-drop-indicator")}dm(){this.wd&&(this.wd.Gg(!0),this.wd=null)}}f.dX=b})(h.flat||(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.ay{constructor(a){super(a);this.$("fm-flat-fields");this.He();this.G.Ol();this.G.Zi({QV:[x.Zi.ji.Hi],KR:l.Mb.Fb.G,FZ:!0,resize:c=>this.eN(c),complete:()=>this.zp()})}eN(a){a.sE==x.Zi.ji.Hi&&this.pq(a.size.height)}He(){var a=new x.Ma("div","fm-popup-header fm-ui-row");this.W(a);var c=new x.Ma("div","fm-ui-col fm-vam");a.W(c);this.Yw=new x.Uc(e.model.B.j.Ox);this.Yw.$("fm-popup-title");c.W(this.Yw);this.Xw=new x.Uc(e.model.B.j.k7);
this.Xw.$("fm-popup-subtitle");c.W(this.Xw);c=new x.Ma("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.W(c);this.pi=new x.Kg("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");c.W(this.pi);this.Ne=new x.Kg;this.Ne.cb(e.model.B.j.wl);this.Uh=new x.Kg("fm-ui-btn-dark");this.Uh.cb(e.model.B.j.Kx);u.hj.vD||u.hj.Ho?(c.W(this.Ne),c.W(this.Uh)):(c.W(this.Uh),c.W(this.Ne));a=new x.Ma("div","fm-popup-content");this.W(a);c=new x.Ma("div","fm-list-wrap");a.W(c);var d=new x.Ma("div","fm-list-header");c.W(d);
this.Zd=new x.NJ;this.Zd.$("fm-select-all-cbx");this.Zd.cb(e.model.B.j.tv);d.W(this.Zd);this.Ve=new x.Ma("div","fm-search-wrap");d.W(this.Ve);this.qe=new x.Ma("a","fm-search-btn");this.qe.Ie(0);this.qe.Ik("button");this.Ve.W(this.qe);d=new x.Ma("span","fm-ui-icon fm-icon-act_search");this.qe.W(d);this.he=new x.Hj;this.he.$("fm-search-inp-flat");this.Ve.W(this.he);this.$i=new x.Ma("span","fm-close-search fm-ui-icon fm-icon-act_close");this.$i.Ie(0);this.$i.Ik("button");this.Ve.W(this.$i);d=new x.Ma("div",
"fm-list-content");c.W(d);this.fb=new x.zd.ij;this.fb.$("fm-lst-hierarchies");this.fb.Ie();this.fb.ei(this.eE);this.fb.qg("caption");d.W(this.fb);this.hg=new h.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}eE(a,c){var d=new h.Ci.FP(a,c);d.setData(a);d.Tm(c);return d}Xf(){this.Yw.cb(e.model.B.j.Ox);this.Xw.cb(e.model.B.j.k7);this.Ne.cb(e.model.B.j.wl);this.Uh.cb(e.model.B.j.Kx);this.Zd.cb(e.model.B.j.tv);this.pi.fi(e.model.B.j.GA);
this.mc(e.model.B.j.Ox);this.Yw.vn();this.Xw.vn();this.fb.mc(e.model.B.j.rv);this.qe.mc(e.model.B.j.CO);this.he.mc(e.model.B.j.CO);this.$i.mc(e.model.B.j.m7)}reset(){this.Ve.Fd("fm-search-opened-flat");this.he.clear(!1)}ro(a){var c=new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.Wa("fm-values",a.Rc("fm-values"));c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}}f.A7=b})(h.flat||
(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.be.dk{constructor(){super();this.$("fm-flat-fields");this.$("fm-instant-view");this.He()}He(){var a=new x.Ma("div","fm-popup-content");this.W(a);var c=new x.Ma("div","fm-list-wrap fm-list-wrap-all");a.W(c);var d=new x.Ma("div","fm-list-header");c.W(d);this.Zd=new x.NJ;this.Zd.$("fm-select-all-cbx");this.Zd.cb(e.model.B.j.tv);d.W(this.Zd);this.pi=new x.Kg("fm-btn-add-measure");d.W(this.pi);this.Ne=new x.Kg("fm-btn-close-fields");
d.W(this.Ne);d=new x.Ma("div","fm-list-content");c.W(d);this.fb=new x.zd.ij;this.fb.$("fm-lst-hierarchies");this.fb.Ie();this.fb.ei(this.eE);this.fb.qg("caption");d.W(this.fb);this.hg=new h.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}eE(a,c){var d=new h.Ci.FP(a,c);d.setData(a);d.Tm(c);return d}Xf(){this.Zd.cb(e.model.B.j.tv);this.pi.fi(e.model.B.j.GA);this.mc(e.model.B.j.Ox);this.fb.mc(e.model.B.j.rv);this.Ne.mc(e.model.B.j.YI)}ro(a){var c=
new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.Wa("fm-values",a.Rc("fm-values"));c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}open(){this.show();this.$a(v.fa.OPENED)}close(){this.eb();this.$a(v.fa.CLOSED)}}f.Ema=b})(h.flat||(h.flat={}))})(l.pd||(l.pd={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.ay{constructor(){super(l.Mb.Fb.G);this.KKa=()=>this.dN();this.$("fm-calculated-view");this.G.Ol();this.OD.$("fm-calculated-view-overlay");this.Pe=new h.Eka;this.Pe.N(v.fa.h6,()=>this.close());this.W(this.Pe.view);this.N(v.fa.CLOSED,this.KKa)}dN(){e.model.Va.V().Fa(new l.Na.Ika)}Ns(b){this.Pe.update(b);this.open();this.Pe.view.jr.focus({preventScroll:!0});this.Xf()}Xf(){this.mc(e.model.B.j.AW)}close(){super.close();this.Pe.clear()}}f.GK=!1;
h.QE=f})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{}f.qA="event_calculated_value_added";f.rA="event_calculated_value_removed";f.c6="calculated_view_open";f.sA="calculated_view_close";h.ak=f;class b extends v.fa{constructor(g){super(f.qA);this.Cs=g}}h.Gka=b;class a extends v.fa{constructor(g){super(f.rA);this.Cs=g}}h.Hka=a;class c extends v.fa{constructor(g=null){super(f.c6);this.Cs=g}}h.HW=c;class d extends v.fa{constructor(){super(f.sA)}}h.Ika=d})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.$ra="- 2";this.ka=e.model.Va.V();this.v0=[{name:"_addBtn",label:"+",df:"CALCULATED_VIEW_FUNC_ADD",xk:e.u.i.nc.bO},{name:"_subtractBtn",label:"-",df:"CALCULATED_VIEW_FUNC_SUBTRACT",xk:e.u.i.nc.EP},{name:"_multiplyBtn",label:"\u00d7",df:"CALCULATED_VIEW_FUNC_MULTIPLY",xk:e.u.i.nc.oP},{name:"_divideBtn",label:"\u00f7",df:"CALCULATED_VIEW_FUNC_DIVIDE",xk:e.u.i.nc.UI},{name:"_powerBtn",label:"^",df:"CALCULATED_VIEW_FUNC_POWER",xk:e.u.i.nc.BX},
{name:"_equalBtn",label:"=",df:"CALCULATED_VIEW_FUNC_EQUAL",xk:e.u.i.nc.EQUAL},{name:"_lessBtn",label:"<",df:"CALCULATED_VIEW_FUNC_LESS",xk:e.u.i.nc.LESS},{name:"_greaterBtn",label:">",df:"CALCULATED_VIEW_FUNC_GREATER",xk:e.u.i.nc.GREATER},{name:"_lessOrEqualBtn",label:"\u2264",df:"CALCULATED_VIEW_FUNC_LESS_EQUAL",xk:e.u.i.nc.R7},{name:"_greaterOrEqualBtn",label:"\u2265",df:"CALCULATED_VIEW_FUNC_GREATER_EQUAL",xk:e.u.i.nc.E7},{name:"_notEqualBtn",label:"!=",df:"CALCULATED_VIEW_FUNC_NOT_EQUAL",xk:e.u.i.nc.cg},
{name:"_orBtn",label:"OR",df:"CALCULATED_VIEW_FUNC_OR",xk:e.u.i.nc.E8},{name:"_andBtn",label:"AND",df:"CALCULATED_VIEW_FUNC_AND",xk:e.u.i.nc.E5},{name:"_ifBtn",label:"IF",df:"CALCULATED_VIEW_FUNC_IF",xk:e.u.i.nc.QO},{name:"_absBtn",label:"ABS",df:"CALCULATED_VIEW_FUNC_ABS",xk:e.u.i.nc.pW},{name:"_roundBtn",label:"RD",df:"CALCULATED_VIEW_FUNC_ROUND",xk:e.u.i.nc.IX},{name:"_minBtn",label:"MIN",df:"CALCULATED_VIEW_FUNC_MIN",xk:e.u.i.nc.MIN},{name:"_maxBtn",label:"MAX",df:"CALCULATED_VIEW_FUNC_MAX",xk:e.u.i.nc.MAX}]}search(b){b=
b.toLowerCase().trim();if(this.td!==b){this.td=b;this.u4=[];var a=this.Ye.length;for(let c=0;c<a;c++){const d=this.Ye[c];e.P.contains(d.caption,b)&&(d.td=b,this.u4.push(d))}}}get Io(){return!e.ia(this.td)}Jy(){this.td="";this.u4=null}update(b){this.Ye=l.pd.X.fj.gL(this.ka.ha.O.Ba.Nc());this.Jy();e.ia(b)||(this.mj=this.ka.ha.O.gd(b))}get rl(){return!this.ka.ha.ga.Gc||this.ka.ha.ga.Da==e.u.i.qa.API}get N4(){return this.ka.ha.ga.Da!=e.u.i.qa.API}us(){e.v(this.Ye)&&(this.Ye=l.pd.X.fj.gL(this.ka.ha.O.Ba.Nc()));
return this.Io?this.u4:this.Ye}ZD(b){h.QE.GK=!0;this.ka.Qz(b.A);this.ka.Fa(new h.Hka(b.A));e.Ce(()=>{h.QE.GK=!1},1E3)}lk(b,a="",c=!1){a=a.trim();a=0<a.length?a:this.Wya();let d;if(null!=this.mj){if(this.mj.caption!=a||this.mj.ve!=b||this.mj.cl!=c)d={uniqueName:this.mj.A,caption:a,formula:b,individual:c,type:this.mj.type}}else{do a=null!=this.ka.ha.O.Ba.getItem(a)?a+" "+this.$ra:a;while(null!=this.ka.ha.O.Ba.getItem(a));d={uniqueName:a,caption:a,formula:b,individual:c,type:e.u.i.Pa.jb}}null!=d&&(h.QE.GK=
!0,l.pd.Jt.H8.h0=!0,this.ka.ha.Vt(d,!1),this.ka.Fa(new h.Gka(d.uniqueName)),e.Ce(()=>{h.QE.GK=!1},1E3))}Wya(){let b=e.model.B.j.iO+" #",a=0;const c=this.ka.ha.O.Uq,d=new RegExp(e.model.B.j.iO+" #");for(let g=0;g<c.length;g++){const k=c.ea(g).A;d.test(k)&&(a=Math.max(a,Number(k.substr(e.model.B.j.iO.length+2))))}return b+(a+1)}}h.Fka=f})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.z$=new RegExp(/(["])(?:(?=(\\?))\2.)*?\1/g);this.ka=new h.Fka;this.view=new h.Jka(this);this.view.px&&this.view.px.N(x.Md.mf,()=>this.ZFa());this.view.he&&(this.view.he.yV(500),this.view.he.N(x.Hj.Mx,()=>this.cN()));this.view.qe&&(this.view.qe.N("click",()=>this.Js()),this.view.qe.N("keydown",b=>this.Kz(b,!1)));this.view.$i&&(this.view.$i.N("click",()=>this.Ks()),this.view.$i.N("keydown",b=>this.Kz(b,!0)));this.view.Ub&&
(this.view.Ub.G.N("click",b=>this.uFa(b)),this.view.Ub.G.N("dblclick",b=>this.vFa(b)),this.view.Ub.G.N("keydown",b=>this.BFa(b)),this.view.Ub.ei((b,a)=>this.rs(b,a)));this.view.Xh&&this.view.Xh.G.ps({Pm:b=>this.wFa(b),O2:()=>this.Tfa(),Om:()=>this.Tfa(),Zl:()=>this.TEa(),zz:"li"});this.view.Uh&&this.view.Uh.N(x.Md.mf,()=>this.KD());this.view.Ne&&this.view.Ne.N(x.Md.mf,()=>this.Is());this.view.hg&&this.view.hg.N(v.fa.$d,b=>this.MDa(b));if(this.view.ES)for(const b of this.view.ES)b.N(x.Md.mf,()=>this.UEa(b))}cN(){this.ka.search(this.view.he.Ti());
this.view.Ub.G.Wa("fm-searched",this.ka.Io);this.Yia()}Js(){this.view.Ve.$("fm-search-opened");this.view.he.G.focus()}Kz(b,a){if(32===b.keyCode||13===b.keyCode)a?this.Ks():this.Js()}Ks(){this.view.Ve.Fd("fm-search-opened");this.view.he.clear();this.view.qe.G.focus()}uFa(b){const a=x.Ea.Vb(b.target);a.Rc("fm-aggr-display")&&(b=this.view.Ub.IC(b.target),e.v(b)||this.view.hg.Po(b.data,a))}vFa(b){b=this.view.Ub.IC(b.target);e.v(b)||this.yZ(b.data)}BFa(b){if(32===b.keyCode||13===b.keyCode){if(this.view.Si){const a=
this.view.Ub.Au();if(e.v(a))return;const c=[];c.push({label:e.model.B.j.Qja,handler:()=>{this.yZ(a.data)}});c.push({label:e.model.B.j.XW,submenu:this.ez(a.data)});this.view.Si.Po(this.view.content.G,c,a.element.lg(),{top:10,left:10})}b.preventDefault()}}ez(b){const a=[];for(let c=0;c<b.Wc.length;c++){const d={caption:b.RK[c],aa:b.Wc[c]};void 0!=b.ew&&(d.fW=b.ew[c]);a.push({label:e.u.i.da.fG(b.Wc[c]),isSelected:b.Wc[c]==b.aa,handler:()=>this.Yz(b,d)})}return a}Tfa(){this.view.Xh.$("fm-droppable-over")}TEa(){this.view.Xh.Fd("fm-droppable-over")}wFa(b){this.view.Xh.Fd("fm-droppable-over");
b=parseInt(b.attr("data-index"));b=this.view.Ub.zc()[b];this.yZ(b)}rs(b,a){var c=new l.pd.Ci.cX;c.setData(b);c.Tm(a);c.HV(function(d){return d.name+" ("+e.u.i.da.fG(d.aa)+")"});return c}get v0(){return this.ka.v0}update(b){this.ka.update(b);this.view.$B.isVisible(this.ka.N4);null!=this.ka.mj?(this.view.G.Wa("fm-with-delete-btn",!0),this.view.jr&&this.view.jr.zj(this.ka.mj.caption),this.view.Xh&&(b=e.model.C.F.lW?this.fIa(this.ka.mj.ve):this.ka.mj.ve,this.view.Xh.zj(b)),this.view.px&&this.view.px.isVisible(!0)):
(this.view.G.Wa("fm-with-delete-btn",!1),this.view.px&&this.view.px.isVisible(!1));this.view.$B&&this.ka.N4&&(this.view.$B.checked=this.ka.mj?this.ka.mj.cl:!1);this.view.he&&(this.view.Ve.Fd("fm-search-opened"),this.view.he.clear(!1),this.ka.Jy());this.view.Xf();this.Yia()}Yia(){for(var b=this.ka.us(),a=[],c=0;c<b.length;c++)null!=this.ka.mj&&this.ka.mj.A==b[c].A||b[c].Tg||(b[c].ng=!0,b[c].rl=this.ka.rl&&!b[c].Na,a.push(b[c]));a.sort(this.d_);if(this.view.Ub)for(this.view.Ub.Wf(a),b={ro:d=>this.view.ro(d)},
u.Kd().Mm&&(b.lT=".fm-drag-handle"),a=this.view.Ub.G.find("li",!0),c=0;c<a.length;c++)a[c].draggable(b)}clear(){this.view.jr&&this.view.jr.zj("");this.view.Xh&&this.view.Xh.zj("");this.ka.mj=null}d_(b,a){return b.name>a.name?1:-1}ZFa(){u.Kd().Mm?this.v3():this.zJa()}zJa(){if(u.hj.vD||u.hj.Ho){var b=[e.model.B.j.U5,e.model.B.j.IE];var a=[null,()=>this.v3()]}else b=[e.model.B.j.IE,e.model.B.j.U5],a=[()=>this.v3(),null];var c=e.model.Tb.valid(this.ka.mj.caption)?this.ka.mj.caption:e.model.Tb.validate(this.ka.mj.caption);
e.Za(e.model.B.j.Sja,e.P.bind(e.model.B.j.Tja,c),e.xb.vl,b,a)}v3(){this.ka.ZD(this.ka.mj);this.close()}yZ(b){if(void 0!==b){var a=e.model.C.F.lW?b.name:b.A;b.aa===e.u.i.da.NONE||void 0===b.aa?this.qz(e.P.bind('"{0}"',a)):this.qz(e.P.bind('{0}("{1}")',b.aa,a))}}MDa(b){this.Yz(b.data.DL,b.data.DZ)}Yz(b,a){b.aa=a.aa;b.caption=a.caption+" of "+b.name;this.view.Ub.xr(b)}UEa(b){b=b.data.xk;b==e.u.i.nc.QO||b==e.u.i.nc.pW||b==e.u.i.nc.MIN||b==e.u.i.nc.MAX||b==e.u.i.nc.$n||b==e.u.i.nc.IX?this.Psa(b):this.Msa(b)}Is(){this.close()}KD(){const b=
e.model.C.F.lW?this.eIa(this.view.Xh.Ti()):this.view.Xh.Ti();if(e.model.C.F.YN){var a=u.OO.qR(b,this.ka.mj?this.ka.mj.A:this.view.jr.Ti());if(0==a.Sw){e.Za(a.errorMessage);return}}a=this.ka.N4?this.view.$B.checked:!1;this.ka.lk(b,this.view.jr.Ti(),a);this.close()}eIa(b){b=b.slice(0);const a=b.match(this.z$),c=e.u.Ra.V().O.Ba;let d,g;for(let k=0;k<a.length;k++){d=a[k].substring(1,a[k].length-1);for(g=0;g<c.length&&d!==c.ea(g).kl;g++);g<c.length&&(b=b.replace('"'+d+'"','"'+c.ea(g).A+'"'))}return b}fIa(b){b=
b.slice(0);const a=b.match(this.z$),c=e.u.Ra.V().O.Ba;let d;for(let g=0;g<a.length;g++)d=a[g].substring(1,a[g].length-1),b=b.replace('"'+d+'"','"'+c.getItem(d).kl+'"');return b}close(){this.$a(v.fa.h6)}qz(b,a=0){var c=this.view.Xh.G.element.selectionStart,d=this.view.Xh.Ti();-1==c&&(c=this.di);0==c||" "==d.charAt(c-1)?(this.view.Xh.qz(b+" "),this.di=c+b.length+1):(this.view.Xh.qz(" "+b+" "),this.di=c+b.length+2);this.di-=a;this.view.Xh.Af(this.di)}Msa(b){this.qz(b)}Psa(b){const a=this.view.Xh.G.element.selectionStart,
c=this.view.Xh.G.element.selectionEnd,d=this.view.Xh.Ti();if(e.u.i.nc.QO==b)this.qz(b+"("+d.slice(a,c)+", , )",6);else{let g=e.u.i.nc.MIN==b||e.u.i.nc.MAX==b?",":"";this.qz(b+"("+d.slice(a,c)+g+")",2+g.length)}}}h.Eka=f})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(a){super();this.controller=a;this.He()}He(){var a=new x.Ma("div","fm-popup-header fm-ui-row");this.W(a);var c=new x.Ma("div","fm-ui-col fm-vam");a.W(c);this.tq=new x.Uc(e.model.B.j.AW);this.tq.$("fm-popup-title");c.W(this.tq);this.aW=new x.Uc(e.model.B.j.b6);this.aW.$("fm-popup-subtitle");c.W(this.aW);c=new x.Ma("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.W(c);this.px=new x.Kg("fm-ui-btn-light fm-icon-act_trash fm-remove-btn");
this.px.G.attr("title",e.model.B.j.d6);c.W(this.px);this.Ne=new x.Kg("fm-ui-btn");this.Ne.cb(e.model.B.j.wl);this.Uh=new x.Kg("fm-ui-btn-dark");this.Uh.cb(e.model.B.j.Kx);u.hj.vD||u.hj.Ho?(c.W(this.Ne),c.W(this.Uh)):(c.W(this.Uh),c.W(this.Ne));this.content=a=new x.Ma("div","fm-popup-content");this.W(a);this.jr=new x.Hj;this.jr.$("fm-name-input");this.jr.kE(e.model.B.j.zW);a.W(this.jr);c=new x.Ma("div","fm-list-header fm-list-header-wide");a.W(c);var d=new x.Ma("div","fm-list-header-label-wrap");c.W(d);
var g=new x.Uc(e.model.B.j.rv);d.W(g);this.Ve=new x.Ma("div","fm-search-wrap");c.W(this.Ve);this.qe=new x.Ma("a","fm-search-btn");this.qe.Ie(0);this.qe.Ik("button");this.Ve.W(this.qe);c=new x.Ma("span","fm-ui-icon fm-icon-act_search");this.qe.W(c);this.he=new x.Hj;this.he.$("fm-search-inp");this.Ve.W(this.he);this.$i=new x.Ma("span","fm-close-search fm-ui-icon fm-icon-act_close");this.$i.Ie(0);this.$i.Ik("button");this.Ve.W(this.$i);c=new x.Ma("div","fm-list-content");a.W(c);this.Ub=new x.zd.ij;this.Ub.$("fm-lst-measures");
this.Ub.Ie();this.Ub.useCache=!1;this.Ub.qg("caption");c.W(this.Ub);this.$B=new x.NJ;this.$B.cb(e.model.B.j.Z5);a.W(this.$B);this.Nca=new x.Ma("div","fm-ui-row fm-func-btn-group");a.W(this.Nca);this.ES=[];c=this.controller.v0;for(d=0;d<c.length;d++)g=new b,g.data=c[d],g.G.attr("data-index",d),g.cb(c[d].label),g.fi(e.model.B.j[g.data.df]),g.mc(e.model.B.j[g.data.df]),this.Nca.W(g),this.ES.push(g);c=new x.Ma("div","fm-formula-wrap");a.W(c);this.Xh=new x.Hv;this.Xh.$("fm-formula-input");this.Xh.N(x.Hj.Mx,
()=>this.SEa());c.W(this.Xh);this.iU=new x.Uc(e.model.B.j.a6);this.iU.$("fm-prompt");c.W(this.iU);this.hg=new l.pd.FI;this.hg.$("fm-aggregations-view");this.hg.eb();a.W(this.hg);this.Si=new x.$q.sF(a.G);this.Si.eb();a.W(this.Si)}Xf(){this.tq.cb(e.model.B.j.AW);this.aW.cb(e.model.B.j.b6);this.Uh.cb(e.model.B.j.Kx);this.Ne.cb(e.model.B.j.wl);this.jr.kE(e.model.B.j.zW);this.$B.cb(e.model.B.j.Z5);this.iU.cb(e.model.B.j.a6);this.px.fi(e.model.B.j.d6);this.tq.vn();this.aW.vn();this.jr.mc(e.model.B.j.zW);
this.Ub.mc(e.model.B.j.Rja);this.Xh.mc(e.model.B.j.iO);for(const a of this.ES)a.fi(e.model.B.j[a.data.df]),a.mc(e.model.B.j[a.data.df])}ro(a){var c=new x.Ea("span");c.$("fm-drag-handle");c.$("fm-helper");c.$("fm-draggable");c.R("width",a.R("width"));c.R("position","absolute");c.R("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c}SEa(){this.iU.isVisible(0==this.Xh.Ti().length)}}h.Jka=f;class b extends x.Kg{constructor(){super("fm-ui-col-9 fm-calc-action");this.Fd("fm-ui-btn")}}
h.mMa=b})(l.Na||(l.Na={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.ay{constructor(){super(l.Mb.Fb.G);this.ug=this.nf=this.op=this.Zx=this.Mi=0;this.$("fm-drillthrough-view");this.He()}He(){this.HF=new x.be.dk("fm-header-container");this.W(this.HF);this.Zr=new x.Uc;this.Zr.$("fm-popup-title");this.Zr.KV(!1);this.HF.W(this.Zr);this.iB=new x.Kg;this.iB.$("fm-ui-btn-close");this.iB.fi(e.model.B.j.$pa);this.iB.N(x.Md.mf,()=>this.close());this.HF.W(this.iB);this.kB=new x.be.dk("fm-details-container");this.W(this.kB);
this.bG=new x.Uc;this.bG.$("fm-ui-label-light");this.kB.W(this.bG);this.$F=new x.Uc;this.$F.$("fm-ui-label-light");this.kB.W(this.$F);this.aG=new x.Uc;this.aG.$("fm-ui-label-light");this.kB.W(this.aG);this.rK=new x.be.dk("fm-grid-container");this.W(this.rK);this.la=new l.Y.sheet.flat.iJ;this.la.Ie(-1);this.la.dl=!0;this.rK.G.W(this.la);new h.kla(this);this.Et=new h.cr.mla;this.rK.W(this.Et)}X3(){e.v(this.Pe)||this.Pe.Vm()}Ns(b=null,a=null,c=null,d=null,g=null,k=null){this.I=b;e.v(this.Pe)&&(this.Pe=
new h.lla(this));this.Pe.update(a,c,d,g,k)}close(){super.close();this.$a(l.Y.tc.L6);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.K6))}tk(b,a,c=null,d=null){e.v(this.Pe)||this.Pe.tk(b,a,c,d)}dispose(){this.I=null;this.la&&(this.la.dispose(),this.la=null);this.Pe&&(this.Pe.dispose(),this.Pe=null);this.Et.Yd();this.Et.Gg();this.Et=null;this.Zr.Gg();this.Zr=null;this.bG.Gg();this.bG=null;this.$F.Gg();this.$F=null;this.aG.Gg();this.aG=null;this.HF.Gg();this.HF=null;this.rK.Gg();this.rK=null;this.kB.Gg();
this.kB=null;this.iB.Gg();this.iB.Yd();this.iB=null;this.Yd()}}h.SE=f})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.view=b;this.view.N(l.Y.tc.L6,()=>this.bEa());this.view.la.N(l.Y.tc.wJ,a=>this.HD(a));this.view.la.N(l.Y.tc.I6,a=>this.WEa(a));this.view.la.N(l.Y.tc.H6,a=>this.VEa(a));this.view.Et.N(l.pd.gp.BO,()=>this.R2());this.view.Et.N(l.pd.gp.WI,a=>this.Q2(a))}TR(b){return e.model.Va.V().Ia.ga.Gc?e.model.Va.V().Ia.ga.Da==e.u.i.qa.Tc?new h.Es.s8(b):e.model.Va.V().Ia.ga.Da==e.u.i.qa.API?new h.Es.tja(b):e.model.Va.V().Ia.ga.Da==e.u.i.qa.le?new h.Es.toa(b):
new h.Es.w8(b):new h.RE(b)}update(b=null,a=null,c=null,d=null,g=null){e.v(this.model)||this.model.dispose();this.model=this.TR(this.view.I);this.model.cell=g;this.model.N(h.RE.AO,()=>this.aq());this.model.update(b,a,c,d);this.view.la.slice=b;this.view.la.SC=(k,m)=>this.model.getData(k,m);this.view.la.yL.lha=(k,m,n)=>this.saveData(k,m,n)}aq(){this.view.open();const b=()=>{this.view.la.sb(l.Ni.$o,b);e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.M6,this.model.cell))};this.view.la.N(l.Ni.$o,b);this.Vm()}Vm(){this.model.Y3();
this.Xia();this.view.Et.isVisible(this.model.RBa);this.view.Xj(l.Mb.gv-70);const b=l.Mb.Fb.G.xd(!0)-this.view.kB.G.xd(!0)-this.view.HF.G.xd(!0)-30-this.view.G.padding.top-this.view.G.padding.bottom-40,a=this.view.uf()-(parseInt(this.view.G.R("border-left-width"))+parseInt(this.view.G.R("border-right-width")));this.view.la.fs();this.view.la.resize(a,b);this.view.la.width=a;this.view.la.height=b;this.view.la.Lca(1);this.view.la.yL.Jha(e.model.C.F.EC&&!e.u.Ra.V().ga.Gc);this.view.la.Gha(this.model.oN,
this.model.Oaa);this.view.la.kb();this.view.zp()}Xia(){this.view.Zr.cb(e.model.B.j.gla);var b=this.model.zAa();this.view.bG.cb(b,!0);this.view.bG.isVisible(!e.ia(b));b=this.model.iza();this.view.$F.cb(b,!0);this.view.$F.isVisible(!e.ia(b));b=this.model.Zza();this.view.aG.cb(b,!0);this.view.aG.isVisible(!e.ia(b))}HD(b){e.model.Va.V().Ia.ga.Gc||b.Oea||this.Pwa(b.cell);b.cell&&b.cell.Nh&&b.cell.QB==l.Y.X.Aq.JJ&&(this.model.HN(b.cell),this.view.la.clearData(),this.view.la.kb())}Pwa(b){if(e.model.Ua.V().n1(e.model.Ua.jO)&&
!e.v(b)){var a=this.model.xAa(b.lb);e.v(a)||(b.dl=!0,b=b.Qa(),b.rowData=a,e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.jO,b)))}}WEa(b){this.model.zw.$Ha(b.data.index);this.model.uq(this.model.zw)}VEa(b){let a=b.data.uya;b=b.data.gKa;b=Math.max(0,Math.min(b,this.model.zw.selected.length));a<b&&b--;a!=b&&(this.model.zw.DDa(a,b),this.model.uq(this.model.zw))}R2(){this.view.Et.open(this.model.zw)}Q2(b){this.model.uq(b.data)}tk(b,a,c,d){const g=this.model.Oaa,k=0<this.model.oN?this.model.oN+1:0;b==e.model.Ac.ej.LA&&
e.model.Ac.Z6.pg(this.view,a,d);b==e.model.Ac.ej.vv&&e.model.Ac.Y6.pg(this.view,a,g,k,d);b==e.model.Ac.ej.Sh&&e.model.Ac.X6.pg(this.view,a,g,k,c);b==e.model.Ac.ej.JSON&&e.model.Ac.a7.pg(this.view,a,g,k,c);b==e.model.Ac.ej.TA&&e.model.Ac.Xe.pg(this.view,a,g,k,d);b==e.model.Ac.ej.TE&&(a.hA=a.hA&&(e.model.Va.V().Ia.ga.Da==e.u.i.qa.Tc||e.model.Va.V().Ia.ga.Da==e.u.i.qa.le)&&e.model.C.F.vq,e.model.Ac.c7.pg(this.view,a,g,k))}saveData(b,a,c){this.timer&&this.timer.pl&&this.timer.stop();null==this.timer&&
(this.timer=new u.wt(1E3,1));this.timer.N(u.pf.Bl,()=>this.uGa());this.timer.start();this.model.saveData(b,a,c);this.Vm()}uGa(){this.Xia();this.timer.stop()}bEa(){this.view.la.yL.uia();e.model.C.F.EC&&this.model.D_&&(this.model.D_=!1,e.u.Ra.V().refresh())}dispose(){this.timer&&(this.timer.stop(),this.timer=null);this.model&&(this.model.dispose(),this.model=null);this.view=null}}h.lla=f})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(b){super();this.bI=NaN;this.MH={};this.D_=!1;this.cell=null;this.kn=b}update(b=null,a=null,c=null,d=null){this.Qb=b;this.wg=this.x_(b);this.lh=c;this.Bg=a;this.measure=d;this.MH={};this.Qd()}uq(b){this.wg=b;b=[];if(this.wg.Oo&&0<this.wg.Oo.length){for(var a=0;a<this.wg.Oo.length;a++){var c=this.wg.Oo[a].level;b.push(void 0===c?this.wg.Oo[a].hierarchy:c)}this.Qb.bd=b}else this.Qb.bd=this.wg.selected;this.Qd()}get zw(){return this.wg}x_(b){const a=
new h.cr.P6;var c=this.Qb.Yc.wc(!1);for(var d=0;d<c.length;d++){var g=c.ea(d);a.bf.Ta(g.A,{A:g.A,caption:g.caption,ta:g.ta.Nc(!0).slice(1)})}d=null!=b.bd&&0<b.bd.length?b.bd:null!=e.model.Va.V().Ia.nM&&0<e.model.Va.V().Ia.nM.length?e.model.Va.V().Ia.nM:b.flatten().Nc(!0);for(c=0;c<d.length;c++)g=d[c],a.bf.Hb(g)&&a.eG(g);d={};for(c=0;c<b.Kf.length;c++)g=b.Kf[c],g.Na&&0<g.Xd.length&&this.Uca(g.Xd,d);for(const k in d)c=b.Yc.gd(k),e.v(c)||c.Na||a.eG(k);return a}Uca(b,a){if(void 0!==b[2]){var c,d;for(d in b[1]){var g=
c=b[1][d];Array.isArray(c)&&(g=this.Uca(c,a));if(g==e.u.i.wO.vO&&b[0]==e.u.i.nc.UI)break;void 0!==g&&(a[g]=1)}}}Y3(){this.Qd(!1)}Qd(b=!0){this.data=this.kn.bd(this.lh,this.Bg,this.measure);this.keys=this.data.shift();const a=this.kn.Du(this.lh,this.Bg);this.tDa(a);this.XZ();b&&this.$a(f.AO)}tDa(b){this.bI=NaN;if(!e.v(b))if(Array.isArray(b)){this.bI=this.data[0].length;for(let a=0;a<b.length;a++)this.data[a].push(b[a])}else e.v(this.data[0])||(this.bI=this.data[0].length,this.data[0].push(b))}HN(b){const a=
b.measure&&b.measure.type==e.u.i.Pa.xc?e.u.i.za.ic:e.u.i.za.Kc;let c=!0;this.ER==b.hierarchy?(this.Ih=this.Ih==e.u.i.za.ic?e.u.i.za.Kc:this.Ih==e.u.i.za.Kc?e.u.i.za.ic:a,c=!0):(this.Ih=a,c=!1);this.ER=b.hierarchy;const d=this.tda(b.hierarchy),g=b.hierarchy.Yj(b.hierarchy.Ad,!0,this.Ih);c?this.data.reverse():this.data.sort((k,m)=>g.indexOf(k[d])-g.indexOf(m[d]))}xAa(b){if(e.v(this.data)||e.v(this.data[b-1]))return null;const a=[];for(let c=0;c<this.zw.bf.length;c++){const d=this.yAa(b,this.wg.bf.Jh(c));
a.push(null==d?d:d.Qa())}return a}yAa(b,a){a=this.Qb.Yc.fh(a);if(null==a)return null;const c=this.Qb.cf(a.A);return null==c?null:this.jda(b,-1,a,c)}XZ(){this.Ih=this.ER=null}get Oaa(){return e.v(this.zw)?0:this.zw.Oo.length}get oN(){return e.v(this.data)?0:this.data.length}zAa(){for(var b,a=[],c=0;c<this.lh.length;c++){b=this.Qb.yb.ea(c);if(null==b)return null;b=b.ya(this.lh[c]);a.push(e.P.zo(b.caption,!0,!0))}a=0<a.length?e.P.bind(e.model.B.j.fla,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi,
" ")}iza(){for(var b,a=[],c=0;c<this.Bg.length;c++){b=this.Qb.Db.ea(c);if(null==b)return null;b=b.ya(this.Bg[c]);a.push(e.P.zo(b.caption,!0,!0))}a=0<a.length?e.P.bind(e.model.B.j.ela,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi," ")}Zza(){var b=this.measure.Yh(this.measure.A,this.measure.aa).clone();const a=this.kn.Ha(this.lh,this.Bg,this.measure);this.measure.aa==e.u.i.da.Ji?b.rd="":e.u.i.da.Rf(this.measure.aa)?b.Rf=!0:e.u.i.da.de(this.measure.aa)&&(b.de=!0,b.rd="%");const c=e.u.i.Pa.dc==
this.measure.type&&e.u.i.da.Zo(this.measure.aa),d=e.u.i.Pa.Sa==this.measure.type||e.u.i.Pa.Jc==this.measure.type;b=c?e.P.Cx(a,e.model.C.F.Wo):d?this.cell.label:u.Yb.format(a,b);b=e.P.bind(e.model.B.j.hla,e.P.zo(this.measure.label,!0,!0),b);return b=b.replace(/<br\s*[\/]?>/gi," ")}get RBa(){return e.model.C.F.cia?e.u.Ra.V().ga.JT:!1}get uCa(){return!e.model.Va.V().Ia.ga.Gc&&e.model.Va.V().Ia.ga.Da!=e.u.i.qa.ag&&e.model.Va.V().Ia.ga.Da!=e.u.i.qa.API}getData(b,a){return e.v(this.wg)?null:0==b?this.VC(a):
0>a||a>=this.wg.Oo.length?null:this.dH(b,a)}VC(b){const a=new l.Y.X.ke;a.dl=!0;a.Nh=!0;if(0>b||b>=this.wg.Oo.length)return null;var c=this.wg.Oo[b].level;b=this.Qb.Yc.fh(this.wg.Oo[b].hierarchy);if(null==b)return null;void 0!==c&&(c=b.uu(c),null!=c&&(a.label=b.caption+" / "+c.caption));e.ia(a.label)&&(a.label=b.caption);a.hierarchy=b;a.measure=this.Qb.Yc.cf(b.A);this.uCa&&(a.Kn=!0,a.hierarchy==this.ER&&(a.Ro=this.Ih==e.u.i.za.ic,a.So=this.Ih==e.u.i.za.Kc));return a}dH(b,a){if(e.v(this.data)||e.v(this.data[b-
1]))return null;var c=this.Qb.Yc.fh(this.wg.Oo[a].hierarchy);if(null==c)return null;const d=this.Qb.cf(c.A);return null==d?null:this.jda(b,a,c,d)}jda(b,a,c,d){const g=new l.Y.X.ke;g.lb=b;g.qc=a;g.dl=!0;g.ci=!0;const k=c.ya(this.hAa(b,this.tda(c)));g.label=this.bAa(k,-1!=a?this.wg.Oo[a].level:void 0);g.hierarchy=c;a=this.ZS(d);d.type!=e.u.i.Pa.jb&&d.type!=e.u.i.Pa.dc&&d.type!=e.u.i.Pa.Sa&&d.type!=e.u.i.Pa.Jc||e.v(k)||(g.value=k.fc,g.label=d.type==e.u.i.Pa.jb?u.Yb.format(g.value,a):k.caption,g.numeric=
g.numeric||d.type!=e.u.i.Pa.jb?g.numeric:!0);e.ia(a.textAlign)||g.Qy({"text-align":a.textAlign});g.mN=this.Du(b);g.measure=d;return g}Du(b){return isNaN(this.bI)?void 0:this.data[b-1][this.bI]}ZS(b){e.v(this.MH[b.A])&&(this.MH[b.A]=b.Yh(b.A,b.aa,!0).clone());return this.MH[b.A]}hAa(b,a){for(;null==this.data[b-1][a];)a--;return this.data[b-1][a]}bAa(b,a){let c="";if(e.v(b))return c;c=b.caption;if(!e.ia(a))for(;b;){if(b.level.A==a){c=b.caption;break}b=b.parent}return c}tda(b){var a=this.keys.indexOf(b.A);
2<b.ta.length&&(a=this.keys.indexOf(b.ta.Jh(b.ta.length-1)));return a}saveData(b,a,c){(a=this.getData(b,a))&&a.label!=c&&a.value!=c&&(c=this.kn.save(this.lh,this.Bg,a.hierarchy,c,b-1),this.data[b-1][this.keys.indexOf(a.hierarchy.A)]=c,this.D_=!0)}dispose(){this.keys=this.data=this.measure=this.lh=this.Bg=this.wg=this.Qb=this.kn=null;this.bI=NaN;this.MH=this.Ih=this.ER=null}}f.AO="dataloaded";h.RE=f})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends l.Y.G7{show(b,a){var c=[];c=this.XR(c,b?b.Qa():null,"drillthrough");return 0<c.length?(this.dS(c,a),!0):!1}}h.kla=f})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b{constructor(){this.jk=[];this.rn=[];this.bf=new e.tb}get selected(){return this.jk}set selected(a){e.v(a)||(this.jk=a,this.rn=null)}eG(a){this.yd(a)||(this.jk.push(a),this.rn=null)}$Ha(a){this.qT?this.rn.splice(a,1):(this.jk.splice(a,1),this.rn=null)}get qT(){return!e.v(this.rn)&&this.jk.length!==this.rn.length}DDa(a,c){this.qT?e.Ja.F2(this.rn,a,c):(e.Ja.F2(this.jk,a,c),this.rn=null)}yd(a){return this.qT?0<=this.rn.findIndex(c=>void 0!==
c.level?c.level===a:c.hierarchy===a):0<=this.jk.indexOf(a)}get Oo(){if(!e.v(this.rn))return this.rn;this.rn=[];for(let d=0;d<this.jk.length;d++){var a=this.bf.getItem(this.jk[d]);if(!e.v(a))if(a=a.ta,void 0!==a&&1<a.length)for(var c=0;c<a.length;c++)this.rn.push({hierarchy:this.jk[d],level:a[c]});else this.rn.push({hierarchy:this.jk[d]})}return this.rn}isEqual(a){if(e.v(a)||e.v(a.jk)||this.jk.length!=a.jk.length)return!1;for(let c=0;c<this.jk.length;c++)if(this.jk[c]!=a.jk[c])return!1;return!0}clone(){const a=
new b;a.bf=this.bf.slice();a.jk=a.jk.slice();return a}}f.P6=b})(h.cr||(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends x.Ma{constructor(){super();this.$("fm-fields-view-wrap");this.He();this.Pe=new f.nla(l.Mb.Fb.G);this.Pe.N(v.fa.CLOSED,()=>this.dN());this.Pe.N(l.pd.gp.WI,a=>this.I2(a))}He(){this.Ms=new x.Kg("fm-btn-open-fields");this.Ms.fi(e.model.B.j.LP);this.Ms.N(x.Md.mf,()=>this.s3());this.W(this.Ms)}updateLabels(){this.Ms.fi(e.model.B.j.LP)}open(a){this.G.Wa("fm-fields-opened",!0);this.Pe.uq(a);this.Pe.view.open();this.Uv=!0}close(){this.Pe.view.eb();
this.Pe.view.close()}s3(){this.$a(l.pd.gp.BO)}dN(){this.Uv=!1;this.G.Wa("fm-fields-opened",!1)}I2(a){this.Fa(a)}get Pu(){return this.Uv}}f.mla=b})(h.cr||(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.pd.flat.X5{constructor(a){super(a)}uq(a,c){this.Qb=a;this.Ft=c;this.Oa=a.bf.Nc();this.hl(a.selected);this.lI(this.Oa,a.selected)}get slice(){return this.Qb}get rD(){return!1}get $T(){return!1}iM(a){const c=this.Qb.clone();c.selected=this.Iia(this.Oa,a).map(d=>d.A);return c}aU(){return!1}Yu(){}Zu(){}update(){}mE(){}}f.ola=b})(h.cr||(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.pd.flat.A7{constructor(a){super(a);this.$("fm-fields-view");this.$("fm-dt-fields");this.OD.$("fm-dt-fields-overlay");l.Mb.Fb.G.W(this.G)}}f.pla=b})(h.cr||(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends l.pd.flat.dX{constructor(a){super(a,!1);this.model=this.Gb}TR(a){return new f.ola(a)}nba(a){return new f.pla(a)}uq(a){this.model.uq(a,l.pd.gp.pS);this.Vm();this.view.Zd&&this.view.Zd.Af(this.Gb.Y0());this.view.Xf()}ne(){var a=[];const c=this.view.fb.G.find("li",!0);for(let d=0;d<c.length;d++){const g=parseInt(c[d].attr("data-index"));a.push(g)}a=this.Gb.iM(a);this.model.slice.isEqual(a)||this.$a(l.pd.gp.WI,this,a)}}f.nla=b})(h.cr||
(h.cr={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.RE{constructor(a){super(a);this.rf=e.u.Ra.V()}get oN(){return e.v(this.data)?0:this.data.length-1}Y3(){}Qd(){this.data=[];this.rf.bd(this.lh,this.Bg,this.measure,a=>this.aq(a),this.wg.selected)}aq(a){this.data=a;e.Ca(!1);this.$a(h.RE.AO)}dda(a){a=this.rf.ga.mapping.Ha(a,"time_zone");return e.v(a)?e.model.C.F.Mj:(a=Number(a.split(":",1)[0]),isNaN(a)?e.model.C.F.Mj:a)}dH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=
this.Qb.Yc.fh(this.wg.selected[c]);if(null==d)return null;var g=this.Qb.cf(d.A);if(null==g)return null;const k=this.data[a][c];g=this.ZS(g);const m=new l.Y.X.ke;m.lb=a;m.qc=c;m.dl=!0;m.ci=!0;if(d.type==e.u.i.Lc.Cq)"number"==typeof k&&(m.label=u.Yb.format(k,g),m.value=k);else if(d.type==e.u.i.Lc.Sa)if("number"===typeof k)a=this.cda(d.A),d=this.dda(d.A),m.label=e.P.Bx(k,a,d),m.value=k;else if("string"!==typeof k||e.ia(k))m.label=e.model.B.j.Qn;else try{const n=e.P.HT(k),p=this.cda(d.A),t=this.dda(d.A);
m.label=n?u.zh.format(new Date(k),p,t):k}catch(n){m.label=k}else m.label=k;e.ia(g.textAlign)||m.Qy({"text-align":g.textAlign});return m}cda(a){return this.rf.ga.mapping.Ha(a,"format",e.model.C.F.Ep)}dispose(){super.dispose();this.rf=null}}f.w8=b})(h.Es||(h.Es={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){(function(f){class b extends h.RE{constructor(a){super(a);this.rf=e.u.Ra.V()}update(a=null,c=null,d=null,g=null){this.Qb=a;this.lh=d;this.Bg=c;this.measure=g;this.MH={};this.Qd()}Y3(){}Qd(){this.data=[];this.rf.bd(this.lh,this.Bg,this.measure,a=>this.aq(a))}uq(a){this.wg=a;this.fY={};for(a=0;a<this.wg.selected.length;a++){var c=this.wg.selected[a];this.fY[c]=this.wg.bf.indexOf(c)}this.$a(h.RE.AO)}aq(a){e.Ca(!1);this.data=a;this.uq(this.x_(this.Qb))}x_(a){const c=
new h.cr.P6;for(var d of this.data[0])d=d.replace("$",""),c.bf.Ta(d,{A:d,caption:this.gAa(d)});if(!e.model.C.F.F4&&this.rf.ga.JT){var g=a.flatten();d=c.bf.Nc(!0);for(var k=0;k<g.length;k++){var m=g.ea(k);if(2>=m.ta.length)m=this.hDa(m,d),e.ia(m)||c.eG(m);else if(null!=m.oc)m=m.gg.split("."),m=0<m.length?m[0]+"."+m[m.length-1]:null,-1<d.indexOf(m)&&c.eG(m);else{m=m.A.split(".");for(let n=0;n<d.length;n++)-1<(m[0]==d[n].split(".")[0]?n:-1)&&c.eG(d[n])}}for(g=0;g<a.Kf.length;g++)k=this.iDa(a.Kf[g],d),
e.ia(k)||c.eG(k)}if(e.model.C.F.F4||0==c.selected.length)c.selected=c.bf.Nc(!0);return c}gAa(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}hDa(a,c){for(var d=0;d<c.length;d++){var g=c[d];if(g==a.A||0<=g.indexOf(`[${a.caption}]`))return g}return null}iDa(a,c){for(var d=0;d<c.length;d++){var g=c[d];if(g==a.A)return g;var k=a.A.split(".");if(g==`[${a.Dg}].${k[k.length-1]}`)return g;k=g;k="["==k.charAt(0)?k.substr(1):k;if(0<=a.A.indexOf(k))return g}return null}VC(a){const c=
new l.Y.X.ke;c.dl=!0;c.Nh=!0;a=this.wg.selected[a];if(e.v(a))return null;c.label=this.wg.bf.getItem(a).caption;return c}dH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=this.wg.selected[c];const g="[Measures].["+this.wg.bf.getItem(d).caption+"]",k=this.kn.Ba.find(n=>n.A===g);d=this.data[a][this.fY[d]];const m=new l.Y.X.ke;m.lb=a;m.qc=c;m.dl=!0;m.ci=!0;e.model.C.F.vq||null==k?"number"==typeof d?(m.label=e.model.C.F.vq||null!=k?u.Yb.format(d):u.Yb.format(d,e.model.ec.gj.RS()),m.value=
d):(m.label=d,null==k&&m.Qy({"text-align":"left"})):(a=this.ZS(k),m.label=u.Yb.format(d,a),m.value=d,""!=a.textAlign&&m.Qy({"text-align":a.textAlign}));return m}dispose(){super.dispose();this.fY=this.rf=null}}f.s8=b})(h.Es||(h.Es={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));var db=q||(q={}),eb=db.K||(db.K={}),fb=eb.Nf||(eb.Nf={}),gb=fb.Es||(fb.Es={});class hb extends gb.s8{}gb.toa=hb;
(function(e){(function(l){(function(h){(function(f){class b extends f.w8{dH(a,c){if(e.v(this.data)||e.v(this.data[a]))return null;var d=this.wg.Oo[c].level,g=this.Qb.Yc.fh(this.wg.Oo[c].hierarchy);if(null==g)return null;var k=d?g.uu(d):null,m=this.Qb.cf(g.A);if(null==m)return null;d=this.data[a][c];m=this.ZS(m);const n=new l.Y.X.ke;n.lb=a;n.qc=c;n.dl=!0;n.ci=!0;g.type===e.u.i.Lc.Cq?(n.label="number"===typeof d?u.Yb.format(d,m):d,n.value=d):g.type===e.u.i.Lc.Sa||k&&e.u.i.ib.HBa(k.type)?"number"==typeof d?
(k&&k.type===e.u.i.ib.Jc?(a=this.rf.ga.mapping.Ha(g.A,"format",e.model.C.F.rk),n.label=e.P.ON(d,a,e.model.C.F.Mj)):(a=this.rf.ga.mapping.Ha(g.A,"format",e.model.C.F.Ep),n.label=e.P.Bx(d,a,e.model.C.F.Mj)),n.value=d):"string"!==typeof d||e.ia(d)||"null"===d?n.label=!e.model.C.F.br||null!==d&&"null"!==d?e.model.B.j.Qn:e.model.B.j.IW:n.label=d:n.label=d;e.ia(m.textAlign)||n.Qy({"text-align":m.textAlign});return n}}f.tja=b})(h.Es||(h.Es={}))})(l.Nf||(l.Nf={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){class h{}h.Qx="FILTER_OPEN";h.aX="FILTER_CLOSE";h.LW="DRILL_THROUGH_OPEN";h.p6="CONTEXT_MENU_OPEN";h.GX="RENDER_COMPLETE";h.Jx="beforegriddraw";h.$o="aftergriddraw";l.Ni=h;class f extends v.fa{constructor(a){super(h.Qx);this.hierarchy=a}}l.NO=f;class b extends v.fa{constructor(a,c,d,g){super(h.LW);this.measure=a;this.Bg=c;this.lh=d;this.cell=g}}l.O6=b})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.bs=[];this.Hd=new e.XE;this.re=[];this.td="";this.Ee=!0}FV(b){this.th=b}Sha(b){this.$f=b;this.bs=this.th.Yj(this.th.Ad,!1,this.$f)}wha(b,a){var c=this.Te()?this.re:this.bs;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(c[b],!0)}select(b,a){this.Ee!=a?this.Hd.add(b):this.Hd.delete(b);this.Hd.size!=this.bs.length||this.Te||this.selectAll(!this.Ee)}search(b,a){b=b.toLowerCase();this.td===b?a(this.re):
(this.td=b,0==this.td.length?a():e.u.Ra.V().nq(this.th,b,a))}Rha(b){null!=b?this.re=b:this.re.length=0}selectAll(b){if(this.Te())for(var a=this.re.length,c=0;c<a;c++)e.P.contains(this.th.ya(this.re[c]).caption,this.td)&&this.select(this.re[c],b);else this.Ee=b,this.Hd.clear()}uha(){}Nw(){var b=this.Ee||this.Te()?this.Ee&&this.Te()?this.re.length+this.Pva()-this.Hd.size:this.Ee||0!=this.Hd.size?this.bs.length==this.Hd.size?this.re.length:this.bs.length-this.Hd.size:this.Hd.size:this.Hd.size;return 0<
b?b:0}Pva(){let b=0;for(let a=0;a<this.re.length;a++)this.Hd.has(this.re[a])&&b++;return this.Hd.size-b}jz(){if(this.Te()){for(var b=0,a=0;a<this.re.length;a++)!this.Hd.has(this.re[a])==this.Ee&&b++;return b}return this.Nw()}CV(b){this.Hd.clear();var a=b.length;this.Ee=0==a;if(!this.Ee)for(let c=0;c<a;c++)this.Hd.add(b[c])}TS(){const b=[];var a=this.Te()&&this.Ee?this.re:this.Hd.Nc();const c=a.length;if(this.Te()&&this.Ee)for(a=0;a<this.re.length;a++)this.Hd.has(this.re[a])||b.push(this.re[a]);else for(let d=
0;d<c;d++)b[d]=a[d];a=this.Te()&&this.Ee?!1:0==b.length?!1:this.Ee;return{items:b,Wu:a}}GV(b){this.bs=b;this.td="";this.re.length=0}S0(b,a){const c=[];let d=b;var g=e.P.zo(this.td.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),!0,!0);g=new RegExp("("+g+")","ig");const k=this.Te()?this.re:this.bs;let m;for(;d<a&&!(d>k.length-1);d++){var n=this.th.ya(k[d]);m=e.P.zo(n.caption,!0,!0);n={bc:n,label:this.Te()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,yd:(this.Hd.has(n.ordinal)?!this.Ee:this.Ee)?
1:0,cfa:0,vIa:a-b<k.length-1?15:0,Sg:n.Sg&&"Others"!==m};c.push(n)}return c}getItem(b){return(this.Te()?this.re:this.bs)[b]}jH(){return this.Te()?this.re.length:this.bs.length}getTotalLength(){return this.jH()}Te(){return 0<this.td.length}expand(){}collapse(){}}h.zX=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){this.md=[];this.Hd=[];this.re=[];this.Gk=[];this.az=[];this.td="";this.Ee=!0;this.$f=e.u.i.za.fd}FV(b){this.th=b;this.md.length=0}Sha(b){this.$f=b;this.md.length=0;this.D1(this.th.Ad,-1)}GV(b){for(var a=0,c=b.length,d;a<c;a++)d=this.th.ya(b[a]),d.Zb||(this.md.push(b[a]),d.Rg&&d.children&&0<d.children.length&&(this.az.push(b[a]),this.GV(this.$f===e.u.i.za.fd?d.children.slice():this.th.Yj(d,!1,this.$f))))}S0(b,a){var c=b,d=[],g=new RegExp("("+
this.td+")","i"),k=this.Te()?this.re:this.md;let m;for(;c<a&&!(c>k.length-1);c++){var n=this.th.ya(k[c]);m=e.P.zo(n.caption,!0,!0);n={bc:n,cfa:n.level.wb,label:this.Te()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,yd:this.yd(n),Te:this.Te(),Sf:this.Sf(n),vIa:a-b<k.length-1?17:0,Sg:n.Sg&&"Others"!=n.caption,nT:this.nT(n)};d.push(n)}return d}getItem(b){return(this.Te()?this.re:this.md)[b]}yd(b){var a=(-1==this.Hd.indexOf(b.ordinal)?this.Ee:!this.Ee)?1:0;0<this.Hd.length&&-1!=this.Gk.indexOf(b.ordinal)&&
(a=-1);return a}nT(b){return this.Te()?!1:!b.Oh}Sf(b){return this.Te()||b.Oh?void 0:-1!=this.az.indexOf(b.ordinal)?!0:!1}jH(){return this.Te()?this.re.length:this.md.length}getTotalLength(){if(this.Te()){let c=0;if(e.u.Ra.V().ga.Gc)for(var b=this.re.length,a=0;a<b;a++)e.P.contains(this.th.ya(this.re[a]).caption,this.td)||c++;return this.re.length-c}return this.th?this.th.Ri-1:0}wha(b,a){var c=this.Te()?this.re:this.md;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(this.th.ya(c[b]),
!0)}select(b,a){var c=this.Hd.indexOf(b.ordinal);this.Ee!==a?(-1==c&&this.Hd.push(b.ordinal),0<b.children.length&&this.gV(b)):(-1!=c&&this.Hd.splice(c,1),0<b.children.length&&this.f4(b));a=this.Gk.indexOf(b.ordinal);-1!=a&&this.Gk.splice(a,1);this.vha(b);this.Hd.length===this.th.Ri-1&&(this.Hd.length=0,this.Gk.length=0,this.Ee=!this.Ee)}uha(b){-1==this.Gk.indexOf(b.ordinal)&&(-1==this.Hd.indexOf(b.ordinal)?this.f4(b):this.gV(b))}vha(b){var a=b.parent;if(a&&!a.Zb){b=this.Hd.indexOf(a.ordinal);var c=
this.Gk.indexOf(a.ordinal);var d=-1!=b;this.Rda(a,!1)?(this.Rda(a)?(-1==c&&this.Gk.push(a.ordinal),this.Ee&&d&&this.Hd.splice(b,1)):(-1!=c&&this.Gk.splice(c,1),this.Ee&&!d&&this.Hd.push(a.ordinal)),!this.Ee&&d&&this.Hd.splice(b,1)):(-1!=c&&this.Gk.splice(c,1),this.Ee&&d?this.Hd.splice(b,1):this.Ee||d||this.Hd.push(a.ordinal));this.vha(a)}}Rda(b,a=!0){var c=0;b=b.children;for(var d=b.length;c<d;c++)if(-1==this.Hd.indexOf(b[c])==this.Ee==a||-1!=this.Gk.indexOf(b[c]))return!0;return!1}gV(b){var a=0;
b=b.children;for(var c=b.length;a<c;a++){var d=this.Hd.indexOf(b[a]);var g=this.Gk.indexOf(b[a]);-1==d&&this.Hd.push(b[a]);-1!=g&&this.Gk.splice(g,1);d=this.th.ya(b[a]);0<d.children.length&&this.gV(d)}}f4(b){for(var a=0,c,d,g=b.children,k=g.length;a<k;a++)d=this.th.ya(g[a]),b=this.Hd.indexOf(g[a]),c=this.Gk.indexOf(g[a]),-1!=b&&this.Hd.splice(b,1),-1!=c&&this.Gk.splice(c,1),0<d.children.length&&this.f4(d)}selectAll(b){if(this.Te())for(var a=this.re.length,c,d=0;d<a;d++)c=this.th.ya(this.re[d]),e.P.contains(c.caption,
this.td)&&this.select(c,b);else this.Ee=b,this.Hd.length=0,this.Gk.length=0}jz(){if(this.Te()){for(var b=0,a=this.re.length,c,d=0;d<a;d++)c=this.th.ya(this.re[d]),e.P.contains(c.caption,this.td)&&0>this.Hd.indexOf(this.re[d])==this.Ee&&b++;return b}return this.Nw()}Nw(){var b=this.Ee?this.th.Ri-this.Hd.length-this.Gk.length-1:this.Hd.length;return 0>b?0:b}CV(b){var a=b.length;this.Hd.length=0;this.Gk.length=0;if(0==a)this.Ee=!0;else{this.Ee=!1;for(var c,d=0;d<a;d++)for(c=this.th.ya(b[d]),this.Hd.push(c.ordinal),
0<c.children.length&&this.gV(c);c.parent&&!c.parent.Zb;)c=c.parent,-1==this.Gk.indexOf(c.ordinal)&&this.Gk.push(c.ordinal)}}TS(){var b=[];var a=this.Te()&&this.Ee?this.re:this.Hd;for(var c=0,d=a.length;c<d;c++){var g=this.th.ya(a[c]);var k=g.parent;var m=-1;e.v(k)||(m=a.indexOf(k.ordinal));-1===m&&b.push(g.ordinal)}g=this.Te()&&this.Ee?!1:0==b.length?!1:this.Ee;return{items:b,Wu:g}}search(b,a){b=b.toLowerCase();this.td===b?a():(this.td=b,0==this.td.length?a():e.u.Ra.V().nq(this.th,b,a))}Rha(b){null!=
b?this.re=b:this.re.length=0}Te(){return 0<this.td.length}expand(b){-1==this.az.indexOf(b.ordinal)&&this.az.push(b.ordinal);this.bia(b,!0)}collapse(b){var a=this.az.indexOf(b.ordinal);-1!=a&&this.az.splice(a,1);this.bia(b,!1)}bia(b,a){var c=this.md.indexOf(b.ordinal);a?this.D1(b,c):this.md.splice(c+1,this.xda(b))}D1(b,a){b=this.$f===e.u.i.za.fd?b.children:this.th.Yj(b,!1,this.$f);for(var c=b.length-1,d=a+1;-1<c;c--)a=this.th.ya(b[c]),this.md.splice(d,0,b[c]),-1<this.az.indexOf(b[c])&&this.D1(a,d)}xda(b){b=
b.children;for(var a=b.length,c=a,d,g=0;g<a;g++)d=this.th.ya(b[g]),-1<this.az.indexOf(b[g])&&(c+=this.xda(d));return c}}h.soa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.dk{constructor(){super();this.$("fm-filter-view-content");this.He()}He(){var b=new x.Ma("div","fm-popup-header fm-ui-row");this.W(b);var a=new x.Ma("div","fm-ui-col-2 fm-vam");b.W(a);this.tq=new x.Uc;this.tq.$("fm-popup-title");a.W(this.tq);a=new x.Ma("div","fm-ui-col fm-vam fm-ui-btns-row");b.W(a);this.mG=new x.Kg("fm-ui-btn");this.mG.cb(e.model.B.j.wl);this.wp=new x.Kg("fm-ui-btn-dark");this.wp.cb(e.model.B.j.Kx);u.hj.vD||u.hj.Ho?(a.W(this.mG),
a.W(this.wp)):(a.W(this.wp),a.W(this.mG));b=new x.Ma("div","fm-ui-row fm-filter-sort-row");this.W(b);this.UG=new x.Ma("div","fm-ui-col fm-filters-col");b.W(this.UG);this.uS=new x.Uc;this.uS.$("fm-filter-label");this.uS.$("fm-ui-label-light");this.UG.W(this.uS);this.ef=new x.NP;this.ef.$("fm-labels-filter-btn");this.ef.$("fm-filter-btn");this.DH=new x.Uc;this.ef.W(this.DH);this.ef.G.W(new x.Ea("div","fm-ui-arrow-up",!1));this.UG.W(this.ef);this.Ef=new x.NP;this.Ef.$("fm-values-filter-btn");this.Ef.$("fm-filter-btn");
this.hja=new x.Uc;this.Ef.W(this.hja);this.Ef.G.W(new x.Ea("div","fm-ui-arrow-up",!1));this.UG.W(this.Ef);this.Wm=new h.Cqa;this.Wm.$("fm-values-filter-view");this.Wm.eb();this.W(this.Wm);this.vo=new h.jla;this.vo.$("fm-dates-filter-view");this.vo.eb();this.W(this.vo);this.Tp=new h.hna;this.Tp.$("fm-labels-filter-view");this.Tp.eb();this.W(this.Tp);this.$p=new h.Coa;this.$p.$("fm-numbers-filter-view");this.$p.eb();this.W(this.$p);this.sq=new h.kqa;this.sq.$("fm-time-filter-view");this.sq.eb();this.W(this.sq);
this.IN=new x.Ma("div","fm-ui-col fm-sort-col");b.W(this.IN);this.VV=new x.Uc;this.VV.$("fm-sort-label");this.VV.$("fm-ui-label-light");this.VV.cb(e.model.B.j.mma);this.IN.W(this.VV);b=new x.Ma("div","fm-sort-btns");this.IN.W(b);this.Kk=new x.NP;this.Kk.$("fm-sort-btn");this.Kk.cb(e.model.B.j.o7);b.W(this.Kk);this.Lk=new x.NP;this.Lk.$("fm-sort-btn");this.Lk.cb(e.model.B.j.r7);b.W(this.Lk);this.Xb=new h.roa;this.W(this.Xb)}get Zd(){return this.Xb.Zd}get sx(){return this.Xb.sx}get Jn(){return this.Xb.Jn}Xf(){this.wp.cb(e.model.B.j.Kx);
this.mG.cb(e.model.B.j.wl);this.Kk.cb(e.model.B.j.o7);this.Kk.fi(e.model.B.j.p7);this.Kk.mc(e.model.B.j.p7);this.Lk.cb(e.model.B.j.r7);this.Lk.fi(e.model.B.j.s7);this.Lk.mc(e.model.B.j.s7);this.uS.cb(e.model.B.j.IA);this.DH.cb(e.model.B.j.KO);this.ef.mc(e.model.B.j.IA+" "+e.model.B.j.KO);this.hja.cb(e.model.B.j.v7);this.Ef.mc(e.model.B.j.IA+" "+e.model.B.j.v7);this.vo.Xf();this.Tp.Xf();this.$p.Xf();this.sq.Xf();this.Wm.Xf();this.Xb.Xf()}}h.Cma=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q=
{}));
(function(e){(function(l){(function(h){class f extends x.Ci.cB{constructor(){super();this.HCa=20;this.pu=new x.WX;this.pu.Fd("fm-ui-toggle-btn");this.pu.$("fm-expand-toggle-btn");this.pu.N(v.fa.$d,()=>this.dEa());this.pu.Ie(-1);this.G.append(this.pu.G);this.fE=new x.NJ;this.fE.G.d4("tabindex");this.fE.N(v.fa.$d,b=>this.D3(b.data));this.G.append(this.fE.G);this.oe("all")}dEa(){var b=this.getData();b.Sf=1==this.pu.getSelection();this.G.$a(h.hJ.XI,this,b)}D3(b){var a=this.getData();a.yd=this.fE.getSelection();this.G.$a(h.hJ.AP,
this,{bc:a,shiftKey:b.shiftKey})}kb(){if(this.zs("data")){const a=this.getData();if(this.pu&&this.fE&&a){this.G.R("padding-left","");var b=this.HCa*(a.cfa-1);a.Te||void 0!==a.Sf||(b+=30);0<b&&this.G.R("padding-left",b+"px");a.nT?(this.pu.show(),this.pu.Af(a.Sf)):this.pu.eb();this.fE.cb(a[this.er()],!0);this.fE.Af(a.yd)}}}}h.Ama=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.zd.rqa{constructor(){super();this.gU=null;this.Ie();this.ei((b,a)=>this.Tza(b,a))}Tza(b,a){var c=new h.Ama;c.setData(b);c.Tm(a);c.N(f.AP,d=>this.D3(d));c.N(f.XI,d=>this.GEa(d));return c}av(b){super.av(b);b=b.data.ql;b.yd=1==b.yd?0:1;this.o5(b)}D3(b){this.o5(b.data.bc,b.data.shiftKey)}o5(b,a=!1){1==b.yd&&a&&this.gU&&this.jh().wha(this.gU.bc,b.bc);this.rJa(b,1==b.yd);this.Fa(new v.fa(f.AP,this))}GEa(b){this.Oia(b.data)}Oia(b){b.Sf?0===b.bc.children.length||
b.bc.vf?e.model.Va.V().ha.Bk(b.bc.hierarchy,b.bc,()=>this.Sj(b)):this.Sj(b):(this.jh().collapse(b.bc),this.oe("data"),this.Fa(new v.fa(f.XI,this)))}Sj(b){e.Ca(!1);this.jh().uha(b.bc);this.jh().expand(b.bc);this.oe("data");this.Fa(new v.fa(f.XI,this))}jh(){return this.Jxa}D4(b){this.Jxa=b}TS(){return this.jh().TS()}CV(b){this.jh().CV(b);this.oe("data")}jz(){return this.jh().jz()}Nw(){return this.jh().Nw()}getTotalLength(){return this.jh().jH()}iT(){return this.jh().getTotalLength()}rJa(b,a){this.jh()instanceof
h.zX?this.jh().select(b.bc.ordinal,a):this.jh().select(b.bc,a);this.gU=a?b:null;this.oe("data")}selectAll(b){this.jh().selectAll(b);this.gU=null;this.oe("data")}search(b,a){this.jh().search(b,c=>{this.jh().Rha(c);this.oe("data");a()});this.G.Wa("fm-is-searched",this.Te())}Te(){return this.jh().Te()}FV(b){this.jh().FV(b)}sort(b){b!==this.jh().$f&&(this.jh().Sha(b),this.oe("data"))}}f.AP="_";f.XI="__";h.hJ=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){if(null!=f.instance)throw"FilterModel is singleton!";this.Xp=e.model.Va.V()}static V(){null==f.instance&&(f.instance=new f);return f.instance}static dispose(){f.instance=null}update(b){this.Ba=[];const a=this.Xp.ha.ua.hd();for(let c=0;c<a.length;c++){const d=a[c],g=new e.model.hb.ah(d.A,d.aa,d.index);g.label=d.caption;!b.filter.measure||-1!=b.filter.measure.index||g.A!=b.filter.measure.A||""!=b.filter.measure.aa&&g.aa!=b.filter.measure.aa||
(b.filter.measure.index=g.index);this.Ba.push(g)}this.al={};this.Fha(b)}Fha(b){(this.hierarchy=b)?(this.hierarchy.filter.wh&&(this.al.type=this.hierarchy.filter.type,this.hierarchy.filter.measure&&(this.al.measure=this.hierarchy.filter.measure.Qa()),this.hierarchy.filter.query&&(this.al.query=this.hierarchy.filter.query.clone())),this.md=this.hierarchy.Zf!==e.u.i.za.fd?this.hierarchy.Yj(this.hierarchy.Ad,!1,this.hierarchy.Zf):this.hierarchy.Ad.children.slice(),this.m$=e.model.hb.JA.WS(this.hierarchy)):
this.m$=e.u.i.qb.NONE;this.K$=this.Xp.ha.O.VG.Gda(this.hierarchy,this.Hn)}hd(){if(this.Vi){var b=this.Xp.ha.O.cf(this.hierarchy.A),a=new e.model.hb.ah(b.A,b.aa,b.index);a.label=b.caption;return[a]}return this.Xp.ha.ga.Gc?this.Ba.filter(c=>{const d=this.Xp.ha.O.gd(c.A);c=-1<e.u.i.da.nA.indexOf(c.aa);return d&&!d.Na&&!c}):this.Ba}ata(b){var a=!1,c=!1;!e.v(this.hierarchy.filter.query)&&e.v(b.query)?(a=!0,this.hierarchy.eC(),this.Xp.bb()):e.v(b.query)||(c=this.nCa(b));var d=this.Cea(b);if(c||d)return a=
{},c&&!e.v(b.measure)&&(a.measure=b.measure),c&&!e.v(b.query)&&(a.query=b.query.Qa()),d&&!e.v(b.md)&&(a.members=b.md),d&&!e.v(b.$y)&&(a.exclude=b.$y),this.Xp.em(this.hierarchy.A,a),!0;a&&this.Xp.refresh();return!1}eu(){this.Xp.eu(this.hierarchy.A)}nCa(b){if(b.type==e.u.i.qb.Sa)return this.GBa(b);if(b.type==e.u.i.qb.Ok)return this.aCa(b);if(b.type==e.u.i.qb.jb||b.type==e.u.i.qb.dc)return this.gCa(b);if(b.type==e.u.i.qb.$n)return this.wCa(b)}GBa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!=
b.query.va?!0:0<=e.u.i.$b.ki.indexOf(b.query.va)?!e.Zg.d0(this.hierarchy.filter.query.value,b.query.value):0<=e.u.i.$b.If.indexOf(b.query.va)?this.hierarchy.filter.query.value&&b.query.value?!e.Zg.d0(this.hierarchy.filter.query.value[0],b.query.value[0])||!e.Zg.d0(this.hierarchy.filter.query.value[1],b.query.value[1]):!0:0<=e.u.i.$b.Wx.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:!1}aCa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!=b.query.va?
!0:0<=e.u.i.Bb.ki.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Bb.If.indexOf(b.query.va)?e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}gCa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.va!==b.query.va?!0:0<=e.u.i.Jg.ki.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.Jg.If.indexOf(b.query.va)?
e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}wCa(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.measure.A!==b.measure.uniqueName||this.hierarchy.filter.measure.aa!==b.measure.aggregation||this.hierarchy.filter.query.va!=b.query.va?!0:0<=e.u.i.yc.ki.indexOf(b.query.va)?this.hierarchy.filter.query.value!==b.query.value:0<=e.u.i.yc.If.indexOf(b.query.va)?
e.v(this.hierarchy.filter.query.value)||e.v(b.query.value)?!0:this.hierarchy.filter.query.value[0]!==b.query.value[0]||this.hierarchy.filter.query.value[1]!==b.query.value[1]:!1}Cea(b){if(null==b)return this.hierarchy.filter.wi;if(null==b.md&&null==b.$y)return!1;var a=this.hierarchy.filter.Pj();if(b.md){var c=b.md;if(c.length!=a.length)return!0;for(var d=0,g=c.length;d<g;d++)if(-1==a.indexOf(c[d]))return!0}if(b.$y){b=b.$y;if(a.length+b.length!==this.hierarchy.Ri-1)return!0;d=0;for(g=b.length;d<g;d++)if(-1==
a.indexOf(b[d]))return!0}return!1}vta(b){b!=this.hierarchy.Zf&&this.Xp.nE(this.hierarchy.A,b)}get U1(){return!this.Vi&&this.Xp.ha.ua.ob.Hb(this.hierarchy.A)}get Gc(){return this.Xp.Ia.ga.Gc}get Vi(){return e.model.C.F.rc&&e.model.C.F.je!=l.Id.dj}get Hn(){return this.m$}get To(){return this.K$?this.K$:new e.u.O.Vpa}get Qw(){return this.al.type==e.u.i.qb.Sa||this.al.type==e.u.i.qb.Ok||this.al.type==e.u.i.qb.jb||this.al.type==e.u.i.qb.dc}get xi(){return this.al.type==e.u.i.qb.$n}}h.y7=f})(l.filter||
(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends v.Ah{constructor(){super();this.model=h.y7.V();this.view=new h.Cma;null!=this.view.fBa&&this.view.fBa.N(v.fa.$d,b=>this.aFa(b));null!=this.view.Jn&&(this.view.Jn.N(x.Hj.Mx,b=>this.hGa(b.data)),this.view.Jn.N(x.Hj.DA,()=>this.jGa()),this.view.Jn.N(x.Hj.T6,()=>this.iGa()));this.view.Xb&&this.view.Xb.Jd&&(this.view.Xb.Jd.N(h.hJ.AP,()=>this.FFa()),this.view.Xb.Jd.N(h.hJ.XI,()=>this.DFa()),this.view.Xb.Jd.N("keydown",b=>this.EFa(b)));null!=this.view.Zd&&
this.view.Zd.N(v.fa.$d,()=>this.E3());null!=this.view.Kk&&this.view.Kk.N(v.fa.$d,()=>this.pGa());null!=this.view.Lk&&this.view.Lk.N(v.fa.$d,()=>this.qGa());null!=this.view.ef&&this.view.ef.N(v.fa.$d,()=>this.iFa());null!=this.view.vo&&this.view.vo.N(v.fa.cp,()=>this.QU());null!=this.view.Tp&&this.view.Tp.N(v.fa.cp,()=>this.QU());null!=this.view.$p&&this.view.$p.N(v.fa.cp,()=>this.QU());null!=this.view.sq&&this.view.sq.N(v.fa.cp,()=>this.QU());null!=this.view.Ef&&this.view.Ef.N(v.fa.$d,()=>this.CGa());
null!=this.view.Wm&&this.view.Wm.N(v.fa.cp,()=>this.BGa());null!=this.view.wp&&this.view.wp.N(x.Md.mf,()=>this.NDa());null!=this.view.mG&&this.view.mG.N(x.Md.mf,()=>this.Is())}BGa(){this.view.Ef&&(this.view.Ef.Fd("fm-has-filter"),this.view.Ef.Af(0),this.zN(),this.uI())}QU(){this.view.ef&&(this.view.ef.Fd("fm-has-filter"),this.view.ef.Af(0),this.zN(),this.uI())}iFa(){this.view.Ef&&this.view.Ef.Af(0);this.zN();this.uI()}CGa(){this.view.ef&&this.view.ef.Af(0);this.zN();this.uI()}NDa(){var b=this.model.ata(this.wza());
this.model.vta(this.yza());b||this.$a("close")}zN(){this.view.vo&&this.view.vo.isVisible(this.Rw&&1===this.view.ef.getSelection()&&this.model.Hn==e.u.i.qb.Sa);this.view.Tp&&this.view.Tp.isVisible(this.Rw&&1===this.view.ef.getSelection()&&this.model.Hn==e.u.i.qb.Ok);this.view.$p&&this.view.$p.isVisible(this.Rw&&1===this.view.ef.getSelection()&&this.model.Hn==e.u.i.qb.jb);this.view.sq&&this.view.sq.isVisible(this.Rw&&1===this.view.ef.getSelection()&&this.model.Hn==e.u.i.qb.dc);this.view.Wm&&this.view.Wm.isVisible(this.rz&&
1===this.view.Ef.getSelection());this.view.Xb&&(this.view.Xb.isVisible(this.model.To.Dea&&0==this.view.Ef.getSelection()&&0==this.view.ef.getSelection()),this.view.Xb.isVisible()&&this.view.Xb.Jd.yr());this.view.Wa("fm-query-filter-opened",!1);this.view.ef&&1===this.view.ef.getSelection()&&this.view.Wa("fm-query-filter-opened",!0);this.view.Ef&&1===this.view.Ef.getSelection()&&this.view.Wa("fm-query-filter-opened",!0);this.view.Wa("fm-no-query-filters",!this.Rw&&!this.rz);this.view.Wa("fm-no-member-filters",
!this.model.To.Dea);this.$a("center")}uI(){this.view.wp&&(this.view.Xb&&this.view.Xb.isVisible()?this.view.wp.oq(0<this.view.Xb.Jd.Nw()):this.view.wp.oq(!0))}yza(){return this.view.Kk&&1==this.view.Kk.getSelection()?e.u.i.za.ic:this.view.Lk&&1==this.view.Lk.getSelection()?e.u.i.za.Kc:this.view.Kk&&this.view.Lk?e.u.i.za.fd:this.model.hierarchy.Zf}uda(){return this.model.Hn==e.u.i.qb.Sa?this.view.vo.Hm():this.model.Hn==e.u.i.qb.Ok?this.view.Tp.Hm():this.model.Hn==e.u.i.qb.jb?this.view.$p.Hm():this.model.Hn==
e.u.i.qb.dc?this.view.sq.Hm():null}wza(){var b=null,a=null;1==this.view.ef.getSelection()?b=this.uda():1==this.view.Ef.getSelection()?b=this.view.Wm.Hm():(a=this.view.Xb.Hm(),this.model.Cea(a)||(a=null));null==a&&null==b&&(this.view.ef.Rc("fm-has-filter")?b=this.uda():this.view.Ef.Rc("fm-has-filter")&&(b=this.view.Wm.Hm()));var c={};b&&(c.type=b.type,c.query=b.query,c.measure=b.measure);a&&(e.v(a.md)||(c.md=a.md),e.v(a.$y)||(c.$y=a.$y));return c}Is(){this.$a("close")}pGa(){1===this.view.Kk.getSelection()&&
(this.view.Lk.Af(0),this.view.Xb&&this.view.Xb.Jd.sort(e.u.i.za.ic));0===this.view.Kk.getSelection()&&0===this.view.Lk.getSelection()&&this.view.Xb&&this.view.Xb.Jd.sort(e.u.i.za.fd)}qGa(){1===this.view.Lk.getSelection()&&(this.view.Kk.Af(0),this.view.Xb&&this.view.Xb.Jd.sort(e.u.i.za.Kc));0===this.view.Kk.getSelection()&&0===this.view.Lk.getSelection()&&this.view.Xb&&this.view.Xb.Jd.sort(e.u.i.za.fd)}E3(){this.view.Xb&&(this.view.Xb.Jd.selectAll(1==this.view.Zd.getSelection()),this.view.wp.oq(0<
this.view.Xb.Jd.Nw()));this.UN()}EFa(b){if(32===b.keyCode||13===b.keyCode){var a=this.view.Xb.Jd.Au();e.v(a)||(a=a.data,!a.nT||b.ctrlKey||b.metaKey?(a.yd=1==a.yd?0:1,this.view.Xb.Jd.o5(a)):(a.Sf=!a.Sf,this.view.Xb.Jd.Oia(a)))}}FFa(){this.view.wp.oq(0<this.view.Xb.Jd.Nw());this.Uia();this.UN()}DFa(){this.u5();this.UN()}Uia(){0==this.view.Xb.Jd.jz()?this.view.Zd.Af(0):this.view.Xb.Jd.iT()>this.view.Xb.Jd.jz()?this.view.Zd.Af(-1):this.view.Xb.Jd.iT()==this.view.Xb.Jd.jz()&&this.view.Zd.Af(1)}update(b){0!=
this.view.isVisible()&&(1E4<b.Ri?(e.Ca(!0,e.model.B.j.fF,e.model.B.j.goa,!0,!0),setTimeout(()=>{this.model.update(b);this.Vm();e.Ca(!1)},50)):(this.model.update(b),this.Vm()))}hGa(b){e.model.C.F.vS&&b.trim()==b&&this.view.Xb&&this.view.Xb.Jd.search(b,()=>this.ND())}jGa(){var b=this.view.Jn.Ti();!e.model.C.F.vS&&b.trim()==b&&this.view.Xb&&this.view.Xb.Jd.search(b,()=>this.ND())}iGa(){!e.model.C.F.vS&&this.view.Xb&&this.view.Xb.Jd.search("",()=>this.ND())}ND(){this.u5();this.UN();this.Uia();this.view.wp.oq(0<
this.view.Xb.Jd.Nw())}Vm(){this.view.Xf();this.view.Wa("fm-filter-pages-layout",this.model.U1);this.view.Wa("fm-filter-flat-layout",this.model.Vi);this.view.Xb&&this.view.Xb.reset();this.view.Jn&&(this.view.Jn.clear(),this.view.Jn.yV(e.model.Va.V().Ia.ga.Gc?1E3:0));this.view.Ef&&(e.u.i.Pa.$c==e.u.i.Pa.rya(this.model.hierarchy.si.type+"")&&e.model.C.F.rc?this.view.Ef.eb():this.view.Ef.show());this.FKa();this.BKa();this.CKa();this.AKa();this.u5();this.UN();this.EKa();this.uI();this.bya()}bya(){this.view.Xb&&
this.view.Xb.isVisible()?this.view.Xb.Jd.focus({preventScroll:!0}):this.view.ef&&1==this.view.ef.getSelection()?this.view.ef.focus({preventScroll:!0}):this.view.Ef&&1==this.view.Ef.getSelection()?this.view.Ef.focus({preventScroll:!0}):this.view.wp.focus({preventScroll:!0})}EKa(){var b=!this.model.U1&&!e.model.C.F.rc;this.view.Kk&&this.view.Kk.isVisible(b);this.view.Lk&&this.view.Lk.isVisible(b);this.view.IN&&this.view.IN.isVisible(b);this.view.Wa("fm-sort-only",!this.Rw&&!this.rz)}get rz(){if(e.u.Ra.V().ga.Da==
e.u.i.qa.API&&!this.model.To.Wea)return!1;if(this.model.Vi){var b=this.model.Xp.ha.O.cf(this.model.hierarchy.A);return!e.v(b)&&b.type==e.u.i.Pa.jb}return this.model.U1||e.u.Ra.V().ga.Da==e.u.i.qa.le||e.u.Ra.V().ga.Da==e.u.i.qa.ag||!this.fCa()?!1:!0}fCa(){return 0<this.model.hd().length}get Rw(){return this.model.To.EM&&e.u.Ra.V().ga.Da!=e.u.i.qa.le&&!(this.model.Vi&&this.model.Hn==e.u.i.qb.jb)}CKa(){var b=this.model.hierarchy;this.view.Zd&&this.view.Zd.Af(0<b.filter.Pj().length?-1:1);if(this.view.Xb){var a=
2<b.ta.length;this.view.Xb.Jd.Wa("fm-tree-list",a);this.view.Xb.Jd.D4(a?new h.soa:new h.zX);this.view.Xb.Jd.FV(b);this.view.Xb.Jd.Wf(this.model.md);this.view.Xb.Jd.CV(b.filter.Pj());this.view.Xb.Jd.sort(b.Zf)}}BKa(){this.view.tq&&(this.view.tq.cb(this.model.hierarchy.caption),this.view.tq.fi(this.model.hierarchy.caption));this.view.toolbar&&this.view.toolbar.hJa(this.model.hierarchy.caption)}u5(){this.view.Xb&&0<this.view.Xb.Jd.getTotalLength()?this.view.Zd&&this.view.Zd.show():this.view.Zd&&this.view.Zd.eb()}FKa(){this.view.Kk&&
this.view.Kk.Af(this.model.hierarchy.Zf==e.u.i.za.ic?1:0);this.view.Lk&&this.view.Lk.Af(this.model.hierarchy.Zf==e.u.i.za.Kc?1:0)}AKa(){this.view.UG&&this.view.UG.isVisible(this.Rw||this.rz);this.view.ef&&(this.model.Hn==e.u.i.qb.Sa?(this.view.DH.cb(e.model.B.j.q7),this.view.ef.mc(e.model.B.j.IA+" "+e.model.B.j.q7)):this.model.Hn==e.u.i.qb.Ok?(this.view.DH.cb(e.model.B.j.KO),this.view.ef.mc(e.model.B.j.IA+" "+e.model.B.j.KO)):this.model.Hn==e.u.i.qb.jb?(this.view.DH.cb(e.model.B.j.t7),this.view.ef.mc(e.model.B.j.IA+
" "+e.model.B.j.t7)):this.model.Hn==e.u.i.qb.dc&&(this.view.DH.cb(e.model.B.j.u7),this.view.ef.mc(e.model.B.j.IA+" "+e.model.B.j.u7)),this.view.ef.isVisible(this.Rw&&this.model.Hn!=e.u.i.qb.NONE),this.view.ef.Wa("fm-has-filter",this.model.Qw),this.view.ef.Af(this.model.Qw));this.view.Ef&&(this.model.Vi&&!this.rz&&this.model.hierarchy.filter.xi?(this.view.Ef.isVisible(!0),this.view.Ef.oq(!1)):(this.view.Ef.isVisible(this.rz),this.view.Ef.oq(this.rz)),this.view.Ef.Wa("fm-has-filter",this.model.xi),
this.view.Ef.Af(this.rz&&this.model.xi));this.view.vo&&(this.view.vo.tx(this.model.To.EM?this.model.To.query:[]),this.view.vo.reset(),this.model.al.type==e.u.i.qb.Sa&&(this.view.vo.em(this.model.al),this.view.vo.Aj(this.model.hierarchy.getTimezoneOffset())));this.view.Tp&&(this.view.Tp.tx(this.model.To.EM?this.model.To.query:[]),this.view.Tp.reset(),this.model.al.type==e.u.i.qb.Ok&&this.view.Tp.em(this.model.al));this.view.$p&&(this.view.$p.tx(this.model.To.EM?this.model.To.query:[]),this.view.$p.reset(),
this.model.al.type==e.u.i.qb.jb&&this.view.$p.em(this.model.al));this.view.sq&&(this.view.sq.tx(this.model.To.EM?this.model.To.query:[]),this.view.sq.reset(),this.model.al.type==e.u.i.qb.dc&&this.view.sq.em(this.model.al));this.view.Wm&&(this.view.Wm.tx(this.model.To.Wea?this.model.To.gm:[]),this.view.Wm.reset(),this.view.Wm.Zz(this.model.hd()),this.model.al.type==e.u.i.qb.$n&&this.view.Wm.em(this.model.al),this.view.Wm.Wa("fm-arrow-first",!this.Rw));this.zN();this.uI()}UN(){var b="";this.view.Xb&&
(b=this.view.Xb.Jd.Te()?e.P.bind(e.model.B.j.Ila,this.view.Xb.Jd.jz(),this.view.Xb.Jd.iT()):e.P.bind(e.model.B.j.Jla,this.view.Xb.Jd.jz(),this.view.Xb.Jd.iT()));this.view.sx&&(this.view.sx.cb(b),this.view.sx.fi(b));this.view.Zd&&this.view.Zd.cb(this.view.Xb&&this.view.Xb.Jd.Te()?e.model.B.j.lma:e.model.B.j.tv)}aFa(b){var a=b.data.ql;-1<b.data.selectedIndex&&(this.model.Fha(a),this.Vm())}}h.zma=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.be.ay{constructor(){super(l.Mb.Fb.G);this.$("fm-filter-view");this.$("fm-noselect");this.Pe=new h.zma;this.Pe.N("close",()=>this.close());this.Pe.N("center",()=>this.zp());this.W(this.Pe.view);this.Pe.view.show();this.G.Zi({QV:[x.Zi.ji.Hi,x.Zi.ji.YE,x.Zi.ji.pF],KR:l.Mb.Fb.G,FZ:!0,resize:b=>this.eN(b),complete:()=>this.zp()})}eN(b){b.sE==x.Zi.ji.YE||b.sE==x.Zi.ji.pF?(this.Pe.view.Xj(b.size.width+(b.size.width-b.J3.width)),this.zp()):b.sE==x.Zi.ji.Hi&&
(this.Pe.view.pq(b.size.height),b.size.height>b.J3.height&&this.exa());this.TB()}exa(){this.Pe.view.Xb&&this.Pe.view.Xb.isVisible()&&this.Pe.view.G.requestAnimationFrame(()=>{this.Pe.view.Xb.Jd.yr()})}Ns(b){this.open();this.Pe.update(b);this.zp();this.$a(v.fa.OPENED)}close(){this.Pu&&(super.close(),this.$a(v.fa.CLOSED),e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.aX)))}TB(){this.G.Wa("fm-layout-mobile-small",460>this.G.uf(!0))}}h.Bma=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-table");var b=new x.Ma("div","fm-filters-table-header fm-fth-withsearch");this.W(b);var a=new x.Ma("div","fm-select-all-wrapper");a.$("fm-ui-col");this.Zd=new x.NJ;this.Zd.$("fm-select-all-label");this.Zd.cb(e.model.B.j.tv);this.Zd.fi(e.model.B.j.tv);a.W(this.Zd);var c=new x.Ma("div","fm-select-counter-wrap");c.$("fm-ui-col");this.sx=new x.Uc;this.sx.$("fm-select-counter");c.W(this.sx);b.W(a);b.W(c);
this.Ve=new x.Ma("div","fm-search-wrap");b.W(this.Ve);this.qe=new x.Ma("a","fm-search-btn");this.qe.G.text(e.model.B.j.bX);this.qe.Ie();this.qe.N("click",()=>this.Js());this.qe.N("focus",()=>this.Js());this.Ve.W(this.qe);this.Jn=new x.Hj;this.Jn.$("fm-search-inp");this.Ve.W(this.Jn);b=new x.Md("fm-close-search");b.N(x.Md.mf,()=>this.Ks());this.Ve.W(b);b=new x.Ma("div","fm-filters-table-content");this.W(b);this.Jd=new h.hJ;this.Jd.$("fm-members-filter-list");this.Jd.D4(new h.zX);b.W(this.Jd)}Xf(){this.Jn.kE(e.model.B.j.bX);
this.Zd.cb(e.model.B.j.tv);this.Zd.fi(e.model.B.j.tv);this.qe.G.text(e.model.B.j.bX)}Js(){this.qe.Ie(-1);this.Ve.$("fm-search-opened");this.Jn.G.focus();this.sx.eb()}Ks(){this.qe.Ie(0);this.Ve.Fd("fm-search-opened");this.Jn.clear();this.sx.show()}Hm(){var b=this.Jd.TS();return b.items?b.Wu?{$y:b.items}:{md:b.items}:null}reset(){this.Ks()}}h.roa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.ir=new x.zd.Mr;this.ir.$("fm-measures-dropdown");this.ir.qg("label");this.ir.kE(e.model.B.j.fma);b.W(this.ir);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.Wg=new x.Jq;this.Wg.$("fm-num-input-1");this.Wg.lE(x.Jq.oF);b.W(this.Wg);this.Yi=new x.Jq;
this.Yi.$("fm-num-input-2");this.Yi.lE(x.Jq.oF);b.W(this.Yi);var a=new x.Ea("div","fm-buttons-bar");b.G.W(a);this.Ag=new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());a.W(this.Ag.G)}ix(){this.eb();this.$a(v.fa.cp)}Ek(){let b=this.Pc.Kh();e.v(b)||this.G.Wa("fm-range",0<=e.u.i.yc.If.indexOf(b.value))}Zz(b){this.ir.Wf(b);this.ir.Jk(0);this.oq(0<b.length)}reset(){this.ir.Jk(0);this.Pc.Jk(0);this.Ek();this.Wg.gi(10);this.Yi.gi(0)}Hm(){if(e.v(this.ir.Kh()))return null;
var b={type:e.u.i.qb.$n};b.measure=this.ir.Kh().Qa();var a=this.Pc.Kh().value;if(0<=e.u.i.yc.ki.indexOf(a)){var c=this.Wg.Ha();!isNaN(c)||a!=e.u.i.yc.ck&&a!=e.u.i.yc.Hi||(c=0);b.query=new e.model.hb.im(a,c)}0<=e.u.i.yc.If.indexOf(a)&&(b.query=new e.model.hb.im(a,[this.Wg.Ha(),this.Yi.Ha()]));return b}em(b){this.Pc.Ws(c=>c.value===b.query.va);this.Ek();const a=this.ir.zc();for(let c=0;c<a.length;c++)if(a[c].A==b.measure.uniqueName&&a[c].aa==b.measure.aggregation){this.ir.Jk(c);break}0<=e.u.i.yc.ki.indexOf(b.query.va)&&
this.Wg.gi(b.query.value);0<=e.u.i.yc.If.indexOf(b.query.va)&&(this.Wg.gi(b.query.value[0]),this.Yi.gi(b.query.value[1]))}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.yc.ck:return e.model.B.j.ema;case e.u.i.yc.Hi:return e.model.B.j.Wla;case e.u.i.yc.EQUAL:return e.model.B.j.cJ;case e.u.i.yc.cg:return e.model.B.j.eJ;case e.u.i.yc.GREATER:return e.model.B.j.GO;case e.u.i.yc.xl:return e.model.B.j.HO;case e.u.i.yc.LESS:return e.model.B.j.IO;case e.u.i.yc.yl:return e.model.B.j.JO;case e.u.i.yc.nh:return e.model.B.j.bJ;
case e.u.i.yc.bh:return e.model.B.j.dJ}}Xf(){this.ir.mc(e.model.B.j.Pla);this.Pc.mc(e.model.B.j.FO);this.Wg.mc(e.model.B.j.Px);this.Yi.mc(e.model.B.j.Px);this.Pc.Wf(this.Xc.map(b=>({value:b,label:this.J(b)})));this.Ag.cb(e.model.B.j.Ola)}}h.Cqa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.qk=new x.pL.j9;this.qk.$("fm-datepicker-1");this.qk.N(v.fa.$d,()=>this.xEa());b.W(this.qk);this.Ll=new x.pL.j9;this.Ll.$("fm-datepicker-2");this.Ll.N(v.fa.$d,()=>this.yEa());b.W(this.Ll);this.TD=new x.zd.Mr;
this.TD.$("fm-periods-dropdown");this.TD.qg("label");b.W(this.TD);var a=new x.Ea("div","fm-buttons-bar");b.G.W(a);this.Ag=new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());a.W(this.Ag.G)}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.$b.EQUAL:return e.model.B.j.cJ;case e.u.i.$b.cg:return e.model.B.j.eJ;case e.u.i.$b.FE:return e.model.B.j.Tla;case e.u.i.$b.GE:return e.model.B.j.Ula;case e.u.i.$b.CE:return e.model.B.j.Rla;case e.u.i.$b.DE:return e.model.B.j.Sla;
case e.u.i.$b.nh:return e.model.B.j.bJ;case e.u.i.$b.bh:return e.model.B.j.dJ;case e.u.i.$b.WO:return e.model.B.j.$la;case e.u.i.$b.mO:return e.model.B.j.Yla;case e.u.i.$b.pP:return e.model.B.j.ama}}Xf(){this.Pc.mc(e.model.B.j.FO);this.qk.mc(e.model.B.j.Px);this.Ll.mc(e.model.B.j.Px);this.Pc.Wf(this.Xc.map(b=>({value:b,label:this.J(b)})));this.TD.Wf([{value:e.u.i.AA.$m,label:e.model.B.j.gma},{value:e.u.i.AA.QJ,label:e.model.B.j.jma},{value:e.u.i.AA.$g,label:e.model.B.j.hma},{value:e.u.i.AA.ut,label:e.model.B.j.ima},
{value:e.u.i.AA.Dl,label:e.model.B.j.kma}]);this.Ag.cb(e.model.B.j.Kla);this.qk.Hx=e.model.C.F.Gw;this.Ll.Hx=e.model.C.F.Gw;this.qk.E_=e.model.C.F.n0;this.Ll.E_=e.model.C.F.n0;this.qk.mR=e.model.B.j.wl;this.Ll.mR=e.model.B.j.wl}Hm(){var b={type:e.u.i.qb.Sa},a=this.Pc.Kh().value;0<=e.u.i.$b.ki.indexOf(a)&&(b.query=new e.model.hb.im(a,this.qk.Dc));if(0<=e.u.i.$b.If.indexOf(a)){var c=this.qk.Dc,d=this.Ll.Dc;b.query=new e.model.hb.im(a,c.getTime()<d.getTime()?[c,d]:[d,c])}0<=e.u.i.$b.Wx.indexOf(a)&&(b.query=
new e.model.hb.im(a,this.TD.Kh().value));return b}em(b){this.Pc.Ws(a=>a.value===b.query.va);this.Ek();0<=e.u.i.$b.ki.indexOf(b.query.va)&&(this.qk.Dc=b.query.value);0<=e.u.i.$b.If.indexOf(b.query.va)&&(this.qk.Dc=b.query.value[0],this.Ll.Dc=b.query.value[1]);0<=e.u.i.$b.Wx.indexOf(b.query.va)&&this.TD.Ws(a=>a.value===b.query.value)}Aj(b){this.qk.hi=b;this.Ll.hi=b}reset(){this.Pc.Jk(0);this.TD.Jk(0);this.Ek();this.qk.sJa();this.Ll.Dc=null;this.qk.hi=null;this.Ll.hi=null}Ek(){var b=this.Pc.Kh();e.v(b)||
(b=b.value,this.G.Wa("fm-date-range",0<=e.u.i.$b.If.indexOf(b)),this.G.Wa("fm-date-period",0<=e.u.i.$b.Wx.indexOf(b)),0<=e.u.i.$b.If.indexOf(b)&&null==this.Ll.Dc&&null!=this.qk.Dc&&(this.Ll.Dc=this.qk.Dc.clone()))}xEa(){null==this.Ll.Dc&&0<=e.u.i.$b.If.indexOf(this.Pc.Kh().value)&&(this.Ll.Dc=this.qk.Dc.clone())}yEa(){null==this.qk.Dc&&0<=e.u.i.$b.If.indexOf(this.Pc.Kh().value)&&(this.qk.Dc=this.Ll.Dc.clone())}ix(){this.reset();this.eb();this.$a(v.fa.cp)}}h.jla=f})(l.filter||(l.filter={}))})(e.K||
(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.gA=new x.Hj;this.gA.$("fm-txt-input-1");b.W(this.gA);this.sI=new x.Hj;this.sI.$("fm-txt-input-2");b.W(this.sI);var a=new x.Ea("div","fm-buttons-bar");b.G.W(a);this.Ag=new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");
this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());a.W(this.Ag.G)}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.Bb.EQUAL:return e.model.B.j.cJ;case e.u.i.Bb.cg:return e.model.B.j.eJ;case e.u.i.Bb.HE:return e.model.B.j.Vla;case e.u.i.Bb.PA:return e.model.B.j.bma;case e.u.i.Bb.CA:return e.model.B.j.Zla;case e.u.i.Bb.RA:return e.model.B.j.dma;case e.u.i.Bb.On:return e.model.B.j.Xla;case e.u.i.Bb.QA:return e.model.B.j.cma;case e.u.i.Bb.GREATER:return e.model.B.j.GO;case e.u.i.Bb.xl:return e.model.B.j.HO;
case e.u.i.Bb.LESS:return e.model.B.j.IO;case e.u.i.Bb.yl:return e.model.B.j.JO;case e.u.i.Bb.nh:return e.model.B.j.bJ;case e.u.i.Bb.bh:return e.model.B.j.dJ}}Xf(){this.Pc.mc(e.model.B.j.FO);this.gA.mc(e.model.B.j.Px);this.sI.mc(e.model.B.j.Px);this.Pc.Wf(this.Xc.map(b=>({value:b,label:this.J(b)})));this.Ag.cb(e.model.B.j.Lla)}Hm(){var b={type:e.u.i.qb.Ok},a=this.Pc.Kh().value;0<=e.u.i.Bb.ki.indexOf(a)&&(b.query=new e.model.hb.im(a,this.gA.Ti()));0<=e.u.i.Bb.If.indexOf(a)&&(b.query=new e.model.hb.im(a,
[this.gA.Ti(),this.sI.Ti()]));return b}em(b){this.Pc.Ws(a=>a.value===b.query.va);this.Ek();0<=e.u.i.Bb.ki.indexOf(b.query.va)&&this.gA.zj(b.query.value);0<=e.u.i.Bb.If.indexOf(b.query.va)&&(this.gA.zj(b.query.value[0]),this.sI.zj(b.query.value[1]))}reset(){this.Pc.Jk(0);this.Ek();this.gA.zj("");this.sI.zj("")}Ek(){let b=this.Pc.Kh();e.v(b)||this.G.Wa("fm-range",0<=e.u.i.Bb.If.indexOf(b.value))}ix(){this.reset();this.eb();this.$a(v.fa.cp)}}h.hna=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q=
{}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.Wg=new x.Jq;this.Wg.$("fm-num-input-1");this.Wg.lE(x.Jq.oF);b.W(this.Wg);this.Yi=new x.Jq;this.Yi.$("fm-num-input-2");this.Yi.lE(x.Jq.oF);b.W(this.Yi);var a=new x.Ea("div","fm-buttons-bar");b.G.W(a);this.Ag=
new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());a.W(this.Ag.G)}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.Jg.EQUAL:return e.model.B.j.cJ;case e.u.i.Jg.cg:return e.model.B.j.eJ;case e.u.i.Jg.GREATER:return e.model.B.j.GO;case e.u.i.Jg.xl:return e.model.B.j.HO;case e.u.i.Jg.LESS:return e.model.B.j.IO;case e.u.i.Jg.yl:return e.model.B.j.JO;case e.u.i.Jg.nh:return e.model.B.j.bJ;case e.u.i.Jg.bh:return e.model.B.j.dJ}}Xf(){this.Pc.Wf(this.Xc.map(b=>
({value:b,label:this.J(b)})));this.Ag.cb(e.model.B.j.Mla)}Hm(){var b={type:e.u.i.qb.jb},a=this.Pc.Kh().value;0<=e.u.i.Jg.ki.indexOf(a)&&(b.query=new e.model.hb.im(a,this.Wg.Ha()));0<=e.u.i.Jg.If.indexOf(a)&&(b.query=new e.model.hb.im(a,[this.Wg.Ha(),this.Yi.Ha()]));return b}em(b){this.Pc.Ws(a=>a.value===b.query.va);this.Ek();0<=e.u.i.Jg.ki.indexOf(b.query.va)&&this.Wg.gi(b.query.value);0<=e.u.i.Jg.If.indexOf(b.query.va)&&(this.Wg.gi(b.query.value[0]),this.Yi.gi(b.query.value[1]))}reset(){this.Pc.Jk(0);
this.Ek();this.Wg.gi(0);this.Yi.gi(0)}Ek(){let b=this.Pc.Kh();e.v(b)||this.G.Wa("fm-range",0<=e.u.i.Jg.If.indexOf(b.value))}ix(){this.reset();this.eb();this.$a(v.fa.cp)}}h.Coa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f extends x.Ma{constructor(){super("div","fm-filters-subview-wrap");this.Xc=[];var b=new x.Ma("div","fm-filters-subview");this.W(b);this.Pc=new x.zd.Mr;this.Pc.$("fm-conditions-dropdown");this.Pc.qg("label");this.Pc.N(v.fa.$d,()=>this.Ek());b.W(this.Pc);this.Wg=new x.Jq;this.Wg.$("fm-num-input-1");this.Wg.lE(x.Jq.oF);b.W(this.Wg);this.Yi=new x.Jq;this.Yi.$("fm-num-input-2");this.Yi.lE(x.Jq.oF);b.W(this.Yi);this.Ju=new x.zd.Mr;this.Ju.$("fm-interval-dropdown");
this.Ju.qg("label");this.Ju.xN("ariaLabel");b.W(this.Ju);b=new x.Ea("div","fm-buttons-bar");this.G.W(b);this.Ag=new x.Md("fm-ui-link-btn");this.Ag.$("fm-muted");this.Ag.Fd("fm-ui-btn");this.Ag.N(x.Md.mf,()=>this.ix());b.W(this.Ag.G)}tx(b){this.Xc=b;this.Xf()}J(b){switch(b){case e.u.i.Qk.EQUAL:return e.model.B.j.cJ;case e.u.i.Qk.cg:return e.model.B.j.eJ;case e.u.i.Qk.GREATER:return e.model.B.j.GO;case e.u.i.Qk.xl:return e.model.B.j.HO;case e.u.i.Qk.LESS:return e.model.B.j.IO;case e.u.i.Qk.yl:return e.model.B.j.JO;
case e.u.i.Qk.nh:return e.model.B.j.bJ;case e.u.i.Qk.bh:return e.model.B.j.dJ}}Xf(){this.Pc.mc(e.model.B.j.FO);this.Wg.mc(e.model.B.j.Px);this.Yi.mc(e.model.B.j.Px);this.Pc.Wf(this.Xc.map(b=>({value:b,label:this.J(b)})));this.Ju.mc(e.model.B.j.Qla);this.Ju.Wf([{value:"s",label:e.model.B.j.tma,ariaLabel:e.model.B.j.uma},{value:"m",label:e.model.B.j.rma,ariaLabel:e.model.B.j.sma},{value:"h",label:e.model.B.j.pma,ariaLabel:e.model.B.j.qma},{value:"d",label:e.model.B.j.nma,ariaLabel:e.model.B.j.oma}]);
this.Ag.cb(e.model.B.j.Nla)}Hm(){var b={type:e.u.i.qb.dc},a=this.Pc.Kh().value,c=this.Ju.Kh().value;0<=e.u.i.Qk.ki.indexOf(a)&&(b.query=new e.model.hb.im(a,this.Wg.Ha()+c));0<=e.u.i.Qk.If.indexOf(a)&&(b.query=new e.model.hb.im(a,[this.Wg.Ha()+c,this.Yi.Ha()+c]));return b}em(b){this.Pc.Ws(g=>g.value===b.query.va);this.Ek();for(var a=this.Ju.zc(),c=0;c<a.length;c++){var d=a[c].value;if(0<=b.query.value.indexOf(d)){this.Ju.Jk(c);break}}0<=e.u.i.Qk.ki.indexOf(b.query.va)&&(a=parseFloat(b.query.value.replace(d,
"")),this.Wg.gi(a));0<=e.u.i.Qk.If.indexOf(b.query.va)&&(a=parseFloat(b.query.value[0].replace(d,"")),d=parseFloat(b.query.value[1].replace(d,"")),this.Wg.gi(a),this.Yi.gi(d))}reset(){this.Pc.Jk(0);this.Ek();this.Wg.gi(0);this.Yi.gi(0);this.Ju.Jk(0)}Ek(){let b=this.Pc.Kh();e.v(b)||this.G.Wa("fm-range",0<=e.u.i.Qk.If.indexOf(b.value))}ix(){this.reset();this.eb();this.$a(v.fa.cp)}}h.kqa=f})(l.filter||(l.filter={}))})(e.K||(e.K={}))})(q||(q={}));var S;
(function(e){class l{constructor(){this.styleSheet=new e.ud.Mqa;this.Yg=[];e.ud.format.yt.afa=e.ud.format.yt.Cba;e.tF.nI=[]}nKa(){var h=[];h["[Content_Types].xml"]=e.Oi.zt+this.Qua();h["_rels/.rels"]=e.Oi.zt+e.Oi.Pqa;h["xl/_rels/workbook.xml.rels"]=e.Oi.zt+this.rva();h["xl/workbook.xml"]=e.Oi.zt+this.sva();h["xl/theme/theme1.xml"]=e.Oi.zt+e.Oi.Ypa;for(var f=0;f<this.Yg.length;f++){var b=this.Yg[f].Ic();h["xl/worksheets/sheet"+(f+1)+".xml"]=e.Oi.zt+b}f=this.ova();h["xl/sharedStrings.xml"]=e.Oi.zt+
f;h["xl/styles.xml"]=e.Oi.zt+this.styleSheet.Ic();h["docProps/app.xml"]=e.Oi.zt+e.Oi.zja;h["docProps/core.xml"]=e.Oi.zt+e.Oi.Bka;return(new z.yma).tva(h)}ova(){let h="";z.ba.create("<axis/>").attr("name","rows");for(let f=0;f<e.tF.nI.length;f++){const b=q.P.zxa(e.tF.nI[f]);h+="<si><t>"+b+"</t></si>"}return e.Oi.zpa.replace("{0}",h)}sva(){for(var h="",f=0;f<this.Yg.length;f++)h+=q.P.bind('<sheet name="{0}" sheetId="{1}" r:id="{2}"/>',this.Yg[f].name,f+1,"rId"+(f+4));return q.P.bind(e.Oi.Dqa,h)}rva(){for(var h=
"",f=0;f<this.Yg.length;f++)h+=q.P.bind(e.Oi.Fqa,"rId"+(f+4),"worksheets/sheet"+(f+1)+".xml");return q.P.bind(e.Oi.Eqa,h)}Qua(){for(var h="",f=0;f<this.Yg.length;f++)h+=q.P.bind(e.Oi.dka,"/xl/worksheets/sheet"+(f+1)+".xml");return q.P.bind(e.Oi.cka,h)}}e.Hqa=l})(S||(S={}));
(function(e){class l{constructor(h=0,f=0,b="",a=0){this.Ss=h;this.hu=f;this.value=b;this.e5=a}get type(){return this.yg}set value(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 f=e.tF.nI.indexOf(h);-1==f?(this.xK=e.tF.nI.length,e.tF.nI.push(h)):this.xK=f;this.yg=e.gy.$c}else this.xK=h,this.yg="number"===typeof h?e.gy.jb:null===h?e.gy.u8:!1===h?e.gy.Z7:e.gy.tqa}get value(){return this.xK}set id(h){}get id(){for(var h=
"",f=this.hu+1,b=0;26<f;){var a=0<f%26?f%26:26;f/=26;26==a&&f--;h=String.fromCharCode(a+64)+h;if(3==b++)break}h=String.fromCharCode(f+64)+h;return h+(this.Ss+1)}toString(){return"XLSCell {row: "+this.Ss+", column: "+this.hu+", type: "+this.type+", id: "+this.id+", value: "+this.value+"}"}}e.RP=l})(S||(S={}));var ib=S||(S={});class jb{}jb.nI=[];ib.tF=jb;
(function(e){class l{constructor(h){this.cells=[];this.uU=this.vU=0;this.Ka=[];this.rows=[];this.xU=[];this.name=this.xxa(h)}xxa(h){h=h.replace(/[\\/*[\]:?]/g,"");"'"==h.charAt(0)&&(h=h.substr(1));h=h.replace(/&/g,"&amp;");h=h.replace(/'/g,"&apos;");h=h.replace(/"/g,"&quot;");h=h.replace(/</g,"&lt;");h=h.replace(/>/g,"&gt;");30<h.length&&(h=h.substr(0,27)+"...");return h}get ufa(){return this.kg(this.vU,this.uU)}set ufa(h){}get Jua(){return this.uU+1}get oN(){return this.vU+1}Dha(h,f){this.Ka[h]=
f}bH(h){return this.Ka[h]?this.Ka[h]:0}vx(h,f){this.rows[h]=f}Vd(h){return this.rows[h]?this.rows[h]:0}Fi(h,f,b,a=null){null==this.cells[h]&&(this.cells[h]=[]);this.cells[h][f]=b instanceof e.RP?b:new e.RP(h,f,b,null==a?0:a.index);this.vU<h&&(this.vU=h);this.uU<f&&(this.uU=f)}kg(h,f){var b;null!=this.cells[h]&&(b=this.cells[h][f]);null==b&&(b=new e.RP(h,f,null));return b}zfa(h,f,b){var a=this.kg(h,f);if(null!=a){for(var c=a.id,d,g=f+1;g<f+b;g++)d=new e.RP(h,g,!1,a.e5),this.cells[h][g]=d;c+=":"+(d?
d.id:a.id);this.xU.push(c)}}Ic(){for(var h="",f=0;f<this.cells.length;f++){var b=this.cells[f];if(null!=b&&0!=b.length){for(var a="",c=0;c<b.length;c++){var d=b[c];null!=d&&d.type!=e.gy.u8&&(a=d.type==e.gy.Z7?a+('<c r="'+d.id+'" s="'+d.e5.toString()+'" />'):a+('<c r="'+d.id+'" s="'+d.e5.toString()+'"'+(d.type==e.gy.$c?' t="s"':"")+"><v>"+d.value+"</v></c>"))}h=isNaN(this.rows[f])?h+q.P.bind('<row spans="1:3" r="{0}"  >{1}</row>',f+1,a):h+q.P.bind('<row spans="1:3" r="{0}" x14ac:dyDescent="0.25" ht="{1}" customHeight="1">{2}</row>',
f+1,this.rows[f],a)}}f="";for(b=0;b<this.Ka.length;b++)isNaN(this.Ka[b])||(f+=q.P.bind('<col min="{0}" max="{1}" width="{2}" customWidth="1" />',b+1,b+1,this.Ka[b]));a="";for(b=0;b<this.xU.length;b++)a+=q.P.bind('<mergeCell ref="{0}"/>',this.xU[b]);b=0<this.xU.length?q.P.bind('<mergeCells count="{0}">{1}</mergeCells>',this.zfa.length,a):"";return q.P.bind(e.Oi.Apa,this.kg(0,0).id+":"+this.ufa.id,f,h,b)}}e.Iqa=l})(S||(S={}));var kb=S||(S={});class lb{}lb.u8=0;lb.jb=1;lb.$c=2;lb.Z7=98;lb.tqa=99;
kb.gy=lb;
(function(e){(function(l){class h{constructor(f,b,a=null,c=null){this.index=0;this.fill=b instanceof l.Rl.RJ?b:!isNaN(b)&&-1<b?new l.Rl.RJ(b):new l.Rl.RJ;this.font=f instanceof l.fonts.Iv?f:new l.fonts.Iv(f);this.format=a&&a instanceof l.format.yt?a:new l.format.yt(0,"");null!=c&&(this.textAlign=c)}set id(f){}get id(){return this.fill.id+":"+this.font.id+":"+this.textIndent+":"+this.textAlign+":"+this.format.id}Ic(){var f=this.textIndent||this.textAlign?q.P.bind('<alignment vertical="center" horizontal="{0}" wrapText="1"{1}/>',q.v(this.textAlign)?
"left":this.textAlign,q.v(this.textIndent)?"":' indent="'+this.textIndent+'"'):'<alignment vertical="center" wrapText="1"/>';return q.P.bind('<xf numFmtId="{0}"{1} fontId="{2}" fillId="{3}" borderId="1" xfId="0" applyFont="1" applyFill="1"{4}>{5}</xf>',this.format.Hz,0<this.format.Hz?' applyNumberFormat = "1"':"",this.font.xS,this.fill.FL,0<f.length?' applyAlignment="1"':"",f)}}l.fB=h})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){class h{constructor(){this.ud=new q.tb;this.Rl=new q.tb;this.fonts=new q.tb;this.De=new q.tb;this.U$(new l.Rl.RJ);var f=new l.Rl.RJ;f.R3.S3="solid";f.FL=1;this.Rl.Ta("solid",f)}cw(f){this.ud.Hb(f.id)?f.index=this.ud.getItem(f.id).index:(this.U$(f.fill),this.addFont(f.font),this.ud.Ta(f.id,f),f.index=this.ud.length)}U$(f){this.Rl.Hb(f.id)?f.FL=this.Rl.getItem(f.id).FL:(f.FL=this.Rl.length,this.Rl.Ta(f.id,f))}addFont(f){this.fonts.Hb(f.id)?f.xS=this.fonts.getItem(f.id).xS:
(this.fonts.Ta(f.id,f),f.xS=this.fonts.length)}wsa(f){this.De.Hb(f.id)?f.Hz=this.De.getItem(f.id).Hz:(-1==f.Hz&&(f.Hz=l.format.yt.fAa()),this.De.Ta(f.id,f))}Ic(){var f="",b="",a="",c="",d;if(0<this.De.length){var g=0,k="";for(d=0;d<this.De.length;d++){var m=this.De.ea(d);""!=m.AS&&(m=m.Ic(),k+=m,g++)}0<g&&(f='<numFmts count="'+g+'">'+k+"</numFmts>")}for(d=0;d<this.Rl.length;d++)g=this.Rl.ea(d),b+=g.Ic();for(d=0;d<this.fonts.length;d++)g=this.fonts.ea(d),a+=g.Ic();for(d=0;d<this.ud.length;d++)g=this.ud.ea(d),
c+=g.Ic();return q.P.bind(e.Oi.Ipa,f,this.fonts.length+1,a,this.Rl.length,b,this.ud.length+1,c)}}l.Mqa=h})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b){this.rgb=b}set id(b){}get id(){return this.rgb.toString(16)}Ic(b=""){0==b.length&&(b="color");b="<"+b;this.Fta&&(b+=' auto="'+this.Fta+'"');this.VJa&&(b+=' theme="'+this.VJa+'"');this.ZJa&&(b+=' tint="'+this.ZJa+'"');this.lBa&&(b+=' indexed="'+this.lBa+'"');for(var a=this.rgb.toString(16).toUpperCase();6>a.length;)a="0"+a;return b+(' rgb="FF'+a+'"/>')}}h.ZX=f})(l.color||(l.color={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f extends h.ZX{constructor(b){super(b)}Ic(){return super.Ic("bgColor")}}h.Jqa=f})(l.color||(l.color={}))})(e.ud||(e.ud={}))})(S||(S={}));(function(e){(function(l){(function(h){class f extends h.ZX{constructor(b){super(b)}Ic(){return super.Ic("fgColor")}}h.Kqa=f})(l.color||(l.color={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b=-1){this.FL=0;this.R3=new h.Lqa(b)}Ic(){return"<fill>"+this.R3.Ic()+"</fill>"}set id(b){}get id(){return this.R3.id}}h.RJ=f})(l.Rl||(l.Rl={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b=-1){this.S3="solid";-1<b?(this.fgColor=new l.color.Kqa(b),this.bgColor=new l.color.Jqa(b)):this.S3="none"}get id(){return q.v(this.fgColor)?"none":this.fgColor.id}Ic(){return q.P.bind('<patternFill patternType="{0}">{1}{2}</patternFill>',this.S3,q.v(this.fgColor)?"":this.fgColor.Ic(),q.v(this.bgColor)?"":this.bgColor.Ic())}}h.Lqa=f})(l.Rl||(l.Rl={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){(function(l){(function(h){class f{constructor(b,a,c){this.xS=0;q.v(b)||(this.name=b.replace(/"/g,"").trim());q.v(a)||(this.size=a);q.v(c)||(this.vT=new l.color.ZX(c))}set id(b){}get id(){return this.name+","+this.size+","+(q.v(this.vT)?"":this.vT.id)+","+this.bold+","+this.AD}Ic(){var b="<font>";this.bold&&(b+="<b/>");this.size&&(b+='<sz val="'+this.size+'"/>');this.vT&&(b+=this.vT.Ic());if(this.name){var a=this.name;this.name.indexOf(",")&&(a=this.name.split(",")[0].trim());b+='<name val="'+
a+'"/>'}return b+"</font>"}}h.Iv=f})(l.fonts||(l.fonts={}))})(e.ud||(e.ud={}))})(S||(S={}));(function(e){(function(l){(function(h){class f{constructor(b,a){this.Hz=b;this.AS=a}Ic(){return'<numFmt numFmtId="'+this.Hz+'" formatCode="'+this.AS+'"/>'}get id(){return""!=this.AS?this.AS:this.Hz.toString()}set id(b){}static fAa(){return f.afa++}}f.Cba=1;f.afa=f.Cba;h.yt=f})(l.format||(l.format={}))})(e.ud||(e.ud={}))})(S||(S={}));
(function(e){class l{static format(h,f=null,b=!1,a=!1,c=-1){null==f&&(f=l.ZR);if(isNaN(h)||q.v(h))return f.GD;if(Infinity==h)return f.oD;if(h==q.u.i.wO.vO)return f.zC;b||(b=f.Rf);h=f.de&&"%"!=f.rd?100*h:h;h=l.yua(h);var d=a||f.de?"%":f.rd,g=a||f.de?q.model.ec.X.Gf.Nz["1$"]:f.Ps;a=a||f.de?q.model.ec.X.Gf.Hs["-1$"]:f.Gs;var k=b?0:f.Ml;if(0==h&&0>k){var m="0";!b&&0<d.length&&(m=l.r0(m,d,g,a));return m}m=0>h?f.ax-1:f.ax;1<f.kf.length&&!q.P.NBa(f.kf)&&(m-=Math.floor(m/3)*f.kf.length);!b&&0<f.C_&&(m-=f.C_);
f.kf="&#39;"==f.kf?"'":f.kf;var n=h.toString().split(".");if(1<n.length&&10<=n[1].length&&f.jG){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<k?Math.pow(10,m-k-1):Math.pow(10,m-4);p=Math.pow(10,-(m-4));-1<c&&(k=c);Math.abs(h)>n?(c=Math.round(Math.log(h)/Math.LN10),c=Math.round(Math.log(c)/Math.LN10+1),m=0>h?f.ax-c-5:f.ax-c-4,
0<=f.Ml&&(m=Math.min(m,f.Ml)),0<=f.Uu&&(m=Math.min(m,f.Uu)),m=Math.max(1,Math.min(20,m)),m=h.toExponential(m)):Math.abs(h)<p&&0>k?(c=Math.round(Math.log(h)/Math.LN10),c=Math.round(Math.log(-c)/Math.LN10+1),m=m-4-c,20<m&&(m=20),1>m&&(m=1),m=h.toExponential(m)):0>k&&0>f.Uu?m=h.toString():0==k||0==f.Uu?m=Math.round(h).toString():(m=f.Uu,0<k&&m>k&&(m=k),0<k&&0<m&&m<k&&(k=m),m=l.toFixed(h,k,m));c=m.split(".");m=l.bz(c[0],f);c=1<c.length?c[1]:"";m=0<c.length?m+f.wC+c:m;!b&&0<d.length?m=l.r0(m,d,g,a):0==
d.length&&0>h&&(m=l.BS(m,f.Zp));return m=l.Iaa(m,h)}static toFixed(h,f,b=-1){if(0>=f&&0>=b)return h.toFixed(0);0>f&&(f=0);0>b&&(b=f);h=h.toLocaleString("en-US",{minimumFractionDigits:f,maximumFractionDigits:b});f=h.indexOf(".");return 0<=f?h.substr(0,f).replace(/[,\s\.]/g,"")+"."+h.substr(f+1):h.replace(/[,\s\.]/g,"")}static wJa(h,f=null,b=!1,a=!1){var c=0>h;h=Math.abs(h);if(1E3>h)return l.format(h,f,b,a);if(1E6>h){h/=1E3;var d="K"}else 1E9>h?(h/=1E6,d="M"):1E12>h?(h/=1E9,d="B"):(h/=1E12,d="T");var g=
(c?"-":"")+l.toFixed(h,0==h%1?0:1),k=g.split(".");g=l.bz(k[0],f);k=1<k.length?k[1]:"";g=0<k.length?g+f.wC+k:g;g+=d;d=a||f.de?"%":f.rd;k=a||f.de?q.model.ec.X.Gf.Nz["1$"]:f.Ps;a=a||f.de?q.model.ec.X.Gf.Hs["-1$"]:f.Gs;!b&&0<d.length?g=l.r0(g,d,k,a):0==d.length&&c&&(g=l.BS(g,f.Zp));return g=l.Iaa(g,h)}static bz(h,f=null){var b=0>parseFloat(h);b&&(h=h.substr(1));var a=h;if(3<h.length){null==f&&(null==l.ZR&&(l.ZR=new q.model.ec.X.Gf("")),f=l.ZR);a=Math.floor(h.length/3);var c=[],d=h.length%3;0<d&&c.push(h.substr(0,
d));for(var g=0;g<a;g++)c.push(h.substr(d+3*g,3));a=c.join(f.kf)}b&&(a="-"+a);return a}static r0(h,f,b,a){return 0==h.indexOf("-")?this.KL(h,f,a):this.hya(h,f,b)}static KL(h,f,b){h=0==h.indexOf("-")?h.substr(1):h;switch(b){case q.model.ec.X.Gf.Hs["-$1"]:h="-"+f+h;break;case q.model.ec.X.Gf.Hs["$1-"]:h=f+h+"-";break;case q.model.ec.X.Gf.Hs["($1)"]:h="("+f+h+")";break;case q.model.ec.X.Gf.Hs["(1$)"]:h="("+h+f+")";break;case q.model.ec.X.Gf.Hs["-1$"]:h="-"+h+f;break;case q.model.ec.X.Gf.Hs["$-1"]:h=
f+"-"+h;break;case q.model.ec.X.Gf.Hs["1-$"]:h=h+"-"+f;break;case q.model.ec.X.Gf.Hs["1$-"]:h=h+f+"-"}return h}static hya(h,f,b){switch(b){case q.model.ec.X.Gf.Nz.$1:h=f+h;break;default:h+=f}return h}static BS(h,f){h=0==h.indexOf("-")?h.substr(1):h;switch(f){case q.model.ec.X.Gf.Xu["-1"]:h="-"+h;break;case q.model.ec.X.Gf.Xu["- 1"]:h="- "+h;break;case q.model.ec.X.Gf.Xu["1-"]:h+="-";break;case q.model.ec.X.Gf.Xu["1 -"]:h+=" -";break;case q.model.ec.X.Gf.Xu["(1)"]:h="("+h+")";break;default:h="-"+h}return h}static Iaa(h,
f){return 0<=f||-1==h.indexOf("-")||-1<h.search("[1-9]+")?h:h.replace("-","")}static Og(h){return l.bz((h/1024).toFixed(0))}static yua(h){const f=Math.abs(h);f<l.EPSILON?h=Math.floor(f):f-Math.floor(f)<l.EPSILON&&(h=0>h?Math.ceil(h):Math.floor(h));return h}}l.ZR=new q.model.ec.X.Gf;l.EPSILON="undefined"===typeof Number.EPSILON?2.220446049250313E-16:Number.EPSILON;e.Yb=l})(u||(u={}));window["FM-DIVIDER"]="FM-DIVIDER";
(function(e){(function(l){(function(h){class f{constructor(){}static J(b){b=f.Dta[b];for(var a="",c=0;c<b.length;c++)a+=String.fromCharCode(b[c]+101);return a}}f.Dta=[[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]];f.gfa=0;f.Jga=1;f.Pca=2;f.i2=3;f.kBa=4;f.Kwa=
5;f.qfa=6;f.fea=7;f.pKa=8;f.zCa=9;f.WJa=10;f.GDa=11;f.uxa=12;f.ega=13;f.v9=14;f.Oqa=15;f.p9=16;f.Nqa=17;f.Iva=18;f.SKa=19;f.jK=20;f.fK=21;f.KCa=22;f.Tia=23;f.ACa=24;f.BCa=25;f.advanced=31;f.all=33;f.xwa=34;f.oKa=35;f.ICa=36;f.JCa=54;f.zia=55;f.LGa=37;f.Rwa=38;f.LCa=39;f.info=40;f.Lua=41;f.Sia=42;f.Dca=43;f.Lwa=44;f.vga=45;f.BD=46;f.FDa=48;f.xDa=49;f.Gxa=50;f.JDa=53;f.SZ=56;f.nW=62;f.HGa=63;f.fV=64;f.Eua=65;f.yCa=66;f.iBa=67;f.jBa=68;f.referrer=69;f.Axa=70;f.txa=71;f.hfa=72;f.OJa=73;f.PJa=74;f.gIa=
75;f.NKa=76;f.nwa=77;f.VB=80;f.Kta=81;f.Lta=82;h.pa=f})(l.Ga||(l.Ga={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){class l{static encode(h){var f="",b=0;for(h=l.Rqa(h);b<h.length;){var a=h.charCodeAt(b++);var c=h.charCodeAt(b++);var d=h.charCodeAt(b++);var g=a>>2;a=(a&3)<<4|c>>4;var k=(c&15)<<2|d>>6;var m=d&63;isNaN(c)?k=m=64:isNaN(d)&&(m=64);f=f+this.Ay.charAt(g)+this.Ay.charAt(a)+this.Ay.charAt(k)+this.Ay.charAt(m)}return f}static decode(h){var f="",b=0;for(h=h.replace(/[^A-Za-z0-9\+\/=]/g,"");b<h.length;){var a=this.Ay.indexOf(h.charAt(b++));var c=this.Ay.indexOf(h.charAt(b++));var d=this.Ay.indexOf(h.charAt(b++));
var g=this.Ay.indexOf(h.charAt(b++));a=a<<2|c>>4;c=(c&15)<<4|d>>2;var k=(d&3)<<6|g;f+=String.fromCharCode(a);64!=d&&(f+=String.fromCharCode(c));64!=g&&(f+=String.fromCharCode(k))}return f=l.Qqa(f)}static Rqa(h){h=h.replace(/\r\n/g,"\n");for(var f="",b=0;b<h.length;b++){var a=h.charCodeAt(b);128>a?f+=String.fromCharCode(a):(127<a&&2048>a?f+=String.fromCharCode(a>>6|192):(f+=String.fromCharCode(a>>12|224),f+=String.fromCharCode(a>>6&63|128)),f+=String.fromCharCode(a&63|128))}return f}static Qqa(h){for(var f=
"",b=0,a,c,d;b<h.length;)a=h.charCodeAt(b),128>a?(f+=String.fromCharCode(a),b++):191<a&&224>a?(c=h.charCodeAt(b+1),f+=String.fromCharCode((a&31)<<6|c&63),b+=2):(c=h.charCodeAt(b+1),d=h.charCodeAt(b+2),f+=String.fromCharCode((a&15)<<12|(c&63)<<6|d&63),b+=3);return f}}l.Ay="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.Nja=l})(u||(u={}));
(function(e){class l{static qR(f,b,a=null){if(0==f.trim().length)return{Sw:!1,errorMessage:q.model.B.j.joa};const c=(new e.rJ).parse(f),d=new h;return null==c||void 0==c.length||"string"===typeof c?(d.Sw=!1,d.errorMessage=h.Kda(f),d):this.cua(c,b,a,d)}static cua(f,b,a,c){l.F9(f,b,a,c);return c}static F9(f,b,a,c){const d=f[1];for(var g=0;g<d.length;g++){var k=d[g],m=q.u.Ra.V().O.Ba;if("string"===typeof k||Array.isArray(k)&&1===k.length){const n="string"!==typeof k?k[0]:k;if(n===b&&""!==n){c.Sw=!1;
c.errorMessage=h.vAa(n);break}k=m.getItem(n);q.v(k)&&0<=n.indexOf("[Measures].")&&(k=m.getItem(q.u.ye.Pg(n)));if(q.v(k)){if(q.v(a)||0>a.indexOf(n))c.Sw=!1,c.errorMessage=h.Kda(n);break}m=f[0];if("string"===typeof m&&!l.Zta(m,k)){c.Sw=!1;c.errorMessage=h.OAa(m,b);break}}else Array.isArray(k)&&void 0!=k.length&&this.F9(k,b,a,c)}}static Zta(f,b){if(q.v(b))return!1;q.u.i.da.Ty(f)&&(f=q.u.i.da.cz(f));q.u.i.qa.Tc===q.u.Ra.V().ga.Da&&-1===b.Wc.indexOf(f)&&q.u.i.da.NONE===b.xm&&(f=b.xm);return b.Na||-1!==
b.Wc.indexOf(f)}}e.OO=l;class h{constructor(){this.Sw=!0;this.errorMessage=null}static Kda(f){return q.model.B.j.p8+" <br> "+q.P.bind(q.model.B.j.loa,q.model.Tb.validate(f))}static OAa(f,b){return q.model.B.j.p8+" <br> "+q.P.bind(q.model.B.j.ioa,q.model.Tb.validate(f),q.model.Tb.validate(b))}static vAa(f){return q.P.bind(q.model.B.j.koa,f)}}e.lMa=h})(u||(u={}));
(function(e){class l{static bM(h,f){if(!q.v(h)&&0!=h.length){var b=[];l.TY(h,f,b);return b}}static hH(h,f){return q.v(h)||0==h.length?h:l.NQ(h,f)}static NQ(h,f){var b=[];Array.isArray(h[0])?b[0]=this.NQ(h[0],f):void 0!==h[0]&&(b[0]=h[0]);if(Array.isArray(h[1])){if("string"===typeof h[1][0]){const a=f.getItem(h[1][0]);if(!q.v(a)&&a.Na)return l.hH(a.Xd,f)}b[1]=this.NQ(h[1],f)}else void 0!==h[1]&&(b[1]=h[1]);Array.isArray(h[2])?b[2]=this.NQ(h[2],f):void 0!==h[2]&&(b[2]=h[2]);return b}static TY(h,f,b){if(!0===
h[2])for(var a in h[1])this.TY(h[1][a],f,b);else if(!1===h[2]){a=h[1][0];h=h[0];const c=f.getItem(a);c&&c.Na?this.TY(c.Xd,f,b):b.push(new q.model.hb.ah(a,h))}}}e.nt=l})(u||(u={}));
(function(e){(function(l){(function(h){class f{}f.XX="UNDEFINED";f.rF="START_REPORT";f.hF="OPENING_REPORT_FILE";f.Tx="LOADING_REPORT_FILE";f.Xn="REPORT_FILE_LOADED";f.HJ="REPORT_FILE_ERROR";f.Kr="REPORT_FILE_CANCELLED";f.dn="REPORT_CHANGED";f.lF="REPORT_DEFINED";f.ZE="LOADING_DATA";f.QI="DATA_LOADED";f.NI="DATA_ERROR";f.OI="DATA_FILE_CANCELLED";f.Ev="STRUCTURE_LOADED";f.nX="LOADING_OLAP_STRUCTURE";f.A8="OLAPstructure__LOADED";f.z8="OLAPstructure__ERROR";f.bka="CONNECTED_TO_DATA_SOURCE";f.PW="EMPTY_SLICE";
f.XA="RUNNING_QUERY";f.Pk="QUERY_COMPLETE";f.vt="QUERY_ERROR";f.$E="LOADING_LOCALIZATION";f.aF="LOCALIZATION_LOADED";f.qJ="LOCALIZATION_ERROR";f.ii="REPORT_COMPLETE";f.t6="CREATION_COMPLETE";h.nd=f;class b{}b.XX="UNDEFINED";b.INIT="INIT";b.cp="CLEAR";b.xpa="SET_REPORT";b.opa="RUN_QUERY";b.PJ="UPDATE_DATA";b.uqa="UPDATE_DATA_PARTIAL";b.wA="CONNECT_TO";b.S7="LOAD";b.OPEN="OPEN";b.Oc="COMPLETE";h.mp=b;class a extends v.Ah{constructor(){super();this.ha=e.u.Ra.V();this.yY=null;this.zf=b.XX;this.aE=f.XX;
this.tI=this.L$=this.HY=this.GQ=this.KF=!1;this.Waa=()=>this.lEa();this.MN=()=>this.mr();this.tba=()=>this.L2();this.xia=c=>this.tGa(c);this.SK=()=>this.K2();this.Pz=c=>this.LD(c);this.Pga=c=>this.u3(c);this.Zga=()=>this.bb();this.lq=new l.hb.qpa;l.C.F.V()}get ga(){return e.v(this.Ab)||this.Ab.nb?this.bo:this.Ab}set ga(c){this.Ab=c}get kc(){return this.KF}get YT(){return this.GQ}get bU(){return this.HY}pD(c){e.v(c)&&(c={});this.zf=b.INIT;l.Ga.uc.V().gua(c,d=>{if(d)if(this.ee(f.rF),this.oM=l.hb.Yx.zb(c.global?
c.global:{}),l.C.F.V().N(f.dn,()=>this.bb()),l.size.vd.V().N(f.dn,()=>this.bb()),l.va.Zm.V().N(f.dn,()=>this.bb()),this.NJa(this.oM),this.jR(),"string"===typeof c.report)this.iK(c.report);else{var g=c.report||{};this.Pha(g);l.C.F.qq(g.options||g,!0,!1);e.Ce(()=>{this.zf===b.INIT&&this.qK(g)},1)}})}ee(c,d=null,g=!0){this.aE=c;if(c==f.rF||c==f.hF||c==f.Tx)this.HY=this.GQ=this.KF=!1;c==f.XA&&(this.L$=this.KF,this.KF=!1);c!=f.Pk&&c!=f.vt||!0!==this.L$||(this.KF=!0);c==f.ii&&(this.GQ=this.KF=!0);c==f.lF&&
(this.GQ=!0);c==f.Ev&&(this.HY=!0);g&&this.$a(c,null,d)}ux(c){e.v(c)&&(c={});this.zf=b.xpa;this.cancel();this.ee(f.rF);this.qK(c.report||{})}ne(c){this.zf=b.opa;c=c instanceof e.u.O.Lr?c:e.u.O.Lr.zb(l.hb.pp.zb(c),this.ha.O);var d=e.u.O.Lr.taa(c,this.ha.ua),g=e.u.O.Lr.saa(c,this.ha.ua);if(e.u.O.Lr.yta(c,this.ha.ua)&&!d&&!g){const k=new l.hb.Gv;k.Vf=l.size.vd.eha;k.Lf=l.size.vd.Paa;k.Uj=l.size.vd.Uj;k.Xg=l.size.vd.Xg;k.Lg=l.size.vd.Lg;k.kh=l.size.vd.kh;l.size.vd.KZ(k)}d&&(l.size.vd.Vf={});g&&(l.size.vd.Lf=
{});c.sDa(this.ha.ua);c.z5();c.fja();l.Va.V().$a("reset_grid");e.u.sf.Fj.zc().Fe=!1;this.ha.mE(c);this.ha.filter();l.Ua.V().Fa(new l.cd(l.Ua.GJ))}Qd(c,d){this.zf=b.PJ;this.cancel();this.ee(f.rF);const g=this.ws();d.ignoreSorting&&(g.slice.Lj={},g.slice.Wj={});d.ignoreScroll&&l.Va.V().$a("reset_grid");e.ia(g.Ge)||delete g.Ge;const k=g.ma.mapping;g.ma=e.u.O.kt.zb(c);g.ma.mapping=g.ma.nb||g.ma.mapping.nb&&!g.ma.mapping.Jo&&void 0!==k?k:g.ma.mapping;c=g.Qa();null==g.ma.sc||e.v(c.dataSource)||(c.dataSource.requestHeaders=
g.ma.sc);this.qK(c,!0,d)}yKa(c,d){this.zf=b.uqa;var g=this.ha.ua.clone();this.cancel();this.Eha();this.ee(f.rF);d.ignoreSorting&&(g.Rb.gC(),g.cc.gC());d.ignoreScroll&&l.Va.V().$a("reset_grid");this.Pd.ma.data&&(d=this.Pd.ma.data,d=d.concat(c),this.Pd.ma.data=d);this.ha.Qd(c);this.pZ();e.u.sf.Fj.zc().reset(!1);this.tI=!0;e.Ce(()=>{this.tI=!1},500);this.ha.ua=g;this.ha.filter()}wG(c){this.zf=b.wA;this.cancel();this.ee(f.rF);this.qK(c)}load(c,d){this.zf=b.S7;this.cancel();this.iK(c,d)}iK(c,d){this.ee(f.Tx);
this.lq.N(l.hb.Eh.Xn,g=>this.MD(g));this.lq.N(l.hb.Eh.Av,()=>this.bN());this.lq.load(c,d)}open(){this.zf=b.OPEN;this.ee(f.hF);this.lq.cancel();this.lq.N(l.hb.Eh.IJ,()=>this.y3());this.lq.N(l.hb.Eh.Xn,c=>this.MD(c));this.lq.N(l.hb.Eh.Av,()=>this.bN());this.lq.N(l.hb.Eh.Kr,()=>this.aN());this.lq.open()}Pha(c){null!=c&&c.hasOwnProperty("dataSource")&&c.dataSource.hasOwnProperty("browseForFile")&&c.dataSource.browseForFile&&(c.dataSource.requestPermission=!0)}MD(c){this.Pha(c.hb);e.Ca(!1);this.ee(f.Xn);
this.qK(c.hb)}bN(){e.Ca(!1);this.ee(f.HJ);this.ee(f.lF);this.ee(f.ii)}y3(){this.$a(f.Tx,null,"")}aN(){this.ee(f.Kr);this.ee(f.lF);this.ee(f.ii)}bb(){this.aE!=f.ii&&this.aE!=f.Pk||l.Ua.V().Fa(new l.cd(l.Ua.GJ))}qK(c,d=!1,g=null){1>l.Ga.uc.Oj()||(this.Pd=c instanceof l.hb.Yx?c:l.hb.Yx.zb(c),this.Pd.ma.vCa=d,this.Pd.ma.Wia=g,d||l.Va.V().$a("reset_grid"),this.eua(this.Pd),this.Eha(),this.Pd.ma.nb?this.mfa():this.Pd.ma.mapping.UCa(this.Pd.ma.sc,()=>this.mfa()))}Eha(){this.Pd.ma.nb?this.bo&&!this.bo.nb&&
(e.u.ye.yE=!this.bo.Gc||this.bo.Da==e.u.i.qa.ag||this.bo.Da==e.u.i.qa.API,e.u.ye.vI=!this.bo.Gc||this.bo.Da==e.u.i.qa.ag||this.bo.Da==e.u.i.qa.API):(e.u.ye.yE=!this.Pd.ma.Gc||this.Pd.ma.Da==e.u.i.qa.ag||this.Pd.ma.Da==e.u.i.qa.API,e.u.ye.vI=!this.Pd.ma.Gc||this.Pd.ma.Da==e.u.i.qa.ag||this.Pd.ma.Da==e.u.i.qa.API)}eua(c){"flat"!=c.options.U("gridType")||c.options.U("viewType")!=e.K.Id.Tn||c.ma.nb||c.ma.Da!=e.u.i.qa.API||(c.options.na("viewType",e.K.Id.ot),e.Za(e.P.bind(l.B.j.sX),l.B.j.XO,e.xb.vl))}ws(c=
{}){return h.X.c9.kKa(this.zza(c))}clear(c=!1){this.cancel();this.zf=b.cp;this.jR();c?this.ha.clearData():this.ha.cancel();this.ee(f.ii)}cancel(){this.lq.cancel();this.VHa();this.tI=!1;e.u.ye.yE=!1;e.u.ye.vI=!1;e.Ca(!1)}mfa(){e.ia(this.oM.Ge)?this.Ufa(null):(this.ee(f.$E),l.B.NA.V().load(this.oM.Ge,c=>this.Ufa(c),!0),this.oM.Ge=null)}Ufa(c){e.ia(this.Pd.Ge)?(l.B.NA.V().reset(),this.RH(c)):(this.ee(f.$E),l.B.NA.V().load(this.Pd.Ge,d=>this.RH(d)))}RH(c){c?this.ee(f.aF):!1===c&&this.ee(f.qJ);this.YCa()}YCa(){this.zf!=
b.wA&&this.zf!=b.PJ&&(this.zf!=b.OPEN&&this.jR(),l.C.F.qq(this.Pd.options,!0,!1),this.zf!=b.OPEN&&(l.C.F.yn=l.C.F.pC));var c=this.zf;this.ee(f.lF);c==this.zf&&((c=this.Pd.ma,!e.v(this.ga)&&!this.ga.nb&&this.ga.isEqual(c)&&!l.C.F.jI&&this.ha.ga&&this.ha.O&&this.ha.O.Wd)?(c=e.u.sf.Fj.zc(),this.Pd.ma.Wia&&this.Pd.ma.Wia.keepMembersOrder?c.Fe=!0:c.reset(),this.pZ(),this.ha.OHa()):(c.nb&&this.bo&&!this.bo.nb&&(c=this.bo),c.nb)?(this.ga=c,this.ha.cancel(),this.ee(f.ii),e.Ca(!1)):(c.Gc?this.ee(f.nX):this.ee(f.ZE),
null!==this.ha.ra&&(this.zf==b.wA||this.zf==b.OPEN||e.v(this.ga)||this.ga.nb||c.Da===this.ga.Da?this.ga.Da===e.u.i.qa.API&&this.Pd.ma.Da===e.u.i.qa.API&&e.u.sf.Fj.vwa!==e.u.sf.Fj.aKa(this.Pd.options)&&(this.ha.ra.fs(),this.ha.ra=null):(this.ha.ra.fs(),this.ha.ra=null)),this.bua(c),e.u.sf.Fj.zc(),this.pZ(),this.ha.connect(c)))}bua(c){!l.C.F.rc||e.v(c)||c.nb||c.AH||(l.C.F.rc=!1)}lEa(){this.zf===b.wA?(this.jR(),this.ha.ua&&this.ha.ua.clear(),this.ha.O&&this.ha.O.clear()):this.qaa(!1);this.ee(f.bka);
this.ga=this.Pd.ma}mr(){this.ee(f.Ev);const c=e.u.O.Lr.zb(this.Pd.slice,this.ha.O,!1,e.u.i.qa.API!==this.Pd.ma.Da);this.qaa(!0);this.ha.mE(c);this.ga.Gc?(this.ee(f.A8),c.nb?(this.ee(f.PW),this.ee(f.ii)):(l.C.F.yn=l.C.F.pC,this.ha.filter())):(this.ee(f.QI),l.C.F.yn=l.C.F.pC,this.ha.filter())}L2(){this.ee(f.OI);this.ee(f.ii)}tGa(c){var d=this.Pd.ma;l.C.F.qq(this.Pd.options);this.ha.cancel();e.Ca(!1);d.Gc?this.ee(f.z8,c.data):this.ee(f.NI,c.data);this.ee(f.ii)}K2(){this.ee(f.XA)}LD(c){this.ee(f.Pk,c.kq);
this.aE!=f.ii&&this.ee(f.ii,null,c.kq!=e.u.i.Rd.VI)}u3(c){this.ee(f.vt,c.data);this.aE!=f.ii&&this.ee(f.ii)}pZ(){this.ha.N(e.u.tg.QX,this.Waa);this.ha.N(e.u.tg.Ev,this.MN);this.ha.N(e.u.tg.PX,this.tba);this.ha.N(e.u.tg.RX,this.xia);this.ha.N(e.u.tg.GI,this.SK);this.ha.N(e.u.tg.Pk,this.Pz);this.ha.N(e.u.tg.vt,this.Pga);this.ha.N(f.dn,this.Zga)}VHa(){this.ha.sb(e.u.tg.QX,this.Waa);this.ha.sb(e.u.tg.Ev,this.MN);this.ha.sb(e.u.tg.PX,this.tba);this.ha.sb(e.u.tg.RX,this.xia);this.ha.sb(e.u.tg.GI,this.SK);
this.ha.sb(e.u.tg.Pk,this.Pz);this.ha.sb(e.u.tg.vt,this.Pga);this.ha.sb(f.dn,this.Zga)}save(c,d,g,k,m=!1){return this.lq.save(c,d,g,k,m,this.ws(c instanceof Object?c:{}))}zza(c){if(void 0===this.Ab&&void 0===this.ha.O&&void 0===this.ha.ua)return null;var d=c.hasOwnProperty("withDefaults")?1==c.withDefaults:!1;c=c.hasOwnProperty("withGlobals")?1==c.withGlobals:!1;var g=new h.X.c9;g.lA=d;g.OKa=c;g.Ab=c&&this.Ab.nb&&!this.bo.nb?this.bo:this.Ab;g.O=this.ha.O;g.Qb=this.ha.ua;g.C=l.C.F.Kw(d,c);g.De=l.ec.gj.$ya();
g.Xc=l.va.Zm.Xc;g.Dm=l.hb.MI.Dm;g.Ax=l.size.vd.rH();this.Pd&&(g.Ge=c&&null==this.Pd.Ge&&null!=this.yY?this.yY:this.Pd.Ge);return g}get nM(){return this.Z9}set nM(c){this.Z9=c}NJa(c){this.bo=c.ma;this.nM=c.slice.bd;l.C.F.eJa(c.options);this.yY=c.Ge}jR(){e.u.sf.Fj.dispose();l.size.vd.clear();l.va.Zm.c4();l.ec.gj.clear();l.hb.MI.Dm=[];l.C.F.clear()}qaa(c=!1){l.C.F.qq(this.Pd.options,!1);c&&(l.size.vd.clear(),l.size.vd.KZ(this.Pd.Ax));l.va.Zm.c4();for(c=0;c<this.Pd.Xc.length;c++){var d=l.va.X.B6.zb(this.Pd.Xc[c]);
l.va.Zm.add(d)}l.ec.gj.clear();for(c=0;c<this.Pd.De.length;c++)l.ec.gj.jE(this.Pd.De[c]);for(c=0;c<this.Pd.slice.Ba.length;c++)if(d=this.Pd.slice.Ba[c],void 0!==d.format){let g=void 0===d.aggregation?"":d.aggregation;g=e.u.i.da.Ty(g)?e.u.i.da.cz(g):g;l.ec.gj.eI(d.format,d.uniqueName,g)}l.hb.MI.Dm=this.Pd.Dm}dispose(){this.cancel();l.va.Zm.dispose();l.C.F.dispose();l.Rs.jF.dispose();l.qD.SO.dispose();l.B.NA.dispose();l.Ga.uc.dispose();l.size.vd.dispose();l.ec.gj.dispose();this.lq.dispose();l.hb.MI.Dm=
[];this.ha=this.Pd=this.Z9=this.oM=this.Ab=this.lq=null}}h.Rpa=a})(l.jc||(l.jc={}))})(e.model||(e.model={}))})(q||(q={}));
(function(e){(function(l){(function(h){class f{constructor(){}static ZC(a){return a==f.ag?h.pa.J(h.pa.txa):h.pa.J(a+28)}}f.lm=0;f.Dka=2;f.le=3;f.rja=4;f.yO=5;f.ag=6;h.ip=f;class b{constructor(){b.fv=[123,11,92,19,144,53,22,7,190,81,45,201,45,88,130,173,165,9,34,54,31,233,245,40,65,55,23,183,102,109,34,45,177,103,51,20,119,17,3,49,90,92,90,134,182,199,92,230,241,2,117,108,124,54,32,190,251,16,4,5,231,253,201,2,39,96,91,55,82,160,32,84,193,149,189,152,29,102,119,234]}static V(){null==b.instance&&(b.instance=
new b);return b.instance}static dispose(){b.bW=null;b.QG=null;b.ffa=null;b.j2=null;b.Py=null;b.fv=null;b.instance=null}gua(a,c){this.Jb=c;a[h.pa.J(h.pa.gfa)]?this.AN(a[h.pa.J(h.pa.gfa)]):a[h.pa.J(h.pa.Jga)]?this.AN(a[h.pa.J(h.pa.Jga)]):a[h.pa.J(h.pa.Pca)]?this.AN(a[h.pa.J(h.pa.Pca)]):a[h.pa.J(h.pa.i2)]?this.lfa(a[h.pa.J(h.pa.i2)]):window[h.pa.J(h.pa.hfa)]?this.AN(window[h.pa.J(h.pa.hfa)]):this.lfa(a[h.pa.J(h.pa.i2)])}AN(a){a=l.Tb.validate(a);b.Py=b[h.pa.J(h.pa.Dca)+h.pa.J(h.pa.p9)]=a;b.error=!1;this.Jb(!0)}hua(a){if(void 0==
a)return f.lm;if(a.trim()==h.pa.J(h.pa.NKa))return this.Mo(h.pa.J(h.pa.Tia)),f.lm;a=a.trim();var c=this.TBa(a);c&&(a=this.tya(a));if(!this.Sea(a))return f.lm;a=this.uIa(a);var d=this.Vza(a);c&&(b.By=!0);var g=this.vza(),k=this.cCa(g),m=this.ZBa(g);if(!b.maa&&this.Q1())return this.Mo(h.pa.J(h.pa.kBa)),f.lm;if(c&&b.hv)if(this.rR(a))b.Gp=!0;else return;if(b.hv&&!this.rR(a))return f.lm;if(b.Gp)if(k||m||c){if(!this.aua(a))return f.lm}else return this.Mo(e.P.bind(h.pa.J(h.pa.Kwa),g)),f.lm;if(b.iq&&!this.iua(a,
k||m?h.pa.J(h.pa.qfa):g))return f.lm;if(d==f.lm||e.v(d))this.Mo(h.pa.J(h.pa.fea));else if(!this.jua(a))return f.lm;b.hv||b.Gp||b.iq||(d=f.lm);return d}static Oj(){var a=[h.pa.J(h.pa.Dca),"G"].join("X");return b.V().hua(b[a])}Mo(a,c=!0,d=!1){c&&null!=b.Py&&0<b.Py.length&&(a+=h.pa.J(h.pa.VB)+h.pa.J(h.pa.VB)+h.pa.J(h.pa.pKa)+b.Py);d&&(a+=h.pa.J(h.pa.VB)+h.pa.J(h.pa.zia)+u.zh.format(b.bW,"MM/dd/yyyy"));c=new Date(parseFloat(e.ph.tW)/61);a+=h.pa.J(h.pa.VB)+h.pa.J(h.pa.VB)+h.pa.J(h.pa.nwa)+e.ph.ft+` (${h.pa.J(h.pa.Kta)} ${u.zh.format(c,
"MM/dd/yyyy")})`;b.error=!0;e.Ca(!1);this.Jb(!1);e.Za(a,l.B.j.Aa,e.xb.Aa,[],null,!0)}lfa(a){a||(a=u.ey.sH(h.pa.J(h.pa.zCa)));a=a+h.pa.J(h.pa.WJa)+Date.now();this.xhr=new XMLHttpRequest;this.xhr.open("GET",a,!0);this.xhr.onerror=()=>this.Qfa();this.xhr.onreadystatechange=c=>this.bv(c);this.xhr.send()}bv(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.mFa(this.xhr.responseText):this.Qfa())}mFa(a){this.AN(a)}Qfa(){this.Mo(h.pa.J(h.pa.GDa))}cCa(a){return null==a||-1==a.indexOf(".")?
!0:!1}ZBa(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)}TBa(a){return a.substr(0,2)==h.pa.J(h.pa.p9)}tya(a){a=a.substr(2);var c=Math.floor((new Date).getTime()/6048E5),d=parseInt(a.substr(0,2),16);a=a.replace(RegExp("-","g"),"").substr(2);for(var g=0;2>g;g++){for(var k=0;5>k;k++){for(var m=d*c*k,n="",p=0;p<a.length;p+=2){var t=m%256;m=(m-t)/256;n+=String.fromCharCode(parseInt(a.charAt(p)+a.charAt(p+1),16)^t);256>m&&(m*=c)}if(this.Sea(n,
!1))return n}c++}return"-"}Q1(){if(self==top||-1<window[h.pa.J(h.pa.jK)][h.pa.J(h.pa.fK)].toLowerCase().indexOf(h.pa.J(h.pa.Eua))||-1<window[h.pa.J(h.pa.jK)][h.pa.J(h.pa.fK)].toLowerCase().indexOf(h.pa.J(h.pa.yCa))||-1<window[h.pa.J(h.pa.jK)][h.pa.J(h.pa.fK)].toLowerCase().indexOf(h.pa.J(h.pa.OJa))||-1<window[h.pa.J(h.pa.jK)][h.pa.J(h.pa.fK)].toLowerCase().indexOf(h.pa.J(h.pa.PJa)))return!1;try{window.parent.document}catch(a){return!0}return!1}Sea(a,c=!0){if(null==a||0==a.length)return c&&this.Mo(h.pa.J(h.pa.uxa)),
!1;if(a.trim()==h.pa.J(h.pa.ACa))return c&&this.Mo(h.pa.J(h.pa.BCa),!1),!1;a=a.trim().replace(/-/gi,"");if(a.substr(0,2)==h.pa.J(h.pa.v9).substr(0,1)+7){var d=parseInt(a.substr(2,2),36);var g=a.substr(4,4);"X"==g.substr(0,1)&&(g=g.substr(1,3));g=parseInt(g,20)-3227;a=a.substring(8).toLowerCase()}else return a.substr(0,2)==h.pa.J(h.pa.v9)||a.substr(0,2)==h.pa.J(h.pa.Oqa)||a.substr(0,2)==h.pa.J(h.pa.Nqa)?c&&this.Mo(h.pa.J(h.pa.ega),!0,!0):c&&this.Mo(h.pa.J(h.pa.fea)),!1;for(var k=0;k<a.length;k+=2){var m=
parseInt(a.substr(k,2),36);isNaN(m)||(d+=m)}return g!=d||1>g?(c&&this.Mo(h.pa.J(h.pa.Iva)),!1):!0}uIa(a){a=a.trim().replace(/-/gi,"");var c=parseInt(a.substring(2,4),36);a=a.substring(8).toLowerCase();for(var d="",g=0;g<a.length;g+=2)d+=String.fromCharCode(parseInt(a.substr(g,2),36)^Math.abs(Math.sin(g/2+2)*c*(g/2+7))%256);return d}Vza(a){b.Hba=u.sea();a=a.charCodeAt(0);b.maa=256<=a;a%=256;b.Gp=128<=a;a%=128;b.Sda=64<=a;a%=64;b.iq=32<=a;a%=32;b.By=16<=a;a%=16;b.hv=8<=a;return a%8}vza(){var a;if(this.Q1()){if(a=
document[h.pa.J(h.pa.referrer)])a=a.replace(h.pa.J(h.pa.iBa),""),a=a.replace(h.pa.J(h.pa.jBa),""),a=a.split("/")[0]}else{a=h.pa.J(h.pa.jK);var c=h.pa.J(h.pa.fK);a=window[a][c]}if(null==a)return null;a=a.replace(h.pa.J(h.pa.SKa),"");return a=a.split(":")[0]}jua(a){var c=b.hv?a.substr(-6,3):a.substr(-3);a=new Uint8Array(c.length);for(var d=0;d<c.length;d++)a[d]=c.charCodeAt(d)^b.fv[d];c="";for(d=0;d<a.byteLength;d++)c+=String.fromCharCode(a[d]);a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());
b.bW=a;d=new Date(parseFloat(e.ph.tW)/61);return!a||isNaN(a.getTime())||a<d?(this.Mo(h.pa.J(h.pa.ega),!0,!0),!1):!0}rR(a){var c=a.substr(-3);a=new Uint8Array(c.length);for(var d=0;d<c.length;d++)a[d]=c.charCodeAt(d)^b.fv[d];c="";for(d=0;d<a.byteLength;d++)c+=String.fromCharCode(a[d]);a=new Date(864E5*(parseInt(c,34)+17001)+6E4*(new Date).getTimezoneOffset());b.QG=a;a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());return!a||isNaN(a.getTime())||a<new Date?(b.iq||b.Gp?this.Mo(h.pa.J(h.pa.KCa)):
this.Mo(h.pa.J(h.pa.Tia)),!1):!0}aua(a){var c=a;a=a.substr(1);for(var d=new Uint8Array(a.length),g=0;g<a.length;g++)d[g]=a.charCodeAt(g)^b.fv[g];a="";for(g=0;g<d.byteLength;g++)a+=String.fromCharCode(d[g]);b.j2=a.split(String.fromCharCode(224))[0];return b.hv&&!this.rR(c)?!1:!0}iua(a,c){var d=a;a=a.substr(1);for(var g=new Uint8Array(a.length),k=0;k<a.length;k++)g[k]=a.charCodeAt(k)^b.fv[k];a="";for(k=0;k<g.byteLength;k++)a+=String.fromCharCode(g[k]);g=a.split(String.fromCharCode(224));a=g[0];b.ffa=
g.shift();if(b.hv&&!this.rR(d))return!1;if(c==h.pa.J(h.pa.qfa))return!0;d=" ";b.Sda&&c.length>=a.length-2&&(d="*."+c.substring(c.length-a.length+2));return a!=c&&a!=d&&a!=e.ypa.hash(c)?(this.Mo(e.P.bind(h.pa.J(h.pa.HGa),a)),!1):!0}static MCa(){return f.ZC(b.Oj())}}b.error=!1;b.hv=!1;b.iq=!1;b.Gp=!1;b.Hba=!1;b.QG=new Date(2009,9,30);b.bW=new Date(2009,9,30);b.By=!1;b.Py="";b.Sda=!1;b.maa=!1;h.uc=b})(l.Ga||(l.Ga={}))})(e.model||(e.model={}))})(q||(q={}));var mb=S||(S={});class nb{}nb.cka='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>{0}</Types>';
nb.dka='<Override PartName="{0}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>';nb.Pqa='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>';
nb.zja='<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Flexmonster Pivot Table</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>3</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="3" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr><vt:lpstr>Sheet2</vt:lpstr><vt:lpstr>Sheet3</vt:lpstr></vt:vector></TitlesOfParts><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>14.0300</AppVersion></Properties>';
nb.Bka='<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator></dc:creator><cp:lastModifiedBy></cp:lastModifiedBy></cp:coreProperties>';nb.Dqa='<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9302"/><workbookPr defaultThemeVersion="124226"/><bookViews><workbookView xWindow="360" yWindow="210" windowWidth="16860" windowHeight="9150"/></bookViews><sheets>{0}</sheets><calcPr calcId="144525"/></workbook>';
nb.Eqa='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>{0}</Relationships>';
nb.Fqa='<Relationship Id="{0}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="{1}"/>';nb.Ypa='<a:theme name="Office Theme" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="1F497D"/></a:dk2><a:lt2><a:srgbClr val="EEECE1"/></a:lt2><a:accent1><a:srgbClr val="4F81BD"/></a:accent1><a:accent2><a:srgbClr val="C0504D"/></a:accent2><a:accent3><a:srgbClr val="9BBB59"/></a:accent3><a:accent4><a:srgbClr val="8064A2"/></a:accent4><a:accent5><a:srgbClr val="4BACC6"/></a:accent5><a:accent6><a:srgbClr val="F79646"/></a:accent6><a:hlink><a:srgbClr val="0000FF"/></a:hlink><a:folHlink><a:srgbClr val="800080"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Cambria"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u5b8b\u4f53"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface ="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u5b8b\u4f53"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface ="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="16200000" scaled="1"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:shade val="51000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="80000"><a:schemeClr val="phClr"><a:shade val="93000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="94000"/><a:satMod val="135000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="16200000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln><a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw></a:effectLst><a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d><a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs><a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs></a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs></a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:spDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style></a:spDef><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/></a:theme>';
nb.Ipa='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">{0}<fonts count="{1}" x14ac:knownFonts="1"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font>{2}</fonts><fills count="{3}">{4}</fills><borders count="2"><border><left/><right/><top/><bottom/><diagonal/></border><border><left style="thin"><color theme="0" tint="-0.14996795556505021"/></left><right style="thin"><color theme="0" tint="-0.14996795556505021"/></right><top style="thin"><color theme="0" tint="-0.14996795556505021"/></top><bottom style="thin"><color theme="0" tint="-0.14996795556505021"/></bottom><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="{5}"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>{6}</cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext></extLst></styleSheet>';
nb.zpa='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="5" uniqueCount="5">{0}</sst>';nb.Apa='<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><dimension ref="{0}"/><sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="A1" sqref="A1"/></sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" defaultColWidth="15" x14ac:dyDescent="0.25"/><cols>{1}</cols><sheetData>{2}</sheetData>{3}<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/></worksheet>';
nb.zt='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';mb.Oi=nb;
(function(e){(function(l){class h extends v.Ah{constructor(){super();this.lD=new e.tb;this.vH=new e.tb;this.f_=0;if(null!=h.instance)throw Error("Singleton");}static V(){void 0==h.instance&&(h.instance=new h);return h.instance}mE(f){this.ga.Gc||f.nb&&e.model.C.F.K4&&f.z2&&f.cDa();for(var b=0;b<f.ob.length;b++){var a=f.ob.ea(b);a.filter.xi&&a.filter.eC()}var c=f.wc(!1,!1);for(b=0;b<c.length;b++)if(a=c.ea(b),a.gb=[],a.filter.xi&&a.filter.measure&&(-1==a.filter.measure.index&&(a.filter.measure.index=
f.sda(a.filter.measure.A,a.filter.measure.aa),-1==a.filter.measure.index&&(a.filter.measure.index=f.sda(a.filter.measure.A))),-1!=a.filter.measure.index)){var d=f.WC(a.filter.measure.index);e.v(d)||(a.filter.measure.aa=d.aa)}this.ua=f}OHa(){!this.ga.Gc&&this.O&&(this.O.Wd=!1,this.YD());for(var f=this.O.wc(!1),b=0;b<f.length;b++){var a=f.ea(b);a.eu();a.XZ();this.ga.Gc?0<a.CC.length&&(a.Wd=!1):a.Wd=!1}this.ua&&this.ua.clear();this.uL()}connect(f){e.v(this.Qt)||this.Qt.cancel();this.Qt=l.Upa.MAa(f);
this.Qt.load(f,()=>this.uL(),b=>{this.$a(l.tg.RX,null,{error:b})},()=>{this.cancel(!1);this.ga=f;this.rq=this.Qt;this.ra=this.ga.Da==l.i.qa.ag?new l.external.Qe.tla(this):this.ga.Da==l.i.qa.API?new l.external.pc.I5(this):this.ga.Gc?new l.external.Eb.Eoa(this):new l.local.aP(this);this.Qt=null;this.zn=l.OW.H0(this.ga);null!=this.O&&this.O.clear();this.O=l.O.Tpa.LAa(this.ga.Da);this.O.lJa(f.mapping);this.$a(l.tg.QX)},()=>{this.$a(l.tg.PX)})}uL(){this.O.Wd=!0;this.$a(l.tg.Ev)}cancel(f=!0){u.Cl.cancel();
this.rq&&(this.rq.cancel(),this.rq=null);this.zn&&(this.zn.cancel(),this.zn=null);this.lD=new e.tb;this.vH=new e.tb;f&&this.O&&(this.O.clear(),this.O=null);f&&this.ua&&(this.ua.clear(),this.ua=null);f&&this.ra&&(this.ra.fs(),this.ra=null);f&&this.Qt&&(this.Qt.cancel(),this.Qt=null);this.f_=0}clearData(){this.zn&&(this.zn.cancel(),this.zn=null);this.ra&&this.ra.fs()}GH(f,b){null!=f&&(this.ra.select(!1),null!==this.zn&&this.zn.cancel(),this.zn=l.OW.H0(this.ga),this.zn.load(this.ga,f,b,a=>this.GG(a)))}An(f=
""){this.Fa(new l.EX(f))}GG(f){this.$a(l.tg.vt,null,{error:f})}filter(){this.select(l.i.Rd.EO)}sort(){this.An()}expand(f,b,a,c=!0){this.Fa(new l.LE(l.i.Rd.EA));this.U3(f,b,a,()=>{this.ra.expand(f,b,a);c&&(this.An(l.i.Rd.EA),e.Ce(()=>{this.$a(e.model.jc.nd.dn)},1))})}Zqa(f,b,a){a=e.v(a)?this.ua.Kf:[a];for(var c=!0,d=0;d<a.length;d++){var g=b===l.i.ja.La?this.ra.Ha(f,[],a[d]):this.ra.Ha([],f,a[d]);if(!isNaN(g)){c=!1;break}}return c}U3(f,b,a,c){this.ga.Gc?this.Zqa(f,b,a)?c():(a=new l.kF(l.i.Rd.EA),a.lf=
f,a.Yt=b,a.body=l.WA.UC(this.ua,this.ga).expand(b,f),void 0===a.body?c():this.GH(a,c)):c()}Yqa(f,b,a){if(null!=b.hierarchy.oc)return!1;var c=e.v(void 0)?this.ua.Kf:[void 0],d=!0;f=f.slice(0);f[f.length-1]=b.ordinal;for(b=0;b<c.length;b++){var g=a===l.i.ja.La?this.ra.Ha(f,[],c[b]):this.ra.Ha([],f,c[b]);if(!isNaN(g)){d=!1;break}}return d}Ega(f,b,a,c){if(this.ga.Gc)if(this.Yqa(f,b,a))c();else{var d=new l.kF(l.i.Rd.qv);d.lf=f;d.Yt=a;d.body=l.WA.UC(this.ua,this.ga).Mf(a,f,b,b.level.A);void 0===d.body?
c():this.GH(d,c)}else c()}collapse(f,b,a,c=!0){this.ra.collapse(f,b,a);c&&this.An(l.i.Rd.i6)}bd(f,b,a,c,d=null){var g=new l.kF(l.i.Rd.VI);g.body=l.WA.UC(this.ua,this.ga).bd(f,b,a,d?d.slice(0):null);e.Ca(!0,e.model.B.j.bg);d=new l.LE(l.i.Rd.VI);this.Fa(d);this.zn.cancel();this.zn=l.OW.H0(this.ga);this.zn.bd(this.ga,g,f,b,a,k=>{c(k);this.An(g.type)},()=>{c();this.An(g.type)})}Qc(f,b){this.ua.Qc=f;this.ua.kd=b;this.ua.wua();this.ua.vua();this.ga.Gc&&this.ra.sG()}Mf(f,b,a,c){b.hierarchy.Xy(b);var d=new l.LE(l.i.Rd.qv);
this.Fa(d);this.ga.Gc?b.Sg?(this.ra.Mf(f,b,a,c),this.An(l.i.Rd.qv)):this.Bk(b.hierarchy,b,()=>{var g=new l.kF(l.i.Rd.qv);g.lf=f;g.Yt=a;g.body=l.WA.UC(this.ua,this.ga).Mf(a,f,b);this.GH(g,()=>{this.ra.Mf(f,b,a,c);for(var k=[],m=b.level.wb+1;m<b.hierarchy.ta.length;m++){var n=b.hierarchy.ta.ea(m);n&&(k=k.concat(b.hierarchy.CC(n)))}if(0<k.length){n=[];var p,t;for(m=0;m<k.length;m++)for(t=p=b.hierarchy.ya(k[m]);void 0!==p&&void 0!==p.parent;){if(p.parent.ordinal===b.ordinal){n.push(t);break}p=p.parent}this.ifa(g,
f,a,n,c)}else this.An(g.type)})}):(this.ra.Mf(f,b,a,c),this.An(l.i.Rd.qv))}ifa(f,b,a,c,d){if(0<c.length){var g=c.shift(),k=b.slice(0);k[k.length-1]=g.ordinal;f.lf=k;f.body=l.WA.UC(this.ua,this.ga).Mf(a,k,g);this.GH(f,()=>{this.ra.Mf(k,g,a,d);this.ifa(f,b,a,c,d)})}else this.An(f.type)}xo(f,b,a,c,d){var g=l.WA.UC(this.ua,this.ga);c=new l.LE(l.i.Rd.KW);this.Fa(c);this.rq.Cz(b,d,()=>{var k=new l.kF;k.type=l.i.Rd.KW;k.lf=f;k.Yt=a;k.body=g.Mf(a,f,b,d);this.GH(k,()=>{this.ra.xo(f,b,a,d);this.An(k.type)})},
k=>this.GG(k))}Ip(f,b,a,c){b.hierarchy.Y_(b);this.ra.Ip(f,b,a,c);f=new l.LE(l.i.Rd.MW);this.Fa(f);this.An(l.i.Rd.MW)}select(f=l.i.Rd.np){!e.model.Ga.uc.hv||e.model.Ga.uc.iq||e.model.Ga.uc.Gp||e.model.Ga.uc.By||0==(new Date).getTime()%378&&e.Za(e.model.Ga.pa.J(e.model.Ga.pa.vga),e.model.Ga.pa.J(e.model.Ga.pa.Sia));var b=new l.LE(f);this.Fa(b);this.ga.Gc?(this.ra.fs(),this.AHa()):(this.ra.select(),this.An(f))}Vt(f,b=!0){f=f instanceof l.O.Br?f:this.O.bx(f);if(e.model.C.F.YN){var a=u.OO.qR(f.ve,f.A);
0==a.Sw&&e.Za(a.errorMessage)}if(!this.ga.Gc||!f.Na||e.model.C.F.bu||this.ga.Da===l.i.qa.API){if(null==this.O.gd(f.A)){f.Na&&(a=new u.rJ,f.Xd=a.parse(f.ve),this.O instanceof l.external.pc.O.EI&&(f.Xd=u.nt.hH(f.Xd,this.O.Ba)));if(f.Na&&null==f.Xd)return;this.O.NH&&this.O.lk(f);null!=this.ua&&!this.ua.Uq.Hb(f.A)&&f.Km&&this.dea(f);b&&(this.O.Wd&&!this.ga.Gc||this.O.Wd&&this.ga.Da==e.u.i.qa.API||this.O.Wd&&this.ga.DM&&this.ga.Da==e.u.i.qa.Tc&&e.model.C.F.bu)&&this.refresh()}else{a=new u.rJ;f.Xd=a.parse(f.ve);
this.O instanceof l.external.pc.O.EI&&(f.Xd=u.nt.hH(f.Xd,this.O.Ba));if(f.Na&&null==f.Xd)return;b=this.O.gd(f.A);b.caption=f.caption;b.Op=f.Op;b.ve=f.ve;b.cl=f.cl;b.Xd=f.Xd;b.ho=f.ho;b.Km=f.Km;(this.ua.Uq.Hb(b.A)||b.Km)&&this.dea(b);(this.O.Wd&&!this.ga.Gc||this.O.Wd&&this.ga.Da==e.u.i.qa.API||this.ga.Da==e.u.i.qa.Tc&&e.model.C.F.bu)&&this.refresh()}this.bb()}}dea(f){let b=-1;const a=this.ua.hd();for(let c=0;c<a.length;c++)if(f.A==a[c].A){b=c;break}0<=b?(f.index=b,a[b]=f):(a.push(f),f.index=a.length);
this.ua.Zz(a);this.ua.z5();this.$ia(this.ua.Rb,f);this.$ia(this.ua.cc,f)}$ia(f,b){null!=f.Yf&&f.Yf.A==b.A&&(f.Yf=b)}Qz(f,b=!0){var a=this.O.gd(f);a&&a.Na&&(this.O.ZD(f),this.ua.ZD(f),b&&this.O.Wd&&this.refresh(),this.bb())}YD(){for(var f=0;f<this.O.Ba.length;){var b=this.O.Ba.ea(f);b.Na?this.Qz(b.A,!1):f++}this.O.Wd&&this.refresh();this.bb()}bb(){e.model.Ua.V().$a(e.model.Ua.GJ)}refresh(){this.O.Wd?(this.ga.Da==l.i.qa.EMPTY&&e.v(this.ua)&&this.uL(),this.filter()):this.ga.Da==l.i.qa.EMPTY&&this.uL()}gl(f,
b){(this.ua.kd||0<f.ev.length)&&f.Qm!=f.Ri&&(f.Wd=!1);if(!f.Se&&!f.Wd||null!=f.oc){0==this.lD.length&&this.rq.gl(f,c=>this.Xfa(c),c=>this.GG(c));this.lD.Ta(f.A,f);var a=null!=this.vH.getItem(f.A)?this.vH.getItem(f.A):[];a.push(b);this.vH.Ta(f.A,a)}else b(f)}Bk(f,b,a){this.rq.Bk(f,b,a,c=>this.GG(c))}nq(f,b,a){this.rq.ZB()?this.rq.nq(f,b,a,c=>this.GG(c)):(f=2<f.ta.length?this.NIa(f,b):this.MIa(f,b),a(f))}MIa(f,b){const a=[],c=f.Ri;let d;for(d=0;d<c;d++){if(f.Ad.ordinal==d)continue;const g=f.ya(d);void 0!==
g&&e.P.contains(g.caption,b)&&a.push(d)}return a}NIa(f,b){var a=[];this.wca(a,f.Ad,b);var c;for(c=0;c<a.length;c++)b=this.eea(a,f.ya(a[c]),c),c+=b;return a}eea(f,b,a){b=b.parent;var c=0;e.v(b)||b.Zb||(-1==f.indexOf(b.ordinal)&&(c++,f.splice(a,0,b.ordinal)),c+=this.eea(f,b,a));return c}wca(f,b,a){for(var c=b.children,d=c.length,g=b.hierarchy,k=0;k<d;k++)b=g.ya(c[k]),e.P.contains(b.caption,a)&&f.push(b.ordinal),this.wca(f,b,a)}Xfa(f){f.pw();f.Wd=!0;this.lD.removeItem(f.A);var b=this.vH.getItem(f.A);
if(null!=b)for(var a=0;a<b.length;a++)(0,b[a])(f);this.vH.removeItem(f.A);0<this.lD.length&&(f=this.lD.ea(0),null!=this.rq?this.rq.gl(f,c=>this.Xfa(c),c=>this.GG(c)):this.lD=null)}AHa(){if(this.ua.nb)this.An();else{var f=this.ua.wc(!0,!0,e.model.C.F.rc);this.f_=f.length;for(var b=0;b<f.length;b++){var a=f.ea(b);this.gl(a,()=>this.GFa())}}}GFa(){if(0==--this.f_){this.ga.Gc&&this.ua.L3();var f=new l.kF(l.i.Rd.np);f.body=l.WA.UC(this.ua,this.ga).select();this.GH(f,()=>{e.model.C.F.rc||this.ga.Da!=l.i.qa.ag&&
this.ga.Da!=l.i.qa.API?this.An(f.type):(e.Ca(!0,e.model.B.j.bg),this.jfa(()=>{this.kfa(()=>{this.jfa(()=>{this.kfa(()=>{e.Ca(!1);this.An(f.type)})})})}))})}}kfa(f){const b=new u.MJ;for(var a=this.ua.ce(l.i.ja.La).Ed,c=0;c<a.length;c++){var d=a[c];b.add((g,k)=>{var m=this.ua.yb.ea(k.length-1);if(m&&null!=m.oc){var n=m.ya(k[k.length-1]);null!=n&&this.ra.xo(k.slice(0,-1),n.parent,l.i.ja.La,m.gg)}this.ra.bi(k)?g():this.U3(k,l.i.ja.La,void 0,()=>{this.ra.expand(k,l.i.ja.La,void 0);g()})},d.slice(1))}a=
this.ua.ce(l.i.ja.Xa).Ed;for(c=0;c<a.length;c++)d=a[c],b.add((g,k)=>{var m=this.ua.Db.ea(k.length-1);if(m&&null!=m.oc){var n=m.ya(k[k.length-1]);null!=n&&this.ra.xo(k.slice(0,-1),n.parent,l.i.ja.Xa,m.gg)}this.ra.zk(k)?g():this.U3(k,l.i.ja.Xa,void 0,()=>{this.ra.expand(k,l.i.ja.Xa,void 0);g()})},d.slice(1));b.pg(f)}jfa(f){if(this.ga.Da!==l.i.qa.API||l.external.pc.O.ap.sM){for(var b=new u.MJ,a=this.ua.ce(l.i.ja.La).tf,c=0;c<a.length;c++)b.add((d,g)=>{var k=this.ua.yb.ea(g.length-3);if(e.v(k))d();else{var m=
k.Ib(g[1]);null==m?d():(g=g.slice(2),this.Ega(g,m,l.i.ja.La,()=>{this.ra.Mf(g,m,l.i.ja.La,void 0);d()}))}},a[c].slice(0));a=this.ua.ce(l.i.ja.Xa).tf;for(c=0;c<a.length;c++)b.add((d,g)=>{var k=this.ua.Db.ea(g.length-3).Ib(g[1]);null==k?d():(g=g.slice(2),this.Ega(g,k,l.i.ja.Xa,()=>{this.ra.Mf(g,k,l.i.ja.Xa,void 0);d()}))},a[c].slice(0));b.pg(f)}else f()}yha(f){e.Ce(()=>{e.model.Ua.V().$a(e.model.Ua.D6,null,f)},1)}Qd(f){this.rq.Qd(f);this.uL()}static dispose(){l.xJ.dispose();l.TX.dispose();l.external.Eb.cj.q9.dispose();
l.external.pc.H5.dispose();u.Cl.cancel();if(h.instance){h.instance.ua=null;try{h.instance.ra.fs()}catch(f){}h.instance.ra=null;try{h.instance.zn.cancel()}catch(f){}h.instance.zn=null;try{h.instance.rq.cancel()}catch(f){}h.instance.rq=null;try{h.instance.Qt.cancel()}catch(f){}h.instance.Qt=null;try{h.instance.O.clear()}catch(f){}h.instance.O=null;h.instance=null}}}l.Ra=h})(e.u||(e.u={}))})(q||(q={}));
(function(e){(function(l){class h extends x.Ma{constructor(){super("div");this.G.Ol()}kb(){this.G.html(e.model.Ga.pa.J(e.model.Ga.pa.nW));this.G.element.setAttribute("style",`z-index:1!important;left:${(l.Mb.gv-this.uf())/2}px!important;top:${(l.Mb.gD-this.xd())/2}px!important;color:#ffffff!important;position:absolute!important;pointer-events:none;display:block!important;font-size:60px!important;text-shadow:0 0 10px #000000 !important;text-align:center!important;opacity:0.2!important;`)}}l.Gqa=h})(e.K||
(e.K={}))})(q||(q={}));
(function(e){class l{constructor(f,b){this.FT=!1;this.pc=null;this.I_=[];this.K_=[];this.J_=[];l.instance=this;this.pc=b;e.v(f)&&(f={});if(0!=u.VBa()||0!=confirm("Flexmonster Pivot Table is not completely supported by this version of browser. Please update your browser. Continue anyway?")){var a="flexmonster/";void 0!==f.componentFolder&&(a=f.componentFolder);u.ey.g_=a;u.Zn.NZ=a;var c;f.container instanceof HTMLElement?c=f.container:e.v(f.container)||(c=document.getElementById("#"==f.container.substr(0,
1)?f.container.substring(1):f.container));null==c?(f=0==e.ia(f.container)?"Flexmonster:\nUnable to create the component. DOM element with id '"+f.container+"' is not found.":"Flexmonster:\nUnable to create the component. DOM element is null.",console.error(f),alert(f)):(a=this.Hda(c),e.v(a)||void 0===a.flexmonster||(a.flexmonster.dispose(),a.flexmonster=void 0),this.ka=e.model.Va.V(),this.ka.Ia.N(e.model.jc.nd.hF,()=>this.NFa()),this.ka.Ia.N(e.model.jc.nd.Tx,()=>this.n3()),this.ka.Ia.N(e.model.jc.nd.Xn,
()=>this.MD()),this.ka.Ia.N(e.model.jc.nd.HJ,()=>this.aGa()),this.ka.Ia.N(e.model.jc.nd.Kr,()=>this.aN()),this.ka.Ia.N(e.model.jc.nd.lF,()=>this.x3()),this.ka.Ia.N(e.model.jc.nd.ZE,()=>this.l3()),this.ka.Ia.N(e.model.jc.nd.QI,()=>this.aq()),this.ka.Ia.N(e.model.jc.nd.NI,d=>this.Ofa(d)),this.ka.Ia.N(e.model.jc.nd.OI,()=>this.L2()),this.ka.Ia.N(e.model.jc.nd.Ev,()=>this.mr()),this.ka.Ia.N(e.model.jc.nd.nX,()=>this.pFa()),this.ka.Ia.N(e.model.jc.nd.A8,()=>this.$fa()),this.ka.Ia.N(e.model.jc.nd.z8,d=>
this.Zfa(d)),this.ka.Ia.N(e.model.jc.nd.$E,()=>this.oFa()),this.ka.Ia.N(e.model.jc.nd.aF,()=>this.RH()),this.ka.Ia.N(e.model.jc.nd.qJ,()=>this.rFa()),this.ka.Ia.N(e.model.jc.nd.PW,()=>this.P2()),this.ka.Ia.N(e.model.jc.nd.XA,()=>this.eGa()),this.ka.Ia.N(e.model.jc.nd.Pk,()=>this.LD()),this.ka.Ia.N(e.model.jc.nd.vt,d=>this.u3(d)),this.ka.Ia.N(e.model.jc.nd.ii,()=>this.w3()),this.ka.N(h.VW,()=>this.KEa()),this.ka.N(h.oh,()=>this.IEa()),this.ka.N(h.CX,()=>this.TFa()),this.ka.N(h.VA,()=>this.SFa()),this.Ig=
new e.K.Mb(x.Ea.Vb(c),f),this.Ig.N(e.K.Ni.Jx,d=>this.ODa(d)),this.Ig.N(e.K.Ni.GX,()=>this.$Fa()),this.ka.pD(f),this.Xsa(f.accessibility),this.FT=!0,this.Hda(this.Ig.gf.element).flexmonster=b,this.ka.Ia.$a(e.model.jc.nd.t6))}}Xsa(f){e.v(f)||"object"!==typeof f||(e.v(f.keyboardMode)||this.Ig.Nha(!0===f.keyboardMode),e.v(f.highContrastTheme)||this.Ig.jJa(f.highContrastTheme))}Hda(f){return void 0===f.uielement?f:f.uielement}get kc(){return this.ka&&this.ka.Ia&&this.ka.Ia.kc}get YT(){return this.ka&&
this.ka.Ia&&this.ka.Ia.YT}get bU(){return this.ka&&this.ka.Ia&&this.ka.Ia.bU}iha(){e.Ce(()=>{for(;0<this.J_.length;)this.J_.shift().call(this)},1)}sd(f,b=10){e.Ce(()=>{0==b?this.I_.push(f):1==b?this.K_.push(f):this.J_.push(f)},1)}NFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.hF))}n3(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Tx))}MD(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Xn))}aGa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.HJ))}aN(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Kr))}x3(){for(this.ka&&
this.ka.Ia&&this.ka.Ia.zf==e.model.jc.mp.INIT&&e.Ce(()=>{e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.L8))},1);0<this.I_.length;)this.I_.shift().call(this)}oFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.$E))}RH(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.aF))}rFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.qJ))}l3(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.ZE))}aq(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.QI))}L2(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.OI))}Ofa(f){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.NI,
f.data))}mr(){for(;0<this.K_.length;)this.K_.shift().call(this)}pFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.T7))}$fa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.C8))}Zfa(f){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.B8,f.data))}P2(){}eGa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.XA))}LD(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Pk));e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.k9))}u3(f){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.vt,f.data))}w3(){}ODa(f){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.Jx,
f.data))}$Fa(){this.kc&&(this.ka.Ia.zf!==e.model.jc.mp.Oc?(this.ka.Ia.zf=e.model.jc.mp.Oc,e.Ce(()=>{this.iha();e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.ii))},1)):e.Ce(()=>{this.iha()},1))}KEa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.W6))}IEa(){e.Ce(()=>{e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.oh))},1)}TFa(){e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.F8))}SFa(){e.Ce(()=>{e.model.Ua.V().Fa(new e.model.cd(e.model.Ua.VA))},1)}B0(){return this.kc?this.ka.B0():null}F0(f){return this.kc?this.ka.F0(f):
null}aR(f){this.kc?null!=f&&this.ka.aR(f):this.sd(()=>this.aR(f))}lV(f){this.kc?this.ka.lV(f):this.sd(()=>this.lV(f))}kV(){this.kc?this.ka.kV():this.sd(()=>this.kV())}open(){this.ka.open()}load(f,b){this.ka.load(f,b)}ws(f="object"){let b="object";f instanceof Object?f.hasOwnProperty("type")&&(b=f.type,b=b.toLowerCase()):f&&(b=f.toLowerCase());f=this.ka.ws(f instanceof Object?f:{});return e.v(f)||f.nb?null:"xmlstring"==b?z.ba.Ic(f.Yo(),!0):f.Qa()}ux(f){if(this.kc){if("string"==typeof f)try{if(-1<f.indexOf("<config>")){var b=
z.ba.create(f);f=e.model.hb.Yx.wk(b)}else f=JSON.parse(f)}catch(a){e.Za(e.model.B.j.i8,e.model.B.j.Aa,e.xb.Aa);return}this.ka.ux({report:f})}else this.sd(()=>this.ux(f))}getData(f,b,a){this.kc?this.ka.getData(f,b,a):this.sd(()=>this.getData(f,b,a))}save(f={filename:"report.json"},b=null,a=null,c=null,d=!1){var g=a;this.kc?(f instanceof Object&&f.hasOwnProperty("callbackHandler")&&(g=f.callbackHandler),this.ka.save(f,b,null!=g?(k,m)=>g(k,m):null,c,d)):this.sd(()=>this.save(f,b,a,c,d))}Qd(f,b){null!=
f&&(e.v(b)?b={partial:!1}:"boolean"===typeof b&&(b={partial:b}),this.YT?this.ka.Qd(f,b):this.sd(()=>this.Qd(f,b),0))}wG(f){null!=f&&(this.YT?this.ka.wG(f):this.sd(()=>this.wG(f),0))}Csa(f){this.Qd({data:f})}Vt(f){this.kc?null!=f&&this.ka.Vt(f):this.sd(()=>this.Vt(f))}Qz(f){this.kc?this.ka.Qz(f):this.sd(()=>this.Qz(f))}YD(){this.kc?this.ka.YD():this.sd(()=>this.YD())}clear(){this.ka&&this.ka.clear()}dispose(){e.Dn.dispose();e.vk.dispose();e.JL.dispose();e.lqa.dispose();u.Zn.dispose();this.pc=null;
this.ka.dispose();this.Ig.dispose();this.ka=this.Ig=null;l.instance=null;e.model.Ua.dispose()}refresh(){this.kc?this.Ig.kb():this.sd(()=>this.refresh())}NV(){this.kc?this.Ig.NV():this.sd(()=>this.NV())}EN(f="column",b=!1){this.kc?this.Ig.EN(f,b):this.sd(()=>this.EN(f,b))}OV(f="column",b="bottom",a=!1){this.kc?this.Ig.OV(f,b,a):this.sd(()=>this.OV(f,b,a))}kS(f=!0){this.kc?this.ka.kS(f):this.sd(()=>this.kS(f))}Cw(f){this.kc?this.Ig.Cw(f):this.sd(()=>this.Cw(f))}BR(){this.kc?this.ka.BR():this.sd(()=>
this.BR())}ow(f){this.kc?this.Ig.ow(f):this.sd(()=>this.ow(f))}print(f=null){this.kc?this.ka.print(e.model.Rs.J8.zb(f)):this.sd(()=>this.print(f))}tk(f,b=null,a=null){if(this.kc){if(null!=f){var c=null!=a?(...d)=>a.apply(null,d):null;this.ka.tk(f,e.model.Ac.b7.zb(b),c)}}else this.sd(()=>this.tk(f,b,a))}Hm(f){return this.kc?this.ka.Hm(f):null}UH(f){this.kc&&this.Ig.JGa(f)}em(f,b){this.kc?this.ka.em(f,b):this.sd(()=>this.em(f,b))}eu(f){this.kc?this.ka.eu(f):this.sd(()=>this.eu(f))}on(f,b){e.model.Ua.V().N(f,
b)}KDa(f,b){null==b?e.model.Ua.V().Yd(f):e.model.Ua.V().sb(f,b)}nH(){return this.kc?this.ka.nH():null}l_(f){new Promise(b=>{this.FT?b(f()):this.ka.Ia.N(e.model.jc.nd.t6,()=>{b(f())})})}vG(f){return new Promise(b=>{this.kc?b(f()):this.ka.Ia.N(e.model.jc.nd.ii,()=>{b(f())})})}BAa(){return this.vG(()=>this.ka.nH())}cH(){return this.kc?this.ka.cH():null}pza(){return this.vG(()=>this.ka.cH())}$C(){return this.kc?this.ka.$C():null}nAa(){return this.vG(()=>this.ka.$C())}hd(){return this.kc?this.ka.hd():
null}$za(){return this.vG(()=>this.ka.hd())}us(){return this.kc?this.ka.us():null}bza(){return this.vG(()=>this.ka.us())}qM(){return this.Ig.qM}pM(){return this.Ig.pM}UV(f){this.bU?this.ka.UV(f):this.sd(()=>this.UV(f),1)}XV(f,b,a,c){this.kc?this.ka.XV(f,b,a,c):this.sd(()=>this.XV(f,b,a,c))}YV(f,b){this.bU?this.ka.YV(f,b):this.sd(()=>this.YV(f,b),1)}nE(f,b,a=null){this.kc?this.ka.nE(f,b):this.sd(()=>this.nE(f,b,a))}DV(f){this.kc?this.ka.DV(f):this.sd(()=>this.DV(f))}fN(f,b){this.kc?this.Ig.fN(f,b):
this.sd(()=>this.fN(f,b))}Z0(f){return this.kc?this.ka.Z0(f):null}N0(){return this.kc?this.ka.N0():null}Kw(){return this.kc?this.ka.Kw():null}qq(f){e.v(f)||(this.kc?this.ka.qq(f):this.sd(()=>this.qq(f)))}Pj(f,b,a){if(this.kc)return this.ka.Pj(f,b,a);this.sd(()=>this.Pj(f,b,a))}W0(f,b){return this.ka.W0(f,b)}eD(f,b){if(this.kc)return this.ka.eD(f,b);this.sd(()=>this.eD(f,b))}TAa(f){return new Promise(b=>{this.ka.tH(f,()=>{this.ka.eD(f,a=>b(a))})})}tH(f,b){this.kc?this.ka.tH(f,b):this.sd(()=>this.tH(f,
b))}SAa(f){return new Promise(b=>{this.ka.tH(f,a=>b(a))})}lM(f,b,a){this.kc?this.ka.lM(f,b,a):this.sd(()=>this.lM(f,b,a))}QAa(f,b){return new Promise(a=>{this.ka.lM(f,b,c=>a(c))})}mM(f,b,a,c){this.kc?this.ka.mM(f,b,a,c):this.sd(()=>this.mM(f,b,a,c))}RAa(f,b,a){return new Promise(c=>{this.ka.mM(f,b,a,d=>c(d))})}xR(f,b,a,c=null,d=null){this.kc?this.ka.xR(f,b,c,d,a):this.sd(()=>this.xR(f,b,c,d,a))}CN(f){return this.ka.CN(f)}rN(f){this.kc?null!=f&&this.ka.rN(e.model.hb.pp.zb(f)):this.sd(()=>this.rN(f))}WG(){return this.kc?
this.ka.WG():null}aza(){return this.vG(()=>this.ka.WG())}oV(f){this.kc?this.ka.oV(f):this.sd(()=>this.oV(f))}Yh(f,b){return this.kc?this.ka.Yh(f,b):null}jE(f,b,a){this.kc?null!=f&&this.ka.jE(f,b,a):this.sd(()=>this.jE(f,b))}kg(f,b){return this.kc?this.Ig.kg(f,b):null}pH(){return this.kc?this.Ig.pH():null}$z(f,b){this.kc?this.Ig.$z(f,b):this.sd(()=>this.$z(f,b))}rH(){return this.kc?this.ka.rH():null}LV(f){this.kc?this.ka.LV(f):this.sd(()=>this.LV(f))}$D(){this.l_(()=>this.Ig.$D())}VU(){this.l_(()=>
this.Ig.VU())}YK(){this.l_(()=>this.Ig.YK())}twa(f){e.K.Y.X.ke.uw=f;this.FT&&this.refresh()}Jl(f){e.K.Bd.ov.tC=f;this.FT&&this.refresh()}uwa(f){e.K.Y.rO.oL=f}swa(f){e.u.external.pc.oA.nL=f}K0(f,b){this.ka.K0(f,b)}sr(f){this.kc?this.Ig.sr(f):this.sd(()=>this.sr(f))}Us(f){this.kc?this.Ig.Us(f):this.sd(()=>this.Us(f))}lS(f,b,a){this.kc?this.Ig.lS(f,b,a):this.sd(()=>this.lS(f,b,a))}CR(f,b,a){this.kc?this.Ig.CR(f,b,a):this.sd(()=>this.CR(f,b,a))}hS(f,b,a,c){this.kc?this.Ig.hS(f,b,a,c):this.sd(()=>this.hS(f,
b,a,c))}gS(f,b,a,c){this.kc?this.Ig.gS(f,b,a,c):this.sd(()=>this.gS(f,b,a,c))}}l.ft="2.9.22";l.tW="100593094972273";e.ph=l;class h{}h.CX="print";h.VA="printcomplete";h.VW="export";h.oh="exportcomplete";e.vg=h})(q||(q={}));
function PivotApi(e){q.v(window.flexmonster)||(window.flexmonster=null);var l={version:q.ph.ft},h=new q.ph(e,l);l.alert=b=>{if(void 0!=b.message&&""!=b.message||void 0!=b.title&&""!=b.title){var a=void 0!=b.message?q.model.Tb.valid(b.message)?b.message:q.model.Tb.validate(b.message):"",c=void 0!=b.title?q.model.Tb.valid(b.title)?b.title:q.model.Tb.validate(b.title):"",d=b.type==q.xb.vl||b.type==q.xb.Ym||b.type==q.xb.Aa||b.type==q.xb.RO?b.type:q.xb.vl,g=null,k=null;if(void 0!=b.buttons)for(var m=0;m<
b.buttons.length;m++){var n=b.buttons[m],p=n.label;p=q.model.Tb.valid(p)?p:q.model.Tb.validate(p);null==g&&(g=[]);g.push(p);n="function"==typeof n.handler?n.handler:null;null==k&&(k=[]);k.push(n)}q.Za(a,c,d,g,k,void 0==b.blocking||1!=b.blocking&&0!=b.blocking?!1:b.blocking)}};l.openCalculatedValueEditor=(b,a)=>h.fN(b,a);l.getAllConditions=()=>h.B0();l.getCondition=b=>h.F0(b);l.addCondition=b=>h.aR(b);l.removeCondition=b=>h.lV(b);l.removeAllConditions=()=>h.kV();l.open=()=>h.open();l.load=(b,a)=>h.load(b,
a);l.getReport=(b="object")=>h.ws(b);l.setReport=b=>h.ux(b);l.getData=(b,a,c)=>h.getData(b,a,c);l.save=(b={filename:"report.json"},a=null,c=null,d=null,g=!1)=>h.save(b,a,c,d,g);l.updateData=(b,a)=>h.Qd(b,a);l.connectTo=b=>h.wG(b);l.addJSON=b=>h.Csa(b);l.addCalculatedMeasure=b=>h.Vt(b);l.removeCalculatedMeasure=b=>h.Qz(b);l.removeAllCalculatedMeasures=()=>h.YD();l.clear=()=>h.clear();l.dispose=()=>{q.v(window.flexmonster)||(window.flexmonster=null);h.dispose()};l.refresh=()=>h.refresh();l.showGrid=
()=>h.NV();l.showCharts=(b="column",a=!1)=>h.EN(b,a);l.showChart=(b="column",a=!1)=>h.EN(b,a);l.showGridAndCharts=(b="column",a="bottom",c=!1)=>h.OV(b,a,c);l.expandAllData=(b=!0)=>h.kS(b);l.expandData=b=>h.Cw(b);l.collapseAllData=()=>h.BR();l.collapseData=b=>h.ow(b);l.expandCell=(b,a,c)=>h.lS(b,a,c);l.collapseCell=(b,a,c)=>h.CR(b,a,c);l.drillUpCell=(b,a,c,d)=>h.hS(b,a,c,d);l.drillDownCell=(b,a,c,d)=>h.gS(b,a,c,d);l.print=(b=null)=>h.print(b);l.exportTo=(b,a=null,c=null)=>h.tk(b,a,c);l.openFilter=
b=>h.UH(b);l.getFilter=b=>h.Hm(b);l.setFilter=(b,a)=>h.em(b,a);l.clearFilter=b=>h.eu(b);l.on=(b,a)=>h.on(b,a);l.off=(b,a)=>h.KDa(b,a);l.getRows=()=>h.nH();l.getRowsAsync=()=>h.BAa();l.getColumns=()=>h.cH();l.getColumnsAsync=()=>h.pza();l.getPages=()=>h.$C();l.getReportFilters=()=>h.$C();l.getReportFiltersAsync=()=>h.nAa();l.getMeasures=()=>h.hd();l.getMeasuresAsync=()=>h.$za();l.getAllMeasures=()=>h.us();l.getAllMeasuresAsync=()=>h.bza();l.sortFieldsList=b=>h.UV(b);l.sortValues=(b,a,c,d)=>h.XV(b,
a,c,d);l.sortingMethod=(b,a)=>h.YV(b,a);l.setSort=(b,a,c=null)=>h.nE(b,a,c);l.getSort=b=>h.Z0(b);l.setFlatSort=b=>h.DV(b);l.getFlatSort=()=>h.N0();l.getOptions=()=>h.Kw();l.setOptions=b=>h.qq(b);l.getMembers=(b,a,c)=>h.Pj(b,a,c);l.getMembersAsync=(b,a)=>h.W0(b,a);l.gridRowCount=()=>h.qM();l.gridColumnCount=()=>h.pM();l.getXMLAProviderName=(b,a)=>h.eD(b,a);l.getXMLAProviderNameAsync=b=>h.TAa(b);l.getXMLADataSources=(b,a)=>h.tH(b,a);l.getXMLADataSourcesAsync=b=>h.SAa(b);l.getXMLACatalogs=(b,a,c)=>h.lM(b,
a,c);l.getXMLACatalogsAsync=(b,a)=>h.QAa(b,a);l.getXMLACubes=(b,a,c,d)=>h.mM(b,a,c,d);l.getXMLACubesAsync=(b,a,c)=>h.RAa(b,a,c);l.clearXMLACache=(b,a,c,d=null,g=null)=>h.xR(b,a,c,d,g);l.shareReport=b=>h.CN(b);l.getElasticIndices=(b,a)=>h.K0(b,a);l.runQuery=b=>h.rN(b);l.getAllHierarchies=()=>h.WG();l.getAllHierarchiesAsync=()=>h.aza();l.replaceHierarchyCaption=b=>h.oV(b);l.getFormat=(b,a)=>h.Yh(b,a);l.setFormat=(b,a,c)=>h.jE(b,a,c);l.getCell=(b,a)=>h.kg(b,a);l.getSelectedCell=()=>h.pH();l.setSelectedCell=
(b,a)=>h.$z(b,a);l.removeSelection=()=>h.$D();l.getTableSizes=()=>h.rH();l.setTableSizes=b=>h.LV(b);l.openFieldsList=()=>h.VU();l.closeFieldsList=()=>h.YK();l.scrollToRow=b=>h.sr(b);l.scrollToColumn=b=>h.Us(b);l.customizeCell=b=>h.twa(b);l.customizeChartElement=b=>h.Jl(b);l.customizeContextMenu=b=>h.uwa(b);l.customizeAPIRequest=b=>h.swa(b);if(void 0!==window.FlexmonsterHighcharts){l.highcharts={instance:l};for(var f in window.FlexmonsterHighcharts)l.highcharts[f]=window.FlexmonsterHighcharts[f]}if(void 0!==
window.FlexmonsterFusioncharts)for(f in l.fusioncharts={instance:l},window.FlexmonsterFusioncharts)l.fusioncharts[f]=window.FlexmonsterFusioncharts[f];if(void 0!==window.FlexmonsterGooglecharts)for(f in l.googlecharts={instance:l},window.FlexmonsterGooglecharts)l.googlecharts[f]=window.FlexmonsterGooglecharts[f];if(void 0!==window.FlexmonsterAmcharts)for(f in l.amcharts={instance:l},window.FlexmonsterAmcharts)l.amcharts[f]=window.FlexmonsterAmcharts[f];q.v(window.flexmonster)||q.v(window.flexmonster.embedPivotComponent)||
(l.embedPivotComponent=window.flexmonster.embedPivotComponent);return window.flexmonster=l};
PivotApi["libsIncluded"] = true;;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)}};
/** @license canvg.js v2.0.0 | Copyright (c) 2010 - present Gabe Lerner (gabelerner@gmail.com) - https://github.com/canvg/canvg | MIT License [https://github.com/canvg/canvg/blob/master/LICENSE] */
!function(t,e){t.canvg=e(t.RGBColor,t.StackBlur)}(window,function(y,v){"use strict";var t;return y=y&&y.hasOwnProperty("default")?y.default:y,v=v&&v.hasOwnProperty("default")?v.default:v,function(t){var l;t.exports;(l=window).DOMParser=window.DOMParser;var c=l.document;function d(t,e){var i;return(i=c.createElement("canvas")).width=t,i.height=e,i}var f,p=function(t,e,i){if(null!=t||null!=e||null!=i){var n=m(i||{});"string"==typeof t&&(t=c.getElementById(t)),null!=t.svg&&t.svg.stop(),t.childNodes&&1==t.childNodes.length&&"OBJECT"==t.childNodes[0].nodeName||(t.svg=n);var s=t.getContext("2d");void 0!==e.documentElement?n.loadXmlDoc(s,e):"<"==e.substr(0,1)?n.loadXml(s,e):n.load(s,e)}else for(var a=c.querySelectorAll("svg"),r=0;r<a.length;r++){var o=a[r],h=c.createElement("canvas");if(void 0!==o.clientWidth&&void 0!==o.clientHeight)h.width=o.clientWidth,h.height=o.clientHeight;else{var l=o.getBoundingClientRect();h.width=l.width,h.height=l.height}o.parentNode.insertBefore(h,o),o.parentNode.removeChild(o);var u=c.createElement("div");u.appendChild(o),p(h,u.innerHTML)}};"undefined"==typeof Element||(void 0!==Element.prototype.matches?f=function(t,e){return t.matches(e)}:void 0!==Element.prototype.webkitMatchesSelector?f=function(t,e){return t.webkitMatchesSelector(e)}:void 0!==Element.prototype.mozMatchesSelector?f=function(t,e){return t.mozMatchesSelector(e)}:void 0!==Element.prototype.msMatchesSelector?f=function(t,e){return t.msMatchesSelector(e)}:void 0!==Element.prototype.oMatchesSelector?f=function(t,e){return t.oMatchesSelector(e)}:("function"!=typeof jQuery&&"function"!=typeof Zepto||(f=function(t,e){return $(t).is(e)}),void 0===f&&"undefined"!=typeof Sizzle&&(f=Sizzle.matchesSelector)));var e=/(\[[^\]]+\])/g,i=/(#[^\s\+>~\.\[:]+)/g,a=/(\.[^\s\+>~\.\[:]+)/g,r=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,o=/(:[\w-]+\([^\)]*\))/gi,h=/(:[^\s\+>~\.\[:]+)/g,u=/([^\s\+>~\.\[:]+)/g;function P(n){var s=[0,0,0],t=function(t,e){var i=n.match(t);null!=i&&(s[e]+=i.length,n=n.replace(t," "))};return n=(n=n.replace(/:not\(([^\)]*)\)/g,"     $1 ")).replace(/{[\s\S]*/gm," "),t(e,1),t(i,0),t(a,1),t(r,2),t(o,1),t(h,1),n=(n=n.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),t(u,2),s.join("")}function m(s){var D={opts:s,FRAMERATE:30,MAX_VIRTUAL_PIXELS:3e4,rootEmSize:12,emSize:12,log:function(){}};D.init=function(t){var e=0;D.UniqueId=function(){return"canvg"+ ++e},D.Definitions={},D.Styles={},D.StylesSpecificity={},D.Animations=[],D.Images=[],D.ctx=t,D.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},D.init(),D.ImagesLoaded=function(){for(var t=0;t<D.Images.length;t++)if(!D.Images[t].loaded)return!1;return!0},D.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},D.compressSpaces=function(t){return t.replace(/(?!\u3000)\s+/gm," ")},D.ajax=function(t){var e;return(e=l.XMLHttpRequest?new l.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"))?(e.open("GET",t,!1),e.send(null),e.responseText):null},D.parseXml=function(e){if("undefined"!=typeof Windows&&void 0!==Windows.Data&&void 0!==Windows.Data.Xml){var t=new Windows.Data.Xml.Dom.XmlDocument,i=new Windows.Data.Xml.Dom.XmlLoadSettings;return i.prohibitDtd=!1,t.loadXml(e,i),t}if(!l.DOMParser)return e=e.replace(/<!DOCTYPE svg[^>]*>/,""),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e),t;try{var n=s.xmldom?new l.DOMParser(s.xmldom):new l.DOMParser;return n.parseFromString(e,"image/svg+xml")}catch(t){return(n=s.xmldom?new l.DOMParser(s.xmldom):new l.DOMParser).parseFromString(e,"text/xml")}},D.Property=function(t,e){this.name=t,this.value=e},D.Property.prototype.getValue=function(){return this.value},D.Property.prototype.hasValue=function(){return null!=this.value&&""!==this.value},D.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},D.Property.prototype.valueOrDefault=function(t){return this.hasValue()?this.value:t},D.Property.prototype.numValueOrDefault=function(t){return this.hasValue()?this.numValue():parseFloat(t)},D.Property.prototype.addOpacity=function(t){var e=this.value;if(null!=t.value&&""!=t.value&&"string"==typeof this.value){var i=new y(this.value);i.ok&&(e="rgba("+i.r+", "+i.g+", "+i.b+", "+t.numValue()+")")}return new D.Property(this.name,e)},D.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=this.value),D.Definitions[t]},D.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},D.Property.prototype.getFillStyleDefinition=function(t,e){var i=this.getDefinition();if(null!=i&&i.createGradient)return i.createGradient(D.ctx,t,e);if(null!=i&&i.createPattern){if(i.getHrefAttribute().hasValue()){var n=i.attribute("patternTransform");i=i.getHrefAttribute().getDefinition(),n.hasValue()&&(i.attribute("patternTransform",!0).value=n.value)}return i.createPattern(D.ctx,t,e)}return null},D.Property.prototype.getDPI=function(){return 96},D.Property.prototype.getREM=function(){return D.rootEmSize},D.Property.prototype.getEM=function(){return D.emSize},D.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},D.Property.prototype.isPixels=function(){if(!this.hasValue())return!1;var t=this.value+"";return!!t.match(/px$/)||!!t.match(/^[0-9]+$/)},D.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var i=this.value+"";if(i.match(/rem$/))return this.numValue()*this.getREM(t);if(i.match(/em$/))return this.numValue()*this.getEM(t);if(i.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(i.match(/px$/))return this.numValue();if(i.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(i.match(/pc$/))return 15*this.numValue();if(i.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(i.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(i.match(/in$/))return this.numValue()*this.getDPI(t);if(i.match(/%$/))return this.numValue()*D.ViewPort.ComputeSize(t);var n=this.numValue();return e&&n<1?n*D.ViewPort.ComputeSize(t):n},D.Property.prototype.toMilliseconds=function(){return this.hasValue()?(this.value+"").match(/ms$/)?this.numValue():1e3*this.numValue():0},D.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/deg$/)?this.numValue()*(Math.PI/180):t.match(/grad$/)?this.numValue()*(Math.PI/200):t.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var t={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return D.Property.prototype.toTextBaseline=function(){return this.hasValue()?t[this.value]:null},D.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(t,e,i,n,s,a){var r=null!=a?this.Parse(a):this.CreateFont("","","","","",D.ctx.font);return{fontFamily:s=s||r.fontFamily,fontSize:n||r.fontSize,fontStyle:t||r.fontStyle,fontWeight:i||r.fontWeight,fontVariant:e||r.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var r=this;this.Parse=function(t){for(var e={},i=D.trim(D.compressSpaces(t||"")).split(" "),n={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},s="",a=0;a<i.length;a++)n.fontStyle||-1==r.Styles.indexOf(i[a])?n.fontVariant||-1==r.Variants.indexOf(i[a])?n.fontWeight||-1==r.Weights.indexOf(i[a])?n.fontSize?"inherit"!=i[a]&&(s+=i[a]):("inherit"!=i[a]&&(e.fontSize=i[a].split("/")[0]),n.fontStyle=n.fontVariant=n.fontWeight=n.fontSize=!0):("inherit"!=i[a]&&(e.fontWeight=i[a]),n.fontStyle=n.fontVariant=n.fontWeight=!0):("inherit"!=i[a]&&(e.fontVariant=i[a]),n.fontStyle=n.fontVariant=!0):("inherit"!=i[a]&&(e.fontStyle=i[a]),n.fontStyle=!0);return""!=s&&(e.fontFamily=s),e}},D.ToNumberArray=function(t){for(var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[],i=0;i<e.length;i++)e[i]=parseFloat(e[i]);return e},D.Point=function(t,e){this.x=t,this.y=e},D.Point.prototype.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)},D.Point.prototype.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4],i=this.x*t[1]+this.y*t[3]+t[5];this.x=e,this.y=i},D.CreatePoint=function(t){var e=D.ToNumberArray(t);return new D.Point(e[0],e[1])},D.CreatePath=function(t){for(var e=D.ToNumberArray(t),i=[],n=0;n<e.length;n+=2)i.push(new D.Point(e[n],e[n+1]));return i},D.BoundingBox=function(t,e,i,n){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.x=function(){return this.x1},this.y=function(){return this.y1},this.width=function(){return this.x2-this.x1},this.height=function(){return this.y2-this.y1},this.addPoint=function(t,e){null!=t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,i,n,s,a){var r=t+2/3*(i-t),o=e+2/3*(n-e),h=r+1/3*(s-t),l=o+1/3*(a-e);this.addBezierCurve(t,e,r,h,o,l,s,a)},this.addBezierCurve=function(t,e,i,n,s,a,r,o){var h=[t,e],l=[i,n],u=[s,a],c=[r,o];this.addPoint(h[0],h[1]),this.addPoint(c[0],c[1]);for(var f=0;f<=1;f++){var p=function(t){return Math.pow(1-t,3)*h[f]+3*Math.pow(1-t,2)*t*l[f]+3*(1-t)*Math.pow(t,2)*u[f]+Math.pow(t,3)*c[f]},d=6*h[f]-12*l[f]+6*u[f],m=-3*h[f]+9*l[f]-9*u[f]+3*c[f],y=3*l[f]-3*h[f];if(0!=m){var v=Math.pow(d,2)-4*y*m;if(!(v<0)){var g=(-d+Math.sqrt(v))/(2*m);0<g&&g<1&&(0==f&&this.addX(p(g)),1==f&&this.addY(p(g)));var x=(-d-Math.sqrt(v))/(2*m);0<x&&x<1&&(0==f&&this.addX(p(x)),1==f&&this.addY(p(x)))}}else{if(0==d)continue;var b=-y/d;0<b&&b<1&&(0==f&&this.addX(p(b)),1==f&&this.addY(p(b)))}}},this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2},this.addPoint(t,e),this.addPoint(i,n)},D.Transform=function(t){var e=this;this.Type={},this.Type.translate=function(t){this.p=D.CreatePoint(t),this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)},this.unapply=function(t){t.translate(-1*this.p.x||0,-1*this.p.y||0)},this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},this.Type.rotate=function(t){var e=D.ToNumberArray(t);this.angle=new D.Property("angle",e[0]),this.cx=e[1]||0,this.cy=e[2]||0,this.apply=function(t){t.translate(this.cx,this.cy),t.rotate(this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.unapply=function(t){t.translate(this.cx,this.cy),t.rotate(-1*this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.applyToPoint=function(t){var e=this.angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]),t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},this.Type.scale=function(t){this.p=D.CreatePoint(t),this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)},this.unapply=function(t){t.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)},this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},this.Type.matrix=function(t){this.m=D.ToNumberArray(t),this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.unapply=function(t){var e=this.m[0],i=this.m[2],n=this.m[4],s=this.m[1],a=this.m[3],r=this.m[5],o=1/(e*(1*a-0*r)-i*(1*s-0*r)+n*(0*s-0*a));t.transform(o*(1*a-0*r),o*(0*r-1*s),o*(0*n-1*i),o*(1*e-0*n),o*(i*r-n*a),o*(n*s-e*r))},this.applyToPoint=function(t){t.applyTransform(this.m)}},this.Type.SkewBase=function(t){this.base=e.Type.matrix,this.base(t),this.angle=new D.Property("angle",t)},this.Type.SkewBase.prototype=new this.Type.matrix,this.Type.skewX=function(t){this.base=e.Type.SkewBase,this.base(t),this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]},this.Type.skewX.prototype=new this.Type.SkewBase,this.Type.skewY=function(t){this.base=e.Type.SkewBase,this.base(t),this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]},this.Type.skewY.prototype=new this.Type.SkewBase,this.transforms=[],this.apply=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].apply(t)},this.unapply=function(t){for(var e=this.transforms.length-1;0<=e;e--)this.transforms[e].unapply(t)},this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].applyToPoint(t)};for(var i=D.trim(D.compressSpaces(t)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/),n=0;n<i.length;n++)if("none"!==i[n]){var s=D.trim(i[n].split("(")[0]),a=i[n].split("(")[1].replace(")",""),r=this.Type[s];if(void 0!==r){var o=new r(a);o.type=s,this.transforms.push(o)}}},D.AspectRatio=function(t,e,i,n,s,a,r,o,h,l){var u=(e=(e=D.compressSpaces(e)).replace(/^defer\s/,"")).split(" ")[0]||"xMidYMid",c=e.split(" ")[1]||"meet",f=i/n,p=s/a,d=Math.min(f,p),m=Math.max(f,p);"meet"==c&&(n*=d,a*=d),"slice"==c&&(n*=m,a*=m),h=new D.Property("refX",h),l=new D.Property("refY",l),h.hasValue()&&l.hasValue()?t.translate(-d*h.toPixels("x"),-d*l.toPixels("y")):(u.match(/^xMid/)&&("meet"==c&&d==p||"slice"==c&&m==p)&&t.translate(i/2-n/2,0),u.match(/YMid$/)&&("meet"==c&&d==f||"slice"==c&&m==f)&&t.translate(0,s/2-a/2),u.match(/^xMax/)&&("meet"==c&&d==p||"slice"==c&&m==p)&&t.translate(i-n,0),u.match(/YMax$/)&&("meet"==c&&d==f||"slice"==c&&m==f)&&t.translate(0,s-a)),"none"==u?t.scale(f,p):"meet"==c?t.scale(d,d):"slice"==c&&t.scale(m,m),t.translate(null==r?0:-r,null==o?0:-o)},D.Element={},D.EmptyProperty=new D.Property("EMPTY",""),D.Element.ElementBase=function(a){this.attributes={},this.styles={},this.stylesSpecificity={},this.children=[],this.attribute=function(t,e){var i=this.attributes[t];return null!=i?i:(1==e&&(i=new D.Property(t,""),this.attributes[t]=i),i||D.EmptyProperty)},this.getHrefAttribute=function(){for(var t in this.attributes)if("href"==t||t.match(/:href$/))return this.attributes[t];return D.EmptyProperty},this.style=function(t,e,i){var n=this.styles[t];if(null!=n)return n;var s=this.attribute(t);if(null!=s&&s.hasValue())return this.styles[t]=s;if(1!=i){var a=this.parent;if(null!=a){var r=a.style(t);if(null!=r&&r.hasValue())return r}}return 1==e&&(n=new D.Property(t,""),this.styles[t]=n),n||D.EmptyProperty},this.render=function(t){if("none"!=this.style("display").value&&"hidden"!=this.style("visibility").value){if(t.save(),this.style("mask").hasValue()){var e=this.style("mask").getDefinition();null!=e&&e.apply(t,this)}else if(this.style("filter").hasValue()){var i=this.style("filter").getDefinition();null!=i&&i.apply(t,this)}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}},this.setContext=function(){},this.clearContext=function(){},this.renderChildren=function(t){for(var e=0;e<this.children.length;e++)this.children[e].render(t)},this.addChild=function(t,e){var i=t;e&&(i=D.CreateElement(t)),i.parent=this,"title"!=i.type&&this.children.push(i)},this.addStylesFromStyleDefinition=function(){for(var t in D.Styles)if("@"!=t[0]&&f(a,t)){var e=D.Styles[t],i=D.StylesSpecificity[t];if(null!=e)for(var n in e){var s=this.stylesSpecificity[n];void 0===s&&(s="000"),s<=i&&(this.styles[n]=e[n],this.stylesSpecificity[n]=i)}}};var t,e=new RegExp("^[A-Z-]+$");if(null!=a&&1==a.nodeType){for(var i=0;i<a.attributes.length;i++){var n=a.attributes[i],s=(t=n.nodeName,e.test(t)?t.toLowerCase():t);this.attributes[s]=new D.Property(s,n.value)}if(this.addStylesFromStyleDefinition(),this.attribute("style").hasValue()){var r=this.attribute("style").value.split(";");for(i=0;i<r.length;i++)if(""!=D.trim(r[i])){var o=r[i].split(":"),h=D.trim(o[0]),l=D.trim(o[1]);this.styles[h]=new D.Property(h,l)}}this.attribute("id").hasValue()&&null==D.Definitions[this.attribute("id").value]&&(D.Definitions[this.attribute("id").value]=this);for(i=0;i<a.childNodes.length;i++){var u=a.childNodes[i];if(1==u.nodeType&&this.addChild(u,!0),this.captureTextNodes&&(3==u.nodeType||4==u.nodeType)){var c=u.value||u.text||u.textContent||"";""!=D.compressSpaces(c)&&this.addChild(new D.Element.tspan(u),!1)}}}},D.Element.RenderedElementBase=function(t){this.base=D.Element.ElementBase,this.base(t),this.calculateOpacity=function(){for(var t=1,e=this;null!=e;){var i=e.style("opacity",!1,!0);i.hasValue()&&(t*=i.numValue()),e=e.parent}return t},this.setContext=function(t,e){if(!e){var i;if(this.style("fill").isUrlDefinition())null!=(i=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity")))&&(t.fillStyle=i);else if(this.style("fill").hasValue()){var n;"currentColor"==(n=this.style("fill")).value&&(n.value=this.style("color").value),"inherit"!=n.value&&(t.fillStyle="none"==n.value?"rgba(0,0,0,0)":n.value)}if(this.style("fill-opacity").hasValue())n=(n=new D.Property("fill",t.fillStyle)).addOpacity(this.style("fill-opacity")),t.fillStyle=n.value;if(this.style("stroke").isUrlDefinition())null!=(i=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity")))&&(t.strokeStyle=i);else if(this.style("stroke").hasValue()){var s;"currentColor"==(s=this.style("stroke")).value&&(s.value=this.style("color").value),"inherit"!=s.value&&(t.strokeStyle="none"==s.value?"rgba(0,0,0,0)":s.value)}if(this.style("stroke-opacity").hasValue())s=(s=new D.Property("stroke",t.strokeStyle)).addOpacity(this.style("stroke-opacity")),t.strokeStyle=s.value;if(this.style("stroke-width").hasValue()){var a=this.style("stroke-width").toPixels();t.lineWidth=0==a?.001:a}if(this.style("stroke-linecap").hasValue()&&(t.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(t.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(t.miterLimit=this.style("stroke-miterlimit").value),this.style("paint-order").hasValue()&&(t.paintOrder=this.style("paint-order").value),this.style("stroke-dasharray").hasValue()&&"none"!=this.style("stroke-dasharray").value){var r=D.ToNumberArray(this.style("stroke-dasharray").value);void 0!==t.setLineDash?t.setLineDash(r):void 0!==t.webkitLineDash?t.webkitLineDash=r:void 0===t.mozDash||1==r.length&&0==r[0]||(t.mozDash=r);var o=this.style("stroke-dashoffset").toPixels();void 0!==t.lineDashOffset?t.lineDashOffset=o:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=o:void 0!==t.mozDashOffset&&(t.mozDashOffset=o)}}if(void 0!==t.font)if(this.style("font").hasValue())t.font=this.style("font").value;else{t.font=D.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString();var h=this.style("font-size",!1,!1);h.isPixels()&&(D.emSize=h.toPixels())}this.style("transform",!1,!0).hasValue()&&new D.Transform(this.style("transform",!1,!0).value).apply(t);if(this.style("clip-path",!1,!0).hasValue()){var l=this.style("clip-path",!1,!0).getDefinition();null!=l&&l.apply(t)}t.globalAlpha=this.calculateOpacity()}},D.Element.RenderedElementBase.prototype=new D.Element.ElementBase,D.Element.PathElementBase=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.path=function(t){return null!=t&&t.beginPath(),new D.BoundingBox},this.renderChildren=function(t){this.path(t),D.Mouse.checkPath(this,t),""!=t.fillStyle&&("inherit"!=this.style("fill-rule").valueOrDefault("inherit")?t.fill(this.style("fill-rule").value):t.fill()),""!=t.strokeStyle&&t.stroke();var e=this.getMarkers();if(null!=e){if(this.style("marker-start").isUrlDefinition())(i=this.style("marker-start").getDefinition()).render(t,e[0][0],e[0][1]);if(this.style("marker-mid").isUrlDefinition())for(var i=this.style("marker-mid").getDefinition(),n=1;n<e.length-1;n++)i.render(t,e[n][0],e[n][1]);if(this.style("marker-end").isUrlDefinition())(i=this.style("marker-end").getDefinition()).render(t,e[e.length-1][0],e[e.length-1][1])}},this.getBoundingBox=function(){return this.path()},this.getMarkers=function(){return null}},D.Element.PathElementBase.prototype=new D.Element.RenderedElementBase,D.SetDefaults=function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4},D.Element.svg=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.baseClearContext=this.clearContext,this.clearContext=function(t){this.baseClearContext(t),D.ViewPort.RemoveCurrent()},this.baseSetContext=this.setContext,this.setContext=function(t){if(D.SetDefaults(t),t.canvas.style&&void 0!==t.font&&void 0!==l.getComputedStyle){t.font=l.getComputedStyle(t.canvas).getPropertyValue("font");var e=new D.Property("fontSize",D.Font.Parse(t.font).fontSize);e.hasValue()&&(D.rootEmSize=D.emSize=e.toPixels("y"))}this.baseSetContext(t),this.attribute("x").hasValue()||(this.attribute("x",!0).value=0),this.attribute("y").hasValue()||(this.attribute("y",!0).value=0),t.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var i=D.ViewPort.width(),n=D.ViewPort.height();if(this.attribute("width").hasValue()||(this.attribute("width",!0).value="100%"),this.attribute("height").hasValue()||(this.attribute("height",!0).value="100%"),void 0===this.root){i=this.attribute("width").toPixels("x"),n=this.attribute("height").toPixels("y");var s=0,a=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(s=-this.attribute("refX").toPixels("x"),a=-this.attribute("refY").toPixels("y")),"visible"!=this.attribute("overflow").valueOrDefault("hidden")&&(t.beginPath(),t.moveTo(s,a),t.lineTo(i,a),t.lineTo(i,n),t.lineTo(s,n),t.closePath(),t.clip())}if(D.ViewPort.SetCurrent(i,n),this.attribute("viewBox").hasValue()){var r=D.ToNumberArray(this.attribute("viewBox").value),o=r[0],h=r[1];i=r[2],n=r[3],D.AspectRatio(t,this.attribute("preserveAspectRatio").value,D.ViewPort.width(),i,D.ViewPort.height(),n,o,h,this.attribute("refX").value,this.attribute("refY").value),D.ViewPort.RemoveCurrent(),D.ViewPort.SetCurrent(r[2],r[3])}}},D.Element.svg.prototype=new D.Element.RenderedElementBase,D.Element.rect=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),n=this.attribute("width").toPixels("x"),s=this.attribute("height").toPixels("y"),a=this.attribute("rx").toPixels("x"),r=this.attribute("ry").toPixels("y");if(this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(r=a),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(a=r),a=Math.min(a,n/2),r=Math.min(r,s/2),null!=t){var o=(Math.sqrt(2)-1)/3*4;t.beginPath(),0<s&&0<n&&(t.moveTo(e+a,i),t.lineTo(e+n-a,i),t.bezierCurveTo(e+n-a+o*a,i,e+n,i+r-o*r,e+n,i+r),t.lineTo(e+n,i+s-r),t.bezierCurveTo(e+n,i+s-r+o*r,e+n-a+o*a,i+s,e+n-a,i+s),t.lineTo(e+a,i+s),t.bezierCurveTo(e+a-o*a,i+s,e,i+s-r+o*r,e,i+s-r),t.lineTo(e,i+r),t.bezierCurveTo(e,i+r-o*r,e+a-o*a,i,e+a,i),t.closePath())}return new D.BoundingBox(e,i,e+n,i+s)}},D.Element.rect.prototype=new D.Element.PathElementBase,D.Element.circle=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=this.attribute("cx").toPixels("x"),i=this.attribute("cy").toPixels("y"),n=this.attribute("r").toPixels();return null!=t&&0<n&&(t.beginPath(),t.arc(e,i,n,0,2*Math.PI,!1),t.closePath()),new D.BoundingBox(e-n,i-n,e+n,i+n)}},D.Element.circle.prototype=new D.Element.PathElementBase,D.Element.ellipse=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=(Math.sqrt(2)-1)/3*4,i=this.attribute("rx").toPixels("x"),n=this.attribute("ry").toPixels("y"),s=this.attribute("cx").toPixels("x"),a=this.attribute("cy").toPixels("y");return null!=t&&(t.beginPath(),t.moveTo(s+i,a),t.bezierCurveTo(s+i,a+e*n,s+e*i,a+n,s,a+n),t.bezierCurveTo(s-e*i,a+n,s-i,a+e*n,s-i,a),t.bezierCurveTo(s-i,a-e*n,s-e*i,a-n,s,a-n),t.bezierCurveTo(s+e*i,a-n,s+i,a-e*n,s+i,a),t.closePath()),new D.BoundingBox(s-i,a-n,s+i,a+n)}},D.Element.ellipse.prototype=new D.Element.PathElementBase,D.Element.line=function(t){this.base=D.Element.PathElementBase,this.base(t),this.getPoints=function(){return[new D.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new D.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]},this.path=function(t){var e=this.getPoints();return null!=t&&(t.beginPath(),t.moveTo(e[0].x,e[0].y),t.lineTo(e[1].x,e[1].y)),new D.BoundingBox(e[0].x,e[0].y,e[1].x,e[1].y)},this.getMarkers=function(){var t=this.getPoints(),e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}},D.Element.line.prototype=new D.Element.PathElementBase,D.Element.polyline=function(t){this.base=D.Element.PathElementBase,this.base(t),this.points=D.CreatePath(this.attribute("points").value),this.path=function(t){var e=new D.BoundingBox(this.points[0].x,this.points[0].y);null!=t&&(t.beginPath(),t.moveTo(this.points[0].x,this.points[0].y));for(var i=1;i<this.points.length;i++)e.addPoint(this.points[i].x,this.points[i].y),null!=t&&t.lineTo(this.points[i].x,this.points[i].y);return e},this.getMarkers=function(){for(var t=[],e=0;e<this.points.length-1;e++)t.push([this.points[e],this.points[e].angleTo(this.points[e+1])]);return 0<t.length&&t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},D.Element.polyline.prototype=new D.Element.PathElementBase,D.Element.polygon=function(t){this.base=D.Element.polyline,this.base(t),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},D.Element.polygon.prototype=new D.Element.polyline,D.Element.path=function(t){this.base=D.Element.PathElementBase,this.base(t);var e=this.attribute("d").value;e=e.replace(/,/gm," ");for(var i=0;i<2;i++)e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");e=(e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2");for(i=0;i<2;i++)e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),e=D.compressSpaces(e),e=D.trim(e),this.PathParser=new function(t){this.tokens=t.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new D.Point(0,0),this.control=new D.Point(0,0),this.current=new D.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var t=new D.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new D.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x+=this.current.x,t.y+=this.current.y),t},this.addMarker=function(t,e,i){null!=i&&0<this.angles.length&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(i)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++)if(null==this.angles[t])for(var e=t+1;e<this.angles.length;e++)if(null!=this.angles[e]){this.angles[t]=this.angles[e];break}return this.angles}}(e),this.path=function(t){var e=this.PathParser;e.reset();var i=new D.BoundingBox;for(null!=t&&t.beginPath();!e.isEnd();)switch(e.nextCommand(),e.command){case"M":case"m":var n=e.getAsCurrentPoint();for(e.addMarker(n),i.addPoint(n.x,n.y),null!=t&&t.moveTo(n.x,n.y),e.start=e.current;!e.isCommandOrEnd();){n=e.getAsCurrentPoint();e.addMarker(n,e.start),i.addPoint(n.x,n.y),null!=t&&t.lineTo(n.x,n.y)}break;case"L":case"l":for(;!e.isCommandOrEnd();){var s=e.current;n=e.getAsCurrentPoint();e.addMarker(n,s),i.addPoint(n.x,n.y),null!=t&&t.lineTo(n.x,n.y)}break;case"H":case"h":for(;!e.isCommandOrEnd();){var a=new D.Point((e.isRelativeCommand()?e.current.x:0)+e.getScalar(),e.current.y);e.addMarker(a,e.current),e.current=a,i.addPoint(e.current.x,e.current.y),null!=t&&t.lineTo(e.current.x,e.current.y)}break;case"V":case"v":for(;!e.isCommandOrEnd();){a=new D.Point(e.current.x,(e.isRelativeCommand()?e.current.y:0)+e.getScalar());e.addMarker(a,e.current),e.current=a,i.addPoint(e.current.x,e.current.y),null!=t&&t.lineTo(e.current.x,e.current.y)}break;case"C":case"c":for(;!e.isCommandOrEnd();){var r=e.current,o=e.getPoint(),h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,o),i.addBezierCurve(r.x,r.y,o.x,o.y,h.x,h.y,l.x,l.y),null!=t&&t.bezierCurveTo(o.x,o.y,h.x,h.y,l.x,l.y)}break;case"S":case"s":for(;!e.isCommandOrEnd();){r=e.current,o=e.getReflectedControlPoint(),h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,o),i.addBezierCurve(r.x,r.y,o.x,o.y,h.x,h.y,l.x,l.y),null!=t&&t.bezierCurveTo(o.x,o.y,h.x,h.y,l.x,l.y)}break;case"Q":case"q":for(;!e.isCommandOrEnd();){r=e.current,h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,h),i.addQuadraticCurve(r.x,r.y,h.x,h.y,l.x,l.y),null!=t&&t.quadraticCurveTo(h.x,h.y,l.x,l.y)}break;case"T":case"t":for(;!e.isCommandOrEnd();){r=e.current,h=e.getReflectedControlPoint();e.control=h;l=e.getAsCurrentPoint();e.addMarker(l,h,h),i.addQuadraticCurve(r.x,r.y,h.x,h.y,l.x,l.y),null!=t&&t.quadraticCurveTo(h.x,h.y,l.x,l.y)}break;case"A":case"a":for(;!e.isCommandOrEnd();){r=e.current;var u=e.getScalar(),c=e.getScalar(),f=e.getScalar()*(Math.PI/180),p=e.getScalar(),d=e.getScalar(),m=(l=e.getAsCurrentPoint(),new D.Point(Math.cos(f)*(r.x-l.x)/2+Math.sin(f)*(r.y-l.y)/2,-Math.sin(f)*(r.x-l.x)/2+Math.cos(f)*(r.y-l.y)/2)),y=Math.pow(m.x,2)/Math.pow(u,2)+Math.pow(m.y,2)/Math.pow(c,2);1<y&&(u*=Math.sqrt(y),c*=Math.sqrt(y));var v=(p==d?-1:1)*Math.sqrt((Math.pow(u,2)*Math.pow(c,2)-Math.pow(u,2)*Math.pow(m.y,2)-Math.pow(c,2)*Math.pow(m.x,2))/(Math.pow(u,2)*Math.pow(m.y,2)+Math.pow(c,2)*Math.pow(m.x,2)));isNaN(v)&&(v=0);var g=new D.Point(v*u*m.y/c,v*-c*m.x/u),x=new D.Point((r.x+l.x)/2+Math.cos(f)*g.x-Math.sin(f)*g.y,(r.y+l.y)/2+Math.sin(f)*g.x+Math.cos(f)*g.y),b=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},P=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(b(t)*b(e))},E=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(P(t,e))},w=E([1,0],[(m.x-g.x)/u,(m.y-g.y)/c]),C=[(m.x-g.x)/u,(m.y-g.y)/c],B=[(-m.x-g.x)/u,(-m.y-g.y)/c],M=E(C,B);P(C,B)<=-1&&(M=Math.PI),1<=P(C,B)&&(M=0);var T=1-d?1:-1,S=w+T*(M/2),V=new D.Point(x.x+u*Math.cos(S),x.y+c*Math.sin(S));if(e.addMarkerAngle(V,S-T*Math.PI/2),e.addMarkerAngle(l,S-T*Math.PI),i.addPoint(l.x,l.y),null!=t&&!isNaN(w)&&!isNaN(M)){P=c<u?u:c;var k=c<u?1:u/c,A=c<u?c/u:1;t.translate(x.x,x.y),t.rotate(f),t.scale(k,A),t.arc(0,0,P,w,w+M,1-d),t.scale(1/k,1/A),t.rotate(-f),t.translate(-x.x,-x.y)}}break;case"Z":case"z":null!=t&&i.x1!==i.x2&&i.y1!==i.y2&&t.closePath(),e.current=e.start}return i},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),i=[],n=0;n<t.length;n++)i.push([t[n],e[n]]);return i}},D.Element.path.prototype=new D.Element.PathElementBase,D.Element.pattern=function(t){this.base=D.Element.ElementBase,this.base(t),this.createPattern=function(t,e,i){var n=this.attribute("width").toPixels("x",!0),s=this.attribute("height").toPixels("y",!0),a=new D.Element.svg;a.attributes.viewBox=new D.Property("viewBox",this.attribute("viewBox").value),a.attributes.width=new D.Property("width",n+"px"),a.attributes.height=new D.Property("height",s+"px"),a.attributes.transform=new D.Property("transform",this.attribute("patternTransform").value),a.children=this.children;var r=d(n,s),o=r.getContext("2d");this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&o.translate(this.attribute("x").toPixels("x",!0),this.attribute("y").toPixels("y",!0)),i.hasValue()?this.styles["fill-opacity"]=i:delete this.styles["fill-opacity"];for(var h=-1;h<=1;h++)for(var l=-1;l<=1;l++)o.save(),a.attributes.x=new D.Property("x",h*r.width),a.attributes.y=new D.Property("y",l*r.height),a.render(o),o.restore();return t.createPattern(r,"repeat")}},D.Element.pattern.prototype=new D.Element.ElementBase,D.Element.marker=function(t){this.base=D.Element.ElementBase,this.base(t),this.baseRender=this.render,this.render=function(t,e,i){if(e){t.translate(e.x,e.y),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(i),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(t.lineWidth,t.lineWidth),t.save();var n=new D.Element.svg;n.attributes.viewBox=new D.Property("viewBox",this.attribute("viewBox").value),n.attributes.refX=new D.Property("refX",this.attribute("refX").value),n.attributes.refY=new D.Property("refY",this.attribute("refY").value),n.attributes.width=new D.Property("width",this.attribute("markerWidth").value),n.attributes.height=new D.Property("height",this.attribute("markerHeight").value),n.attributes.fill=new D.Property("fill",this.attribute("fill").valueOrDefault("black")),n.attributes.stroke=new D.Property("stroke",this.attribute("stroke").valueOrDefault("none")),n.children=this.children,n.render(t),t.restore(),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(-i),t.translate(-e.x,-e.y)}}},D.Element.marker.prototype=new D.Element.ElementBase,D.Element.defs=function(t){this.base=D.Element.ElementBase,this.base(t),this.render=function(){}},D.Element.defs.prototype=new D.Element.ElementBase,D.Element.GradientBase=function(t){this.base=D.Element.ElementBase,this.base(t),this.stops=[];for(var e=0;e<this.children.length;e++){var i=this.children[e];"stop"==i.type&&this.stops.push(i)}this.getGradient=function(){},this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")},this.attributesToInherit=["gradientUnits"],this.inheritStopContainer=function(t){for(var e=0;e<this.attributesToInherit.length;e++){var i=this.attributesToInherit[e];!this.attribute(i).hasValue()&&t.attribute(i).hasValue()&&(this.attribute(i,!0).value=t.attribute(i).value)}},this.createGradient=function(t,e,i){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var s=function(t){return i.hasValue()?new D.Property("color",t).addOpacity(i).value:t},a=this.getGradient(t,e);if(null==a)return s(n.stops[n.stops.length-1].color);for(var r=0;r<n.stops.length;r++)a.addColorStop(n.stops[r].offset,s(n.stops[r].color));if(this.attribute("gradientTransform").hasValue()){var o=D.ViewPort.viewPorts[0],h=new D.Element.rect;h.attributes.x=new D.Property("x",-D.MAX_VIRTUAL_PIXELS/3),h.attributes.y=new D.Property("y",-D.MAX_VIRTUAL_PIXELS/3),h.attributes.width=new D.Property("width",D.MAX_VIRTUAL_PIXELS),h.attributes.height=new D.Property("height",D.MAX_VIRTUAL_PIXELS);var l=new D.Element.g;l.attributes.transform=new D.Property("transform",this.attribute("gradientTransform").value),l.children=[h];var u=new D.Element.svg;u.attributes.x=new D.Property("x",0),u.attributes.y=new D.Property("y",0),u.attributes.width=new D.Property("width",o.width),u.attributes.height=new D.Property("height",o.height),u.children=[l];var c=d(o.width,o.height),f=c.getContext("2d");return f.fillStyle=a,u.render(f),f.createPattern(c,"no-repeat")}return a}},D.Element.GradientBase.prototype=new D.Element.ElementBase,D.Element.linearGradient=function(t){this.base=D.Element.GradientBase,this.base(t),this.attributesToInherit.push("x1"),this.attributesToInherit.push("y1"),this.attributesToInherit.push("x2"),this.attributesToInherit.push("y2"),this.getGradient=function(t,e){var i="objectBoundingBox"==this.gradientUnits()?e.getBoundingBox(t):null;this.attribute("x1").hasValue()||this.attribute("y1").hasValue()||this.attribute("x2").hasValue()||this.attribute("y2").hasValue()||(this.attribute("x1",!0).value=0,this.attribute("y1",!0).value=0,this.attribute("x2",!0).value=1,this.attribute("y2",!0).value=0);var n="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x"),s="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y"),a="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x"),r="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");return n==a&&s==r?null:t.createLinearGradient(n,s,a,r)}},D.Element.linearGradient.prototype=new D.Element.GradientBase,D.Element.radialGradient=function(t){this.base=D.Element.GradientBase,this.base(t),this.attributesToInherit.push("cx"),this.attributesToInherit.push("cy"),this.attributesToInherit.push("r"),this.attributesToInherit.push("fx"),this.attributesToInherit.push("fy"),this.attributesToInherit.push("fr"),this.getGradient=function(t,e){var i=e.getBoundingBox(t);this.attribute("cx").hasValue()||(this.attribute("cx",!0).value="50%"),this.attribute("cy").hasValue()||(this.attribute("cy",!0).value="50%"),this.attribute("r").hasValue()||(this.attribute("r",!0).value="50%");var n="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x"),s="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y"),a=n,r=s;this.attribute("fx").hasValue()&&(a="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")),this.attribute("fy").hasValue()&&(r="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y"));var o="objectBoundingBox"==this.gradientUnits()?(i.width()+i.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels(),h=this.attribute("fr").toPixels();return t.createRadialGradient(a,r,h,n,s,o)}},D.Element.radialGradient.prototype=new D.Element.GradientBase,D.Element.stop=function(t){this.base=D.Element.ElementBase,this.base(t),this.offset=this.attribute("offset").numValue(),this.offset<0&&(this.offset=0),1<this.offset&&(this.offset=1);var e=this.style("stop-color",!0);""===e.value&&(e.value="#000"),this.style("stop-opacity").hasValue()&&(e=e.addOpacity(this.style("stop-opacity"))),this.color=e.value},D.Element.stop.prototype=new D.Element.ElementBase,D.Element.AnimateBase=function(t){this.base=D.Element.ElementBase,this.base(t),D.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+t;var e=!1;if(this.begin<this.duration){var i=this.calcValue();if(this.attribute("type").hasValue())i=this.attribute("type").value+"("+i+")";this.getProperty().value=i,e=!0}return e},this.from=this.attribute("from"),this.to=this.attribute("to"),this.values=this.attribute("values"),this.values.hasValue()&&(this.values.value=this.values.value.split(";")),this.progress=function(){var t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var e=t.progress*(this.values.value.length-1),i=Math.floor(e),n=Math.ceil(e);t.from=new D.Property("from",parseFloat(this.values.value[i])),t.to=new D.Property("to",parseFloat(this.values.value[n])),t.progress=(e-i)/(n-i)}else t.from=this.from,t.to=this.to;return t}},D.Element.AnimateBase.prototype=new D.Element.ElementBase,D.Element.animate=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress(),e=t.from.numValue()+(t.to.numValue()-t.from.numValue())*t.progress;return"%"===this.initialUnits&&(e*=100),e+this.initialUnits}},D.Element.animate.prototype=new D.Element.AnimateBase,D.Element.animateColor=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress(),e=new y(t.from.value),i=new y(t.to.value);if(e.ok&&i.ok){var n=e.r+(i.r-e.r)*t.progress,s=e.g+(i.g-e.g)*t.progress,a=e.b+(i.b-e.b)*t.progress;return"rgb("+parseInt(n,10)+","+parseInt(s,10)+","+parseInt(a,10)+")"}return this.attribute("from").value}},D.Element.animateColor.prototype=new D.Element.AnimateBase,D.Element.animateTransform=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){for(var t=this.progress(),e=D.ToNumberArray(t.from.value),i=D.ToNumberArray(t.to.value),n="",s=0;s<e.length;s++)n+=e[s]+(i[s]-e[s])*t.progress+" ";return n}},D.Element.animateTransform.prototype=new D.Element.animate,D.Element.font=function(t){this.base=D.Element.ElementBase,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.isRTL=!1,this.isArabic=!1,this.fontFace=null,this.missingGlyph=null,this.glyphs=[];for(var e=0;e<this.children.length;e++){var i=this.children[e];"font-face"==i.type?(this.fontFace=i).style("font-family").hasValue()&&(D.Definitions[i.style("font-family").value]=this):"missing-glyph"==i.type?this.missingGlyph=i:"glyph"==i.type&&(""!=i.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[i.unicode]&&(this.glyphs[i.unicode]=[]),this.glyphs[i.unicode][i.arabicForm]=i):this.glyphs[i.unicode]=i)}this.render=function(){}},D.Element.font.prototype=new D.Element.ElementBase,D.Element.fontface=function(t){this.base=D.Element.ElementBase,this.base(t),this.ascent=this.attribute("ascent").value,this.descent=this.attribute("descent").value,this.unitsPerEm=this.attribute("units-per-em").numValue()},D.Element.fontface.prototype=new D.Element.ElementBase,D.Element.missingglyph=function(t){this.base=D.Element.path,this.base(t),this.horizAdvX=0},D.Element.missingglyph.prototype=new D.Element.path,D.Element.glyph=function(t){this.base=D.Element.path,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.unicode=this.attribute("unicode").value,this.arabicForm=this.attribute("arabic-form").value},D.Element.glyph.prototype=new D.Element.path,D.Element.text=function(t){this.captureTextNodes=!0,this.base=D.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t);var e=this.style("dominant-baseline").toTextBaseline();null==e&&(e=this.style("alignment-baseline").toTextBaseline()),null!=e&&(t.textBaseline=e)},this.initializeCoordinates=function(t){this.x=this.attribute("x").toPixels("x"),this.y=this.attribute("y").toPixels("y"),this.attribute("dx").hasValue()&&(this.x+=this.attribute("dx").toPixels("x")),this.attribute("dy").hasValue()&&(this.y+=this.attribute("dy").toPixels("y")),this.x+=this.getAnchorDelta(t,this,0)},this.getBoundingBox=function(t){this.initializeCoordinates(t);for(var e=null,i=0;i<this.children.length;i++){var n=this.getChildBoundingBox(t,this,this,i);null==e?e=n:e.addBoundingBox(n)}return e},this.renderChildren=function(t){this.initializeCoordinates(t);for(var e=0;e<this.children.length;e++)this.renderChild(t,this,this,e);D.Mouse.checkBoundingBox(this,this.getBoundingBox(t))},this.getAnchorDelta=function(t,e,i){var n=this.style("text-anchor").valueOrDefault("start");if("start"==n)return 0;for(var s=0,a=i;a<e.children.length;a++){var r=e.children[a];if(i<a&&r.attribute("x").hasValue())break;s+=r.measureTextRecursive(t)}return-1*("end"==n?s:s/2)},this.adjustChildCoordinates=function(t,e,i,n){var s=i.children[n];if("function"!=typeof s.measureText)return s;if(s.attribute("x").hasValue()){s.x=s.attribute("x").toPixels("x")+e.getAnchorDelta(t,i,n);var a=s.attribute("text-anchor").valueOrDefault("start");if("start"!==a){var r=s.measureTextRecursive(t);s.x+=-1*("end"==a?r:r/2)}s.attribute("dx").hasValue()&&(s.x+=s.attribute("dx").toPixels("x"))}else s.attribute("dx").hasValue()&&(e.x+=s.attribute("dx").toPixels("x")),s.x=e.x;return e.x=s.x+s.measureText(t),s.attribute("y").hasValue()?(s.y=s.attribute("y").toPixels("y"),s.attribute("dy").hasValue()&&(s.y+=s.attribute("dy").toPixels("y"))):(s.attribute("dy").hasValue()&&(e.y+=s.attribute("dy").toPixels("y")),s.y=e.y),e.y=s.y,s},this.getChildBoundingBox=function(t,e,i,n){var s=this.adjustChildCoordinates(t,e,i,n),a=s.getBoundingBox(t);for(n=0;n<s.children.length;n++){var r=e.getChildBoundingBox(t,e,s,n);a.addBoundingBox(r)}return a},this.renderChild=function(t,e,i,n){var s=this.adjustChildCoordinates(t,e,i,n);s.render(t);for(n=0;n<s.children.length;n++)e.renderChild(t,e,s,n)}},D.Element.text.prototype=new D.Element.RenderedElementBase,D.Element.TextElementBase=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.getGlyph=function(t,e,i){var n=e[i],s=null;if(t.isArabic){var a="isolated";(0==i||" "==e[i-1])&&i<e.length-2&&" "!=e[i+1]&&(a="terminal"),0<i&&" "!=e[i-1]&&i<e.length-2&&" "!=e[i+1]&&(a="medial"),0<i&&" "!=e[i-1]&&(i==e.length-1||" "==e[i+1])&&(a="initial"),void 0!==t.glyphs[n]&&null==(s=t.glyphs[n][a])&&"glyph"==t.glyphs[n].type&&(s=t.glyphs[n])}else s=t.glyphs[n];return null==s&&(s=t.missingGlyph),s},this.renderChildren=function(t){var e=this.parent.style("font-family").getDefinition();if(null==e)"stroke"==t.paintOrder?(""!=t.strokeStyle&&t.strokeText(D.compressSpaces(this.getText()),this.x,this.y),""!=t.fillStyle&&t.fillText(D.compressSpaces(this.getText()),this.x,this.y)):(""!=t.fillStyle&&t.fillText(D.compressSpaces(this.getText()),this.x,this.y),""!=t.strokeStyle&&t.strokeText(D.compressSpaces(this.getText()),this.x,this.y));else{var i=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize),n=this.parent.style("font-style").valueOrDefault(D.Font.Parse(D.ctx.font).fontStyle),s=this.getText();e.isRTL&&(s=s.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<s.length;r++){var o=this.getGlyph(e,s,r),h=i/e.fontFace.unitsPerEm;t.translate(this.x,this.y),t.scale(h,-h);var l=t.lineWidth;t.lineWidth=t.lineWidth*e.fontFace.unitsPerEm/i,"italic"==n&&t.transform(1,0,.4,1,0,0),o.render(t),"italic"==n&&t.transform(1,0,-.4,1,0,0),t.lineWidth=l,t.scale(1/h,-1/h),t.translate(-this.x,-this.y),this.x+=i*(o.horizAdvX||e.horizAdvX)/e.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(this.x+=a[r])}}},this.getText=function(){},this.measureTextRecursive=function(t){for(var e=this.measureText(t),i=0;i<this.children.length;i++)e+=this.children[i].measureTextRecursive(t);return e},this.measureText=function(t){var e=this.parent.style("font-family").getDefinition();if(null!=e){var i=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize),n=0,s=this.getText();e.isRTL&&(s=s.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<s.length;r++){n+=(this.getGlyph(e,s,r).horizAdvX||e.horizAdvX)*i/e.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(n+=a[r])}return n}var o=D.compressSpaces(this.getText());if(!t.measureText)return 10*o.length;t.save(),this.setContext(t,!0);var h=t.measureText(o).width;return t.restore(),h},this.getBoundingBox=function(t){var e=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize);return new D.BoundingBox(this.x,this.y-e,this.x+this.measureText(t),this.y)}},D.Element.TextElementBase.prototype=new D.Element.RenderedElementBase,D.Element.tspan=function(t){this.captureTextNodes=!0,this.base=D.Element.TextElementBase,this.base(t),this.text=D.compressSpaces(t.value||t.text||t.textContent||""),this.getText=function(){return 0<this.children.length?"":this.text}},D.Element.tspan.prototype=new D.Element.TextElementBase,D.Element.tref=function(t){this.base=D.Element.TextElementBase,this.base(t),this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(null!=t)return t.children[0].getText()}},D.Element.tref.prototype=new D.Element.TextElementBase,D.Element.a=function(t){this.base=D.Element.TextElementBase,this.base(t),this.hasText=0<t.childNodes.length;for(var e=0;e<t.childNodes.length;e++)3!=t.childNodes[e].nodeType&&(this.hasText=!1);this.text=this.hasText?t.childNodes[0].value||t.childNodes[0].data:"",this.getText=function(){return this.text},this.baseRenderChildren=this.renderChildren,this.renderChildren=function(t){if(this.hasText){this.baseRenderChildren(t);var e=new D.Property("fontSize",D.Font.Parse(D.ctx.font).fontSize);D.Mouse.checkBoundingBox(this,new D.BoundingBox(this.x,this.y-e.toPixels("y"),this.x+this.measureText(t),this.y))}else if(0<this.children.length){var i=new D.Element.g;i.children=this.children,i.parent=this,i.render(t)}},this.onclick=function(){l.open(this.getHrefAttribute().value)},this.onmousemove=function(){D.ctx.canvas.style.cursor="pointer"}},D.Element.a.prototype=new D.Element.TextElementBase,D.Element.textPath=function(t){this.base=D.Element.TextElementBase,this.base(t);var e=this.getHrefAttribute().getDefinition();this.text=D.compressSpaces(t.value||t.text||t.textContent||""),this.renderChildren=function(t){this.setTextData(t),t.save();var e=this.parent.style("text-decoration").value,i=this.fontSize(),n=this.glyphInfo,s=t.fillStyle;"underline"===e&&t.beginPath();for(var a=0;a<n.length;a++){var r=n[a].p0,o=n[a].p1,h=n[a].text;t.save(),t.translate(r.x,r.y),t.rotate(n[a].rotation),""!=t.fillStyle&&t.fillText(D.compressSpaces(h),0,0),""!=t.strokeStyle&&t.strokeText(D.compressSpaces(h),0,0),t.restore(),"underline"===e&&(0===a&&t.moveTo(r.x,r.y+i/8),t.lineTo(o.x,o.y+i/5))}"underline"===e&&(t.lineWidth=i/20,t.strokeStyle=s,t.stroke(),t.closePath()),t.restore()},this.path=function(t){var e=this.dataArray;null!=t&&t.beginPath();for(var i=0;i<e.length;i++){var n=e[i].command,s=e[i].points;switch(n){case"L":null!=t&&t.lineTo(s[0],s[1]);break;case"M":null!=t&&t.moveTo(s[0],s[1]);break;case"C":null!=t&&t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"Q":null!=t&&t.quadraticCurveTo(s[0],s[1],s[2],s[3]);break;case"A":var a=s[0],r=s[1],o=s[2],h=s[3],l=s[4],u=s[5],c=s[6],f=s[7],p=h<o?o:h,d=h<o?1:o/h,m=h<o?h/o:1;null!=t&&(t.translate(a,r),t.rotate(c),t.scale(d,m),t.arc(0,0,p,l,l+u,1-f),t.scale(1/d,1/m),t.rotate(-c),t.translate(-a,-r));break;case"z":null!=t&&t.closePath()}}},this.getText=function(){return this.text},this.fontSize=function(){return this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize)},this.measureText=function(t,e){var i=this.parent.style("font-family").getDefinition();if(e=e||this.getText(),null!=i){var n=this.fontSize(),s=0;i.isRTL&&(e=e.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<e.length;r++){s+=(this.getGlyph(i,e,r).horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(s+=a[r])}return s}var o=D.compressSpaces(e);if(!t.measureText)return 10*o.length;t.save(),this.setContext(t);var h=t.measureText(o).width;return t.restore(),h},this.setTextData=function(r){if(!this.hasOwnProperty("glyphInfo")){var o=this,t=this.getText().split(""),h=this.getText().split(" ").length-1,e=D.ToNumberArray(this.parent.attribute("dx").valueOrDefault("0")),i=0,l=this.parent.style("text-anchor").valueOrDefault("start"),n=this.style("letter-spacing"),s=this.parent.style("letter-spacing");n.hasValue()&&"inherit"!==n.getValue()?n.hasValue()&&"initial"!==n.getValue()&&"unset"!==n.getValue()&&(i=n.toPixels()):i=s.toPixels(),this.letterSpacingCache=[];for(var a=0;a<this.getText().length;a++)this.letterSpacingCache.push(void 0!==e[a]?e[a]:i);var u=this.letterSpacingCache.reduce(function(t,e){return t+e||0},0);this.textWidth=this.measureText(r),this.textHeight=this.fontSize();var c=Math.max(this.textWidth+u,0);this.glyphInfo=[];var f=this.getPathLength(),p=this.style("startOffset").numValueOrDefault(0)*f,d=0;"middle"!==l&&"center"!==l||(d=-c/2),"end"!==l&&"right"!==l||(d=-c),d+=p;var m=function(t,e){var i,n=o.measureText(r,t);" "===t&&"justify"===l&&c<f&&(n+=(f-c)/h),-1<e&&(d+=(i=(i=e)||0,o.letterSpacingCache[i]||0));var s=o.textHeight/20,a={p0:o.getEquidistantPointOnPath(d,s),p1:o.getEquidistantPointOnPath(d+n,s)};return d+=n,a};for(a=0;a<t.length;a++){var y=m(t[a],a);if(void 0!==y.p0&&void 0!==y.p1){var v=o.getLineLength(y.p0.x,y.p0.y,y.p1.x,y.p1.y),g=o.getPointOnLine(0+v/2,y.p0.x,y.p0.y,y.p1.x,y.p1.y),x=Math.atan2(y.p1.y-y.p0.y,y.p1.x-y.p0.x);this.glyphInfo.push({transposeX:g.x,transposeY:g.y,text:t[a],rotation:x,p0:y.p0,p1:y.p1})}}}},this.parsePathData=function(t){if(this.pathLength=void 0,!t)return[];var e=[],i=t.PathParser;for(i.reset();!i.isEnd();){var n=[],s=null,a=i.current?i.current.x:0,r=i.current?i.current.y:0;i.nextCommand();var o=i.command.toUpperCase();switch(i.command){case"M":case"m":var h=i.getAsCurrentPoint();for(n.push(h.x,h.y),i.start=i.current;!i.isCommandOrEnd();){h=i.getAsCurrentPoint();n.push(h.x,h.y),s="L"}break;case"L":case"l":for(;!i.isCommandOrEnd();){h=i.getAsCurrentPoint();n.push(h.x,h.y)}s="L";break;case"H":case"h":for(;!i.isCommandOrEnd();){var l=new D.Point((i.isRelativeCommand()?i.current.x:0)+i.getScalar(),i.current.y);n.push(l.x,l.y),i.current=l}s="L";break;case"V":case"v":for(;!i.isCommandOrEnd();){l=new D.Point(i.current.x,(i.isRelativeCommand()?i.current.y:0)+i.getScalar());n.push(l.x,l.y),i.current=l}s="L";break;case"C":case"c":for(;!i.isCommandOrEnd();){var u=i.getPoint(),c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(u.x,u.y,c.x,c.y,f.x,f.y)}break;case"S":case"s":for(;!i.isCommandOrEnd();){u=i.getReflectedControlPoint(),c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(u.x,u.y,c.x,c.y,f.x,f.y)}s="C";break;case"Q":case"q":for(;!i.isCommandOrEnd();){c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(c.x,c.y,f.x,f.y)}break;case"T":case"t":for(;!i.isCommandOrEnd();){c=i.getReflectedControlPoint();i.control=c;f=i.getAsCurrentPoint();n.push(c.x,c.y,f.x,f.y)}s="Q";break;case"A":case"a":for(;!i.isCommandOrEnd();){var p=i.current,d=i.getScalar(),m=i.getScalar(),y=i.getScalar()*(Math.PI/180),v=i.getScalar(),g=i.getScalar(),x=(f=i.getAsCurrentPoint(),new D.Point(Math.cos(y)*(p.x-f.x)/2+Math.sin(y)*(p.y-f.y)/2,-Math.sin(y)*(p.x-f.x)/2+Math.cos(y)*(p.y-f.y)/2)),b=Math.pow(x.x,2)/Math.pow(d,2)+Math.pow(x.y,2)/Math.pow(m,2);1<b&&(d*=Math.sqrt(b),m*=Math.sqrt(b));var P=(v==g?-1:1)*Math.sqrt((Math.pow(d,2)*Math.pow(m,2)-Math.pow(d,2)*Math.pow(x.y,2)-Math.pow(m,2)*Math.pow(x.x,2))/(Math.pow(d,2)*Math.pow(x.y,2)+Math.pow(m,2)*Math.pow(x.x,2)));isNaN(P)&&(P=0);var E=new D.Point(P*d*x.y/m,P*-m*x.x/d),w=new D.Point((p.x+f.x)/2+Math.cos(y)*E.x-Math.sin(y)*E.y,(p.y+f.y)/2+Math.sin(y)*E.x+Math.cos(y)*E.y),C=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},B=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(C(t)*C(e))},M=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(B(t,e))},T=M([1,0],[(x.x-E.x)/d,(x.y-E.y)/m]),S=[(x.x-E.x)/d,(x.y-E.y)/m],V=[(-x.x-E.x)/d,(-x.y-E.y)/m],k=M(S,V);B(S,V)<=-1&&(k=Math.PI),1<=B(S,V)&&(k=0),0===g&&0<k&&(k-=2*Math.PI),1===g&&k<0&&(k+=2*Math.PI),n=[w.x,w.y,d,m,T,k,y,g]}break;case"Z":case"z":i.current=i.start}"Z"!==o?e.push({command:s||o,points:n,start:{x:a,y:r},pathLength:this.calcLength(a,r,s||o,n)}):e.push({command:"z",points:[],start:void 0,pathLength:0})}return e},this.getPathLength=function(){if(void 0===this.pathLength||null===this.pathLength||isNaN(this.pathLength))for(var t=this.pathLength=0;t<this.dataArray.length;t++)0<this.dataArray[t].pathLength&&(this.pathLength+=this.dataArray[t].pathLength);return this.pathLength},this.getPointOnPath=function(t){var e=0,i=this.getPathLength(),n=void 0;if(!(t<-5e-5||i<t-5e-5))for(var s=0;s<this.dataArray.length;s++){var a=this.dataArray[s];if(!a||!(a.pathLength<5e-5||e+a.pathLength+5e-5<t)){var r=t-e,o=void 0;switch(a.command){case"L":n=this.getPointOnLine(r,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case"A":var h=a.points[4],l=a.points[5],u=a.points[4]+l;if(o=h+r/a.pathLength*l,l<0&&o<u||0<=l&&u<o)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break;case"C":1<(o=r/a.pathLength)&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case"Q":1<(o=r/a.pathLength)&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(void 0!==n&&n!=={})return n;break}e+=a.pathLength}},this.buildEquidistantCache=function(t,e){var i=this.getPathLength();if(e=e||.25,t=t||i/100,this.equidistantCache=this.equidistantCache||{},!this.equidistantCache.hasOwnProperty("points")||this.equidistantCache.step!=t||this.equidistantCache.precision!=e){this.equidistantCache={step:t,precision:e,points:[]};for(var n=0,s=0;s<=i;s+=e){var a=this.getPointOnPath(s),r=this.getPointOnPath(s+e);void 0!==a&&void 0!==r&&(t<=(n+=this.getLineLength(a.x,a.y,r.x,r.y))&&(this.equidistantCache.points.push({x:a.x,y:a.y,distance:s}),n-=t))}}},this.getEquidistantPointOnPath=function(t,e,i){if(this.buildEquidistantCache(e,i),!(t<0||5e-5<t-this.getPathLength())){var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||void 0}},this.getLineLength=function(t,e,i,n){return Math.sqrt((i-t)*(i-t)+(n-e)*(n-e))},this.getPointOnLine=function(t,e,i,n,s,a,r){void 0===a&&(a=e),void 0===r&&(r=i);var o=(s-i)/(n-e+1e-8),h=Math.sqrt(t*t/(1+o*o));n<e&&(h*=-1);var l,u=o*h;if(n===e)l={x:a,y:r+u};else if((r-i)/(a-e+1e-8)===o)l={x:a+h,y:r+u};else{var c,f,p=this.getLineLength(e,i,n,s);if(p<1e-8)return;var d=(a-e)*(n-e)+(r-i)*(s-i);c=e+(d/=p*p)*(n-e),f=i+d*(s-i);var m=this.getLineLength(a,r,c,f),y=Math.sqrt(t*t-m*m);h=Math.sqrt(y*y/(1+o*o)),n<e&&(h*=-1),l={x:c+h,y:f+(u=o*h)}}return l},this.getPointOnCubicBezier=function(t,e,i,n,s,a,r,o,h){function l(t){return t*t*t}function u(t){return 3*t*t*(1-t)}function c(t){return 3*t*(1-t)*(1-t)}function f(t){return(1-t)*(1-t)*(1-t)}return{x:o*l(t)+a*u(t)+n*c(t)+e*f(t),y:h*l(t)+r*u(t)+s*c(t)+i*f(t)}},this.getPointOnQuadraticBezier=function(t,e,i,n,s,a,r){function o(t){return t*t}function h(t){return 2*t*(1-t)}function l(t){return(1-t)*(1-t)}return{x:a*o(t)+n*h(t)+e*l(t),y:r*o(t)+s*h(t)+i*l(t)}},this.getPointOnEllipticalArc=function(t,e,i,n,s,a){var r=Math.cos(a),o=Math.sin(a),h=i*Math.cos(s),l=n*Math.sin(s);return{x:t+(h*r-l*o),y:e+(h*o+l*r)}},this.calcLength=function(t,e,i,n){var s,a,r,o;switch(i){case"L":return this.getLineLength(t,e,n[0],n[1]);case"C":for(s=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)r=this.getPointOnCubicBezier(o,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return s;case"Q":for(s=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)r=this.getPointOnQuadraticBezier(o,t,e,n[0],n[1],n[2],n[3]),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return s;case"A":s=0;var h=n[4],l=n[5],u=n[4]+l,c=Math.PI/180;if(Math.abs(h-u)<c&&(c=Math.abs(h-u)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),l<0)for(o=h-c;u<o;o-=c)r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;else for(o=h+c;o<u;o+=c)r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),s+=this.getLineLength(a.x,a.y,r.x,r.y)}return 0},this.dataArray=this.parsePathData(e)},D.Element.textPath.prototype=new D.Element.TextElementBase,D.Element.image=function(t){this.base=D.Element.RenderedElementBase,this.base(t);var e=this.getHrefAttribute().value;if(""!=e){var a=e.match(/\.svg$/);if(D.Images.push(this),this.loaded=!1,a)this.img=D.ajax(e),this.loaded=!0;else{this.img=c.createElement("img"),1==D.opts.useCORS&&(this.img.crossOrigin="Anonymous");var r=this;this.img.onload=function(){r.loaded=!0},this.img.onerror=function(){D.log('ERROR: image "'+e+'" not found'),r.loaded=!0},this.img.src=e}this.renderChildren=function(t){var e=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),n=this.attribute("width").toPixels("x"),s=this.attribute("height").toPixels("y");0!=n&&0!=s&&(t.save(),a?t.drawSvg(this.img,e,i,n,s):(t.translate(e,i),D.AspectRatio(t,this.attribute("preserveAspectRatio").value,n,this.img.width,s,this.img.height,0,0),r.loaded&&(void 0===this.img.complete||this.img.complete)&&t.drawImage(this.img,0,0)),t.restore())},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),e=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),n=this.attribute("height").toPixels("y");return new D.BoundingBox(t,e,t+i,e+n)}}},D.Element.image.prototype=new D.Element.RenderedElementBase,D.Element.g=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.getBoundingBox=function(t){for(var e=new D.BoundingBox,i=0;i<this.children.length;i++)e.addBoundingBox(this.children[i].getBoundingBox(t));return e}},D.Element.g.prototype=new D.Element.RenderedElementBase,D.Element.symbol=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.render=function(){}},D.Element.symbol.prototype=new D.Element.RenderedElementBase,D.ParseExternalUrl=function(t){var e=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return e[2]||e[3]||e[4]},D.Element.style=function(t){this.base=D.Element.ElementBase,this.base(t);for(var e="",i=0;i<t.childNodes.length;i++)e+=t.childNodes[i].data;e=e.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");var n=(e=D.compressSpaces(e)).split("}");for(i=0;i<n.length;i++)if(""!=D.trim(n[i]))for(var s=n[i].split("{"),a=s[0].split(","),r=s[1].split(";"),o=0;o<a.length;o++){var h=D.trim(a[o]);if(""!=h){for(var l=D.Styles[h]||{},u=0;u<r.length;u++){var c=r[u].indexOf(":"),f=r[u].substr(0,c),p=r[u].substr(c+1,r[u].length-c);null!=f&&null!=p&&(l[D.trim(f)]=new D.Property(D.trim(f),D.trim(p)))}if(D.Styles[h]=l,D.StylesSpecificity[h]=P(h),"@font-face"==h)for(var d=l["font-family"].value.replace(/"/g,""),m=l.src.value.split(","),y=0;y<m.length;y++)if(0<m[y].indexOf('format("svg")')){var v=D.ParseExternalUrl(m[y]);if(v)for(var g=D.parseXml(D.ajax(v)).getElementsByTagName("font"),x=0;x<g.length;x++){var b=D.CreateElement(g[x]);D.Definitions[d]=b}}}}},D.Element.style.prototype=new D.Element.ElementBase,D.Element.use=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.attribute("x").hasValue()&&t.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&t.translate(0,this.attribute("y").toPixels("y"))};var n=this.getHrefAttribute().getDefinition();this.path=function(t){null!=n&&n.path(t)},this.elementTransform=function(){if(null!=n&&n.style("transform",!1,!0).hasValue())return new D.Transform(n.style("transform",!1,!0).value)},this.getBoundingBox=function(t){if(null!=n)return n.getBoundingBox(t)},this.renderChildren=function(t){if(null!=n){var e=n;"symbol"==n.type&&((e=new D.Element.svg).type="svg",e.attributes.viewBox=new D.Property("viewBox",n.attribute("viewBox").value),e.attributes.preserveAspectRatio=new D.Property("preserveAspectRatio",n.attribute("preserveAspectRatio").value),e.attributes.overflow=new D.Property("overflow",n.attribute("overflow").value),e.children=n.children),"svg"==e.type&&(this.attribute("width").hasValue()&&(e.attributes.width=new D.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(e.attributes.height=new D.Property("height",this.attribute("height").value)));var i=e.parent;e.parent=null,e.render(t),e.parent=i}}},D.Element.use.prototype=new D.Element.RenderedElementBase,D.Element.mask=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t,e){var i=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),s=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");if(0==s&&0==a){for(var r=new D.BoundingBox,o=0;o<this.children.length;o++)r.addBoundingBox(this.children[o].getBoundingBox(t));i=Math.floor(r.x1),n=Math.floor(r.y1),s=Math.floor(r.width()),a=Math.floor(r.height())}var h=e.style("mask").value;e.style("mask").value="";var l=d(i+s,n+a),u=l.getContext("2d");D.SetDefaults(u),this.renderChildren(u),new D.Element.feColorMatrix({nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(u,0,0,i+s,n+a);var c=d(i+s,n+a),f=c.getContext("2d");D.SetDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=u.createPattern(l,"no-repeat"),f.fillRect(0,0,i+s,n+a),t.fillStyle=f.createPattern(c,"no-repeat"),t.fillRect(0,0,i+s,n+a),e.style("mask").value=h},this.render=function(){}},D.Element.mask.prototype=new D.Element.ElementBase,D.Element.clipPath=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t){var e="undefined"!=typeof CanvasRenderingContext2D,i=t.beginPath,n=t.closePath;e&&(CanvasRenderingContext2D.prototype.beginPath=function(){},CanvasRenderingContext2D.prototype.closePath=function(){}),i.call(t);for(var s=0;s<this.children.length;s++){var a=this.children[s];if(void 0!==a.path){var r=void 0!==a.elementTransform&&a.elementTransform();!r&&a.style("transform",!1,!0).hasValue()&&(r=new D.Transform(a.style("transform",!1,!0).value)),r&&r.apply(t),a.path(t),e&&(CanvasRenderingContext2D.prototype.closePath=n),r&&r.unapply(t)}}n.call(t),t.clip(),e&&(CanvasRenderingContext2D.prototype.beginPath=i,CanvasRenderingContext2D.prototype.closePath=n)},this.render=function(){}},D.Element.clipPath.prototype=new D.Element.ElementBase,D.Element.filter=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t,e){var i=e.getBoundingBox(t),n=Math.floor(i.x1),s=Math.floor(i.y1),a=Math.floor(i.width()),r=Math.floor(i.height()),o=e.style("filter").value;e.style("filter").value="";for(var h=0,l=0,u=0;u<this.children.length;u++){var c=this.children[u].extraFilterDistance||0;h=Math.max(h,c),l=Math.max(l,c)}var f=d(a+2*h,r+2*l),p=f.getContext("2d");D.SetDefaults(p),p.translate(-n+h,-s+l),e.render(p);for(u=0;u<this.children.length;u++)"function"==typeof this.children[u].apply&&this.children[u].apply(p,0,0,a+2*h,r+2*l);t.drawImage(f,0,0,a+2*h,r+2*l,n-h,s-l,a+2*h,r+2*l),e.style("filter",!0).value=o},this.render=function(){}},D.Element.filter.prototype=new D.Element.ElementBase,D.Element.feDropShadow=function(t){this.base=D.Element.ElementBase,this.base(t),this.addStylesFromStyleDefinition(),this.apply=function(){}},D.Element.feDropShadow.prototype=new D.Element.ElementBase,D.Element.feMorphology=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(){}},D.Element.feMorphology.prototype=new D.Element.ElementBase,D.Element.feComposite=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(){}},D.Element.feComposite.prototype=new D.Element.ElementBase,D.Element.feColorMatrix=function(t){this.base=D.Element.ElementBase,this.base(t);var n=D.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var e=n[0];n=[.213+.787*e,.715-.715*e,.072-.072*e,0,0,.213-.213*e,.715+.285*e,.072-.072*e,0,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=n[0]*Math.PI/180,i=function(t,e,i){return t+Math.cos(s)*e+Math.sin(s)*i};n=[i(.213,.787,-.213),i(.715,-.715,-.715),i(.072,-.072,.928),0,0,i(.213,-.213,.143),i(.715,.285,.14),i(.072,-.072,-.283),0,0,i(.213,-.213,-.787),i(.715,-.715,.715),i(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}function d(t,e,i,n,s,a){return t[i*n*4+4*e+a]}function m(t,e,i,n,s,a,r){t[i*n*4+4*e+a]=r}function y(t,e){var i=n[t];return i*(i<0?e-255:e)}var v=this.attribute("includeOpacity").hasValue();this.apply=function(t,e,i,n,s){var a=t.getImageData(0,0,n,s);for(i=0;i<s;i++)for(e=0;e<n;e++){var r=d(a.data,e,i,n,0,0),o=d(a.data,e,i,n,0,1),h=d(a.data,e,i,n,0,2),l=d(a.data,e,i,n,0,3),u=y(0,r)+y(1,o)+y(2,h)+y(3,l)+y(4,1),c=y(5,r)+y(6,o)+y(7,h)+y(8,l)+y(9,1),f=y(10,r)+y(11,o)+y(12,h)+y(13,l)+y(14,1),p=y(15,r)+y(16,o)+y(17,h)+y(18,l)+y(19,1);v&&(u=c=f=0,p*=l/255),m(a.data,e,i,n,0,0,u),m(a.data,e,i,n,0,1,c),m(a.data,e,i,n,0,2,f),m(a.data,e,i,n,0,3,p)}t.clearRect(0,0,n,s),t.putImageData(a,0,0)}},D.Element.feColorMatrix.prototype=new D.Element.ElementBase,D.Element.feGaussianBlur=function(t){this.base=D.Element.ElementBase,this.base(t),this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue()),this.extraFilterDistance=this.blurRadius,this.apply=function(t,e,i,n,s){v&&void 0!==v.canvasRGBA?(t.canvas.id=D.UniqueId(),t.canvas.style.display="none",c.body.appendChild(t.canvas),v.canvasRGBA(t.canvas,e,i,n,s,this.blurRadius),c.body.removeChild(t.canvas)):D.log("ERROR: StackBlur.js must be included for blur to work")}},D.Element.feGaussianBlur.prototype=new D.Element.ElementBase,D.Element.title=function(){},D.Element.title.prototype=new D.Element.ElementBase,D.Element.desc=function(){},D.Element.desc.prototype=new D.Element.ElementBase,D.Element.MISSING=function(t){D.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")},D.Element.MISSING.prototype=new D.Element.ElementBase,D.CreateElement=function(t){var e=t.nodeName.replace(/^[^:]+:/,"");e=e.replace(/\-/g,"");var i=null;return(i=void 0!==D.Element[e]?new D.Element[e](t):new D.Element.MISSING(t)).type=t.nodeName,i},D.load=function(t,e){D.loadXml(t,D.ajax(e))},D.loadXml=function(t,e){D.loadXmlDoc(t,D.parseXml(e))},D.loadXmlDoc=function(a,r){D.init(a);var i=function(t){for(var e=a.canvas;e;)t.x-=e.offsetLeft,t.y-=e.offsetTop,e=e.offsetParent;return l.scrollX&&(t.x+=l.scrollX),l.scrollY&&(t.y+=l.scrollY),t};1!=D.opts.ignoreMouse&&(a.canvas.onclick=function(t){var e=i(new D.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));D.Mouse.onclick(e.x,e.y)},a.canvas.onmousemove=function(t){var e=i(new D.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));D.Mouse.onmousemove(e.x,e.y)});var o=D.CreateElement(r.documentElement);o.root=!0,o.addStylesFromStyleDefinition();var h=!0,n=function(){D.ViewPort.Clear(),a.canvas.parentNode?D.ViewPort.SetCurrent(a.canvas.parentNode.clientWidth,a.canvas.parentNode.clientHeight):D.ViewPort.SetCurrent(800,600),1!=D.opts.ignoreDimensions&&(h||null==D.opts.scaleWidth&&null==D.opts.scaleHeight)&&(o.style("width").hasValue()&&(a.canvas.width=o.style("width").toPixels("x"),a.canvas.style&&(a.canvas.style.width=a.canvas.width+"px")),o.style("height").hasValue()&&(a.canvas.height=o.style("height").toPixels("y"),a.canvas.style&&(a.canvas.style.height=a.canvas.height+"px")));var t=a.canvas.clientWidth||a.canvas.width,e=a.canvas.clientHeight||a.canvas.height;if(1==D.opts.ignoreDimensions&&o.style("width").hasValue()&&o.style("height").hasValue()&&(t=o.style("width").toPixels("x"),e=o.style("height").toPixels("y")),D.ViewPort.SetCurrent(t,e),null!=D.opts.offsetX&&(o.attribute("x",!0).value=D.opts.offsetX),null!=D.opts.offsetY&&(o.attribute("y",!0).value=D.opts.offsetY),null!=D.opts.scaleWidth||null!=D.opts.scaleHeight){var i=null,n=null,s=D.ToNumberArray(o.attribute("viewBox").value);null!=D.opts.scaleWidth&&(o.attribute("width").hasValue()?i=o.attribute("width").toPixels("x")/D.opts.scaleWidth:isNaN(s[2])||(i=s[2]/D.opts.scaleWidth)),null!=D.opts.scaleHeight&&(o.attribute("height").hasValue()?n=o.attribute("height").toPixels("y")/D.opts.scaleHeight:isNaN(s[3])||(n=s[3]/D.opts.scaleHeight)),null==i&&(i=n),null==n&&(n=i),o.attribute("width",!0).value=D.opts.scaleWidth,o.attribute("height",!0).value=D.opts.scaleHeight,o.style("transform",!0,!0).value+=" scale("+1/i+","+1/n+")"}1!=D.opts.ignoreClear&&a.clearRect(0,0,t,e),o.render(a),h&&(h=!1,"function"==typeof D.opts.renderCallback&&D.opts.renderCallback(r))},s=!0;D.ImagesLoaded()&&(s=!1,n()),D.intervalID=setInterval(function(){var t=!1;if(s&&D.ImagesLoaded()&&(t=!(s=!1)),1!=D.opts.ignoreMouse&&(t=t||D.Mouse.hasEvents()),1!=D.opts.ignoreAnimation)for(var e=0;e<D.Animations.length;e++){var i=D.Animations[e].update(1e3/D.FRAMERATE);t=t||i}"function"==typeof D.opts.forceRedraw&&1==D.opts.forceRedraw()&&(t=!0),t&&(n(),D.Mouse.runEvents())},1e3/D.FRAMERATE)},D.stop=function(){D.intervalID&&clearInterval(D.intervalID)},D.Mouse=new function(){this.events=[],this.hasEvents=function(){return 0!=this.events.length},this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onclick&&t.onclick()}})},this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onmousemove&&t.onmousemove()}})},this.eventElements=[],this.checkPath=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInPath&&e.isPointInPath(n.x,n.y)&&(this.eventElements[i]=t)}},this.checkBoundingBox=function(t,e){if(e)for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInBox(n.x,n.y)&&(this.eventElements[i]=t)}},this.runEvents=function(){D.ctx.canvas.style.cursor="";for(var t=0;t<this.events.length;t++)for(var e=this.events[t],i=this.eventElements[t];i;)e.run(i),i=i.parent;this.events=[],this.eventElements=[]}},D}"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,e,i,n,s,a){var r={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:e,offsetY:i,scaleWidth:n,scaleHeight:s};for(var o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);p(this.canvas,t,r)}),p._build=m,t.exports=p}(t={exports:{}},t.exports),t.exports});
/** @license d3.js v3.5.12 | Copyright (c) 2010-2017 Mike Bostock [https://github.com/d3/d3] | BSD License [https://github.com/d3/d3/blob/master/LICENSE] */
!function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function r(n){return null===n?NaN:+n}function u(n){return!isNaN(n)}function i(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)<0?r=i+1:u=i}return r},right:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)>0?u=i:r=i+1}return r}}}function a(n){return n.length}function o(n){for(var t=1;n*t%1;)t*=10;return t}function l(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function c(){this._=Object.create(null)}function s(n){return(n+="")===xa||n[0]===ba?ba+n:n}function f(n){return(n+="")[0]===ba?n.slice(1):n}function h(n){return s(n)in this._}function g(n){return(n=s(n))in this._&&delete this._[n]}function p(){var n=[];for(var t in this._)n.push(f(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function m(){this._=Object.create(null)}function y(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=_a.length;r>e;++e){var u=_a[e]+t;if(u in n)return u}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,u=-1,i=r.length;++u<i;)(t=r[u].on)&&t.apply(this,arguments);return n}var e=[],r=new c;return t.on=function(t,u){var i,a=r.get(t);return arguments.length<2?a&&a.on:(a&&(a.on=null,e=e.slice(0,i=e.indexOf(a)).concat(e.slice(i+1)),r.remove(t)),u&&e.push(r.set(t,{on:u})),n)},t}function S(){oa.event.preventDefault()}function k(){for(var n,t=oa.event;n=t.sourceEvent;)t=n;return t}function N(n){for(var t=new _,e=0,r=arguments.length;++e<r;)t[arguments[e]]=w(t);return t.of=function(e,r){return function(u){try{var i=u.sourceEvent=oa.event;u.target=n,oa.event=u,t[u.type].apply(e,r)}finally{oa.event=i}}},t}function E(n){return Sa(n,Aa),n}function A(n){return"function"==typeof n?n:function(){return ka(n,this)}}function C(n){return"function"==typeof n?n:function(){return Na(n,this)}}function z(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function u(){this.setAttribute(n,t)}function i(){this.setAttributeNS(n.space,n.local,t)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=oa.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?o:a:n.local?i:u}function L(n){return n.trim().replace(/\s+/g," ")}function q(n){return new RegExp("(?:^|\\s+)"+oa.requote(n)+"(?:\\s+|$)","g")}function T(n){return(n+"").trim().split(/^|\s+/)}function R(n,t){function e(){for(var e=-1;++e<u;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);++e<u;)n[e](this,r)}n=T(n).map(D);var u=n.length;return"function"==typeof t?r:e}function D(n){var t=q(n);return function(e,r){if(u=e.classList)return r?u.add(n):u.remove(n);var u=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(u)||e.setAttribute("class",L(u+" "+n))):e.setAttribute("class",L(u.replace(t," ")))}}function P(n,t,e){function r(){this.style.removeProperty(n)}function u(){this.style.setProperty(n,t,e)}function i(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?i:u}function j(n,t){function e(){delete this[n]}function r(){this[n]=t}function u(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?u:r}function U(n){function t(){var t=this.ownerDocument,e=this.namespaceURI;return e?t.createElementNS(e,n):t.createElement(n)}function e(){return this.ownerDocument.createElementNS(n.space,n.local)}return"function"==typeof n?n:(n=oa.ns.qualify(n)).local?e:t}function F(){var n=this.parentNode;n&&n.removeChild(this)}function H(n){return{__data__:n}}function O(n){return function(){return Ea(this,n)}}function I(n){return arguments.length||(n=e),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function Y(n,t){for(var e=0,r=n.length;r>e;e++)for(var u,i=n[e],a=0,o=i.length;o>a;a++)(u=i[a])&&t(u,a,e);return n}function Z(n){return Sa(n,za),n}function V(n){var t,e;return function(r,u,i){var a,o=n[i].update,l=o.length;for(i!=e&&(e=i,t=0),u>=t&&(t=u+1);!(a=o[t])&&++t<l;);return a}}function X(n,t,e){function r(){var t=this[a];t&&(this.removeEventListener(n,t,t.$),delete this[a])}function u(){var u=l(t,ca(arguments));r.call(this),this.addEventListener(n,this[a]=u,u.$=e),u._=t}function i(){var t,e=new RegExp("^__on([^.]+)"+oa.requote(n)+"$");for(var r in this)if(t=r.match(e)){var u=this[r];this.removeEventListener(t[1],u,u.$),delete this[r]}}var a="__on"+n,o=n.indexOf("."),l=$;o>0&&(n=n.slice(0,o));var c=La.get(n);return c&&(n=c,l=B),o?t?u:r:t?b:i}function $(n,t){return function(e){var r=oa.event;oa.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{oa.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Ta,u="click"+r,i=oa.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==qa&&(qa="onselectstart"in e?!1:x(e.style,"userSelect")),qa){var a=n(e).style,o=a[qa];a[qa]="none"}return function(n){if(i.on(r,null),qa&&(a[qa]=o),n){var t=function(){i.on(u,null)};i.on(u,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var u=r.createSVGPoint();if(0>Ra){var i=t(n);if(i.scrollX||i.scrollY){r=oa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=r[0][0].getScreenCTM();Ra=!(a.f||a.e),r.remove()}}return Ra?(u.x=e.pageX,u.y=e.pageY):(u.x=e.clientX,u.y=e.clientY),u=u.matrixTransform(n.getScreenCTM().inverse()),[u.x,u.y]}var o=n.getBoundingClientRect();return[e.clientX-o.left-n.clientLeft,e.clientY-o.top-n.clientTop]}function G(){return oa.event.changedTouches[0].identifier}function K(n){return n>0?1:0>n?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nn(n){return n>1?0:-1>n?ja:Math.acos(n)}function tn(n){return n>1?Ha:-1>n?-Ha:Math.asin(n)}function en(n){return((n=Math.exp(n))-1/n)/2}function rn(n){return((n=Math.exp(n))+1/n)/2}function un(n){return((n=Math.exp(2*n))-1)/(n+1)}function an(n){return(n=Math.sin(n/2))*n}function on(){}function ln(n,t,e){return this instanceof ln?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof ln?new ln(n.h,n.s,n.l):_n(""+n,wn,ln):new ln(n,t,e)}function cn(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?i+(a-i)*n/60:180>n?a:240>n?i+(a-i)*(240-n)/60:i}function u(n){return Math.round(255*r(n))}var i,a;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,a=.5>=e?e*(1+t):e+t-e*t,i=2*e-a,new yn(u(n+120),u(n),u(n-120))}function sn(n,t,e){return this instanceof sn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof sn?new sn(n.h,n.c,n.l):n instanceof hn?pn(n.l,n.a,n.b):pn((n=Sn((n=oa.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new sn(n,t,e)}function fn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new hn(e,Math.cos(n*=Oa)*t,Math.sin(n)*t)}function hn(n,t,e){return this instanceof hn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof hn?new hn(n.l,n.a,n.b):n instanceof sn?fn(n.h,n.c,n.l):Sn((n=yn(n)).r,n.g,n.b):new hn(n,t,e)}function gn(n,t,e){var r=(n+16)/116,u=r+t/500,i=r-e/200;return u=vn(u)*Ka,r=vn(r)*Qa,i=vn(i)*no,new yn(mn(3.2404542*u-1.5371385*r-.4985314*i),mn(-.969266*u+1.8760108*r+.041556*i),mn(.0556434*u-.2040259*r+1.0572252*i))}function pn(n,t,e){return n>0?new sn(Math.atan2(e,t)*Ia,Math.sqrt(t*t+e*e),n):new sn(NaN,NaN,n)}function vn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function dn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function mn(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function yn(n,t,e){return this instanceof yn?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof yn?new yn(n.r,n.g,n.b):_n(""+n,yn,cn):new yn(n,t,e)}function Mn(n){return new yn(n>>16,n>>8&255,255&n)}function xn(n){return Mn(n)+""}function bn(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function _n(n,t,e){var r,u,i,a=0,o=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))switch(u=r[2].split(","),r[1]){case"hsl":return e(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return t(Nn(u[0]),Nn(u[1]),Nn(u[2]))}return(i=ro.get(n))?t(i.r,i.g,i.b):(null==n||"#"!==n.charAt(0)||isNaN(i=parseInt(n.slice(1),16))||(4===n.length?(a=(3840&i)>>4,a=a>>4|a,o=240&i,o=o>>4|o,l=15&i,l=l<<4|l):7===n.length&&(a=(16711680&i)>>16,o=(65280&i)>>8,l=255&i)),t(a,o,l))}function wn(n,t,e){var r,u,i=Math.min(n/=255,t/=255,e/=255),a=Math.max(n,t,e),o=a-i,l=(a+i)/2;return o?(u=.5>l?o/(a+i):o/(2-a-i),r=n==a?(t-e)/o+(e>t?6:0):t==a?(e-n)/o+2:(n-t)/o+4,r*=60):(r=NaN,u=l>0&&1>l?0:r),new ln(r,u,l)}function Sn(n,t,e){n=kn(n),t=kn(t),e=kn(e);var r=dn((.4124564*n+.3575761*t+.1804375*e)/Ka),u=dn((.2126729*n+.7151522*t+.072175*e)/Qa),i=dn((.0193339*n+.119192*t+.9503041*e)/no);return hn(116*u-16,500*(r-u),200*(u-i))}function kn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Nn(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function En(n){return"function"==typeof n?n:function(){return n}}function An(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Cn(t,e,n,r)}}function Cn(n,t,e,r){function u(){var n,t=l.status;if(!t&&Ln(l)||t>=200&&300>t||304===t){try{n=e.call(i,l)}catch(r){return void a.error.call(i,r)}a.load.call(i,n)}else a.error.call(i,l)}var i={},a=oa.dispatch("beforesend","progress","load","error"),o={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(n)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=u:l.onreadystatechange=function(){l.readyState>3&&u()},l.onprogress=function(n){var t=oa.event;oa.event=n;try{a.progress.call(i,l)}finally{oa.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?o[n]:(null==t?delete o[n]:o[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.responseType=function(n){return arguments.length?(c=n,i):c},i.response=function(n){return e=n,i},["get","post"].forEach(function(n){i[n]=function(){return i.send.apply(i,[n].concat(ca(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),l.open(e,n,!0),null==t||"accept"in o||(o.accept=t+",*/*"),l.setRequestHeader)for(var s in o)l.setRequestHeader(s,o[s]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=c&&(l.responseType=c),null!=u&&i.on("error",u).on("load",function(n){u(null,n)}),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},oa.rebind(i,a,"on"),null==r?i:i.get(zn(r))}function zn(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function Ln(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qn(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var u=e+t,i={c:n,t:u,n:null};return io?io.n=i:uo=i,io=i,ao||(oo=clearTimeout(oo),ao=1,lo(Tn)),i}function Tn(){var n=Rn(),t=Dn()-n;t>24?(isFinite(t)&&(clearTimeout(oo),oo=setTimeout(Tn,t)),ao=0):(ao=1,lo(Tn))}function Rn(){for(var n=Date.now(),t=uo;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function Dn(){for(var n,t=uo,e=1/0;t;)t.c?(t.t<e&&(e=t.t),t=(n=t).n):t=n?n.n=t.n:uo=t.n;return io=n,e}function Pn(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function jn(n,t){var e=Math.pow(10,3*Ma(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}function Un(n){var t=n.decimal,e=n.thousands,r=n.grouping,u=n.currency,i=r&&e?function(n,t){for(var u=n.length,i=[],a=0,o=r[0],l=0;u>0&&o>0&&(l+o+1>t&&(o=Math.max(1,t-l)),i.push(n.substring(u-=o,u+o)),!((l+=o+1)>t));)o=r[a=(a+1)%r.length];return i.reverse().join(e)}:y;return function(n){var e=so.exec(n),r=e[1]||" ",a=e[2]||">",o=e[3]||"-",l=e[4]||"",c=e[5],s=+e[6],f=e[7],h=e[8],g=e[9],p=1,v="",d="",m=!1,y=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="="),g){case"n":f=!0,g="g";break;case"%":p=100,d="%",g="f";break;case"p":p=100,d="%",g="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+g.toLowerCase());case"c":y=!1;case"d":m=!0,h=0;break;case"s":p=-1,g="r"}"$"===l&&(v=u[0],d=u[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):("e"==g||"f"==g)&&(h=Math.max(0,Math.min(20,h)))),g=fo.get(g)||Fn;var M=c&&f;return function(n){var e=d;if(m&&n%1)return"";var u=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===o?"":o;if(0>p){var l=oa.formatPrefix(n,h);n=l.scale(n),e=l.symbol+d}else n*=p;n=g(n,h);var x,b,_=n.lastIndexOf(".");if(0>_){var w=y?n.lastIndexOf("e"):-1;0>w?(x=n,b=""):(x=n.substring(0,w),b=n.substring(w))}else x=n.substring(0,_),b=t+n.substring(_+1);!c&&f&&(x=i(x,1/0));var S=v.length+x.length+b.length+(M?0:u.length),k=s>S?new Array(S=s-S+1).join(r):"";return M&&(x=i(k+x,k.length?s-b.length:1/0)),u+=v,n=x+b,("<"===a?u+n+k:">"===a?k+u+n:"^"===a?k.substring(0,S>>=1)+u+n+k.substring(S):u+(M?n:k+n))+e}}}function Fn(n){return n+""}function Hn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function On(n,t,e){function r(t){var e=n(t),r=i(e,1);return r-t>t-e?e:r}function u(e){return t(e=n(new go(e-1)),1),e}function i(n,e){return t(n=new go(+n),e),n}function a(n,r,i){var a=u(n),o=[];if(i>1)for(;r>a;)e(a)%i||o.push(new Date(+a)),t(a,1);else for(;r>a;)o.push(new Date(+a)),t(a,1);return o}function o(n,t,e){try{go=Hn;var r=new Hn;return r._=n,a(r,t,e)}finally{go=Date}}n.floor=n,n.round=r,n.ceil=u,n.offset=i,n.range=a;var l=n.utc=In(n);return l.floor=l,l.round=In(r),l.ceil=In(u),l.offset=In(i),l.range=o,n}function In(n){return function(t,e){try{go=Hn;var r=new Hn;return r._=t,n(r,e)._}finally{go=Date}}}function Yn(n){function t(n){function t(t){for(var e,u,i,a=[],o=-1,l=0;++o<r;)37===n.charCodeAt(o)&&(a.push(n.slice(l,o)),null!=(u=vo[e=n.charAt(++o)])&&(e=n.charAt(++o)),(i=A[e])&&(e=i(t,null==u?"e"===e?" ":"0":u)),a.push(e),l=o+1);return a.push(n.slice(l,o)),a.join("")}var r=n.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},u=e(r,n,t,0);if(u!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&go!==Hn,a=new(i?Hn:go);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?a._:a},t.toString=function(){return n},t}function e(n,t,e,r){for(var u,i,a,o=0,l=t.length,c=e.length;l>o;){if(r>=c)return-1;if(u=t.charCodeAt(o++),37===u){if(a=t.charAt(o++),i=C[a in vo?t.charAt(o++):a],!i||(r=i(n,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){_.lastIndex=0;var r=_.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){x.lastIndex=0;var r=x.exec(t.slice(e));return r?(n.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){N.lastIndex=0;var r=N.exec(t.slice(e));return r?(n.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,r){return e(n,A.c.toString(),t,r)}function l(n,t,r){return e(n,A.x.toString(),t,r)}function c(n,t,r){return e(n,A.X.toString(),t,r)}function s(n,t,e){var r=M.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var f=n.dateTime,h=n.date,g=n.time,p=n.periods,v=n.days,d=n.shortDays,m=n.months,y=n.shortMonths;t.utc=function(n){function e(n){try{go=Hn;var t=new go;return t._=n,r(t)}finally{go=Date}}var r=t(n);return e.parse=function(n){try{go=Hn;var t=r.parse(n);return t&&t._}finally{go=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ct;var M=oa.map(),x=Vn(v),b=Xn(v),_=Vn(d),w=Xn(d),S=Vn(m),k=Xn(m),N=Vn(y),E=Xn(y);p.forEach(function(n,t){M.set(n.toLowerCase(),t)});var A={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return y[n.getMonth()]},B:function(n){return m[n.getMonth()]},c:t(f),d:function(n,t){return Zn(n.getDate(),t,2)},e:function(n,t){return Zn(n.getDate(),t,2)},H:function(n,t){return Zn(n.getHours(),t,2)},I:function(n,t){return Zn(n.getHours()%12||12,t,2)},j:function(n,t){return Zn(1+ho.dayOfYear(n),t,3)},L:function(n,t){return Zn(n.getMilliseconds(),t,3)},m:function(n,t){return Zn(n.getMonth()+1,t,2)},M:function(n,t){return Zn(n.getMinutes(),t,2)},p:function(n){return p[+(n.getHours()>=12)]},S:function(n,t){return Zn(n.getSeconds(),t,2)},U:function(n,t){return Zn(ho.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Zn(ho.mondayOfYear(n),t,2)},x:t(h),X:t(g),y:function(n,t){return Zn(n.getFullYear()%100,t,2)},Y:function(n,t){return Zn(n.getFullYear()%1e4,t,4)},Z:ot,"%":function(){return"%"}},C={a:r,A:u,b:i,B:a,c:o,d:tt,e:tt,H:rt,I:rt,j:et,L:at,m:nt,M:ut,p:s,S:it,U:Bn,w:$n,W:Wn,x:l,X:c,y:Gn,Y:Jn,Z:Kn,"%":lt};return t}function Zn(n,t,e){var r=0>n?"-":"",u=(r?-n:n)+"",i=u.length;return r+(e>i?new Array(e-i+1).join(t)+u:u)}function Vn(n){return new RegExp("^(?:"+n.map(oa.requote).join("|")+")","i")}function Xn(n){for(var t=new c,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function $n(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Bn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e));return r?(n.U=+r[0],e+r[0].length):-1}function Wn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e));return r?(n.W=+r[0],e+r[0].length):-1}function Jn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function Gn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.y=Qn(+r[0]),e+r[0].length):-1}function Kn(n,t,e){return/^[+-]\d{4}$/.test(t=t.slice(e,e+5))?(n.Z=-t,e+5):-1}function Qn(n){return n+(n>68?1900:2e3)}function nt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function tt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function et(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function rt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function ut(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function it(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function at(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function ot(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=Ma(t)/60|0,u=Ma(t)%60;return e+Zn(r,"0",2)+Zn(u,"0",2)}function lt(n,t,e){yo.lastIndex=0;var r=yo.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ct(n){for(var t=n.length,e=-1;++e<t;)n[e][0]=this(n[e][0]);return function(t){for(var e=0,r=n[e];!r[1](t);)r=n[++e];return r[0](t)}}function st(){}function ft(n,t,e){var r=e.s=n+t,u=r-n,i=r-u;e.t=n-i+(t-u)}function ht(n,t){n&&_o.hasOwnProperty(n.type)&&_o[n.type](n,t)}function gt(n,t,e){var r,u=-1,i=n.length-e;for(t.lineStart();++u<i;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function pt(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)gt(n[e],t,1);t.polygonEnd()}function vt(){function n(n,t){n*=Oa,t=t*Oa/2+ja/4;var e=n-r,a=e>=0?1:-1,o=a*e,l=Math.cos(t),c=Math.sin(t),s=i*c,f=u*l+s*Math.cos(o),h=s*a*Math.sin(o);So.add(Math.atan2(h,f)),r=n,u=l,i=c}var t,e,r,u,i;ko.point=function(a,o){ko.point=n,r=(t=a)*Oa,u=Math.cos(o=(e=o)*Oa/2+ja/4),i=Math.sin(o)},ko.lineEnd=function(){n(t,e)}}function dt(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function mt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function yt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Mt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function xt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function bt(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function _t(n){return[Math.atan2(n[1],n[0]),tn(n[2])]}function wt(n,t){return Ma(n[0]-t[0])<Da&&Ma(n[1]-t[1])<Da}function St(n,t){n*=Oa;var e=Math.cos(t*=Oa);kt(e*Math.cos(n),e*Math.sin(n),Math.sin(t))}function kt(n,t,e){++No,Ao+=(n-Ao)/No,Co+=(t-Co)/No,zo+=(e-zo)/No}function Nt(){function n(n,u){n*=Oa;var i=Math.cos(u*=Oa),a=i*Math.cos(n),o=i*Math.sin(n),l=Math.sin(u),c=Math.atan2(Math.sqrt((c=e*l-r*o)*c+(c=r*a-t*l)*c+(c=t*o-e*a)*c),t*a+e*o+r*l);Eo+=c,Lo+=c*(t+(t=a)),qo+=c*(e+(e=o)),To+=c*(r+(r=l)),kt(t,e,r)}var t,e,r;jo.point=function(u,i){u*=Oa;var a=Math.cos(i*=Oa);t=a*Math.cos(u),e=a*Math.sin(u),r=Math.sin(i),jo.point=n,kt(t,e,r)}}function Et(){jo.point=St}function At(){function n(n,t){n*=Oa;var e=Math.cos(t*=Oa),a=e*Math.cos(n),o=e*Math.sin(n),l=Math.sin(t),c=u*l-i*o,s=i*a-r*l,f=r*o-u*a,h=Math.sqrt(c*c+s*s+f*f),g=r*a+u*o+i*l,p=h&&-nn(g)/h,v=Math.atan2(h,g);Ro+=p*c,Do+=p*s,Po+=p*f,Eo+=v,Lo+=v*(r+(r=a)),qo+=v*(u+(u=o)),To+=v*(i+(i=l)),kt(r,u,i)}var t,e,r,u,i;jo.point=function(a,o){t=a,e=o,jo.point=n,a*=Oa;var l=Math.cos(o*=Oa);r=l*Math.cos(a),u=l*Math.sin(a),i=Math.sin(o),kt(r,u,i)},jo.lineEnd=function(){n(t,e),jo.lineEnd=Et,jo.point=St}}function Ct(n,t){function e(e,r){return e=n(e,r),t(e[0],e[1])}return n.invert&&t.invert&&(e.invert=function(e,r){return e=t.invert(e,r),e&&n.invert(e[0],e[1])}),e}function zt(){return!0}function Lt(n,t,e,r,u){var i=[],a=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,e=n[0],r=n[t];if(wt(e,r)){u.lineStart();for(var o=0;t>o;++o)u.point((e=n[o])[0],e[1]);return void u.lineEnd()}var l=new Tt(e,n,null,!0),c=new Tt(e,null,l,!1);l.o=c,i.push(l),a.push(c),l=new Tt(r,n,null,!1),c=new Tt(r,null,l,!0),l.o=c,i.push(l),a.push(c)}}),a.sort(t),qt(i),qt(a),i.length){for(var o=0,l=e,c=a.length;c>o;++o)a[o].e=l=!l;for(var s,f,h=i[0];;){for(var g=h,p=!0;g.v;)if((g=g.n)===h)return;s=g.z,u.lineStart();do{if(g.v=g.o.v=!0,g.e){if(p)for(var o=0,c=s.length;c>o;++o)u.point((f=s[o])[0],f[1]);else r(g.x,g.n.x,1,u);g=g.n}else{if(p){s=g.p.z;for(var o=s.length-1;o>=0;--o)u.point((f=s[o])[0],f[1])}else r(g.x,g.p.x,-1,u);g=g.p}g=g.o,s=g.z,p=!p}while(!g.v);u.lineEnd()}}}function qt(n){if(t=n.length){for(var t,e,r=0,u=n[0];++r<t;)u.n=e=n[r],e.p=u,u=e;u.n=e=n[0],e.p=u}}function Tt(n,t,e,r){this.x=n,this.z=t,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Rt(n,t,e,r){return function(u,i){function a(t,e){var r=u(t,e);n(t=r[0],e=r[1])&&i.point(t,e)}function o(n,t){var e=u(n,t);d.point(e[0],e[1])}function l(){y.point=o,d.lineStart()}function c(){y.point=a,d.lineEnd()}function s(n,t){v.push([n,t]);var e=u(n,t);x.point(e[0],e[1])}function f(){x.lineStart(),v=[]}function h(){s(v[0][0],v[0][1]),x.lineEnd();var n,t=x.clean(),e=M.buffer(),r=e.length;if(v.pop(),p.push(v),v=null,r)if(1&t){n=e[0];var u,r=n.length-1,a=-1;if(r>0){for(b||(i.polygonStart(),b=!0),i.lineStart();++a<r;)i.point((u=n[a])[0],u[1]);i.lineEnd()}}else r>1&&2&t&&e.push(e.pop().concat(e.shift())),g.push(e.filter(Dt))}var g,p,v,d=t(i),m=u.invert(r[0],r[1]),y={point:a,lineStart:l,lineEnd:c,polygonStart:function(){y.point=s,y.lineStart=f,y.lineEnd=h,g=[],p=[]},polygonEnd:function(){y.point=a,y.lineStart=l,y.lineEnd=c,g=oa.merge(g);var n=Ot(m,p);g.length?(b||(i.polygonStart(),b=!0),Lt(g,jt,n,e,i)):n&&(b||(i.polygonStart(),b=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),g=p=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}},M=Pt(),x=t(M),b=!1;return y}}function Dt(n){return n.length>1}function Pt(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:b,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function jt(n,t){return((n=n.x)[0]<0?n[1]-Ha-Da:Ha-n[1])-((t=t.x)[0]<0?t[1]-Ha-Da:Ha-t[1])}function Ut(n){var t,e=NaN,r=NaN,u=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(i,a){var o=i>0?ja:-ja,l=Ma(i-e);Ma(l-ja)<Da?(n.point(e,r=(r+a)/2>0?Ha:-Ha),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(o,r),n.point(i,r),t=0):u!==o&&l>=ja&&(Ma(e-u)<Da&&(e-=u*Da),Ma(i-o)<Da&&(i-=o*Da),r=Ft(e,r,i,a),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(o,r),t=0),n.point(e=i,r=a),u=o},lineEnd:function(){n.lineEnd(),e=r=NaN},clean:function(){return 2-t}}}function Ft(n,t,e,r){var u,i,a=Math.sin(n-e);return Ma(a)>Da?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(e)-Math.sin(r)*(u=Math.cos(t))*Math.sin(n))/(u*i*a)):(t+r)/2}function Ht(n,t,e,r){var u;if(null==n)u=e*Ha,r.point(-ja,u),r.point(0,u),r.point(ja,u),r.point(ja,0),r.point(ja,-u),r.point(0,-u),r.point(-ja,-u),r.point(-ja,0),r.point(-ja,u);else if(Ma(n[0]-t[0])>Da){var i=n[0]<t[0]?ja:-ja;u=e*i/2,r.point(-i,u),r.point(0,u),r.point(i,u)}else r.point(t[0],t[1])}function Ot(n,t){var e=n[0],r=n[1],u=[Math.sin(e),-Math.cos(e),0],i=0,a=0;So.reset();for(var o=0,l=t.length;l>o;++o){var c=t[o],s=c.length;if(s)for(var f=c[0],h=f[0],g=f[1]/2+ja/4,p=Math.sin(g),v=Math.cos(g),d=1;;){d===s&&(d=0),n=c[d];var m=n[0],y=n[1]/2+ja/4,M=Math.sin(y),x=Math.cos(y),b=m-h,_=b>=0?1:-1,w=_*b,S=w>ja,k=p*M;if(So.add(Math.atan2(k*_*Math.sin(w),v*x+k*Math.cos(w))),i+=S?b+_*Ua:b,S^h>=e^m>=e){var N=yt(dt(f),dt(n));bt(N);var E=yt(u,N);bt(E);var A=(S^b>=0?-1:1)*tn(E[2]);(r>A||r===A&&(N[0]||N[1]))&&(a+=S^b>=0?1:-1)}if(!d++)break;h=m,p=M,v=x,f=n}}return(-Da>i||Da>i&&0>So)^1&a}function It(n){function t(n,t){return Math.cos(n)*Math.cos(t)>i}function e(n){var e,i,l,c,s;return{lineStart:function(){c=l=!1,s=1},point:function(f,h){var g,p=[f,h],v=t(f,h),d=a?v?0:u(f,h):v?u(f+(0>f?ja:-ja),h):0;if(!e&&(c=l=v)&&n.lineStart(),v!==l&&(g=r(e,p),(wt(e,g)||wt(p,g))&&(p[0]+=Da,p[1]+=Da,v=t(p[0],p[1]))),v!==l)s=0,v?(n.lineStart(),g=r(p,e),n.point(g[0],g[1])):(g=r(e,p),n.point(g[0],g[1]),n.lineEnd()),e=g;else if(o&&e&&a^v){var m;d&i||!(m=r(p,e,!0))||(s=0,a?(n.lineStart(),n.point(m[0][0],m[0][1]),n.point(m[1][0],m[1][1]),n.lineEnd()):(n.point(m[1][0],m[1][1]),n.lineEnd(),n.lineStart(),n.point(m[0][0],m[0][1])))}!v||e&&wt(e,p)||n.point(p[0],p[1]),e=p,l=v,i=d},lineEnd:function(){l&&n.lineEnd(),e=null},clean:function(){return s|(c&&l)<<1}}}function r(n,t,e){var r=dt(n),u=dt(t),a=[1,0,0],o=yt(r,u),l=mt(o,o),c=o[0],s=l-c*c;if(!s)return!e&&n;var f=i*l/s,h=-i*c/s,g=yt(a,o),p=xt(a,f),v=xt(o,h);Mt(p,v);var d=g,m=mt(p,d),y=mt(d,d),M=m*m-y*(mt(p,p)-1);if(!(0>M)){var x=Math.sqrt(M),b=xt(d,(-m-x)/y);if(Mt(b,p),b=_t(b),!e)return b;var _,w=n[0],S=t[0],k=n[1],N=t[1];w>S&&(_=w,w=S,S=_);var E=S-w,A=Ma(E-ja)<Da,C=A||Da>E;if(!A&&k>N&&(_=k,k=N,N=_),C?A?k+N>0^b[1]<(Ma(b[0]-w)<Da?k:N):k<=b[1]&&b[1]<=N:E>ja^(w<=b[0]&&b[0]<=S)){var z=xt(d,(-m+x)/y);return Mt(z,p),[b,_t(z)]}}}function u(t,e){var r=a?n:ja-n,u=0;return-r>t?u|=1:t>r&&(u|=2),-r>e?u|=4:e>r&&(u|=8),u}var i=Math.cos(n),a=i>0,o=Ma(i)>Da,l=ve(n,6*Oa);return Rt(t,e,l,a?[0,-n]:[-ja,n-ja])}function Yt(n,t,e,r){return function(u){var i,a=u.a,o=u.b,l=a.x,c=a.y,s=o.x,f=o.y,h=0,g=1,p=s-l,v=f-c;if(i=n-l,p||!(i>0)){if(i/=p,0>p){if(h>i)return;g>i&&(g=i)}else if(p>0){if(i>g)return;i>h&&(h=i)}if(i=e-l,p||!(0>i)){if(i/=p,0>p){if(i>g)return;i>h&&(h=i)}else if(p>0){if(h>i)return;g>i&&(g=i)}if(i=t-c,v||!(i>0)){if(i/=v,0>v){if(h>i)return;g>i&&(g=i)}else if(v>0){if(i>g)return;i>h&&(h=i)}if(i=r-c,v||!(0>i)){if(i/=v,0>v){if(i>g)return;i>h&&(h=i)}else if(v>0){if(h>i)return;g>i&&(g=i)}return h>0&&(u.a={x:l+h*p,y:c+h*v}),1>g&&(u.b={x:l+g*p,y:c+g*v}),u}}}}}}function Zt(n,t,e,r){function u(r,u){return Ma(r[0]-n)<Da?u>0?0:3:Ma(r[0]-e)<Da?u>0?2:1:Ma(r[1]-t)<Da?u>0?1:0:u>0?3:2}function i(n,t){return a(n.x,t.x)}function a(n,t){var e=u(n,1),r=u(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(o){function l(n){for(var t=0,e=d.length,r=n[1],u=0;e>u;++u)for(var i,a=1,o=d[u],l=o.length,c=o[0];l>a;++a)i=o[a],c[1]<=r?i[1]>r&&Q(c,i,n)>0&&++t:i[1]<=r&&Q(c,i,n)<0&&--t,c=i;return 0!==t}function c(i,o,l,c){var s=0,f=0;if(null==i||(s=u(i,l))!==(f=u(o,l))||a(i,o)<0^l>0){do c.point(0===s||3===s?n:e,s>1?r:t);while((s=(s+l+4)%4)!==f)}else c.point(o[0],o[1])}function s(u,i){return u>=n&&e>=u&&i>=t&&r>=i}function f(n,t){s(n,t)&&o.point(n,t)}function h(){C.point=p,d&&d.push(m=[]),S=!0,w=!1,b=_=NaN}function g(){v&&(p(y,M),x&&w&&E.rejoin(),v.push(E.buffer())),C.point=f,w&&o.lineEnd()}function p(n,t){n=Math.max(-Fo,Math.min(Fo,n)),t=Math.max(-Fo,Math.min(Fo,t));var e=s(n,t);if(d&&m.push([n,t]),S)y=n,M=t,x=e,S=!1,e&&(o.lineStart(),o.point(n,t));else if(e&&w)o.point(n,t);else{var r={a:{x:b,y:_},b:{x:n,y:t}};A(r)?(w||(o.lineStart(),o.point(r.a.x,r.a.y)),o.point(r.b.x,r.b.y),e||o.lineEnd(),k=!1):e&&(o.lineStart(),o.point(n,t),k=!1)}b=n,_=t,w=e}var v,d,m,y,M,x,b,_,w,S,k,N=o,E=Pt(),A=Yt(n,t,e,r),C={point:f,lineStart:h,lineEnd:g,polygonStart:function(){o=E,v=[],d=[],k=!0},polygonEnd:function(){o=N,v=oa.merge(v);var t=l([n,r]),e=k&&t,u=v.length;(e||u)&&(o.polygonStart(),e&&(o.lineStart(),c(null,null,1,o),o.lineEnd()),u&&Lt(v,i,t,c,o),o.polygonEnd()),v=d=m=null}};return C}}function Vt(n){var t=0,e=ja/3,r=oe(n),u=r(t,e);return u.parallels=function(n){return arguments.length?r(t=n[0]*ja/180,e=n[1]*ja/180):[t/ja*180,e/ja*180]},u}function Xt(n,t){function e(n,t){var e=Math.sqrt(i-2*u*Math.sin(t))/u;return[e*Math.sin(n*=u),a-e*Math.cos(n)]}var r=Math.sin(n),u=(r+Math.sin(t))/2,i=1+r*(2*u-r),a=Math.sqrt(i)/u;return e.invert=function(n,t){var e=a-t;return[Math.atan2(n,e)/u,tn((i-(n*n+e*e)*u*u)/(2*u))]},e}function $t(){function n(n,t){Oo+=u*n-r*t,r=n,u=t}var t,e,r,u;Xo.point=function(i,a){Xo.point=n,t=r=i,e=u=a},Xo.lineEnd=function(){n(t,e)}}function Bt(n,t){Io>n&&(Io=n),n>Zo&&(Zo=n),Yo>t&&(Yo=t),t>Vo&&(Vo=t)}function Wt(){function n(n,t){a.push("M",n,",",t,i)}function t(n,t){a.push("M",n,",",t),o.point=e}function e(n,t){a.push("L",n,",",t)}function r(){o.point=n}function u(){a.push("Z")}var i=Jt(4.5),a=[],o={point:n,lineStart:function(){o.point=t},lineEnd:r,polygonStart:function(){o.lineEnd=u},polygonEnd:function(){o.lineEnd=r,o.point=n},pointRadius:function(n){return i=Jt(n),o},result:function(){if(a.length){var n=a.join("");return a=[],n}}};return o}function Jt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Gt(n,t){Ao+=n,Co+=t,++zo}function Kt(){function n(n,r){var u=n-t,i=r-e,a=Math.sqrt(u*u+i*i);Lo+=a*(t+n)/2,qo+=a*(e+r)/2,To+=a,Gt(t=n,e=r)}var t,e;Bo.point=function(r,u){Bo.point=n,Gt(t=r,e=u)}}function Qt(){Bo.point=Gt}function ne(){function n(n,t){var e=n-r,i=t-u,a=Math.sqrt(e*e+i*i);Lo+=a*(r+n)/2,qo+=a*(u+t)/2,To+=a,a=u*n-r*t,Ro+=a*(r+n),Do+=a*(u+t),Po+=3*a,Gt(r=n,u=t)}var t,e,r,u;Bo.point=function(i,a){Bo.point=n,Gt(t=r=i,e=u=a)},Bo.lineEnd=function(){n(t,e)}}function te(n){function t(t,e){n.moveTo(t+a,e),n.arc(t,e,a,0,Ua)}function e(t,e){n.moveTo(t,e),o.point=r}function r(t,e){n.lineTo(t,e)}function u(){o.point=t}function i(){n.closePath()}var a=4.5,o={point:t,lineStart:function(){o.point=e},lineEnd:u,polygonStart:function(){o.lineEnd=i},polygonEnd:function(){o.lineEnd=u,o.point=t},pointRadius:function(n){return a=n,o},result:b};return o}function ee(n){function t(n){return(o?r:e)(n)}function e(t){return ie(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){M=NaN,S.point=i,t.lineStart()}function i(e,r){var i=dt([e,r]),a=n(e,r);u(M,x,y,b,_,w,M=a[0],x=a[1],y=e,b=i[0],_=i[1],w=i[2],o,t),t.point(M,x)}function a(){S.point=e,t.lineEnd()}function l(){r(),S.point=c,S.lineEnd=s}function c(n,t){
i(f=n,h=t),g=M,p=x,v=b,d=_,m=w,S.point=i}function s(){u(M,x,y,b,_,w,g,p,f,v,d,m,o,t),S.lineEnd=a,a()}var f,h,g,p,v,d,m,y,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),S.lineStart=l},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function u(t,e,r,o,l,c,s,f,h,g,p,v,d,m){var y=s-t,M=f-e,x=y*y+M*M;if(x>4*i&&d--){var b=o+g,_=l+p,w=c+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),N=Ma(Ma(w)-1)<Da||Ma(r-h)<Da?(r+h)/2:Math.atan2(_,b),E=n(N,k),A=E[0],C=E[1],z=A-t,L=C-e,q=M*z-y*L;(q*q/x>i||Ma((y*z+M*L)/x-.5)>.3||a>o*g+l*p+c*v)&&(u(t,e,r,o,l,c,A,C,N,b/=S,_/=S,w,d,m),m.point(A,C),u(A,C,N,b,_,w,s,f,h,g,p,v,d,m))}}var i=.5,a=Math.cos(30*Oa),o=16;return t.precision=function(n){return arguments.length?(o=(i=n*n)>0&&16,t):Math.sqrt(i)},t}function re(n){var t=ee(function(t,e){return n([t*Ia,e*Ia])});return function(n){return le(t(n))}}function ue(n){this.stream=n}function ie(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function ae(n){return oe(function(){return n})()}function oe(n){function t(n){return n=o(n[0]*Oa,n[1]*Oa),[n[0]*h+l,c-n[1]*h]}function e(n){return n=o.invert((n[0]-l)/h,(c-n[1])/h),n&&[n[0]*Ia,n[1]*Ia]}function r(){o=Ct(a=fe(m,M,x),i);var n=i(v,d);return l=g-n[0]*h,c=p+n[1]*h,u()}function u(){return s&&(s.valid=!1,s=null),t}var i,a,o,l,c,s,f=ee(function(n,t){return n=i(n,t),[n[0]*h+l,c-n[1]*h]}),h=150,g=480,p=250,v=0,d=0,m=0,M=0,x=0,b=Uo,_=y,w=null,S=null;return t.stream=function(n){return s&&(s.valid=!1),s=le(b(a,f(_(n)))),s.valid=!0,s},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Uo):It((w=+n)*Oa),u()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Zt(n[0][0],n[0][1],n[1][0],n[1][1]):y,u()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Oa,d=n[1]%360*Oa,r()):[v*Ia,d*Ia]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Oa,M=n[1]%360*Oa,x=n.length>2?n[2]%360*Oa:0,r()):[m*Ia,M*Ia,x*Ia]},oa.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function le(n){return ie(n,function(t,e){n.point(t*Oa,e*Oa)})}function ce(n,t){return[n,t]}function se(n,t){return[n>ja?n-Ua:-ja>n?n+Ua:n,t]}function fe(n,t,e){return n?t||e?Ct(ge(n),pe(t,e)):ge(n):t||e?pe(t,e):se}function he(n){return function(t,e){return t+=n,[t>ja?t-Ua:-ja>t?t+Ua:t,e]}}function ge(n){var t=he(n);return t.invert=he(-n),t}function pe(n,t){function e(n,t){var e=Math.cos(t),o=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),s=c*r+o*u;return[Math.atan2(l*i-s*a,o*r-c*u),tn(s*i+l*a)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),a=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),o=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),s=c*i-l*a;return[Math.atan2(l*i+c*a,o*r+s*u),tn(s*r-o*u)]},e}function ve(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,a,o){var l=a*t;null!=u?(u=de(e,u),i=de(e,i),(a>0?i>u:u>i)&&(u+=a*Ua)):(u=n+a*Ua,i=n-.5*l);for(var c,s=u;a>0?s>i:i>s;s-=l)o.point((c=_t([e,-r*Math.cos(s),-r*Math.sin(s)]))[0],c[1])}}function de(n,t){var e=dt(t);e[0]-=n,bt(e);var r=nn(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Da)%(2*Math.PI)}function me(n,t,e){var r=oa.range(n,t-Da,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function ye(n,t,e){var r=oa.range(n,t-Da,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function Me(n){return n.source}function xe(n){return n.target}function be(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),a=Math.cos(r),o=Math.sin(r),l=u*Math.cos(n),c=u*Math.sin(n),s=a*Math.cos(e),f=a*Math.sin(e),h=2*Math.asin(Math.sqrt(an(r-t)+u*a*an(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*l+t*s,u=e*c+t*f,a=e*i+t*o;return[Math.atan2(u,r)*Ia,Math.atan2(a,Math.sqrt(r*r+u*u))*Ia]}:function(){return[n*Ia,t*Ia]};return p.distance=h,p}function _e(){function n(n,u){var i=Math.sin(u*=Oa),a=Math.cos(u),o=Ma((n*=Oa)-t),l=Math.cos(o);Wo+=Math.atan2(Math.sqrt((o=a*Math.sin(o))*o+(o=r*i-e*a*l)*o),e*i+r*a*l),t=n,e=i,r=a}var t,e,r;Jo.point=function(u,i){t=u*Oa,e=Math.sin(i*=Oa),r=Math.cos(i),Jo.point=n},Jo.lineEnd=function(){Jo.point=Jo.lineEnd=b}}function we(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),a=Math.cos(u);return[Math.atan2(n*i,r*a),Math.asin(r&&e*i/r)]},e}function Se(n,t){function e(n,t){a>0?-Ha+Da>t&&(t=-Ha+Da):t>Ha-Da&&(t=Ha-Da);var e=a/Math.pow(u(t),i);return[e*Math.sin(i*n),a-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(ja/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),a=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=a-t,r=K(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(a/r,1/i))-Ha]},e):Ne}function ke(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return Ma(u)<Da?ce:(e.invert=function(n,t){var e=i-t;return[Math.atan2(n,e)/u,i-K(u)*Math.sqrt(n*n+e*e)]},e)}function Ne(n,t){return[n,Math.log(Math.tan(ja/4+t/2))]}function Ee(n){var t,e=ae(n),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=u.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var a=i.apply(e,arguments);if(a===e){if(t=null==n){var o=ja*r(),l=u();i([[l[0]-o,l[1]-o],[l[0]+o,l[1]+o]])}}else t&&(a=null);return a},e.clipExtent(null)}function Ae(n,t){return[Math.log(Math.tan(ja/4+t/2)),-n]}function Ce(n){return n[0]}function ze(n){return n[1]}function Le(n){for(var t=n.length,e=[0,1],r=2,u=2;t>u;u++){for(;r>1&&Q(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function qe(n,t){return n[0]-t[0]||n[1]-t[1]}function Te(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Re(n,t,e,r){var u=n[0],i=e[0],a=t[0]-u,o=r[0]-i,l=n[1],c=e[1],s=t[1]-l,f=r[1]-c,h=(o*(l-c)-f*(u-i))/(f*a-o*s);return[u+h*a,l+h*s]}function De(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Pe(){rr(this),this.edge=this.site=this.circle=null}function je(n){var t=ll.pop()||new Pe;return t.site=n,t}function Ue(n){Be(n),il.remove(n),ll.push(n),rr(n)}function Fe(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,a=n.N,o=[n];Ue(n);for(var l=i;l.circle&&Ma(e-l.circle.x)<Da&&Ma(r-l.circle.cy)<Da;)i=l.P,o.unshift(l),Ue(l),l=i;o.unshift(l),Be(l);for(var c=a;c.circle&&Ma(e-c.circle.x)<Da&&Ma(r-c.circle.cy)<Da;)a=c.N,o.push(c),Ue(c),c=a;o.push(c),Be(c);var s,f=o.length;for(s=1;f>s;++s)c=o[s],l=o[s-1],nr(c.edge,l.site,c.site,u);l=o[0],c=o[f-1],c.edge=Ke(l.site,c.site,null,u),$e(l),$e(c)}function He(n){for(var t,e,r,u,i=n.x,a=n.y,o=il._;o;)if(r=Oe(o,a)-i,r>Da)o=o.L;else{if(u=i-Ie(o,a),!(u>Da)){r>-Da?(t=o.P,e=o):u>-Da?(t=o,e=o.N):t=e=o;break}if(!o.R){t=o;break}o=o.R}var l=je(n);if(il.insert(t,l),t||e){if(t===e)return Be(t),e=je(t.site),il.insert(l,e),l.edge=e.edge=Ke(t.site,l.site),$e(t),void $e(e);if(!e)return void(l.edge=Ke(t.site,l.site));Be(t),Be(e);var c=t.site,s=c.x,f=c.y,h=n.x-s,g=n.y-f,p=e.site,v=p.x-s,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,M=v*v+d*d,x={x:(d*y-g*M)/m+s,y:(h*M-v*y)/m+f};nr(e.edge,c,p,x),l.edge=Ke(c,n,null,x),e.edge=Ke(n,p,null,x),$e(t),$e(e)}}function Oe(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var a=n.P;if(!a)return-(1/0);e=a.site;var o=e.x,l=e.y,c=l-t;if(!c)return o;var s=o-r,f=1/i-1/c,h=s/c;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*c)-l+c/2+u-i/2)))/f+r:(r+o)/2}function Ie(n,t){var e=n.N;if(e)return Oe(e,t);var r=n.site;return r.y===t?r.x:1/0}function Ye(n){this.site=n,this.edges=[]}function Ze(n){for(var t,e,r,u,i,a,o,l,c,s,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=ul,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(o=i.edges,l=o.length,a=0;l>a;)s=o[a].end(),r=s.x,u=s.y,c=o[++a%l].start(),t=c.x,e=c.y,(Ma(r-t)>Da||Ma(u-e)>Da)&&(o.splice(a,0,new tr(Qe(i.site,s,Ma(r-f)<Da&&p-u>Da?{x:f,y:Ma(t-f)<Da?e:p}:Ma(u-p)<Da&&h-r>Da?{x:Ma(e-p)<Da?t:h,y:p}:Ma(r-h)<Da&&u-g>Da?{x:h,y:Ma(t-h)<Da?e:g}:Ma(u-g)<Da&&r-f>Da?{x:Ma(e-g)<Da?t:f,y:g}:null),i.site,null)),++l)}function Ve(n,t){return t.angle-n.angle}function Xe(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function $e(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,u=n.site,i=e.site;if(r!==i){var a=u.x,o=u.y,l=r.x-a,c=r.y-o,s=i.x-a,f=i.y-o,h=2*(l*f-c*s);if(!(h>=-Pa)){var g=l*l+c*c,p=s*s+f*f,v=(f*g-c*p)/h,d=(l*p-s*g)/h,f=d+o,m=cl.pop()||new Xe;m.arc=n,m.site=u,m.x=v+a,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,M=ol._;M;)if(m.y<M.y||m.y===M.y&&m.x<=M.x){if(!M.L){y=M.P;break}M=M.L}else{if(!M.R){y=M;break}M=M.R}ol.insert(y,m),y||(al=m)}}}}function Be(n){var t=n.circle;t&&(t.P||(al=t.N),ol.remove(t),cl.push(t),rr(t),n.circle=null)}function We(n){for(var t,e=rl,r=Yt(n[0][0],n[0][1],n[1][0],n[1][1]),u=e.length;u--;)t=e[u],(!Je(t,n)||!r(t)||Ma(t.a.x-t.b.x)<Da&&Ma(t.a.y-t.b.y)<Da)&&(t.a=t.b=null,e.splice(u,1))}function Je(n,t){var e=n.b;if(e)return!0;var r,u,i=n.a,a=t[0][0],o=t[1][0],l=t[0][1],c=t[1][1],s=n.l,f=n.r,h=s.x,g=s.y,p=f.x,v=f.y,d=(h+p)/2,m=(g+v)/2;if(v===g){if(a>d||d>=o)return;if(h>p){if(i){if(i.y>=c)return}else i={x:d,y:l};e={x:d,y:c}}else{if(i){if(i.y<l)return}else i={x:d,y:c};e={x:d,y:l}}}else if(r=(h-p)/(v-g),u=m-r*d,-1>r||r>1)if(h>p){if(i){if(i.y>=c)return}else i={x:(l-u)/r,y:l};e={x:(c-u)/r,y:c}}else{if(i){if(i.y<l)return}else i={x:(c-u)/r,y:c};e={x:(l-u)/r,y:l}}else if(v>g){if(i){if(i.x>=o)return}else i={x:a,y:r*a+u};e={x:o,y:r*o+u}}else{if(i){if(i.x<a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}return n.a=i,n.b=e,!0}function Ge(n,t){this.l=n,this.r=t,this.a=this.b=null}function Ke(n,t,e,r){var u=new Ge(n,t);return rl.push(u),e&&nr(u,n,t,e),r&&nr(u,t,n,r),ul[n.i].edges.push(new tr(u,n,t)),ul[t.i].edges.push(new tr(u,t,n)),u}function Qe(n,t,e){var r=new Ge(n,null);return r.a=t,r.b=e,rl.push(r),r}function nr(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function tr(n,t,e){var r=n.a,u=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(u.x-r.x,r.y-u.y):Math.atan2(r.x-u.x,u.y-r.y)}function er(){this._=null}function rr(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function ur(n,t){var e=t,r=t.R,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ir(n,t){var e=t,r=t.L,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function ar(n){for(;n.L;)n=n.L;return n}function or(n,t){var e,r,u,i=n.sort(lr).pop();for(rl=[],ul=new Array(n.length),il=new er,ol=new er;;)if(u=al,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))(i.x!==e||i.y!==r)&&(ul[i.i]=new Ye(i),He(i),e=i.x,r=i.y),i=n.pop();else{if(!u)break;Fe(u.arc)}t&&(We(t),Ze(t));var a={cells:ul,edges:rl};return il=ol=rl=ul=null,a}function lr(n,t){return t.y-n.y||t.x-n.x}function cr(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function sr(n){return n.x}function fr(n){return n.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gr(n,t,e,r,u,i){if(!n(t,e,r,u,i)){var a=.5*(e+u),o=.5*(r+i),l=t.nodes;l[0]&&gr(n,l[0],e,r,a,o),l[1]&&gr(n,l[1],a,r,u,o),l[2]&&gr(n,l[2],e,o,a,i),l[3]&&gr(n,l[3],a,o,u,i)}}function pr(n,t,e,r,u,i,a){var o,l=1/0;return function c(n,s,f,h,g){if(!(s>i||f>a||r>h||u>g)){if(p=n.point){var p,v=t-n.x,d=e-n.y,m=v*v+d*d;if(l>m){var y=Math.sqrt(l=m);r=t-y,u=e-y,i=t+y,a=e+y,o=p}}for(var M=n.nodes,x=.5*(s+h),b=.5*(f+g),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:c(n,s,f,x,b);break;case 1:c(n,x,f,h,b);break;case 2:c(n,s,b,x,g);break;case 3:c(n,x,b,h,g)}}}(n,r,u,i,a),o}function vr(n,t){n=oa.rgb(n),t=oa.rgb(t);var e=n.r,r=n.g,u=n.b,i=t.r-e,a=t.g-r,o=t.b-u;return function(n){return"#"+bn(Math.round(e+i*n))+bn(Math.round(r+a*n))+bn(Math.round(u+o*n))}}function dr(n,t){var e,r={},u={};for(e in n)e in t?r[e]=Mr(n[e],t[e]):u[e]=n[e];for(e in t)e in n||(u[e]=t[e]);return function(n){for(e in r)u[e]=r[e](n);return u}}function mr(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function yr(n,t){var e,r,u,i=fl.lastIndex=hl.lastIndex=0,a=-1,o=[],l=[];for(n+="",t+="";(e=fl.exec(n))&&(r=hl.exec(t));)(u=r.index)>i&&(u=t.slice(i,u),o[a]?o[a]+=u:o[++a]=u),(e=e[0])===(r=r[0])?o[a]?o[a]+=r:o[++a]=r:(o[++a]=null,l.push({i:a,x:mr(e,r)})),i=hl.lastIndex;return i<t.length&&(u=t.slice(i),o[a]?o[a]+=u:o[++a]=u),o.length<2?l[0]?(t=l[0].x,function(n){return t(n)+""}):function(){return t}:(t=l.length,function(n){for(var e,r=0;t>r;++r)o[(e=l[r]).i]=e.x(n);return o.join("")})}function Mr(n,t){for(var e,r=oa.interpolators.length;--r>=0&&!(e=oa.interpolators[r](n,t)););return e}function xr(n,t){var e,r=[],u=[],i=n.length,a=t.length,o=Math.min(n.length,t.length);for(e=0;o>e;++e)r.push(Mr(n[e],t[e]));for(;i>e;++e)u[e]=n[e];for(;a>e;++e)u[e]=t[e];return function(n){for(e=0;o>e;++e)u[e]=r[e](n);return u}}function br(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function _r(n){return function(t){return 1-n(1-t)}}function wr(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function Sr(n){return n*n}function kr(n){return n*n*n}function Nr(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function Er(n){return function(t){return Math.pow(t,n)}}function Ar(n){return 1-Math.cos(n*Ha)}function Cr(n){return Math.pow(2,10*(n-1))}function zr(n){return 1-Math.sqrt(1-n*n)}function Lr(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/Ua*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*Ua/t)}}function qr(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function Tr(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Rr(n,t){n=oa.hcl(n),t=oa.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,a=t.c-r,o=t.l-u;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return fn(e+i*n,r+a*n,u+o*n)+""}}function Dr(n,t){n=oa.hsl(n),t=oa.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,a=t.s-r,o=t.l-u;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return cn(e+i*n,r+a*n,u+o*n)+""}}function Pr(n,t){n=oa.lab(n),t=oa.lab(t);var e=n.l,r=n.a,u=n.b,i=t.l-e,a=t.a-r,o=t.b-u;return function(n){return gn(e+i*n,r+a*n,u+o*n)+""}}function jr(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function Ur(n){var t=[n.a,n.b],e=[n.c,n.d],r=Hr(t),u=Fr(t,e),i=Hr(Or(e,t,-u))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*Ia,this.translate=[n.e,n.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*Ia:0}function Fr(n,t){return n[0]*t[0]+n[1]*t[1]}function Hr(n){var t=Math.sqrt(Fr(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Or(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Ir(n){return n.length?n.pop()+",":""}function Yr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var u=e.push("translate(",null,",",null,")");r.push({i:u-4,x:mr(n[0],t[0])},{i:u-2,x:mr(n[1],t[1])})}else(t[0]||t[1])&&e.push("translate("+t+")")}function Zr(n,t,e,r){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),r.push({i:e.push(Ir(e)+"rotate(",null,")")-2,x:mr(n,t)})):t&&e.push(Ir(e)+"rotate("+t+")")}function Vr(n,t,e,r){n!==t?r.push({i:e.push(Ir(e)+"skewX(",null,")")-2,x:mr(n,t)}):t&&e.push(Ir(e)+"skewX("+t+")")}function Xr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var u=e.push(Ir(e)+"scale(",null,",",null,")");r.push({i:u-4,x:mr(n[0],t[0])},{i:u-2,x:mr(n[1],t[1])})}else(1!==t[0]||1!==t[1])&&e.push(Ir(e)+"scale("+t+")")}function $r(n,t){var e=[],r=[];return n=oa.transform(n),t=oa.transform(t),Yr(n.translate,t.translate,e,r),Zr(n.rotate,t.rotate,e,r),Vr(n.skew,t.skew,e,r),Xr(n.scale,t.scale,e,r),n=t=null,function(n){for(var t,u=-1,i=r.length;++u<i;)e[(t=r[u]).i]=t.x(n);return e.join("")}}function Br(n,t){return t=(t-=n=+n)||1/t,function(e){return(e-n)/t}}function Wr(n,t){return t=(t-=n=+n)||1/t,function(e){return Math.max(0,Math.min(1,(e-n)/t))}}function Jr(n){for(var t=n.source,e=n.target,r=Kr(t,e),u=[t];t!==r;)t=t.parent,u.push(t);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function Gr(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Kr(n,t){if(n===t)return n;for(var e=Gr(n),r=Gr(t),u=e.pop(),i=r.pop(),a=null;u===i;)a=u,u=e.pop(),i=r.pop();return a}function Qr(n){n.fixed|=2}function nu(n){n.fixed&=-7}function tu(n){n.fixed|=4,n.px=n.x,n.py=n.y}function eu(n){n.fixed&=-5}function ru(n,t,e){var r=0,u=0;if(n.charge=0,!n.leaf)for(var i,a=n.nodes,o=a.length,l=-1;++l<o;)i=a[l],null!=i&&(ru(i,t,e),n.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var c=t*e[n.point.index];n.charge+=n.pointCharge=c,r+=c*n.point.x,u+=c*n.point.y}n.cx=r/n.charge,n.cy=u/n.charge}function uu(n,t){return oa.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=su,n}function iu(n,t){for(var e=[n];null!=(n=e.pop());)if(t(n),(u=n.children)&&(r=u.length))for(var r,u;--r>=0;)e.push(u[r])}function au(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(i=n.children)&&(u=i.length))for(var u,i,a=-1;++a<u;)e.push(i[a]);for(;null!=(n=r.pop());)t(n)}function ou(n){return n.children}function lu(n){return n.value}function cu(n,t){return t.value-n.value}function su(n){return oa.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function fu(n){return n.x}function hu(n){return n.y}function gu(n,t,e){n.y0=t,n.y=e}function pu(n){return oa.range(n.length)}function vu(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function du(n){for(var t,e=1,r=0,u=n[0][1],i=n.length;i>e;++e)(t=n[e][1])>u&&(r=e,u=t);return r}function mu(n){return n.reduce(yu,0)}function yu(n,t){return n+t[1]}function Mu(n,t){return xu(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function xu(n,t){for(var e=-1,r=+n[0],u=(n[1]-r)/t,i=[];++e<=t;)i[e]=u*e+r;return i}function bu(n){return[oa.min(n),oa.max(n)]}function _u(n,t){return n.value-t.value}function wu(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Su(n,t){n._pack_next=t,t._pack_prev=n}function ku(n,t){var e=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>e*e+r*r}function Nu(n){function t(n){s=Math.min(n.x-n.r,s),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(c=e.length)){var e,r,u,i,a,o,l,c,s=1/0,f=-(1/0),h=1/0,g=-(1/0);if(e.forEach(Eu),r=e[0],r.x=-r.r,r.y=0,t(r),c>1&&(u=e[1],u.x=u.r,u.y=0,t(u),c>2))for(i=e[2],zu(r,u,i),t(i),wu(r,i),r._pack_prev=i,wu(i,u),u=r._pack_next,a=3;c>a;a++){zu(r,u,i=e[a]);var p=0,v=1,d=1;for(o=u._pack_next;o!==u;o=o._pack_next,v++)if(ku(o,i)){p=1;break}if(1==p)for(l=r._pack_prev;l!==o._pack_prev&&!ku(l,i);l=l._pack_prev,d++);p?(d>v||v==d&&u.r<r.r?Su(r,u=o):Su(r=l,u),a--):(wu(r,i),u=i,t(i))}var m=(s+f)/2,y=(h+g)/2,M=0;for(a=0;c>a;a++)i=e[a],i.x-=m,i.y-=y,M=Math.max(M,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=M,e.forEach(Au)}}function Eu(n){n._pack_next=n._pack_prev=n}function Au(n){delete n._pack_next,delete n._pack_prev}function Cu(n,t,e,r){var u=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,u)for(var i=-1,a=u.length;++i<a;)Cu(u[i],t,e,r)}function zu(n,t,e){var r=n.r+e.r,u=t.x-n.x,i=t.y-n.y;if(r&&(u||i)){var a=t.r+e.r,o=u*u+i*i;a*=a,r*=r;var l=.5+(r-a)/(2*o),c=Math.sqrt(Math.max(0,2*a*(r+o)-(r-=o)*r-a*a))/(2*o);e.x=n.x+l*u+c*i,e.y=n.y+l*i-c*u}else e.x=n.x+r,e.y=n.y}function Lu(n,t){return n.parent==t.parent?1:2}function qu(n){var t=n.children;return t.length?t[0]:n.t}function Tu(n){var t,e=n.children;return(t=e.length)?e[t-1]:n.t}function Ru(n,t,e){var r=e/(t.i-n.i);t.c-=r,t.s+=e,n.c+=r,t.z+=e,t.m+=e}function Du(n){for(var t,e=0,r=0,u=n.children,i=u.length;--i>=0;)t=u[i],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Pu(n,t,e){return n.a.parent===t.parent?n.a:e}function ju(n){return 1+oa.max(n,function(n){return n.y})}function Uu(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Fu(n){var t=n.children;return t&&t.length?Fu(t[0]):n}function Hu(n){var t,e=n.children;return e&&(t=e.length)?Hu(e[t-1]):n}function Ou(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Iu(n,t){var e=n.x+t[3],r=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function Yu(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Zu(n){return n.rangeExtent?n.rangeExtent():Yu(n.range())}function Vu(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}function Xu(n,t){var e,r=0,u=n.length-1,i=n[r],a=n[u];return i>a&&(e=r,r=u,u=e,e=i,i=a,a=e),n[r]=t.floor(i),n[u]=t.ceil(a),n}function $u(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:wl}function Bu(n,t,e,r){var u=[],i=[],a=0,o=Math.min(n.length,t.length)-1;for(n[o]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<=o;)u.push(e(n[a-1],n[a])),i.push(r(t[a-1],t[a]));return function(t){var e=oa.bisect(n,t,1,o)-1;return i[e](u[e](t))}}function Wu(n,t,e,r){function u(){var u=Math.min(n.length,t.length)>2?Bu:Vu,l=r?Wr:Br;return a=u(n,t,l,e),o=u(t,n,l,Mr),i}function i(n){return a(n)}var a,o;return i.invert=function(n){return o(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(jr)},i.clamp=function(n){return arguments.length?(r=n,u()):r},i.interpolate=function(n){return arguments.length?(e=n,u()):e},i.ticks=function(t){return Qu(n,t)},i.tickFormat=function(t,e){return ni(n,t,e)},i.nice=function(t){return Gu(n,t),u()},i.copy=function(){return Wu(n,t,e,r)},u()}function Ju(n,t){return oa.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Gu(n,t){return Xu(n,$u(Ku(n,t)[2])),Xu(n,$u(Ku(n,t)[2])),n}function Ku(n,t){null==t&&(t=10);var e=Yu(n),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function Qu(n,t){return oa.range.apply(oa,Ku(n,t))}function ni(n,t,e){var r=Ku(n,t);if(e){var u=so.exec(e);if(u.shift(),"s"===u[8]){var i=oa.formatPrefix(Math.max(Ma(r[0]),Ma(r[1])));return u[7]||(u[7]="."+ti(i.scale(r[2]))),u[8]="f",e=oa.format(u.join("")),function(n){return e(i.scale(n))+i.symbol}}u[7]||(u[7]="."+ei(u[8],r)),e=u.join("")}else e=",."+ti(r[2])+"f";return oa.format(e)}function ti(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function ei(n,t){var e=ti(t[2]);return n in Sl?Math.abs(e-ti(Math.max(Ma(t[0]),Ma(t[1]))))+ +("e"!==n):e-2*("%"===n)}function ri(n,t,e,r){function u(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function a(t){return n(u(t))}return a.invert=function(t){return i(n.invert(t))},a.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(u)),a):r},a.base=function(e){return arguments.length?(t=+e,n.domain(r.map(u)),a):t},a.nice=function(){var t=Xu(r.map(u),e?Math:Nl);return n.domain(t),r=t.map(i),a},a.ticks=function(){var n=Yu(r),a=[],o=n[0],l=n[1],c=Math.floor(u(o)),s=Math.ceil(u(l)),f=t%1?2:t;if(isFinite(s-c)){if(e){for(;s>c;c++)for(var h=1;f>h;h++)a.push(i(c)*h);a.push(i(c))}else for(a.push(i(c));c++<s;)for(var h=f-1;h>0;h--)a.push(i(c)*h);for(c=0;a[c]<o;c++);for(s=a.length;a[s-1]>l;s--);a=a.slice(c,s)}return a},a.tickFormat=function(n,e){if(!arguments.length)return kl;arguments.length<2?e=kl:"function"!=typeof e&&(e=oa.format(e));var r=Math.max(1,t*n/a.ticks().length);return function(n){var a=n/i(Math.round(u(n)));return t-.5>a*t&&(a*=t),r>=a?e(n):""}},a.copy=function(){return ri(n.copy(),t,e,r)},Ju(a,n)}function ui(n,t,e){function r(t){return n(u(t))}var u=ii(t),i=ii(1/t);return r.invert=function(t){return i(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(u)),r):e},r.ticks=function(n){return Qu(e,n)},r.tickFormat=function(n,t){return ni(e,n,t)},r.nice=function(n){return r.domain(Gu(e,n))},r.exponent=function(a){return arguments.length?(u=ii(t=a),i=ii(1/t),n.domain(e.map(u)),r):t},r.copy=function(){return ui(n.copy(),t,e)},Ju(r,n)}function ii(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function ai(n,t){function e(e){return i[((u.get(e)||("range"===t.t?u.set(e,n.push(e)):NaN))-1)%i.length]}function r(t,e){return oa.range(n.length).map(function(n){return t+e*n})}var u,i,a;return e.domain=function(r){if(!arguments.length)return n;n=[],u=new c;for(var i,a=-1,o=r.length;++a<o;)u.has(i=r[a])||u.set(i,n.push(i));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(i=n,a=0,t={t:"range",a:arguments},e):i},e.rangePoints=function(u,o){arguments.length<2&&(o=0);var l=u[0],c=u[1],s=n.length<2?(l=(l+c)/2,0):(c-l)/(n.length-1+o);return i=r(l+s*o/2,s),a=0,t={t:"rangePoints",a:arguments},e},e.rangeRoundPoints=function(u,o){arguments.length<2&&(o=0);var l=u[0],c=u[1],s=n.length<2?(l=c=Math.round((l+c)/2),0):(c-l)/(n.length-1+o)|0;return i=r(l+Math.round(s*o/2+(c-l-(n.length-1+o)*s)/2),s),a=0,t={t:"rangeRoundPoints",a:arguments},e},e.rangeBands=function(u,o,l){arguments.length<2&&(o=0),arguments.length<3&&(l=o);var c=u[1]<u[0],s=u[c-0],f=u[1-c],h=(f-s)/(n.length-o+2*l);return i=r(s+h*l,h),c&&i.reverse(),a=h*(1-o),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(u,o,l){arguments.length<2&&(o=0),arguments.length<3&&(l=o);var c=u[1]<u[0],s=u[c-0],f=u[1-c],h=Math.floor((f-s)/(n.length-o+2*l));return i=r(s+Math.round((f-s-(n.length-o)*h)/2),h),c&&i.reverse(),a=Math.round(h*(1-o)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return a},e.rangeExtent=function(){return Yu(t.a[0])},e.copy=function(){return ai(n,t)},e.domain(n)}function oi(n,t){function i(){var e=0,r=t.length;for(o=[];++e<r;)o[e-1]=oa.quantile(n,e/r);return a}function a(n){return isNaN(n=+n)?void 0:t[oa.bisect(o,n)]}var o;return a.domain=function(t){return arguments.length?(n=t.map(r).filter(u).sort(e),i()):n},a.range=function(n){return arguments.length?(t=n,i()):t},a.quantiles=function(){return o},a.invertExtent=function(e){return e=t.indexOf(e),0>e?[NaN,NaN]:[e>0?o[e-1]:n[0],e<o.length?o[e]:n[n.length-1]]},a.copy=function(){return oi(n,t)},i()}function li(n,t,e){function r(t){return e[Math.max(0,Math.min(a,Math.floor(i*(t-n))))]}function u(){return i=e.length/(t-n),a=e.length-1,r}var i,a;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],u()):[n,t]},r.range=function(n){return arguments.length?(e=n,u()):e},r.invertExtent=function(t){return t=e.indexOf(t),t=0>t?NaN:t/i+n,[t,t+1/i]},r.copy=function(){return li(n,t,e)},u()}function ci(n,t){function e(e){return e>=e?t[oa.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return ci(n,t)},e}function si(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Qu(n,t)},t.tickFormat=function(t,e){return ni(n,t,e)},t.copy=function(){return si(n)},t}function fi(){return 0}function hi(n){return n.innerRadius}function gi(n){return n.outerRadius}function pi(n){return n.startAngle}function vi(n){return n.endAngle}function di(n){return n&&n.padAngle}function mi(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function yi(n,t,e,r,u){var i=n[0]-t[0],a=n[1]-t[1],o=(u?r:-r)/Math.sqrt(i*i+a*a),l=o*a,c=-o*i,s=n[0]+l,f=n[1]+c,h=t[0]+l,g=t[1]+c,p=(s+h)/2,v=(f+g)/2,d=h-s,m=g-f,y=d*d+m*m,M=e-r,x=s*g-h*f,b=(0>m?-1:1)*Math.sqrt(Math.max(0,M*M*y-x*x)),_=(x*m-d*b)/y,w=(-x*d-m*b)/y,S=(x*m+d*b)/y,k=(-x*d+m*b)/y,N=_-p,E=w-v,A=S-p,C=k-v;return N*N+E*E>A*A+C*C&&(_=S,w=k),[[_-l,w-c],[_*e/M,w*e/M]]}function Mi(n){function t(t){function a(){c.push("M",i(n(s),o))}for(var l,c=[],s=[],f=-1,h=t.length,g=En(e),p=En(r);++f<h;)u.call(this,l=t[f],f)?s.push([+g.call(this,l,f),+p.call(this,l,f)]):s.length&&(a(),s=[]);return s.length&&a(),c.length?c.join(""):null}var e=Ce,r=ze,u=zt,i=xi,a=i.key,o=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(a="function"==typeof n?i=n:(i=ql.get(n)||xi).key,t):a},t.tension=function(n){return arguments.length?(o=n,t):o},t}function xi(n){return n.length>1?n.join("L"):n+"Z"}function bi(n){return n.join("L")+"Z"}function _i(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&u.push("H",r[0]),u.join("")}function wi(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("V",(r=n[t])[1],"H",r[0]);return u.join("")}function Si(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r=n[t])[0],"V",r[1]);return u.join("")}function ki(n,t){return n.length<4?xi(n):n[1]+Ai(n.slice(1,-1),Ci(n,t))}function Ni(n,t){return n.length<3?bi(n):n[0]+Ai((n.push(n[0]),n),Ci([n[n.length-2]].concat(n,[n[1]]),t))}function Ei(n,t){return n.length<3?xi(n):n[0]+Ai(n,Ci(n,t))}function Ai(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return xi(n);var e=n.length!=t.length,r="",u=n[0],i=n[1],a=t[0],o=a,l=1;if(e&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],u=n[1],l=2),t.length>1){o=t[1],i=n[l],l++,r+="C"+(u[0]+a[0])+","+(u[1]+a[1])+","+(i[0]-o[0])+","+(i[1]-o[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,l++)i=n[l],o=t[c],r+="S"+(i[0]-o[0])+","+(i[1]-o[1])+","+i[0]+","+i[1]}if(e){var s=n[l];r+="Q"+(i[0]+2*o[0]/3)+","+(i[1]+2*o[1]/3)+","+s[0]+","+s[1]}return r}function Ci(n,t){for(var e,r=[],u=(1-t)/2,i=n[0],a=n[1],o=1,l=n.length;++o<l;)e=i,i=a,a=n[o],r.push([u*(a[0]-e[0]),u*(a[1]-e[1])]);return r}function zi(n){if(n.length<3)return xi(n);var t=1,e=n.length,r=n[0],u=r[0],i=r[1],a=[u,u,u,(r=n[1])[0]],o=[i,i,i,r[1]],l=[u,",",i,"L",Ri(Dl,a),",",Ri(Dl,o)];for(n.push(n[e-1]);++t<=e;)r=n[t],a.shift(),a.push(r[0]),o.shift(),o.push(r[1]),Di(l,a,o);return n.pop(),l.push("L",r),l.join("")}function Li(n){if(n.length<4)return xi(n);for(var t,e=[],r=-1,u=n.length,i=[0],a=[0];++r<3;)t=n[r],i.push(t[0]),a.push(t[1]);for(e.push(Ri(Dl,i)+","+Ri(Dl,a)),--r;++r<u;)t=n[r],i.shift(),i.push(t[0]),a.shift(),a.push(t[1]),Di(e,i,a);return e.join("")}function qi(n){for(var t,e,r=-1,u=n.length,i=u+4,a=[],o=[];++r<4;)e=n[r%u],a.push(e[0]),o.push(e[1]);for(t=[Ri(Dl,a),",",Ri(Dl,o)],--r;++r<i;)e=n[r%u],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Di(t,a,o);return t.join("")}function Ti(n,t){var e=n.length-1;if(e)for(var r,u,i=n[0][0],a=n[0][1],o=n[e][0]-i,l=n[e][1]-a,c=-1;++c<=e;)r=n[c],u=c/e,r[0]=t*r[0]+(1-t)*(i+u*o),r[1]=t*r[1]+(1-t)*(a+u*l);return zi(n)}function Ri(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function Di(n,t,e){n.push("C",Ri(Tl,t),",",Ri(Tl,e),",",Ri(Rl,t),",",Ri(Rl,e),",",Ri(Dl,t),",",Ri(Dl,e))}function Pi(n,t){return(t[1]-n[1])/(t[0]-n[0])}function ji(n){for(var t=0,e=n.length-1,r=[],u=n[0],i=n[1],a=r[0]=Pi(u,i);++t<e;)r[t]=(a+(a=Pi(u=i,i=n[t+1])))/2;return r[t]=a,r}function Ui(n){for(var t,e,r,u,i=[],a=ji(n),o=-1,l=n.length-1;++o<l;)t=Pi(n[o],n[o+1]),Ma(t)<Da?a[o]=a[o+1]=0:(e=a[o]/t,r=a[o+1]/t,u=e*e+r*r,u>9&&(u=3*t/Math.sqrt(u),a[o]=u*e,a[o+1]=u*r));for(o=-1;++o<=l;)u=(n[Math.min(l,o+1)][0]-n[Math.max(0,o-1)][0])/(6*(1+a[o]*a[o])),i.push([u||0,a[o]*u||0]);return i}function Fi(n){return n.length<3?xi(n):n[0]+Ai(n,Ui(n))}function Hi(n){for(var t,e,r,u=-1,i=n.length;++u<i;)t=n[u],e=t[0],r=t[1]-Ha,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Oi(n){function t(t){function l(){v.push("M",o(n(m),f),s,c(n(d.reverse()),f),"Z")}for(var h,g,p,v=[],d=[],m=[],y=-1,M=t.length,x=En(e),b=En(u),_=e===r?function(){
return g}:En(r),w=u===i?function(){return p}:En(i);++y<M;)a.call(this,h=t[y],y)?(d.push([g=+x.call(this,h,y),p=+b.call(this,h,y)]),m.push([+_.call(this,h,y),+w.call(this,h,y)])):d.length&&(l(),d=[],m=[]);return d.length&&l(),v.length?v.join(""):null}var e=Ce,r=Ce,u=0,i=ze,a=zt,o=xi,l=o.key,c=o,s="L",f=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(u=i=n,t):i},t.y0=function(n){return arguments.length?(u=n,t):u},t.y1=function(n){return arguments.length?(i=n,t):i},t.defined=function(n){return arguments.length?(a=n,t):a},t.interpolate=function(n){return arguments.length?(l="function"==typeof n?o=n:(o=ql.get(n)||xi).key,c=o.reverse||o,s=o.closed?"M":"L",t):l},t.tension=function(n){return arguments.length?(f=n,t):f},t}function Ii(n){return n.radius}function Yi(n){return[n.x,n.y]}function Zi(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]-Ha;return[e*Math.cos(r),e*Math.sin(r)]}}function Vi(){return 64}function Xi(){return"circle"}function $i(n){var t=Math.sqrt(n/ja);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Bi(n){return function(){var t,e,r;(t=this[n])&&(r=t[e=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[e]:delete this[n],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Wi(n,t,e){return Sa(n,Il),n.namespace=t,n.id=e,n}function Ji(n,t,e,r){var u=n.id,i=n.namespace;return Y(n,"function"==typeof e?function(n,a,o){n[i][u].tween.set(t,r(e.call(n,n.__data__,a,o)))}:(e=r(e),function(n){n[i][u].tween.set(t,e)}))}function Gi(n){return null==n&&(n=""),function(){this.textContent=n}}function Ki(n){return null==n?"__transition__":"__transition_"+n+"__"}function Qi(n,t,e,r,u){function i(n){var t=v.delay;return s.t=t+l,n>=t?a(n-t):void(s.c=a)}function a(e){var u=p.active,i=p[u];i&&(i.timer.c=null,i.timer.t=NaN,--p.count,delete p[u],i.event&&i.event.interrupt.call(n,n.__data__,i.index));for(var a in p)if(r>+a){var c=p[a];c.timer.c=null,c.timer.t=NaN,--p.count,delete p[a]}s.c=o,qn(function(){return s.c&&o(e||1)&&(s.c=null,s.t=NaN),1},0,l),p.active=r,v.event&&v.event.start.call(n,n.__data__,t),g=[],v.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&g.push(r)}),h=v.ease,f=v.duration}function o(u){for(var i=u/f,a=h(i),o=g.length;o>0;)g[--o].call(n,a);return i>=1?(v.event&&v.event.end.call(n,n.__data__,t),--p.count?delete p[r]:delete n[e],1):void 0}var l,s,f,h,g,p=n[e]||(n[e]={active:0,count:0}),v=p[r];v||(l=u.time,s=qn(i,0,l),v=p[r]={tween:new c,time:l,timer:s,delay:u.delay,duration:u.duration,ease:u.ease,index:t},u=null,++p.count)}function na(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function ta(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function ea(n){return n.toISOString()}function ra(n,t,e){function r(t){return n(t)}function u(n,e){var r=n[1]-n[0],u=r/e,i=oa.bisect(Gl,u);return i==Gl.length?[t.year,Ku(n.map(function(n){return n/31536e6}),e)[2]]:i?t[u/Gl[i-1]<Gl[i]/u?i-1:i]:[nc,Ku(n,e)[2]]}return r.invert=function(t){return ua(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(ua)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,ua(+e+1),t).length}var i=r.domain(),a=Yu(i),o=null==n?u(a,10):"number"==typeof n&&u(a,n);return o&&(n=o[0],t=o[1]),r.domain(Xu(i,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=ua(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=ua(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Yu(r.domain()),i=null==n?u(e,10):"number"==typeof n?u(e,n):!n.range&&[{range:n},t];return i&&(n=i[0],t=i[1]),n.range(e[0],ua(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return ra(n.copy(),t,e)},Ju(r,n)}function ua(n){return new Date(n)}function ia(n){return JSON.parse(n.responseText)}function aa(n){var t=sa.createRange();return t.selectNode(sa.body),t.createContextualFragment(n.responseText)}var oa={version:"3.5.12"},la=[].slice,ca=function(n){return la.call(n)},sa=window.document;if(sa)try{ca(sa.documentElement.childNodes)[0].nodeType}catch(fa){ca=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),sa)try{sa.createElement("DIV").style.setProperty("opacity",0,"")}catch(ha){var ga=this.Element.prototype,pa=ga.setAttribute,va=ga.setAttributeNS,da=this.CSSStyleDeclaration.prototype,ma=da.setProperty;ga.setAttribute=function(n,t){pa.call(this,n,t+"")},ga.setAttributeNS=function(n,t,e){va.call(this,n,t,e+"")},da.setProperty=function(n,t,e){ma.call(this,n,t+"",e)}}oa.ascending=e,oa.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},oa.min=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&e>r&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&e>r&&(e=r)}return e},oa.max=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&r>e&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&r>e&&(e=r)}return e},oa.extent=function(n,t){var e,r,u,i=-1,a=n.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=n[i])&&r>=r){e=u=r;break}for(;++i<a;)null!=(r=n[i])&&(e>r&&(e=r),r>u&&(u=r))}else{for(;++i<a;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=u=r;break}for(;++i<a;)null!=(r=t.call(n,n[i],i))&&(e>r&&(e=r),r>u&&(u=r))}return[e,u]},oa.sum=function(n,t){var e,r=0,i=n.length,a=-1;if(1===arguments.length)for(;++a<i;)u(e=+n[a])&&(r+=e);else for(;++a<i;)u(e=+t.call(n,n[a],a))&&(r+=e);return r},oa.mean=function(n,t){var e,i=0,a=n.length,o=-1,l=a;if(1===arguments.length)for(;++o<a;)u(e=r(n[o]))?i+=e:--l;else for(;++o<a;)u(e=r(t.call(n,n[o],o)))?i+=e:--l;return l?i/l:void 0},oa.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),u=+n[r-1],i=e-r;return i?u+i*(n[r]-u):u},oa.median=function(n,t){var i,a=[],o=n.length,l=-1;if(1===arguments.length)for(;++l<o;)u(i=r(n[l]))&&a.push(i);else for(;++l<o;)u(i=r(t.call(n,n[l],l)))&&a.push(i);return a.length?oa.quantile(a.sort(e),.5):void 0},oa.variance=function(n,t){var e,i,a=n.length,o=0,l=0,c=-1,s=0;if(1===arguments.length)for(;++c<a;)u(e=r(n[c]))&&(i=e-o,o+=i/++s,l+=i*(e-o));else for(;++c<a;)u(e=r(t.call(n,n[c],c)))&&(i=e-o,o+=i/++s,l+=i*(e-o));return s>1?l/(s-1):void 0},oa.deviation=function(){var n=oa.variance.apply(this,arguments);return n?Math.sqrt(n):n};var ya=i(e);oa.bisectLeft=ya.left,oa.bisect=oa.bisectRight=ya.right,oa.bisector=function(n){return i(1===n.length?function(t,r){return e(n(t),r)}:n)},oa.shuffle=function(n,t,e){(i=arguments.length)<3&&(e=n.length,2>i&&(t=0));for(var r,u,i=e-t;i;)u=Math.random()*i--|0,r=n[i+t],n[i+t]=n[u+t],n[u+t]=r;return n},oa.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},oa.pairs=function(n){for(var t,e=0,r=n.length-1,u=n[0],i=new Array(0>r?0:r);r>e;)i[e]=[t=u,u=n[++e]];return i},oa.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=oa.min(arguments,a),e=new Array(t);++n<t;)for(var r,u=-1,i=e[n]=new Array(r);++u<r;)i[u]=arguments[u][n];return e},oa.transpose=function(n){return oa.zip.apply(oa,n)},oa.keys=function(n){var t=[];for(var e in n)t.push(e);return t},oa.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},oa.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},oa.merge=function(n){for(var t,e,r,u=n.length,i=-1,a=0;++i<u;)a+=n[i].length;for(e=new Array(a);--u>=0;)for(r=n[u],t=r.length;--t>=0;)e[--a]=r[t];return e};var Ma=Math.abs;oa.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e===1/0)throw new Error("infinite range");var r,u=[],i=o(Ma(e)),a=-1;if(n*=i,t*=i,e*=i,0>e)for(;(r=n+e*++a)>t;)u.push(r/i);else for(;(r=n+e*++a)<t;)u.push(r/i);return u},oa.map=function(n,t){var e=new c;if(n instanceof c)n.forEach(function(n,t){e.set(n,t)});else if(Array.isArray(n)){var r,u=-1,i=n.length;if(1===arguments.length)for(;++u<i;)e.set(u,n[u]);else for(;++u<i;)e.set(t.call(n,r=n[u],u),r)}else for(var a in n)e.set(a,n[a]);return e};var xa="__proto__",ba="\x00";l(c,{has:h,get:function(n){return this._[s(n)]},set:function(n,t){return this._[s(n)]=t},remove:g,keys:p,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:f(t),value:this._[t]});return n},size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t),this._[t])}}),oa.nest=function(){function n(t,a,o){if(o>=i.length)return r?r.call(u,a):e?a.sort(e):a;for(var l,s,f,h,g=-1,p=a.length,v=i[o++],d=new c;++g<p;)(h=d.get(l=v(s=a[g])))?h.push(s):d.set(l,[s]);return t?(s=t(),f=function(e,r){s.set(e,n(t,r,o))}):(s={},f=function(e,r){s[e]=n(t,r,o)}),d.forEach(f),s}function t(n,e){if(e>=i.length)return n;var r=[],u=a[e++];return n.forEach(function(n,u){r.push({key:n,values:t(u,e)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var e,r,u={},i=[],a=[];return u.map=function(t,e){return n(e,t,0)},u.entries=function(e){return t(n(oa.map,e,0),0)},u.key=function(n){return i.push(n),u},u.sortKeys=function(n){return a[i.length-1]=n,u},u.sortValues=function(n){return e=n,u},u.rollup=function(n){return r=n,u},u},oa.set=function(n){var t=new m;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},l(m,{has:h,add:function(n){return this._[s(n+="")]=!0,n},remove:g,values:p,size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t))}}),oa.behavior={},oa.rebind=function(n,t){for(var e,r=1,u=arguments.length;++r<u;)n[e=arguments[r]]=M(n,t,t[e]);return n};var _a=["webkit","ms","moz","Moz","o","O"];oa.dispatch=function(){for(var n=new _,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=w(n);return n},_.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},oa.event=null,oa.requote=function(n){return n.replace(wa,"\\$&")};var wa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Sa={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},ka=function(n,t){return t.querySelector(n)},Na=function(n,t){return t.querySelectorAll(n)},Ea=function(n,t){var e=n.matches||n[x(n,"matchesSelector")];return(Ea=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(ka=function(n,t){return Sizzle(n,t)[0]||null},Na=Sizzle,Ea=Sizzle.matchesSelector),oa.selection=function(){return oa.select(sa.documentElement)};var Aa=oa.selection.prototype=[];Aa.select=function(n){var t,e,r,u,i=[];n=A(n);for(var a=-1,o=this.length;++a<o;){i.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var l=-1,c=r.length;++l<c;)(u=r[l])?(t.push(e=n.call(u,u.__data__,l,a)),e&&"__data__"in u&&(e.__data__=u.__data__)):t.push(null)}return E(i)},Aa.selectAll=function(n){var t,e,r=[];n=C(n);for(var u=-1,i=this.length;++u<i;)for(var a=this[u],o=-1,l=a.length;++o<l;)(e=a[o])&&(r.push(t=ca(n.call(e,e.__data__,o,u))),t.parentNode=e);return E(r)};var Ca={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};oa.ns={prefix:Ca,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&"xmlns"!==(e=n.slice(0,t))&&(n=n.slice(t+1)),Ca.hasOwnProperty(e)?{space:Ca[e],local:n}:n}},Aa.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=oa.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},Aa.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,u=-1;if(t=e.classList){for(;++u<r;)if(!t.contains(n[u]))return!1}else for(t=e.getAttribute("class");++u<r;)if(!q(n[u]).test(t))return!1;return!0}for(t in n)this.each(R(t,n[t]));return this}return this.each(R(n,t))},Aa.style=function(n,e,r){var u=arguments.length;if(3>u){if("string"!=typeof n){2>u&&(e="");for(r in n)this.each(P(r,n[r],e));return this}if(2>u){var i=this.node();return t(i).getComputedStyle(i,null).getPropertyValue(n)}r=""}return this.each(P(n,e,r))},Aa.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(j(t,n[t]));return this}return this.each(j(n,t))},Aa.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},Aa.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},Aa.append=function(n){return n=U(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},Aa.insert=function(n,t){return n=U(n),t=A(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},Aa.remove=function(){return this.each(F)},Aa.data=function(n,t){function e(n,e){var r,u,i,a=n.length,f=e.length,h=Math.min(a,f),g=new Array(f),p=new Array(f),v=new Array(a);if(t){var d,m=new c,y=new Array(a);for(r=-1;++r<a;)(u=n[r])&&(m.has(d=t.call(u,u.__data__,r))?v[r]=u:m.set(d,u),y[r]=d);for(r=-1;++r<f;)(u=m.get(d=t.call(e,i=e[r],r)))?u!==!0&&(g[r]=u,u.__data__=i):p[r]=H(i),m.set(d,!0);for(r=-1;++r<a;)r in y&&m.get(y[r])!==!0&&(v[r]=n[r])}else{for(r=-1;++r<h;)u=n[r],i=e[r],u?(u.__data__=i,g[r]=u):p[r]=H(i);for(;f>r;++r)p[r]=H(e[r]);for(;a>r;++r)v[r]=n[r]}p.update=g,p.parentNode=g.parentNode=v.parentNode=n.parentNode,o.push(p),l.push(g),s.push(v)}var r,u,i=-1,a=this.length;if(!arguments.length){for(n=new Array(a=(r=this[0]).length);++i<a;)(u=r[i])&&(n[i]=u.__data__);return n}var o=Z([]),l=E([]),s=E([]);if("function"==typeof n)for(;++i<a;)e(r=this[i],n.call(r,r.parentNode.__data__,i));else for(;++i<a;)e(r=this[i],n);return l.enter=function(){return o},l.exit=function(){return s},l},Aa.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},Aa.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=O(n));for(var i=0,a=this.length;a>i;i++){u.push(t=[]),t.parentNode=(e=this[i]).parentNode;for(var o=0,l=e.length;l>o;o++)(r=e[o])&&n.call(r,r.__data__,o,i)&&t.push(r)}return E(u)},Aa.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],u=r.length-1,i=r[u];--u>=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},Aa.sort=function(n){n=I.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},Aa.each=function(n){return Y(this,function(t,e,r){n.call(t,t.__data__,e,r)})},Aa.call=function(n){var t=ca(arguments);return n.apply(t[0]=this,t),this},Aa.empty=function(){return!this.node()},Aa.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,u=e.length;u>r;r++){var i=e[r];if(i)return i}return null},Aa.size=function(){var n=0;return Y(this,function(){++n}),n};var za=[];oa.selection.enter=Z,oa.selection.enter.prototype=za,za.append=Aa.append,za.empty=Aa.empty,za.node=Aa.node,za.call=Aa.call,za.size=Aa.size,za.select=function(n){for(var t,e,r,u,i,a=[],o=-1,l=this.length;++o<l;){r=(u=this[o]).update,a.push(t=[]),t.parentNode=u.parentNode;for(var c=-1,s=u.length;++c<s;)(i=u[c])?(t.push(r[c]=e=n.call(u.parentNode,i.__data__,c,o)),e.__data__=i.__data__):t.push(null)}return E(a)},za.insert=function(n,t){return arguments.length<2&&(t=V(this)),Aa.insert.call(this,n,t)},oa.select=function(t){var e;return"string"==typeof t?(e=[ka(t,sa)],e.parentNode=sa.documentElement):(e=[t],e.parentNode=n(t)),E([e])},oa.selectAll=function(n){var t;return"string"==typeof n?(t=ca(Na(n,sa)),t.parentNode=sa.documentElement):(t=ca(n),t.parentNode=null),E([t])},Aa.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(X(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(X(n,t,e))};var La=oa.map({mouseenter:"mouseover",mouseleave:"mouseout"});sa&&La.forEach(function(n){"on"+n in sa&&La.remove(n)});var qa,Ta=0;oa.mouse=function(n){return J(n,k())};var Ra=window.navigator&&/WebKit/.test(window.navigator.userAgent)?-1:0;oa.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=k().changedTouches),t)for(var r,u=0,i=t.length;i>u;++u)if((r=t[u]).identifier===e)return J(n,r)},oa.behavior.drag=function(){function n(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function e(n,t,e,i,a){return function(){function o(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],p|=n|e,M=r,g({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:n,dy:e}))}function l(){t(h,v)&&(m.on(i+d,null).on(a+d,null),y(p),g({type:"dragend"}))}var c,s=this,f=oa.event.target,h=s.parentNode,g=r.of(s,arguments),p=0,v=n(),d=".drag"+(null==v?"":"-"+v),m=oa.select(e(f)).on(i+d,o).on(a+d,l),y=W(f),M=t(h,v);u?(c=u.apply(s,arguments),c=[c.x-M[0],c.y-M[1]]):c=[0,0],g({type:"dragstart"})}}var r=N(n,"drag","dragstart","dragend"),u=null,i=e(b,oa.mouse,t,"mousemove","mouseup"),a=e(G,oa.touch,y,"touchmove","touchend");return n.origin=function(t){return arguments.length?(u=t,n):u},oa.rebind(n,r,"on")},oa.touches=function(n,t){return arguments.length<2&&(t=k().touches),t?ca(t).map(function(t){var e=J(n,t);return e.identifier=t.identifier,e}):[]};var Da=1e-6,Pa=Da*Da,ja=Math.PI,Ua=2*ja,Fa=Ua-Da,Ha=ja/2,Oa=ja/180,Ia=180/ja,Ya=Math.SQRT2,Za=2,Va=4;oa.interpolateZoom=function(n,t){var e,r,u=n[0],i=n[1],a=n[2],o=t[0],l=t[1],c=t[2],s=o-u,f=l-i,h=s*s+f*f;if(Pa>h)r=Math.log(c/a)/Ya,e=function(n){return[u+n*s,i+n*f,a*Math.exp(Ya*n*r)]};else{var g=Math.sqrt(h),p=(c*c-a*a+Va*h)/(2*a*Za*g),v=(c*c-a*a-Va*h)/(2*c*Za*g),d=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(v*v+1)-v);r=(m-d)/Ya,e=function(n){var t=n*r,e=rn(d),o=a/(Za*g)*(e*un(Ya*t+d)-en(d));return[u+o*s,i+o*f,a*e/rn(Ya*t+d)]}}return e.duration=1e3*r,e},oa.behavior.zoom=function(){function n(n){n.on(L,f).on($a+".zoom",g).on("dblclick.zoom",p).on(R,h)}function e(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function r(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function u(n){k.k=Math.max(A[0],Math.min(A[1],n))}function i(n,t){t=r(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function a(t,e,r,a){t.__chart__={x:k.x,y:k.y,k:k.k},u(Math.pow(2,a)),i(d=e,r),t=oa.select(t),C>0&&(t=t.transition().duration(C)),t.call(n.event)}function o(){b&&b.domain(x.range().map(function(n){return(n-k.x)/k.k}).map(x.invert)),w&&w.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function l(n){z++||n({type:"zoomstart"})}function c(n){o(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function s(n){--z||(n({type:"zoomend"}),d=null)}function f(){function n(){o=1,i(oa.mouse(u),h),c(a)}function r(){f.on(q,null).on(T,null),g(o),s(a)}var u=this,a=D.of(u,arguments),o=0,f=oa.select(t(u)).on(q,n).on(T,r),h=e(oa.mouse(u)),g=W(u);Ol.call(u),l(a)}function h(){function n(){var n=oa.touches(p);return g=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=e(n))}),n}function t(){var t=oa.event.target;oa.select(t).on(x,r).on(b,o),_.push(t);for(var e=oa.event.changedTouches,u=0,i=e.length;i>u;++u)d[e[u].identifier]=null;var l=n(),c=Date.now();if(1===l.length){if(500>c-M){var s=l[0];a(p,s,d[s.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),S()}M=c}else if(l.length>1){var s=l[0],f=l[1],h=s[0]-f[0],g=s[1]-f[1];m=h*h+g*g}}function r(){var n,t,e,r,a=oa.touches(p);Ol.call(p);for(var o=0,l=a.length;l>o;++o,r=null)if(e=a[o],r=d[e.identifier]){if(t)break;n=e,t=r}if(r){var s=(s=e[0]-n[0])*s+(s=e[1]-n[1])*s,f=m&&Math.sqrt(s/m);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],u(f*g)}M=null,i(n,t),c(v)}function o(){if(oa.event.touches.length){for(var t=oa.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var u in d)return void n()}oa.selectAll(_).on(y,null),w.on(L,f).on(R,h),N(),s(v)}var g,p=this,v=D.of(p,arguments),d={},m=0,y=".zoom-"+oa.event.changedTouches[0].identifier,x="touchmove"+y,b="touchend"+y,_=[],w=oa.select(p),N=W(p);t(),l(v),w.on(L,null).on(R,t)}function g(){var n=D.of(this,arguments);y?clearTimeout(y):(Ol.call(this),v=e(d=m||oa.mouse(this)),l(n)),y=setTimeout(function(){y=null,s(n)},50),S(),u(Math.pow(2,.002*Xa())*k.k),i(d,v),c(n)}function p(){var n=oa.mouse(this),t=Math.log(k.k)/Math.LN2;a(this,n,e(n),oa.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,d,m,y,M,x,b,_,w,k={x:0,y:0,k:1},E=[960,500],A=Ba,C=250,z=0,L="mousedown.zoom",q="mousemove.zoom",T="mouseup.zoom",R="touchstart.zoom",D=N(n,"zoomstart","zoom","zoomend");return $a||($a="onwheel"in sa?(Xa=function(){return-oa.event.deltaY*(oa.event.deltaMode?120:1)},"wheel"):"onmousewheel"in sa?(Xa=function(){return oa.event.wheelDelta},"mousewheel"):(Xa=function(){return-oa.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=D.of(this,arguments),t=k;Fl?oa.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},l(n)}).tween("zoom:zoom",function(){var e=E[0],r=E[1],u=d?d[0]:e/2,i=d?d[1]:r/2,a=oa.interpolateZoom([(u-k.x)/k.k,(i-k.y)/k.k,e/k.k],[(u-t.x)/t.k,(i-t.y)/t.k,e/t.k]);return function(t){var r=a(t),o=e/r[2];this.__chart__=k={x:u-r[0]*o,y:i-r[1]*o,k:o},c(n)}}).each("interrupt.zoom",function(){s(n)}).each("end.zoom",function(){s(n)}):(this.__chart__=k,l(n),c(n),s(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},o(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:null},u(+t),o(),n):k.k},n.scaleExtent=function(t){return arguments.length?(A=null==t?Ba:[+t[0],+t[1]],n):A},n.center=function(t){return arguments.length?(m=t&&[+t[0],+t[1]],n):m},n.size=function(t){return arguments.length?(E=t&&[+t[0],+t[1]],n):E},n.duration=function(t){return arguments.length?(C=+t,n):C},n.x=function(t){return arguments.length?(b=t,x=t.copy(),k={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),k={x:0,y:0,k:1},n):w},oa.rebind(n,D,"on")};var Xa,$a,Ba=[0,1/0];oa.color=on,on.prototype.toString=function(){return this.rgb()+""},oa.hsl=ln;var Wa=ln.prototype=new on;Wa.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,this.l/n)},Wa.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,n*this.l)},Wa.rgb=function(){return cn(this.h,this.s,this.l)},oa.hcl=sn;var Ja=sn.prototype=new on;Ja.brighter=function(n){return new sn(this.h,this.c,Math.min(100,this.l+Ga*(arguments.length?n:1)))},Ja.darker=function(n){return new sn(this.h,this.c,Math.max(0,this.l-Ga*(arguments.length?n:1)))},Ja.rgb=function(){return fn(this.h,this.c,this.l).rgb()},oa.lab=hn;var Ga=18,Ka=.95047,Qa=1,no=1.08883,to=hn.prototype=new on;to.brighter=function(n){return new hn(Math.min(100,this.l+Ga*(arguments.length?n:1)),this.a,this.b)},to.darker=function(n){return new hn(Math.max(0,this.l-Ga*(arguments.length?n:1)),this.a,this.b)},to.rgb=function(){return gn(this.l,this.a,this.b)},oa.rgb=yn;var eo=yn.prototype=new on;eo.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,u=30;return t||e||r?(t&&u>t&&(t=u),e&&u>e&&(e=u),r&&u>r&&(r=u),new yn(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new yn(u,u,u)},eo.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new yn(n*this.r,n*this.g,n*this.b)},eo.hsl=function(){return wn(this.r,this.g,this.b)},eo.toString=function(){return"#"+bn(this.r)+bn(this.g)+bn(this.b)};var ro=oa.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ro.forEach(function(n,t){ro.set(n,Mn(t))}),oa.functor=En,oa.xhr=An(y),oa.dsv=function(n,t){function e(n,e,i){arguments.length<3&&(i=e,e=null);var a=Cn(n,t,null==e?r:u(e),i);return a.row=function(n){return arguments.length?a.response(null==(e=n)?r:u(n)):e},a}function r(n){return e.parse(n.responseText)}function u(n){return function(t){return e.parse(t.responseText,n)}}function i(t){return t.map(a).join(n)}function a(n){return o.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var o=new RegExp('["'+n+"\n]"),l=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(u(n),e)}:u})},e.parseRows=function(n,t){function e(){if(s>=c)return a;if(u)return u=!1,i;var t=s;if(34===n.charCodeAt(t)){for(var e=t;e++<c;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}s=e+2;var r=n.charCodeAt(e+1);return 13===r?(u=!0,10===n.charCodeAt(e+2)&&++s):10===r&&(u=!0),n.slice(t+1,e).replace(/""/g,'"')}for(;c>s;){var r=n.charCodeAt(s++),o=1;if(10===r)u=!0;else if(13===r)u=!0,10===n.charCodeAt(s)&&(++s,++o);else if(r!==l)continue;return n.slice(t,s-o)}return n.slice(t)}for(var r,u,i={},a={},o=[],c=n.length,s=0,f=0;(r=e())!==a;){for(var h=[];r!==i&&r!==a;)h.push(r),r=e();t&&null==(h=t(h,f++))||o.push(h)}return o},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new m,u=[];return t.forEach(function(n){for(var t in n)r.has(t)||u.push(r.add(t))}),[u.map(a).join(n)].concat(t.map(function(t){return u.map(function(n){return a(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(i).join("\n")},e},oa.csv=oa.dsv(",","text/csv"),oa.tsv=oa.dsv("	","text/tab-separated-values");var uo,io,ao,oo,lo=window[x(window,"requestAnimationFrame")]||function(n){setTimeout(n,17)};oa.timer=function(){qn.apply(this,arguments)},oa.timer.flush=function(){Rn(),Dn()},oa.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var co=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(jn);oa.formatPrefix=function(n,t){var e=0;return(n=+n)&&(0>n&&(n*=-1),t&&(n=oa.round(n,Pn(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),co[8+e/3]};var so=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,fo=oa.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=oa.round(n,Pn(n,t))).toFixed(Math.max(0,Math.min(20,Pn(n*(1+1e-15),t))))}}),ho=oa.time={},go=Date;Hn.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){po.setUTCDate.apply(this._,arguments)},setDay:function(){po.setUTCDay.apply(this._,arguments)},setFullYear:function(){po.setUTCFullYear.apply(this._,arguments)},setHours:function(){po.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){po.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){po.setUTCMinutes.apply(this._,arguments)},setMonth:function(){po.setUTCMonth.apply(this._,arguments)},setSeconds:function(){po.setUTCSeconds.apply(this._,arguments)},setTime:function(){po.setTime.apply(this._,arguments)}};var po=Date.prototype;ho.year=On(function(n){return n=ho.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ho.years=ho.year.range,ho.years.utc=ho.year.utc.range,ho.day=On(function(n){var t=new go(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ho.days=ho.day.range,ho.days.utc=ho.day.utc.range,ho.dayOfYear=function(n){var t=ho.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ho[n]=On(function(n){return(n=ho.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ho.year(n).getDay();return Math.floor((ho.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ho[n+"s"]=e.range,ho[n+"s"].utc=e.utc.range,ho[n+"OfYear"]=function(n){var e=ho.year(n).getDay();return Math.floor((ho.dayOfYear(n)+(e+t)%7)/7)}}),ho.week=ho.sunday,ho.weeks=ho.sunday.range,ho.weeks.utc=ho.sunday.utc.range,ho.weekOfYear=ho.sundayOfYear;var vo={"-":"",_:" ",0:"0"},mo=/^\s*\d+/,yo=/^%/;oa.locale=function(n){return{numberFormat:Un(n),timeFormat:Yn(n)}};var Mo=oa.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});oa.format=Mo.numberFormat,oa.geo={},st.prototype={s:0,t:0,add:function(n){ft(n,this.t,xo),ft(xo.s,this.s,this),this.s?this.t+=xo.t:this.s=xo.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var xo=new st;oa.geo.stream=function(n,t){n&&bo.hasOwnProperty(n.type)?bo[n.type](n,t):ht(n,t)};var bo={Feature:function(n,t){ht(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,u=e.length;++r<u;)ht(e[r].geometry,t)}},_o={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){gt(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)gt(e[r],t,0)},Polygon:function(n,t){pt(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)pt(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,u=e.length;++r<u;)ht(e[r],t)}};oa.geo.area=function(n){return wo=0,oa.geo.stream(n,ko),wo};var wo,So=new st,ko={sphere:function(){wo+=4*ja},point:b,lineStart:b,lineEnd:b,polygonStart:function(){So.reset(),ko.lineStart=vt},polygonEnd:function(){var n=2*So;wo+=0>n?4*ja+n:n,ko.lineStart=ko.lineEnd=ko.point=b}};oa.geo.bounds=function(){function n(n,t){M.push(x=[s=n,h=n]),f>t&&(f=t),t>g&&(g=t)}function t(t,e){var r=dt([t*Oa,e*Oa]);if(m){var u=yt(m,r),i=[u[1],-u[0],0],a=yt(i,u);bt(a),a=_t(a);var l=t-p,c=l>0?1:-1,v=a[0]*Ia*c,d=Ma(l)>180;if(d^(v>c*p&&c*t>v)){var y=a[1]*Ia;y>g&&(g=y)}else if(v=(v+360)%360-180,d^(v>c*p&&c*t>v)){var y=-a[1]*Ia;f>y&&(f=y)}else f>e&&(f=e),e>g&&(g=e);d?p>t?o(s,t)>o(s,h)&&(h=t):o(t,h)>o(s,h)&&(s=t):h>=s?(s>t&&(s=t),t>h&&(h=t)):t>p?o(s,t)>o(s,h)&&(h=t):o(t,h)>o(s,h)&&(s=t)}else n(t,e);m=r,p=t}function e(){b.point=t}function r(){x[0]=s,x[1]=h,b.point=n,m=null}function u(n,e){if(m){var r=n-p;y+=Ma(r)>180?r+(r>0?360:-360):r}else v=n,d=e;ko.point(n,e),t(n,e)}function i(){ko.lineStart()}function a(){u(v,d),ko.lineEnd(),Ma(y)>Da&&(s=-(h=180)),x[0]=s,x[1]=h,m=null}function o(n,t){return(t-=n)<0?t+360:t}function l(n,t){return n[0]-t[0]}function c(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var s,f,h,g,p,v,d,m,y,M,x,b={point:n,lineStart:e,lineEnd:r,polygonStart:function(){b.point=u,b.lineStart=i,b.lineEnd=a,y=0,ko.polygonStart()},polygonEnd:function(){ko.polygonEnd(),b.point=n,b.lineStart=e,b.lineEnd=r,0>So?(s=-(h=180),f=-(g=90)):y>Da?g=90:-Da>y&&(f=-90),x[0]=s,x[1]=h}};return function(n){g=h=-(s=f=1/0),M=[],oa.geo.stream(n,b);var t=M.length;if(t){M.sort(l);for(var e,r=1,u=M[0],i=[u];t>r;++r)e=M[r],c(e[0],u)||c(e[1],u)?(o(u[0],e[1])>o(u[0],u[1])&&(u[1]=e[1]),o(e[0],u[1])>o(u[0],u[1])&&(u[0]=e[0])):i.push(u=e);for(var a,e,p=-(1/0),t=i.length-1,r=0,u=i[t];t>=r;u=e,++r)e=i[r],(a=o(u[1],e[0]))>p&&(p=a,s=e[0],h=u[1])}return M=x=null,s===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[s,f],[h,g]]}}(),oa.geo.centroid=function(n){No=Eo=Ao=Co=zo=Lo=qo=To=Ro=Do=Po=0,oa.geo.stream(n,jo);var t=Ro,e=Do,r=Po,u=t*t+e*e+r*r;return Pa>u&&(t=Lo,e=qo,r=To,Da>Eo&&(t=Ao,e=Co,r=zo),u=t*t+e*e+r*r,Pa>u)?[NaN,NaN]:[Math.atan2(e,t)*Ia,tn(r/Math.sqrt(u))*Ia]};var No,Eo,Ao,Co,zo,Lo,qo,To,Ro,Do,Po,jo={sphere:b,point:St,lineStart:Nt,lineEnd:Et,polygonStart:function(){jo.lineStart=At},polygonEnd:function(){jo.lineStart=Nt}},Uo=Rt(zt,Ut,Ht,[-ja,-ja/2]),Fo=1e9;oa.geo.clipExtent=function(){var n,t,e,r,u,i,a={stream:function(n){return u&&(u.valid=!1),u=i(n),u.valid=!0,u},extent:function(o){return arguments.length?(i=Zt(n=+o[0][0],t=+o[0][1],e=+o[1][0],r=+o[1][1]),u&&(u.valid=!1,u=null),a):[[n,t],[e,r]]}};return a.extent([[0,0],[960,500]])},(oa.geo.conicEqualArea=function(){return Vt(Xt)}).raw=Xt,oa.geo.albers=function(){return oa.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},oa.geo.albersUsa=function(){function n(n){var i=n[0],a=n[1];return t=null,e(i,a),t||(r(i,a),t)||u(i,a),t}var t,e,r,u,i=oa.geo.albers(),a=oa.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o=oa.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=i.scale(),e=i.translate(),r=(n[0]-e[0])/t,u=(n[1]-e[1])/t;return(u>=.12&&.234>u&&r>=-.425&&-.214>r?a:u>=.166&&.234>u&&r>=-.214&&-.115>r?o:i).invert(n)},n.stream=function(n){var t=i.stream(n),e=a.stream(n),r=o.stream(n);return{point:function(n,u){t.point(n,u),e.point(n,u),r.point(n,u)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),o.precision(t),n):i.precision()},n.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),o.scale(t),n.translate(i.translate())):i.scale()},n.translate=function(t){if(!arguments.length)return i.translate();var c=i.scale(),s=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[s-.455*c,f-.238*c],[s+.455*c,f+.238*c]]).stream(l).point,r=a.translate([s-.307*c,f+.201*c]).clipExtent([[s-.425*c+Da,f+.12*c+Da],[s-.214*c-Da,f+.234*c-Da]]).stream(l).point,u=o.translate([s-.205*c,f+.212*c]).clipExtent([[s-.214*c+Da,f+.166*c+Da],[s-.115*c-Da,f+.234*c-Da]]).stream(l).point,n},n.scale(1070)};var Ho,Oo,Io,Yo,Zo,Vo,Xo={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Oo=0,Xo.lineStart=$t},polygonEnd:function(){Xo.lineStart=Xo.lineEnd=Xo.point=b,Ho+=Ma(Oo/2)}},$o={point:Bt,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Bo={point:Gt,lineStart:Kt,lineEnd:Qt,polygonStart:function(){Bo.lineStart=ne},polygonEnd:function(){Bo.point=Gt,Bo.lineStart=Kt,Bo.lineEnd=Qt}};oa.geo.path=function(){function n(n){return n&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),a&&a.valid||(a=u(i)),oa.geo.stream(n,a)),i.result()}function t(){return a=null,n}var e,r,u,i,a,o=4.5;return n.area=function(n){return Ho=0,oa.geo.stream(n,u(Xo)),Ho},n.centroid=function(n){return Ao=Co=zo=Lo=qo=To=Ro=Do=Po=0,oa.geo.stream(n,u(Bo)),Po?[Ro/Po,Do/Po]:To?[Lo/To,qo/To]:zo?[Ao/zo,Co/zo]:[NaN,NaN]},n.bounds=function(n){return Zo=Vo=-(Io=Yo=1/0),oa.geo.stream(n,u($o)),[[Io,Yo],[Zo,Vo]]},n.projection=function(n){return arguments.length?(u=(e=n)?n.stream||re(n):y,t()):e},n.context=function(n){return arguments.length?(i=null==(r=n)?new Wt:new te(n),"function"!=typeof o&&i.pointRadius(o),t()):r},n.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),n):o},n.projection(oa.geo.albersUsa()).context(null)},oa.geo.transform=function(n){return{stream:function(t){var e=new ue(t);for(var r in n)e[r]=n[r];return e}}},ue.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},oa.geo.projection=ae,oa.geo.projectionMutator=oe,(oa.geo.equirectangular=function(){return ae(ce)}).raw=ce.invert=ce,oa.geo.rotation=function(n){function t(t){return t=n(t[0]*Oa,t[1]*Oa),t[0]*=Ia,t[1]*=Ia,t}return n=fe(n[0]%360*Oa,n[1]*Oa,n.length>2?n[2]*Oa:0),t.invert=function(t){return t=n.invert(t[0]*Oa,t[1]*Oa),t[0]*=Ia,t[1]*=Ia,t},t},se.invert=ce,oa.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=fe(-n[0]*Oa,-n[1]*Oa,0).invert,u=[];return e(null,null,1,{point:function(n,e){u.push(n=t(n,e)),n[0]*=Ia,n[1]*=Ia}}),{type:"Polygon",coordinates:[u]}}var t,e,r=[0,0],u=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=ve((t=+r)*Oa,u*Oa),n):t},n.precision=function(r){return arguments.length?(e=ve(t*Oa,(u=+r)*Oa),n):u},n.angle(90)},oa.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Oa,u=n[1]*Oa,i=t[1]*Oa,a=Math.sin(r),o=Math.cos(r),l=Math.sin(u),c=Math.cos(u),s=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((e=f*a)*e+(e=c*s-l*f*o)*e),l*s+c*f*o)},oa.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return oa.range(Math.ceil(i/d)*d,u,d).map(h).concat(oa.range(Math.ceil(c/m)*m,l,m).map(g)).concat(oa.range(Math.ceil(r/p)*p,e,p).filter(function(n){return Ma(n%d)>Da}).map(s)).concat(oa.range(Math.ceil(o/v)*v,a,v).filter(function(n){return Ma(n%m)>Da}).map(f))}var e,r,u,i,a,o,l,c,s,f,h,g,p=10,v=p,d=90,m=360,y=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(g(l).slice(1),h(u).reverse().slice(1),g(c).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(i=+t[0][0],u=+t[1][0],c=+t[0][1],l=+t[1][1],i>u&&(t=i,i=u,u=t),c>l&&(t=c,c=l,l=t),n.precision(y)):[[i,c],[u,l]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),o>a&&(t=o,o=a,a=t),n.precision(y)):[[r,o],[e,a]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],n):[d,m]},n.minorStep=function(t){return arguments.length?(p=+t[0],v=+t[1],n):[p,v]},n.precision=function(t){return arguments.length?(y=+t,s=me(o,a,90),f=ye(r,e,y),h=me(c,l,90),g=ye(i,u,y),n):y},n.majorExtent([[-180,-90+Da],[180,90-Da]]).minorExtent([[-180,-80-Da],[180,80+Da]])},oa.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||u.apply(this,arguments)]}}var t,e,r=Me,u=xe;return n.distance=function(){return oa.geo.distance(t||r.apply(this,arguments),e||u.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(u=t,e="function"==typeof t?null:t,n):u},n.precision=function(){return arguments.length?n:0},n},oa.geo.interpolate=function(n,t){return be(n[0]*Oa,n[1]*Oa,t[0]*Oa,t[1]*Oa)},oa.geo.length=function(n){return Wo=0,oa.geo.stream(n,Jo),Wo};var Wo,Jo={sphere:b,point:b,lineStart:_e,lineEnd:b,polygonStart:b,polygonEnd:b},Go=we(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(oa.geo.azimuthalEqualArea=function(){return ae(Go)}).raw=Go;var Ko=we(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},y);(oa.geo.azimuthalEquidistant=function(){return ae(Ko)}).raw=Ko,(oa.geo.conicConformal=function(){return Vt(Se)}).raw=Se,(oa.geo.conicEquidistant=function(){return Vt(ke)}).raw=ke;var Qo=we(function(n){return 1/n},Math.atan);(oa.geo.gnomonic=function(){return ae(Qo)}).raw=Qo,Ne.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Ha]},(oa.geo.mercator=function(){return Ee(Ne)}).raw=Ne;var nl=we(function(){return 1},Math.asin);(oa.geo.orthographic=function(){return ae(nl)}).raw=nl;var tl=we(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(oa.geo.stereographic=function(){return ae(tl)}).raw=tl,Ae.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Ha]},(oa.geo.transverseMercator=function(){var n=Ee(Ae),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Ae,oa.geom={},oa.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,u=En(e),i=En(r),a=n.length,o=[],l=[];for(t=0;a>t;t++)o.push([+u.call(this,n[t],t),+i.call(this,n[t],t),t]);for(o.sort(qe),t=0;a>t;t++)l.push([o[t][0],-o[t][1]]);var c=Le(o),s=Le(l),f=s[0]===c[0],h=s[s.length-1]===c[c.length-1],g=[];for(t=c.length-1;t>=0;--t)g.push(n[o[c[t]][2]]);for(t=+f;t<s.length-h;++t)g.push(n[o[s[t]][2]]);return g}var e=Ce,r=ze;return arguments.length?t(n):(t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t)},oa.geom.polygon=function(n){return Sa(n,el),n};var el=oa.geom.polygon.prototype=[];el.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],u=0;++t<e;)n=r,r=this[t],u+=n[1]*r[0]-n[0]*r[1];return.5*u},el.centroid=function(n){var t,e,r=-1,u=this.length,i=0,a=0,o=this[u-1];for(arguments.length||(n=-1/(6*this.area()));++r<u;)t=o,o=this[r],e=t[0]*o[1]-o[0]*t[1],i+=(t[0]+o[0])*e,a+=(t[1]+o[1])*e;return[i*n,a*n]},el.clip=function(n){for(var t,e,r,u,i,a,o=De(n),l=-1,c=this.length-De(this),s=this[c-1];++l<c;){for(t=n.slice(),n.length=0,u=this[l],i=t[(r=t.length-o)-1],e=-1;++e<r;)a=t[e],Te(a,s,u)?(Te(i,s,u)||n.push(Re(i,a,s,u)),n.push(a)):Te(i,s,u)&&n.push(Re(i,a,s,u)),i=a;o&&n.push(n[0]),s=u}return n};var rl,ul,il,al,ol,ll=[],cl=[];Ye.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)n=t[e].edge,n.b&&n.a||t.splice(e,1);return t.sort(Ve),t.length},tr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},er.prototype={insert:function(n,t){var e,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else this._?(n=ar(this._),t.P=null,t.N=n,n.P=n.L=t,e=n):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)r=e.U,e===r.L?(u=r.R,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.R&&(ur(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ir(this,r))):(u=r.L,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.L&&(ir(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ur(this,r))),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r,u=n.U,i=n.L,a=n.R;if(e=i?a?ar(a):i:a,u?u.L===n?u.L=e:u.R=e:this._=e,i&&a?(r=e.C,e.C=n.C,e.L=i,i.U=e,e!==a?(u=e.U,e.U=n.U,n=e.R,u.L=n,e.R=a,a.U=e):(e.U=u,u=e,n=e.R)):(r=n.C,n=e),n&&(n.U=u),!r){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===u.L){if(t=u.R,t.C&&(t.C=!1,u.C=!0,ur(this,u),t=u.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ir(this,t),t=u.R),t.C=u.C,u.C=t.R.C=!1,ur(this,u),n=this._;break}}else if(t=u.L,t.C&&(t.C=!1,u.C=!0,ir(this,u),t=u.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ur(this,t),t=u.L),t.C=u.C,u.C=t.L.C=!1,ir(this,u),n=this._;break}t.C=!0,n=u,u=u.U}while(!n.C);n&&(n.C=!1)}}},oa.geom.voronoi=function(n){function t(n){var t=new Array(n.length),r=o[0][0],u=o[0][1],i=o[1][0],a=o[1][1];return or(e(n),o).cells.forEach(function(e,o){var l=e.edges,c=e.site,s=t[o]=l.length?l.map(function(n){var t=n.start();return[t.x,t.y]}):c.x>=r&&c.x<=i&&c.y>=u&&c.y<=a?[[r,a],[i,a],[i,u],[r,u]]:[];s.point=n[o]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(i(n,t)/Da)*Da,y:Math.round(a(n,t)/Da)*Da,i:t}})}var r=Ce,u=ze,i=r,a=u,o=sl;return n?t(n):(t.links=function(n){return or(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return or(e(n)).cells.forEach(function(e,r){for(var u,i,a=e.site,o=e.edges.sort(Ve),l=-1,c=o.length,s=o[c-1].edge,f=s.l===a?s.r:s.l;++l<c;)u=s,i=f,s=o[l].edge,f=s.l===a?s.r:s.l,r<i.i&&r<f.i&&cr(a,i,f)<0&&t.push([n[r],n[i.i],n[f.i]])}),t},t.x=function(n){return arguments.length?(i=En(r=n),t):r},t.y=function(n){return arguments.length?(a=En(u=n),t):u},t.clipExtent=function(n){return arguments.length?(o=null==n?sl:n,t):o===sl?null:o},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):o===sl?null:o&&o[1]},t)};var sl=[[-1e6,-1e6],[1e6,1e6]];oa.geom.delaunay=function(n){return oa.geom.voronoi().triangles(n)},oa.geom.quadtree=function(n,t,e,r,u){function i(n){function i(n,t,e,r,u,i,a,o){if(!isNaN(e)&&!isNaN(r))if(n.leaf){var l=n.x,s=n.y;if(null!=l)if(Ma(l-e)+Ma(s-r)<.01)c(n,t,e,r,u,i,a,o);else{var f=n.point;n.x=n.y=n.point=null,c(n,f,l,s,u,i,a,o),c(n,t,e,r,u,i,a,o)}else n.x=e,n.y=r,n.point=t}else c(n,t,e,r,u,i,a,o)}function c(n,t,e,r,u,a,o,l){var c=.5*(u+o),s=.5*(a+l),f=e>=c,h=r>=s,g=h<<1|f;n.leaf=!1,n=n.nodes[g]||(n.nodes[g]=hr()),f?u=c:o=c,h?a=s:l=s,i(n,t,e,r,u,a,o,l)}var s,f,h,g,p,v,d,m,y,M=En(o),x=En(l);if(null!=t)v=t,d=e,m=r,y=u;else if(m=y=-(v=d=1/0),f=[],h=[],p=n.length,a)for(g=0;p>g;++g)s=n[g],s.x<v&&(v=s.x),s.y<d&&(d=s.y),s.x>m&&(m=s.x),s.y>y&&(y=s.y),f.push(s.x),h.push(s.y);else for(g=0;p>g;++g){var b=+M(s=n[g],g),_=+x(s,g);v>b&&(v=b),d>_&&(d=_),b>m&&(m=b),_>y&&(y=_),f.push(b),h.push(_)}var w=m-v,S=y-d;w>S?y=d+w:m=v+S;var k=hr();if(k.add=function(n){i(k,n,+M(n,++g),+x(n,g),v,d,m,y)},k.visit=function(n){gr(n,k,v,d,m,y)},k.find=function(n){return pr(k,n[0],n[1],v,d,m,y)},g=-1,null==t){for(;++g<p;)i(k,n[g],f[g],h[g],v,d,m,y);--g}else n.forEach(k.add);return f=h=n=s=null,k}var a,o=Ce,l=ze;return(a=arguments.length)?(o=sr,l=fr,3===a&&(u=e,r=t,e=t=0),i(n)):(i.x=function(n){return arguments.length?(o=n,i):o},i.y=function(n){return arguments.length?(l=n,i):l},i.extent=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=+n[0][0],e=+n[0][1],r=+n[1][0],u=+n[1][1]),i):null==t?null:[[t,e],[r,u]]},i.size=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=e=0,r=+n[0],u=+n[1]),i):null==t?null:[r-t,u-e]},i)},oa.interpolateRgb=vr,oa.interpolateObject=dr,oa.interpolateNumber=mr,oa.interpolateString=yr;var fl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hl=new RegExp(fl.source,"g");oa.interpolate=Mr,oa.interpolators=[function(n,t){var e=typeof t;return("string"===e?ro.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?vr:yr:t instanceof on?vr:Array.isArray(t)?xr:"object"===e&&isNaN(t)?dr:mr)(n,t)}],oa.interpolateArray=xr;var gl=function(){return y},pl=oa.map({linear:gl,poly:Er,quad:function(){return Sr},cubic:function(){return kr},sin:function(){return Ar},exp:function(){return Cr},circle:function(){return zr},elastic:Lr,back:qr,bounce:function(){return Tr}}),vl=oa.map({"in":y,out:_r,"in-out":wr,"out-in":function(n){return wr(_r(n))}});oa.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=pl.get(e)||gl,r=vl.get(r)||y,br(r(e.apply(null,la.call(arguments,1))))},oa.interpolateHcl=Rr,oa.interpolateHsl=Dr,oa.interpolateLab=Pr,oa.interpolateRound=jr,oa.transform=function(n){var t=sa.createElementNS(oa.ns.prefix.svg,"g");return(oa.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new Ur(e?e.matrix:dl)})(n)},Ur.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var dl={a:1,b:0,c:0,d:1,e:0,f:0};oa.interpolateTransform=$r,oa.layout={},oa.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(Jr(n[e]));return t}},oa.layout.chord=function(){function n(){var n,c,f,h,g,p={},v=[],d=oa.range(i),m=[];for(e=[],r=[],n=0,h=-1;++h<i;){for(c=0,g=-1;++g<i;)c+=u[h][g];v.push(c),m.push(oa.range(i)),n+=c}for(a&&d.sort(function(n,t){return a(v[n],v[t])}),o&&m.forEach(function(n,t){n.sort(function(n,e){return o(u[t][n],u[t][e])})}),n=(Ua-s*i)/n,c=0,h=-1;++h<i;){for(f=c,g=-1;++g<i;){var y=d[h],M=m[y][g],x=u[y][M],b=c,_=c+=x*n;p[y+"-"+M]={index:y,subindex:M,startAngle:b,endAngle:_,value:x}}r[y]={index:y,startAngle:f,endAngle:c,value:v[y]},c+=s}for(h=-1;++h<i;)for(g=h-1;++g<i;){var w=p[h+"-"+g],S=p[g+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}l&&t()}function t(){e.sort(function(n,t){return l((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var e,r,u,i,a,o,l,c={},s=0;return c.matrix=function(n){return arguments.length?(i=(u=n)&&u.length,e=r=null,c):u},c.padding=function(n){return arguments.length?(s=n,e=r=null,c):s},c.sortGroups=function(n){return arguments.length?(a=n,e=r=null,c):a},c.sortSubgroups=function(n){return arguments.length?(o=n,e=null,c):o},c.sortChords=function(n){return arguments.length?(l=n,e&&t(),c):l},c.chords=function(){return e||n(),e},c.groups=function(){return r||n(),r},c},oa.layout.force=function(){function n(n){return function(t,e,r,u){if(t.point!==n){var i=t.cx-n.x,a=t.cy-n.y,o=u-e,l=i*i+a*a;if(l>o*o/m){if(v>l){var c=t.charge/l;n.px-=i*c,n.py-=a*c}return!0}if(t.point&&l&&v>l){var c=t.pointCharge/l;n.px-=i*c,n.py-=a*c}}return!t.charge}}function t(n){n.px=oa.event.x,n.py=oa.event.y,l.resume()}var e,r,u,i,a,o,l={},c=oa.dispatch("start","tick","end"),s=[1,1],f=.9,h=ml,g=yl,p=-30,v=Ml,d=.1,m=.64,M=[],x=[];return l.tick=function(){if((u*=.99)<.005)return e=null,c.end({type:"end",alpha:u=0}),!0;var t,r,l,h,g,v,m,y,b,_=M.length,w=x.length;for(r=0;w>r;++r)l=x[r],h=l.source,g=l.target,y=g.x-h.x,b=g.y-h.y,(v=y*y+b*b)&&(v=u*a[r]*((v=Math.sqrt(v))-i[r])/v,y*=v,b*=v,g.x-=y*(m=h.weight+g.weight?h.weight/(h.weight+g.weight):.5),g.y-=b*m,h.x+=y*(m=1-m),h.y+=b*m);if((m=u*d)&&(y=s[0]/2,b=s[1]/2,r=-1,m))for(;++r<_;)l=M[r],l.x+=(y-l.x)*m,l.y+=(b-l.y)*m;if(p)for(ru(t=oa.geom.quadtree(M),u,o),r=-1;++r<_;)(l=M[r]).fixed||t.visit(n(l));for(r=-1;++r<_;)l=M[r],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*f,l.y-=(l.py-(l.py=l.y))*f);c.tick({type:"tick",alpha:u})},l.nodes=function(n){return arguments.length?(M=n,l):M},l.links=function(n){return arguments.length?(x=n,l):x},l.size=function(n){return arguments.length?(s=n,l):s},l.linkDistance=function(n){return arguments.length?(h="function"==typeof n?n:+n,l):h},l.distance=l.linkDistance,l.linkStrength=function(n){return arguments.length?(g="function"==typeof n?n:+n,l):g},l.friction=function(n){return arguments.length?(f=+n,l):f},l.charge=function(n){return arguments.length?(p="function"==typeof n?n:+n,l):p},l.chargeDistance=function(n){return arguments.length?(v=n*n,l):Math.sqrt(v)},l.gravity=function(n){return arguments.length?(d=+n,l):d},l.theta=function(n){return arguments.length?(m=n*n,l):Math.sqrt(m)},l.alpha=function(n){return arguments.length?(n=+n,u?n>0?u=n:(e.c=null,e.t=NaN,e=null,c.end({type:"end",alpha:u=0})):n>0&&(c.start({type:"start",alpha:u=n}),e=qn(l.tick)),l):u},l.start=function(){function n(n,r){if(!e){for(e=new Array(u),l=0;u>l;++l)e[l]=[];for(l=0;c>l;++l){var i=x[l];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var a,o=e[t],l=-1,s=o.length;++l<s;)if(!isNaN(a=o[l][n]))return a;return Math.random()*r}var t,e,r,u=M.length,c=x.length,f=s[0],v=s[1];for(t=0;u>t;++t)(r=M[t]).index=t,r.weight=0;for(t=0;c>t;++t)r=x[t],"number"==typeof r.source&&(r.source=M[r.source]),"number"==typeof r.target&&(r.target=M[r.target]),++r.source.weight,++r.target.weight;for(t=0;u>t;++t)r=M[t],isNaN(r.x)&&(r.x=n("x",f)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof h)for(t=0;c>t;++t)i[t]=+h.call(this,x[t],t);else for(t=0;c>t;++t)i[t]=h;if(a=[],"function"==typeof g)for(t=0;c>t;++t)a[t]=+g.call(this,x[t],t);else for(t=0;c>t;++t)a[t]=g;if(o=[],"function"==typeof p)for(t=0;u>t;++t)o[t]=+p.call(this,M[t],t);else for(t=0;u>t;++t)o[t]=p;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=oa.behavior.drag().origin(y).on("dragstart.force",Qr).on("drag.force",t).on("dragend.force",nu)),arguments.length?void this.on("mouseover.force",tu).on("mouseout.force",eu).call(r):r},oa.rebind(l,c,"on")};var ml=20,yl=1,Ml=1/0;oa.layout.hierarchy=function(){function n(u){var i,a=[u],o=[];for(u.depth=0;null!=(i=a.pop());)if(o.push(i),(c=e.call(n,i,i.depth))&&(l=c.length)){for(var l,c,s;--l>=0;)a.push(s=c[l]),s.parent=i,s.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return au(u,function(n){var e,u;t&&(e=n.children)&&e.sort(t),r&&(u=n.parent)&&(u.value+=n.value)}),o}var t=cu,e=ou,r=lu;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(iu(t,function(n){n.children&&(n.value=0)}),au(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},oa.layout.partition=function(){function n(t,e,r,u){var i=t.children;if(t.x=e,t.y=t.depth*u,t.dx=r,t.dy=u,i&&(a=i.length)){var a,o,l,c=-1;for(r=t.value?r/t.value:0;++c<a;)n(o=i[c],e,l=o.value*r,u),e+=l}}function t(n){var e=n.children,r=0;if(e&&(u=e.length))for(var u,i=-1;++i<u;)r=Math.max(r,t(e[i]));return 1+r}function e(e,i){var a=r.call(this,e,i);return n(a[0],0,u[0],u[1]/t(a[0])),a}var r=oa.layout.hierarchy(),u=[1,1];return e.size=function(n){return arguments.length?(u=n,e):u},uu(e,r)},oa.layout.pie=function(){function n(a){var o,l=a.length,c=a.map(function(e,r){return+t.call(n,e,r)}),s=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof u?u.apply(this,arguments):u)-s,h=Math.min(Math.abs(f)/l,+("function"==typeof i?i.apply(this,arguments):i)),g=h*(0>f?-1:1),p=oa.sum(c),v=p?(f-l*g)/p:0,d=oa.range(l),m=[];return null!=e&&d.sort(e===xl?function(n,t){return c[t]-c[n]}:function(n,t){return e(a[n],a[t])}),d.forEach(function(n){m[n]={data:a[n],value:o=c[n],startAngle:s,endAngle:s+=o*v+g,padAngle:h}}),m}var t=Number,e=xl,r=0,u=Ua,i=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(u=t,n):u},n.padAngle=function(t){return arguments.length?(i=t,n):i},n};var xl={};oa.layout.stack=function(){function n(o,l){if(!(h=o.length))return o;var c=o.map(function(e,r){return t.call(n,e,r)}),s=c.map(function(t){return t.map(function(t,e){return[i.call(n,t,e),a.call(n,t,e)]})}),f=e.call(n,s,l);c=oa.permute(c,f),s=oa.permute(s,f);var h,g,p,v,d=r.call(n,s,l),m=c[0].length;for(p=0;m>p;++p)for(u.call(n,c[0][p],v=d[p],s[0][p][1]),g=1;h>g;++g)u.call(n,c[g][p],v+=s[g-1][p][1],s[g][p][1]);return o}var t=y,e=pu,r=vu,u=gu,i=fu,a=hu;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:bl.get(t)||pu,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:_l.get(t)||vu,n):r},n.x=function(t){return arguments.length?(i=t,n):i},n.y=function(t){return arguments.length?(a=t,n):a},n.out=function(t){return arguments.length?(u=t,n):u},n};var bl=oa.map({"inside-out":function(n){var t,e,r=n.length,u=n.map(du),i=n.map(mu),a=oa.range(r).sort(function(n,t){return u[n]-u[t]}),o=0,l=0,c=[],s=[];for(t=0;r>t;++t)e=a[t],l>o?(o+=i[e],c.push(e)):(l+=i[e],s.push(e));return s.reverse().concat(c)},reverse:function(n){return oa.range(n.length).reverse()},"default":pu}),_l=oa.map({silhouette:function(n){var t,e,r,u=n.length,i=n[0].length,a=[],o=0,l=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];r>o&&(o=r),a.push(r)}for(e=0;i>e;++e)l[e]=(o-a[e])/2;return l},wiggle:function(n){var t,e,r,u,i,a,o,l,c,s=n.length,f=n[0],h=f.length,g=[];for(g[0]=l=c=0,e=1;h>e;++e){for(t=0,u=0;s>t;++t)u+=n[t][e][1];for(t=0,i=0,o=f[e][0]-f[e-1][0];s>t;++t){for(r=0,a=(n[t][e][1]-n[t][e-1][1])/(2*o);t>r;++r)a+=(n[r][e][1]-n[r][e-1][1])/o;i+=a*n[t][e][1]}g[e]=l-=u?i/u*o:0,c>l&&(c=l)}for(e=0;h>e;++e)g[e]-=c;return g},expand:function(n){var t,e,r,u=n.length,i=n[0].length,a=1/u,o=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];if(r)for(t=0;u>t;t++)n[t][e][1]/=r;else for(t=0;u>t;t++)n[t][e][1]=a}for(e=0;i>e;++e)o[e]=0;return o},zero:vu});oa.layout.histogram=function(){function n(n,i){for(var a,o,l=[],c=n.map(e,this),s=r.call(this,c,i),f=u.call(this,s,c,i),i=-1,h=c.length,g=f.length-1,p=t?1:1/h;++i<g;)a=l[i]=[],a.dx=f[i+1]-(a.x=f[i]),a.y=0;if(g>0)for(i=-1;++i<h;)o=c[i],o>=s[0]&&o<=s[1]&&(a=l[oa.bisect(f,o,1,g)-1],a.y+=p,a.push(n[i]));return l}var t=!0,e=Number,r=bu,u=Mu;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=En(t),n):r},n.bins=function(t){return arguments.length?(u="number"==typeof t?function(n){return xu(n,t)}:En(t),n):u},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},oa.layout.pack=function(){function n(n,i){var a=e.call(this,n,i),o=a[0],l=u[0],c=u[1],s=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(o.x=o.y=0,au(o,function(n){n.r=+s(n.value)}),au(o,Nu),r){var f=r*(t?1:Math.max(2*o.r/l,2*o.r/c))/2;au(o,function(n){n.r+=f}),au(o,Nu),au(o,function(n){n.r-=f})}return Cu(o,l/2,c/2,t?1:1/Math.max(2*o.r/l,2*o.r/c)),a}var t,e=oa.layout.hierarchy().sort(_u),r=0,u=[1,1];return n.size=function(t){return arguments.length?(u=t,n):u},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},uu(n,e)},oa.layout.tree=function(){function n(n,u){var s=a.call(this,n,u),f=s[0],h=t(f);if(au(h,e),h.parent.m=-h.z,iu(h,r),c)iu(f,i);else{var g=f,p=f,v=f;iu(f,function(n){n.x<g.x&&(g=n),n.x>p.x&&(p=n),n.depth>v.depth&&(v=n)});var d=o(g,p)/2-g.x,m=l[0]/(p.x+o(p,g)/2+d),y=l[1]/(v.depth||1);iu(f,function(n){n.x=(n.x+d)*m,n.y=n.depth*y})}return s}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var u,i=t.children,a=0,o=i.length;o>a;++a)r.push((i[a]=u={_:i[a],parent:t,children:(u=i[a].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=u);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Du(n);var i=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+o(n._,r._),n.m=n.z-i):n.z=i}else r&&(n.z=r.z+o(n._,r._));n.parent.A=u(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function u(n,t,e){if(t){for(var r,u=n,i=n,a=t,l=u.parent.children[0],c=u.m,s=i.m,f=a.m,h=l.m;a=Tu(a),u=qu(u),a&&u;)l=qu(l),i=Tu(i),i.a=n,r=a.z+f-u.z-c+o(a._,u._),r>0&&(Ru(Pu(a,n,e),n,r),c+=r,s+=r),f+=a.m,c+=u.m,h+=l.m,s+=i.m;a&&!Tu(i)&&(i.t=a,i.m+=f-s),u&&!qu(l)&&(l.t=u,l.m+=c-h,e=n)}return e}function i(n){n.x*=l[0],n.y=n.depth*l[1]}var a=oa.layout.hierarchy().sort(null).value(null),o=Lu,l=[1,1],c=null;return n.separation=function(t){return arguments.length?(o=t,n):o},n.size=function(t){return arguments.length?(c=null==(l=t)?i:null,n):c?null:l},n.nodeSize=function(t){return arguments.length?(c=null==(l=t)?null:i,n):c?l:null},uu(n,a)},oa.layout.cluster=function(){function n(n,i){var a,o=t.call(this,n,i),l=o[0],c=0;au(l,function(n){var t=n.children;t&&t.length?(n.x=Uu(t),n.y=ju(t)):(n.x=a?c+=e(n,a):0,n.y=0,a=n)});var s=Fu(l),f=Hu(l),h=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return au(l,u?function(n){n.x=(n.x-l.x)*r[0],n.y=(l.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(g-h)*r[0],n.y=(1-(l.y?n.y/l.y:1))*r[1]}),o}var t=oa.layout.hierarchy().sort(null).value(null),e=Lu,r=[1,1],u=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(u=null==(r=t),n):u?null:r},n.nodeSize=function(t){return arguments.length?(u=null!=(r=t),n):u?r:null},uu(n,t)},oa.layout.treemap=function(){function n(n,t){for(var e,r,u=-1,i=n.length;++u<i;)r=(e=n[u]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var i=e.children;if(i&&i.length){var a,o,l,c=f(e),s=[],h=i.slice(),p=1/0,v="slice"===g?c.dx:"dice"===g?c.dy:"slice-dice"===g?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(n(h,c.dx*c.dy/e.value),s.area=0;(l=h.length)>0;)s.push(a=h[l-1]),s.area+=a.area,"squarify"!==g||(o=r(s,v))<=p?(h.pop(),p=o):(s.area-=s.pop().area,u(s,v,c,!1),v=Math.min(c.dx,c.dy),s.length=s.area=0,p=1/0);s.length&&(u(s,v,c,!0),s.length=s.area=0),i.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var i,a=f(t),o=r.slice(),l=[];for(n(o,a.dx*a.dy/t.value),l.area=0;i=o.pop();)l.push(i),l.area+=i.area,null!=i.z&&(u(l,i.z?a.dx:a.dy,a,!o.length),l.length=l.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,u=0,i=1/0,a=-1,o=n.length;++a<o;)(e=n[a].area)&&(i>e&&(i=e),e>u&&(u=e));return r*=r,t*=t,r?Math.max(t*u*p/r,r/(t*i*p)):1/0}function u(n,t,e,r){var u,i=-1,a=n.length,o=e.x,c=e.y,s=t?l(n.area/t):0;
if(t==e.dx){for((r||s>e.dy)&&(s=e.dy);++i<a;)u=n[i],u.x=o,u.y=c,u.dy=s,o+=u.dx=Math.min(e.x+e.dx-o,s?l(u.area/s):0);u.z=!0,u.dx+=e.x+e.dx-o,e.y+=s,e.dy-=s}else{for((r||s>e.dx)&&(s=e.dx);++i<a;)u=n[i],u.x=o,u.y=c,u.dx=s,c+=u.dy=Math.min(e.y+e.dy-c,s?l(u.area/s):0);u.z=!1,u.dy+=e.y+e.dy-c,e.x+=s,e.dx-=s}}function i(r){var u=a||o(r),i=u[0];return i.x=i.y=0,i.value?(i.dx=c[0],i.dy=c[1]):i.dx=i.dy=0,a&&o.revalue(i),n([i],i.dx*i.dy/i.value),(a?e:t)(i),h&&(a=u),u}var a,o=oa.layout.hierarchy(),l=Math.round,c=[1,1],s=null,f=Ou,h=!1,g="squarify",p=.5*(1+Math.sqrt(5));return i.size=function(n){return arguments.length?(c=n,i):c},i.padding=function(n){function t(t){var e=n.call(i,t,t.depth);return null==e?Ou(t):Iu(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return Iu(t,n)}if(!arguments.length)return s;var r;return f=null==(s=n)?Ou:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,i},i.round=function(n){return arguments.length?(l=n?Math.round:Number,i):l!=Number},i.sticky=function(n){return arguments.length?(h=n,a=null,i):h},i.ratio=function(n){return arguments.length?(p=n,i):p},i.mode=function(n){return arguments.length?(g=n+"",i):g},uu(i,o)},oa.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,u;do e=2*Math.random()-1,r=2*Math.random()-1,u=e*e+r*r;while(!u||u>1);return n+t*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var n=oa.random.normal.apply(oa,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=oa.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},oa.scale={};var wl={floor:y,ceil:y};oa.scale.linear=function(){return Wu([0,1],[0,1],Mr,!1)};var Sl={s:1,g:1,p:1,r:1,e:1};oa.scale.log=function(){return ri(oa.scale.linear().domain([0,1]),10,!0,[1,10])};var kl=oa.format(".0e"),Nl={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};oa.scale.pow=function(){return ui(oa.scale.linear(),1,[0,1])},oa.scale.sqrt=function(){return oa.scale.pow().exponent(.5)},oa.scale.ordinal=function(){return ai([],{t:"range",a:[[]]})},oa.scale.category10=function(){return oa.scale.ordinal().range(El)},oa.scale.category20=function(){return oa.scale.ordinal().range(Al)},oa.scale.category20b=function(){return oa.scale.ordinal().range(Cl)},oa.scale.category20c=function(){return oa.scale.ordinal().range(zl)};var El=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xn),Al=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xn),Cl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xn),zl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xn);oa.scale.quantile=function(){return oi([],[])},oa.scale.quantize=function(){return li(0,1,[0,1])},oa.scale.threshold=function(){return ci([.5],[0,1])},oa.scale.identity=function(){return si([0,1])},oa.svg={},oa.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),s=a.apply(this,arguments)-Ha,f=o.apply(this,arguments)-Ha,h=Math.abs(f-s),g=s>f?0:1;if(n>c&&(p=c,c=n,n=p),h>=Fa)return t(c,g)+(n?t(n,1-g):"")+"Z";var p,v,d,m,y,M,x,b,_,w,S,k,N=0,E=0,A=[];if((m=(+l.apply(this,arguments)||0)/2)&&(d=i===Ll?Math.sqrt(n*n+c*c):+i.apply(this,arguments),g||(E*=-1),c&&(E=tn(d/c*Math.sin(m))),n&&(N=tn(d/n*Math.sin(m)))),c){y=c*Math.cos(s+E),M=c*Math.sin(s+E),x=c*Math.cos(f-E),b=c*Math.sin(f-E);var C=Math.abs(f-s-2*E)<=ja?0:1;if(E&&mi(y,M,x,b)===g^C){var z=(s+f)/2;y=c*Math.cos(z),M=c*Math.sin(z),x=b=null}}else y=M=0;if(n){_=n*Math.cos(f-N),w=n*Math.sin(f-N),S=n*Math.cos(s+N),k=n*Math.sin(s+N);var L=Math.abs(s-f+2*N)<=ja?0:1;if(N&&mi(_,w,S,k)===1-g^L){var q=(s+f)/2;_=n*Math.cos(q),w=n*Math.sin(q),S=k=null}}else _=w=0;if(h>Da&&(p=Math.min(Math.abs(c-n)/2,+u.apply(this,arguments)))>.001){v=c>n^g?0:1;var T=p,R=p;if(ja>h){var D=null==S?[_,w]:null==x?[y,M]:Re([y,M],[S,k],[x,b],[_,w]),P=y-D[0],j=M-D[1],U=x-D[0],F=b-D[1],H=1/Math.sin(Math.acos((P*U+j*F)/(Math.sqrt(P*P+j*j)*Math.sqrt(U*U+F*F)))/2),O=Math.sqrt(D[0]*D[0]+D[1]*D[1]);R=Math.min(p,(n-O)/(H-1)),T=Math.min(p,(c-O)/(H+1))}if(null!=x){var I=yi(null==S?[_,w]:[S,k],[y,M],c,T,g),Y=yi([x,b],[_,w],c,T,g);p===T?A.push("M",I[0],"A",T,",",T," 0 0,",v," ",I[1],"A",c,",",c," 0 ",1-g^mi(I[1][0],I[1][1],Y[1][0],Y[1][1]),",",g," ",Y[1],"A",T,",",T," 0 0,",v," ",Y[0]):A.push("M",I[0],"A",T,",",T," 0 1,",v," ",Y[0])}else A.push("M",y,",",M);if(null!=S){var Z=yi([y,M],[S,k],n,-R,g),V=yi([_,w],null==x?[y,M]:[x,b],n,-R,g);p===R?A.push("L",V[0],"A",R,",",R," 0 0,",v," ",V[1],"A",n,",",n," 0 ",g^mi(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-g," ",Z[1],"A",R,",",R," 0 0,",v," ",Z[0]):A.push("L",V[0],"A",R,",",R," 0 0,",v," ",Z[0])}else A.push("L",_,",",w)}else A.push("M",y,",",M),null!=x&&A.push("A",c,",",c," 0 ",C,",",g," ",x,",",b),A.push("L",_,",",w),null!=S&&A.push("A",n,",",n," 0 ",L,",",1-g," ",S,",",k);return A.push("Z"),A.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=hi,r=gi,u=fi,i=Ll,a=pi,o=vi,l=di;return n.innerRadius=function(t){return arguments.length?(e=En(t),n):e},n.outerRadius=function(t){return arguments.length?(r=En(t),n):r},n.cornerRadius=function(t){return arguments.length?(u=En(t),n):u},n.padRadius=function(t){return arguments.length?(i=t==Ll?Ll:En(t),n):i},n.startAngle=function(t){return arguments.length?(a=En(t),n):a},n.endAngle=function(t){return arguments.length?(o=En(t),n):o},n.padAngle=function(t){return arguments.length?(l=En(t),n):l},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Ha;return[Math.cos(t)*n,Math.sin(t)*n]},n};var Ll="auto";oa.svg.line=function(){return Mi(y)};var ql=oa.map({linear:xi,"linear-closed":bi,step:_i,"step-before":wi,"step-after":Si,basis:zi,"basis-open":Li,"basis-closed":qi,bundle:Ti,cardinal:Ei,"cardinal-open":ki,"cardinal-closed":Ni,monotone:Fi});ql.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Tl=[0,2/3,1/3,0],Rl=[0,1/3,2/3,0],Dl=[0,1/6,2/3,1/6];oa.svg.line.radial=function(){var n=Mi(Hi);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},wi.reverse=Si,Si.reverse=wi,oa.svg.area=function(){return Oi(y)},oa.svg.area.radial=function(){var n=Oi(Hi);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},oa.svg.chord=function(){function n(n,o){var l=t(this,i,n,o),c=t(this,a,n,o);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(e(l,c)?u(l.r,l.p1,l.r,l.p0):u(l.r,l.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+u(c.r,c.p1,l.r,l.p0))+"Z"}function t(n,t,e,r){var u=t.call(n,e,r),i=o.call(n,u,r),a=l.call(n,u,r)-Ha,s=c.call(n,u,r)-Ha;return{r:i,a0:a,a1:s,p0:[i*Math.cos(a),i*Math.sin(a)],p1:[i*Math.cos(s),i*Math.sin(s)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>ja)+",1 "+t}function u(n,t,e,r){return"Q 0,0 "+r}var i=Me,a=xe,o=Ii,l=pi,c=vi;return n.radius=function(t){return arguments.length?(o=En(t),n):o},n.source=function(t){return arguments.length?(i=En(t),n):i},n.target=function(t){return arguments.length?(a=En(t),n):a},n.startAngle=function(t){return arguments.length?(l=En(t),n):l},n.endAngle=function(t){return arguments.length?(c=En(t),n):c},n},oa.svg.diagonal=function(){function n(n,u){var i=t.call(this,n,u),a=e.call(this,n,u),o=(i.y+a.y)/2,l=[i,{x:i.x,y:o},{x:a.x,y:o},a];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=Me,e=xe,r=Yi;return n.source=function(e){return arguments.length?(t=En(e),n):t},n.target=function(t){return arguments.length?(e=En(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},oa.svg.diagonal.radial=function(){var n=oa.svg.diagonal(),t=Yi,e=n.projection;return n.projection=function(n){return arguments.length?e(Zi(t=n)):t},n},oa.svg.symbol=function(){function n(n,r){return(Pl.get(t.call(this,n,r))||$i)(e.call(this,n,r))}var t=Xi,e=Vi;return n.type=function(e){return arguments.length?(t=En(e),n):t},n.size=function(t){return arguments.length?(e=En(t),n):e},n};var Pl=oa.map({circle:$i,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Ul)),e=t*Ul;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});oa.svg.symbolTypes=Pl.keys();var jl=Math.sqrt(3),Ul=Math.tan(30*Oa);Aa.transition=function(n){for(var t,e,r=Fl||++Yl,u=Ki(n),i=[],a=Hl||{time:Date.now(),ease:Nr,delay:0,duration:250},o=-1,l=this.length;++o<l;){i.push(t=[]);for(var c=this[o],s=-1,f=c.length;++s<f;)(e=c[s])&&Qi(e,s,u,r,a),t.push(e)}return Wi(i,u,r)},Aa.interrupt=function(n){return this.each(null==n?Ol:Bi(Ki(n)))};var Fl,Hl,Ol=Bi(Ki()),Il=[],Yl=0;Il.call=Aa.call,Il.empty=Aa.empty,Il.node=Aa.node,Il.size=Aa.size,oa.transition=function(n,t){return n&&n.transition?Fl?n.transition(t):n:oa.selection().transition(n)},oa.transition.prototype=Il,Il.select=function(n){var t,e,r,u=this.id,i=this.namespace,a=[];n=A(n);for(var o=-1,l=this.length;++o<l;){a.push(t=[]);for(var c=this[o],s=-1,f=c.length;++s<f;)(r=c[s])&&(e=n.call(r,r.__data__,s,o))?("__data__"in r&&(e.__data__=r.__data__),Qi(e,s,i,u,r[i][u]),t.push(e)):t.push(null)}return Wi(a,i,u)},Il.selectAll=function(n){var t,e,r,u,i,a=this.id,o=this.namespace,l=[];n=C(n);for(var c=-1,s=this.length;++c<s;)for(var f=this[c],h=-1,g=f.length;++h<g;)if(r=f[h]){i=r[o][a],e=n.call(r,r.__data__,h,c),l.push(t=[]);for(var p=-1,v=e.length;++p<v;)(u=e[p])&&Qi(u,p,o,a,i),t.push(u)}return Wi(l,o,a)},Il.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=O(n));for(var i=0,a=this.length;a>i;i++){u.push(t=[]);for(var e=this[i],o=0,l=e.length;l>o;o++)(r=e[o])&&n.call(r,r.__data__,o,i)&&t.push(r)}return Wi(u,this.namespace,this.id)},Il.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):Y(this,null==t?function(t){t[r][e].tween.remove(n)}:function(u){u[r][e].tween.set(n,t)})},Il.attr=function(n,t){function e(){this.removeAttribute(o)}function r(){this.removeAttributeNS(o.space,o.local)}function u(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(o);return e!==n&&(t=a(e,n),function(n){this.setAttribute(o,t(n))})})}function i(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(o.space,o.local);return e!==n&&(t=a(e,n),function(n){this.setAttributeNS(o.space,o.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var a="transform"==n?$r:Mr,o=oa.ns.qualify(n);return Ji(this,"attr."+n,t,o.local?i:u)},Il.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(u));return r&&function(n){this.setAttribute(u,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(u.space,u.local));return r&&function(n){this.setAttributeNS(u.space,u.local,r(n))}}var u=oa.ns.qualify(n);return this.tween("attr."+n,u.local?r:e)},Il.style=function(n,e,r){function u(){this.style.removeProperty(n)}function i(e){return null==e?u:(e+="",function(){var u,i=t(this).getComputedStyle(this,null).getPropertyValue(n);return i!==e&&(u=Mr(i,e),function(t){this.style.setProperty(n,u(t),r)})})}var a=arguments.length;if(3>a){if("string"!=typeof n){2>a&&(e="");for(r in n)this.style(r,n[r],e);return this}r=""}return Ji(this,"style."+n,e,i)},Il.styleTween=function(n,e,r){function u(u,i){var a=e.call(this,u,i,t(this).getComputedStyle(this,null).getPropertyValue(n));return a&&function(t){this.style.setProperty(n,a(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,u)},Il.text=function(n){return Ji(this,"text",n,Gi)},Il.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Il.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=oa.ease.apply(oa,arguments)),Y(this,function(r){r[e][t].ease=n}))},Il.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:Y(this,"function"==typeof n?function(r,u,i){r[e][t].delay=+n.call(r,r.__data__,u,i)}:(n=+n,function(r){r[e][t].delay=n}))},Il.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:Y(this,"function"==typeof n?function(r,u,i){r[e][t].duration=Math.max(1,n.call(r,r.__data__,u,i))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Il.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var u=Hl,i=Fl;try{Fl=e,Y(this,function(t,u,i){Hl=t[r][e],n.call(t,t.__data__,u,i)})}finally{Hl=u,Fl=i}}else Y(this,function(u){var i=u[r][e];(i.event||(i.event=oa.dispatch("start","end","interrupt"))).on(n,t)});return this},Il.transition=function(){for(var n,t,e,r,u=this.id,i=++Yl,a=this.namespace,o=[],l=0,c=this.length;c>l;l++){o.push(n=[]);for(var t=this[l],s=0,f=t.length;f>s;s++)(e=t[s])&&(r=e[a][u],Qi(e,s,a,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Wi(o,a,i)},oa.svg.axis=function(){function n(n){n.each(function(){var n,c=oa.select(this),s=this.__chart__||e,f=this.__chart__=e.copy(),h=null==l?f.ticks?f.ticks.apply(f,o):f.domain():l,g=null==t?f.tickFormat?f.tickFormat.apply(f,o):y:t,p=c.selectAll(".tick").data(h,f),v=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Da),d=oa.transition(p.exit()).style("opacity",Da).remove(),m=oa.transition(p.order()).style("opacity",1),M=Math.max(u,0)+a,x=Zu(f),b=c.selectAll(".domain").data([0]),_=(b.enter().append("path").attr("class","domain"),oa.transition(b));v.append("line"),v.append("text");var w,S,k,N,E=v.select("line"),A=m.select("line"),C=p.select("text").text(g),z=v.select("text"),L=m.select("text"),q="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=na,w="x",k="y",S="x2",N="y2",C.attr("dy",0>q?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+q*i+"V0H"+x[1]+"V"+q*i)):(n=ta,w="y",k="x",S="y2",N="x2",C.attr("dy",".32em").style("text-anchor",0>q?"end":"start"),_.attr("d","M"+q*i+","+x[0]+"H0V"+x[1]+"H"+q*i)),E.attr(N,q*u),z.attr(k,q*M),A.attr(S,0).attr(N,q*u),L.attr(w,0).attr(k,q*M),f.rangeBand){var T=f,R=T.rangeBand()/2;s=f=function(n){return T(n)+R}}else s.rangeBand?s=f:d.call(n,f,s);v.call(n,s,f),m.call(n,f,f)})}var t,e=oa.scale.linear(),r=Zl,u=6,i=6,a=3,o=[10],l=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Vl?t+"":Zl,n):r},n.ticks=function(){return arguments.length?(o=ca(arguments),n):o},n.tickValues=function(t){return arguments.length?(l=t,n):l},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(u=+t,i=+arguments[e-1],n):u},n.innerTickSize=function(t){return arguments.length?(u=+t,n):u},n.outerTickSize=function(t){return arguments.length?(i=+t,n):i},n.tickPadding=function(t){return arguments.length?(a=+t,n):a},n.tickSubdivide=function(){return arguments.length&&n},n};var Zl="bottom",Vl={top:1,right:1,bottom:1,left:1};oa.svg.brush=function(){function n(t){t.each(function(){var t=oa.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=t.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var o=t.selectAll(".resize").data(v,y);o.exit().remove(),o.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return Xl[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),o.style("display",n.empty()?"none":null);var l,f=oa.transition(t),h=oa.transition(a);c&&(l=Zu(c),h.attr("x",l[0]).attr("width",l[1]-l[0]),r(f)),s&&(l=Zu(s),h.attr("y",l[0]).attr("height",l[1]-l[0]),u(f)),e(f)})}function e(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+f[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",f[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function u(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==oa.event.keyCode&&(C||(M=null,L[0]-=f[1],L[1]-=h[1],C=2),S())}function v(){32==oa.event.keyCode&&2==C&&(L[0]+=f[1],L[1]+=h[1],C=0,S())}function d(){var n=oa.mouse(b),t=!1;x&&(n[0]+=x[0],n[1]+=x[1]),C||(oa.event.altKey?(M||(M=[(f[0]+f[1])/2,(h[0]+h[1])/2]),L[0]=f[+(n[0]<M[0])],L[1]=h[+(n[1]<M[1])]):M=null),E&&m(n,c,0)&&(r(k),t=!0),A&&m(n,s,1)&&(u(k),t=!0),t&&(e(k),w({type:"brush",mode:C?"move":"resize"}))}function m(n,t,e){var r,u,i=Zu(t),l=i[0],c=i[1],s=L[e],v=e?h:f,d=v[1]-v[0];return C&&(l-=s,c-=d+s),r=(e?p:g)?Math.max(l,Math.min(c,n[e])):n[e],C?u=(r+=s)+d:(M&&(s=Math.max(l,Math.min(c,2*M[e]-r))),r>s?(u=r,r=s):u=s),v[0]!=r||v[1]!=u?(e?o=null:a=null,v[0]=r,v[1]=u,!0):void 0}function y(){d(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),oa.select("body").style("cursor",null),q.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),z(),w({type:"brushend"})}var M,x,b=this,_=oa.select(oa.event.target),w=l.of(b,arguments),k=oa.select(b),N=_.datum(),E=!/^(n|s)$/.test(N)&&c,A=!/^(e|w)$/.test(N)&&s,C=_.classed("extent"),z=W(b),L=oa.mouse(b),q=oa.select(t(b)).on("keydown.brush",i).on("keyup.brush",v);if(oa.event.changedTouches?q.on("touchmove.brush",d).on("touchend.brush",y):q.on("mousemove.brush",d).on("mouseup.brush",y),k.interrupt().selectAll("*").interrupt(),C)L[0]=f[0]-L[0],L[1]=h[0]-L[1];else if(N){var T=+/w$/.test(N),R=+/^n/.test(N);x=[f[1-T]-L[0],h[1-R]-L[1]],L[0]=f[T],L[1]=h[R]}else oa.event.altKey&&(M=L.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),oa.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),d()}var a,o,l=N(n,"brushstart","brush","brushend"),c=null,s=null,f=[0,0],h=[0,0],g=!0,p=!0,v=$l[0];return n.event=function(n){n.each(function(){var n=l.of(this,arguments),t={x:f,y:h,i:a,j:o},e=this.__chart__||t;this.__chart__=t,Fl?oa.select(this).transition().each("start.brush",function(){a=e.i,o=e.j,f=e.x,h=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=xr(f,t.x),r=xr(h,t.y);return a=o=null,function(u){f=t.x=e(u),h=t.y=r(u),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=t.i,o=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(c=t,v=$l[!c<<1|!s],n):c},n.y=function(t){return arguments.length?(s=t,v=$l[!c<<1|!s],n):s},n.clamp=function(t){return arguments.length?(c&&s?(g=!!t[0],p=!!t[1]):c?g=!!t:s&&(p=!!t),n):c&&s?[g,p]:c?g:s?p:null},n.extent=function(t){var e,r,u,i,l;return arguments.length?(c&&(e=t[0],r=t[1],s&&(e=e[0],r=r[0]),a=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(l=e,e=r,r=l),(e!=f[0]||r!=f[1])&&(f=[e,r])),s&&(u=t[0],i=t[1],c&&(u=u[1],i=i[1]),o=[u,i],s.invert&&(u=s(u),i=s(i)),u>i&&(l=u,u=i,i=l),(u!=h[0]||i!=h[1])&&(h=[u,i])),n):(c&&(a?(e=a[0],r=a[1]):(e=f[0],r=f[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(l=e,e=r,r=l))),s&&(o?(u=o[0],i=o[1]):(u=h[0],i=h[1],s.invert&&(u=s.invert(u),i=s.invert(i)),u>i&&(l=u,u=i,i=l))),c&&s?[[e,u],[r,i]]:c?[e,r]:s&&[u,i])},n.clear=function(){return n.empty()||(f=[0,0],h=[0,0],a=o=null),n},n.empty=function(){return!!c&&f[0]==f[1]||!!s&&h[0]==h[1]},oa.rebind(n,l,"on")};var Xl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$l=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Bl=ho.format=Mo.timeFormat,Wl=Bl.utc,Jl=Wl("%Y-%m-%dT%H:%M:%S.%LZ");Bl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ea:Jl,ea.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},ea.toString=Jl.toString,ho.second=On(function(n){return new go(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ho.seconds=ho.second.range,ho.seconds.utc=ho.second.utc.range,ho.minute=On(function(n){return new go(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ho.minutes=ho.minute.range,ho.minutes.utc=ho.minute.utc.range,ho.hour=On(function(n){var t=n.getTimezoneOffset()/60;return new go(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ho.hours=ho.hour.range,ho.hours.utc=ho.hour.utc.range,ho.month=On(function(n){return n=ho.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ho.months=ho.month.range,ho.months.utc=ho.month.utc.range;var Gl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Kl=[[ho.second,1],[ho.second,5],[ho.second,15],[ho.second,30],[ho.minute,1],[ho.minute,5],[ho.minute,15],[ho.minute,30],[ho.hour,1],[ho.hour,3],[ho.hour,6],[ho.hour,12],[ho.day,1],[ho.day,2],[ho.week,1],[ho.month,1],[ho.month,3],[ho.year,1]],Ql=Bl.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",zt]]),nc={range:function(n,t,e){return oa.range(Math.ceil(n/e)*e,+t,e).map(ua)},floor:y,ceil:y};Kl.year=ho.year,ho.scale=function(){return ra(oa.scale.linear(),Kl,Ql)};var tc=Kl.map(function(n){return[n[0].utc,n[1]]}),ec=Wl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",zt]]);tc.year=ho.year.utc,ho.scale.utc=function(){return ra(oa.scale.linear(),tc,ec)},oa.text=An(function(n){return n.responseText}),oa.json=function(n,t){return Cn(n,"application/json",ia,t)},oa.html=function(n,t){return Cn(n,"text/html",aa,t)},oa.xml=An(function(n){return n.responseXML}),"function"==typeof define&&define.amd?(define('d3v3',oa)):"object"==typeof module&&module.exports?module.exports=oa:this.d3v3=oa;window.d3v3=oa}();
/*! html2canvas 1.3.2 <https://html2canvas.hertzen.com> Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com> Released under MIT License  */
!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?A["html2canvasV1"]=e():"function"==typeof define&&define.amd?define(e):(A="undefined"!=typeof globalThis?globalThis:A||self).html2canvasV1=e()}(window,function(){"use strict";
var B=function(A,e){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(A,e)};function A(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}B(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var h=function(){return(h=Object.assign||function(A){for(var e,t=1,B=arguments.length;t<B;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(A[r]=e[r]);return A}).apply(this,arguments)};function a(A,s,o,i){return new(o=o||Promise)(function(t,e){function B(A){try{n(i.next(A))}catch(A){e(A)}}function r(A){try{n(i.throw(A))}catch(A){e(A)}}function n(A){var e;A.done?t(A.value):((e=A.value)instanceof o?e:new o(function(A){A(e)})).then(B,r)}n((i=i.apply(A,s||[])).next())})}function H(t,B){var r,n,s,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},A={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function e(e){return function(A){return function(e){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=2&e[0]?n.return:e[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,e[1])).done)return s;switch(n=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return o.label++,{value:e[1],done:!1};case 5:o.label++,n=e[1],e=[0];continue;case 7:e=o.ops.pop(),o.trys.pop();continue;default:if(!(s=0<(s=o.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){o=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){o.label=e[1];break}if(6===e[0]&&o.label<s[1]){o.label=s[1],s=e;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(e);break}s[2]&&o.ops.pop(),o.trys.pop();continue}e=B.call(t,o)}catch(A){e=[6,A],n=0}finally{r=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,A])}}}function t(A,e,t){if(t||2===arguments.length)for(var B,r=0,n=e.length;r<n;r++)!B&&r in e||((B=B||Array.prototype.slice.call(e,0,r))[r]=e[r]);return A.concat(B||e)}var d=(r.prototype.add=function(A,e,t,B){return new r(this.left+A,this.top+e,this.width+t,this.height+B)},r.fromClientRect=function(A,e){return new r(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},r.fromDOMRectList=function(A,e){e=e[0];return e?new r(e.x+A.windowBounds.left,e.y+A.windowBounds.top,e.width,e.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r);function r(A,e,t,B){this.left=A,this.top=e,this.width=t,this.height=B}for(var E=function(A,e){return d.fromClientRect(A,e.getBoundingClientRect())},Q=function(A){for(var e=[],t=0,B=A.length;t<B;){var r,n=A.charCodeAt(t++);55296<=n&&n<=56319&&t<B?56320==(64512&(r=A.charCodeAt(t++)))?e.push(((1023&n)<<10)+(1023&r)+65536):(e.push(n),t--):e.push(n)}return e},g=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var B=[],r=-1,n="";++r<t;){var s=A[r];s<=65535?B.push(s):(s-=65536,B.push(55296+(s>>10),s%1024+56320)),(r+1===t||16384<B.length)&&(n+=String.fromCharCode.apply(String,B),B.length=0)}return n},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<e.length;n++)c[e.charCodeAt(n)]=n;function s(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))}var o=(i.prototype.get=function(A){var e;if(0<=A){if(A<55296||56319<A&&A<=65535)return e=this.index[A>>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A<this.highStart)return e=this.index[e=2080+(A>>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},i);function i(A,e,t,B,r,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=B,this.index=r,this.data=n}function w(A,e,t,B){var r=B[t];if(Array.isArray(A)?-1!==A.indexOf(r):A===r)for(var n=t;n<=B.length;){if((o=B[++n])===e)return 1;if(o!==p)break}if(r===p)for(n=t;0<n;){var s=B[--n];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o,i=t;i<=B.length;){if((o=B[++i])===e)return 1;if(o!==p)break}if(s!==p)break}}function C(A,e){for(var t=A;0<=t;){var B=e[t];if(B!==p)return B;t--}return 0}function U(t,A){var e=(r=function(A,B){void 0===B&&(B="strict");var r=[],n=[],s=[];return A.forEach(function(A,e){var t=j.get(A);if(50<t?(s.push(!0),t-=50):s.push(!1),-1!==["normal","auto","loose"].indexOf(B)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(e),r.push(16);if(4!==t&&11!==t)return n.push(e),31===t?r.push("strict"===B?R:J):t===W||29===t?r.push(G):43===t?131072<=A&&A<=196605||196608<=A&&A<=262141?r.push(J):r.push(G):void r.push(t);if(0===e)return n.push(e),r.push(G);t=r[e-1];return-1===tA.indexOf(t)?(n.push(n[e-1]),r.push(t)):(n.push(e),r.push(G))}),[n,r,s]}(t,(A=A||{lineBreak:"normal",wordBreak:"normal"}).lineBreak))[0],B=r[1],r=r[2];return[e,B="break-all"===A.wordBreak||"break-word"===A.wordBreak?B.map(function(A){return-1!==[T,G,W].indexOf(A)?J:A}):B,"keep-all"===A.wordBreak?r.map(function(A,e){return A&&19968<=t[e]&&t[e]<=40959}):void 0]}var l,F,u,f,I,p=10,y=13,K=15,L=17,m=18,D=19,b=20,R=21,O=22,S=24,T=25,v=26,M=27,N=28,G=30,x=32,V=33,P=34,k=35,J=37,X=38,_=39,Y=40,W=42,Z=[9001,65288],q="Ã—",j=(u=function(A){var e,t,B,r,n=.75*A.length,s=A.length,o=0;"="===A[A.length-1]&&(n--,"="===A[A.length-2]&&n--);for(var n=new("undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?ArrayBuffer:Array)(n),i=Array.isArray(n)?n:new Uint8Array(n),Q=0;Q<s;Q+=4)e=c[A.charCodeAt(Q)],t=c[A.charCodeAt(Q+1)],B=c[A.charCodeAt(Q+2)],r=c[A.charCodeAt(Q+3)],i[o++]=e<<2|t>>4,i[o++]=(15&t)<<4|B>>2,i[o++]=(3&B)<<6|63&r;return n}(l=" "),f=Array.isArray(u)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=4)t.push(A[B+3]<<24|A[B+2]<<16|A[B+1]<<8|A[B]);return t}(u):new Uint32Array(u),I=Array.isArray(u)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=2)t.push(A[B+1]<<8|A[B]);return t}(u):new Uint16Array(u),l=s(I,12,f[4]/2),F=2===f[5]?s(I,(24+f[4])/2):(u=f,I=Math.ceil((24+f[4])/4),u.slice?u.slice(I,F):new Uint32Array(Array.prototype.slice.call(u,I,F))),new o(f[0],f[1],f[2],f[3],l,F)),z=[G,36],$=[1,2,3,5],AA=[p,8],eA=[M,v],tA=$.concat(AA),BA=[X,_,Y,P,k],rA=[K,y],nA=(sA.prototype.slice=function(){return g.apply(void 0,this.codePoints.slice(this.start,this.end))},sA);function sA(A,e,t,B){this.codePoints=A,this.required="!"===e,this.start=t,this.end=B}function oA(A,e){var t=Q(A),B=(e=U(t,e))[0],r=e[1],n=e[2],s=t.length,o=0,i=0;return{next:function(){if(s<=i)return{done:!0,value:null};for(var A=q;i<s&&(A=function(A,e,t,B,r){if(0===t[B])return q;var n=B-1;if(Array.isArray(r)&&!0===r[n])return q;var s=n-1,o=1+n,i=e[n],B=0<=s?e[s]:0,r=e[o];if(2===i&&3===r)return q;if(-1!==$.indexOf(i))return"!";if(-1!==$.indexOf(r))return q;if(-1!==AA.indexOf(r))return q;if(8===C(n,e))return"Ã·";if(11===j.get(A[n]))return q;if((i===x||i===V)&&11===j.get(A[o]))return q;if(7===i||7===r)return q;if(9===i)return q;if(-1===[p,y,K].indexOf(i)&&9===r)return q;if(-1!==[L,m,D,S,N].indexOf(r))return q;if(C(n,e)===O)return q;if(w(23,O,n,e))return q;if(w([L,m],R,n,e))return q;if(w(12,12,n,e))return q;if(i===p)return"Ã·";if(23===i||23===r)return q;if(16===r||16===i)return"Ã·";if(-1!==[y,K,R].indexOf(r)||14===i)return q;if(36===B&&-1!==rA.indexOf(i))return q;if(i===N&&36===r)return q;if(r===b)return q;if(-1!==z.indexOf(r)&&i===T||-1!==z.indexOf(i)&&r===T)return q;if(i===M&&-1!==[J,x,V].indexOf(r)||-1!==[J,x,V].indexOf(i)&&r===v)return q;if(-1!==z.indexOf(i)&&-1!==eA.indexOf(r)||-1!==eA.indexOf(i)&&-1!==z.indexOf(r))return q;if(-1!==[M,v].indexOf(i)&&(r===T||-1!==[O,K].indexOf(r)&&e[1+o]===T)||-1!==[O,K].indexOf(i)&&r===T||i===T&&-1!==[T,N,S].indexOf(r))return q;if(-1!==[T,N,S,L,m].indexOf(r))for(var Q=n;0<=Q;){if((c=e[Q])===T)return q;if(-1===[N,S].indexOf(c))break;Q--}if(-1!==[M,v].indexOf(r))for(var c,Q=-1!==[L,m].indexOf(i)?s:n;0<=Q;){if((c=e[Q])===T)return q;if(-1===[N,S].indexOf(c))break;Q--}if(X===i&&-1!==[X,_,P,k].indexOf(r)||-1!==[_,P].indexOf(i)&&-1!==[_,Y].indexOf(r)||-1!==[Y,k].indexOf(i)&&r===Y)return q;if(-1!==BA.indexOf(i)&&-1!==[b,v].indexOf(r)||-1!==BA.indexOf(r)&&i===M)return q;if(-1!==z.indexOf(i)&&-1!==z.indexOf(r))return q;if(i===S&&-1!==z.indexOf(r))return q;if(-1!==z.concat(T).indexOf(i)&&r===O&&-1===Z.indexOf(A[o])||-1!==z.concat(T).indexOf(r)&&i===m)return q;if(41===i&&41===r){for(var a=t[n],g=1;0<a&&41===e[--a];)g++;if(g%2!=0)return q}return i===x&&r===V?q:"Ã·"}(t,r,B,++i,n))===q;);if(A===q&&i!==s)return{done:!0,value:null};var e=new nA(t,A,o,i);return o=i,{value:e,done:!1}}}}function iA(A){return 48<=A&&A<=57}function QA(A){return iA(A)||65<=A&&A<=70||97<=A&&A<=102}function cA(A){return 10===A||9===A||32===A}function aA(A){return 97<=(t=e=A)&&t<=122||65<=(e=e)&&e<=90||128<=A||95===A;var e,t}function gA(A){return aA(A)||iA(A)||45===A}function wA(A,e){return 92===A&&10!==e}function CA(A,e,t){return 45===A?aA(e)||wA(e,t):!!aA(A)||92===A&&10!==e}function UA(A,e,t){return 43===A||45===A?!!iA(e)||46===e&&iA(t):iA(46===A?e:A)}var lA={type:2},FA={type:3},uA={type:4},hA={type:13},dA={type:8},EA={type:21},HA={type:9},fA={type:10},IA={type:11},pA={type:12},yA={type:14},KA={type:23},LA={type:1},mA={type:25},DA={type:24},bA={type:26},RA={type:27},OA={type:28},SA={type:29},TA={type:31},vA={type:32},MA=(NA.prototype.write=function(A){this._value=this._value.concat(Q(A))},NA.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==vA;)A.push(e),e=this.consumeToken();return A},NA.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),B=this.peekCodePoint(2);if(gA(e)||wA(t,B)){var r=CA(e,t,B)?2:1;return{type:5,value:this.consumeName(),flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),hA;break;case 39:return this.consumeStringToken(39);case 40:return lA;case 41:return FA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yA;break;case 43:if(UA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return uA;case 45:var B=A,r=this.peekCodePoint(0),n=this.peekCodePoint(1);if(UA(B,r,n))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(CA(B,r,n))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===r&&62===n)return this.consumeCodePoint(),this.consumeCodePoint(),DA;break;case 46:if(UA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(-1===s)return this.consumeToken()}break;case 58:return bA;case 59:return RA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),mA;break;case 64:var n=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);if(CA(n,o,i))return{type:7,value:this.consumeName()};break;case 91:return OA;case 92:if(wA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return SA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),dA;break;case 123:return IA;case 125:return pA;case 117:case 85:o=this.peekCodePoint(0),i=this.peekCodePoint(1);return 43!==o||!QA(i)&&63!==i||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),HA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),EA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),fA;break;case-1:return vA}return cA(A)?(this.consumeWhiteSpace(),TA):iA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):aA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:g(A)}},NA.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},NA.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},NA.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},NA.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();QA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(g.apply(void 0,A.map(function(A){return 63===A?48:A})),16),end:parseInt(g.apply(void 0,A.map(function(A){return 63===A?70:A})),16)};var B=parseInt(g.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&QA(this.peekCodePoint(1))){this.consumeCodePoint();for(var e=this.consumeCodePoint(),r=[];QA(e)&&r.length<6;)r.push(e),e=this.consumeCodePoint();return{type:30,start:B,end:parseInt(g.apply(void 0,r),16)}}return{type:30,start:B,end:B}},NA.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},NA.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e,t=this.peekCodePoint(0);if(39===t||34===t){t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),KA)}for(;;){var B=this.consumeCodePoint();if(-1===B||41===B)return{type:22,value:g.apply(void 0,A)};if(cA(B))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:g.apply(void 0,A)}):(this.consumeBadUrlRemnants(),KA);if(34===B||39===B||40===B||(0<=(e=B)&&e<=8||11===e||14<=e&&e<=31||127===e))return this.consumeBadUrlRemnants(),KA;if(92===B){if(!wA(B,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),KA;A.push(this.consumeEscapedCodePoint())}else A.push(B)}},NA.prototype.consumeWhiteSpace=function(){for(;cA(this.peekCodePoint(0));)this.consumeCodePoint()},NA.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;wA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},NA.prototype.consumeStringSlice=function(A){for(var e="";0<A;){var t=Math.min(6e4,A);e+=g.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},NA.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var B,r=this._value[t];if(-1===r||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),LA;92!==r||-1!==(B=this._value[t+1])&&void 0!==B&&(10===B?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):wA(r,B)&&(e+=this.consumeStringSlice(t),e+=g(this.consumeEscapedCodePoint()),t=-1)),t++}},NA.prototype.consumeNumber=function(){var A=[],e=4;for(43!==(t=this.peekCodePoint(0))&&45!==t||A.push(this.consumeCodePoint());iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());var t=this.peekCodePoint(0),B=this.peekCodePoint(1);if(46===t&&iA(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var B=this.peekCodePoint(1),r=this.peekCodePoint(2);if((69===t||101===t)&&((43===B||45===B)&&iA(r)||iA(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);for(var B=[];iA(A[e]);)B.push(A[e++]);var r=B.length?parseInt(g.apply(void 0,B),10):0;46===A[e]&&e++;for(var n=[];iA(A[e]);)n.push(A[e++]);var s=n.length,o=s?parseInt(g.apply(void 0,n),10):0;69!==A[e]&&101!==A[e]||e++;var i=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(i=-1),e++);for(var Q=[];iA(A[e]);)Q.push(A[e++]);var c=Q.length?parseInt(g.apply(void 0,Q),10):0;return t*(r+o*Math.pow(10,-s))*Math.pow(10,i*c)}(A),e]},NA.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],B=this.peekCodePoint(0),r=this.peekCodePoint(1),A=this.peekCodePoint(2);return CA(B,r,A)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===B?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},NA.prototype.consumeEscapedCodePoint=function(){var A,e=this.consumeCodePoint();if(QA(e)){for(var t=g(e);QA(this.peekCodePoint(0))&&t.length<6;)t+=g(this.consumeCodePoint());cA(this.peekCodePoint(0))&&this.consumeCodePoint();var B=parseInt(t,16);return 0===B||55296<=(A=B)&&A<=57343||1114111<B?65533:B}return-1===e?65533:e},NA.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(gA(e))A+=g(e);else{if(!wA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=g(this.consumeEscapedCodePoint())}}},NA);function NA(){this._value=[]}var GA=(xA.create=function(A){var e=new MA;return e.write(A),new xA(e.read())},xA.parseValue=function(A){return xA.create(A).parseComponentValue()},xA.parseValues=function(A){return xA.create(A).parseComponentValues()},xA.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);for(var e=this.consumeComponentValue();31===(A=this.consumeToken()).type;);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},xA.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},xA.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},xA.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||re(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},xA.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},xA.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?vA:A},xA.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},xA);function xA(A){this._tokens=A}function VA(A){return 15===A.type}function PA(A){return 17===A.type}function kA(A){return 20===A.type}function JA(A){return 0===A.type}function XA(A,e){return kA(A)&&A.value===e}function _A(A){return 31!==A.type}function YA(A){return 31!==A.type&&4!==A.type}function WA(A){var e=[],t=[];return A.forEach(function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)}),t.length&&e.push(t),e}function ZA(A){return 17===A.type||15===A.type}function qA(A){return 16===A.type||ZA(A)}function jA(A){return 1<A.length?[A[0],A[1]]:[A[0]]}function zA(A,e,t){var B=A[0],A=A[1];return[ie(B,e),ie(void 0!==A?A:B,t)]}function $A(A){return 15===A.type&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)}function Ae(A){switch(A.filter(kA).map(function(A){return A.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ne,ne];case"to top":case"bottom":return ce(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ne,oe];case"to right":case"left":return ce(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[oe,oe];case"to bottom":case"top":return ce(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[oe,ne];case"to left":case"right":return ce(270)}return 0}function ee(A){return 0==(255&A)}function te(A){var e=255&A,t=255&A>>8,B=255&A>>16,A=255&A>>24;return e<255?"rgba("+A+","+B+","+t+","+e/255+")":"rgb("+A+","+B+","+t+")"}function Be(A,e){if(17===A.type)return A.number;if(16!==A.type)return 0;var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}var re=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},ne={type:17,number:0,flags:4},se={type:16,number:50,flags:4},oe={type:16,number:100,flags:4},ie=function(A,e){if(16===A.type)return A.number/100*e;if(VA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Qe=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ce=function(A){return Math.PI*A/180},ae=function(A,e){if(18===e.type){var t=ue[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var B=e.value.substring(0,1),r=e.value.substring(1,2),n=e.value.substring(2,3);return ge(parseInt(B+B,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(4===e.value.length){var B=e.value.substring(0,1),r=e.value.substring(1,2),n=e.value.substring(2,3),s=e.value.substring(3,4);return ge(parseInt(B+B,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length){B=e.value.substring(0,2),r=e.value.substring(2,4),n=e.value.substring(4,6);return ge(parseInt(B,16),parseInt(r,16),parseInt(n,16),1)}if(8===e.value.length){B=e.value.substring(0,2),r=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8);return ge(parseInt(B,16),parseInt(r,16),parseInt(n,16),parseInt(s,16)/255)}}if(20===e.type){e=he[e.value.toUpperCase()];if(void 0!==e)return e}return he.TRANSPARENT},ge=function(A,e,t,B){return(A<<24|e<<16|t<<8|Math.round(255*B)<<0)>>>0},we=function(A,e){e=e.filter(YA);if(3===e.length){var t=e.map(Be),B=t[0],r=t[1],t=t[2];return ge(B,r,t,1)}if(4!==e.length)return 0;e=e.map(Be),B=e[0],r=e[1],t=e[2],e=e[3];return ge(B,r,t,e)};function Ce(A,e,t){return t<0&&(t+=1),1<=t&&--t,t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}function Ue(A,e){return ae(A,GA.create(e).parseComponentValue())}var le,Fe=function(A,e){var t=e.filter(YA),B=t[0],r=t[1],n=t[2],e=t[3],t=(17===B.type?ce(B.number):Qe(A,B))/(2*Math.PI),A=qA(r)?r.number/100:0,B=qA(n)?n.number/100:0,r=void 0!==e&&qA(e)?ie(e,1):1;if(0==A)return ge(255*B,255*B,255*B,1);n=B<=.5?B*(1+A):B+A-B*A,e=2*B-n,A=Ce(e,n,t+1/3),B=Ce(e,n,t),t=Ce(e,n,t-1/3);return ge(255*A,255*B,255*t,r)},ue={hsl:Fe,hsla:Fe,rgb:we,rgba:we},he={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(ve=le=le||{})[ve.BORDER_BOX=0]="BORDER_BOX",ve[ve.PADDING_BOX=1]="PADDING_BOX";function de(A,e){return A=ae(A,e[0]),(e=e[1])&&qA(e)?{color:A,stop:e}:{color:A,stop:null}}function Ee(A,t){var e=A[0],B=A[A.length-1];null===e.stop&&(e.stop=ne),null===B.stop&&(B.stop=oe);for(var r=[],n=0,s=0;s<A.length;s++){var o=A[s].stop;null!==o?(n<(o=ie(o,t))?r.push(o):r.push(n),n=o):r.push(null)}for(var i=null,s=0;s<r.length;s++){var Q=r[s];if(null===Q)null===i&&(i=s);else if(null!==i){for(var c=s-i,a=(Q-r[i-1])/(1+c),g=1;g<=c;g++)r[i+g-1]=a*g;i=null}}return A.map(function(A,e){return{color:A.color,stop:Math.max(Math.min(1,r[e]/t),0)}})}function He(A,e,t){var B="number"==typeof A?A:(s=e/2,B=(n=t)/2,s=ie((r=A)[0],e)-s,n=B-ie(r[1],n),(Math.atan2(n,s)+2*Math.PI)%(2*Math.PI)),r=Math.abs(e*Math.sin(B))+Math.abs(t*Math.cos(B)),n=e/2,s=t/2,e=r/2,t=Math.sin(B-Math.PI/2)*e,e=Math.cos(B-Math.PI/2)*e;return[r,n-e,n+e,s-t,s+t]}function fe(A,e){return Math.sqrt(A*A+e*e)}function Ie(A,e,r,n,s){return[[0,0],[0,e],[A,0],[A,e]].reduce(function(A,e){var t=e[0],B=e[1],B=fe(r-t,n-B);return(s?B<A.optimumDistance:B>A.optimumDistance)?{optimumCorner:e,optimumDistance:B}:A},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner}var pe,ye={name:"background-clip",initialValue:"border-box",prefix:!(ve[ve.CONTENT_BOX=2]="CONTENT_BOX"),type:1,parse:function(A,e){return e.map(function(A){if(kA(A))switch(A.value){case"padding-box":return le.PADDING_BOX;case"content-box":return le.CONTENT_BOX}return le.BORDER_BOX})}},Ke={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fe=function(t,A){var B=ce(180),r=[];return WA(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&-1!==["top","left","right","bottom"].indexOf(e.value))return void(B=Ae(A));if($A(e))return void(B=(Qe(t,e)+ce(270))%ce(360))}A=de(t,A);r.push(A)}),{angle:B,stops:r,type:pe.LINEAR_GRADIENT}},Le="closest-side",me="farthest-side",De="closest-corner",be="farthest-corner",Re="ellipse",Oe="contain",we=function(B,A){var r=Se.CIRCLE,n=Te.FARTHEST_CORNER,s=[],o=[];return WA(A).forEach(function(A,e){var t=!0;0===e?t=A.reduce(function(A,e){if(kA(e))switch(e.value){case"center":return o.push(se),!1;case"top":case"left":return o.push(ne),!1;case"right":case"bottom":return o.push(oe),!1}else if(qA(e)||ZA(e))return o.push(e),!1;return A},t):1===e&&(t=A.reduce(function(A,e){if(kA(e))switch(e.value){case"circle":return r=Se.CIRCLE,!1;case Re:return r=Se.ELLIPSE,!1;case Oe:case Le:return n=Te.CLOSEST_SIDE,!1;case me:return n=Te.FARTHEST_SIDE,!1;case De:return n=Te.CLOSEST_CORNER,!1;case"cover":case be:return n=Te.FARTHEST_CORNER,!1}else if(ZA(e)||qA(e))return(n=!Array.isArray(n)?[]:n).push(e),!1;return A},t)),t&&(A=de(B,A),s.push(A))}),{size:n,shape:r,stops:s,position:o,type:pe.RADIAL_GRADIENT}};(ve=pe=pe||{})[ve.URL=0]="URL",ve[ve.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",ve[ve.RADIAL_GRADIENT=2]="RADIAL_GRADIENT";var Se,Te,ve;(ve=Se=Se||{})[ve.CIRCLE=0]="CIRCLE",ve[ve.ELLIPSE=1]="ELLIPSE",(ve=Te=Te||{})[ve.CLOSEST_SIDE=0]="CLOSEST_SIDE",ve[ve.FARTHEST_SIDE=1]="FARTHEST_SIDE",ve[ve.CLOSEST_CORNER=2]="CLOSEST_CORNER",ve[ve.FARTHEST_CORNER=3]="FARTHEST_CORNER";var Me=function(A,e){if(22===e.type){var t={url:e.value,type:pe.URL};return A.cache.addImage(e.value),t}if(18!==e.type)throw new Error("Unsupported image type "+e.type);t=Ge[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)};var Ne,Ge={"linear-gradient":function(t,A){var B=ce(180),r=[];return WA(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&"to"===e.value)return void(B=Ae(A));if($A(e))return void(B=Qe(t,e))}A=de(t,A);r.push(A)}),{angle:B,stops:r,type:pe.LINEAR_GRADIENT}},"-moz-linear-gradient":Fe,"-ms-linear-gradient":Fe,"-o-linear-gradient":Fe,"-webkit-linear-gradient":Fe,"radial-gradient":function(r,A){var n=Se.CIRCLE,s=Te.FARTHEST_CORNER,o=[],i=[];return WA(A).forEach(function(A,e){var t,B=!0;0===e&&(t=!1,B=A.reduce(function(A,e){if(t)if(kA(e))switch(e.value){case"center":return i.push(se),A;case"top":case"left":return i.push(ne),A;case"right":case"bottom":return i.push(oe),A}else(qA(e)||ZA(e))&&i.push(e);else if(kA(e))switch(e.value){case"circle":return n=Se.CIRCLE,!1;case Re:return n=Se.ELLIPSE,!1;case"at":return!(t=!0);case Le:return s=Te.CLOSEST_SIDE,!1;case"cover":case me:return s=Te.FARTHEST_SIDE,!1;case Oe:case De:return s=Te.CLOSEST_CORNER,!1;case be:return s=Te.FARTHEST_CORNER,!1}else if(ZA(e)||qA(e))return(s=!Array.isArray(s)?[]:s).push(e),!1;return A},B)),B&&(A=de(r,A),o.push(A))}),{size:s,shape:n,stops:o,position:i,type:pe.RADIAL_GRADIENT}},"-moz-radial-gradient":we,"-ms-radial-gradient":we,"-o-radial-gradient":we,"-webkit-radial-gradient":we,"-webkit-gradient":function(B,A){var e=ce(180),r=[],n=pe.LINEAR_GRADIENT,t=Se.CIRCLE,s=Te.FARTHEST_CORNER;return WA(A).forEach(function(A,e){var t,A=A[0];if(0===e){if(kA(A)&&"linear"===A.value)return void(n=pe.LINEAR_GRADIENT);if(kA(A)&&"radial"===A.value)return void(n=pe.RADIAL_GRADIENT)}18===A.type&&("from"===A.name?(t=ae(B,A.values[0]),r.push({stop:ne,color:t})):"to"===A.name?(t=ae(B,A.values[0]),r.push({stop:oe,color:t})):"color-stop"!==A.name||2===(A=A.values.filter(YA)).length&&(t=ae(B,A[1]),A=A[0],PA(A)&&r.push({stop:{type:16,number:100*A.number,flags:A.flags},color:t})))}),n===pe.LINEAR_GRADIENT?{angle:(e+ce(180))%ce(360),stops:r,type:n}:{size:s,shape:t,stops:r,position:[],type:n}}},xe={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter(function(A){return YA(A)&&!(20===(A=A).type&&"none"===A.value||18===A.type&&!Ge[A.name])}).map(function(A){return Me(e,A)})}},Ve={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(kA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Pe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return WA(e).map(function(A){return A.filter(qA)}).map(jA)}};(we=Ne=Ne||{})[we.REPEAT=0]="REPEAT",we[we.NO_REPEAT=1]="NO_REPEAT",we[we.REPEAT_X=2]="REPEAT_X";var ke,Je={name:"background-repeat",initialValue:"repeat",prefix:!(we[we.REPEAT_Y=3]="REPEAT_Y"),type:1,parse:function(A,e){return WA(e).map(function(A){return A.filter(kA).map(function(A){return A.value}).join(" ")}).map(Xe)}},Xe=function(A){switch(A){case"no-repeat":return Ne.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Ne.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Ne.REPEAT_Y;default:return Ne.REPEAT}};(we=ke=ke||{}).AUTO="auto",we.CONTAIN="contain";var _e,Ye={name:"background-size",initialValue:"0",prefix:!(we.COVER="cover"),type:1,parse:function(A,e){return WA(e).map(function(A){return A.filter(We)})}},We=function(A){return kA(A)||qA(A)},we=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ze=we("top"),qe=we("right"),je=we("bottom"),ze=we("left"),we=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return jA(e.filter(qA))}}},$e=we("top-left"),At=we("top-right"),et=we("bottom-right"),tt=we("bottom-left");(we=_e=_e||{})[we.NONE=0]="NONE",we[we.SOLID=1]="SOLID",we[we.DASHED=2]="DASHED",we[we.DOTTED=3]="DOTTED",we[we.DOUBLE=4]="DOUBLE";var Bt,we=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return _e.NONE;case"dashed":return _e.DASHED;case"dotted":return _e.DOTTED;case"double":return _e.DOUBLE}return _e.SOLID}}},rt=we("top"),nt=we("right"),st=we("bottom"),ot=we("left"),we=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return VA(e)?e.number:0}}},it=we("top"),Qt=we("right"),ct=we("bottom"),at=we("left"),gt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"!==e?0:1}},Ct={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(kA).reduce(function(A,e){return A|Ut(e.value)},0)}},Ut=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};(we=Bt=Bt||{})[we.NONE=0]="NONE",we[we.LEFT=1]="LEFT",we[we.RIGHT=2]="RIGHT",we[we.INLINE_START=3]="INLINE_START";function lt(A,e){return kA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:qA(A)?ie(A,e):e}var Ft,ut,ht={name:"float",initialValue:"none",prefix:!(we[we.INLINE_END=4]="INLINE_END"),type:2,parse:function(A,e){switch(e){case"left":return Bt.LEFT;case"right":return Bt.RIGHT;case"inline-start":return Bt.INLINE_START;case"inline-end":return Bt.INLINE_END}return Bt.NONE}},dt={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return!(20===e.type&&"normal"===e.value||17!==e.type&&15!==e.type)?e.number:0}},Et={name:"line-break",initialValue:(we=Ft=Ft||{}).NORMAL="normal",prefix:!(we.STRICT="strict"),type:2,parse:function(A,e){return"strict"!==e?Ft.NORMAL:Ft.STRICT}},Ht={name:"line-height",initialValue:"normal",prefix:!1,type:4},ft={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Me(A,e)}};(we=ut=ut||{})[we.INSIDE=0]="INSIDE";var It,pt={name:"list-style-position",initialValue:"outside",prefix:!(we[we.OUTSIDE=1]="OUTSIDE"),type:2,parse:function(A,e){return"inside"!==e?ut.OUTSIDE:ut.INSIDE}};(we=It=It||{})[we.NONE=-1]="NONE",we[we.DISC=0]="DISC",we[we.CIRCLE=1]="CIRCLE",we[we.SQUARE=2]="SQUARE",we[we.DECIMAL=3]="DECIMAL",we[we.CJK_DECIMAL=4]="CJK_DECIMAL",we[we.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",we[we.LOWER_ROMAN=6]="LOWER_ROMAN",we[we.UPPER_ROMAN=7]="UPPER_ROMAN",we[we.LOWER_GREEK=8]="LOWER_GREEK",we[we.LOWER_ALPHA=9]="LOWER_ALPHA",we[we.UPPER_ALPHA=10]="UPPER_ALPHA",we[we.ARABIC_INDIC=11]="ARABIC_INDIC",we[we.ARMENIAN=12]="ARMENIAN",we[we.BENGALI=13]="BENGALI",we[we.CAMBODIAN=14]="CAMBODIAN",we[we.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",we[we.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",we[we.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",we[we.DEVANAGARI=18]="DEVANAGARI",we[we.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",we[we.GEORGIAN=20]="GEORGIAN",we[we.GUJARATI=21]="GUJARATI",we[we.GURMUKHI=22]="GURMUKHI",we[we.HEBREW=22]="HEBREW",we[we.HIRAGANA=23]="HIRAGANA",we[we.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",we[we.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",we[we.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",we[we.KANNADA=27]="KANNADA",we[we.KATAKANA=28]="KATAKANA",we[we.KATAKANA_IROHA=29]="KATAKANA_IROHA",we[we.KHMER=30]="KHMER",we[we.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",we[we.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",we[we.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",we[we.LAO=34]="LAO",we[we.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",we[we.MALAYALAM=36]="MALAYALAM",we[we.MONGOLIAN=37]="MONGOLIAN",we[we.MYANMAR=38]="MYANMAR",we[we.ORIYA=39]="ORIYA",we[we.PERSIAN=40]="PERSIAN",we[we.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",we[we.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",we[we.TAMIL=43]="TAMIL",we[we.TELUGU=44]="TELUGU",we[we.THAI=45]="THAI",we[we.TIBETAN=46]="TIBETAN",we[we.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",we[we.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",we[we.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",we[we.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN";var yt,Kt={name:"list-style-type",initialValue:"none",prefix:!(we[we.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"),type:2,parse:function(A,e){switch(e){case"disc":return It.DISC;case"circle":return It.CIRCLE;case"square":return It.SQUARE;case"decimal":return It.DECIMAL;case"cjk-decimal":return It.CJK_DECIMAL;case"decimal-leading-zero":return It.DECIMAL_LEADING_ZERO;case"lower-roman":return It.LOWER_ROMAN;case"upper-roman":return It.UPPER_ROMAN;case"lower-greek":return It.LOWER_GREEK;case"lower-alpha":return It.LOWER_ALPHA;case"upper-alpha":return It.UPPER_ALPHA;case"arabic-indic":return It.ARABIC_INDIC;case"armenian":return It.ARMENIAN;case"bengali":return It.BENGALI;case"cambodian":return It.CAMBODIAN;case"cjk-earthly-branch":return It.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return It.CJK_HEAVENLY_STEM;case"cjk-ideographic":return It.CJK_IDEOGRAPHIC;case"devanagari":return It.DEVANAGARI;case"ethiopic-numeric":return It.ETHIOPIC_NUMERIC;case"georgian":return It.GEORGIAN;case"gujarati":return It.GUJARATI;case"gurmukhi":return It.GURMUKHI;case"hebrew":return It.HEBREW;case"hiragana":return It.HIRAGANA;case"hiragana-iroha":return It.HIRAGANA_IROHA;case"japanese-formal":return It.JAPANESE_FORMAL;case"japanese-informal":return It.JAPANESE_INFORMAL;case"kannada":return It.KANNADA;case"katakana":return It.KATAKANA;case"katakana-iroha":return It.KATAKANA_IROHA;case"khmer":return It.KHMER;case"korean-hangul-formal":return It.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return It.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return It.KOREAN_HANJA_INFORMAL;case"lao":return It.LAO;case"lower-armenian":return It.LOWER_ARMENIAN;case"malayalam":return It.MALAYALAM;case"mongolian":return It.MONGOLIAN;case"myanmar":return It.MYANMAR;case"oriya":return It.ORIYA;case"persian":return It.PERSIAN;case"simp-chinese-formal":return It.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return It.SIMP_CHINESE_INFORMAL;case"tamil":return It.TAMIL;case"telugu":return It.TELUGU;case"thai":return It.THAI;case"tibetan":return It.TIBETAN;case"trad-chinese-formal":return It.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return It.TRAD_CHINESE_INFORMAL;case"upper-armenian":return It.UPPER_ARMENIAN;case"disclosure-open":return It.DISCLOSURE_OPEN;case"disclosure-closed":return It.DISCLOSURE_CLOSED;default:return It.NONE}}},we=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Lt=we("top"),mt=we("right"),Dt=we("bottom"),bt=we("left");(we=yt=yt||{})[we.VISIBLE=0]="VISIBLE",we[we.HIDDEN=1]="HIDDEN",we[we.SCROLL=2]="SCROLL",we[we.CLIP=3]="CLIP";var Rt,Ot={name:"overflow",initialValue:"visible",prefix:!(we[we.AUTO=4]="AUTO"),type:1,parse:function(A,e){return e.filter(kA).map(function(A){switch(A.value){case"hidden":return yt.HIDDEN;case"scroll":return yt.SCROLL;case"clip":return yt.CLIP;case"auto":return yt.AUTO;default:return yt.VISIBLE}})}},St={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"!==e?"normal":"break-word"}},we=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Tt=we("top"),vt=we("right"),Mt=we("bottom"),Nt=we("left");(we=Rt=Rt||{})[we.LEFT=0]="LEFT",we[we.CENTER=1]="CENTER";var Gt,xt={name:"text-align",initialValue:"left",prefix:!(we[we.RIGHT=2]="RIGHT"),type:2,parse:function(A,e){switch(e){case"right":return Rt.RIGHT;case"center":case"justify":return Rt.CENTER;default:return Rt.LEFT}}};(we=Gt=Gt||{})[we.STATIC=0]="STATIC",we[we.RELATIVE=1]="RELATIVE",we[we.ABSOLUTE=2]="ABSOLUTE",we[we.FIXED=3]="FIXED";var Vt,Pt={name:"position",initialValue:"static",prefix:!(we[we.STICKY=4]="STICKY"),type:2,parse:function(A,e){switch(e){case"relative":return Gt.RELATIVE;case"absolute":return Gt.ABSOLUTE;case"fixed":return Gt.FIXED;case"sticky":return Gt.STICKY}return Gt.STATIC}},kt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&XA(A[0],"none")?[]:WA(A).map(function(A){for(var e={color:he.TRANSPARENT,offsetX:ne,offsetY:ne,blur:ne},t=0,B=0;B<A.length;B++){var r=A[B];ZA(r)?(0===t?e.offsetX=r:1===t?e.offsetY=r:e.blur=r,t++):e.color=ae(n,r)}return e})}};(we=Vt=Vt||{})[we.NONE=0]="NONE",we[we.LOWERCASE=1]="LOWERCASE",we[we.UPPERCASE=2]="UPPERCASE";var Jt,Xt={name:"text-transform",initialValue:"none",prefix:!(we[we.CAPITALIZE=3]="CAPITALIZE"),type:2,parse:function(A,e){switch(e){case"uppercase":return Vt.UPPERCASE;case"lowercase":return Vt.LOWERCASE;case"capitalize":return Vt.CAPITALIZE}return Vt.NONE}},_t={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18!==e.type)return null;var t=Yt[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}},Yt={matrix:function(A){A=A.filter(function(A){return 17===A.type}).map(function(A){return A.number});return 6===A.length?A:null},matrix3d:function(A){var e=A.filter(function(A){return 17===A.type}).map(function(A){return A.number}),t=e[0],B=e[1];e[2],e[3];var r=e[4],n=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],A=e[13];return e[14],e[15],16===e.length?[t,B,r,n,s,A]:null}},we={type:16,number:50,flags:4},Wt=[we,we],Zt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){e=e.filter(qA);return 2!==e.length?Wt:[e[0],e[1]]}};(we=Jt=Jt||{})[we.VISIBLE=0]="VISIBLE",we[we.HIDDEN=1]="HIDDEN";var qt,jt={name:"visible",initialValue:"none",prefix:!(we[we.COLLAPSE=2]="COLLAPSE"),type:2,parse:function(A,e){switch(e){case"hidden":return Jt.HIDDEN;case"collapse":return Jt.COLLAPSE;default:return Jt.VISIBLE}}};(we=qt=qt||{}).NORMAL="normal",we.BREAK_ALL="break-all";var zt,$t={name:"word-break",initialValue:"normal",prefix:!(we.KEEP_ALL="keep-all"),type:2,parse:function(A,e){switch(e){case"break-all":return qt.BREAK_ALL;case"keep-all":return qt.KEEP_ALL;default:return qt.NORMAL}}},AB={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(PA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},eB=function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},tB={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return PA(e)?e.number:1}},BB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(kA).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return 0!==A})}},nB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],B=[];return e.forEach(function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:B.push(t.join(" ")),t.length=0}}),t.length&&B.push(t.join(" ")),B.map(function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"})}},sB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},oB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return PA(e)?e.number:!kA(e)||"bold"!==e.value?400:700}},iB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(kA).map(function(A){return A.value})}};(we=zt=zt||{}).NORMAL="normal",we.ITALIC="italic";function QB(A,e){return 0!=(A&e)}function cB(A,e,t){return(A=A&&A[Math.min(e,A.length-1)])?t?A.open:A.close:""}var aB,gB={name:"font-style",initialValue:"normal",prefix:!(we.OBLIQUE="oblique"),type:2,parse:function(A,e){switch(e){case"oblique":return zt.OBLIQUE;case"italic":return zt.ITALIC;default:return zt.NORMAL}}},wB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},CB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var B=[],r=e.filter(_A),n=0;n<r.length;n++){var s=r[n],o=r[n+1];20===s.type&&(o=o&&PA(o)?o.number:1,B.push({counter:s.value,increment:o}))}return B}},UB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],B=e.filter(_A),r=0;r<B.length;r++){var n=B[r],s=B[r+1];kA(n)&&"none"!==n.value&&(s=s&&PA(s)?s.number:0,t.push({counter:n.value,reset:s}))}return t}},lB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(VA).map(function(A){return eB(e,A)})}},FB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var B=[],r=e.filter(JA);if(r.length%2!=0)return null;for(var n=0;n<r.length;n+=2){var s=r[n].value,o=r[n+1].value;B.push({open:s,close:o})}return B}},uB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&XA(A[0],"none")?[]:WA(A).map(function(A){for(var e={color:255,offsetX:ne,offsetY:ne,blur:ne,spread:ne,inset:!1},t=0,B=0;B<A.length;B++){var r=A[B];XA(r,"inset")?e.inset=!0:ZA(r)?(0===t?e.offsetX=r:1===t?e.offsetY=r:2===t?e.blur=r:e.spread=r,t++):e.color=ae(n,r)}return e})}};(we=aB=aB||{})[we.FILL=0]="FILL",we[we.STROKE=1]="STROKE";var hB={name:"paint-order",initialValue:"normal",prefix:!(we[we.MARKERS=2]="MARKERS"),type:1,parse:function(A,e){var t=[aB.FILL,aB.STROKE,aB.MARKERS],B=[];return e.filter(kA).forEach(function(A){switch(A.value){case"stroke":B.push(aB.STROKE);break;case"fill":B.push(aB.FILL);break;case"markers":B.push(aB.MARKERS)}}),t.forEach(function(A){-1===B.indexOf(A)&&B.push(A)}),B}},dB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},EB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return VA(e)?e.number:0}},HB=(fB.prototype.isVisible=function(){return 0<this.display&&0<this.opacity&&this.visibility===Jt.VISIBLE},fB.prototype.isTransparent=function(){return ee(this.backgroundColor)},fB.prototype.isTransformed=function(){return null!==this.transform},fB.prototype.isPositioned=function(){return this.position!==Gt.STATIC},fB.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},fB.prototype.isFloating=function(){return this.float!==Bt.NONE},fB.prototype.isInlineLevel=function(){return QB(this.display,4)||QB(this.display,33554432)||QB(this.display,268435456)||QB(this.display,536870912)||QB(this.display,67108864)||QB(this.display,134217728)},fB);function fB(A,e){this.animationDuration=yB(A,lB,e.animationDuration),this.backgroundClip=yB(A,ye,e.backgroundClip),this.backgroundColor=yB(A,Ke,e.backgroundColor),this.backgroundImage=yB(A,xe,e.backgroundImage),this.backgroundOrigin=yB(A,Ve,e.backgroundOrigin),this.backgroundPosition=yB(A,Pe,e.backgroundPosition),this.backgroundRepeat=yB(A,Je,e.backgroundRepeat),this.backgroundSize=yB(A,Ye,e.backgroundSize),this.borderTopColor=yB(A,Ze,e.borderTopColor),this.borderRightColor=yB(A,qe,e.borderRightColor),this.borderBottomColor=yB(A,je,e.borderBottomColor),this.borderLeftColor=yB(A,ze,e.borderLeftColor),this.borderTopLeftRadius=yB(A,$e,e.borderTopLeftRadius),this.borderTopRightRadius=yB(A,At,e.borderTopRightRadius),this.borderBottomRightRadius=yB(A,et,e.borderBottomRightRadius),this.borderBottomLeftRadius=yB(A,tt,e.borderBottomLeftRadius),this.borderTopStyle=yB(A,rt,e.borderTopStyle),this.borderRightStyle=yB(A,nt,e.borderRightStyle),this.borderBottomStyle=yB(A,st,e.borderBottomStyle),this.borderLeftStyle=yB(A,ot,e.borderLeftStyle),this.borderTopWidth=yB(A,it,e.borderTopWidth),this.borderRightWidth=yB(A,Qt,e.borderRightWidth),this.borderBottomWidth=yB(A,ct,e.borderBottomWidth),this.borderLeftWidth=yB(A,at,e.borderLeftWidth),this.boxShadow=yB(A,uB,e.boxShadow),this.color=yB(A,gt,e.color),this.direction=yB(A,wt,e.direction),this.display=yB(A,Ct,e.display),this.float=yB(A,ht,e.cssFloat),this.fontFamily=yB(A,nB,e.fontFamily),this.fontSize=yB(A,sB,e.fontSize),this.fontStyle=yB(A,gB,e.fontStyle),this.fontVariant=yB(A,iB,e.fontVariant),this.fontWeight=yB(A,oB,e.fontWeight),this.letterSpacing=yB(A,dt,e.letterSpacing),this.lineBreak=yB(A,Et,e.lineBreak),this.lineHeight=yB(A,Ht,e.lineHeight),this.listStyleImage=yB(A,ft,e.listStyleImage),this.listStylePosition=yB(A,pt,e.listStylePosition),this.listStyleType=yB(A,Kt,e.listStyleType),this.marginTop=yB(A,Lt,e.marginTop),this.marginRight=yB(A,mt,e.marginRight),this.marginBottom=yB(A,Dt,e.marginBottom),this.marginLeft=yB(A,bt,e.marginLeft),this.opacity=yB(A,tB,e.opacity);var t=yB(A,Ot,e.overflow);this.overflowX=t[0],this.overflowY=t[1<t.length?1:0],this.overflowWrap=yB(A,St,e.overflowWrap),this.paddingTop=yB(A,Tt,e.paddingTop),this.paddingRight=yB(A,vt,e.paddingRight),this.paddingBottom=yB(A,Mt,e.paddingBottom),this.paddingLeft=yB(A,Nt,e.paddingLeft),this.paintOrder=yB(A,hB,e.paintOrder),this.position=yB(A,Pt,e.position),this.textAlign=yB(A,xt,e.textAlign),this.textDecorationColor=yB(A,BB,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=yB(A,rB,null!==(t=e.textDecorationLine)&&void 0!==t?t:e.textDecoration),this.textShadow=yB(A,kt,e.textShadow),this.textTransform=yB(A,Xt,e.textTransform),this.transform=yB(A,_t,e.transform),this.transformOrigin=yB(A,Zt,e.transformOrigin),this.visibility=yB(A,jt,e.visibility),this.webkitTextStrokeColor=yB(A,dB,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=yB(A,EB,e.webkitTextStrokeWidth),this.wordBreak=yB(A,$t,e.wordBreak),this.zIndex=yB(A,AB,e.zIndex)}for(var IB=function(A,e){this.content=yB(A,wB,e.content),this.quotes=yB(A,FB,e.quotes)},pB=function(A,e){this.counterIncrement=yB(A,CB,e.counterIncrement),this.counterReset=yB(A,UB,e.counterReset)},yB=function(A,e,t){var B=new MA,t=null!=t?t.toString():e.initialValue;B.write(t);var r=new GA(B.read());switch(e.type){case 2:var n=r.parseComponentValue();return e.parse(A,kA(n)?n.value:e.initialValue);case 0:return e.parse(A,r.parseComponentValue());case 1:return e.parse(A,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(e.format){case"angle":return Qe(A,r.parseComponentValue());case"color":return ae(A,r.parseComponentValue());case"image":return Me(A,r.parseComponentValue());case"length":var s=r.parseComponentValue();return ZA(s)?s:ne;case"length-percentage":s=r.parseComponentValue();return qA(s)?s:ne;case"time":return eB(A,r.parseComponentValue())}}},KB=function(A,e){A=function(A){switch(A.getAttribute("data-html2canvasV1-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===A||e===A},LB=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,KB(e,3),this.styles=new HB(A,window.getComputedStyle(e,null)),en(e)&&(this.styles.animationDuration.some(function(A){return 0<A})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=E(this.context,e),KB(e,4)&&(this.flags|=16)},mB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",DB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bB=0;bB<mB.length;bB++)DB[mB.charCodeAt(bB)]=bB;function RB(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))}var OB=(SB.prototype.get=function(A){var e;if(0<=A){if(A<55296||56319<A&&A<=65535)return e=this.index[A>>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A<this.highStart)return e=this.index[e=2080+(A>>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},SB);function SB(A,e,t,B,r,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=B,this.index=r,this.data=n}for(var TB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),MB=0;MB<TB.length;MB++)vB[TB.charCodeAt(MB)]=MB;function NB(A){return zB.get(A)}function GB(A){var t=function(A){for(var e=[],t=0,B=A.length;t<B;){var r,n=A.charCodeAt(t++);55296<=n&&n<=56319&&t<B?56320==(64512&(r=A.charCodeAt(t++)))?e.push(((1023&n)<<10)+(1023&r)+65536):(e.push(n),t--):e.push(n)}return e}(A),B=t.length,r=0,n=0,s=t.map(NB);return{next:function(){if(B<=r)return{done:!0,value:null};for(var A=$B;r<B&&(A=function(A,e){var t=e-2,B=A[t],r=A[e-1],e=A[e];if(2===r&&3===e)return $B;if(2===r||3===r||4===r)return"Ã·";if(2===e||3===e||4===e)return"Ã·";if(r===WB&&-1!==[WB,ZB,qB,jB].indexOf(e))return $B;if(!(r!==qB&&r!==ZB||e!==ZB&&10!==e))return $B;if((r===jB||10===r)&&10===e)return $B;if(13===e||5===e)return $B;if(7===e)return $B;if(1===r)return $B;if(13===r&&14===e){for(;5===B;)B=A[--t];if(14===B)return $B}if(15===r&&15===e){for(var n=0;15===B;)n++,B=A[--t];if(n%2==0)return $B}return"Ã·"}(s,++r))===$B;);if(A===$B&&r!==B)return{done:!0,value:null};var e=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var B=[],r=-1,n="";++r<t;){var s=A[r];s<=65535?B.push(s):(s-=65536,B.push(55296+(s>>10),s%1024+56320)),(r+1===t||16384<B.length)&&(n+=String.fromCharCode.apply(String,B),B.length=0)}return n}.apply(null,t.slice(n,r));return n=r,{value:e,done:!1}}}}function xB(A){for(var e,t=GB(A),B=[];!(e=t.next()).done;)e.value&&B.push(e.value.slice());return B}function VB(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]}var PB,kB,JB,XB,_B,YB,WB=8,ZB=9,qB=11,jB=12,zB=(JB=function(A){var e,t,B,r,n=.75*A.length,s=A.length,o=0;"="===A[A.length-1]&&(n--,"="===A[A.length-2]&&n--);for(var n=new("undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?ArrayBuffer:Array)(n),i=Array.isArray(n)?n:new Uint8Array(n),Q=0;Q<s;Q+=4)e=DB[A.charCodeAt(Q)],t=DB[A.charCodeAt(Q+1)],B=DB[A.charCodeAt(Q+2)],r=DB[A.charCodeAt(Q+3)],i[o++]=e<<2|t>>4,i[o++]=(15&t)<<4|B>>2,i[o++]=(3&B)<<6|63&r;return n}(PB=" "),XB=Array.isArray(JB)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=4)t.push(A[B+3]<<24|A[B+2]<<16|A[B+1]<<8|A[B]);return t}(JB):new Uint32Array(JB),_B=Array.isArray(JB)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=2)t.push(A[B+1]<<8|A[B]);return t}(JB):new Uint16Array(JB),PB=RB(_B,12,XB[4]/2),kB=2===XB[5]?RB(_B,(24+XB[4])/2):(JB=XB,_B=Math.ceil((24+XB[4])/4),JB.slice?JB.slice(_B,kB):new Uint32Array(Array.prototype.slice.call(JB,_B,kB))),new OB(XB[0],XB[1],XB[2],XB[3],PB,kB)),$B="Ã—",Ar=function(A,e,t,B,r){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),n=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),n.setAttributeNS(null,"width","100%"),n.setAttributeNS(null,"height","100%"),n.setAttributeNS(null,"x",t.toString()),n.setAttributeNS(null,"y",B.toString()),n.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(n),n.appendChild(r),s},er=function(B){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(B))})},tr={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="123px",t.style.display="block",A.body.appendChild(t),e.selectNode(t);e=e.getBoundingClientRect(),e=Math.round(e.height);if(A.body.removeChild(t),123===e)return!0}}return!1}(document);return Object.defineProperty(tr,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=tr.SUPPORT_RANGE_BOUNDS&&function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var B=A.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,t=Q(r.data).map(function(A){return g(A)}),n=0,s={},t=t.every(function(A,e){B.setStart(r,n),B.setEnd(r,n+A.length);var t=B.getBoundingClientRect();n+=A.length;A=t.x>s.x||t.y>s.y;return s=t,0===e||A});return A.body.removeChild(e),t}(document);return Object.defineProperty(tr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),A=t.getContext("2d");if(!A)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(tr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var A=t.createElement("canvas"),B=100;A.width=B,A.height=B;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,B,B);var e=new Image,n=A.toDataURL();e.src=n;e=Ar(B,B,0,0,e);return r.fillStyle="red",r.fillRect(0,0,B,B),er(e).then(function(A){r.drawImage(A,0,0);var e=r.getImageData(0,0,B,B).data;r.fillStyle="red",r.fillRect(0,0,B,B);A=t.createElement("div");return A.style.backgroundImage="url("+n+")",A.style.height="100px",VB(e)?er(Ar(B,B,0,0,A)):Promise.reject(!1)}).then(function(A){return r.drawImage(A,0,0),VB(r.getImageData(0,0,B,B).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(tr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(tr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(tr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(tr,"SUPPORT_CORS_XHR",{value:A}),A}},Br=function(A,e){this.text=A,this.bounds=e},rr=function(A,e){var t=e.ownerDocument;if(t){var B=t.createElement("html2canvasV1wrapper");B.appendChild(e.cloneNode(!0));t=e.parentNode;if(t){t.replaceChild(B,e);A=E(A,B);return B.firstChild&&t.replaceChild(B.firstChild,B),A}}return d.EMPTY},nr=function(A,e,t){var B=A.ownerDocument;if(!B)throw new Error("Node has no owner document");B=B.createRange();return B.setStart(A,e),B.setEnd(A,e+t),B},sr=function(A,e,t,B){return d.fromClientRect(A,nr(e,t,B).getBoundingClientRect())},or=function(A,e){return 0!==e.letterSpacing?xB(A):Qr(A,e)},ir=[32,160,4961,65792,65793,4153,4241],Qr=function(A,e){for(var t,B=oA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),r=[];!(t=B.next()).done;)!function(){var A,e;t.value&&(A=t.value.slice(),A=Q(A),e="",A.forEach(function(A){-1===ir.indexOf(A)?e+=g(A):(e.length&&r.push(e),r.push(g(A)),e="")}),e.length&&r.push(e))}();return r},cr=function(A,e,t){var B,r,n,s,o;this.text=ar(e.data,t.textTransform),this.textBounds=(B=A,A=this.text,n=e,A=or(A,r=t),s=[],o=0,A.forEach(function(A){var e;r.textDecorationLine.length||0<A.trim().length?tr.SUPPORT_RANGE_BOUNDS?tr.SUPPORT_WORD_BREAKING?s.push(new Br(A,sr(B,n,o,A.length))):s.push(new Br(A,d.fromDOMRectList(B,nr(n,o,A.length).getClientRects()))):(e=n.splitText(A.length),s.push(new Br(A,rr(B,n))),n=e):tr.SUPPORT_RANGE_BOUNDS||(n=n.splitText(A.length)),o+=A.length}),s)},ar=function(A,e){switch(e){case Vt.LOWERCASE:return A.toLowerCase();case Vt.CAPITALIZE:return A.replace(gr,wr);case Vt.UPPERCASE:return A.toUpperCase();default:return A}},gr=/(^|\s|:|-|\(|\))([a-z])/g,wr=function(A,e,t){return 0<A.length?e+t.toUpperCase():A},Cr=(A(Ur,YB=LB),Ur);function Ur(A,e){A=YB.call(this,A,e)||this;return A.src=e.currentSrc||e.src,A.intrinsicWidth=e.naturalWidth,A.intrinsicHeight=e.naturalHeight,A.context.cache.addImage(A.src),A}var lr,Fr=(A(ur,lr=LB),ur);function ur(A,e){A=lr.call(this,A,e)||this;return A.canvas=e,A.intrinsicWidth=e.width,A.intrinsicHeight=e.height,A}var hr,dr=(A(Er,hr=LB),Er);function Er(A,e){var t=hr.call(this,A,e)||this,B=new XMLSerializer,A=E(A,e);return e.setAttribute("width",A.width+"px"),e.setAttribute("height",A.height+"px"),t.svg="data:image/svg+xml,"+encodeURIComponent(B.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,t.context.cache.addImage(t.svg),t}var Hr,fr=(A(Ir,Hr=LB),Ir);function Ir(A,e){A=Hr.call(this,A,e)||this;return A.value=e.value,A}var pr,yr=(A(Kr,pr=LB),Kr);function Kr(A,e){A=pr.call(this,A,e)||this;return A.start=e.start,A.reversed="boolean"==typeof e.reversed&&!0===e.reversed,A}var Lr,mr=[{type:15,flags:0,unit:"px",number:3}],Dr=[{type:16,flags:0,number:50}],br="checkbox",Rr="radio",Or="password",Sr=707406591,Tr=(A(vr,Lr=LB),vr);function vr(A,e){var t=Lr.call(this,A,e)||this;switch(t.type=e.type.toLowerCase(),t.checked=e.checked,t.value=0===(e=(A=e).type===Or?new Array(A.value.length+1).join("â€¢"):A.value).length?A.placeholder||"":e,t.type!==br&&t.type!==Rr||(t.styles.backgroundColor=3739148031,t.styles.borderTopColor=t.styles.borderRightColor=t.styles.borderBottomColor=t.styles.borderLeftColor=2779096575,t.styles.borderTopWidth=t.styles.borderRightWidth=t.styles.borderBottomWidth=t.styles.borderLeftWidth=1,t.styles.borderTopStyle=t.styles.borderRightStyle=t.styles.borderBottomStyle=t.styles.borderLeftStyle=_e.SOLID,t.styles.backgroundClip=[le.BORDER_BOX],t.styles.backgroundOrigin=[0],t.bounds=(e=t.bounds).width>e.height?new d(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new d(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e),t.type){case br:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=mr;break;case Rr:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=Dr}return t}var Mr,Nr=(A(Gr,Mr=LB),Gr);function Gr(A,e){A=Mr.call(this,A,e)||this,e=e.options[e.selectedIndex||0];return A.value=e&&e.text||"",A}var xr,Vr=(A(Pr,xr=LB),Pr);function Pr(A,e){A=xr.call(this,A,e)||this;return A.value=e.value,A}var kr,Jr=(A(Xr,kr=LB),Xr);function Xr(A,e){var t,B,r=kr.call(this,A,e)||this;r.src=e.src,r.width=parseInt(e.width,10)||0,r.height=parseInt(e.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&(r.tree=qr(A,e.contentWindow.document.documentElement),t=e.contentWindow.document.documentElement?Ue(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):he.TRANSPARENT,B=e.contentWindow.document.body?Ue(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):he.TRANSPARENT,r.backgroundColor=ee(t)?ee(B)?r.styles.backgroundColor:B:t)}catch(A){}return r}function _r(A){return"STYLE"===A.tagName}var Yr=["OL","UL","MENU"],Wr=function(e,A,t,B){for(var r=A.firstChild;r;r=s){var n,s=r.nextSibling;$r(r)&&0<r.data.trim().length?t.textNodes.push(new cr(e,r,t.styles)):An(r)&&(Cn(r)&&r.assignedNodes?r.assignedNodes().forEach(function(A){return Wr(e,A,t,B)}):(n=Zr(e,r)).styles.isVisible()&&(jr(r,n,B)?n.flags|=4:zr(n.styles)&&(n.flags|=2),-1!==Yr.indexOf(r.tagName)&&(n.flags|=8),t.elements.push(n),r.slot,r.shadowRoot?Wr(e,r.shadowRoot,n,B):gn(r)||sn(r)||wn(r)||Wr(e,r,n,B)))}},Zr=function(A,e){return new(cn(e)?Cr:Qn(e)?Fr:sn(e)?dr:Bn(e)?fr:rn(e)?yr:nn(e)?Tr:wn(e)?Nr:gn(e)?Vr:an(e)?Jr:LB)(A,e)},qr=function(A,e){var t=Zr(A,e);return t.flags|=4,Wr(A,e,t,t),t},jr=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||on(A)&&t.styles.isTransparent()},zr=function(A){return A.isPositioned()||A.isFloating()},$r=function(A){return A.nodeType===Node.TEXT_NODE},An=function(A){return A.nodeType===Node.ELEMENT_NODE},en=function(A){return An(A)&&void 0!==A.style&&!tn(A)},tn=function(A){return"object"==typeof A.className},Bn=function(A){return"LI"===A.tagName},rn=function(A){return"OL"===A.tagName},nn=function(A){return"INPUT"===A.tagName},sn=function(A){return"svg"===A.tagName},on=function(A){return"BODY"===A.tagName},Qn=function(A){return"CANVAS"===A.tagName},cn=function(A){return"IMG"===A.tagName},an=function(A){return"IFRAME"===A.tagName},gn=function(A){return"TEXTAREA"===A.tagName},wn=function(A){return"SELECT"===A.tagName},Cn=function(A){return"SLOT"===A.tagName},Un=(ln.prototype.getCounterValue=function(A){A=this.counters[A];return A&&A.length?A[A.length-1]:1},ln.prototype.getCounterValues=function(A){A=this.counters[A];return A||[]},ln.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})},ln.prototype.parse=function(A){var t=this,e=A.counterIncrement,A=A.counterReset,B=!0;null!==e&&e.forEach(function(A){var e=t.counters[A.counter];e&&0!==A.increment&&(B=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=A.increment)});var r=[];return B&&A.forEach(function(A){var e=t.counters[A.counter];r.push(A.counter),(e=e||(t.counters[A.counter]=[])).push(A.reset)}),r},ln);function ln(){this.counters={}}function Fn(B,A,e,r,t,n){return B<A||e<B?Ln(B,t,0<n.length):r.integers.reduce(function(A,e,t){for(;e<=B;)B-=e,A+=r.values[t];return A},"")+n}function un(A,e,t,B){for(var r="";t||A--,r=B(A)+r,e<=(A/=e)*e;);return r}function hn(A,e,t,B,r){var n=t-e+1;return(A<0?"-":"")+(un(Math.abs(A),n,B,function(A){return g(Math.floor(A%n)+e)})+r)}function dn(A,e,t){void 0===t&&(t=". ");var B=e.length;return un(Math.abs(A),B,!1,function(A){return e[Math.floor(A%B)]})+t}function En(A,e,t,B,r,n){if(A<-9999||9999<A)return Ln(A,It.CJK_DECIMAL,0<r.length);var s=Math.abs(A),o=r;if(0===s)return e[0]+o;for(var i=0;0<s&&i<=4;i++){var Q=s%10;0==Q&&QB(n,1)&&""!==o?o=e[Q]+o:1<Q||1==Q&&0===i||1==Q&&1===i&&QB(n,2)||1==Q&&1===i&&QB(n,4)&&100<A||1==Q&&1<i&&QB(n,8)?o=e[Q]+(0<i?t[i-1]:"")+o:1==Q&&0<i&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?B:"")+o}var Hn,fn={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},In={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Õ”","Õ“","Õ’","Õ‘","Õ?","Õ?","ÕŽ","Õ?","ÕŒ","Õ‹","ÕŠ","Õ‰","Õˆ","Õ‡","Õ†","Õ…","Õ„","Õƒ","Õ‚","Õ?","Õ€","Ô¿","Ô¾","Ô½","Ô¼","Ô»","Ôº","Ô¹","Ô¸","Ô·","Ô¶","Ôµ","Ô´","Ô³","Ô²","Ô±"]},pn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["×™×³","×˜×³","×—×³","×–×³","×•×³","×”×³","×“×³","×’×³","×‘×³","×?×³","×ª","×©","×¨","×§","×¦","×¤","×¢","×¡","× ","×ž","×œ","×›","×™×˜","×™×—","×™×–","×˜×–","×˜×•","×™","×˜","×—","×–","×•","×”","×“","×’","×‘","×?"]},yn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["áƒµ","áƒ°","áƒ¯","áƒ´","áƒ®","áƒ­","áƒ¬","áƒ«","áƒª","áƒ©","áƒ¨","áƒ§","áƒ¦","áƒ¥","áƒ¤","áƒ³","áƒ¢","áƒ¡","áƒ ","áƒŸ","áƒž","áƒ?","áƒ²","áƒœ","áƒ›","áƒš","áƒ™","áƒ˜","áƒ—","áƒ±","áƒ–","áƒ•","áƒ”","áƒ“","áƒ’","áƒ‘","áƒ?"]},Kn="ë§ˆì?´ë„ˆìŠ¤",Ln=function(A,e,t){var B=t?". ":"",r=t?"ã€?":"",n=t?", ":"",s=t?" ":"";switch(e){case It.DISC:return"â€¢"+s;case It.CIRCLE:return"â—¦"+s;case It.SQUARE:return"â—¾"+s;case It.DECIMAL_LEADING_ZERO:var o=hn(A,48,57,!0,B);return o.length<4?"0"+o:o;case It.CJK_DECIMAL:return dn(A,"ã€‡ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?",r);case It.LOWER_ROMAN:return Fn(A,1,3999,fn,It.DECIMAL,B).toLowerCase();case It.UPPER_ROMAN:return Fn(A,1,3999,fn,It.DECIMAL,B);case It.LOWER_GREEK:return hn(A,945,969,!1,B);case It.LOWER_ALPHA:return hn(A,97,122,!1,B);case It.UPPER_ALPHA:return hn(A,65,90,!1,B);case It.ARABIC_INDIC:return hn(A,1632,1641,!0,B);case It.ARMENIAN:case It.UPPER_ARMENIAN:return Fn(A,1,9999,In,It.DECIMAL,B);case It.LOWER_ARMENIAN:return Fn(A,1,9999,In,It.DECIMAL,B).toLowerCase();case It.BENGALI:return hn(A,2534,2543,!0,B);case It.CAMBODIAN:case It.KHMER:return hn(A,6112,6121,!0,B);case It.CJK_EARTHLY_BRANCH:return dn(A,"å­?ä¸‘å¯…å?¯è¾°å·³å?ˆæœªç”³é…‰æˆŒäº¥",r);case It.CJK_HEAVENLY_STEM:return dn(A,"ç”²ä¹™ä¸™ä¸?æˆŠå·±åºšè¾›å£¬ç™¸",r);case It.CJK_IDEOGRAPHIC:case It.TRAD_CHINESE_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬","è² ",r,14);case It.TRAD_CHINESE_FORMAL:return En(A,"é›¶å£¹è²³å?ƒè‚†ä¼?é™¸æŸ’æ?ŒçŽ–","æ‹¾ä½°ä»Ÿè?¬","è² ",r,15);case It.SIMP_CHINESE_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬","è´Ÿ",r,14);case It.SIMP_CHINESE_FORMAL:return En(A,"é›¶å£¹è´°å??è‚†ä¼?é™†æŸ’æ?ŒçŽ–","æ‹¾ä½°ä»Ÿè?¬","è´Ÿ",r,15);case It.JAPANESE_INFORMAL:return En(A,"ã€‡ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒä¸‡","ãƒžã‚¤ãƒŠã‚¹",r,0);case It.JAPANESE_FORMAL:return En(A,"é›¶å£±å¼?å?‚å››ä¼?å…­ä¸ƒå…«ä¹?","æ‹¾ç™¾å?ƒä¸‡","ãƒžã‚¤ãƒŠã‚¹",r,7);case It.KOREAN_HANGUL_FORMAL:return En(A,"ì˜?ì?¼ì?´ì‚¼ì‚¬ì˜¤ìœ¡ì¹ íŒ”êµ¬","ì‹­ë°±ì²œë§Œ",Kn,n,7);case It.KOREAN_HANJA_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬",Kn,n,0);case It.KOREAN_HANJA_FORMAL:return En(A,"é›¶å£¹è²³å?ƒå››äº”å…­ä¸ƒå…«ä¹?","æ‹¾ç™¾å?ƒ",Kn,n,7);case It.DEVANAGARI:return hn(A,2406,2415,!0,B);case It.GEORGIAN:return Fn(A,1,19999,yn,It.DECIMAL,B);case It.GUJARATI:return hn(A,2790,2799,!0,B);case It.GURMUKHI:return hn(A,2662,2671,!0,B);case It.HEBREW:return Fn(A,1,10999,pn,It.DECIMAL,B);case It.HIRAGANA:return dn(A,"ã?‚ã?„ã?†ã?ˆã?Šã?‹ã??ã??ã?‘ã?“ã?•ã?—ã?™ã?›ã??ã?Ÿã?¡ã?¤ã?¦ã?¨ã?ªã?«ã?¬ã?­ã?®ã?¯ã?²ã?µã?¸ã?»ã?¾ã?¿ã‚€ã‚?ã‚‚ã‚„ã‚†ã‚ˆã‚‰ã‚Šã‚‹ã‚Œã‚?ã‚?ã‚?ã‚‘ã‚’ã‚“");case It.HIRAGANA_IROHA:return dn(A,"ã?„ã‚?ã?¯ã?«ã?»ã?¸ã?¨ã?¡ã‚Šã?¬ã‚‹ã‚’ã‚?ã?‹ã‚ˆã?Ÿã‚Œã??ã?¤ã?­ã?ªã‚‰ã‚€ã?†ã‚?ã?®ã?Šã??ã‚„ã?¾ã?‘ã?µã?“ã?ˆã?¦ã?‚ã?•ã??ã‚†ã‚?ã?¿ã?—ã‚‘ã?²ã‚‚ã?›ã?™");case It.KANNADA:return hn(A,3302,3311,!0,B);case It.KATAKANA:return dn(A,"ã‚¢ã‚¤ã‚¦ã‚¨ã‚ªã‚«ã‚­ã‚¯ã‚±ã‚³ã‚µã‚·ã‚¹ã‚»ã‚½ã‚¿ãƒ?ãƒ„ãƒ†ãƒˆãƒŠãƒ‹ãƒŒãƒ?ãƒŽãƒ?ãƒ’ãƒ•ãƒ˜ãƒ›ãƒžãƒŸãƒ ãƒ¡ãƒ¢ãƒ¤ãƒ¦ãƒ¨ãƒ©ãƒªãƒ«ãƒ¬ãƒ­ãƒ¯ãƒ°ãƒ±ãƒ²ãƒ³",r);case It.KATAKANA_IROHA:return dn(A,"ã‚¤ãƒ­ãƒ?ãƒ‹ãƒ›ãƒ˜ãƒˆãƒ?ãƒªãƒŒãƒ«ãƒ²ãƒ¯ã‚«ãƒ¨ã‚¿ãƒ¬ã‚½ãƒ„ãƒ?ãƒŠãƒ©ãƒ ã‚¦ãƒ°ãƒŽã‚ªã‚¯ãƒ¤ãƒžã‚±ãƒ•ã‚³ã‚¨ãƒ†ã‚¢ã‚µã‚­ãƒ¦ãƒ¡ãƒŸã‚·ãƒ±ãƒ’ãƒ¢ã‚»ã‚¹",r);case It.LAO:return hn(A,3792,3801,!0,B);case It.MONGOLIAN:return hn(A,6160,6169,!0,B);case It.MYANMAR:return hn(A,4160,4169,!0,B);case It.ORIYA:return hn(A,2918,2927,!0,B);case It.PERSIAN:return hn(A,1776,1785,!0,B);case It.TAMIL:return hn(A,3046,3055,!0,B);case It.TELUGU:return hn(A,3174,3183,!0,B);case It.THAI:return hn(A,3664,3673,!0,B);case It.TIBETAN:return hn(A,3872,3881,!0,B);default:It.DECIMAL;return hn(A,48,57,!0,B)}},mn="data-html2canvasV1-ignore",Dn=(bn.prototype.toIFrame=function(A,B){var e=this,r=On(A,B);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var t=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,s=r.contentWindow,o=s.document,A=Tn(r).then(function(){return a(e,void 0,void 0,function(){var e,t;return H(this,function(A){switch(A.label){case 0:return this.scrolledElements.forEach(xn),s&&(s.scrollTo(B.left,B.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===B.top&&s.scrollX===B.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-B.left,s.scrollY-B.top,0,0))),e=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:A.sent(),A.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Sn(o)]:[3,4];case 3:A.sent(),A.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(o,t)}).then(function(){return r})]:[2,r]}})})});return o.open(),o.write(Nn(document.doctype)+"<html></html>"),Gn(this.referenceElement.ownerDocument,t,n),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),A},bn.prototype.createElementClone=function(A){if(KB(A,2),Qn(A))return this.createCanvasClone(A);if(_r(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return cn(e)&&(cn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),e},bn.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),B=A.cloneNode(!1);return B.textContent=t,B}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},bn.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(A){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}t=e.cloneNode(!1);try{t.width=e.width,t.height=e.height;var B,r,n=e.getContext("2d"),s=t.getContext("2d");return s&&(!this.options.allowTaint&&n?s.putImageData(n.getImageData(0,0,e.width,e.height),0,0):(!(B=null!==(A=e.getContext("webgl2"))&&void 0!==A?A:e.getContext("webgl"))||!1===(null==(r=B.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e),s.drawImage(e,0,0))),t}catch(A){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return t},bn.prototype.cloneNode=function(A){if($r(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(e&&An(A)&&(en(A)||tn(A))){var t=this.createElementClone(A);t.style.transitionProperty="none";var B=e.getComputedStyle(A),r=e.getComputedStyle(A,":before"),n=e.getComputedStyle(A,":after");this.referenceElement===A&&en(t)&&(this.clonedReferenceElement=t),on(t)&&Jn(t);for(var e=this.counters.parse(new pB(this.context,B)),r=this.resolvePseudoContent(A,t,r,Hn.BEFORE),s=A.firstChild;s;s=s.nextSibling)An(s)&&("SCRIPT"===s.tagName||s.hasAttribute(mn)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(s))||this.options.copyStyles&&An(s)&&_r(s)||t.appendChild(this.cloneNode(s));r&&t.insertBefore(r,t.firstChild);n=this.resolvePseudoContent(A,t,n,Hn.AFTER);return n&&t.appendChild(n),this.counters.pop(e),B&&(this.options.copyStyles||tn(A))&&!an(A)&&Mn(B,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),(gn(A)||wn(A))&&(gn(t)||wn(t))&&(t.value=A.value),t}return A.cloneNode(!1)},bn.prototype.resolvePseudoContent=function(o,A,e,t){var i=this;if(e){var B=e.content,Q=A.ownerDocument;if(Q&&B&&"none"!==B&&"-moz-alt-content"!==B&&"none"!==e.display){this.counters.parse(new pB(this.context,e));var c=new IB(this.context,e),a=Q.createElement("html2canvasV1pseudoelement");Mn(e,a),c.content.forEach(function(A){if(0===A.type)a.appendChild(Q.createTextNode(A.value));else if(22===A.type){var e=Q.createElement("img");e.src=A.value,e.style.opacity="1",a.appendChild(e)}else if(18===A.type){var t,B,r,n,s;"attr"===A.name?(e=A.values.filter(kA)).length&&a.appendChild(Q.createTextNode(o.getAttribute(e[0].value)||"")):"counter"===A.name?(r=(B=A.values.filter(YA))[0],B=B[1],r&&kA(r)&&(t=i.counters.getCounterValue(r.value),s=B&&kA(B)?Kt.parse(i.context,B.value):It.DECIMAL,a.appendChild(Q.createTextNode(Ln(t,s,!1))))):"counters"===A.name&&(r=(t=A.values.filter(YA))[0],s=t[1],B=t[2],r&&kA(r)&&(r=i.counters.getCounterValues(r.value),n=B&&kA(B)?Kt.parse(i.context,B.value):It.DECIMAL,s=s&&0===s.type?s.value:"",s=r.map(function(A){return Ln(A,n,!1)}).join(s),a.appendChild(Q.createTextNode(s))))}else if(20===A.type)switch(A.value){case"open-quote":a.appendChild(Q.createTextNode(cB(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":a.appendChild(Q.createTextNode(cB(c.quotes,--i.quoteDepth,!1)));break;default:a.appendChild(Q.createTextNode(A.value))}}),a.className=Vn+" "+Pn;t=t===Hn.BEFORE?" "+Vn:" "+Pn;return tn(A)?A.className.baseValue+=t:A.className+=t,a}}},bn.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},bn);function bn(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Un,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}(we=Hn=Hn||{})[we.BEFORE=0]="BEFORE",we[we.AFTER=1]="AFTER";function Rn(e){return new Promise(function(A){!e.complete&&e.src?(e.onload=A,e.onerror=A):A()})}var On=function(A,e){var t=A.createElement("iframe");return t.className="html2canvasV1-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(mn,"true"),A.body.appendChild(t),t},Sn=function(A){return Promise.all([].slice.call(A.images,0).map(Rn))},Tn=function(r){return new Promise(function(e,A){var t=r.contentWindow;if(!t)return A("No window assigned for iframe");var B=t.document;t.onload=r.onload=function(){t.onload=r.onload=null;var A=setInterval(function(){0<B.body.childNodes.length&&"complete"===B.readyState&&(clearInterval(A),e(r))},50)}})},vn=["all","d","content"],Mn=function(A,e){for(var t=A.length-1;0<=t;t--){var B=A.item(t);-1===vn.indexOf(B)&&e.style.setProperty(B,A.getPropertyValue(B))}return e},Nn=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Gn=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},xn=function(A){var e=A[0],t=A[1],A=A[2];e.scrollLeft=t,e.scrollTop=A},Vn="___html2canvasV1___pseudoelement_before",Pn="___html2canvasV1___pseudoelement_after",kn='{\n    content: "" !important;\n    display: none !important;\n}',Jn=function(A){Xn(A,"."+Vn+":before"+kn+"\n         ."+Pn+":after"+kn)},Xn=function(A,e){var t=A.ownerDocument;t&&((t=t.createElement("style")).textContent=e,A.appendChild(t))},_n=(Yn.getOrigin=function(A){var e=Yn._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},Yn.isSameOrigin=function(A){return Yn.getOrigin(A)===Yn._origin},Yn.setContext=function(A){Yn._link=A.document.createElement("a"),Yn._origin=Yn.getOrigin(A.location.href)},Yn._origin="about:blank",Yn);function Yn(){}var Wn=(Zn.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Bs(A)||As(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},Zn.prototype.match=function(A){return this._cache[A]},Zn.prototype.loadImage=function(s){return a(this,void 0,void 0,function(){var e,B,t,r,n=this;return H(this,function(A){switch(A.label){case 0:return(e=_n.isSameOrigin(s),B=!es(s)&&!0===this._options.useCORS&&tr.SUPPORT_CORS_IMAGES&&!e,t=!es(s)&&!e&&!Bs(s)&&"string"==typeof this._options.proxy&&tr.SUPPORT_CORS_XHR&&!B,e||!1!==this._options.allowTaint||es(s)||Bs(s)||t||B)?(r=s,t?[4,this.proxy(r)]:[3,2]):[2];case 1:r=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+s.substring(0,256)),[4,new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,(ts(r)||B)&&(t.crossOrigin="anonymous"),t.src=r,!0===t.complete&&setTimeout(function(){return A(t)},500),0<n._options.imageTimeout&&setTimeout(function(){return e("Timed out ("+n._options.imageTimeout+"ms) loading image")},n._options.imageTimeout)})];case 3:return[2,A.sent()]}})})},Zn.prototype.has=function(A){return void 0!==this._cache[A]},Zn.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Zn.prototype.proxy=function(s){var o=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var Q=s.substring(0,256);return new Promise(function(e,t){var B=tr.SUPPORT_RESPONSE_TYPE?"blob":"text",r=new XMLHttpRequest;r.onload=function(){var A;200===r.status?"text"==B?e(r.response):((A=new FileReader).addEventListener("load",function(){return e(A.result)},!1),A.addEventListener("error",function(A){return t(A)},!1),A.readAsDataURL(r.response)):t("Failed to proxy resource "+Q+" with status code "+r.status)},r.onerror=t;var A,n=-1<i.indexOf("?")?"&":"?";r.open("GET",i+n+"url="+encodeURIComponent(s)+"&responseType="+B),"text"!=B&&r instanceof XMLHttpRequest&&(r.responseType=B),o._options.imageTimeout&&(A=o._options.imageTimeout,r.timeout=A,r.ontimeout=function(){return t("Timed out ("+A+"ms) proxying "+Q)}),r.send()})},Zn);function Zn(A,e){this.context=A,this._options=e,this._cache={}}var qn,jn=/^data:image\/svg\+xml/i,zn=/^data:image\/.*;base64,/i,$n=/^data:image\/.*/i,As=function(A){return tr.SUPPORT_SVG_DRAWING||!rs(A)},es=function(A){return $n.test(A)},ts=function(A){return zn.test(A)},Bs=function(A){return"blob"===A.substr(0,4)},rs=function(A){return"svg"===A.substr(-3).toLowerCase()||jn.test(A)};(we=qn=qn||{})[we.VECTOR=0]="VECTOR",we[we.BEZIER_CURVE=1]="BEZIER_CURVE";function ns(A,t){return A.length===t.length&&A.some(function(A,e){return A===t[e]})}var ss=(os.prototype.add=function(A,e){return new os(this.x+A,this.y+e)},os);function os(A,e){this.type=qn.VECTOR,this.x=A,this.y=e}function is(A,e,t){return new ss(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)}var Qs=(cs.prototype.subdivide=function(A,e){var t=is(this.start,this.startControl,A),B=is(this.startControl,this.endControl,A),r=is(this.endControl,this.end,A),n=is(t,B,A),B=is(B,r,A),A=is(n,B,A);return e?new cs(this.start,t,n,A):new cs(A,B,r,this.end)},cs.prototype.add=function(A,e){return new cs(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},cs.prototype.reverse=function(){return new cs(this.end,this.endControl,this.startControl,this.start)},cs);function cs(A,e,t,B){this.type=qn.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=B}function as(A){return A.type===qn.BEZIER_CURVE}var gs,ws=function(A){var e=A.styles,t=A.bounds,B=(l=zA(e.borderTopLeftRadius,t.width,t.height))[0],r=l[1],n=(F=zA(e.borderTopRightRadius,t.width,t.height))[0],s=F[1],o=(u=zA(e.borderBottomRightRadius,t.width,t.height))[0],i=u[1],Q=(h=zA(e.borderBottomLeftRadius,t.width,t.height))[0],c=h[1];(d=[]).push((B+n)/t.width),d.push((Q+o)/t.width),d.push((r+c)/t.height),d.push((s+i)/t.height),1<(E=Math.max.apply(Math,d))&&(B/=E,r/=E,n/=E,s/=E,o/=E,i/=E,Q/=E,c/=E);var a=t.width-n,g=t.height-i,w=t.width-o,C=t.height-c,U=e.borderTopWidth,l=e.borderRightWidth,F=e.borderBottomWidth,u=e.borderLeftWidth,h=ie(e.paddingTop,A.bounds.width),d=ie(e.paddingRight,A.bounds.width),E=ie(e.paddingBottom,A.bounds.width),A=ie(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=0<B||0<r?Fs(t.left+u/3,t.top+U/3,B-u/3,r-U/3,gs.TOP_LEFT):new ss(t.left+u/3,t.top+U/3),this.topRightBorderDoubleOuterBox=0<B||0<r?Fs(t.left+a,t.top+U/3,n-l/3,s-U/3,gs.TOP_RIGHT):new ss(t.left+t.width-l/3,t.top+U/3),this.bottomRightBorderDoubleOuterBox=0<o||0<i?Fs(t.left+w,t.top+g,o-l/3,i-F/3,gs.BOTTOM_RIGHT):new ss(t.left+t.width-l/3,t.top+t.height-F/3),this.bottomLeftBorderDoubleOuterBox=0<Q||0<c?Fs(t.left+u/3,t.top+C,Q-u/3,c-F/3,gs.BOTTOM_LEFT):new ss(t.left+u/3,t.top+t.height-F/3),this.topLeftBorderDoubleInnerBox=0<B||0<r?Fs(t.left+2*u/3,t.top+2*U/3,B-2*u/3,r-2*U/3,gs.TOP_LEFT):new ss(t.left+2*u/3,t.top+2*U/3),this.topRightBorderDoubleInnerBox=0<B||0<r?Fs(t.left+a,t.top+2*U/3,n-2*l/3,s-2*U/3,gs.TOP_RIGHT):new ss(t.left+t.width-2*l/3,t.top+2*U/3),this.bottomRightBorderDoubleInnerBox=0<o||0<i?Fs(t.left+w,t.top+g,o-2*l/3,i-2*F/3,gs.BOTTOM_RIGHT):new ss(t.left+t.width-2*l/3,t.top+t.height-2*F/3),this.bottomLeftBorderDoubleInnerBox=0<Q||0<c?Fs(t.left+2*u/3,t.top+C,Q-2*u/3,c-2*F/3,gs.BOTTOM_LEFT):new ss(t.left+2*u/3,t.top+t.height-2*F/3),this.topLeftBorderStroke=0<B||0<r?Fs(t.left+u/2,t.top+U/2,B-u/2,r-U/2,gs.TOP_LEFT):new ss(t.left+u/2,t.top+U/2),this.topRightBorderStroke=0<B||0<r?Fs(t.left+a,t.top+U/2,n-l/2,s-U/2,gs.TOP_RIGHT):new ss(t.left+t.width-l/2,t.top+U/2),this.bottomRightBorderStroke=0<o||0<i?Fs(t.left+w,t.top+g,o-l/2,i-F/2,gs.BOTTOM_RIGHT):new ss(t.left+t.width-l/2,t.top+t.height-F/2),this.bottomLeftBorderStroke=0<Q||0<c?Fs(t.left+u/2,t.top+C,Q-u/2,c-F/2,gs.BOTTOM_LEFT):new ss(t.left+u/2,t.top+t.height-F/2),this.topLeftBorderBox=0<B||0<r?Fs(t.left,t.top,B,r,gs.TOP_LEFT):new ss(t.left,t.top),this.topRightBorderBox=0<n||0<s?Fs(t.left+a,t.top,n,s,gs.TOP_RIGHT):new ss(t.left+t.width,t.top),this.bottomRightBorderBox=0<o||0<i?Fs(t.left+w,t.top+g,o,i,gs.BOTTOM_RIGHT):new ss(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=0<Q||0<c?Fs(t.left,t.top+C,Q,c,gs.BOTTOM_LEFT):new ss(t.left,t.top+t.height),this.topLeftPaddingBox=0<B||0<r?Fs(t.left+u,t.top+U,Math.max(0,B-u),Math.max(0,r-U),gs.TOP_LEFT):new ss(t.left+u,t.top+U),this.topRightPaddingBox=0<n||0<s?Fs(t.left+Math.min(a,t.width-l),t.top+U,a>t.width+l?0:Math.max(0,n-l),Math.max(0,s-U),gs.TOP_RIGHT):new ss(t.left+t.width-l,t.top+U),this.bottomRightPaddingBox=0<o||0<i?Fs(t.left+Math.min(w,t.width-u),t.top+Math.min(g,t.height-F),Math.max(0,o-l),Math.max(0,i-F),gs.BOTTOM_RIGHT):new ss(t.left+t.width-l,t.top+t.height-F),this.bottomLeftPaddingBox=0<Q||0<c?Fs(t.left+u,t.top+Math.min(C,t.height-F),Math.max(0,Q-u),Math.max(0,c-F),gs.BOTTOM_LEFT):new ss(t.left+u,t.top+t.height-F),this.topLeftContentBox=0<B||0<r?Fs(t.left+u+A,t.top+U+h,Math.max(0,B-(u+A)),Math.max(0,r-(U+h)),gs.TOP_LEFT):new ss(t.left+u+A,t.top+U+h),this.topRightContentBox=0<n||0<s?Fs(t.left+Math.min(a,t.width+u+A),t.top+U+h,a>t.width+u+A?0:n-u+A,s-(U+h),gs.TOP_RIGHT):new ss(t.left+t.width-(l+d),t.top+U+h),this.bottomRightContentBox=0<o||0<i?Fs(t.left+Math.min(w,t.width-(u+A)),t.top+Math.min(g,t.height+U+h),Math.max(0,o-(l+d)),i-(F+E),gs.BOTTOM_RIGHT):new ss(t.left+t.width-(l+d),t.top+t.height-(F+E)),this.bottomLeftContentBox=0<Q||0<c?Fs(t.left+u+A,t.top+C,Math.max(0,Q-(u+A)),c-(F+E),gs.BOTTOM_LEFT):new ss(t.left+u+A,t.top+t.height-(F+E))};(we=gs=gs||{})[we.TOP_LEFT=0]="TOP_LEFT",we[we.TOP_RIGHT=1]="TOP_RIGHT",we[we.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",we[we.BOTTOM_LEFT=3]="BOTTOM_LEFT";function Cs(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]}function Us(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]}function ls(A){return 1===A.type}var Fs=function(A,e,t,B,r){var n=(Math.sqrt(2)-1)/3*4,s=t*n,o=B*n,i=A+t,Q=e+B;switch(r){case gs.TOP_LEFT:return new Qs(new ss(A,Q),new ss(A,Q-o),new ss(i-s,e),new ss(i,e));case gs.TOP_RIGHT:return new Qs(new ss(A,e),new ss(A+s,e),new ss(i,Q-o),new ss(i,Q));case gs.BOTTOM_RIGHT:return new Qs(new ss(i,e),new ss(i,e+o),new ss(A+s,Q),new ss(A,Q));default:gs.BOTTOM_LEFT;return new Qs(new ss(i,Q),new ss(i-s,Q),new ss(A,e+o),new ss(A,e))}},us=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},hs=function(A,e){this.path=A,this.target=e,this.type=1},ds=function(A){this.opacity=A,this.type=2,this.target=6},Es=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Hs=(fs.prototype.getEffects=function(e){for(var A=-1===[Gt.ABSOLUTE,Gt.FIXED].indexOf(this.container.styles.position),t=this.parent,B=this.effects.slice(0);t;){var r,n,s=t.effects.filter(function(A){return!ls(A)});A||t.container.styles.position!==Gt.STATIC||!t.parent?(B.unshift.apply(B,s),A=-1===[Gt.ABSOLUTE,Gt.FIXED].indexOf(t.container.styles.position),t.container.styles.overflowX!==yt.VISIBLE&&(r=Cs(t.curves),n=Us(t.curves),ns(r,n)||B.unshift(new hs(n,6)))):B.unshift.apply(B,s),t=t.parent}return B.filter(function(A){return QB(A.target,e)})},fs);function fs(A,e){var t,B;this.container=A,this.parent=e,this.effects=[],this.curves=new ws(this.container),this.container.styles.opacity<1&&this.effects.push(new ds(this.container.styles.opacity)),null!==this.container.styles.transform&&(e=this.container.bounds.left+this.container.styles.transformOrigin[0].number,t=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform,this.effects.push(new us(e,t,B))),this.container.styles.overflowX!==yt.VISIBLE&&(t=Cs(this.curves),B=Us(this.curves),ns(t,B)?this.effects.push(new hs(t,6)):(this.effects.push(new hs(t,2)),this.effects.push(new hs(B,4))))}function Is(A,e){switch(e){case 0:return Os(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Os(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Os(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Os(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}}function ps(A){var e=A.bounds,A=A.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))}function ys(A){var e=A.styles,t=A.bounds,B=ie(e.paddingLeft,t.width),r=ie(e.paddingRight,t.width),n=ie(e.paddingTop,t.width),A=ie(e.paddingBottom,t.width);return t.add(B+e.borderLeftWidth,n+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+B+r),-(e.borderTopWidth+e.borderBottomWidth+n+A))}function Ks(A,e,t){var B=(r=Ts(A.styles.backgroundOrigin,e),n=A,0===r?n.bounds:(2===r?ys:ps)(n)),r=(s=Ts(A.styles.backgroundClip,e),o=A,s===le.BORDER_BOX?o.bounds:(s===le.CONTENT_BOX?ys:ps)(o)),n=Ss(Ts(A.styles.backgroundSize,e),t,B),s=n[0],o=n[1],t=zA(Ts(A.styles.backgroundPosition,e),B.width-s,B.height-o);return[vs(Ts(A.styles.backgroundRepeat,e),t,n,B,r),Math.round(B.left+t[0]),Math.round(B.top+t[1]),s,o]}function Ls(A){return kA(A)&&A.value===ke.AUTO}function ms(A){return"number"==typeof A}var Ds=function(Q,c,a,g){Q.container.elements.forEach(function(A){var e=QB(A.flags,4),t=QB(A.flags,2),B=new Hs(A,Q);QB(A.styles.display,2048)&&g.push(B);var r,n,s,o,i=QB(A.flags,8)?[]:g;e||t?(r=e||A.styles.isPositioned()?a:c,t=new Es(B),A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()?(n=A.styles.zIndex.order)<0?(s=0,r.negativeZIndex.some(function(A,e){return n>A.element.container.styles.zIndex.order?(s=e,!1):0<s}),r.negativeZIndex.splice(s,0,t)):0<n?(o=0,r.positiveZIndex.some(function(A,e){return n>=A.element.container.styles.zIndex.order?(o=e+1,!1):0<o}),r.positiveZIndex.splice(o,0,t)):r.zeroOrAutoZIndexOrTransformedOrOpacity.push(t):(A.styles.isFloating()?r.nonPositionedFloats:r.nonPositionedInlineLevel).push(t),Ds(B,t,e?t:a,i)):((A.styles.isInlineLevel()?c.inlineLevel:c.nonInlineLevel).push(B),Ds(B,c,a,i)),QB(A.flags,8)&&bs(A,i)})},bs=function(A,e){for(var t=A instanceof yr?A.start:1,B=A instanceof yr&&A.reversed,r=0;r<e.length;r++){var n=e[r];n.container instanceof fr&&"number"==typeof n.container.value&&0!==n.container.value&&(t=n.container.value),n.listValue=Ln(t,n.container.styles.listStyleType,!0),t+=B?-1:1}},Rs=function(A,e){var t=[];return as(A)?t.push(A.subdivide(.5,!1)):t.push(A),as(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Os=function(A,e,t,B){var r=[];return as(A)?r.push(A.subdivide(.5,!1)):r.push(A),as(t)?r.push(t.subdivide(.5,!0)):r.push(t),as(B)?r.push(B.subdivide(.5,!0).reverse()):r.push(B),as(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},Ss=function(A,e,t){var B=e[0],r=e[1],n=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(qA(s)&&o&&qA(o))return[ie(s,t.width),ie(o,t.height)];var i=ms(n);if(kA(s)&&(s.value===ke.CONTAIN||s.value===ke.COVER))return ms(n)?t.width/t.height<n!=(s.value===ke.COVER)?[t.width,t.width/n]:[t.height*n,t.height]:[t.width,t.height];var Q=ms(B),e=ms(r),A=Q||e;if(Ls(s)&&(!o||Ls(o)))return Q&&e?[B,r]:i||A?A&&i?[Q?B:r*n,e?r:B/n]:[Q?B:t.width,e?r:t.height]:[t.width,t.height];if(i){var c=0,a=0;return qA(s)?c=ie(s,t.width):qA(o)&&(a=ie(o,t.height)),Ls(s)?c=a*n:o&&!Ls(o)||(a=c/n),[c,a]}c=null,a=null;if(qA(s)?c=ie(s,t.width):o&&qA(o)&&(a=ie(o,t.height)),null!==(c=null!==(a=null!==c&&(!o||Ls(o))?Q&&e?c/B*r:t.height:a)&&Ls(s)?Q&&e?a/r*B:t.width:c)&&null!==a)return[c,a];throw new Error("Unable to calculate background-size for element")},Ts=function(A,e){e=A[e];return void 0===e?A[0]:e},vs=function(A,e,t,B,r){var n=e[0],s=e[1],o=t[0],i=t[1];switch(A){case Ne.REPEAT_X:return[new ss(Math.round(B.left),Math.round(B.top+s)),new ss(Math.round(B.left+B.width),Math.round(B.top+s)),new ss(Math.round(B.left+B.width),Math.round(i+B.top+s)),new ss(Math.round(B.left),Math.round(i+B.top+s))];case Ne.REPEAT_Y:return[new ss(Math.round(B.left+n),Math.round(B.top)),new ss(Math.round(B.left+n+o),Math.round(B.top)),new ss(Math.round(B.left+n+o),Math.round(B.height+B.top)),new ss(Math.round(B.left+n),Math.round(B.height+B.top))];case Ne.NO_REPEAT:return[new ss(Math.round(B.left+n),Math.round(B.top+s)),new ss(Math.round(B.left+n+o),Math.round(B.top+s)),new ss(Math.round(B.left+n+o),Math.round(B.top+s+i)),new ss(Math.round(B.left+n),Math.round(B.top+s+i))];default:return[new ss(Math.round(r.left),Math.round(r.top)),new ss(Math.round(r.left+r.width),Math.round(r.top)),new ss(Math.round(r.left+r.width),Math.round(r.height+r.top)),new ss(Math.round(r.left),Math.round(r.height+r.top))]}},Ms="Hidden Text",Ns=(Gs.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),B=this._document.createElement("img"),r=this._document.createElement("span"),n=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",n.appendChild(t),B.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",B.width=1,B.height=1,B.style.margin="0",B.style.padding="0",B.style.verticalAlign="baseline",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(Ms)),t.appendChild(r),t.appendChild(B);e=B.offsetTop-r.offsetTop+2;t.removeChild(r),t.appendChild(this._document.createTextNode(Ms)),t.style.lineHeight="normal",B.style.verticalAlign="super";B=B.offsetTop-t.offsetTop+2;return n.removeChild(t),{baseline:e,middle:B}},Gs.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},Gs);function Gs(A){this._data={},this._document=A}var xs,we=function(A,e){this.context=A,this.options=e},Vs=(A(Ps,xs=we),Ps.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach(function(A){return e.applyEffect(A)})},Ps.prototype.applyEffect=function(A){this.ctx.save(),2===A.type&&(this.ctx.globalAlpha=A.opacity),0===A.type&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),ls(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},Ps.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Ps.prototype.renderStack=function(e){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},Ps.prototype.renderNode=function(e){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return QB(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(e)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},Ps.prototype.renderTextWithLetterSpacing=function(t,A,B){var r=this;0===A?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+B):xB(t.text).reduce(function(A,e){return r.ctx.fillText(e,A,t.bounds.top+B),A+r.ctx.measureText(e).width},t.bounds.left)},Ps.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return"normal"===A||"small-caps"===A}).join(""),t=A.fontFamily.join(", "),B=VA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,B,t].join(" "),t,B]},Ps.prototype.renderTextNode=function(i,Q){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o=this;return H(this,function(A){return B=this.createFontStyle(Q),e=B[0],t=B[1],B=B[2],this.ctx.font=e,this.ctx.direction=1===Q.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",B=this.fontMetrics.getMetrics(t,B),r=B.baseline,n=B.middle,s=Q.paintOrder,i.textBounds.forEach(function(t){s.forEach(function(A){switch(A){case aB.FILL:o.ctx.fillStyle=te(Q.color),o.renderTextWithLetterSpacing(t,Q.letterSpacing,r);var e=Q.textShadow;e.length&&t.text.trim().length&&(e.slice(0).reverse().forEach(function(A){o.ctx.shadowColor=te(A.color),o.ctx.shadowOffsetX=A.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=A.offsetY.number*o.options.scale,o.ctx.shadowBlur=A.blur.number,o.renderTextWithLetterSpacing(t,Q.letterSpacing,r)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),Q.textDecorationLine.length&&(o.ctx.fillStyle=te(Q.textDecorationColor||Q.color),Q.textDecorationLine.forEach(function(A){switch(A){case 1:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+r),t.bounds.width,1);break;case 2:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:o.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+n),t.bounds.width,1)}}));break;case aB.STROKE:Q.webkitTextStrokeWidth&&t.text.trim().length&&(o.ctx.strokeStyle=te(Q.webkitTextStrokeColor),o.ctx.lineWidth=Q.webkitTextStrokeWidth,o.ctx.lineJoin=window.chrome?"miter":"round",o.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+r)),o.ctx.strokeStyle="",o.ctx.lineWidth=0,o.ctx.lineJoin="miter"}})}),[2]})})},Ps.prototype.renderReplacedElement=function(A,e,t){var B;t&&0<A.intrinsicWidth&&0<A.intrinsicHeight&&(B=ys(A),e=Us(e),this.path(e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,B.left,B.top,B.width,B.height),this.ctx.restore())},Ps.prototype.renderNodeContent=function(w){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g;return H(this,function(A){switch(A.label){case 0:this.applyEffects(w.getEffects(4)),e=w.container,t=w.curves,B=e.styles,r=0,n=e.textNodes,A.label=1;case 1:return r<n.length?(s=n[r],[4,this.renderTextNode(s,B)]):[3,4];case 2:A.sent(),A.label=3;case 3:return r++,[3,1];case 4:if(!(e instanceof Cr))return[3,8];A.label=5;case 5:return A.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return Q=A.sent(),this.renderReplacedElement(e,t,Q),[3,8];case 7:return A.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof Fr&&this.renderReplacedElement(e,t,e.canvas),!(e instanceof dr))return[3,12];A.label=9;case 9:return A.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return Q=A.sent(),this.renderReplacedElement(e,t,Q),[3,12];case 11:return A.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof Jr&&e.tree?[4,new Ps(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:s=A.sent(),e.width&&e.height&&this.ctx.drawImage(s,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),A.label=14;case 14:if(e instanceof Tr&&(i=Math.min(e.bounds.width,e.bounds.height),e.type===br?e.checked&&(this.ctx.save(),this.path([new ss(e.bounds.left+.39363*i,e.bounds.top+.79*i),new ss(e.bounds.left+.16*i,e.bounds.top+.5549*i),new ss(e.bounds.left+.27347*i,e.bounds.top+.44071*i),new ss(e.bounds.left+.39694*i,e.bounds.top+.5649*i),new ss(e.bounds.left+.72983*i,e.bounds.top+.23*i),new ss(e.bounds.left+.84*i,e.bounds.top+.34085*i),new ss(e.bounds.left+.39363*i,e.bounds.top+.79*i)]),this.ctx.fillStyle=te(Sr),this.ctx.fill(),this.ctx.restore()):e.type===Rr&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+i/2,e.bounds.top+i/2,i/4,0,2*Math.PI,!0),this.ctx.fillStyle=te(Sr),this.ctx.fill(),this.ctx.restore())),Js(e)&&e.value.length){switch(c=this.createFontStyle(B),a=c[0],i=c[1],c=this.fontMetrics.getMetrics(a,i).baseline,this.ctx.font=a,this.ctx.fillStyle=te(B.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=_s(e.styles.textAlign),g=ys(e),o=0,e.styles.textAlign){case Rt.CENTER:o+=g.width/2;break;case Rt.RIGHT:o+=g.width}i=g.add(o,0,0,-g.height/2+1),this.ctx.save(),this.path([new ss(g.left,g.top),new ss(g.left+g.width,g.top),new ss(g.left+g.width,g.top+g.height),new ss(g.left,g.top+g.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Br(e.value,i),B.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!QB(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if((c=e.styles.listStyleImage).type!==pe.URL)return[3,18];Q=void 0,c=c.url,A.label=15;case 15:return A.trys.push([15,17,,18]),[4,this.context.cache.match(c)];case 16:return Q=A.sent(),this.ctx.drawImage(Q,e.bounds.left-(Q.width+10),e.bounds.top),[3,18];case 17:return A.sent(),this.context.logger.error("Error loading list-style-image "+c),[3,18];case 18:return[3,20];case 19:w.listValue&&e.styles.listStyleType!==It.NONE&&(a=this.createFontStyle(B)[0],this.ctx.font=a,this.ctx.fillStyle=te(B.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",g=new d(e.bounds.left,e.bounds.top+ie(e.styles.paddingTop,e.bounds.width),e.bounds.width,lt(B.lineHeight,B.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Br(w.listValue,g),B.letterSpacing,lt(B.lineHeight,B.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),A.label=20;case 20:return[2]}})})},Ps.prototype.renderStackContent=function(l){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g,w,C,U;return H(this,function(A){switch(A.label){case 0:return QB(l.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(l.element)];case 1:A.sent(),e=0,t=l.negativeZIndex,A.label=2;case 2:return e<t.length?(U=t[e],[4,this.renderStack(U)]):[3,5];case 3:A.sent(),A.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(l.element)];case 6:A.sent(),B=0,r=l.nonInlineLevel,A.label=7;case 7:return B<r.length?(U=r[B],[4,this.renderNode(U)]):[3,10];case 8:A.sent(),A.label=9;case 9:return B++,[3,7];case 10:n=0,s=l.nonPositionedFloats,A.label=11;case 11:return n<s.length?(U=s[n],[4,this.renderStack(U)]):[3,14];case 12:A.sent(),A.label=13;case 13:return n++,[3,11];case 14:o=0,i=l.nonPositionedInlineLevel,A.label=15;case 15:return o<i.length?(U=i[o],[4,this.renderStack(U)]):[3,18];case 16:A.sent(),A.label=17;case 17:return o++,[3,15];case 18:Q=0,c=l.inlineLevel,A.label=19;case 19:return Q<c.length?(U=c[Q],[4,this.renderNode(U)]):[3,22];case 20:A.sent(),A.label=21;case 21:return Q++,[3,19];case 22:a=0,g=l.zeroOrAutoZIndexOrTransformedOrOpacity,A.label=23;case 23:return a<g.length?(U=g[a],[4,this.renderStack(U)]):[3,26];case 24:A.sent(),A.label=25;case 25:return a++,[3,23];case 26:w=0,C=l.positiveZIndex,A.label=27;case 27:return w<C.length?(U=C[w],[4,this.renderStack(U)]):[3,30];case 28:A.sent(),A.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},Ps.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},Ps.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},Ps.prototype.formatPath=function(A){var B=this;A.forEach(function(A,e){var t=as(A)?A.start:A;0===e?B.ctx.moveTo(t.x,t.y):B.ctx.lineTo(t.x,t.y),as(A)&&B.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},Ps.prototype.renderRepeat=function(A,e,t,B){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,B),this.ctx.fill(),this.ctx.translate(-t,-B)},Ps.prototype.resizeImage=function(A,e,t){if(A.width===e&&A.height===t)return A;var B=(null!==(B=this.canvas.ownerDocument)&&void 0!==B?B:document).createElement("canvas");return B.width=Math.max(1,e),B.height=Math.max(1,t),B.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),B},Ps.prototype.renderBackgroundImage=function(E){return a(this,void 0,void 0,function(){var h,e,d,t,B,r;return H(this,function(A){switch(A.label){case 0:h=E.styles.backgroundImage.length-1,e=function(e){var t,B,r,n,s,o,i,Q,c,a,g,w,C,U,l,F,u;return H(this,function(A){switch(A.label){case 0:if(e.type!==pe.URL)return[3,5];t=void 0,B=e.url,A.label=1;case 1:return A.trys.push([1,3,,4]),[4,d.context.cache.match(B)];case 2:return t=A.sent(),[3,4];case 3:return A.sent(),d.context.logger.error("Error loading background-image "+B),[3,4];case 4:return t&&(r=Ks(E,h,[t.width,t.height,t.width/t.height]),o=r[0],g=r[1],w=r[2],c=r[3],a=r[4],s=d.ctx.createPattern(d.resizeImage(t,c,a),"repeat"),d.renderRepeat(o,s,g,w)),[3,6];case 5:e.type===pe.LINEAR_GRADIENT?(u=Ks(E,h,[null,null,null]),o=u[0],g=u[1],w=u[2],c=u[3],a=u[4],l=He(e.angle,c,a),U=l[0],r=l[1],i=l[2],F=l[3],Q=l[4],(u=document.createElement("canvas")).width=c,u.height=a,l=u.getContext("2d"),n=l.createLinearGradient(r,F,i,Q),Ee(e.stops,U).forEach(function(A){return n.addColorStop(A.stop,te(A.color))}),l.fillStyle=n,l.fillRect(0,0,c,a),0<c&&0<a&&(s=d.ctx.createPattern(u,"repeat"),d.renderRepeat(o,s,g,w))):e.type===pe.RADIAL_GRADIENT&&(F=Ks(E,h,[null,null,null]),o=F[0],i=F[1],Q=F[2],c=F[3],a=F[4],U=0===e.position.length?[se]:e.position,g=ie(U[0],c),w=ie(U[U.length-1],a),l=function(A,e,t,B,r){var n,s,o,i,Q=0,c=0;switch(A.size){case Te.CLOSEST_SIDE:A.shape===Se.CIRCLE?Q=c=Math.min(Math.abs(e),Math.abs(e-B),Math.abs(t),Math.abs(t-r)):A.shape===Se.ELLIPSE&&(Q=Math.min(Math.abs(e),Math.abs(e-B)),c=Math.min(Math.abs(t),Math.abs(t-r)));break;case Te.CLOSEST_CORNER:A.shape===Se.CIRCLE?Q=c=Math.min(fe(e,t),fe(e,t-r),fe(e-B,t),fe(e-B,t-r)):A.shape===Se.ELLIPSE&&(n=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-B)),o=(s=Ie(B,r,e,t,!0))[0],i=s[1],c=n*(Q=fe(o-e,(i-t)/n)));break;case Te.FARTHEST_SIDE:A.shape===Se.CIRCLE?Q=c=Math.max(Math.abs(e),Math.abs(e-B),Math.abs(t),Math.abs(t-r)):A.shape===Se.ELLIPSE&&(Q=Math.max(Math.abs(e),Math.abs(e-B)),c=Math.max(Math.abs(t),Math.abs(t-r)));break;case Te.FARTHEST_CORNER:A.shape===Se.CIRCLE?Q=c=Math.max(fe(e,t),fe(e,t-r),fe(e-B,t),fe(e-B,t-r)):A.shape===Se.ELLIPSE&&(n=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-B)),o=(s=Ie(B,r,e,t,!1))[0],i=s[1],c=n*(Q=fe(o-e,(i-t)/n)))}return Array.isArray(A.size)&&(Q=ie(A.size[0],B),c=2===A.size.length?ie(A.size[1],r):Q),[Q,c]}(e,g,w,c,a),u=l[0],F=l[1],0<u&&0<F&&(C=d.ctx.createRadialGradient(i+g,Q+w,0,i+g,Q+w,u),Ee(e.stops,2*u).forEach(function(A){return C.addColorStop(A.stop,te(A.color))}),d.path(o),d.ctx.fillStyle=C,u!==F?(U=E.bounds.left+.5*E.bounds.width,l=E.bounds.top+.5*E.bounds.height,u=1/(F=F/u),d.ctx.save(),d.ctx.translate(U,l),d.ctx.transform(1,0,0,F,0,0),d.ctx.translate(-U,-l),d.ctx.fillRect(i,u*(Q-l)+l,c,a*u),d.ctx.restore()):d.ctx.fill())),A.label=6;case 6:return h--,[2]}})},d=this,t=0,B=E.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return t<B.length?(r=B[t],[5,e(r)]):[3,4];case 2:A.sent(),A.label=3;case 3:return t++,[3,1];case 4:return[2]}})})},Ps.prototype.renderSolidBorder=function(e,t,B){return a(this,void 0,void 0,function(){return H(this,function(A){return this.path(Is(B,t)),this.ctx.fillStyle=te(e),this.ctx.fill(),[2]})})},Ps.prototype.renderDoubleBorder=function(t,B,r,n){return a(this,void 0,void 0,function(){var e;return H(this,function(A){switch(A.label){case 0:return B<3?[4,this.renderSolidBorder(t,r,n)]:[3,2];case 1:return A.sent(),[2];case 2:return e=function(A,e){switch(e){case 0:return Os(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Os(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Os(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Os(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}}(n,r),this.path(e),this.ctx.fillStyle=te(t),this.ctx.fill(),e=function(A,e){switch(e){case 0:return Os(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Os(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Os(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Os(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}}(n,r),this.path(e),this.ctx.fill(),[2]}})})},Ps.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q=this;return H(this,function(A){switch(A.label){case 0:return(this.applyEffects(c.getEffects(2)),e=c.container.styles,t=!ee(e.backgroundColor)||e.backgroundImage.length,B=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],r=Xs(Ts(e.backgroundClip,0),c.curves),t||e.boxShadow.length)?(this.ctx.save(),this.path(r),this.ctx.clip(),ee(e.backgroundColor)||(this.ctx.fillStyle=te(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:A.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(A){Q.ctx.save();var t,B,r,n,e=Cs(c.curves),s=A.inset?0:1e4,o=(t=-s+(A.inset?1:-1)*A.spread.number,B=(A.inset?1:-1)*A.spread.number,r=A.spread.number*(A.inset?-2:2),n=A.spread.number*(A.inset?-2:2),e.map(function(A,e){switch(e){case 0:return A.add(t,B);case 1:return A.add(t+r,B);case 2:return A.add(t+r,B+n);case 3:return A.add(t,B+n)}return A}));A.inset?(Q.path(e),Q.ctx.clip(),Q.mask(o)):(Q.mask(e),Q.ctx.clip(),Q.path(o)),Q.ctx.shadowOffsetX=A.offsetX.number+s,Q.ctx.shadowOffsetY=A.offsetY.number,Q.ctx.shadowColor=te(A.color),Q.ctx.shadowBlur=A.blur.number,Q.ctx.fillStyle=A.inset?te(A.color):"rgba(0,0,0,1)",Q.ctx.fill(),Q.ctx.restore()}),A.label=2;case 2:s=n=0,o=B,A.label=3;case 3:return s<o.length?(i=o[s]).style!==_e.NONE&&!ee(i.color)&&0<i.width?i.style!==_e.DASHED?[3,5]:[4,this.renderDashedDottedBorder(i.color,i.width,n,c.curves,_e.DASHED)]:[3,11]:[3,13];case 4:return A.sent(),[3,11];case 5:return i.style!==_e.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(i.color,i.width,n,c.curves,_e.DOTTED)];case 6:return A.sent(),[3,11];case 7:return i.style!==_e.DOUBLE?[3,9]:[4,this.renderDoubleBorder(i.color,i.width,n,c.curves)];case 8:return A.sent(),[3,11];case 9:return[4,this.renderSolidBorder(i.color,n,c.curves)];case 10:A.sent(),A.label=11;case 11:n++,A.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},Ps.prototype.renderDashedDottedBorder=function(g,w,C,U,l){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a;return H(this,function(A){return this.ctx.save(),Q=function(A,e){switch(e){case 0:return Rs(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Rs(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Rs(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Rs(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(U,C),e=Is(U,C),l===_e.DASHED&&(this.path(e),this.ctx.clip()),s=as(e[0])?(t=e[0].start.x,e[0].start.y):(t=e[0].x,e[0].y),o=as(e[1])?(B=e[1].end.x,e[1].end.y):(B=e[1].x,e[1].y),r=0===C||2===C?Math.abs(t-B):Math.abs(s-o),this.ctx.beginPath(),l===_e.DOTTED?this.formatPath(Q):this.formatPath(e.slice(0,2)),n=w<3?3*w:2*w,s=w<3?2*w:w,l===_e.DOTTED&&(s=n=w),o=!0,r<=2*n?o=!1:r<=2*n+s?(n*=i=r/(2*n+s),s*=i):(Q=Math.floor((r+s)/(n+s)),i=(r-Q*n)/(Q-1),s=(Q=(r-(Q+1)*n)/Q)<=0||Math.abs(s-i)<Math.abs(s-Q)?i:Q),o&&(l===_e.DOTTED?this.ctx.setLineDash([0,n+s]):this.ctx.setLineDash([n,s])),l===_e.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=w):this.ctx.lineWidth=2*w+1.1,this.ctx.strokeStyle=te(g),this.ctx.stroke(),this.ctx.setLineDash([]),l===_e.DASHED&&(as(e[0])&&(c=e[3],a=e[0],this.ctx.beginPath(),this.formatPath([new ss(c.end.x,c.end.y),new ss(a.start.x,a.start.y)]),this.ctx.stroke()),as(e[1])&&(c=e[1],a=e[2],this.ctx.beginPath(),this.formatPath([new ss(c.end.x,c.end.y),new ss(a.start.x,a.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Ps.prototype.render=function(r){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=te(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=new Hs(e=r,null),B=new Es(t),Ds(t,B,B,e=[]),bs(t.container,e),[4,this.renderStack(B)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}var e,t,B})})},Ps);function Ps(A,e){A=xs.call(this,A,e)||this;return A._activeEffects=[],A.canvas=e.canvas||document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),e.canvas||(A.canvas.width=Math.floor(e.width*e.scale),A.canvas.height=Math.floor(e.height*e.scale),A.canvas.style.width=e.width+"px",A.canvas.style.height=e.height+"px"),A.fontMetrics=new Ns(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-e.x,-e.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+e.width+"x"+e.height+") with scale "+e.scale),A}var ks,Js=function(A){return A instanceof Vr||(A instanceof Nr||A instanceof Tr&&A.type!==Rr&&A.type!==br)},Xs=function(A,e){switch(A){case le.BORDER_BOX:return Cs(e);case le.CONTENT_BOX:return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox];default:le.PADDING_BOX;return Us(e)}},_s=function(A){switch(A){case Rt.CENTER:return"center";case Rt.RIGHT:return"right";default:Rt.LEFT;return"left"}},Ys=(A(Ws,ks=we),Ws.prototype.render=function(t){return a(this,void 0,void 0,function(){var e;return H(this,function(A){switch(A.label){case 0:return e=Ar(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Zs(e)];case 1:return e=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=te(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Ws);function Ws(A,e){A=ks.call(this,A,e)||this;return A.canvas=e.canvas||document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),A.options=e,A.canvas.width=Math.floor(e.width*e.scale),A.canvas.height=Math.floor(e.height*e.scale),A.canvas.style.width=e.width+"px",A.canvas.style.height=e.height+"px",A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-e.x,-e.y),A.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale),A}var Zs=function(B){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(B))})},qs=(js.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.prototype.getTime=function(){return Date.now()-this.start},js.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,t([this.id,this.getTime()+"ms"],A))},js.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.instances={},js);function js(A){var e=A.id,A=A.enabled;this.id=e,this.enabled=A,this.start=Date.now()}var zs=($s.instanceCount=1,$s);function $s(A,e){this.windowBounds=e,this.instanceName="#"+$s.instanceCount++,this.logger=new qs({id:this.instanceName,enabled:A.logging}),this.cache=null!==(e=A.cache)&&void 0!==e?e:new Wn(this,A)}"undefined"!=typeof window&&_n.setContext(window);var Ao=function(F,u){return a(void 0,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g,w,C,U,l;return H(this,function(A){switch(A.label){case 0:if(!F||"object"!=typeof F)return[2,Promise.reject("Invalid element provided as first argument")];if(!(e=F.ownerDocument))throw new Error("Element is not attached to a Document");if(!(t=e.defaultView))throw new Error("Document is not attached to a Window");return w={allowTaint:null!==(C=u.allowTaint)&&void 0!==C&&C,imageTimeout:null!==(c=u.imageTimeout)&&void 0!==c?c:15e3,proxy:u.proxy,useCORS:null!==(a=u.useCORS)&&void 0!==a&&a},C=h({logging:null===(g=u.logging)||void 0===g||g,cache:u.cache},w),c={windowWidth:null!==(c=u.windowWidth)&&void 0!==c?c:t.innerWidth,windowHeight:null!==(a=u.windowHeight)&&void 0!==a?a:t.innerHeight,scrollX:null!==(g=u.scrollX)&&void 0!==g?g:t.pageXOffset,scrollY:null!==(w=u.scrollY)&&void 0!==w?w:t.pageYOffset},a=new d(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),g=new zs(C,a),c=null!==(w=u.foreignObjectRendering)&&void 0!==w&&w,w={allowTaint:null!==(C=u.allowTaint)&&void 0!==C&&C,onclone:u.onclone,ignoreElements:u.ignoreElements,inlineImages:c,copyStyles:c},g.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),C=new Dn(g,F,w),(w=C.clonedReferenceElement)?[4,C.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return(B=A.sent(),U=on(w)||"HTML"===w.tagName?function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");A=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),t=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new d(0,0,A,t)}(w.ownerDocument):E(g,w),r=U.width,n=U.height,s=U.left,o=U.top,i=eo(g,w,u.backgroundColor),U={canvas:u.canvas,backgroundColor:i,scale:null!==(U=null!==(U=u.scale)&&void 0!==U?U:t.devicePixelRatio)&&void 0!==U?U:1,x:(null!==(U=u.x)&&void 0!==U?U:0)+s,y:(null!==(U=u.y)&&void 0!==U?U:0)+o,width:null!==(U=u.width)&&void 0!==U?U:Math.ceil(r),height:null!==(U=u.height)&&void 0!==U?U:Math.ceil(n)},c)?(g.logger.debug("Document cloned, using foreign object rendering"),[4,new Ys(g,U).render(w)]):[3,3];case 2:return Q=A.sent(),[3,5];case 3:return g.logger.debug("Document cloned, element located at "+s+","+o+" with size "+r+"x"+n+" using computed rendering"),g.logger.debug("Starting DOM parsing"),l=qr(g,w),i===l.styles.backgroundColor&&(l.styles.backgroundColor=he.TRANSPARENT),g.logger.debug("Starting renderer for element at "+U.x+","+U.y+" with size "+U.width+"x"+U.height),[4,new Vs(g,U).render(l)];case 4:Q=A.sent(),A.label=5;case 5:return null!==(l=u.removeContainer)&&void 0!==l&&!l||Dn.destroy(B)||g.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore"),g.logger.debug("Finished rendering"),[2,Q]}})})},eo=function(A,e,t){var B=e.ownerDocument,r=B.documentElement?Ue(A,getComputedStyle(B.documentElement).backgroundColor):he.TRANSPARENT,n=B.body?Ue(A,getComputedStyle(B.body).backgroundColor):he.TRANSPARENT,t="string"==typeof t?Ue(A,t):null===t?he.TRANSPARENT:4294967295;return e===B.documentElement?ee(r)?ee(n)?t:n:r:t};return function(A,e){return Ao(A,e=void 0===e?{}:e)}});
/** @license jsPDF v2.4.0 |  * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF | MIT License [https://github.com/parallax/jsPDF/blob/master/LICENSE] */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e((t=t||self).jspdf={}):"function"==typeof define&&define.amd?define(["jsPDF"],e):e((t=t||self).jspdf={})}(window,(function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function n(){r.console&&"function"==typeof r.console.log&&r.console.log.apply(r.console,arguments)}var i={log:n,warn:function(t){r.console&&("function"==typeof r.console.warn?r.console.warn.apply(r.console,arguments):n.call(null,arguments))},error:function(t){r.console&&("function"==typeof r.console.error?r.console.error.apply(r.console,arguments):n(t))}};function a(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){h(n.response,e,r)},n.onerror=function(){i.error("could not download file")},n.send()}function o(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function s(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var c,u,h=r.saveAs||("object"!==("undefined"==typeof window?"undefined":e(window))||window!==r?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var i=r.URL||r.webkitURL,c=document.createElement("a");e=e||t.name||"download",c.download=e,c.rel="noopener","string"==typeof t?(c.href=t,c.origin!==location.origin?o(c.href)?a(t,e,n):s(c,c.target="_blank"):s(c)):(c.href=i.createObjectURL(t),setTimeout((function(){i.revokeObjectURL(c.href)}),4e4),setTimeout((function(){s(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,n){if(r=r||t.name||"download","string"==typeof t)if(o(t))a(t,r,n);else{var c=document.createElement("a");c.href=t,c.target="_blank",setTimeout((function(){s(c)}))}else navigator.msSaveOrOpenBlob(function(t,r){return void 0===r?r={autoBom:!1}:"object"!==e(r)&&(i.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),r)}:function(t,n,i,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return a(t,n,i);var s="application/octet-stream"===t.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c)&&"object"===("undefined"==typeof FileReader?"undefined":e(FileReader))){var h=new FileReader;h.onloadend=function(){var t=h.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},h.readAsDataURL(t)}else{var l=r.URL||r.webkitURL,f=l.createObjectURL(t);o?o.location=f:location.href=f,o=null,setTimeout((function(){l.revokeObjectURL(f)}),4e4)}});
/**
   * A class to parse color values
   * @author Stoyan Stefanov <sstoo@gmail.com>
   * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
   * @license Use it if you like it
   */function l(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6));t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(t);o&&(e=a(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}
/**
   * @license
   * Joseph Myers does not specify a particular license for his work.
   *
   * Author: Joseph Myers
   * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
   *
   * Modified by: Owen Leong
   */
function f(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=p(r,n,i,a,e[0],7,-680876936),a=p(a,r,n,i,e[1],12,-389564586),i=p(i,a,r,n,e[2],17,606105819),n=p(n,i,a,r,e[3],22,-1044525330),r=p(r,n,i,a,e[4],7,-176418897),a=p(a,r,n,i,e[5],12,1200080426),i=p(i,a,r,n,e[6],17,-1473231341),n=p(n,i,a,r,e[7],22,-45705983),r=p(r,n,i,a,e[8],7,1770035416),a=p(a,r,n,i,e[9],12,-1958414417),i=p(i,a,r,n,e[10],17,-42063),n=p(n,i,a,r,e[11],22,-1990404162),r=p(r,n,i,a,e[12],7,1804603682),a=p(a,r,n,i,e[13],12,-40341101),i=p(i,a,r,n,e[14],17,-1502002290),r=g(r,n=p(n,i,a,r,e[15],22,1236535329),i,a,e[1],5,-165796510),a=g(a,r,n,i,e[6],9,-1069501632),i=g(i,a,r,n,e[11],14,643717713),n=g(n,i,a,r,e[0],20,-373897302),r=g(r,n,i,a,e[5],5,-701558691),a=g(a,r,n,i,e[10],9,38016083),i=g(i,a,r,n,e[15],14,-660478335),n=g(n,i,a,r,e[4],20,-405537848),r=g(r,n,i,a,e[9],5,568446438),a=g(a,r,n,i,e[14],9,-1019803690),i=g(i,a,r,n,e[3],14,-187363961),n=g(n,i,a,r,e[8],20,1163531501),r=g(r,n,i,a,e[13],5,-1444681467),a=g(a,r,n,i,e[2],9,-51403784),i=g(i,a,r,n,e[7],14,1735328473),r=m(r,n=g(n,i,a,r,e[12],20,-1926607734),i,a,e[5],4,-378558),a=m(a,r,n,i,e[8],11,-2022574463),i=m(i,a,r,n,e[11],16,1839030562),n=m(n,i,a,r,e[14],23,-35309556),r=m(r,n,i,a,e[1],4,-1530992060),a=m(a,r,n,i,e[4],11,1272893353),i=m(i,a,r,n,e[7],16,-155497632),n=m(n,i,a,r,e[10],23,-1094730640),r=m(r,n,i,a,e[13],4,681279174),a=m(a,r,n,i,e[0],11,-358537222),i=m(i,a,r,n,e[3],16,-722521979),n=m(n,i,a,r,e[6],23,76029189),r=m(r,n,i,a,e[9],4,-640364487),a=m(a,r,n,i,e[12],11,-421815835),i=m(i,a,r,n,e[15],16,530742520),r=v(r,n=m(n,i,a,r,e[2],23,-995338651),i,a,e[0],6,-198630844),a=v(a,r,n,i,e[7],10,1126891415),i=v(i,a,r,n,e[14],15,-1416354905),n=v(n,i,a,r,e[5],21,-57434055),r=v(r,n,i,a,e[12],6,1700485571),a=v(a,r,n,i,e[3],10,-1894986606),i=v(i,a,r,n,e[10],15,-1051523),n=v(n,i,a,r,e[1],21,-2054922799),r=v(r,n,i,a,e[8],6,1873313359),a=v(a,r,n,i,e[15],10,-30611744),i=v(i,a,r,n,e[6],15,-1560198380),n=v(n,i,a,r,e[13],21,1309151649),r=v(r,n,i,a,e[4],6,-145523070),a=v(a,r,n,i,e[11],10,-1120210379),i=v(i,a,r,n,e[2],15,718787259),n=v(n,i,a,r,e[9],21,-343485551),t[0]=S(r,t[0]),t[1]=S(n,t[1]),t[2]=S(i,t[2]),t[3]=S(a,t[3])}function d(t,e,r,n,i,a){return e=S(S(e,t),S(n,a)),S(e<<i|e>>>32-i,r)}function p(t,e,r,n,i,a,o){return d(e&r|~e&n,t,e,i,a,o)}function g(t,e,r,n,i,a,o){return d(e&n|r&~n,t,e,i,a,o)}function m(t,e,r,n,i,a,o){return d(e^r^n,t,e,i,a,o)}function v(t,e,r,n,i,a,o){return d(r^(e|~n),t,e,i,a,o)}function b(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)f(n,y(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(f(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,f(n,i),n}function y(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}c=r.atob.bind(r),u=r.btoa.bind(r);var w="0123456789abcdef".split("");function N(t){for(var e="",r=0;r<4;r++)e+=w[t>>8*r+4&15]+w[t>>8*r&15];return e}function L(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function A(t){return function(t){return t.map(L).join("")}(b(t))}var x="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=N(t[e]);return t.join("")}(b("hello"));function S(t,e){if(x){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}
/**
   * @license
   * FPDF is released under a permissive license: there is no usage restriction.
   * You may embed it freely in your application (commercial or not), with or
   * without modifications.
   *
   * Reference: http://www.fpdf.org/en/script/script37.php
   */function _(t,e){var r,n,i,a;if(t!==r){for(var o=(i=t,a=1+(256/t.length>>0),new Array(a+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var h=s[c];u=(u+h+o.charCodeAt(c))%256,s[c]=s[u],s[u]=h}r=t,n=s}else s=n;var l=e.length,f=0,d=0,p="";for(c=0;c<l;c++)d=(d+(h=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=h,o=s[(s[f]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(c)^o);return p}
/**
   * @license
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   * Author: Owen Leong (@owenl131)
   * Date: 15 Oct 2020
   * References:
   * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
   * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
   * http://www.fpdf.org/en/script/script37.php
   */var P={print:4,modify:8,copy:16,"annot-forms":32};function k(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==P.perm)throw new Error("Invalid permission: "+t);i+=P[t]})),this.padding="(Â¿N^NuÂŠAd\0NVÃ¿Ãº\b..\0Â¶Ã?h>Â€/\fÂ©Ã¾dSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=A(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=_(this.encryptionKey,this.padding)}function F(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);if(i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126)e+="#"+("0"+i.toString(16)).slice(-2);else e+=t[n]}return e}function I(t){if("object"!==e(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(t,e,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(t)||(n[t]={});var i=Math.random().toString(35);return n[t][i]=[e,!!r],i},this.unsubscribe=function(t){for(var e in n)if(n[e][t])return delete n[e][t],0===Object.keys(n[e]).length&&delete n[e],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var a=Array.prototype.slice.call(arguments,1),o=[];for(var s in n[e]){var c=n[e][s];try{c[0].apply(t,a)}catch(t){r.console&&i.error("jsPDF PubSub Error",t.message,t)}c[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function C(t){if(!(this instanceof C))return new C(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function j(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function O(t,e,r,n,i){if(!(this instanceof O))return new O(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,j.call(this,n,i)}function B(t,e,r,n,i){if(!(this instanceof B))return new B(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,j.call(this,n,i)}function M(t){var n,a="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],s=arguments[2],c=arguments[3],f=[],d=1,p=16,g="S",m=null;"object"===e(t=t||{})&&(a=t.orientation,o=t.unit||o,s=t.format||s,c=t.compress||t.compressPdf||c,null!==(m=t.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),d="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(n=t.precision),void 0!==t.floatPrecision&&(p=t.floatPrecision),g=t.defaultPathOperation||"S"),f=t.filters||(!0===c?["FlateEncode"]:f),o=o||"mm",a=(""+(a||"P")).toLowerCase();var v=t.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=I;var w="1.3",N=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var L={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return L};var A=y.__private__.getPageFormat=function(t){return L[t]};s=s||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},S=x.COMPAT;function _(){this.saveGraphicsState(),lt(new Vt(_t,0,0,-_t,0,Dr()*_t).toString()+" cm"),this.setFontSize(this.getFontSize()/_t),g="n",S=x.ADVANCED}function P(){this.restoreGraphicsState(),g="S",S=x.COMPAT}var j=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=S===x.COMPAT;return e&&_.call(this),"function"!=typeof t||(t(this),e&&P.call(this)),this},y.compatAPI=function(t){var e=S===x.ADVANCED;return e&&P.call(this),"function"!=typeof t||(t(this),e&&_.call(this)),this},y.isAdvancedAPI=function(){return S===x.ADVANCED};var E,q=function(t){if(S!==x.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=y.roundToPrecision=y.__private__.roundToPrecision=function(t,e){var r=n||e;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};E=y.hpf=y.__private__.hpf="number"==typeof p?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,p)}:"smart"===p?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,16)};var R=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return D(t,2)},T=y.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return D(t,3)},U=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return S===x.COMPAT?t*_t:S===x.ADVANCED?t:void 0},z=function(t){return S===x.COMPAT?Dr()-t:S===x.ADVANCED?t:void 0},H=function(t){return U(z(t))};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(n=parseInt(t,10))};var W,V="00000000000000000000000000000000",G=y.__private__.getFileId=function(){return V},Y=y.__private__.setFileId=function(t){return V=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():V.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==m&&(Ye=new k(m.userPermissions,m.userPassword,m.ownerPassword,V)),V};y.setFileId=function(t){return Y(t),this},y.getFileId=function(){return G()};var J=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[r,Q(n),"'",Q(i),"'"].join("");return["D:",t.getFullYear(),Q(t.getMonth()+1),Q(t.getDate()),Q(t.getHours()),Q(t.getMinutes()),Q(t.getSeconds()),a].join("")},X=y.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,r,n,i,a,o,0)},K=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=J(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return W=e},Z=y.__private__.getCreationDate=function(t){var e=W;return"jsDate"===t&&(e=X(W)),e};y.setCreationDate=function(t){return K(t),this},y.getCreationDate=function(t){return Z(t)};var $,Q=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,rt=[],nt=[],it=0,at=[],ot=[],st=!1,ct=nt,ut=function(){et=0,it=0,nt=[],rt=[],at=[],Qt=Kt(),te=Kt()};y.__private__.setCustomOutputDestination=function(t){st=!0,ct=t};var ht=function(t){st||(ct=t)};y.__private__.resetCustomOutputDestination=function(){st=!1,ct=nt};var lt=y.__private__.out=function(t){return t=t.toString(),it+=t.length+1,ct.push(t),ct},ft=y.__private__.write=function(t){return lt(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},dt=y.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},pt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return pt};var gt=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return gt=S===x.ADVANCED?t/_t:t,this};var mt,vt=y.__private__.getFontSize=y.getFontSize=function(){return S===x.COMPAT?gt:gt*_t},bt=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return bt=t,this},y.__private__.getR2L=y.getR2L=function(){return bt};var yt,wt=y.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(t))mt=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');mt=t}else mt=parseInt(t,10)};y.__private__.getZoomMode=function(){return mt};var Nt,Lt=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');yt=t};y.__private__.getPageMode=function(){return yt};var At=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');Nt=t};y.__private__.getLayoutMode=function(){return Nt},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,r){return wt(t),At(e),Lt(r),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[t]},y.__private__.getDocumentProperties=function(){return xt},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in xt)xt.hasOwnProperty(e)&&t[e]&&(xt[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[t]=e};var St,_t,Pt,kt,Ft,It={},Ct={},jt=[],Ot={},Bt={},Mt={},Et={},qt=null,Dt=0,Rt=[],Tt=new I(y),Ut=t.hotfixes||[],zt={},Ht={},Wt=[],Vt=function t(e,r,n,i,a,o){if(!(this instanceof t))return new t(e,r,n,i,a,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,r,n,i,a,o]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return 1===this.sx&&(0===this.shy&&(0===this.shx&&(1===this.sy&&(0===this.tx&&0===this.ty))))}}),Vt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(t)},Vt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,n=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Vt(e,r,n,i,a,o)},Vt.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n;r-=t*s,n-=e*s;var c=Math.sqrt(r*r+n*n);return s/=c,t*(n/=c)<e*(r/=c)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Vt(o,0,0,c,0,0),translate:new Vt(1,0,0,1,i,a),rotate:new Vt(t,e,-e,t,0,0),skew:new Vt(1,0,s,1,0,0)}},Vt.prototype.toString=function(t){return this.join(" ")},Vt.prototype.inversed=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=1/(t*n-e*r),s=n*o,c=-e*o,u=-r*o,h=t*o;return new Vt(s,c,u,h,-s*i-u*a,-c*i-h*a)},Vt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,r=t.x*this.shy+t.y*this.sy+this.ty;return new Ir(e,r)},Vt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),r=this.applyToPoint(new Ir(t.x+t.w,t.y+t.h));return new Cr(e.x,e.y,r.x-e.x,r.y-e.y)},Vt.prototype.clone=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty;return new Vt(t,e,r,n,i,a)},y.Matrix=Vt;var Gt=y.matrixMult=function(t,e){return e.multiply(t)},Yt=new Vt(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=Yt;var Jt=function(t,e){if(!Bt[t]){var r=(e instanceof O?"Sh":"P")+(Object.keys(Ot).length+1).toString(10);e.id=r,Bt[t]=r,Ot[r]=e,Tt.publish("addPattern",e)}};y.ShadingPattern=O,y.TilingPattern=B,y.addShadingPattern=function(t,e){return q("addShadingPattern()"),Jt(t,e),this},y.beginTilingPattern=function(t){q("beginTilingPattern()"),Or(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},y.endTilingPattern=function(t,e){q("endTilingPattern()"),e.stream=ot[$].join("\n"),Jt(t,e),Tt.publish("endTilingPattern",e),Wt.pop().restore()};var Xt=y.__private__.newObject=function(){var t=Kt();return Zt(t,!0),t},Kt=y.__private__.newObjectDeferred=function(){return et++,rt[et]=function(){return it},et},Zt=function(t,e){return e="boolean"==typeof e&&e,rt[t]=it,e&&lt(t+" 0 obj"),t},$t=y.__private__.newAdditionalObject=function(){var t={objId:Kt(),content:""};return at.push(t),t},Qt=Kt(),te=Kt(),ee=y.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1]){if(5===e.length&&("k"===e[4]||"K"===e[4])){e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]}}else{var r=parseFloat(e[0]);e=[r,r,r,"r"]}for(var n="#",i=0;i<3;i++)n+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return n},re=y.__private__.encodeColorString=function(t){var r;"string"==typeof t&&(t={ch1:t});var n=t.ch1,i=t.ch2,a=t.ch3,o=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var c=new l(n);if(c.ok)n=c.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&n===i&&i===a)if("string"==typeof n)r=n+" "+s[0];else switch(t.precision){case 2:r=R(n/255)+" "+s[0];break;case 3:default:r=T(n/255)+" "+s[0]}else if(void 0===o||"object"===e(o)){if(o&&!isNaN(o.a)&&0===o.a)return r=["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)r=[n,i,a,s[1]].join(" ");else switch(t.precision){case 2:r=[R(n/255),R(i/255),R(a/255),s[1]].join(" ");break;default:case 3:r=[T(n/255),T(i/255),T(a/255),s[1]].join(" ")}}else if("string"==typeof n)r=[n,i,a,o,s[2]].join(" ");else switch(t.precision){case 2:r=[R(n),R(i),R(a),R(o),s[2]].join(" ");break;case 3:default:r=[T(n),T(i),T(a),T(o),s[2]].join(" ")}return r},ne=y.__private__.getFilters=function(){return f},ie=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||ne(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==m&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==m&&(s=Ye.encryptor(o,0));var c={};!0===r&&(r=["FlateEncode"]);var u=t.additionalKeyValues||[],h=(c=void 0!==M.API.processDataByFilters?M.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=h.length)if(h.split("/").length-1==1)u.push({key:"Filter",value:h});else{u.push({key:"Filter",value:"["+h+"]"});for(var l=0;l<u.length;l+=1)if("DecodeParms"===u[l].key){for(var f=[],d=0;d<c.reverseChain.split("/").length-1;d+=1)f.push("null");f.push(u[l].value),u[l].value="["+f.join(" ")+"]"}}lt("<<");for(var p=0;p<u.length;p++)lt("/"+u[p].key+" "+u[p].value);lt(">>"),0!==c.data.length&&(lt("stream"),lt(s(c.data)),lt("endstream"))},ae=y.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;Zt(n,!0),lt("<</Type /Page"),lt("/Parent "+t.rootDictionaryObjId+" 0 R"),lt("/Resources "+t.resourceDictionaryObjId+" 0 R"),lt("/MediaBox ["+parseFloat(E(t.mediaBox.bottomLeftX))+" "+parseFloat(E(t.mediaBox.bottomLeftY))+" "+E(t.mediaBox.topRightX)+" "+E(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&lt("/CropBox ["+E(t.cropBox.bottomLeftX)+" "+E(t.cropBox.bottomLeftY)+" "+E(t.cropBox.topRightX)+" "+E(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&lt("/BleedBox ["+E(t.bleedBox.bottomLeftX)+" "+E(t.bleedBox.bottomLeftY)+" "+E(t.bleedBox.topRightX)+" "+E(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&lt("/TrimBox ["+E(t.trimBox.bottomLeftX)+" "+E(t.trimBox.bottomLeftY)+" "+E(t.trimBox.topRightX)+" "+E(t.trimBox.topRightY)+"]"),null!==t.artBox&&lt("/ArtBox ["+E(t.artBox.bottomLeftX)+" "+E(t.artBox.bottomLeftY)+" "+E(t.artBox.topRightX)+" "+E(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&lt("/UserUnit "+t.userUnit),Tt.publish("putPage",{objId:n,pageContext:Rt[e],pageNumber:e,page:r}),lt("/Contents "+i+" 0 R"),lt(">>"),lt("endobj");var a=r.join("\n");return S===x.ADVANCED&&(a+="\nQ"),Zt(i,!0),ie({data:a,filters:ne(),objectId:i}),lt("endobj"),n},oe=y.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=Dt;t++)Rt[t].objId=Kt(),Rt[t].contentsObjId=Kt();for(t=1;t<=Dt;t++)r.push(ae({number:t,data:ot[t],objId:Rt[t].objId,contentsObjId:Rt[t].contentsObjId,mediaBox:Rt[t].mediaBox,cropBox:Rt[t].cropBox,bleedBox:Rt[t].bleedBox,trimBox:Rt[t].trimBox,artBox:Rt[t].artBox,userUnit:Rt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));Zt(Qt,!0),lt("<</Type /Pages");var n="/Kids [";for(e=0;e<Dt;e++)n+=r[e]+" 0 R ";lt(n+"]"),lt("/Count "+Dt),lt(">>"),lt("endobj"),Tt.publish("postPutPages")},se=function(t){Tt.publish("putFont",{font:t,out:lt,newObject:Xt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Xt(),lt("<<"),lt("/Type /Font"),lt("/BaseFont /"+F(t.postScriptName)),lt("/Subtype /Type1"),"string"==typeof t.encoding&&lt("/Encoding /"+t.encoding),lt("/FirstChar 32"),lt("/LastChar 255"),lt(">>"),lt("endobj"))},ce=function(){for(var t in It)It.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&&se(It[t])},ue=function(t){t.objectNumber=Xt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[E(t.x),E(t.y),E(t.x+t.width),E(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ie({data:r,additionalKeyValues:e,objectId:t.objectNumber}),lt("endobj")},he=function(){for(var t in zt)zt.hasOwnProperty(t)&&ue(zt[t])},le=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",c=0,u=0;u<n.length;u++){for(r=n[u];r>t[c+1].offset;)c++;var h=t[c].offset,l=(r-h)/(t[c+1].offset-h),f=t[c].color,d=t[c+1].color;s+=tt(Math.round((1-l)*f[0]+l*d[0]).toString(16))+tt(Math.round((1-l)*f[1]+l*d[1]).toString(16))+tt(Math.round((1-l)*f[2]+l*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var r=Xt(),n=le(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),lt("endobj"),t.objectNumber=Xt(),lt("<< /ShadingType "+t.type),lt("/ColorSpace /DeviceRGB");var a="/Coords ["+E(parseFloat(t.coords[0]))+" "+E(parseFloat(t.coords[1]))+" ";2===t.type?a+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3])):a+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3]))+" "+E(parseFloat(t.coords[4]))+" "+E(parseFloat(t.coords[5])),lt(a+="]"),t.matrix&&lt("/Matrix ["+t.matrix.toString()+"]"),lt("/Function "+r+" 0 R"),lt("/Extend [true true]"),lt(">>"),lt("endobj")},de=function(t,e){var r=Kt(),n=Xt();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(E).join(" ")+"]"}),i.push({key:"XStep",value:E(t.xStep)}),i.push({key:"YStep",value:E(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),lt("endobj")},pe=function(t){var e;for(e in Ot)Ot.hasOwnProperty(e)&&(Ot[e]instanceof O?fe(Ot[e]):Ot[e]instanceof B&&de(Ot[e],t))},ge=function(t){for(var e in t.objectNumber=Xt(),lt("<<"),t)switch(e){case"opacity":lt("/ca "+R(t[e]));break;case"stroke-opacity":lt("/CA "+R(t[e]))}lt(">>"),lt("endobj")},me=function(){var t;for(t in Mt)Mt.hasOwnProperty(t)&&ge(Mt[t])},ve=function(){for(var t in lt("/XObject <<"),zt)zt.hasOwnProperty(t)&&zt[t].objectNumber>=0&&lt("/"+t+" "+zt[t].objectNumber+" 0 R");Tt.publish("putXobjectDict"),lt(">>")},be=function(){Ye.oid=Xt(),lt("<<"),lt("/Filter /Standard"),lt("/V "+Ye.v),lt("/R "+Ye.r),lt("/U <"+Ye.toHexString(Ye.U)+">"),lt("/O <"+Ye.toHexString(Ye.O)+">"),lt("/P "+Ye.P),lt(">>"),lt("endobj")},ye=function(){for(var t in lt("/Font <<"),It)It.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&&lt("/"+t+" "+It[t].objectNumber+" 0 R");lt(">>")},we=function(){if(Object.keys(Ot).length>0){for(var t in lt("/Shading <<"),Ot)Ot.hasOwnProperty(t)&&Ot[t]instanceof O&&Ot[t].objectNumber>=0&&lt("/"+t+" "+Ot[t].objectNumber+" 0 R");Tt.publish("putShadingPatternDict"),lt(">>")}},Ne=function(t){if(Object.keys(Ot).length>0){for(var e in lt("/Pattern <<"),Ot)Ot.hasOwnProperty(e)&&Ot[e]instanceof y.TilingPattern&&Ot[e].objectNumber>=0&&Ot[e].objectNumber<t&&lt("/"+e+" "+Ot[e].objectNumber+" 0 R");Tt.publish("putTilingPatternDict"),lt(">>")}},Le=function(){if(Object.keys(Mt).length>0){var t;for(t in lt("/ExtGState <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&lt("/"+t+" "+Mt[t].objectNumber+" 0 R");Tt.publish("putGStateDict"),lt(">>")}},Ae=function(t){Zt(t.resourcesOid,!0),lt("<<"),lt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),Ne(t.objectOid),Le(),ve(),lt(">>"),lt("endobj")},xe=function(){var t=[];ce(),me(),he(),pe(t),Tt.publish("putResources"),t.forEach(Ae),Ae({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Tt.publish("postPutResources")},Se=function(){Tt.publish("putAdditionalObjects");for(var t=0;t<at.length;t++){var e=at[t];Zt(e.objId,!0),lt(e.content),lt("endobj")}Tt.publish("postPutAdditionalObjects")},_e=function(t){Ct[t.fontName]=Ct[t.fontName]||{},Ct[t.fontName][t.fontStyle]=t.id},Pe=function(t,e,r,n,i){var a={id:"F"+(Object.keys(It).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return Tt.publish("addFont",{font:a,instance:this}),It[a.id]=a,_e(a),a.id},ke=function(t){for(var e=0,r=pt.length;e<r;e++){var n=Pe.call(this,t[e][0],t[e][1],t[e][2],pt[e][3],!0);!1===v&&(b[n]=!0);var i=t[e][0].split("-");_e({id:n,fontName:i[0],fontStyle:i[1]||""})}Tt.publish("addFonts",{fonts:It,dictionary:Ct})},Fe=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!r.console)throw new Error(n);r.console.error(n,t),r.alert&&alert(n)}},t.foo.bar=t,t.foo},Ie=function(t,e){var r,n,i,a,o,s,c,u,h;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&It[St].metadata&&It[St].metadata[i]&&It[St].metadata[i].encoding&&(a=It[St].metadata[i].encoding,!o&&It[St].encoding&&(o=It[St].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(c=!1,s=[],r=0,n=t.length;r<n;r++)(u=o[t.charCodeAt(r)])?s.push(String.fromCharCode(u)):s.push(t[r]),s[r].charCodeAt(0)>>8&&(c=!0);t=s.join("")}for(r=t.length;void 0===c&&0!==r;)t.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r<n;r++){if((h=(u=t.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(h),s.push(u-(h<<8))}return String.fromCharCode.apply(void 0,s)},Ce=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return Ie(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},je=y.__private__.beginPage=function(t){ot[++Dt]=[],Rt[Dt]={objId:0,contentsObjId:0,userUnit:Number(d),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Me(Dt),ht(ot[$])},Oe=function(t,e){var r,n,o;switch(a=e||a,"string"==typeof t&&(r=A(t.toLowerCase()),Array.isArray(r)&&(n=r[0],o=r[1])),Array.isArray(t)&&(n=t[0]*_t,o=t[1]*_t),isNaN(n)&&(n=s[0],o=s[1]),(n>14400||o>14400)&&(i.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),o=Math.min(14400,o)),s=[n,o],a.substr(0,1)){case"l":o>n&&(s=[o,n]);break;case"p":n>o&&(s=[o,n])}je(s),dr(fr),lt(Nr),0!==Pr&&lt(Pr+" J"),0!==kr&&lt(kr+" j"),Tt.publish("addPage",{pageNumber:Dt})},Be=function(t){t>0&&t<=Dt&&(ot.splice(t,1),Rt.splice(t,1),Dt--,$>Dt&&($=Dt),this.setPage($))},Me=function(t){t>0&&t<=Dt&&($=t)},Ee=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return ot.length-1},qe=function(t,e,r){var n,a=void 0;return r=r||{},t=void 0!==t?t:It[St].fontName,e=void 0!==e?e:It[St].fontStyle,n=t.toLowerCase(),void 0!==Ct[n]&&void 0!==Ct[n][e]?a=Ct[n][e]:void 0!==Ct[t]&&void 0!==Ct[t][e]?a=Ct[t][e]:!1===r.disableWarning&&i.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),a||r.noFallback||null==(a=Ct.times[e])&&(a=Ct.times.normal),a},De=y.__private__.putInfo=function(){var t=Xt(),e=function(t){return t};for(var r in null!==m&&(e=Ye.encryptor(t,0)),lt("<<"),lt("/Producer ("+Ce(e("jsPDF "+M.version))+")"),xt)xt.hasOwnProperty(r)&&xt[r]&&lt("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Ce(e(xt[r]))+")");lt("/CreationDate ("+Ce(e(W))+")"),lt(">>"),lt("endobj")},Re=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Xt(),lt("<<"),lt("/Type /Catalog"),lt("/Pages "+e+" 0 R"),mt||(mt="fullwidth"),mt){case"fullwidth":lt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":lt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":lt("/OpenAction [3 0 R /Fit]");break;case"original":lt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+mt;"%"===r.substr(r.length-1)&&(mt=parseInt(mt)/100),"number"==typeof mt&&lt("/OpenAction [3 0 R /XYZ null null "+R(mt)+"]")}switch(Nt||(Nt="continuous"),Nt){case"continuous":lt("/PageLayout /OneColumn");break;case"single":lt("/PageLayout /SinglePage");break;case"two":case"twoleft":lt("/PageLayout /TwoColumnLeft");break;case"tworight":lt("/PageLayout /TwoColumnRight")}yt&&lt("/PageMode /"+yt),Tt.publish("putCatalog"),lt(">>"),lt("endobj")},Te=y.__private__.putTrailer=function(){lt("trailer"),lt("<<"),lt("/Size "+(et+1)),lt("/Root "+et+" 0 R"),lt("/Info "+(et-1)+" 0 R"),null!==m&&lt("/Encrypt "+Ye.oid+" 0 R"),lt("/ID [ <"+V+"> <"+V+"> ]"),lt(">>")},Ue=y.__private__.putHeader=function(){lt("%PDF-"+w),lt("%ÂºÃŸÂ¬Ã ")},ze=y.__private__.putXRef=function(){var t="0000000000";lt("xref"),lt("0 "+(et+1)),lt("0000000000 65535 f ");for(var e=1;e<=et;e++){"function"==typeof rt[e]?lt((t+rt[e]()).slice(-10)+" 00000 n "):void 0!==rt[e]?lt((t+rt[e]).slice(-10)+" 00000 n "):lt("0000000000 00000 n ")}},He=y.__private__.buildDocument=function(){ut(),ht(nt),Tt.publish("buildDocument"),Ue(),oe(),Se(),xe(),null!==m&&be(),De(),Re();var t=it;return ze(),Te(),lt("startxref"),lt(""+t),lt("%%EOF"),ht(ot[$]),nt.join("\n")},We=y.__private__.getBlob=function(t){return new Blob([dt(t)],{type:"application/pdf"})},Ve=y.output=y.__private__.output=Fe((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return He();case"save":y.save(e.filename);break;case"arraybuffer":return dt(He());case"blob":return We(He());case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(We(He()))||void 0;i.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",a=He();try{n=u(a)}catch(t){n=u(unescape(encodeURIComponent(a)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(r)){var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+(e.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",s=r.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(r)){var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',h=r.open();if(null!==h){h.document.write(c);var l=this;h.document.documentElement.querySelector("#pdfViewer").onload=function(){h.document.title=e.filename,h.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(l.output("bloburl"))}}return h}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(r))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',d=r.open();if(null!==d&&(d.document.write(f),d.document.title=e.filename),d||"undefined"==typeof safari)return d;break;case"datauri":case"dataurl":return r.document.location.href=this.output("datauristring",e);default:return null}})),Ge=function(t){return!0===Array.isArray(Ut)&&Ut.indexOf(t)>-1};switch(o){case"pt":_t=1;break;case"mm":_t=72/25.4;break;case"cm":_t=72/2.54;break;case"in":_t=72;break;case"px":_t=1==Ge("px_scaling")?.75:96/72;break;case"pc":case"em":_t=12;break;case"ex":_t=6;break;default:throw new Error("Invalid unit: "+o)}var Ye=null;K(),Y();var Je=function(t){return null!==m?Ye.encryptor(t,0):function(t){return t}},Xe=y.__private__.getPageInfo=y.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Rt[t].objId,pageNumber:t,pageContext:Rt[t]}},Ke=y.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Rt)if(Rt[e].objId===t)break;return Xe(e)},Ze=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Rt[$].objId,pageNumber:$,pageContext:Rt[$]}};y.addPage=function(){return Oe.apply(this,arguments),this},y.setPage=function(){return Me.apply(this,arguments),ht.call(this,ot[$]),this},y.insertPage=function(t){return this.addPage(),this.movePage($,t),this},y.movePage=function(t,e){var r,n;if(t>e){r=ot[t],n=Rt[t];for(var i=t;i>e;i--)ot[i]=ot[i-1],Rt[i]=Rt[i-1];ot[e]=r,Rt[e]=n,this.setPage(e)}else if(t<e){r=ot[t],n=Rt[t];for(var a=t;a<e;a++)ot[a]=ot[a+1],Rt[a]=Rt[a+1];ot[e]=r,Rt[e]=n,this.setPage(e)}return this},y.deletePage=function(){return Be.apply(this,arguments),this},y.__private__.text=y.text=function(t,r,n,i,a){var o,s,c,u,h,l,f,d,p=(i=i||{}).scope||this;if("number"==typeof t&&"number"==typeof r&&("string"==typeof n||Array.isArray(n))){var g=n;n=r,r=t,t=g}if(arguments[3]instanceof Vt==!1?(c=arguments[4],u=arguments[5],"object"===e(f=arguments[3])&&null!==f||("string"==typeof c&&(u=c,c=null),"string"==typeof f&&(u=f,f=null),"number"==typeof f&&(c=f,f=null),i={flags:f,angle:c,align:u})):(q("The transform parameter of text() with a Matrix value"),d=a),isNaN(r)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return p;var m="",v=!1,y="number"==typeof i.lineHeightFactor?i.lineHeightFactor:lr,w=p.internal.scaleFactor;function N(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),Ce(t,f)}function L(t){for(var e,r=t.concat(),n=[],i=r.length;i--;)"string"==typeof(e=r.shift())?n.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?n.push(e[0]):n.push([e[0],e[1],e[2]]);return n}function A(t,e){var r;if("string"==typeof t)r=e(t)[0];else if(Array.isArray(t)){for(var n,i,a=t.concat(),o=[],s=a.length;s--;)"string"==typeof(n=a.shift())?o.push(e(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(i=e(n[0],n[1],n[2]),o.push([i[0],i[1],i[2]]));r=o}return r}var _=!1,P=!0;if("string"==typeof t)_=!0;else if(Array.isArray(t)){var k=t.concat();s=[];for(var F,I=k.length;I--;)("string"!=typeof(F=k.shift())||Array.isArray(F)&&"string"!=typeof F[0])&&(P=!1);_=P}if(!1===_)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var C=gt/p.internal.scaleFactor,j=C*(lr-1);switch(i.baseline){case"bottom":n-=j;break;case"top":n+=C-j;break;case"hanging":n+=C-2*j;break;case"middle":n+=C/2-j}if((l=i.maxWidth||0)>0&&("string"==typeof t?t=p.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(p.splitTextToSize(e,l))}),[]))),o={text:t,x:r,y:n,options:i,mutex:{pdfEscape:Ce,activeFontKey:St,fonts:It,activeFontSize:gt}},Tt.publish("preProcessText",o),t=o.text,c=(i=o.options).angle,d instanceof Vt==!1&&c&&"number"==typeof c){c*=Math.PI/180,0===i.rotationDirection&&(c=-c),S===x.ADVANCED&&(c=-c);var O=Math.cos(c),B=Math.sin(c);d=new Vt(O,B,-B,O,0,0)}else c&&c instanceof Vt&&(d=c);S!==x.ADVANCED||d||(d=Yt),void 0!==(h=i.charSpace||Sr)&&(m+=E(U(h))+" Tc\n",this.setCharSpace(this.getCharSpace()||0));i.lang;var M=-1,D=void 0!==i.renderingMode?i.renderingMode:i.stroke,R=p.internal.getCurrentPageInfo().pageContext;switch(D){case 0:case!1:case"fill":M=0;break;case 1:case!0:case"stroke":M=1;break;case 2:case"fillThenStroke":M=2;break;case 3:case"invisible":M=3;break;case 4:case"fillAndAddForClipping":M=4;break;case 5:case"strokeAndAddPathForClipping":M=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":M=6;break;case 7:case"addToPathForClipping":M=7}var T=void 0!==R.usedRenderingMode?R.usedRenderingMode:-1;-1!==M?m+=M+" Tr\n":-1!==T&&(m+="0 Tr\n"),-1!==M&&(R.usedRenderingMode=M),u=i.align||"left";var z,H=gt*y,W=p.internal.pageSize.getWidth(),V=It[St];h=i.charSpace||Sr,l=i.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},i.flags);var G=[];if("[object Array]"===Object.prototype.toString.call(t)){var Y;s=L(t),"left"!==u&&(z=s.map((function(t){return p.getStringUnitWidth(t,{font:V,charSpace:h,fontSize:gt,doKerning:!1})*gt/w})));var J,X=0;if("right"===u){r-=z[0],t=[],I=s.length;for(var K=0;K<I;K++)0===K?(J=vr(r),Y=br(n)):(J=U(X-z[K]),Y=-H),t.push([s[K],J,Y]),X=z[K]}else if("center"===u){r-=z[0]/2,t=[],I=s.length;for(var Z=0;Z<I;Z++)0===Z?(J=vr(r),Y=br(n)):(J=U((X-z[Z])/2),Y=-H),t.push([s[Z],J,Y]),X=z[Z]}else if("left"===u){t=[],I=s.length;for(var $=0;$<I;$++)t.push(s[$])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],I=s.length,l=0!==l?l:W;for(var Q=0;Q<I;Q++)Y=0===Q?br(n):-H,J=0===Q?vr(r):0,Q<I-1?G.push(E(U((l-z[Q])/(s[Q].split(" ").length-1)))):G.push(0),t.push([s[Q],J,Y])}}var tt="boolean"==typeof i.R2L?i.R2L:bt;!0===tt&&(t=A(t,(function(t,e,r){return[t.split("").reverse().join(""),e,r]}))),o={text:t,x:r,y:n,options:i,mutex:{pdfEscape:Ce,activeFontKey:St,fonts:It,activeFontSize:gt}},Tt.publish("postProcessText",o),t=o.text,v=o.mutex.isHex||!1;var et=It[St].encoding;"WinAnsiEncoding"!==et&&"StandardEncoding"!==et||(t=A(t,(function(t,e,r){return[N(t),e,r]}))),s=L(t),t=[];for(var rt,nt,it,at=0,ot=1,st=Array.isArray(s[0])?ot:at,ct="",ut=function(t,e,r){var n="";return r instanceof Vt?(r="number"==typeof i.angle?Gt(r,new Vt(1,0,0,1,t,e)):Gt(new Vt(1,0,0,1,t,e),r),S===x.ADVANCED&&(r=Gt(new Vt(1,0,0,-1,0,0),r)),n=r.join(" ")+" Tm\n"):n=E(t)+" "+E(e)+" Td\n",n},ht=0;ht<s.length;ht++){switch(ct="",st){case ot:it=(v?"<":"(")+s[ht][0]+(v?">":")"),rt=parseFloat(s[ht][1]),nt=parseFloat(s[ht][2]);break;case at:it=(v?"<":"(")+s[ht]+(v?">":")"),rt=vr(r),nt=br(n)}void 0!==G&&void 0!==G[ht]&&(ct=G[ht]+" Tw\n"),0===ht?t.push(ct+ut(rt,nt,d)+it):st===at?t.push(ct+it):st===ot&&t.push(ct+ut(rt,nt,d)+it)}t=st===at?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var ft="BT\n/";return ft+=St+" "+gt+" Tf\n",ft+=E(gt*y)+" TL\n",ft+=Ar+"\n",ft+=m,ft+=t,lt(ft+="ET"),b[St]=!0,p};var $e=y.__private__.clip=y.clip=function(t){return lt("evenodd"===t?"W*":"W"),this};y.clipEvenOdd=function(){return $e("evenodd")},y.__private__.discardPath=y.discardPath=function(){return lt("n"),this};var Qe=y.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(t){return Qe(t)&&(g=t),this};var tr=y.__private__.getStyle=y.getStyle=function(t){var e=g;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},er=y.close=function(){return lt("h"),this};y.stroke=function(){return lt("S"),this},y.fill=function(t){return rr("f",t),this},y.fillEvenOdd=function(t){return rr("f*",t),this},y.fillStroke=function(t){return rr("B",t),this},y.fillStrokeEvenOdd=function(t){return rr("B*",t),this};var rr=function(t,r){"object"===e(r)?ar(r,t):lt(t)},nr=function(t){null===t||S===x.ADVANCED&&void 0===t||(t=tr(t),lt(t))};function ir(t,e,r,n,i){var a=new B(e||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,i||this.matrix);a.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Jt(o,a),a}var ar=function(t,e){var r=Bt[t.key],n=Ot[r];if(n instanceof O)lt("q"),lt(or(e)),n.gState&&y.setGState(n.gState),lt(t.matrix.toString()+" cm"),lt("/"+r+" sh"),lt("Q");else if(n instanceof B){var i=new Vt(1,0,0,-1,0,Dr());t.matrix&&(i=i.multiply(t.matrix||Yt),r=ir.call(n,t.key,t.boundingBox,t.xStep,t.yStep,i).id),lt("q"),lt("/Pattern cs"),lt("/"+r+" scn"),n.gState&&y.setGState(n.gState),lt(e),lt("Q")}},or=function(t){switch(t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},sr=y.moveTo=function(t,e){return lt(E(U(t))+" "+E(H(e))+" m"),this},cr=y.lineTo=function(t,e){return lt(E(U(t))+" "+E(H(e))+" l"),this},ur=y.curveTo=function(t,e,r,n,i,a){return lt([E(U(t)),E(H(e)),E(U(r)),E(H(n)),E(U(i)),E(H(a)),"c"].join(" ")),this};y.__private__.line=y.line=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.line");return S===x.COMPAT?this.lines([[r-t,n-e]],t,e,[1,1],i||"S"):this.lines([[r-t,n-e]],t,e,[1,1]).stroke()},y.__private__.lines=y.lines=function(t,e,r,n,i,a){var o,s,c,u,h,l,f,d,p,g,m,v;if("number"==typeof t&&(v=r,r=e,e=t,t=v),n=n||[1,1],a=a||!1,isNaN(e)||isNaN(r)||!Array.isArray(t)||!Array.isArray(n)||!Qe(i)||"boolean"!=typeof a)throw new Error("Invalid arguments passed to jsPDF.lines");for(sr(e,r),o=n[0],s=n[1],u=t.length,g=e,m=r,c=0;c<u;c++)2===(h=t[c]).length?(g=h[0]*o+g,m=h[1]*s+m,cr(g,m)):(l=h[0]*o+g,f=h[1]*s+m,d=h[2]*o+g,p=h[3]*s+m,g=h[4]*o+g,m=h[5]*s+m,ur(l,f,d,p,g,m));return a&&er(),nr(i),this},y.path=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.c;switch(r.op){case"m":sr(n[0],n[1]);break;case"l":cr(n[0],n[1]);break;case"c":ur.apply(this,n);break;case"h":er()}}return this},y.__private__.rect=y.rect=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.rect");return S===x.COMPAT&&(n=-n),lt([E(U(t)),E(H(e)),E(U(r)),E(U(n)),"re"].join(" ")),nr(i),this},y.__private__.triangle=y.triangle=function(t,e,r,n,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a)||!Qe(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-t,n-e],[i-r,a-n],[t-i,e-a]],t,e,[1,1],o,!0),this},y.__private__.roundedRect=y.roundedRect=function(t,e,r,n,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a)||!Qe(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*r),a=Math.min(a,.5*n),this.lines([[r-2*i,0],[i*s,0,i,a-a*s,i,a],[0,n-2*a],[0,a*s,-i*s,a,-i,a],[2*i-r,0],[-i*s,0,-i,-a*s,-i,-a],[0,2*a-n],[0,-a*s,i*s,-a,i,-a]],t+i,e,[1,1],o,!0),this},y.__private__.ellipse=y.ellipse=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var a=4/3*(Math.SQRT2-1)*r,o=4/3*(Math.SQRT2-1)*n;return sr(t+r,e),ur(t+r,e-o,t+a,e-n,t,e-n),ur(t-a,e-n,t-r,e-o,t-r,e),ur(t-r,e+o,t-a,e+n,t,e+n),ur(t+a,e+n,t+r,e+o,t+r,e),nr(i),this},y.__private__.circle=y.circle=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||!Qe(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,r,r,n)},y.setFont=function(t,e,r){return r&&(e=j(e,r)),St=qe(t,e,{disableWarning:!1}),this};var hr=y.__private__.getFont=y.getFont=function(){return It[qe.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var t,e,r={};for(t in Ct)if(Ct.hasOwnProperty(t))for(e in r[t]=[],Ct[t])Ct[t].hasOwnProperty(e)&&r[t].push(e);return r},y.addFont=function(t,e,r,n,i){var a=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==a.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==a.indexOf(arguments[3])&&(r=j(r,n)),i=i||"Identity-H",Pe.call(this,t,e,r,i)};var lr,fr=t.lineWidth||.200025,dr=y.__private__.setLineWidth=y.setLineWidth=function(t){return lt(E(U(t))+" w"),this};y.__private__.setLineDash=M.API.setLineDash=M.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return E(U(t))})).join(" "),e=E(U(e)),lt("["+t+"] "+e+" d"),this};var pr=y.__private__.getLineHeight=y.getLineHeight=function(){return gt*lr};y.__private__.getLineHeight=y.getLineHeight=function(){return gt*lr};var gr=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(lr=t),this},mr=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return lr};gr(t.lineHeight);var vr=y.__private__.getHorizontalCoordinate=function(t){return U(t)},br=y.__private__.getVerticalCoordinate=function(t){return S===x.ADVANCED?t:Rt[$].mediaBox.topRightY-Rt[$].mediaBox.bottomLeftY-U(t)},yr=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(t){return E(vr(t))},wr=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(t){return E(br(t))},Nr=t.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return ee(Nr)},y.__private__.setStrokeColor=y.setDrawColor=function(t,e,r,n){return Nr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),lt(Nr),this};var Lr=t.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return ee(Lr)},y.__private__.setFillColor=y.setFillColor=function(t,e,r,n){return Lr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),lt(Lr),this};var Ar=t.textColor||"0 g",xr=y.__private__.getTextColor=y.getTextColor=function(){return ee(Ar)};y.__private__.setTextColor=y.setTextColor=function(t,e,r,n){return Ar=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var Sr=t.charSpace,_r=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(Sr||0)};y.__private__.setCharSpace=y.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Sr=t,this};var Pr=0;y.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},y.__private__.setLineCap=y.setLineCap=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Pr=e,lt(e+" J"),this};var kr=0;y.__private__.setLineJoin=y.setLineJoin=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return kr=e,lt(e+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return lt(E(U(t))+" M"),this},y.GState=C,y.setGState=function(t){(t="string"==typeof t?Mt[Et[t]]:Fr(null,t)).equals(qt)||(lt("/"+t.id+" gs"),qt=t)};var Fr=function(t,e){if(!t||!Et[t]){var r=!1;for(var n in Mt)if(Mt.hasOwnProperty(n)&&Mt[n].equals(e)){r=!0;break}if(r)e=Mt[n];else{var i="GS"+(Object.keys(Mt).length+1).toString(10);Mt[i]=e,e.id=i}return t&&(Et[t]=e.id),Tt.publish("addGState",e),e}};y.addGState=function(t,e){return Fr(t,e),this},y.saveGraphicsState=function(){return lt("q"),jt.push({key:St,size:gt,color:Ar}),this},y.restoreGraphicsState=function(){lt("Q");var t=jt.pop();return St=t.key,gt=t.size,Ar=t.color,qt=null,this},y.setCurrentTransformationMatrix=function(t){return lt(t.toString()+" cm"),this},y.comment=function(t){return lt("#"+t),this};var Ir=function(t,e){var r=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var n=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},Cr=function(t,e,r,n){Ir.call(this,t,e),this.type="rect";var i=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var a=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a},set:function(t){isNaN(t)||(a=parseFloat(t))}}),this},jr=function(){this.page=Dt,this.currentPage=$,this.pages=ot.slice(0),this.pagesContext=Rt.slice(0),this.x=Pt,this.y=kt,this.matrix=Ft,this.width=Er($),this.height=Dr($),this.outputDestination=ct,this.id="",this.objectNumber=-1};jr.prototype.restore=function(){Dt=this.page,$=this.currentPage,Rt=this.pagesContext,ot=this.pages,Pt=this.x,kt=this.y,Ft=this.matrix,qr($,this.width),Rr($,this.height),ct=this.outputDestination};var Or=function(t,e,r,n,i){Wt.push(new jr),Dt=$=0,ot=[],Pt=t,kt=e,Ft=i,je([r,n])},Br=function(t){if(Ht[t])Wt.pop().restore();else{var e=new jr,r="Xo"+(Object.keys(zt).length+1).toString(10);e.id=r,Ht[t]=r,zt[r]=e,Tt.publish("addFormObject",e),Wt.pop().restore()}};for(var Mr in y.beginFormObject=function(t,e,r,n,i){return Or(t,e,r,n,i),this},y.endFormObject=function(t){return Br(t),this},y.doFormObject=function(t,e){var r=zt[Ht[t]];return lt("q"),lt(e.toString()+" cm"),lt("/"+r.id+" Do"),lt("Q"),this},y.getFormObject=function(t){var e=zt[Ht[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},y.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(h(We(He()),t),"function"==typeof h.unload&&r.setTimeout&&setTimeout(h.unload,911),this):new Promise((function(e,n){try{var i=h(We(He()),t);"function"==typeof h.unload&&r.setTimeout&&setTimeout(h.unload,911),e(i)}catch(t){n(t.message)}}))},M.API)M.API.hasOwnProperty(Mr)&&("events"===Mr&&M.API.events.length?function(t,e){var r,n,i;for(i=e.length-1;-1!==i;i--)r=e[i][0],n=e[i][1],t.subscribe.apply(t,[r].concat("function"==typeof n?[n]:n))}(Tt,M.API.events):y[Mr]=M.API[Mr]);var Er=y.getPageWidth=function(t){return(Rt[t=t||$].mediaBox.topRightX-Rt[t].mediaBox.bottomLeftX)/_t},qr=y.setPageWidth=function(t,e){Rt[t].mediaBox.topRightX=e*_t+Rt[t].mediaBox.bottomLeftX},Dr=y.getPageHeight=function(t){return(Rt[t=t||$].mediaBox.topRightY-Rt[t].mediaBox.bottomLeftY)/_t},Rr=y.setPageHeight=function(t,e){Rt[t].mediaBox.topRightY=e*_t+Rt[t].mediaBox.bottomLeftY};return y.internal={pdfEscape:Ce,getStyle:tr,getFont:hr,getFontSize:vt,getCharSpace:_r,getTextColor:xr,getLineHeight:pr,getLineHeightFactor:mr,write:ft,getHorizontalCoordinate:vr,getVerticalCoordinate:br,getCoordinateString:yr,getVerticalCoordinateString:wr,collections:{},newObject:Xt,newAdditionalObject:$t,newObjectDeferred:Kt,newObjectDeferredBegin:Zt,getFilters:ne,putStream:ie,events:Tt,scaleFactor:_t,pageSize:{getWidth:function(){return Er($)},setWidth:function(t){qr($,t)},getHeight:function(){return Dr($)},setHeight:function(t){Rr($,t)}},encryptionOptions:m,encryption:Ye,getEncryptor:Je,output:Ve,getNumberOfPages:Ee,pages:ot,out:lt,f2:R,f3:T,getPageInfo:Xe,getPageInfoByObjId:Ke,getCurrentPageInfo:Ze,getPDFVersion:N,Point:Ir,Rectangle:Cr,Matrix:Vt,hasHotfix:Ge},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return Er($)},set:function(t){qr($,t)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return Dr($)},set:function(t){Rr($,t)},enumerable:!0,configurable:!0}),ke.call(y,pt),St="F1",Oe(s,a),Tt.publish("initialized"),y}k.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},k.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},k.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},k.prototype.processOwnerPassword=function(t,e){return _(A(e).substr(0,5),t)},k.prototype.encryptor=function(t,e){var r=A(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return _(r,t)}},C.prototype.equals=function(t){var r,n="id,objectNumber,equals";if(!t||e(t)!==e(this))return!1;var i=0;for(r in this)if(!(n.indexOf(r)>=0)){if(this.hasOwnProperty(r)&&!t.hasOwnProperty(r))return!1;if(this[r]!==t[r])return!1;i++}for(r in t)t.hasOwnProperty(r)&&n.indexOf(r)<0&&i--;return 0===i},M.API={events:[]},M.version="2.4.0";var E=M.API,q=1,D=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},R=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},T=function(t){return t.toFixed(2)},U=function(t){return t.toFixed(5)};E.__acroform__={};var z=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},H=function(t){return t*q},W=function(t){var e=new ct,r=Lt.internal.getHeight(t)||0,n=Lt.internal.getWidth(t)||0;return e.BBox=[0,0,Number(T(n)),Number(T(r))],e},V=E.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<e},G=E.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<e)},Y=E.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},J=E.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Y(t,e-1)},X=E.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return V(t,e-1)},K=E.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return G(t,e-1)},Z=E.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=t[0],a=t[1],o=t[2],s=t[3],c={};return c.lowerLeft_X=r(i)||0,c.lowerLeft_Y=n(a+s)||0,c.upperRight_X=r(i+o)||0,c.upperRight_Y=n(a)||0,[Number(T(c.lowerLeft_X)),Number(T(c.lowerLeft_Y)),Number(T(c.upperRight_X)),Number(T(c.upperRight_Y))]},$=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=Q(t,r),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+T(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=W(t);return a.scope=t.scope,a.stream=e.join("\n"),a}},Q=function(t,e){var r=0===t.fontSize?t.maxFontSize:t.fontSize,n={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),a=r,o=Lt.internal.getHeight(t)||0;o=o<0?-o:o;var s=Lt.internal.getWidth(t)||0;s=s<0?-s:s;var c=function(e,r,n){if(e+1<i.length){var a=r+" "+i[e+1];return tt(a,t,n).width<=s-4}return!1};a++;t:for(;a>0;){e="",a--;var u,h,l=tt("3",t,a).height,f=t.multiline?o-a:(o-l)/2,d=f+=2,p=0,g=0;if(a<=0){e="(...) Tj\n",e+="% Width of Text: "+tt(e,t,a=12).width+", FieldWidth:"+s+"\n";break}var m="",v=0;for(var b in i)if(i.hasOwnProperty(b)){m=" "==(m+=i[b]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var y=parseInt(b),w=c(y,m,a),N=b>=i.length-1;if(w&&!N){m+=" ";continue}if(w||N){if(N)g=y;else if(t.multiline&&(l+2)*(v+2)+2>o)continue t}else{if(!t.multiline)continue t;if((l+2)*(v+2)+2>o)continue t;g=y}for(var L="",A=p;A<=g;A++)L+=i[A]+" ";switch(L=" "==L.substr(L.length-1)?L.substr(0,L.length-1):L,h=tt(L,t,a).width,t.textAlign){case"right":u=s-h-2;break;case"center":u=(s-h)/2;break;case"left":default:u=2}e+=T(u)+" "+T(d)+" Td\n",e+="("+D(L)+") Tj\n",e+=-T(u)+" 0 Td\n",d=-(a+2),h=0,p=g+1,v++,m=""}else;break}return n.text=e,n.fontSize=a,n},tt=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},et={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},rt=function(t,e){var r={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===r.type&&t.object===r.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},nt=function(t,r){for(var n in t)if(t.hasOwnProperty(n)){var i=n,a=t[n];r.internal.newObjectDeferredBegin(a.objId,!0),"object"===e(a)&&"function"==typeof a.putStream&&a.putStream(),delete t[i]}},it=function(t,r){if(r.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(ht.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(et)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");q=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new ut,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];n.objId=void 0,n.hasAnnotation&&rt(n,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(r){!function(t,r){var n=!t;for(var i in t||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(i)){var a=t[i],o=[],s=a.Rect;if(a.Rect&&(a.Rect=Z(a.Rect,r)),r.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Lt.createDefaultAppearanceStream(a),"object"===e(a)&&"function"==typeof a.getKeyValueListForStream&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var c=$(a);o.push({key:"AP",value:"<</N "+c+">>"}),r.internal.acroformPlugin.xForms.push(c)}if(a.appearanceStreamContent){var u="";for(var h in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(h)){var l=a.appearanceStreamContent[h];if(u+="/"+h+" ",u+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var i in l)if(l.hasOwnProperty(i)){var f=l[i];"function"==typeof f&&(f=f.call(r,a)),u+="/"+i+" "+f+" ",r.internal.acroformPlugin.xForms.indexOf(f)>=0||r.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=l)&&(f=f.call(r,a)),u+="/"+i+" "+f,r.internal.acroformPlugin.xForms.indexOf(f)>=0||r.internal.acroformPlugin.xForms.push(f);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}r.internal.putStream({additionalKeyValues:o,objectId:a.objId}),r.internal.out("endobj")}n&&nt(r.internal.acroformPlugin.xForms,r)}(r,t)})),t.internal.acroformPlugin.isInitialized=!0}},at=E.__acroform__.arrayToPdfArray=function(t,r,n){var i=function(t){return t};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(0!==o&&(a+=" "),e(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==r&&n&&(i=n.internal.getEncryptor(r)),a+="("+D(i(t[o].toString()))+")"):a+=t[o].toString()}return a+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")};var ot=function(t,e,r){var n=function(t){return t};return void 0!==e&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),t="("+D(n(t))+")"},st=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};st.prototype.toString=function(){return this.objId+" 0 R"},st.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},st.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var r in e)if(!1===Object.getOwnPropertyDescriptor(this,e[r]).configurable){var n=e[r],i=this[n];i&&(Array.isArray(i)?t.push({key:n,value:at(i,this.objId,this.scope)}):i instanceof st?(i.scope=this.scope,t.push({key:n,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:n,value:i}))}return t};var ct=function(){st.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};z(ct,st);var ut=function(){st.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+D(e(t))+")"}},set:function(e){t=e}})};z(ut,st);var ht=function t(){st.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(e,3))},set:function(t){!0===Boolean(t)?this.F=X(e,3):this.F=K(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');r=t}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(t){n=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(t){n[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(t){n[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(t){n[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(t){n[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof bt)return;a="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+D(e(a))+")"},set:function(t){a=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(t){a=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/q:u},set:function(t){u=t}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(t){h=t}});var l="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!l||this instanceof bt||this instanceof wt))return ot(l,this.objId,this.scope)},set:function(t){t=t.toString(),l=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof gt==!1?ot(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof gt==!1?"("===t.substr(0,1)?R(t.substr(1,t.length-2)):R(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof gt==!0?R(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof gt==!0?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof gt==!1?ot(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof gt==!1?"("===t.substr(0,1)?R(t.substr(1,t.length-2)):R(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof gt==!0?R(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof gt==!0?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,1):this.Ff=K(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,2):this.Ff=K(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,3):this.Ff=K(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};z(ht,st);var lt=function(){ht.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return at(e,this.objId,this.scope)},set:function(t){var r,n;n=[],"string"==typeof(r=t)&&(n=function(t,e,r){r||(r=1);for(var n,i=[];n=e.exec(t);)i.push(n[r]);return i}(r,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,18):this.Ff=K(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=X(this.Ff,19):this.Ff=K(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=X(this.Ff,20),e.sort()):this.Ff=K(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,22):this.Ff=K(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,23):this.Ff=K(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,27):this.Ff=K(this.Ff,27)}}),this.hasAppearanceStream=!1};z(lt,ht);var ft=function(){lt.call(this),this.fontName="helvetica",this.combo=!1};z(ft,lt);var dt=function(){ft.call(this),this.combo=!0};z(dt,ft);var pt=function(){dt.call(this),this.edit=!0};z(pt,dt);var gt=function(){ht.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,15):this.Ff=K(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,16):this.Ff=K(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,17):this.Ff=K(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,26):this.Ff=K(this.Ff,26)}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(r).length){var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+D(t(r[e]))+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===e(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};z(gt,ht);var mt=function(){gt.call(this),this.pushButton=!0};z(mt,gt);var vt=function(){gt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};z(vt,gt);var bt=function(){var t,r;ht.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,r=[];for(e in r.push("<<"),i)r.push("/"+e+" ("+D(t(i[e]))+")");return r.push(">>"),r.join("\n")},set:function(t){"object"===e(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Lt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};z(bt,ht),vt.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},vt.prototype.createOption=function(t){var e=new bt;return e.Parent=this,e.optionName=t,this.Kids.push(e),At.call(this.scope,e),e};var yt=function(){gt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Lt.CheckBox.createAppearanceStream()};z(yt,gt);var wt=function(){ht.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,13):this.Ff=K(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,21):this.Ff=K(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,23):this.Ff=K(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,24):this.Ff=K(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,25):this.Ff=K(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,26):this.Ff=K(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};z(wt,ht);var Nt=function(){wt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,14):this.Ff=K(this.Ff,14)}}),this.password=!0};z(Nt,wt);var Lt={CheckBox:{createAppearanceStream:function(){return{N:{On:Lt.CheckBox.YesNormal},D:{On:Lt.CheckBox.YesPushDown,Off:Lt.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=Q(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+T(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=[],a=Lt.internal.getHeight(t),o=Lt.internal.getWidth(t),s=Q(t,t.caption);return i.push("1 g"),i.push("0 0 "+T(o)+" "+T(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+T(o-1)+" "+T(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+T(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Lt.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Lt.RadioButton.Circle.YesNormal,e.D[t]=Lt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Lt.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Lt.internal.Bezier_C).toFixed(5)),o=Number((n*Lt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Lt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Lt.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Lt.RadioButton.Cross.YesNormal,e.D[t]=Lt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+T(Lt.internal.getWidth(t)-2)+" "+T(Lt.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(T(n.x1.x)+" "+T(n.x1.y)+" m"),r.push(T(n.x2.x)+" "+T(n.x2.y)+" l"),r.push(T(n.x4.x)+" "+T(n.x4.y)+" m"),r.push(T(n.x3.x)+" "+T(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=Lt.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+T(Lt.internal.getWidth(t)-2)+" "+T(Lt.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(T(r.x1.x)+" "+T(r.x1.y)+" m"),n.push(T(r.x2.x)+" "+T(r.x2.y)+" l"),n.push(T(r.x4.x)+" "+T(r.x4.y)+" m"),n.push(T(r.x3.x)+" "+T(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};Lt.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Lt.internal.getWidth(t),r=Lt.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},Lt.internal.getWidth=function(t){var r=0;return"object"===e(t)&&(r=H(t.Rect[2])),r},Lt.internal.getHeight=function(t){var r=0;return"object"===e(t)&&(r=H(t.Rect[3])),r};var At=E.addField=function(t){if(it(this,t),!(t instanceof ht))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};E.AcroFormChoiceField=lt,E.AcroFormListBox=ft,E.AcroFormComboBox=dt,E.AcroFormEditBox=pt,E.AcroFormButton=gt,E.AcroFormPushButton=mt,E.AcroFormRadioButton=vt,E.AcroFormCheckBox=yt,E.AcroFormTextField=wt,E.AcroFormPasswordField=Nt,E.AcroFormAppearance=Lt,E.AcroForm={ChoiceField:lt,ListBox:ft,ComboBox:dt,EditBox:pt,Button:gt,PushButton:mt,RadioButton:vt,CheckBox:yt,TextField:wt,PasswordField:Nt,Appearance:Lt},M.AcroForm={ChoiceField:lt,ListBox:ft,ComboBox:dt,EditBox:pt,Button:gt,PushButton:mt,RadioButton:vt,CheckBox:yt,TextField:wt,PasswordField:Nt,Appearance:Lt};var xt=M.AcroForm;function St(t){return t.reduce((function(t,e,r){return t[e]=r,t}),{})}!function(t){t.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,e){var i,a,o,s,c,u=r;if("RGBA"===(e=e||r)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(x(t))for(c in n)for(o=n[c],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t[a]){s=!1;break}if(!0===s){u=c;break}}else for(c in n)for(o=n[c],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t.charCodeAt(a)){s=!1;break}if(!0===s){u=c;break}}return u===r&&e!==r&&(u=e),u},a=function t(e){for(var r=this.internal.write,n=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===b.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===b.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var o="",s=0,c=e.transparency.length;s<c;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";a.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(n({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u,objectId:e.objectId}),r("endobj"),"sMask"in e&&void 0!==e.sMask){var h="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,l={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:h,data:e.sMask};"filter"in e&&(l.filter=e.filter),t.call(this,l)}if(e.colorSpace===b.INDEXED){var f=this.internal.newObject();n({data:_(new Uint8Array(e.palette)),objectId:f}),r("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)a.call(this,t[e])},s=function(){var t,e=this.internal.collections.addImage_images,r=this.internal.write;for(var n in e)r("/I"+(t=e[n]).index,t.objectId,"0","R")},u=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},h=function(){var t=this.internal.collections.addImage_images;return u.call(this),t},l=function(){return Object.keys(this.internal.collections.addImage_images).length},f=function(e){return"function"==typeof t["process"+e.toUpperCase()]},d=function(t){return"object"===e(t)&&1===t.nodeType},p=function(e,r){if("IMG"===e.nodeName&&e.hasAttribute("src")){var n=""+e.getAttribute("src");if(0===n.indexOf("data:image/"))return c(unescape(n).split("base64,").pop());var i=t.loadFile(n,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var a;switch(r){case"PNG":a="image/png";break;case"WEBP":a="image/webp";break;case"JPEG":case"JPG":default:a="image/jpeg"}return c(e.toDataURL(a,1).split("base64,").pop())}},g=function(t){var e=this.internal.collections.addImage_images;if(e)for(var r in e)if(t===e[r].alias)return e[r]},m=function(t,e,r){return t||e||(t=-96,e=-96),t<0&&(t=-1*r.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*r.height*72/e/this.internal.scaleFactor),0===t&&(t=e*r.width/r.height),0===e&&(e=t*r.height/r.width),[t,e]},v=function(t,e,r,n,i,a){var o=m.call(this,r,n,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=h.call(this);if(r=o[0],n=o[1],u[i.index]=i,a){a*=Math.PI/180;var l=Math.cos(a),f=Math.sin(a),d=function(t){return t.toFixed(4)},p=[d(l),d(f),d(-1*f),d(l),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,s(t),c(e+n),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(r),"0","0",s(n),"0","0","cm"].join(" "))):this.internal.write([s(r),"0","0",s(n),s(t),c(e+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},b=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=t.__addimage__.sHashCode=function(t){var e,r,n=0;if("string"==typeof t)for(r=t.length,e=0;e<r;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;else if(x(t))for(r=t.byteLength/2,e=0;e<r;e++)n=(n<<5)-n+t[e],n|=0;return n},N=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},L=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),r=null;if(2===e.length){var n=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(n)&&(r={mimeType:n[1],charset:n[2],data:e[1]})}return r},A=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return A()&&t instanceof ArrayBuffer};var x=t.__addimage__.isArrayBufferView=function(t){return A()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},S=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},_=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",r=x(t)?t:new Uint8Array(t),n=0;n<r.length;n+=8192)e+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return e};t.addImage=function(){var t,n,i,a,o,s,c,h,l;if("number"==typeof arguments[1]?(n=r,i=arguments[1],a=arguments[2],o=arguments[3],s=arguments[4],c=arguments[5],h=arguments[6],l=arguments[7]):(n=arguments[1],i=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],c=arguments[6],h=arguments[7],l=arguments[8]),"object"===e(t=arguments[0])&&!d(t)&&"imageData"in t){var f=t;t=f.imageData,n=f.format||n||r,i=f.x||i||0,a=f.y||a||0,o=f.w||f.width||o,s=f.h||f.height||s,c=f.alias||c,h=f.compression||h,l=f.rotation||f.angle||l}var p=this.internal.getFilters();if(void 0===h&&-1!==p.indexOf("FlateEncode")&&(h="SLOW"),isNaN(i)||isNaN(a))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var g=P.call(this,t,n,c,h);return v.call(this,i,a,o,s,g,l),this};var P=function(e,n,a,o){var s,c,u;if("string"==typeof e&&i(e)===r){e=unescape(e);var h=k(e,!1);(""!==h||void 0!==(h=t.loadFile(e,!0)))&&(e=h)}if(d(e)&&(e=p(e,n)),n=i(e,n),!f(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(u=a)||0===u.length)&&(a=function(t){return"string"==typeof t||x(t)?w(t):x(t.data)?w(t.data):null}(e)),(s=g.call(this,a))||(A()&&(e instanceof Uint8Array||"RGBA"===n||(c=e,e=S(e))),s=this["process"+n.toUpperCase()](e,l.call(this),a,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:y.NONE}(o),c)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},k=t.__addimage__.convertBase64ToBinaryString=function(t,e){var r;e="boolean"!=typeof e||e;var n,i="";if("string"==typeof t){n=null!==(r=L(t))?r.data:t;try{i=c(n)}catch(t){if(e)throw N(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(e){var n,a,o="";if(d(e)&&(e=p(e)),"string"==typeof e&&i(e)===r&&(""===(o=k(e,!1))&&(o=t.loadFile(e)||""),e=o),a=i(e),!f(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if(!A()||e instanceof Uint8Array||(e=S(e)),!(n=this["process"+a.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=a,n}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(t){if(void 0!==t&&""!=t)return!0};M.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var r,n,i,a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,u=!1,h=0;h<c.length&&!u;h++)switch((r=c[h]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(0!=u){this.internal.write("/Annots [");for(var l=0;l<c.length;l++){r=c[l];var f=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(p.objId),v=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+o(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y)+"] ")+"/Contents ("+f(m(r.contents))+")",i+=" /Popup "+g.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+f(m(v))+") >>",p.content=i;var b=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+o(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+o(r.bounds.y)+"] ")+" /Parent "+b,r.open&&(i+=" /Open true"),i+=" >>",g.content=i,this.internal.write(p.objId,"0 R",g.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+o(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y+r.bounds.h)+"] ";var y=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+f(d(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var w=this.annotations._nameMap[r.options.name];r.options.pageNumber=w.page,r.options.top=w.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+f(d(r.options.url))+") >>";else if(r.options.pageNumber){switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var N=o(r.options.top);r.options.left=r.options.left||0,void 0===r.options.zoom&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+N+" "+r.options.zoom+"]"}}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},t.link=function(t,e,r,n,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+r),h:s(e+n)},options:i,type:"link"})},t.textWithLink=function(t,e,r,n){var i=this.getTextWidth(t),a=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,r,n),r+=.2*a,"center"===n.align&&(e-=i/2),"right"===n.align&&(e-=i),this.link(e,r-a,i,a,n),i},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(M.API),
/**
   * @license
   * Copyright (c) 2017 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=3};var h=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&a(t)&&4==e[t.charCodeAt(0)].length},l=t.__arabicParser__.resolveLigatures=function(t){var e=0,n=r,i="",a=0;for(e=0;e<t.length;e+=1)void 0!==n[t.charCodeAt(e)]?(a++,"number"==typeof(n=n[t.charCodeAt(e)])&&(i+=String.fromCharCode(n),n=r,a=0),e===t.length-1&&(n=r,i+=t.charAt(e-(a-1)),e-=a-1,a=0)):(n=r,i+=t.charAt(e-a),e-=a,a=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==n[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,r){return o(t)?!1===a(t)?-1:!u(t)||!o(e)&&!o(r)||!o(r)&&s(e)||s(t)&&!o(e)||s(t)&&c(e)||s(t)&&s(e)?0:h(t)&&o(e)&&!s(e)&&o(r)&&u(r)?3:s(t)||!o(r)?1:2:-1},d=function(t){var r=0,n=0,i=0,a="",s="",c="",u=(t=t||"").split("\\s+"),h=[];for(r=0;r<u.length;r+=1){for(h.push(""),n=0;n<u[r].length;n+=1)a=u[r][n],s=u[r][n-1],c=u[r][n+1],o(a)?(i=f(a,s,c),h[r]+=-1!==i?String.fromCharCode(e[a.charCodeAt(0)][i]):a):h[r]+=a;h[r]=l(h[r])}return h.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(e)){var n=0;for(r=[],n=0;n<e.length;n+=1)Array.isArray(e[n])?r.push([d(e[n][0]),e[n][1],e[n][2]]):r.push([d(e[n])]);t=r}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(M.API),
/** @license
   * jsPDF Autoprint Plugin
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(t){n=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var r;if("2d"!==(t=t||"2d"))return null;for(r in e)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=e[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(M.API),function(t){var r={left:0,top:0,bottom:0,right:0},n=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},r),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(t){a=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var r=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),a=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,c=0,u=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var h=e.maxWidth;h>0?"string"==typeof t?t=this.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(u.splitTextToSize(e,h))}),[])):t=Array.isArray(t)?t:[t];for(var l=0;l<t.length;l++)o<(c=this.getStringUnitWidth(t[l],{font:n})*r)&&(o=c);return 0!==o&&(s=t.length),{w:o/=a,h:Math.max((s*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/a,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var t=this.internal.__cell__.margins||r;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var e=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||r,c=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==e.lineNumber&&(e.lineNumber===t.lineNumber?(t.x=(e.x||0)+(e.width||0),t.y=e.y||0):e.y+e.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&c&&(this.printHeaderRow(t.lineNumber,!0),t.y+=c[0].height)):t.y=e.y+e.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,u,h,l){if(i.call(this),!u)throw new Error("No data for PDF table.");var f,d,p,g,m=[],v=[],b=[],y={},w={},N=[],L=[],A=(l=l||{}).autoSize||!1,x=!1!==l.printHeaders,S=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,_=l.margins||Object.assign({width:this.getPageWidth()},r),P="number"==typeof l.padding?l.padding:3,k=l.headerBackgroundColor||"#c8c8c8",F=l.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=x,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=F,this.setFontSize(S),null==h)v=m=Object.keys(u[0]),b=m.map((function(){return"left"}));else if(Array.isArray(h)&&"object"===e(h[0]))for(m=h.map((function(t){return t.name})),v=h.map((function(t){return t.prompt||t.name||""})),b=h.map((function(t){return t.align||"left"})),f=0;f<h.length;f+=1)w[h[f].name]=h[f].width*(19.049976/25.4);else Array.isArray(h)&&"string"==typeof h[0]&&(v=m=h,b=m.map((function(){return"left"})));if(A||Array.isArray(h)&&"string"==typeof h[0])for(f=0;f<m.length;f+=1){for(y[g=m[f]]=u.map((function(t){return t[g]})),this.setFont(void 0,"bold"),N.push(this.getTextDimensions(v[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)N.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,N)+P+P,N=[]}if(x){var I={};for(f=0;f<m.length;f+=1)I[m[f]]={},I[m[f]].text=v[f],I[m[f]].align=b[f];var C=c.call(this,I,w);L=m.map((function(e){return new o(t,n,w[e],C,I[e].text,void 0,I[e].align)})),this.setTableHeaderRow(L),this.printHeaderRow(1,!1)}var j=h.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(f=0;f<u.length;f+=1){"rowStart"in l&&l.rowStart instanceof Function&&l.rowStart({row:f,data:u[f]},this);var O=c.call(this,u[f],w);for(p=0;p<m.length;p+=1){var B=u[f][m[p]];"cellStart"in l&&l.cellStart instanceof Function&&l.cellStart({row:f,col:p,data:B},this),s.call(this,new o(t,n,w[m[p]],O,B,f+2,j[m[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var c=function(t,e){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(n){var i=t[n];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[n]-r-r)}),this).map((function(t){return this.getLineHeightFactor()*t.length*n/i+r+r}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,c.push(r)),r.lineNumber=t;var h=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(h)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),n=!1}}(M.API);var _t={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Pt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],kt=St(Pt),Ft=[100,200,300,400,500,600,700,800,900],It=St(Ft);function Ct(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(t){return _t[t=t||"normal"]?t:"normal"}(t.style),n=function(t){if(!t)return 400;if("number"==typeof t)return t>=100&&t<=900&&t%100==0?t:400;if(/^\d00$/.test(t))return parseInt(t);switch(t){case"bold":return 700;case"normal":default:return 400}}(t.weight),i=function(t){return"number"==typeof kt[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:r,weight:n,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,r,n].join(" ")}}}function jt(t,e,r,n){var i;for(i=r;i>=0&&i<e.length;i+=n)if(t[e[i]])return t[e[i]];for(i=r;i>=0&&i<e.length;i-=n)if(t[e[i]])return t[e[i]]}var Ot={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Bt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Mt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Et(t,e,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},Ot,r.genericFontFamilies||{}),a=null,o=null,s=0;s<e.length;++s)if(i[(a=Ct(e[s])).family]&&(a.family=i[a.family]),t.hasOwnProperty(a.family)){o=t[a.family];break}if(!(o=o||t[n]))throw new Error("Could not find a font-family for the rule '"+Mt(a)+"' and default family '"+n+"'.");if(o=function(t,e){if(e[t])return e[t];var r=kt[t],n=r<=kt.normal?-1:1,i=jt(e,Pt,r,n);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(a.stretch,o),o=function(t,e){if(e[t])return e[t];for(var r=_t[t],n=0;n<r.length;++n)if(e[r[n]])return e[r[n]];throw new Error("Could not find a matching font-style for "+t)}(a.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var r=It[t],n=jt(e,Ft,r,t<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+t);return n}(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Mt(a)+"'.");return o}function qt(t){return t.trimLeft()}function Dt(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function Rt(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Tt=["times"];!function(t){var r,n,a,o,s,c,u,h,f,d=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new h,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new c,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new c,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),r=this.internal.f2,n=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,c=this.internal.Point,u=this.internal.Rectangle,h=this.internal.Matrix,f=new d}]);var p=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a},set:function(t){isNaN(t)||(a=t)}}),Object.defineProperty(this,"margin",{get:function(){return f.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),f.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"ctx",{get:function(){return f},set:function(t){t instanceof d&&(f=t)}}),Object.defineProperty(this,"path",{get:function(){return f.path},set:function(t){f.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=g(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=g(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var h=null;function l(t,e){if(null===h){var r=function(t){var e=[];return Object.keys(t).forEach((function(r){t[r].forEach((function(t){var n=null;switch(t){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:t},e.push(n))}))})),e}(t.getFontList());h=function(t){for(var e={},r=0;r<t.length;++r){var n=Ct(t[r]),i=n.family,a=n.stretch,o=n.style,s=n.weight;e[i]=e[i]||{},e[i][a]=e[i][a]||{},e[i][a][o]=e[i][a][o]||{},e[i][a][o][s]=n}return e}(r.concat(e))}return h}var p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(t){h=null,p=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var r=e[1],n=(e[2],e[3]),i=e[4],a=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,r,n=[],i=t.trim();if(""===i)return Tt;if(i in Bt)return[Bt[i]];for(;""!==i;){switch(r=null,e=(i=qt(i)).charAt(0)){case'"':case"'":r=Dt(i.substring(1),e);break;default:r=Rt(i)}if(null===r)return Tt;if(n.push(r[0]),""!==(i=qt(r[1]))&&","!==i.charAt(0))return Tt;i=i.replace(/^,/,"")}return n}(a);if(this.fontFaces){var c=Et(l(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:n,style:r}})));this.pdf.setFont(c.ref.name,c.ref.style)}else{var u="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(u="bold"),"italic"===r&&(u+="italic"),0===u.length&&(u="normal");for(var h="",f={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},d=0;d<s.length;d++){if(void 0!==this.pdf.internal.getFont(s[d],u,{noFallback:!0,disableWarning:!0})){h=s[d];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[d],"bold",{noFallback:!0,disableWarning:!0}))h=s[d],u="bold";else if(void 0!==this.pdf.internal.getFont(s[d],"normal",{noFallback:!0,disableWarning:!0})){h=s[d],u="normal";break}}if(""===h)for(var p=0;p<s.length;p++)if(f[s[p]]){h=f[s[p]];break}h=""===h?"Times":h,this.pdf.setFont(h,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,T.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,T.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};p.prototype.setLineDash=function(t){this.lineDash=t},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){A.call(this,"fill",!1)},p.prototype.stroke=function(){A.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new c(t,e)},p.prototype.closePath=function(){var t=new c(0,0),r=0;for(r=this.path.length-1;-1!==r;r--)if("begin"===this.path[r].type&&"object"===e(this.path[r+1])&&"number"==typeof this.path[r+1].x){t=new c(this.path[r+1].x,this.path[r+1].y),this.path.push({type:"lt",x:t.x,y:t.y});break}"object"===e(this.path[r+2])&&"number"==typeof this.path[r+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[r+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new c(t.x,t.y)},p.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new c(r.x,r.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},p.prototype.quadraticCurveTo=function(t,e,r,n){if(isNaN(r)||isNaN(n)||isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var a=this.ctx.transform.applyToPoint(new c(r,n)),o=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:a.x,y:a.y}),this.ctx.lastPoint=new c(a.x,a.y)},p.prototype.bezierCurveTo=function(t,e,r,n,a,o){if(isNaN(a)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new c(a,o)),u=this.ctx.transform.applyToPoint(new c(t,e)),h=this.ctx.transform.applyToPoint(new c(r,n));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:h.x,y2:h.y,x:s.x,y:s.y}),this.ctx.lastPoint=new c(s.x,s.y)},p.prototype.arc=function(t,e,r,n,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(a))throw i.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new c(t,e));t=s.x,e=s.y;var u=this.ctx.transform.applyToPoint(new c(0,r)),h=this.ctx.transform.applyToPoint(new c(0,0));r=Math.sqrt(Math.pow(u.x-h.x,2)+Math.pow(u.y-h.y,2))}Math.abs(a-n)>=2*Math.PI&&(n=0,a=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:r,startAngle:n,endAngle:a,counterclockwise:o})},p.prototype.arcTo=function(t,e,r,n,i){throw new Error("arcTo not implemented.")},p.prototype.rect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+n),this.lineTo(t,e+n),this.lineTo(t,e),this.lineTo(t+r,e),this.lineTo(t,e)},p.prototype.fillRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,r,n),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},p.prototype.strokeRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(t,e,r,n),this.stroke())},p.prototype.clearRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,r,n))},p.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},p.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(t){var e,r,n,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,r=0,n=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==a)e=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=1;else if(null!==(a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new l(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,r=t.substring(2,3),r+=r,n=t.substring(3,4),n+=n):(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7)),e=parseInt(e,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:e,g:r,b:n,a:i,style:t}},m=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw i.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!m.call(this)){var a=q(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:t,x:e,y:r,scale:o,angle:a,align:this.textAlign,maxWidth:n})}},p.prototype.strokeText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw i.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){n=isNaN(n)?void 0:n;var a=q(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:t,x:e,y:r,scale:o,renderingMode:"stroke",angle:a,align:this.textAlign,maxWidth:n})}},p.prototype.measureText=function(t){if("string"!=typeof t)throw i.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,r=this.pdf.internal.scaleFactor,n=e.internal.getFontSize(),a=e.getStringUnitWidth(t)*n/e.internal.scaleFactor,o=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new o({width:a*=Math.round(96*r/72*1e4)/1e4})},p.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new h(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.rotate=function(t){if(isNaN(t))throw i.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new h(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},p.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new h(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.transform=function(t,e,r,n,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(o))throw i.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new h(t,e,r,n,a,o);this.ctx.transform=this.ctx.transform.multiply(s)},p.prototype.setTransform=function(t,e,r,n,i,a){t=isNaN(t)?1:t,e=isNaN(e)?0:e,r=isNaN(r)?0:r,n=isNaN(n)?1:n,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new h(t,e,r,n,i,a)};var b=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(t,e,r,n,i,a,o,s,c){var l=this.pdf.getImageProperties(t),f=1,d=1,p=1,g=1;void 0!==n&&void 0!==s&&(p=s/n,g=c/i,f=l.width/n*s/n,d=l.height/i*c/i),void 0===a&&(a=e,o=r,e=0,r=0),void 0!==n&&void 0===s&&(s=n,c=i),void 0===n&&void 0===s&&(s=l.width,c=l.height);for(var m,v=this.ctx.transform.decompose(),w=q(v.rotate.shx),A=new h,S=(A=(A=(A=A.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new u(a-e*p,o-r*g,n*f,i*d)),_=y.call(this,S),P=[],k=0;k<_.length;k+=1)-1===P.indexOf(_[k])&&P.push(_[k]);if(L(P),this.autoPaging)for(var F=P[0],I=P[P.length-1],C=F;C<I+1;C++){this.pdf.setPage(C);var j=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],O=1===C?this.posY+this.margin[0]:this.margin[0],B=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],M=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],E=1===C?0:B+(C-2)*M;if(0!==this.ctx.clip_path.length){var D=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(m,this.posX+this.margin[3],-E+O+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=D}var R=JSON.parse(JSON.stringify(S));R=N([R],this.posX+this.margin[3],-E+O+this.ctx.prevPageLastElemOffset)[0];var T=(C>F||C<I)&&b.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],j,M,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",R.x,R.y,R.w,R.h,null,null,w),T&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,w)};var y=function(t,e,r){var n=[];e=e||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":n.push(Math.floor((t.y+i)/r)+1);break;case"arc":n.push(Math.floor((t.y+i-t.radius)/r)+1),n.push(Math.floor((t.y+i+t.radius)/r)+1);break;case"qct":var a=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);n.push(Math.floor((a.y+i)/r)+1),n.push(Math.floor((a.y+a.h+i)/r)+1);break;case"bct":var o=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);n.push(Math.floor((o.y+i)/r)+1),n.push(Math.floor((o.y+o.h+i)/r)+1);break;case"rect":n.push(Math.floor((t.y+i)/r)+1),n.push(Math.floor((t.y+t.h+i)/r)+1)}for(var s=0;s<n.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<n[s];)w.call(this);return n},w=function(){var t=this.fillStyle,e=this.strokeStyle,r=this.font,n=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=r,this.lineCap=n,this.lineWidth=i,this.lineJoin=a},N=function(t,e,r){for(var n=0;n<t.length;n++)switch(t[n].type){case"bct":t[n].x2+=e,t[n].y2+=r;case"qct":t[n].x1+=e,t[n].y1+=r;case"mt":case"lt":case"arc":default:t[n].x+=e,t[n].y+=r}return t},L=function(t){return t.sort((function(t,e){return t-e}))},A=function(t,e){for(var r,n,i=this.fillStyle,a=this.strokeStyle,o=this.lineCap,s=this.lineWidth,c=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,h=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<l.length;d++)if(void 0!==l[d].x)for(var p=y.call(this,l[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var m=0;m<f.length;m++)for(;this.pdf.internal.getNumberOfPages()<f[m];)w.call(this);if(L(f),this.autoPaging)for(var v=f[0],A=f[f.length-1],S=v;S<A+1;S++){this.pdf.setPage(S),this.fillStyle=i,this.strokeStyle=a,this.lineCap=o,this.lineWidth=c,this.lineJoin=u;var _=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===S?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],I=1===S?0:k+(S-2)*F;if(0!==this.ctx.clip_path.length){var C=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(r,this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset),x.call(this,t,!0),this.path=C}if(n=JSON.parse(JSON.stringify(h)),this.path=N(n,this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset),!1===e||0===S){var j=(S>v||S<A)&&b.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_,F,null).clip().discardPath()),x.call(this,t,e),j&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=c,x.call(this,t,e),this.lineWidth=s;this.path=h},x=function(t,e){if(("stroke"!==t||e||!v.call(this))&&("stroke"===t||e||!m.call(this))){for(var r,n,i=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var c=i.length;if(!isNaN(a[o-1].x)&&(r=[s.x-a[o-1].x,s.y-a[o-1].y],c>0))for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(r),i[c-1].abs.push(s);break}break;case"bct":r=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(r);break;case"qct":var u=a[o-1].x+2/3*(s.x1-a[o-1].x),h=a[o-1].y+2/3*(s.y1-a[o-1].y),l=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,p=s.y;r=[u-a[o-1].x,h-a[o-1].y,l-a[o-1].x,f-a[o-1].y,d-a[o-1].x,p-a[o-1].y],i[i.length-1].deltas.push(r);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}n=e?null:"stroke"===t?"stroke":"fill";for(var g=0;g<i.length;g++){if(i[g].arc){for(var b=i[g].abs,y=0;y<b.length;y++){var w=b[y];"arc"===w.type?P.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e):j.call(this,w.x,w.y)}k.call(this,n),this.pdf.internal.out("h")}if(!i[g].arc&&!0!==i[g].close&&!0!==i[g].begin){var N=i[g].start.x,L=i[g].start.y;O.call(this,i[g].deltas,N,L)}}n&&k.call(this,n),e&&F.call(this)}},S=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-r;case"top":return t+e-r;case"hanging":return t+e-2*r;case"middle":return t+e/2-r;case"ideographic":return t;case"alphabetic":default:return t}},_=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(t,e,r,n,i,a,o,s){for(var c=M.call(this,r,n,i,a),u=0;u<c.length;u++){var h=c[u];0===u&&I.call(this,h.x1+t,h.y1+e),B.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?F.call(this):k.call(this,o)},k=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},F=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(t,e){this.pdf.internal.out(n(t)+" "+a(e)+" m")},C=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var r=this.pdf.getTextDimensions(t.text),n=S.call(this,t.y),i=_.call(this,n)-r.h,a=this.ctx.transform.applyToPoint(new c(t.x,n)),o=this.ctx.transform.decompose(),s=new h;s=(s=(s=s.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var l,f,d,p=this.ctx.transform.applyToRectangle(new u(t.x,n,r.w,r.h)),g=s.applyToRectangle(new u(t.x,i,r.w,r.h)),m=y.call(this,g),v=[],w=0;w<m.length;w+=1)-1===v.indexOf(m[w])&&v.push(m[w]);if(L(v),this.autoPaging)for(var A=v[0],P=v[v.length-1],k=A;k<P+1;k++){this.pdf.setPage(k);var F=1===k?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],C=this.pdf.internal.pageSize.height-this.margin[2],j=C-this.margin[0],O=this.pdf.internal.pageSize.width-this.margin[1],B=O-this.margin[3],M=1===k?0:I+(k-2)*j;if(0!==this.ctx.clip_path.length){var E=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(l,this.posX+this.margin[3],-1*M+F),x.call(this,"fill",!0),this.path=E}var q=N([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-M+F+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var D="text"!==this.autoPaging;if(D||q.y+q.h<=C){if(D||q.y>=F&&q.x<=O){var R=D?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||O-q.x)[0],T=N([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-M+F+this.ctx.prevPageLastElemOffset)[0],U=D&&(k>A||k<P)&&b.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],B,j,null).clip().discardPath()),this.pdf.text(R,T.x,T.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),U&&this.pdf.restoreGraphicsState()}}else q.y<C&&(this.ctx.prevPageLastElemOffset+=C-q.y);t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,a.x+this.posX,a.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},j=function(t,e,r,i){r=r||0,i=i||0,this.pdf.internal.out(n(t+r)+" "+a(e+i)+" l")},O=function(t,e,r){return this.pdf.lines(t,e,r,null,null)},B=function(t,e,n,i,a,c,u,h){this.pdf.internal.out([r(o(n+t)),r(s(i+e)),r(o(a+t)),r(s(c+e)),r(o(u+t)),r(s(h+e)),"c"].join(" "))},M=function(t,e,r,n){for(var i=2*Math.PI,a=Math.PI/2;e>r;)e-=i;var o=Math.abs(r-e);o<i&&n&&(o=i-o);for(var s=[],c=n?-1:1,u=e;o>1e-5;){var h=u+c*Math.min(o,a);s.push(E.call(this,t,u,h)),o-=Math.abs(h-u),u=h}return s},E=function(t,e,r){var n=(r-e)/2,i=t*Math.cos(n),a=t*Math.sin(n),o=i,s=-a,c=o*o+s*s,u=c+o*i+s*a,h=4/3*(Math.sqrt(2*c*u)-u)/(o*a-s*i),l=o-h*s,f=s+h*o,d=l,p=-f,g=n+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:l*m-f*v,y2:l*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(r),y4:t*Math.sin(r)}},q=function(t){return 180*t/Math.PI},D=function(t,e,r,n,i,a){var o=t+.5*(r-t),s=e+.5*(n-e),c=i+.5*(r-i),h=a+.5*(n-a),l=Math.min(t,i,o,c),f=Math.max(t,i,o,c),d=Math.min(e,a,s,h),p=Math.max(e,a,s,h);return new u(l,d,f-l,p-d)},R=function(t,e,r,n,i,a,o,s){var c,h,l,f,d,p,g,m,v,b,y,w,N,L,A=r-t,x=n-e,S=i-r,_=a-n,P=o-i,k=s-a;for(h=0;h<41;h++)v=(g=(l=t+(c=h/40)*A)+c*((d=r+c*S)-l))+c*(d+c*(i+c*P-d)-g),b=(m=(f=e+c*x)+c*((p=n+c*_)-f))+c*(p+c*(a+c*k-p)-m),0==h?(y=v,w=b,N=v,L=b):(y=Math.min(y,v),w=Math.min(w,b),N=Math.max(N,v),L=Math.max(L,b));return new u(Math.round(y),Math.round(w),Math.round(N-y),Math.round(L-w))},T=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,r=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(M.API);var Ut=Uint8Array,zt=Uint16Array,Ht=Uint32Array,Wt=new Ut([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Vt=new Ut([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gt=new Ut([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Yt=function(t,e){for(var r=new zt(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];var i=new Ht(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},Jt=Yt(Wt,2),Xt=Jt[0],Kt=Jt[1];Xt[28]=258,Kt[258]=28;for(var Zt=Yt(Vt,0),$t=Zt[0],Qt=Zt[1],te=new zt(32768),ee=0;ee<32768;++ee){var re=(43690&ee)>>>1|(21845&ee)<<1;re=(61680&(re=(52428&re)>>>2|(13107&re)<<2))>>>4|(3855&re)<<4,te[ee]=((65280&re)>>>8|(255&re)<<8)>>>1}var ne=function(t,e,r){for(var n=t.length,i=0,a=new zt(e);i<n;++i)++a[t[i]-1];var o,s=new zt(e);for(i=0;i<e;++i)s[i]=s[i-1]+a[i-1]<<1;if(r){o=new zt(1<<e);var c=15-e;for(i=0;i<n;++i)if(t[i])for(var u=i<<4|t[i],h=e-t[i],l=s[t[i]-1]++<<h,f=l|(1<<h)-1;l<=f;++l)o[te[l]>>>c]=u}else for(o=new zt(n),i=0;i<n;++i)o[i]=te[s[t[i]-1]++]>>>15-t[i];return o},ie=new Ut(288);for(ee=0;ee<144;++ee)ie[ee]=8;for(ee=144;ee<256;++ee)ie[ee]=9;for(ee=256;ee<280;++ee)ie[ee]=7;for(ee=280;ee<288;++ee)ie[ee]=8;var ae=new Ut(32);for(ee=0;ee<32;++ee)ae[ee]=5;var oe=ne(ie,9,0),se=ne(ie,9,1),ce=ne(ae,5,0),ue=ne(ae,5,1),he=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},le=function(t,e,r){var n=e/8>>0;return(t[n]|t[n+1]<<8)>>>(7&e)&r},fe=function(t,e){var r=e/8>>0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&e)},de=function(t){return(t/8>>0)+(7&t&&1)},pe=function(t,e,r){(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length);var n=new(t instanceof zt?zt:t instanceof Ht?Ht:Ut)(r-e);return n.set(t.subarray(e,r)),n},ge=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8},me=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8,t[n+2]|=r>>>16},ve=function(t,e){for(var r=[],n=0;n<t.length;++n)t[n]&&r.push({s:n,f:t[n]});var i=r.length,a=r.slice();if(!i)return[new Ut(0),0];if(1==i){var o=new Ut(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort((function(t,e){return t.f-e.f})),r.push({s:-1,f:25001});var s=r[0],c=r[1],u=0,h=1,l=2;for(r[0]={s:-1,f:s.f+c.f,l:s,r:c};h!=i-1;)s=r[r[u].f<r[l].f?u++:l++],c=r[u!=h&&r[u].f<r[l].f?u++:l++],r[h++]={s:-1,f:s.f+c.f,l:s,r:c};var f=a[0].s;for(n=1;n<i;++n)a[n].s>f&&(f=a[n].s);var d=new zt(f+1),p=be(r[h-1],d,0);if(p>e){n=0;var g=0,m=p-e,v=1<<m;for(a.sort((function(t,e){return d[e.s]-d[t.s]||t.f-e.f}));n<i;++n){var b=a[n].s;if(!(d[b]>e))break;g+=v-(1<<p-d[b]),d[b]=e}for(g>>>=m;g>0;){var y=a[n].s;d[y]<e?g-=1<<e-d[y]++-1:++n}for(;n>=0&&g;--n){var w=a[n].s;d[w]==e&&(--d[w],++g)}p=e}return[new Ut(d),p]},be=function(t,e,r){return-1==t.s?Math.max(be(t.l,e,r+1),be(t.r,e,r+1)):e[t.s]=r},ye=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new zt(++e),n=0,i=t[0],a=1,o=function(t){r[n++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=t[s]}return[r.subarray(0,n),e]},we=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},Ne=function(t,e,r){var n=r.length,i=de(e+2);t[i]=255&n,t[i+1]=n>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<n;++a)t[i+a+4]=r[a];return 8*(i+4+n)},Le=function(t,e,r,n,i,a,o,s,c,u,h){ge(e,h++,r),++i[256];for(var l=ve(i,15),f=l[0],d=l[1],p=ve(a,15),g=p[0],m=p[1],v=ye(f),b=v[0],y=v[1],w=ye(g),N=w[0],L=w[1],A=new zt(19),x=0;x<b.length;++x)A[31&b[x]]++;for(x=0;x<N.length;++x)A[31&N[x]]++;for(var S=ve(A,7),_=S[0],P=S[1],k=19;k>4&&!_[Gt[k-1]];--k);var F,I,C,j,O=u+5<<3,B=we(i,ie)+we(a,ae)+o,M=we(i,f)+we(a,g)+o+14+3*k+we(A,_)+(2*A[16]+3*A[17]+7*A[18]);if(O<=B&&O<=M)return Ne(e,h,t.subarray(c,c+u));if(ge(e,h,1+(M<B)),h+=2,M<B){F=ne(f,d,0),I=f,C=ne(g,m,0),j=g;var E=ne(_,P,0);ge(e,h,y-257),ge(e,h+5,L-1),ge(e,h+10,k-4),h+=14;for(x=0;x<k;++x)ge(e,h+3*x,_[Gt[x]]);h+=3*k;for(var q=[b,N],D=0;D<2;++D){var R=q[D];for(x=0;x<R.length;++x){var T=31&R[x];ge(e,h,E[T]),h+=_[T],T>15&&(ge(e,h,R[x]>>>5&127),h+=R[x]>>>12)}}}else F=oe,I=ie,C=ce,j=ae;for(x=0;x<s;++x)if(n[x]>255){T=n[x]>>>18&31;me(e,h,F[T+257]),h+=I[T+257],T>7&&(ge(e,h,n[x]>>>23&31),h+=Wt[T]);var U=31&n[x];me(e,h,C[U]),h+=j[U],U>3&&(me(e,h,n[x]>>>5&8191),h+=Vt[U])}else me(e,h,F[n[x]]),h+=I[n[x]];return me(e,h,F[256]),h+I[256]},Ae=new Ht([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xe=new Ut(0),Se=function(t,e,r,n,i){return function(t,e,r,n,i,a){var o=t.length,s=new Ut(n+o+5*(1+Math.floor(o/7e3))+i),c=s.subarray(n,s.length-i),u=0;if(!e||o<8)for(var h=0;h<=o;h+=65535){var l=h+65535;l<o?u=Ne(c,u,t.subarray(h,l)):(c[h]=a,u=Ne(c,u,t.subarray(h,o)))}else{for(var f=Ae[e-1],d=f>>>13,p=8191&f,g=(1<<r)-1,m=new zt(32768),v=new zt(g+1),b=Math.ceil(r/3),y=2*b,w=function(e){return(t[e]^t[e+1]<<b^t[e+2]<<y)&g},N=new Ht(25e3),L=new zt(288),A=new zt(32),x=0,S=0,_=(h=0,0),P=0,k=0;h<o;++h){var F=w(h),I=32767&h,C=v[F];if(m[I]=C,v[F]=I,P<=h){var j=o-h;if((x>7e3||_>24576)&&j>423){u=Le(t,c,0,N,L,A,S,_,k,h-k,u),_=x=S=0,k=h;for(var O=0;O<286;++O)L[O]=0;for(O=0;O<30;++O)A[O]=0}var B=2,M=0,E=p,q=I-C&32767;if(j>2&&F==w(h-q))for(var D=Math.min(d,j)-1,R=Math.min(32767,h),T=Math.min(258,j);q<=R&&--E&&I!=C;){if(t[h+B]==t[h+B-q]){for(var U=0;U<T&&t[h+U]==t[h+U-q];++U);if(U>B){if(B=U,M=q,U>D)break;var z=Math.min(q,U-2),H=0;for(O=0;O<z;++O){var W=h-q+O+32768&32767,V=W-m[W]+32768&32767;V>H&&(H=V,C=W)}}}q+=(I=C)-(C=m[I])+32768&32767}if(M){N[_++]=268435456|Kt[B]<<18|Qt[M];var G=31&Kt[B],Y=31&Qt[M];S+=Wt[G]+Vt[Y],++L[257+G],++A[Y],P=h+B,++x}else N[_++]=t[h],++L[t[h]]}}u=Le(t,c,a,N,L,A,S,_,k,h-k,u),a||(u=Ne(c,u,xe))}return pe(s,0,n+de(u)+i)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,n,!i)};function _e(t,e){void 0===e&&(e={});var r=function(){var t=1,e=0;return{p:function(r){for(var n=t,i=e,a=r.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)i+=n+=r[o];n%=65521,i%=65521}t=n,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}}();r.p(t);var n=Se(t,e,2,4);return function(t,e){var r=e.level,n=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=n<<6|(n?32-2*n:1)}(n,e),function(t,e,r){for(;r;++e)t[e]=r,r>>>=8}(n,n.length-4,r.d()),n}function Pe(t,e){return function(t,e,r){var n=t.length,i=!e||r,a=!r||r.i;r||(r={}),e||(e=new Ut(3*n));var o=function(t){var r=e.length;if(t>r){var n=new Ut(Math.max(2*r,t));n.set(e),e=n}},s=r.f||0,c=r.p||0,u=r.b||0,h=r.l,l=r.d,f=r.m,d=r.n,p=8*n;do{if(!h){r.f=s=le(t,c,1);var g=le(t,c+1,3);if(c+=3,!g){var m=t[(P=de(c)+4)-4]|t[P-3]<<8,v=P+m;if(v>n){if(a)throw"unexpected EOF";break}i&&o(u+m),e.set(t.subarray(P,v),u),r.b=u+=m,r.p=c=8*v;continue}if(1==g)h=se,l=ue,f=9,d=5;else{if(2!=g)throw"invalid block type";var b=le(t,c,31)+257,y=le(t,c+10,15)+4,w=b+le(t,c+5,31)+1;c+=14;for(var N=new Ut(w),L=new Ut(19),A=0;A<y;++A)L[Gt[A]]=le(t,c+3*A,7);c+=3*y;var x=he(L),S=(1<<x)-1;if(!a&&c+w*(x+7)>p)break;var _=ne(L,x,1);for(A=0;A<w;){var P,k=_[le(t,c,S)];if(c+=15&k,(P=k>>>4)<16)N[A++]=P;else{var F=0,I=0;for(16==P?(I=3+le(t,c,3),c+=2,F=N[A-1]):17==P?(I=3+le(t,c,7),c+=3):18==P&&(I=11+le(t,c,127),c+=7);I--;)N[A++]=F}}var C=N.subarray(0,b),j=N.subarray(b);f=he(C),d=he(j),h=ne(C,f,1),l=ne(j,d,1)}if(c>p)throw"unexpected EOF"}i&&o(u+131072);for(var O=(1<<f)-1,B=(1<<d)-1,M=f+d+18;a||c+M<p;){var E=(F=h[fe(t,c)&O])>>>4;if((c+=15&F)>p)throw"unexpected EOF";if(!F)throw"invalid length/literal";if(E<256)e[u++]=E;else{if(256==E){h=null;break}var q=E-254;if(E>264){var D=Wt[A=E-257];q=le(t,c,(1<<D)-1)+Xt[A],c+=D}var R=l[fe(t,c)&B],T=R>>>4;if(!R)throw"invalid distance";c+=15&R;j=$t[T];if(T>3){D=Vt[T];j+=fe(t,c)&(1<<D)-1,c+=D}if(c>p)throw"unexpected EOF";i&&o(u+131072);for(var U=u+q;u<U;u+=4)e[u]=e[u-j],e[u+1]=e[u+1-j],e[u+2]=e[u+2-j],e[u+3]=e[u+3-j];u=U}}r.l=h,r.p=c,r.b=u,h&&(s=1,r.m=f,r.d=l,r.n=d)}while(!s);return u==e.length?e:pe(e,0,u)}((function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"}(t),t.subarray(2,-4)),e)}
/**
   * @license
   * jsPDF filters PlugIn
   * Copyright (c) 2014 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */!function(t){var e=function(t){var e,r,n,i,a,o,s,c,u,h;for(/[^\x00-\xFF]/.test(t),r=[],n=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>n;n+=4)0!==(a=(t.charCodeAt(n)<<24)+(t.charCodeAt(n+1)<<16)+(t.charCodeAt(n+2)<<8)+t.charCodeAt(n+3))?(o=(a=((a=((a=((a=(a-(h=a%85))/85)-(u=a%85))/85)-(c=a%85))/85)-(s=a%85))/85)%85,r.push(o+33,s+33,c+33,u+33,h+33)):r.push(122);return function(t,e){for(var r=e;r>0;r--)t.pop()}(r,e.length),String.fromCharCode.apply(String,r)+"~>"},r=function(t){var e,r,n,i,a,o=String,s="length",c=255,u="charCodeAt",h="slice",l="replace";for(t[h](-2),t=t[h](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),n=[],i=0,a=(t+=e="uuuuu"[h](t[s]%5||5))[s];a>i;i+=5)r=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),n.push(c&r>>24,c&r>>16,c&r>>8,c&r);return function(t,e){for(var r=e;r>0;r--)t.pop()}(n,e[s]),o.fromCharCode.apply(o,n)},n=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var r="",n=0;n<t.length;n+=2)r+=String.fromCharCode("0x"+(t[n]+t[n+1]));return r},i=function(t){for(var e=new Uint8Array(t.length),r=t.length;r--;)e[r]=t.charCodeAt(r);return t=(e=_e(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,a){var o=0,s=t||"",c=[];for("string"==typeof(a=a||[])&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":s=r(s),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=n(s),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:s,reverseChain:c.reverse().join(" ")}}}(M.API),
/**
   * @license
   * jsPDF fileloading PlugIn
   * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.loadFile=function(t,e,r){return function(t,e,r){e=!1!==e,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(t,e,r){var n=new XMLHttpRequest,i=0,a=function(t){var e=t.length,r=[],n=String.fromCharCode;for(i=0;i<e;i+=1)r.push(n(255&t.charCodeAt(i)));return r.join("")};if(n.open("GET",t,!e),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(n.onload=function(){200===n.status?r(a(this.responseText)):r(void 0)}),n.send(null),e&&200===n.status)return a(n.responseText)}(t,e,r)}catch(t){}return n}(t,e,r)},t.loadImageFile=t.loadFile}(M.API),function(n){function i(){return(r.html2canvasV1?Promise.resolve(r.html2canvasV1):Promise.reject(new Error("Could not load html2canvas"))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function a(){return(r.DOMPurify?Promise.resolve(r.DOMPurify):Promise.reject(new Error("Could not load dompurify"))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var o=function(t){var r=e(t);return"undefined"===r?"undefined":"string"===r||t instanceof String?"string":"number"===r||t instanceof Number?"number":"function"===r||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===r?"object":"unknown"},s=function(t,e){var r=document.createElement(t);for(var n in e.className&&(r.className=e.className),e.innerHTML&&e.dompurify&&(r.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)r.style[n]=e.style[n];return r},c=function t(e){var r=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),n=t.convert(Promise.resolve(),r);return n=(n=n.setProgress(1,t,1,[t])).set(e)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(t,e){return t.__proto__=e||c.prototype,t},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(o(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(a).then((function(e){return this.set({src:s("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},c.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=function t(e,r){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==r&&1===i.nodeType&&"SCRIPT"===i.nodeName||n.appendChild(t(i,r));return 1===e.nodeType&&("CANVAS"===e.nodeName?(n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(n.value=e.value),n.addEventListener("load",(function(){n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft}),!0)),n}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},c.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(i).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},c.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(i).then((function(t){var e=this.opt.jsPDF,r=this.opt.fontFaces,n="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:n,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=r,r)for(var a=0;a<r.length;++a){var o=r[a],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,t(this.prop.container,i)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},c.prototype.output=function(t,e,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},c.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},c.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},c.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},c.prototype.set=function(t){if("object"!==o(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in c.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},c.prototype.get=function(t,e){return this.then((function(){var r=t in c.template.prop?this.prop[t]:this.opt[t];return e?e(r):r}))},c.prototype.setMargin=function(t){return this.then((function(){switch(o(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},c.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||M.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},c.prototype.setProgress=function(t,e,r,n){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(t,e,r,n){return this.setProgress(t?this.progress.val+t:null,e||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},c.prototype.then=function(t,e){var r=this;return this.thenCore(t,e,(function(t,e){return r.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return r.updateProgress(null,t),e})).then(t,e).then((function(t){return r.updateProgress(1),t}))}))},c.prototype.thenCore=function(t,e,r){r=r||Promise.prototype.then;t&&(t=t.bind(this)),e&&(e=e.bind(this));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:c.convert(Object.assign({},this),Promise.prototype),i=r.call(n,t,e);return c.convert(i,this.__proto__)},c.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},c.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},c.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return c.convert(e,this)},c.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},c.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,M.getPageSize=function(t,r,n){if("object"===e(t)){var i=t;t=i.orientation,r=i.unit||r,n=i.format||n}r=r||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var a,o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(r){case"pt":a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+r}var c,u=0,h=0;if(s.hasOwnProperty(o))u=s[o][1]/a,h=s[o][0]/a;else try{u=n[1],h=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",h>u&&(c=h,h=u,u=c);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>h&&(c=h,h=u,u=c)}return{width:h,height:u,unit:r,k:a,orientation:t}},n.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Ct):null;var r=new c(e);return e.worker?r:r.from(t).doCallback()}}(M.API),
/**
   * @license
   * ====================================================================
   * Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){var e,r,n;t.addJS=function(t){return n=t,this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==e&&void 0!==r&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")})),this}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e;t.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],o=r.exec(a);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var h=t.internal.newObject();u.push(h);var l=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();t.internal.write("<< /Names [ ");for(i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,r){var n={title:e,options:r,children:[]};return null==t&&(t=this.root),t.children.push(n),n},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var r=0;r<e.children.length;r++)this.genIds_r(e.children[r])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<e.children.length;n++){var i=e.children[n];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),n>0&&this.line("/Prev "+this.makeRef(e.children[n-1])),n<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[n+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line("/Count "+a),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var r=0;r<e.children.length;r++)t.count++,this.count_r(t,e.children[r]);return t.count}}])}(M.API),
/**
   * @license
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,r,n,i,a,o){var s,c=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var r,n=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,a={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=n,-1!==e.indexOf(t.charCodeAt(o+1))){r=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),a={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:r,numcomponents:t.charCodeAt(o+9)};break}n=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return a}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}u={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:c,index:r,alias:n}}return u}}(M.API);var ke,Fe,Ie,Ce,je,Oe=function(){var t,e,n;function i(t){var e,r,n,i,a,o,s,c,u,h,l,f,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},a=this.readUInt16(),i=this.readUInt16()||100,o.delay=1e3*a/i,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if((h=n-this.transparency.indexed.length)>0)for(d=0;0<=h?d<h:d>h;0<=h?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(l=this.read(e)).indexOf(0),c=String.fromCharCode.apply(String,l.slice(0,s)),this.text[c]=String.fromCharCode.apply(String,l.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)r.push(this.data[this.pos++]);return r},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*e),n=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function a(a,o,s,c){var u,h,l,f,d,p,g,m,v,b,y,w,N,L,A,x,S,_,P,k,F,I=Math.ceil((i.width-a)/s),C=Math.ceil((i.height-o)/c),j=i.width==I&&i.height==C;for(L=e*I,w=j?r:new Uint8Array(L*C),p=t.length,N=0,h=0;N<C&&n<p;){switch(t[n++]){case 0:for(f=S=0;S<L;f=S+=1)w[h++]=t[n++];break;case 1:for(f=_=0;_<L;f=_+=1)u=t[n++],d=f<e?0:w[h-e],w[h++]=(u+d)%256;break;case 2:for(f=P=0;P<L;f=P+=1)u=t[n++],l=(f-f%e)/e,A=N&&w[(N-1)*L+l*e+f%e],w[h++]=(A+u)%256;break;case 3:for(f=k=0;k<L;f=k+=1)u=t[n++],l=(f-f%e)/e,d=f<e?0:w[h-e],A=N&&w[(N-1)*L+l*e+f%e],w[h++]=(u+Math.floor((d+A)/2))%256;break;case 4:for(f=F=0;F<L;f=F+=1)u=t[n++],l=(f-f%e)/e,d=f<e?0:w[h-e],0===N?A=x=0:(A=w[(N-1)*L+l*e+f%e],x=l&&w[(N-1)*L+(l-1)*e+f%e]),g=d+A-x,m=Math.abs(g-d),b=Math.abs(g-A),y=Math.abs(g-x),v=m<=b&&m<=y?d:b<=y?A:x,w[h++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[n-1])}if(!j){var O=((o+N*c)*i.width+a)*e,B=N*L;for(f=0;f<I;f+=1){for(var M=0;M<e;M+=1)r[O++]=w[B++];O+=(s-1)*e}}N++}}return t=Pe(t),1==i.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),r},i.prototype.decodePalette=function(){var t,e,r,n,i,a,o,s,c;for(r=this.palette,a=this.transparency.indexed||[],i=new Uint8Array((a.length||0)+r.length),n=0,t=0,e=o=0,s=r.length;o<s;e=o+=3)i[n++]=r[e],i[n++]=r[e+1],i[n++]=r[e+2],i[n++]=null!=(c=a[t++])?c:255;return i},i.prototype.copyToImageData=function(t,e){var r,n,i,a,o,s,c,u,h,l,f;if(n=this.colors,h=null,r=this.hasAlphaChannel,this.palette.length&&(h=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),n=4,r=!0),u=(i=t.data||t).length,o=h||e,a=s=0,1===n)for(;a<u;)c=h?4*e[a/4]:s,l=o[c++],i[a++]=l,i[a++]=l,i[a++]=l,i[a++]=r?o[c++]:255,s=c;else for(;a<u;)c=h?4*e[a/4]:s,i[a++]=o[c++],i[a++]=o[c++],i[a++]=o[c++],i[a++]=r?o[c++]:255,s=c},i.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var a=function(){if("[object Window]"===Object.prototype.toString.call(r)){try{e=r.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return a(),t=function(t){var r;if(!0===a())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(e){var r,n,i,a,o,s,c,u;if(this.animation){for(u=[],n=o=0,s=(c=this.animation.frames).length;o<s;n=++o)r=c[n],i=e.createImageData(r.width,r.height),a=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(i,a),r.imageData=i,u.push(r.image=t(i));return u}},i.prototype.renderFrame=function(t,e){var r,n,i;return r=(n=this.animation.frames)[e],i=n[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===r.blendOp&&t.clearRect(r.xOffset,r.yOffset,r.width,r.height),t.drawImage(r.image,r.xOffset,r.yOffset)},i.prototype.animate=function(t){var e,r,n,i,a,o,s=this;return r=0,o=this.animation,i=o.numFrames,n=o.frames,a=o.numPlays,(e=function(){var o,c;if(o=r++%i,c=n[o],s.renderFrame(t,o),i>1&&r/i<a)return s.animation._timeout=setTimeout(e,c.delay)})()},i.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},i.prototype.render=function(t){var e,r;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(r=e.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),e.putImageData(r,0,0))},i}();
/**
   * @license
   *
   * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
/**
   * @license
   * (c) Dean McNamee <dean@gmail.com>, 2013.
   *
   * https://github.com/deanm/omggif
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to
   * deal in the Software without restriction, including without limitation the
   * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   * sell copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
   * IN THE SOFTWARE.
   *
   * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
   * including animation and compression.  It does not rely on any specific
   * underlying system, so should run in the browser, Node, or Plask.
   */
function Be(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,i=t[e++],a=i>>7,o=1<<(7&i)+1;t[e++];t[e++];var s=null,c=null;a&&(s=e,c=o,e+=3*o);var u=!0,h=[],l=0,f=null,d=0,p=null;for(this.width=r,this.height=n;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];l=t[e++]|t[e++]<<8,f=t[e++],0==(1&g)&&(f=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],N=w>>6&1,L=1<<(7&w)+1,A=s,x=c,S=!1;if(w>>7){S=!0;A=e,x=L,e+=3*L}var _=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}h.push({x:m,y:v,width:b,height:y,has_local_palette:S,palette_offset:A,palette_size:x,data_offset:_,data_length:e-_,transparent_index:f,interlaced:!!N,delay:l,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=h.length)throw new Error("Frame index out of range.");return h[t]},this.decodeAndBlitFrameBGRA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Me(t,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,h=r-u,l=u,f=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=f,g=4*h;!0===i.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===l&&(l=u,(p+=g)>=d&&(g=4*h+4*r*(m-1),p=f+(u+h)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],N=t[s+3*y+1],L=t[s+3*y+2];n[p++]=L,n[p++]=N,n[p++]=w,n[p++]=255}--l}},this.decodeAndBlitFrameRGBA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Me(t,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,h=r-u,l=u,f=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=f,g=4*h;!0===i.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===l&&(l=u,(p+=g)>=d&&(g=4*h+4*r*(m-1),p=f+(u+h)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],N=t[s+3*y+1],L=t[s+3*y+2];n[p++]=w,n[p++]=N,n[p++]=L,n[p++]=255}--l}}}function Me(t,e,r,n){for(var a=t[e++],o=1<<a,s=o+1,c=s+1,u=a+1,h=(1<<u)-1,l=0,f=0,d=0,p=t[e++],g=new Int32Array(4096),m=null;;){for(;l<16&&0!==p;)f|=t[e++]<<l,l+=8,1===p?p=t[e++]:--p;if(l<u)break;var v=f&h;if(f>>=u,l-=u,v!==o){if(v===s)break;for(var b=v<c?v:m,y=0,w=b;w>o;)w=g[w]>>8,++y;var N=w;if(d+y+(b!==v?1:0)>n)return void i.log("Warning, gif stream longer than expected.");r[d++]=N;var L=d+=y;for(b!==v&&(r[d++]=N),w=b;y--;)w=g[w],r[--L]=255&w,w>>=8;null!==m&&c<4096&&(g[c++]=m<<8|N,c>=h+1&&u<12&&(++u,h=h<<1|1)),m=v}else c=s+1,h=(1<<(u=a+1))-1,m=null}return d!==n&&i.log("Warning, gif stream shorter than expected."),r}
/**
   * @license
    Copyright (c) 2008, Adobe Systems Incorporated
    All rights reserved.

    Redistribution and use in source and binary forms, with or without 
    modification, are permitted provided that the following conditions are
    met:

    * Redistributions of source code must retain the above copyright notice, 
      this list of conditions and the following disclaimer.
    
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the 
      documentation and/or other materials provided with the distribution.
    
    * Neither the name of Adobe Systems Incorporated nor the names of its 
      contributors may be used to endorse or promote products derived from 
      this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
    IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */function Ee(t){var e,r,n,i,a,o=Math.floor,s=new Array(64),c=new Array(64),u=new Array(64),h=new Array(64),l=new Array(65535),f=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),N=new Array(256),L=new Array(2048),A=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],x=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],C=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function j(t,e){for(var r=0,n=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=a,n++,r++;r*=2}return i}function O(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(m|=1<<v),r--,--v<0&&(255==m?(B(255),B(0)):B(m),v=7,m=0)}function B(t){g.push(t)}function M(t){B(t>>8&255),B(255&t)}function E(t,e,r,n,i){for(var a,o=i[0],s=i[240],c=function(t,e){var r,n,i,a,o,s,c,u,h,l,f=0;for(h=0;h<8;++h){r=t[f],n=t[f+1],i=t[f+2],a=t[f+3],o=t[f+4],s=t[f+5],c=t[f+6];var p=r+(u=t[f+7]),g=r-u,m=n+c,v=n-c,b=i+s,y=i-s,w=a+o,N=a-o,L=p+w,A=p-w,x=m+b,S=m-b;t[f]=L+x,t[f+4]=L-x;var _=.707106781*(S+A);t[f+2]=A+_,t[f+6]=A-_;var P=.382683433*((L=N+y)-(S=v+g)),k=.5411961*L+P,F=1.306562965*S+P,I=.707106781*(x=y+v),C=g+I,j=g-I;t[f+5]=j+k,t[f+3]=j-k,t[f+1]=C+F,t[f+7]=C-F,f+=8}for(f=0,h=0;h<8;++h){r=t[f],n=t[f+8],i=t[f+16],a=t[f+24],o=t[f+32],s=t[f+40],c=t[f+48];var O=r+(u=t[f+56]),B=r-u,M=n+c,E=n-c,q=i+s,D=i-s,R=a+o,T=a-o,U=O+R,z=O-R,H=M+q,W=M-q;t[f]=U+H,t[f+32]=U-H;var V=.707106781*(W+z);t[f+16]=z+V,t[f+48]=z-V;var G=.382683433*((U=T+D)-(W=E+B)),Y=.5411961*U+G,J=1.306562965*W+G,X=.707106781*(H=D+E),K=B+X,Z=B-X;t[f+40]=Z+Y,t[f+24]=Z-Y,t[f+8]=K+J,t[f+56]=K-J,f++}for(h=0;h<64;++h)l=t[h]*e[h],d[h]=l>0?l+.5|0:l-.5|0;return d}(t,e),u=0;u<64;++u)p[A[u]]=c[u];var h=p[0]-r;r=p[0],0==h?O(n[0]):(O(n[f[a=32767+h]]),O(l[a]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return O(o),r;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)O(s);y&=15}a=32767+p[v],O(i[(y<<4)+f[a]]),O(l[a]),v++}return 63!=g&&O(o),r}function q(t){(t=Math.min(Math.max(t,1),100),a!=t)&&(!function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=o((e[r]*t+50)/100);n=Math.min(Math.max(n,1),255),s[A[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var l=o((i[a]*t+50)/100);l=Math.min(Math.max(l,1),255),c[A[a]]=l}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[A[d]]*f[p]*f[g]*8),h[d]=1/(c[A[d]]*f[p]*f[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t)}this.encode=function(t,a){a&&q(a),g=new Array,m=0,v=7,M(65496),M(65504),M(16),B(74),B(70),B(73),B(70),B(0),B(1),B(1),B(0),M(1),M(1),B(0),B(0),function(){M(65499),M(132),B(0);for(var t=0;t<64;t++)B(s[t]);B(1);for(var e=0;e<64;e++)B(c[e])}(),function(t,e){M(65472),M(17),B(8),M(e),M(t),B(3),B(1),B(17),B(0),B(2),B(17),B(1),B(3),B(17),B(1)}(t.width,t.height),function(){M(65476),M(418),B(0);for(var t=0;t<16;t++)B(x[t+1]);for(var e=0;e<=11;e++)B(S[e]);B(16);for(var r=0;r<16;r++)B(_[r+1]);for(var n=0;n<=161;n++)B(P[n]);B(1);for(var i=0;i<16;i++)B(k[i+1]);for(var a=0;a<=11;a++)B(F[a]);B(17);for(var o=0;o<16;o++)B(I[o+1]);for(var s=0;s<=161;s++)B(C[s])}(),M(65498),M(12),B(3),B(1),B(0),B(2),B(17),B(3),B(17),B(0),B(63),B(0);var o=0,l=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,N,A,j,D,R,T,U,z=t.data,H=t.width,W=t.height,V=4*H,G=0;G<W;){for(d=0;d<V;){for(j=V*G+d,R=-1,T=0,U=0;U<64;U++)D=j+(T=U>>3)*V+(R=4*(7&U)),G+T>=W&&(D-=V*(G+1+T-W)),d+R>=V&&(D-=d+R-V+4),p=z[D++],N=z[D++],A=z[D++],b[U]=(L[p]+L[N+256>>0]+L[A+512>>0]>>16)-128,y[U]=(L[p+768>>0]+L[N+1024>>0]+L[A+1280>>0]>>16)-128,w[U]=(L[p+1280>>0]+L[N+1536>>0]+L[A+1792>>0]>>16)-128;o=E(b,u,o,e,n),l=E(y,h,l,r,i),f=E(w,h,f,r,i),d+=32}G+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,O(Y)}return M(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)N[e]=t(e)}(),e=j(x,S),r=j(k,F),n=j(_,P),i=j(I,C),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)f[32767+n]=r,l[32767+n]=[],l[32767+n][1]=r,l[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)f[32767+i]=r,l[32767+i]=[],l[32767+i][1]=r,l[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)L[t]=19595*t,L[t+256>>0]=38470*t,L[t+512>>0]=7471*t+32768,L[t+768>>0]=-11059*t,L[t+1024>>0]=-21709*t,L[t+1280>>0]=32768*t+8421375,L[t+1536>>0]=-27439*t,L[t+1792>>0]=-5329*t}(),q(t)}
/**
   * @license
   * Copyright (c) 2017 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */function qe(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function De(t){function e(t){if(!t)throw Error("assert :P")}function r(t,e,r){for(var n=0;4>n;n++)if(t[e+n]!=r.charCodeAt(n))return!0;return!1}function n(t,e,r,n,i){for(var a=0;a<i;a++)t[e+a]=r[n+a]}function i(t,e,r,n){for(var i=0;i<n;i++)t[e+i]=r}function a(t){return new Int32Array(t)}function o(t,e){for(var r=[],n=0;n<t;n++)r.push(new e);return r}function s(t,e){var r=[];return function t(r,n,i){for(var a=i[n],o=0;o<a&&(r.push(i.length>n+1?[]:new e),!(i.length<n+1));o++)t(r[o],n+1,i)}(r,0,t),r}var c=function(){var t=this;function c(t,e){for(var r=1<<e-1>>>0;t&r;)r>>>=1;return r?(t&r-1)+r:t}function u(t,r,n,i,a){e(!(i%n));do{t[r+(i-=n)]=a}while(0<i)}function h(t,r,n,i,o){if(e(2328>=o),512>=o)var s=a(512);else if(null==(s=a(o)))return 0;return function(t,r,n,i,o,s){var h,f,d=r,p=1<<n,g=a(16),m=a(16);for(e(0!=o),e(null!=i),e(null!=t),e(0<n),f=0;f<o;++f){if(15<i[f])return 0;++g[i[f]]}if(g[0]==o)return 0;for(m[1]=0,h=1;15>h;++h){if(g[h]>1<<h)return 0;m[h+1]=m[h]+g[h]}for(f=0;f<o;++f)h=i[f],0<i[f]&&(s[m[h]++]=f);if(1==m[15])return(i=new l).g=0,i.value=s[0],u(t,d,1,p,i),p;var v,b=-1,y=p-1,w=0,N=1,L=1,A=1<<n;for(f=0,h=1,o=2;h<=n;++h,o<<=1){if(N+=L<<=1,0>(L-=g[h]))return 0;for(;0<g[h];--g[h])(i=new l).g=h,i.value=s[f++],u(t,d+w,o,A,i),w=c(w,h)}for(h=n+1,o=2;15>=h;++h,o<<=1){if(N+=L<<=1,0>(L-=g[h]))return 0;for(;0<g[h];--g[h]){if(i=new l,(w&y)!=b){for(d+=A,v=1<<(b=h)-n;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=A=1<<(v=b-n),t[r+(b=w&y)].g=v+n,t[r+b].value=d-r-b}i.g=h-n,i.value=s[f++],u(t,d+(w>>n),o,A,i),w=c(w,h)}}return N!=2*m[15]-1?0:p}(t,r,n,i,o,s)}function l(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,l),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Dr,f)}function p(t,r,n,i){e(null!=t),e(null!=r),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=r,t.pa=n,t.Jd=r,t.Yc=n+i,t.Zc=4<=i?n+i-4+1:n,_(t)}function g(t,e){for(var r=0;0<e--;)r|=k(t,128)<<e;return r}function m(t,e){var r=g(t,e);return P(t)?-r:r}function v(t,r,n,i){var a,o=0;for(e(null!=t),e(null!=r),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),a=0;a<i;++a)o+=r[n+a]<<8*a;t.Ra=o,t.bb=i,t.oa=r,t.pa=n}function b(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Ur-8>>>0,++t.bb,t.u-=8;A(t)&&(t.h=1,t.u=0)}function y(t,r){if(e(0<=r),!t.h&&r<=Tr){var n=L(t)&Rr[r];return t.u+=r,b(t),n}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(t){return t.Ra>>>(t.u&Ur-1)>>>0}function A(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Ur}function x(t,e){t.u=e,t.h=A(t)}function S(t){t.u>=zr&&(e(t.u>=zr),b(t))}function _(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function P(t){return g(t,1)}function k(t,e){var r=t.Ca;0>t.b&&_(t);var n=t.b,i=r*e>>>8,a=(t.I>>>n>i)+0;for(a?(r-=i,t.I-=i+1<<n>>>0):r=i+1,n=r,i=0;256<=n;)i+=8,n>>=8;return n=7^i+Hr[n],t.b-=n,t.Ca=(r<<n)-1,a}function F(t,e,r){t[e+0]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r>>0&255}function I(t,e){return t[e+0]<<0|t[e+1]<<8}function C(t,e){return I(t,e)|t[e+2]<<16}function j(t,e){return I(t,e)|I(t,e+2)<<16}function O(t,r){var n=1<<r;return e(null!=t),e(0<r),t.X=a(n),null==t.X?0:(t.Mb=32-r,t.Xa=r,1)}function B(t,r){e(null!=t),e(null!=r),e(t.Xa==r.Xa),n(r.X,0,t.X,0,1<<r.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function E(t,r,n,i){e(null!=n),e(null!=i);var a=n[0],o=i[0];return 0==a&&(a=(t*o+r/2)/r),0==o&&(o=(r*a+t/2)/t),0>=a||0>=o?0:(n[0]=a,i[0]=o,1)}function q(t,e){return t+(1<<e)-1>>>e}function D(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function R(e,r){t[r]=function(r,n,i,a,o,s,c){var u;for(u=0;u<o;++u){var h=t[e](s[c+u-1],i,a+u);s[c+u]=D(r[n+u],h)}}}function T(){this.ud=this.hd=this.jd=0}function U(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function z(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function H(t,e){return z(t+(t-e+.5>>1))}function W(t,e,r){return Math.abs(e-r)-Math.abs(t-r)}function V(t,e,r,n,i,a,o){for(n=a[o-1],r=0;r<i;++r)a[o+r]=n=D(t[e+r],n)}function G(t,e,r,n,i){var a;for(a=0;a<r;++a){var o=t[e+a],s=o>>8&255,c=16711935&(c=(c=16711935&o)+((s<<16)+s));n[i+a]=(4278255360&o)+c>>>0}}function Y(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function J(t,e,r,n,i,a){var o;for(o=0;o<n;++o){var s=e[r+o],c=s>>>8,u=s,h=255&(h=(h=s>>>16)+((t.jd<<24>>24)*(c<<24>>24)>>>5));u=255&(u=(u=u+((t.hd<<24>>24)*(c<<24>>24)>>>5))+((t.ud<<24>>24)*(h<<24>>24)>>>5));i[a+o]=(4278255360&s)+(h<<16)+u}}function X(e,r,n,i,a){t[r]=function(t,e,r,n,o,s,c,u,h){for(n=c;n<u;++n)for(c=0;c<h;++c)o[s++]=a(r[i(t[e++])])},t[e]=function(e,r,o,s,c,u,h){var l=8>>e.b,f=e.Ea,d=e.K[0],p=e.w;if(8>l)for(e=(1<<e.b)-1,p=(1<<l)-1;r<o;++r){var g,m=0;for(g=0;g<f;++g)g&e||(m=i(s[c++])),u[h++]=a(d[m&p]),m>>=l}else t["VP8LMapColor"+n](s,c,d,p,u,h,r,o,f)}}function K(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=a>>16&255,n[i++]=a>>8&255,n[i++]=a>>0&255}}function Z(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=a>>16&255,n[i++]=a>>8&255,n[i++]=a>>0&255,n[i++]=a>>24&255}}function $(t,e,r,n,i){for(r=e+r;e<r;){var a=(o=t[e++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;n[i++]=a,n[i++]=o}}function Q(t,e,r,n,i){for(r=e+r;e<r;){var a=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;n[i++]=a,n[i++]=o}}function tt(t,e,r,n,i){for(r=e+r;e<r;){var a=t[e++];n[i++]=a>>0&255,n[i++]=a>>8&255,n[i++]=a>>16&255}}function et(t,e,r,i,a,o){if(0==o)for(r=e+r;e<r;)F(i,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),a+=32;else n(i,a,t,e,r)}function rt(e,r){t[r][0]=t[e+"0"],t[r][1]=t[e+"1"],t[r][2]=t[e+"2"],t[r][3]=t[e+"3"],t[r][4]=t[e+"4"],t[r][5]=t[e+"5"],t[r][6]=t[e+"6"],t[r][7]=t[e+"7"],t[r][8]=t[e+"8"],t[r][9]=t[e+"9"],t[r][10]=t[e+"10"],t[r][11]=t[e+"11"],t[r][12]=t[e+"12"],t[r][13]=t[e+"13"],t[r][14]=t[e+"0"],t[r][15]=t[e+"0"]}function nt(t){return t==Hn||t==Wn||t==Vn||t==Gn}function it(){this.eb=[],this.size=this.A=this.fb=0}function at(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new at,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ct(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ut(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ht(t,e){var r=t.T,i=e.ba.f.RGBA,a=i.eb,o=i.fb+t.ka*i.A,s=vi[e.ba.S],c=t.y,u=t.O,h=t.f,l=t.N,f=t.ea,d=t.W,p=e.cc,g=e.dc,m=e.Mc,v=e.Nc,b=t.ka,y=t.ka+t.T,w=t.U,N=w+1>>1;for(0==b?s(c,u,null,null,h,l,f,d,h,l,f,d,a,o,null,null,w):(s(e.ec,e.fc,c,u,p,g,m,v,h,l,f,d,a,o-i.A,a,o,w),++r);b+2<y;b+=2)p=h,g=l,m=f,v=d,l+=t.Rc,d+=t.Rc,o+=2*i.A,s(c,(u+=2*t.fa)-t.fa,c,u,p,g,m,v,h,l,f,d,a,o-i.A,a,o,w);return u+=t.fa,t.j+y<t.o?(n(e.ec,e.fc,c,u,w),n(e.cc,e.dc,h,l,N),n(e.Mc,e.Nc,f,d,N),r--):1&y||s(c,u,null,null,h,l,f,d,h,l,f,d,a,o+i.A,null,null,w),r}function lt(t,r,n){var i=t.F,a=[t.J];if(null!=i){var o=t.U,s=r.ba.S,c=s==Tn||s==Vn;r=r.ba.f.RGBA;var u=[0],h=t.ka;u[0]=t.T,t.Kb&&(0==h?--u[0]:(--h,a[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-h));var l=r.eb;h=r.fb+h*r.A;t=Sn(i,a[0],t.width,o,u,l,h+(c?0:3),r.A),e(n==u),t&&nt(s)&&An(l,h,c,o,u,r.A)}return 0}function ft(t){var e=t.ma,r=e.ba.S,n=11>r,i=r==qn||r==Rn||r==Tn||r==Un||12==r||nt(r);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Mr(e.Oa,t,i?11:12))return 0;if(i&&nt(r)&&br(),t.da)alert("todo:use_scaling");else{if(n){if(e.Ib=ut,t.Kb){if(r=t.U+1>>1,e.memory=a(t.U+2*r),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+r,e.Ib=ht,br()}}else alert("todo:EmitYUV");i&&(e.Jb=lt,n&&mr())}if(n&&!Ci){for(t=0;256>t;++t)ji[t]=89858*(t-128)+_i>>Si,Mi[t]=-22014*(t-128)+_i,Bi[t]=-45773*(t-128),Oi[t]=113618*(t-128)+_i>>Si;for(t=Pi;t<ki;++t)e=76283*(t-16)+_i>>Si,Ei[t-Pi]=Vt(e,255),qi[t-Pi]=Vt(e+8>>4,15);Ci=1}return 1}function dt(t){var r=t.ma,n=t.U,i=t.T;return e(!(1&t.ka)),0>=n||0>=i?0:(n=r.Ib(t,r),null!=r.Jb&&r.Jb(t,r,n),r.Dc+=n,1)}function pt(t){t.ma.memory=null}function gt(t,e,r,n){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,r[0]=y(t,14)+1,n[0]=y(t,1),0!=y(t,3)?0:!t.h)}function mt(t,e){if(4>t)return t+1;var r=t-2>>1;return(2+(1&t)<<r)+y(e,r)+1}function vt(t,e){return 120<e?e-120:1<=(r=((r=$n[e-1])>>4)*t+(8-(15&r)))?r:1;var r}function bt(t,e,r){var n=L(r),i=t[e+=255&n].g-8;return 0<i&&(x(r,r.u+8),n=L(r),e+=t[e].value,e+=n&(1<<i)-1),x(r,r.u+t[e].g),t[e].value}function yt(t,r,n){return n.g+=t.g,n.value+=t.value<<r>>>0,e(8>=n.g),t.g}function wt(t,r,n){var i=t.xc;return e((r=0==i?0:t.vc[t.md*(n>>i)+(r>>i)])<t.Wb),t.Ya[r]}function Nt(t,r,i,a){var o=t.ab,s=t.c*r,c=t.C;r=c+r;var u=i,h=a;for(a=t.Ta,i=t.Ua;0<o--;){var l=t.gc[o],f=c,d=r,p=u,g=h,m=(h=a,u=i,l.Ea);switch(e(f<d),e(d<=l.nc),l.hc){case 2:Gr(p,g,(d-f)*m,h,u);break;case 0:var v=f,b=d,y=h,w=u,N=(_=l).Ea;0==v&&(Wr(p,g,null,null,1,y,w),V(p,g+1,0,0,N-1,y,w+1),g+=N,w+=N,++v);for(var L=1<<_.b,A=L-1,x=q(N,_.b),S=_.K,_=_.w+(v>>_.b)*x;v<b;){var P=S,k=_,F=1;for(Vr(p,g,y,w-N,1,y,w);F<N;){var I=(F&~A)+L;I>N&&(I=N),(0,Zr[P[k++]>>8&15])(p,g+ +F,y,w+F-N,I-F,y,w+F),F=I}g+=N,w+=N,++v&A||(_+=x)}d!=l.nc&&n(h,u-m,h,u+(d-f-1)*m,m);break;case 1:for(m=p,b=g,N=(p=l.Ea)-(w=p&~(y=(g=1<<l.b)-1)),v=q(p,l.b),L=l.K,l=l.w+(f>>l.b)*v;f<d;){for(A=L,x=l,S=new T,_=b+w,P=b+p;b<_;)Y(A[x++],S),$r(S,m,b,g,h,u),b+=g,u+=g;b<P&&(Y(A[x++],S),$r(S,m,b,N,h,u),b+=N,u+=N),++f&y||(l+=v)}break;case 3:if(p==h&&g==u&&0<l.b){for(b=h,p=m=u+(d-f)*m-(w=(d-f)*q(l.Ea,l.b)),g=h,y=u,v=[],w=(N=w)-1;0<=w;--w)v[w]=g[y+w];for(w=N-1;0<=w;--w)b[p+w]=v[w];Yr(l,f,d,h,m,h,u)}else Yr(l,f,d,p,g,h,u)}u=a,h=i}h!=i&&n(a,i,u,h,s)}function Lt(t,r){var n=t.V,i=t.Ba+t.c*t.C,a=r-t.C;if(e(r<=t.l.o),e(16>=a),0<a){var o=t.l,s=t.Ta,c=t.Ua,u=o.width;if(Nt(t,a,n,i),a=c=[c],e((n=t.C)<(i=r)),e(o.v<o.va),i>o.o&&(i=o.o),n<o.j){var h=o.j-n;n=o.j;a[0]+=h*u}if(n>=i?n=0:(a[0]+=4*o.v,o.ka=n-o.j,o.U=o.va-o.v,o.T=i-n,n=1),n){if(c=c[0],11>(n=t.ca).S){var l=n.f.RGBA,f=(i=n.S,a=o.U,o=o.T,h=l.eb,l.A),d=o;for(l=l.fb+t.Ma*l.A;0<d--;){var p=s,g=c,m=a,v=h,b=l;switch(i){case En:Qr(p,g,m,v,b);break;case qn:tn(p,g,m,v,b);break;case Hn:tn(p,g,m,v,b),An(v,b,0,m,1,0);break;case Dn:nn(p,g,m,v,b);break;case Rn:et(p,g,m,v,b,1);break;case Wn:et(p,g,m,v,b,1),An(v,b,0,m,1,0);break;case Tn:et(p,g,m,v,b,0);break;case Vn:et(p,g,m,v,b,0),An(v,b,1,m,1,0);break;case Un:en(p,g,m,v,b);break;case Gn:en(p,g,m,v,b),xn(v,b,m,1,0);break;case zn:rn(p,g,m,v,b);break;default:e(0)}c+=u,l+=f}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=n.height)}}t.C=r,e(t.C<=t.i)}function At(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var r=t.Ya[e].G,n=t.Ya[e].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function xt(t,r,n,i,a,o){if(0!=t.Z){var s=t.qd,c=t.rd;for(e(null!=mi[t.Z]);r<n;++r)mi[t.Z](s,c,i,a,i,a,o),s=i,c=a,a+=o;t.qd=s,t.rd=c}}function St(t,r){var n=t.l.ma,i=0==n.Z||1==n.Z?t.l.j:t.C;i=t.C<i?i:t.C;if(e(r<=t.l.o),r>i){var a=t.l.width,o=n.ca,s=n.tb+a*i,c=t.V,u=t.Ba+t.c*i,h=t.gc;e(1==t.ab),e(3==h[0].hc),Xr(h[0],i,r,c,u,o,s),xt(n,i,r,o,s,a)}t.C=t.Ma=r}function _t(t,r,n,i,a,o,s){var c=t.$/i,u=t.$%i,h=t.m,l=t.s,f=n+t.$,d=f;a=n+i*a;var p=n+i*o,g=280+l.ua,m=t.Pb?c:16777216,v=0<l.ua?l.Wa:null,b=l.wc,y=f<p?wt(l,u,c):null;e(t.C<o),e(p<=a);var w=!1;t:for(;;){for(;w||f<p;){var N=0;if(c>=m){var _=f-n;e((m=t).Pb),m.wd=m.m,m.xd=_,0<m.s.ua&&B(m.s.Wa,m.s.vb),m=c+ti}if(u&b||(y=wt(l,u,c)),e(null!=y),y.Qb&&(r[f]=y.qb,w=!0),!w)if(S(h),y.jc){N=h,_=r;var P=f,k=y.pd[L(N)&Dr-1];e(y.jc),256>k.g?(x(N,N.u+k.g),_[P]=k.value,N=0):(x(N,N.u+k.g-256),e(256<=k.value),N=k.value),0==N&&(w=!0)}else N=bt(y.G[0],y.H[0],h);if(h.h)break;if(w||256>N){if(!w)if(y.nd)r[f]=(y.qb|N<<8)>>>0;else{if(S(h),w=bt(y.G[1],y.H[1],h),S(h),_=bt(y.G[2],y.H[2],h),P=bt(y.G[3],y.H[3],h),h.h)break;r[f]=(P<<24|w<<16|N<<8|_)>>>0}if(w=!1,++f,++u>=i&&(u=0,++c,null!=s&&c<=o&&!(c%16)&&s(t,c),null!=v))for(;d<f;)N=r[d++],v.X[(506832829*N&4294967295)>>>v.Mb]=N}else if(280>N){if(N=mt(N-256,h),_=bt(y.G[4],y.H[4],h),S(h),_=vt(i,_=mt(_,h)),h.h)break;if(f-n<_||a-f<N)break t;for(P=0;P<N;++P)r[f+P]=r[f+P-_];for(f+=N,u+=N;u>=i;)u-=i,++c,null!=s&&c<=o&&!(c%16)&&s(t,c);if(e(f<=a),u&b&&(y=wt(l,u,c)),null!=v)for(;d<f;)N=r[d++],v.X[(506832829*N&4294967295)>>>v.Mb]=N}else{if(!(N<g))break t;for(w=N-280,e(null!=v);d<f;)N=r[d++],v.X[(506832829*N&4294967295)>>>v.Mb]=N;N=f,e(!(w>>>(_=v).Xa)),r[N]=_.X[w],w=!0}w||e(h.h==A(h))}if(t.Pb&&h.h&&f<a)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&B(t.s.vb,t.s.Wa);else{if(h.h)break t;null!=s&&s(t,c>o?o:c),t.a=0,t.$=f-n}return 1}return t.a=3,0}function Pt(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var r=t.Wa;null!=r&&(r.X=null),t.vb=null,e(null!=t)}function kt(){var e=new or;return null==e?null:(e.a=0,e.xb=gi,rt("Predictor","VP8LPredictors"),rt("Predictor","VP8LPredictors_C"),rt("PredictorAdd","VP8LPredictorsAdd"),rt("PredictorAdd","VP8LPredictorsAdd_C"),Gr=G,$r=J,Qr=K,tn=Z,en=$,rn=Q,nn=tt,t.VP8LMapColor32b=Jr,t.VP8LMapColor8b=Kr,e)}function Ft(t,r,n,s,c){var u=1,f=[t],p=[r],g=s.m,m=s.s,v=null,b=0;t:for(;;){if(n)for(;u&&y(g,1);){var w=f,N=p,A=s,_=1,P=A.m,k=A.gc[A.ab],F=y(P,2);if(A.Oc&1<<F)u=0;else{switch(A.Oc|=1<<F,k.hc=F,k.Ea=w[0],k.nc=N[0],k.K=[null],++A.ab,e(4>=A.ab),F){case 0:case 1:k.b=y(P,3)+2,_=Ft(q(k.Ea,k.b),q(k.nc,k.b),0,A,k.K),k.K=k.K[0];break;case 3:var I,C=y(P,8)+1,j=16<C?0:4<C?1:2<C?2:3;if(w[0]=q(k.Ea,j),k.b=j,I=_=Ft(C,1,0,A,k.K)){var B,M=C,E=k,R=1<<(8>>E.b),T=a(R);if(null==T)I=0;else{var U=E.K[0],z=E.w;for(T[0]=E.K[0][0],B=1;B<1*M;++B)T[B]=D(U[z+B],T[B-1]);for(;B<4*R;++B)T[B]=0;E.K[0]=null,E.K[0]=T,I=1}}_=I;break;case 2:break;default:e(0)}u=_}}if(f=f[0],p=p[0],u&&y(g,1)&&!(u=1<=(b=y(g,4))&&11>=b)){s.a=3;break t}var H;if(H=u)e:{var W,V,G,Y=s,J=f,X=p,K=b,Z=n,$=Y.m,Q=Y.s,tt=[null],et=1,rt=0,nt=Qn[K];r:for(;;){if(Z&&y($,1)){var it=y($,3)+2,at=q(J,it),ot=q(X,it),st=at*ot;if(!Ft(at,ot,0,Y,tt))break r;for(tt=tt[0],Q.xc=it,W=0;W<st;++W){var ct=tt[W]>>8&65535;tt[W]=ct,ct>=et&&(et=ct+1)}}if($.h)break r;for(V=0;5>V;++V){var ut=Xn[V];!V&&0<K&&(ut+=1<<K),rt<ut&&(rt=ut)}var ht=o(et*nt,l),lt=et,ft=o(lt,d);if(null==ft)var dt=null;else e(65536>=lt),dt=ft;var pt=a(rt);if(null==dt||null==pt||null==ht){Y.a=1;break r}var gt=ht;for(W=G=0;W<et;++W){var mt=dt[W],vt=mt.G,bt=mt.H,wt=0,Nt=1,Lt=0;for(V=0;5>V;++V){ut=Xn[V],vt[V]=gt,bt[V]=G,!V&&0<K&&(ut+=1<<K);n:{var At,xt=ut,St=Y,kt=pt,It=gt,Ct=G,jt=0,Ot=St.m,Bt=y(Ot,1);if(i(kt,0,0,xt),Bt){var Mt=y(Ot,1)+1,Et=y(Ot,1),qt=y(Ot,0==Et?1:8);kt[qt]=1,2==Mt&&(kt[qt=y(Ot,8)]=1);var Dt=1}else{var Rt=a(19),Tt=y(Ot,4)+4;if(19<Tt){St.a=3;var Ut=0;break n}for(At=0;At<Tt;++At)Rt[Zn[At]]=y(Ot,3);var zt=void 0,Ht=void 0,Wt=St,Vt=Rt,Gt=xt,Yt=kt,Jt=0,Xt=Wt.m,Kt=8,Zt=o(128,l);i:for(;h(Zt,0,7,Vt,19);){if(y(Xt,1)){var $t=2+2*y(Xt,3);if((zt=2+y(Xt,$t))>Gt)break i}else zt=Gt;for(Ht=0;Ht<Gt&&zt--;){S(Xt);var Qt=Zt[0+(127&L(Xt))];x(Xt,Xt.u+Qt.g);var te=Qt.value;if(16>te)Yt[Ht++]=te,0!=te&&(Kt=te);else{var ee=16==te,re=te-16,ne=Jn[re],ie=y(Xt,Yn[re])+ne;if(Ht+ie>Gt)break i;for(var ae=ee?Kt:0;0<ie--;)Yt[Ht++]=ae}}Jt=1;break i}Jt||(Wt.a=3),Dt=Jt}(Dt=Dt&&!Ot.h)&&(jt=h(It,Ct,8,kt,xt)),Dt&&0!=jt?Ut=jt:(St.a=3,Ut=0)}if(0==Ut)break r;if(Nt&&1==Kn[V]&&(Nt=0==gt[G].g),wt+=gt[G].g,G+=Ut,3>=V){var oe,se=pt[0];for(oe=1;oe<ut;++oe)pt[oe]>se&&(se=pt[oe]);Lt+=se}}if(mt.nd=Nt,mt.Qb=0,Nt&&(mt.qb=(vt[3][bt[3]+0].value<<24|vt[1][bt[1]+0].value<<16|vt[2][bt[2]+0].value)>>>0,0==wt&&256>vt[0][bt[0]+0].value&&(mt.Qb=1,mt.qb+=vt[0][bt[0]+0].value<<8)),mt.jc=!mt.Qb&&6>Lt,mt.jc){var ce,ue=mt;for(ce=0;ce<Dr;++ce){var he=ce,le=ue.pd[he],fe=ue.G[0][ue.H[0]+he];256<=fe.value?(le.g=fe.g+256,le.value=fe.value):(le.g=0,le.value=0,he>>=yt(fe,8,le),he>>=yt(ue.G[1][ue.H[1]+he],16,le),he>>=yt(ue.G[2][ue.H[2]+he],0,le),yt(ue.G[3][ue.H[3]+he],24,le))}}}Q.vc=tt,Q.Wb=et,Q.Ya=dt,Q.yc=ht,H=1;break e}H=0}if(!(u=H)){s.a=3;break t}if(0<b){if(m.ua=1<<b,!O(m.Wa,b)){s.a=1,u=0;break t}}else m.ua=0;var de=s,pe=f,ge=p,me=de.s,ve=me.xc;if(de.c=pe,de.i=ge,me.md=q(pe,ve),me.wc=0==ve?-1:(1<<ve)-1,n){s.xb=pi;break t}if(null==(v=a(f*p))){s.a=1,u=0;break t}u=(u=_t(s,v,0,f,p,p,null))&&!g.h;break t}return u?(null!=c?c[0]=v:(e(null==v),e(n)),s.$=0,n||Pt(m)):Pt(m),u}function It(t,r){var n=t.c*t.i,i=n+r+16*r;return e(t.c<=r),t.V=a(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+n+r,1)}function Ct(t,r){var n=t.C,i=r-n,a=t.V,o=t.Ba+t.c*n;for(e(r<=t.l.o);0<i;){var s=16<i?16:i,c=t.l.ma,u=t.l.width,h=u*s,l=c.ca,f=c.tb+u*n,d=t.Ta,p=t.Ua;Nt(t,s,a,o),_n(d,p,l,f,h),xt(c,n,n+s,l,f,u),i-=s,a+=s*t.c,n+=s}e(n==r),t.C=t.Ma=r}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Ot(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Bt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Mt(){this.Yb=function(){var t=[];return function t(e,r,n){for(var i=n[r],a=0;a<i&&(e.push(n.length>r+1?[]:0),!(n.length<r+1));a++)t(e[a],r+1,n)}(t,0,[3,11]),t}()}function Et(){this.jb=a(3),this.Wc=s([4,8],Mt),this.Xc=s([4,17],Mt)}function qt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Dt(){this.ld=this.La=this.dd=this.tc=0}function Rt(){this.Na=this.la=0}function Tt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ut(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Dt),this.Y=0,this.ya=Array(new Ut),this.aa=0,this.l=new Gt}function Ht(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Wt(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new jt,this.Kc=new Ot,this.ed=new qt,this.Qa=new Bt,this.Ic=this.$c=this.Aa=0,this.D=new zt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,w),this.ia=0,this.pb=o(4,Tt),this.Pa=new Et,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new Rt),this.sb=0,this.wa=Array(new Dt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ut),this.L=this.aa=0,this.gd=s([4,2],Dt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Vt(t,e){return 0>t?0:t>e?e:t}function Gt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yt(){var t=new Wt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ni||(ni=Zt)),t}function Jt(t,e,r){return 0==t.a&&(t.a=e,t.sc=r,t.cb=0),0}function Xt(t,e,r){return 3<=r&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Kt(t,r){if(null==t)return 0;if(t.a=0,t.sc="OK",null==r)return Jt(t,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,a=r.w,o=r.ha;if(4>o)return Jt(t,7,"Truncated header.");var s=n[a+0]|n[a+1]<<8|n[a+2]<<16,c=t.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return Jt(t,3,"Incorrect keyframe parameters.");if(!c.yd)return Jt(t,4,"Frame not displayable.");a+=3,o-=3;var u=t.Kc;if(c.Rb){if(7>o)return Jt(t,7,"cannot parse picture header");if(!Xt(n,a,o))return Jt(t,3,"Bad code word");u.c=16383&(n[a+4]<<8|n[a+3]),u.Td=n[a+4]>>6,u.i=16383&(n[a+6]<<8|n[a+5]),u.Ud=n[a+6]>>6,a+=7,o-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,r.width=u.c,r.height=u.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(c.ub>o)return Jt(t,7,"bad partition length");p(s=t.m,n,a,c.ub),a+=c.ub,o-=c.ub,c.Rb&&(u.Ld=P(s),u.Kd=P(s)),u=t.Qa;var h,l=t.Pa;if(e(null!=s),e(null!=u),u.Cb=P(s),u.Cb){if(u.Bb=P(s),P(s)){for(u.Fb=P(s),h=0;4>h;++h)u.Zb[h]=P(s)?m(s,7):0;for(h=0;4>h;++h)u.Lb[h]=P(s)?m(s,6):0}if(u.Bb)for(h=0;3>h;++h)l.jb[h]=P(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return Jt(t,3,"cannot parse segment header");if((u=t.ed).zd=P(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=P(s),u.Pc&&P(s)){for(l=0;4>l;++l)P(s)&&(u.vd[l]=m(s,6));for(l=0;4>l;++l)P(s)&&(u.od[l]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Jt(t,3,"cannot parse filter header");var f=o;if(o=h=a,a=h+f,u=f,t.Xb=(1<<g(t.m,2))-1,f<3*(l=t.Xb))n=7;else{for(h+=3*l,u-=3*l,f=0;f<l;++f){var d=n[o+0]|n[o+1]<<8|n[o+2]<<16;d>u&&(d=u),p(t.Jc[+f],n,h,d),h+=d,u-=d,o+=3}p(t.Jc[+l],n,h,u),n=h<a?0:5}if(0!=n)return Jt(t,n,"cannot parse partitions");for(n=g(h=t.m,7),o=P(h)?m(h,4):0,a=P(h)?m(h,4):0,u=P(h)?m(h,4):0,l=P(h)?m(h,4):0,h=P(h)?m(h,4):0,f=t.Qa,d=0;4>d;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=n)}else{if(0<d){t.pb[d]=t.pb[0];continue}v=n}var b=t.pb[d];b.Sc[0]=ei[Vt(v+o,127)],b.Sc[1]=ri[Vt(v+0,127)],b.Eb[0]=2*ei[Vt(v+a,127)],b.Eb[1]=101581*ri[Vt(v+u,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=ei[Vt(v+l,117)],b.Qc[1]=ri[Vt(v+h,127)],b.lc=v+h}if(!c.Rb)return Jt(t,4,"Not a key frame.");for(P(s),c=t.Pa,n=0;4>n;++n){for(o=0;8>o;++o)for(a=0;3>a;++a)for(u=0;11>u;++u)l=k(s,ui[n][o][a][u])?g(s,8):si[n][o][a][u],c.Wc[n][o].Yb[a][u]=l;for(o=0;17>o;++o)c.Xc[n][o]=c.Wc[n][hi[o]]}return t.kc=P(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function Zt(t,e,r,n,i,a,o){var s=e[i].Yb[r];for(r=0;16>i;++i){if(!k(t,s[r+0]))return i;for(;!k(t,s[r+1]);)if(s=e[++i].Yb[0],r=0,16==i)return 16;var c=e[i+1].Yb;if(k(t,s[r+2])){var u=t,h=0;if(k(u,(f=s)[(l=r)+3]))if(k(u,f[l+6])){for(s=0,l=2*(h=k(u,f[l+8]))+(f=k(u,f[l+9+h])),h=0,f=ii[l];f[s];++s)h+=h+k(u,f[s]);h+=3+(8<<l)}else k(u,f[l+7])?(h=7+2*k(u,165),h+=k(u,145)):h=5+k(u,159);else h=k(u,f[l+4])?3+k(u,f[l+5]):2;s=c[2]}else h=1,s=c[1];c=o+ai[i],0>(u=t).b&&_(u);var l,f=u.b,d=(l=u.Ca>>1)-(u.I>>f)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(l+1&d)<<f,a[c]=((h^d)-d)*n[(0<i)+0]}return 16}function $t(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function Qt(t,r){if(null==t)return 0;if(null==r)return Jt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Kt(t,r))return 0;if(e(t.cb),null==r.ac||r.ac(r)){r.ob&&(t.L=0);var s=Ri[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=r.v-s>>4,t.zb=r.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=r.o+15+s>>4,t.Hb=r.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var c=t.ed;for(s=0;4>s;++s){var u;if(t.Qa.Cb){var h=t.Qa.Lb[s];t.Qa.Fb||(h+=c.Tb)}else h=c.Tb;for(u=0;1>=u;++u){var l=t.gd[s][u],f=h;if(c.Pc&&(f+=c.vd[0],u&&(f+=c.od[0])),0<(f=0>f?0:63<f?63:f)){var d=f;0<c.wb&&((d=4<c.wb?d>>2:d>>1)>9-c.wb&&(d=9-c.wb)),1>d&&(d=1),l.dd=d,l.tc=2*f+d,l.ld=40<=f?2:15<=f?1:0}else l.tc=0;l.La=u}}}s=0}else Jt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=Ui);t:{s=t.Ic;c=4*(d=t.za);var p=32*d,g=d+1,m=0<t.L?d*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*d;if((l=c+832+(u=3*(16*s+Ri[t.L])/2*p)+(h=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=l)s=0;else{if(l>t.Vb){if(t.Vb=0,t.Ec=a(l),t.Fc=0,null==t.Ec){s=Jt(t,1,"no memory during frame initialization.");break t}t.Vb=l}l=t.Ec,f=t.Fc,t.Ac=l,t.Bc=f,f+=c,t.Gd=o(p,Ht),t.Hd=0,t.rb=o(g+1,Rt),t.sb=1,t.wa=m?o(m,Dt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=l,t.pc=f,f+=832,t.ya=o(v,Ut),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(p=Ri[t.L])*t.R,p=p/2*t.B,t.sa=l,t.ta=f+d,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,f+=u,t.mb=h?l:null,t.nb=h?f:null,e(f+h<=t.Fc+t.Vb),$t(t),i(t.Ac,t.Bc,0,c),s=1}}if(s){if(r.ka=0,r.y=t.sa,r.O=t.ta,r.f=t.qa,r.N=t.ra,r.ea=t.Ha,r.Vd=t.Ia,r.fa=t.R,r.Rc=t.B,r.F=null,r.J=0,!Cn){for(s=-255;255>=s;++s)Pn[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)kn[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Fn[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)In[255+s]=0>s?0:255<s?255:s;Cn=1}an=ue,on=ae,cn=oe,un=se,hn=ce,sn=ie,ln=Je,fn=Xe,dn=$e,pn=Qe,gn=Ke,mn=Ze,vn=tr,bn=er,yn=ze,wn=He,Nn=We,Ln=Ve,fi[0]=xe,fi[1]=le,fi[2]=Le,fi[3]=Ae,fi[4]=Se,fi[5]=Pe,fi[6]=_e,fi[7]=ke,fi[8]=Ie,fi[9]=Fe,li[0]=ve,li[1]=de,li[2]=pe,li[3]=ge,li[4]=be,li[5]=ye,li[6]=we,di[0]=Be,di[1]=fe,di[2]=Ce,di[3]=je,di[4]=Ee,di[5]=Me,di[6]=qe,s=1}else s=0}s&&(s=function(t,r){for(t.M=0;t.M<t.Va;++t.M){var o,s=t.Jc[t.M&t.Xb],c=t.m,u=t;for(o=0;o<u.za;++o){var h=c,l=u,f=l.Ac,d=l.Bc+4*o,p=l.zc,g=l.ya[l.aa+o];if(l.Qa.Bb?g.$b=k(h,l.Pa.jb[0])?2+k(h,l.Pa.jb[2]):k(h,l.Pa.jb[1]):g.$b=0,l.kc&&(g.Ad=k(h,l.Bd)),g.Za=!k(h,145)+0,g.Za){var m=g.Ob,v=0;for(l=0;4>l;++l){var b,y=p[0+l];for(b=0;4>b;++b){y=ci[f[d+b]][y];for(var w=oi[k(h,y[0])];0<w;)w=oi[2*w+k(h,y[w])];y=-w,f[d+b]=y}n(m,v,f,d,4),v+=4,p[0+l]=y}}else y=k(h,156)?k(h,128)?1:3:k(h,163)?2:0,g.Ob[0]=y,i(f,d,y,4),i(p,0,y,4);g.Dd=k(h,142)?k(h,114)?k(h,183)?1:3:2:0}if(u.m.Ka)return Jt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,h=(c=t).rb[c.sb-1],f=c.rb[c.sb+c.ja],o=c.ya[c.aa+c.ja],d=c.kc?o.Ad:0)h.la=f.la=0,o.Za||(h.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var N,L;h=f,f=u,d=c.Pa.Xc,p=c.ya[c.aa+c.ja],g=c.pb[p.$b];if(l=p.ad,m=0,v=c.rb[c.sb-1],y=b=0,i(l,m,0,384),p.Za)var A=0,x=d[3];else{w=a(16);var S=h.Na+v.Na;if(S=ni(f,d[1],S,g.Eb,0,w,0),h.Na=v.Na=(0<S)+0,1<S)an(w,0,l,m);else{var _=w[0]+3>>3;for(w=0;256>w;w+=16)l[m+w]=_}A=1,x=d[0]}var P=15&h.la,F=15&v.la;for(w=0;4>w;++w){var I=1&F;for(_=L=0;4>_;++_)P=P>>1|(I=(S=ni(f,x,S=I+(1&P),g.Sc,A,l,m))>A)<<7,L=L<<2|(3<S?3:1<S?2:0!=l[m+0]),m+=16;P>>=4,F=F>>1|I<<7,b=(b<<8|L)>>>0}for(x=P,A=F>>4,N=0;4>N;N+=2){for(L=0,P=h.la>>4+N,F=v.la>>4+N,w=0;2>w;++w){for(I=1&F,_=0;2>_;++_)S=I+(1&P),P=P>>1|(I=0<(S=ni(f,d[2],S,g.Qc,0,l,m)))<<3,L=L<<2|(3<S?3:1<S?2:0!=l[m+0]),m+=16;P>>=2,F=F>>1|I<<5}y|=L<<4*N,x|=P<<4<<N,A|=(240&F)<<N}h.la=x,v.la=A,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(b|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[o.$b][o.Za],c.wa[c.Y+c.ja].La|=!d),u.Ka)return Jt(t,7,"Premature end-of-file encountered.")}if($t(t),c=r,u=1,o=(s=t).D,h=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(o.M=s.M,o.uc=h,Or(s,o),u=1,o=(L=s.D).Nb,h=(y=Ri[s.L])*s.R,f=y/2*s.B,w=16*o*s.R,_=8*o*s.B,d=s.sa,p=s.ta-h+w,g=s.qa,l=s.ra-f+_,m=s.Ha,v=s.Ia-f+_,F=0==(P=L.M),b=P>=s.Va-1,2==s.Aa&&Or(s,L),L.uc)for(I=(S=s).D.M,e(S.D.uc),L=S.yb;L<S.Hb;++L){A=L,x=I;var C=(j=(U=S).D).Nb;N=U.R;var j=j.wa[j.Y+A],O=U.sa,B=U.ta+16*C*N+16*A,M=j.dd,E=j.tc;if(0!=E)if(e(3<=E),1==U.L)0<A&&wn(O,B,N,E+4),j.La&&Ln(O,B,N,E),0<x&&yn(O,B,N,E+4),j.La&&Nn(O,B,N,E);else{var q=U.B,D=U.qa,R=U.ra+8*C*q+8*A,T=U.Ha,U=U.Ia+8*C*q+8*A;C=j.ld;0<A&&(fn(O,B,N,E+4,M,C),pn(D,R,T,U,q,E+4,M,C)),j.La&&(mn(O,B,N,E,M,C),bn(D,R,T,U,q,E,M,C)),0<x&&(ln(O,B,N,E+4,M,C),dn(D,R,T,U,q,E+4,M,C)),j.La&&(gn(O,B,N,E,M,C),vn(D,R,T,U,q,E,M,C))}}if(s.ia&&alert("todo:DitherRow"),null!=c.put){if(L=16*P,P=16*(P+1),F?(c.y=s.sa,c.O=s.ta+w,c.f=s.qa,c.N=s.ra+_,c.ea=s.Ha,c.W=s.Ia+_):(L-=y,c.y=d,c.O=p,c.f=g,c.N=l,c.ea=m,c.W=v),b||(P-=y),P>c.o&&(P=c.o),c.F=null,c.J=null,null!=s.Fa&&0<s.Fa.length&&L<P&&(c.J=lr(s,c,L,P-L),c.F=s.mb,null==c.F&&0==c.F.length)){u=Jt(s,3,"Could not decode alpha data.");break t}L<c.j&&(y=c.j-L,L=c.j,e(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),null!=c.F&&(c.J+=c.width*y)),L<P&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,null!=c.F&&(c.J+=c.v),c.ka=L-c.j,c.U=c.va-c.v,c.T=P-L,u=c.put(c))}o+1!=s.Ic||b||(n(s.sa,s.ta-h,d,p+16*s.R,h),n(s.qa,s.ra-f,g,l+8*s.B,f),n(s.Ha,s.Ia-f,m,v+8*s.B,f))}if(!u)return Jt(t,6,"Output aborted.")}return 1}(t,r)),null!=r.bc&&r.bc(r),s&=1}return s?(t.cb=0,s):0}function te(t,e,r,n,i){i=t[e+r+32*n]+(i>>3),t[e+r+32*n]=-256&i?0>i?0:255:i}function ee(t,e,r,n,i,a){te(t,e,0,r,n+i),te(t,e,1,r,n+a),te(t,e,2,r,n-a),te(t,e,3,r,n-i)}function re(t){return(20091*t>>16)+t}function ne(t,e,r,n){var i,o=0,s=a(16);for(i=0;4>i;++i){var c=t[e+0]+t[e+8],u=t[e+0]-t[e+8],h=(35468*t[e+4]>>16)-re(t[e+12]),l=re(t[e+4])+(35468*t[e+12]>>16);s[o+0]=c+l,s[o+1]=u+h,s[o+2]=u-h,s[o+3]=c-l,o+=4,e++}for(i=o=0;4>i;++i)c=(t=s[o+0]+4)+s[o+8],u=t-s[o+8],h=(35468*s[o+4]>>16)-re(s[o+12]),te(r,n,0,0,c+(l=re(s[o+4])+(35468*s[o+12]>>16))),te(r,n,1,0,u+h),te(r,n,2,0,u-h),te(r,n,3,0,c-l),o++,n+=32}function ie(t,e,r,n){var i=t[e+0]+4,a=35468*t[e+4]>>16,o=re(t[e+4]),s=35468*t[e+1]>>16;ee(r,n,0,i+o,t=re(t[e+1]),s),ee(r,n,1,i+a,t,s),ee(r,n,2,i-a,t,s),ee(r,n,3,i-o,t,s)}function ae(t,e,r,n,i){ne(t,e,r,n),i&&ne(t,e+16,r,n+4)}function oe(t,e,r,n){on(t,e+0,r,n,1),on(t,e+32,r,n+128,1)}function se(t,e,r,n){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)te(r,n,e,i,t)}function ce(t,e,r,n){t[e+0]&&un(t,e+0,r,n),t[e+16]&&un(t,e+16,r,n+4),t[e+32]&&un(t,e+32,r,n+128),t[e+48]&&un(t,e+48,r,n+128+4)}function ue(t,e,r,n){var i,o=a(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],c=t[e+4+i]+t[e+8+i],u=t[e+4+i]-t[e+8+i],h=t[e+0+i]-t[e+12+i];o[0+i]=s+c,o[8+i]=s-c,o[4+i]=h+u,o[12+i]=h-u}for(i=0;4>i;++i)s=(t=o[0+4*i]+3)+o[3+4*i],c=o[1+4*i]+o[2+4*i],u=o[1+4*i]-o[2+4*i],h=t-o[3+4*i],r[n+0]=s+c>>3,r[n+16]=h+u>>3,r[n+32]=s-c>>3,r[n+48]=h-u>>3,n+=64}function he(t,e,r){var n,i=e-32,a=Bn,o=255-t[i-1];for(n=0;n<r;++n){var s,c=a,u=o+t[e-1];for(s=0;s<r;++s)t[e+s]=c[u+t[i+s]];e+=32}}function le(t,e){he(t,e,4)}function fe(t,e){he(t,e,8)}function de(t,e){he(t,e,16)}function pe(t,e){var r;for(r=0;16>r;++r)n(t,e+32*r,t,e-32,16)}function ge(t,e){var r;for(r=16;0<r;--r)i(t,e,t[e-1],16),e+=32}function me(t,e,r){var n;for(n=0;16>n;++n)i(e,r+32*n,t,16)}function ve(t,e){var r,n=16;for(r=0;16>r;++r)n+=t[e-1+32*r]+t[e+r-32];me(n>>5,t,e)}function be(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e-1+32*r];me(n>>4,t,e)}function ye(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e+r-32];me(n>>4,t,e)}function we(t,e){me(128,t,e)}function Ne(t,e,r){return t+2*e+r+2>>2}function Le(t,e){var r,i=e-32;i=new Uint8Array([Ne(t[i-1],t[i+0],t[i+1]),Ne(t[i+0],t[i+1],t[i+2]),Ne(t[i+1],t[i+2],t[i+3]),Ne(t[i+2],t[i+3],t[i+4])]);for(r=0;4>r;++r)n(t,e+32*r,i,0,i.length)}function Ae(t,e){var r=t[e-1],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96];F(t,e+0,16843009*Ne(t[e-1-32],r,n)),F(t,e+32,16843009*Ne(r,n,i)),F(t,e+64,16843009*Ne(n,i,a)),F(t,e+96,16843009*Ne(i,a,a))}function xe(t,e){var r,n=4;for(r=0;4>r;++r)n+=t[e+r-32]+t[e-1+32*r];for(n>>=3,r=0;4>r;++r)i(t,e+32*r,n,4)}function Se(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+96]=Ne(n,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=Ne(r,n,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=Ne(a,r,n),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=Ne(o,a,r),t[e+3+64]=t[e+2+32]=t[e+1+0]=Ne(s,o,a),t[e+3+32]=t[e+2+0]=Ne(c,s,o),t[e+3+0]=Ne(u,c,s)}function _e(t,e){var r=t[e+1-32],n=t[e+2-32],i=t[e+3-32],a=t[e+4-32],o=t[e+5-32],s=t[e+6-32],c=t[e+7-32];t[e+0+0]=Ne(t[e+0-32],r,n),t[e+1+0]=t[e+0+32]=Ne(r,n,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=Ne(n,i,a),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=Ne(i,a,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=Ne(a,o,s),t[e+3+64]=t[e+2+96]=Ne(o,s,c),t[e+3+96]=Ne(s,c,c)}function Pe(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=a+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+c+1>>1,t[e+3+0]=c+u+1>>1,t[e+0+96]=Ne(i,n,r),t[e+0+64]=Ne(n,r,a),t[e+0+32]=t[e+1+96]=Ne(r,a,o),t[e+1+32]=t[e+2+96]=Ne(a,o,s),t[e+2+32]=t[e+3+96]=Ne(o,s,c),t[e+3+32]=Ne(s,c,u)}function ke(t,e){var r=t[e+0-32],n=t[e+1-32],i=t[e+2-32],a=t[e+3-32],o=t[e+4-32],s=t[e+5-32],c=t[e+6-32],u=t[e+7-32];t[e+0+0]=r+n+1>>1,t[e+1+0]=t[e+0+64]=n+i+1>>1,t[e+2+0]=t[e+1+64]=i+a+1>>1,t[e+3+0]=t[e+2+64]=a+o+1>>1,t[e+0+32]=Ne(r,n,i),t[e+1+32]=t[e+0+96]=Ne(n,i,a),t[e+2+32]=t[e+1+96]=Ne(i,a,o),t[e+3+32]=t[e+2+96]=Ne(a,o,s),t[e+3+64]=Ne(o,s,c),t[e+3+96]=Ne(s,c,u)}function Fe(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96];t[e+0+0]=r+n+1>>1,t[e+2+0]=t[e+0+32]=n+i+1>>1,t[e+2+32]=t[e+0+64]=i+a+1>>1,t[e+1+0]=Ne(r,n,i),t[e+3+0]=t[e+1+32]=Ne(n,i,a),t[e+3+32]=t[e+1+64]=Ne(i,a,a),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=a}function Ie(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],a=t[e-1+96],o=t[e-1-32],s=t[e+0-32],c=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=r+o+1>>1,t[e+0+32]=t[e+2+64]=n+r+1>>1,t[e+0+64]=t[e+2+96]=i+n+1>>1,t[e+0+96]=a+i+1>>1,t[e+3+0]=Ne(s,c,u),t[e+2+0]=Ne(o,s,c),t[e+1+0]=t[e+3+32]=Ne(r,o,s),t[e+1+32]=t[e+3+64]=Ne(n,r,o),t[e+1+64]=t[e+3+96]=Ne(i,n,r),t[e+1+96]=Ne(a,i,n)}function Ce(t,e){var r;for(r=0;8>r;++r)n(t,e+32*r,t,e-32,8)}function je(t,e){var r;for(r=0;8>r;++r)i(t,e,t[e-1],8),e+=32}function Oe(t,e,r){var n;for(n=0;8>n;++n)i(e,r+32*n,t,8)}function Be(t,e){var r,n=8;for(r=0;8>r;++r)n+=t[e+r-32]+t[e-1+32*r];Oe(n>>4,t,e)}function Me(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e+r-32];Oe(n>>3,t,e)}function Ee(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e-1+32*r];Oe(n>>3,t,e)}function qe(t,e){Oe(128,t,e)}function De(t,e,r){var n=t[e-r],i=t[e+0],a=3*(i-n)+jn[1020+t[e-2*r]-t[e+r]],o=On[112+(a+4>>3)];t[e-r]=Bn[255+n+On[112+(a+3>>3)]],t[e+0]=Bn[255+i-o]}function Re(t,e,r,n){var i=t[e+0],a=t[e+r];return Mn[255+t[e-2*r]-t[e-r]]>n||Mn[255+a-i]>n}function Te(t,e,r,n){return 4*Mn[255+t[e-r]-t[e+0]]+Mn[255+t[e-2*r]-t[e+r]]<=n}function Ue(t,e,r,n,i){var a=t[e-3*r],o=t[e-2*r],s=t[e-r],c=t[e+0],u=t[e+r],h=t[e+2*r],l=t[e+3*r];return 4*Mn[255+s-c]+Mn[255+o-u]>n?0:Mn[255+t[e-4*r]-a]<=i&&Mn[255+a-o]<=i&&Mn[255+o-s]<=i&&Mn[255+l-h]<=i&&Mn[255+h-u]<=i&&Mn[255+u-c]<=i}function ze(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)Te(t,e+n,r,i)&&De(t,e+n,r)}function He(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)Te(t,e+n*r,1,i)&&De(t,e+n*r,1)}function We(t,e,r,n){var i;for(i=3;0<i;--i)ze(t,e+=4*r,r,n)}function Ve(t,e,r,n){var i;for(i=3;0<i;--i)He(t,e+=4,r,n)}function Ge(t,e,r,n,i,a,o,s){for(a=2*a+1;0<i--;){if(Ue(t,e,r,a,o))if(Re(t,e,r,s))De(t,e,r);else{var c=t,u=e,h=r,l=c[u-2*h],f=c[u-h],d=c[u+0],p=c[u+h],g=c[u+2*h],m=27*(b=jn[1020+3*(d-f)+jn[1020+l-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;c[u-3*h]=Bn[255+c[u-3*h]+b],c[u-2*h]=Bn[255+l+v],c[u-h]=Bn[255+f+m],c[u+0]=Bn[255+d-m],c[u+h]=Bn[255+p-v],c[u+2*h]=Bn[255+g-b]}e+=n}}function Ye(t,e,r,n,i,a,o,s){for(a=2*a+1;0<i--;){if(Ue(t,e,r,a,o))if(Re(t,e,r,s))De(t,e,r);else{var c=t,u=e,h=r,l=c[u-h],f=c[u+0],d=c[u+h],p=On[112+((g=3*(f-l))+4>>3)],g=On[112+(g+3>>3)],m=p+1>>1;c[u-2*h]=Bn[255+c[u-2*h]+m],c[u-h]=Bn[255+l+g],c[u+0]=Bn[255+f-p],c[u+h]=Bn[255+d-m]}e+=n}}function Je(t,e,r,n,i,a){Ge(t,e,r,1,16,n,i,a)}function Xe(t,e,r,n,i,a){Ge(t,e,1,r,16,n,i,a)}function Ke(t,e,r,n,i,a){var o;for(o=3;0<o;--o)Ye(t,e+=4*r,r,1,16,n,i,a)}function Ze(t,e,r,n,i,a){var o;for(o=3;0<o;--o)Ye(t,e+=4,1,r,16,n,i,a)}function $e(t,e,r,n,i,a,o,s){Ge(t,e,i,1,8,a,o,s),Ge(r,n,i,1,8,a,o,s)}function Qe(t,e,r,n,i,a,o,s){Ge(t,e,1,i,8,a,o,s),Ge(r,n,1,i,8,a,o,s)}function tr(t,e,r,n,i,a,o,s){Ye(t,e+4*i,i,1,8,a,o,s),Ye(r,n+4*i,i,1,8,a,o,s)}function er(t,e,r,n,i,a,o,s){Ye(t,e+4,1,i,8,a,o,s),Ye(r,n+4,1,i,8,a,o,s)}function rr(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ct,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nr(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ir(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ar(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new l}function or(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ar,this.ab=0,this.gc=o(4,ir),this.Oc=0}function sr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cr(t,e,r,n,i,a,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)i[a+e]=t+r[n+e]&255,t=i[a+e]}function ur(t,e,r,n,i,a,o){var s;if(null==t)cr(null,null,r,n,i,a,o);else for(s=0;s<o;++s)i[a+s]=t[e+s]+r[n+s]&255}function hr(t,e,r,n,i,a,o){if(null==t)cr(null,null,r,n,i,a,o);else{var s,c=t[e+0],u=c,h=c;for(s=0;s<o;++s)u=h+(c=t[e+s])-u,h=r[n+s]+(-256&u?0>u?0:255:u)&255,u=c,i[a+s]=h}}function lr(t,r,i,o){var s=r.width,c=r.o;if(e(null!=t&&null!=r),0>i||0>=o||i+o>c)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new sr,(u=null==t.ga)||(u=r.width*r.o,e(0==t.Gb.length),t.Gb=a(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var h=t.Fa,l=t.P,f=t.qc,d=t.mb,p=t.nb,g=l+1,m=f-1,b=u.l;if(e(null!=h&&null!=d&&null!=r),mi[0]=null,mi[1]=cr,mi[2]=ur,mi[3]=hr,u.ca=d,u.tb=p,u.c=r.width,u.i=r.height,e(0<u.c&&0<u.i),1>=f)r=0;else if(u.$a=h[l+0]>>0&3,u.Z=h[l+0]>>2&3,u.Lc=h[l+0]>>4&3,l=h[l+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||l)r=0;else if(b.put=dt,b.ac=ft,b.bc=pt,b.ma=u,b.width=r.width,b.height=r.height,b.Da=r.Da,b.v=r.v,b.va=r.va,b.j=r.j,b.o=r.o,u.$a)t:{e(1==u.$a),r=kt();e:for(;;){if(null==r){r=0;break t}if(e(null!=u),u.mc=r,r.c=u.c,r.i=u.i,r.l=u.l,r.l.ma=u,r.l.width=u.c,r.l.height=u.i,r.a=0,v(r.m,h,g,m),!Ft(u.c,u.i,1,r,null))break e;if(1==r.ab&&3==r.gc[0].hc&&At(r.s)?(u.ic=1,h=r.c*r.i,r.Ta=null,r.Ua=0,r.V=a(h),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(u.ic=0,r=It(r,u.c)),!r)break e;r=1;break t}u.mc=null,r=0}else r=m>=u.c*u.i;u=!r}if(u)return null;1!=t.ga.Lc?t.Ga=0:o=c-i}e(null!=t.ga),e(i+o<=c);t:{if(r=(h=t.ga).c,c=h.l.o,0==h.$a){if(g=t.rc,m=t.Vc,b=t.Fa,l=t.P+1+i*r,f=t.mb,d=t.nb+i*r,e(l<=t.P+t.qc),0!=h.Z)for(e(null!=mi[h.Z]),u=0;u<o;++u)mi[h.Z](g,m,b,l,f,d,r),g=f,m=d,d+=r,l+=r;else for(u=0;u<o;++u)n(f,d,b,l,r),g=f,m=d,d+=r,l+=r;t.rc=g,t.Vc=m}else{if(e(null!=h.mc),r=i+o,e(null!=(u=h.mc)),e(r<=u.i),u.C>=r)r=1;else if(h.ic||mr(),h.ic){h=u.V,g=u.Ba,m=u.c;var y=u.i,w=(b=1,l=u.$/m,f=u.$%m,d=u.m,p=u.s,u.$),N=m*y,L=m*r,x=p.wc,_=w<L?wt(p,f,l):null;e(w<=N),e(r<=y),e(At(p));e:for(;;){for(;!d.h&&w<L;){if(f&x||(_=wt(p,f,l)),e(null!=_),S(d),256>(y=bt(_.G[0],_.H[0],d)))h[g+w]=y,++w,++f>=m&&(f=0,++l<=r&&!(l%16)&&St(u,l));else{if(!(280>y)){b=0;break e}y=mt(y-256,d);var P,k=bt(_.G[4],_.H[4],d);if(S(d),!(w>=(k=vt(m,k=mt(k,d)))&&N-w>=y)){b=0;break e}for(P=0;P<y;++P)h[g+w+P]=h[g+w+P-k];for(w+=y,f+=y;f>=m;)f-=m,++l<=r&&!(l%16)&&St(u,l);w<L&&f&x&&(_=wt(p,f,l))}e(d.h==A(d))}St(u,l>r?r:l);break e}!b||d.h&&w<N?(b=0,u.a=d.h?5:3):u.$=w,r=b}else r=_t(u,u.V,u.Ba,u.c,u.i,r,Ct);if(!r){o=0;break t}}i+o>=c&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}function fr(t,e,r,n,i,a){for(;0<i--;){var o,s=t,c=e+(r?1:0),u=t,h=e+(r?0:3);for(o=0;o<n;++o){var l=u[h+4*o];255!=l&&(l*=32897,s[c+4*o+0]=s[c+4*o+0]*l>>23,s[c+4*o+1]=s[c+4*o+1]*l>>23,s[c+4*o+2]=s[c+4*o+2]*l>>23)}e+=a}}function dr(t,e,r,n,i){for(;0<n--;){var a;for(a=0;a<r;++a){var o=t[e+2*a+0],s=15&(u=t[e+2*a+1]),c=4369*s,u=(240&u|u>>4)*c>>16;t[e+2*a+0]=(240&o|o>>4)*c>>16&240|(15&o|o<<4)*c>>16>>4&15,t[e+2*a+1]=240&u|s}e+=i}}function pr(t,e,r,n,i,a,o,s){var c,u,h=255;for(u=0;u<i;++u){for(c=0;c<n;++c){var l=t[e+c];a[o+4*c]=l,h&=l}e+=r,o+=s}return 255!=h}function gr(t,e,r,n,i){var a;for(a=0;a<i;++a)r[n+a]=t[e+a]>>8}function mr(){An=fr,xn=dr,Sn=pr,_n=gr}function vr(r,n,i){t[r]=function(t,r,a,o,s,c,u,h,l,f,d,p,g,m,v,b,y){var w,N=y-1>>1,L=s[c+0]|u[h+0]<<16,A=l[f+0]|d[p+0]<<16;e(null!=t);var x=3*L+A+131074>>2;for(n(t[r+0],255&x,x>>16,g,m),null!=a&&(x=3*A+L+131074>>2,n(a[o+0],255&x,x>>16,v,b)),w=1;w<=N;++w){var S=s[c+w]|u[h+w]<<16,_=l[f+w]|d[p+w]<<16,P=L+S+A+_+524296,k=P+2*(S+A)>>3;x=k+L>>1,L=(P=P+2*(L+_)>>3)+S>>1,n(t[r+2*w-1],255&x,x>>16,g,m+(2*w-1)*i),n(t[r+2*w-0],255&L,L>>16,g,m+(2*w-0)*i),null!=a&&(x=P+A>>1,L=k+_>>1,n(a[o+2*w-1],255&x,x>>16,v,b+(2*w-1)*i),n(a[o+2*w+0],255&L,L>>16,v,b+(2*w+0)*i)),L=S,A=_}1&y||(x=3*L+A+131074>>2,n(t[r+y-1],255&x,x>>16,g,m+(y-1)*i),null!=a&&(x=3*A+L+131074>>2,n(a[o+y-1],255&x,x>>16,v,b+(y-1)*i)))}}function br(){vi[En]=bi,vi[qn]=wi,vi[Dn]=yi,vi[Rn]=Ni,vi[Tn]=Li,vi[Un]=Ai,vi[zn]=xi,vi[Hn]=wi,vi[Wn]=Ni,vi[Vn]=Li,vi[Gn]=Ai}function yr(t){return t&~Ii?0>t?0:255:t>>Fi}function wr(t,e){return yr((19077*t>>8)+(26149*e>>8)-14234)}function Nr(t,e,r){return yr((19077*t>>8)-(6419*e>>8)-(13320*r>>8)+8708)}function Lr(t,e){return yr((19077*t>>8)+(33050*e>>8)-17685)}function Ar(t,e,r,n,i){n[i+0]=wr(t,r),n[i+1]=Nr(t,e,r),n[i+2]=Lr(t,e)}function xr(t,e,r,n,i){n[i+0]=Lr(t,e),n[i+1]=Nr(t,e,r),n[i+2]=wr(t,r)}function Sr(t,e,r,n,i){var a=Nr(t,e,r);e=a<<3&224|Lr(t,e)>>3,n[i+0]=248&wr(t,r)|a>>5,n[i+1]=e}function _r(t,e,r,n,i){var a=240&Lr(t,e)|15;n[i+0]=240&wr(t,r)|Nr(t,e,r)>>4,n[i+1]=a}function Pr(t,e,r,n,i){n[i+0]=255,Ar(t,e,r,n,i+1)}function kr(t,e,r,n,i){xr(t,e,r,n,i),n[i+3]=255}function Fr(t,e,r,n,i){Ar(t,e,r,n,i),n[i+3]=255}function Vt(t,e){return 0>t?0:t>e?e:t}function Ir(e,r,n){t[e]=function(t,e,i,a,o,s,c,u,h){for(var l=u+(-2&h)*n;u!=l;)r(t[e+0],i[a+0],o[s+0],c,u),r(t[e+1],i[a+0],o[s+0],c,u+n),e+=2,++a,++s,u+=2*n;1&h&&r(t[e+0],i[a+0],o[s+0],c,u)}}function Cr(t,e,r){return 0==r?0==t?0==e?6:5:0==e?4:0:r}function jr(t,e,r,n,i){switch(t>>>30){case 3:on(e,r,n,i,0);break;case 2:sn(e,r,n,i);break;case 1:un(e,r,n,i)}}function Or(t,e){var r,a,o=e.M,s=e.Nb,c=t.oc,u=t.pc+40,h=t.oc,l=t.pc+584,f=t.oc,d=t.pc+600;for(r=0;16>r;++r)c[u+32*r-1]=129;for(r=0;8>r;++r)h[l+32*r-1]=129,f[d+32*r-1]=129;for(0<o?c[u-1-32]=h[l-1-32]=f[d-1-32]=129:(i(c,u-32-1,127,21),i(h,l-32-1,127,9),i(f,d-32-1,127,9)),a=0;a<t.za;++a){var p=e.ya[e.aa+a];if(0<a){for(r=-1;16>r;++r)n(c,u+32*r-4,c,u+32*r+12,4);for(r=-1;8>r;++r)n(h,l+32*r-4,h,l+32*r+4,4),n(f,d+32*r-4,f,d+32*r+4,4)}var g=t.Gd,m=t.Hd+a,v=p.ad,b=p.Hc;if(0<o&&(n(c,u-32,g[m].y,0,16),n(h,l-32,g[m].f,0,8),n(f,d-32,g[m].ea,0,8)),p.Za){var y=c,w=u-32+16;for(0<o&&(a>=t.za-1?i(y,w,g[m].y[15],4):n(y,w,g[m+1].y,0,4)),r=0;4>r;r++)y[w+128+r]=y[w+256+r]=y[w+384+r]=y[w+0+r];for(r=0;16>r;++r,b<<=2)y=c,w=u+Di[r],fi[p.Ob[r]](y,w),jr(b,v,16*+r,y,w)}else if(y=Cr(a,o,p.Ob[0]),li[y](c,u),0!=b)for(r=0;16>r;++r,b<<=2)jr(b,v,16*+r,c,u+Di[r]);for(r=p.Gc,y=Cr(a,o,p.Dd),di[y](h,l),di[y](f,d),b=v,y=h,w=l,255&(p=r>>0)&&(170&p?cn(b,256,y,w):hn(b,256,y,w)),p=f,b=d,255&(r>>=8)&&(170&r?cn(v,320,p,b):hn(v,320,p,b)),o<t.Ub-1&&(n(g[m].y,0,c,u+480,16),n(g[m].f,0,h,l+224,8),n(g[m].ea,0,f,d+224,8)),r=8*s*t.B,g=t.sa,m=t.ta+16*a+16*s*t.R,v=t.qa,p=t.ra+8*a+r,b=t.Ha,y=t.Ia+8*a+r,r=0;16>r;++r)n(g,m+r*t.R,c,u+32*r,16);for(r=0;8>r;++r)n(v,p+r*t.B,h,l+32*r,8),n(b,y+r*t.B,f,d+32*r,8)}}function Br(t,n,i,a,o,s,c,u,h){var l=[0],f=[0],d=0,p=null!=h?h.kd:0,g=null!=h?h:new nr;if(null==t||12>i)return 7;g.data=t,g.w=n,g.ha=i,n=[n],i=[i],g.gb=[g.gb];t:{var m=n,b=i,y=g.gb;if(e(null!=t),e(null!=b),e(null!=y),y[0]=0,12<=b[0]&&!r(t,m[0],"RIFF")){if(r(t,m[0]+8,"WEBP")){y=3;break t}var w=j(t,m[0]+4);if(12>w||4294967286<w){y=3;break t}if(p&&w>b[0]-8){y=7;break t}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],i=i[0];;){t:{var L=t;b=n,y=i;var A=l,x=f,S=m=[0];if((k=d=[d])[0]=0,8>y[0])y=7;else{if(!r(L,b[0],"VP8X")){if(10!=j(L,b[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var _=j(L,b[0]+8),P=1+C(L,b[0]+12);if(2147483648<=P*(L=1+C(L,b[0]+15))){y=3;break t}null!=S&&(S[0]=_),null!=A&&(A[0]=P),null!=x&&(x[0]=L),b[0]+=18,y[0]-=18,k[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=c&&(c[0]=b),null!=u&&(u[0]=0),c=l[0],m=f[0],d&&b&&null==h){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!r(t,n[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{_=t,y=n,w=i;var k=g.gb;A=g.na,x=g.P,S=g.Sa;P=22,e(null!=_),e(null!=w),L=y[0];var F=w[0];for(e(null!=A),e(null!=S),A[0]=null,x[0]=null,S[0]=0;;){if(y[0]=L,w[0]=F,8>F){y=7;break t}var I=j(_,L+4);if(4294967286<I){y=3;break t}var O=8+I+1&-2;if(P+=O,0<k&&P>k){y=3;break t}if(!r(_,L,"VP8 ")||!r(_,L,"VP8L")){y=0;break t}if(F[0]<O){y=7;break t}r(_,L,"ALPH")||(A[0]=_,x[0]=L+8,S[0]=I),L+=O,F-=O}}if(i=i[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}i=[i],g.Ja=[g.Ja],g.xa=[g.xa];t:if(k=t,y=n,w=i,A=g.gb[0],x=g.Ja,S=g.xa,_=y[0],L=!r(k,_,"VP8 "),P=!r(k,_,"VP8L"),e(null!=k),e(null!=w),e(null!=x),e(null!=S),8>w[0])y=7;else{if(L||P){if(k=j(k,_+4),12<=A&&k>A-12){y=3;break t}if(p&&k>w[0]-8){y=7;break t}x[0]=k,y[0]+=8,w[0]-=8,S[0]=P}else S[0]=5<=w[0]&&47==k[_+0]&&!(k[_+4]>>5),x[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],n=n[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==u||b||(u[0]=g.xa?2:1),c=[c],m=[m],g.xa){if(5>i){y=7;break}u=c,p=m,b=s,null==t||5>i?t=0:5<=i&&47==t[n+0]&&!(t[n+4]>>5)?(w=[0],k=[0],A=[0],v(x=new N,t,n,i),gt(x,w,k,A)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=k[0]),null!=b&&(b[0]=A[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=m,null==t||10>i||!Xt(t,n+3,i-3)?t=0:(p=t[n+0]|t[n+1]<<8|t[n+2]<<16,b=16383&(t[n+7]<<8|t[n+6]),t=16383&(t[n+9]<<8|t[n+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!t?t=0:(c&&(c[0]=b),u&&(u[0]=t),t=1))}if(!t)return 3;if(c=c[0],m=m[0],d&&(l[0]!=c||f[0]!=m))return 3;null!=h&&(h[0]=g,h.offset=n-h.w,e(4294967286>n-h.w),e(h.offset==h.ha-i));break}return 0==y||7==y&&d&&null==h?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=a&&(a[0]=c),null!=o&&(o[0]=m),0):y}function Mr(t,e,r){var n=e.width,i=e.height,a=0,o=0,s=n,c=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,c=t.bd,a=t.v,o=t.j,11>r||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=c||a+s>n||o+c>i))return 0;if(e.v=a,e.j=o,e.va=a+s,e.o=o+c,e.U=s,e.T=c,e.da=null!=t&&0<t.da,e.da){if(!E(s,c,r=[t.ib],a=[t.hb]))return 0;e.ib=r[0],e.hb=a[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*n/4&&e.hb<3*i/4,e.Kb=0),1}function Er(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function qr(t,e,r,n){if(null==n||0>=t||0>=e)return 2;if(null!=r){if(r.Da){var i=r.cd,o=r.bd,s=-2&r.v,c=-2&r.j;if(0>s||0>c||0>=i||0>=o||s+i>t||c+o>e)return 2;t=i,e=o}if(r.da){if(!E(t,e,i=[r.ib],o=[r.hb]))return 2;t=i[0],e=o[0]}}n.width=t,n.height=e;t:{var u=n.width,h=n.height;if(t=n.S,0>=u||0>=h||!(t>=En&&13>t))t=2;else{if(0>=n.Rd&&null==n.sd){s=o=i=e=0;var l=(c=u*zi[t])*h;if(11>t||(o=(h+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*h)),null==(h=a(l+2*o+s))){t=1;break t}n.sd=h,11>t?((u=n.f.RGBA).eb=h,u.fb=0,u.A=c,u.size=l):((u=n.f.kb).y=h,u.O=0,u.fa=c,u.Fd=l,u.f=h,u.N=0+l,u.Ab=e,u.Cd=o,u.ea=h,u.W=0+l+o,u.Db=e,u.Ed=o,12==t&&(u.F=h,u.J=0+l+2*o),u.Tc=s,u.lb=i)}if(e=1,i=n.S,o=n.width,s=n.height,i>=En&&13>i)if(11>i)t=n.f.RGBA,e&=(c=Math.abs(t.A))*(s-1)+o<=t.size,e&=c>=o*zi[i],e&=null!=t.eb;else{t=n.f.kb,c=(o+1)/2,l=(s+1)/2,u=Math.abs(t.fa);h=Math.abs(t.Ab);var f=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+o;e&=u*(s-1)+o<=t.Fd,e&=h*(l-1)+c<=t.Cd,e=(e&=f*(l-1)+c<=t.Ed)&u>=o&h>=c&f>=c,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=d>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=r&&r.fd&&(t=Er(n)),t}var Dr=64,Rr=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Tr=24,Ur=32,zr=8,Hr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];R("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,r){return e[r+0]},t.Predictor3=function(t,e,r){return e[r+1]},t.Predictor4=function(t,e,r){return e[r-1]},t.Predictor5=function(t,e,r){return U(U(t,e[r+1]),e[r+0])},t.Predictor6=function(t,e,r){return U(t,e[r-1])},t.Predictor7=function(t,e,r){return U(t,e[r+0])},t.Predictor8=function(t,e,r){return U(e[r-1],e[r+0])},t.Predictor9=function(t,e,r){return U(e[r+0],e[r+1])},t.Predictor10=function(t,e,r){return U(U(t,e[r-1]),U(e[r+0],e[r+1]))},t.Predictor11=function(t,e,r){var n=e[r+0];return 0>=W(n>>24&255,t>>24&255,(e=e[r-1])>>24&255)+W(n>>16&255,t>>16&255,e>>16&255)+W(n>>8&255,t>>8&255,e>>8&255)+W(255&n,255&t,255&e)?n:t},t.Predictor12=function(t,e,r){var n=e[r+0];return(z((t>>24&255)+(n>>24&255)-((e=e[r-1])>>24&255))<<24|z((t>>16&255)+(n>>16&255)-(e>>16&255))<<16|z((t>>8&255)+(n>>8&255)-(e>>8&255))<<8|z((255&t)+(255&n)-(255&e)))>>>0},t.Predictor13=function(t,e,r){var n=e[r-1];return(H((t=U(t,e[r+0]))>>24&255,n>>24&255)<<24|H(t>>16&255,n>>16&255)<<16|H(t>>8&255,n>>8&255)<<8|H(t>>0&255,n>>0&255))>>>0};var Wr=t.PredictorAdd0;t.PredictorAdd1=V,R("Predictor2","PredictorAdd2"),R("Predictor3","PredictorAdd3"),R("Predictor4","PredictorAdd4"),R("Predictor5","PredictorAdd5"),R("Predictor6","PredictorAdd6"),R("Predictor7","PredictorAdd7"),R("Predictor8","PredictorAdd8"),R("Predictor9","PredictorAdd9"),R("Predictor10","PredictorAdd10"),R("Predictor11","PredictorAdd11"),R("Predictor12","PredictorAdd12"),R("Predictor13","PredictorAdd13");var Vr=t.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Gr,Yr=t.ColorIndexInverseTransform,Jr=t.MapARGB,Xr=t.VP8LColorIndexInverseTransformAlpha,Kr=t.MapAlpha,Zr=t.VP8LPredictorsAdd=[];Zr.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var $r,Qr,tn,en,rn,nn,an,on,sn,cn,un,hn,ln,fn,dn,pn,gn,mn,vn,bn,yn,wn,Nn,Ln,An,xn,Sn,_n,Pn=a(511),kn=a(2041),Fn=a(225),In=a(767),Cn=0,jn=kn,On=Fn,Bn=In,Mn=Pn,En=0,qn=1,Dn=2,Rn=3,Tn=4,Un=5,zn=6,Hn=7,Wn=8,Vn=9,Gn=10,Yn=[2,3,7],Jn=[3,3,11],Xn=[280,256,256,256,40],Kn=[0,1,1,1,0],Zn=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],$n=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Qn=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ei=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ri=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ni=null,ii=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ai=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ci=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ui=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],hi=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],li=[],fi=[],di=[],pi=1,gi=2,mi=[],vi=[];vr("UpsampleRgbLinePair",Ar,3),vr("UpsampleBgrLinePair",xr,3),vr("UpsampleRgbaLinePair",Fr,4),vr("UpsampleBgraLinePair",kr,4),vr("UpsampleArgbLinePair",Pr,4),vr("UpsampleRgba4444LinePair",_r,2),vr("UpsampleRgb565LinePair",Sr,2);var bi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,wi=t.UpsampleRgbaLinePair,Ni=t.UpsampleBgraLinePair,Li=t.UpsampleArgbLinePair,Ai=t.UpsampleRgba4444LinePair,xi=t.UpsampleRgb565LinePair,Si=16,_i=1<<Si-1,Pi=-227,ki=482,Fi=6,Ii=(256<<Fi)-1,Ci=0,ji=a(256),Oi=a(256),Bi=a(256),Mi=a(256),Ei=a(ki-Pi),qi=a(ki-Pi);Ir("YuvToRgbRow",Ar,3),Ir("YuvToBgrRow",xr,3),Ir("YuvToRgbaRow",Fr,4),Ir("YuvToBgraRow",kr,4),Ir("YuvToArgbRow",Pr,4),Ir("YuvToRgba4444Row",_r,2),Ir("YuvToRgb565Row",Sr,2);var Di=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ri=[0,2,8],Ti=[8,7,6,4,4,2,2,2,1,1,1,1],Ui=1;this.WebPDecodeRGBA=function(t,r,n,i,a){var o=qn,s=new rr,c=new ot;s.ba=c,c.S=o,c.width=[c.width],c.height=[c.height];var u=c.width,h=c.height,l=new st;if(null==l||null==t)var f=2;else e(null!=l),f=Br(t,r,n,l.width,l.height,l.Pd,l.Qd,l.format,null);if(0!=f?u=0:(null!=u&&(u[0]=l.width[0]),null!=h&&(h[0]=l.height[0]),u=1),u){c.width=c.width[0],c.height=c.height[0],null!=i&&(i[0]=c.width),null!=a&&(a[0]=c.height);t:{if(i=new Gt,(a=new nr).data=t,a.w=r,a.ha=n,a.kd=1,r=[0],e(null!=a),(0==(t=Br(a.data,a.w,a.ha,null,null,null,r,null,a))||7==t)&&r[0]&&(t=4),0==(r=t)){if(e(null!=s),i.data=a.data,i.w=a.w+a.offset,i.ha=a.ha-a.offset,i.put=dt,i.ac=ft,i.bc=pt,i.ma=s,a.xa){if(null==(t=kt())){s=1;break t}if(function(t,r){var n=[0],i=[0],a=[0];e:for(;;){if(null==t)return 0;if(null==r)return t.a=2,0;if(t.l=r,t.a=0,v(t.m,r.data,r.w,r.ha),!gt(t.m,n,i,a)){t.a=3;break e}if(t.xb=gi,r.width=n[0],r.height=i[0],!Ft(n[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(r=qr(i.width,i.height,s.Oa,s.ba))){e:{i=t;r:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(n=i.l)),e(null!=(a=n.ma)),0!=i.xb){if(i.ca=a.ba,i.tb=a.tb,e(null!=i.ca),!Mr(a.Oa,n,Rn)){i.a=2;break r}if(!It(i,n.width))break r;if(n.da)break r;if((n.da||nt(i.ca.S))&&mr(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&mr()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!O(i.s.vb,i.s.Wa.Xa)){i.a=1;break r}i.xb=0}if(!_t(i,i.V,i.Ba,i.c,i.i,n.o,Lt))break r;a.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(r=t.a)}else r=t.a}else{if(null==(t=new Yt)){s=1;break t}if(t.Fa=a.na,t.P=a.P,t.qc=a.Sa,Kt(t,i)){if(0==(r=qr(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,n=s.Oa,e(null!=(a=t)),null!=n){if(0<(u=0>(u=n.Md)?0:100<u?255:255*u/100)){for(h=l=0;4>h;++h)12>(f=a.pb[h]).lc&&(f.ia=u*Ti[0>f.lc?0:f.lc]>>3),l|=f.ia;l&&(alert("todo:VP8InitRandom"),a.ia=1)}a.Ga=n.Id,100<a.Ga?a.Ga=100:0>a.Ga&&(a.Ga=0)}Qt(t,i)||(r=t.a)}}else r=t.a}0==r&&null!=s.Oa&&s.Oa.fd&&(r=Er(s.ba))}s=r}o=0!=s?null:11>o?c.f.RGBA.eb:c.f.kb.y}else o=null;return o};var zi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(t[e++]);return r}function h(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function l(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new c;var f=[0],d=[0],p=[],g=new c,m=t,v=function(t,e){var r={},n=0,i=!1,a=0,o=0;if(r.frames=[],!
/** @license
     * Copyright (c) 2017 Dominik Homberger
    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    https://webpjs.appspot.com
    WebPRiffParser dominikhlbg@gmail.com
    */
function(t,e,r,n){for(var i=0;i<n;i++)if(t[e+i]!=r.charCodeAt(i))return!0;return!1}(t,e,"RIFF",4)){var s,c;l(t,e+=4);for(e+=8;e<t.length;){var f=u(t,e),d=l(t,e+=4);e+=4;var p=d+(1&d);switch(f){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={});(v=r.frames[n]).src_off=i?o:e-8,v.src_size=a+d+8,n++,i&&(i=!1,a=0,o=0);break;case"VP8X":(v=r.header={}).feature_flags=t[e];var g=e+4;v.canvas_width=1+h(t,g);g+=3;v.canvas_height=1+h(t,g);g+=3;break;case"ALPH":i=!0,a=p+8,o=e-8;break;case"ANIM":(v=r.header).bgcolor=l(t,e);g=e+4;v.loop_count=(s=t)[(c=g)+0]<<0|s[c+1]<<8;g+=2;break;case"ANMF":var m,v;(v=r.frames[n]={}).offset_x=2*h(t,e),e+=3,v.offset_y=2*h(t,e),e+=3,v.width=1+h(t,e),e+=3,v.height=1+h(t,e),e+=3,v.duration=h(t,e),e+=3,m=t[e++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=f&&(e+=p)}return r}}(m,0);v.response=m,v.rgbaoutput=!0,v.dataurl=!1;var b=v.header?v.header:null,y=v.frames?v.frames:null;if(b){b.loop_counter=b.loop_count,f=[b.canvas_height],d=[b.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var N=y[0],L=g.WebPDecodeRGBA(m,N.src_off,N.src_size,d,f);N.rgba=L,N.imgwidth=d[0],N.imgheight=f[0];for(var A=0;A<d[0]*f[0]*4;A++)p[A]=L[A];return this.width=d,this.height=f,this.data=p,this}!function(t){var e=function(){return!0},r=function(e,r,i,u){var h=4,l=o;switch(u){case t.image_compression.FAST:h=1,l=a;break;case t.image_compression.MEDIUM:h=6,l=s;break;case t.image_compression.SLOW:h=9,l=c}var f=_e(e=n(e,r,i,l),{level:h});return t.__addimage__.arrayBufferToBinaryString(f)},n=function(t,e,r,n){for(var i,a,o,s=t.length/e,c=new Uint8Array(t.length+s),u=h(),f=0;f<s;f+=1){if(o=f*e,i=t.subarray(o,o+e),n)c.set(n(i,r,a),o+f);else{for(var d,p=u.length,g=[];d<p;d+=1)g[d]=u[d](i,r,a);var m=l(g.concat());c.set(g[m],o+f)}a=i}return c},i=function(t){var e=Array.apply([],t);return e.unshift(0),e},a=function(t,e){var r,n=[],i=t.length;n[0]=1;for(var a=0;a<i;a+=1)r=t[a-e]||0,n[a+1]=t[a]-r+256&255;return n},o=function(t,e,r){var n,i=[],a=t.length;i[0]=2;for(var o=0;o<a;o+=1)n=r&&r[o]||0,i[o+1]=t[o]-n+256&255;return i},s=function(t,e,r){var n,i,a=[],o=t.length;a[0]=3;for(var s=0;s<o;s+=1)n=t[s-e]||0,i=r&&r[s]||0,a[s+1]=t[s]+256-(n+i>>>1)&255;return a},c=function(t,e,r){var n,i,a,o,s=[],c=t.length;s[0]=4;for(var h=0;h<c;h+=1)n=t[h-e]||0,i=r&&r[h]||0,a=r&&r[h-e]||0,o=u(n,i,a),s[h+1]=t[h]-o+256&255;return s},u=function(t,e,r){if(t===e&&e===r)return t;var n=Math.abs(e-r),i=Math.abs(t-r),a=Math.abs(t+e-r-r);return n<=i&&n<=a?t:i<=a?e:r},h=function(){return[i,a,o,s,c]},l=function(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,i,a,o){var s,c,u,h,l,f,d,p,g,m,v,b,y,w,N,L=this.decode.FLATE_DECODE,A="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(u=new Oe(n)).imgData,c=u.bits,s=u.colorSpace,l=u.colors,-1!==[4,6].indexOf(u.colorType)){if(8===u.bits){g=(p=32==u.pixelBitlength?new Uint32Array(u.decodePixels().buffer):16==u.pixelBitlength?new Uint16Array(u.decodePixels().buffer):new Uint8Array(u.decodePixels().buffer)).length,v=new Uint8Array(g*u.colors),m=new Uint8Array(g);var x,S=u.pixelBitlength-u.bits;for(w=0,N=0;w<g;w++){for(y=p[w],x=0;x<S;)v[N++]=y>>>x&255,x+=u.bits;m[w]=y>>>x&255}}if(16===u.bits){g=(p=new Uint32Array(u.decodePixels().buffer)).length,v=new Uint8Array(g*(32/u.pixelBitlength)*u.colors),m=new Uint8Array(g*(32/u.pixelBitlength)),b=u.colors>1,w=0,N=0;for(var _=0;w<g;)y=p[w++],v[N++]=y>>>0&255,b&&(v[N++]=y>>>16&255,y=p[w++],v[N++]=y>>>0&255),m[_++]=y>>>16&255;c=8}o!==t.image_compression.NONE&&e()?(n=r(v,u.width*u.colors,u.colors,o),d=r(m,u.width,1,o)):(n=v,d=m,L=void 0)}if(3===u.colorType&&(s=this.color_spaces.INDEXED,f=u.palette,u.transparency.indexed)){var P=u.transparency.indexed,k=0;for(w=0,g=P.length;w<g;++w)k+=P[w];if((k/=255)===g-1&&-1!==P.indexOf(0))h=[P.indexOf(0)];else if(k!==g){for(p=u.decodePixels(),m=new Uint8Array(p.length),w=0,g=p.length;w<g;w++)m[w]=P[p[w]];d=r(m,u.width,1)}}var F=function(e){var r;switch(e){case t.image_compression.FAST:r=11;break;case t.image_compression.MEDIUM:r=13;break;case t.image_compression.SLOW:r=14;break;default:r=12}return r}(o);return L===this.decode.FLATE_DECODE&&(A="/Predictor "+F+" "),A+="/Colors "+l+" /BitsPerComponent "+c+" /Columns "+u.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:a,data:n,index:i,filter:L,decodeParameters:A,transparency:h,palette:f,sMask:d,predictor:F,width:u.width,height:u.height,bitsPerComponent:c,colorSpace:s}}}}(M.API),function(t){t.processGIF89A=function(e,r,n,i){var a=new Be(e),o=a.width,s=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:o,height:s},h=new Ee(100).encode(u,100);return t.processJPEG.call(this,h,r,n,i)},t.processGIF87A=t.processGIF89A}(M.API),qe.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},qe.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){i.log("bit decode error:"+t)}},qe.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[a>>7-s&1];this.data[o+4*s]=c.blue,this.data[o+4*s+1]=c.green,this.data[o+4*s+2]=c.red,this.data[o+4*s+3]=255}0!==r&&(this.pos+=4-r)}},qe.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*i*4,s=a>>4,c=15&a,u=this.palette[s];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},qe.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}0!==t&&(this.pos+=4-t)}},qe.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,c=(a>>10&e)/e*255|0,u=a>>15?255:0,h=n*this.width*4+4*i;this.data[h]=c,this.data[h+1]=s,this.data[h+2]=o,this.data[h+3]=u}this.pos+=t}},qe.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,c=(o>>5&r)/r*255|0,u=(o>>11)/e*255|0,h=i*this.width*4+4*a;this.data[h]=u,this.data[h+1]=c,this.data[h+2]=s,this.data[h+3]=255}this.pos+=t}},qe.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},qe.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=o}},qe.prototype.getData=function(){return this.data},
/**
   * @license
   * Copyright (c) 2018 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.processBMP=function(e,r,n,i){var a=new qe(e,!1),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},u=new Ee(100).encode(c,100);return t.processJPEG.call(this,u,r,n,i)}}(M.API),De.prototype.getData=function(){return this.data},
/**
   * @license
   * Copyright (c) 2019 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.processWEBP=function(e,r,n,i){var a=new De(e,!1),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},u=new Ee(100).encode(c,100);return t.processJPEG.call(this,u,r,n,i)}}(M.API),
/**
   * @license
   *
   * Copyright (c) 2021 Antti Palola, https://github.com/Pantura
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){t.processRGBA=function(t,e,r){for(var n=t.data,i=n.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,c=0,u=0;u<i;u+=4){var h=n[u],l=n[u+1],f=n[u+2],d=n[u+3];a[s++]=h,a[s++]=l,a[s++]=f,o[c++]=d}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}}}(M.API),
/**
   * @license
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this}}(M.API),ke=M.API,Fe=ke.getCharWidthsArray=function(t,r){var n,i,a=(r=r||{}).font||this.internal.getFont(),o=r.fontSize||this.internal.getFontSize(),s=r.charSpace||this.internal.getCharSpace(),c=r.widths?r.widths:a.metadata.Unicode.widths,u=c.fof?c.fof:1,h=r.kerning?r.kerning:a.metadata.Unicode.kerning,l=h.fof?h.fof:1,f=!1!==r.doKerning,d=0,p=t.length,g=0,m=c[0]||u,v=[];for(n=0;n<p;n++)i=t.charCodeAt(n),"function"==typeof a.metadata.widthOfString?v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+s*(1e3/o)||0)/1e3):(d=f&&"object"===e(h[i])&&!isNaN(parseInt(h[i][g],10))?h[i][g]/l:0,v.push((c[i]||m)/u+d)),g=i;return v},Ie=ke.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return ke.processArabic&&(t=ke.processArabic(t)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(t,r,i)/r:Fe.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Ce=function(t,e,r,n){for(var i=[],a=0,o=t.length,s=0;a!==o&&s+e[a]<r;)s+=e[a],a++;i.push(t.slice(0,a));var c=a;for(s=0;a!==o;)s+e[a]>n&&(i.push(t.slice(c,a)),s=0,c=a),s+=e[a],a++;return c!==a&&i.push(t.slice(c,a)),i},je=function(t,e,r){r||(r={});var n,i,a,o,s,c,u,h=[],l=[h],f=r.textIndent||0,d=0,p=0,g=t.split(" "),m=Fe.apply(this,[" ",r])[0];if(c=-1===r.lineIndent?g[0].length+2:r.lineIndent||0){var v=Array(c).join(" "),b=[];g.map((function(t){(t=t.split(/\s*\n/)).length>1?b=b.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):b.push(t[0])})),g=b,c=Ie.apply(this,[v,r])}for(a=0,o=g.length;a<o;a++){var y=0;if(n=g[a],c&&"\n"==n[0]&&(n=n.substr(1),y=1),f+d+(p=(i=Fe.apply(this,[n,r])).reduce((function(t,e){return t+e}),0))>e||y){if(p>e){for(s=Ce.apply(this,[n,i,e-(f+d),e]),h.push(s.shift()),h=[s.pop()];s.length;)l.push([s.shift()]);p=i.slice(n.length-(h[0]?h[0].length:0)).reduce((function(t,e){return t+e}),0)}else h=[n];l.push(h),f=p+c,d=m}else h.push(n),f+=d+p,d=m}return u=c?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},l.map(u)},ke.splitTextToSize=function(t,e,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var s,c,u=[];for(s=0,c=n.length;s<c;s++)u=u.concat(je.apply(this,[n[s],o,a]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var r="klmnopqrstuvwxyz",n={},i={},a=0;a<r.length;a++)n[r[a]]="0123456789abcdef"[a],i["0123456789abcdef"[a]]=r[a];var o=function(t){return"0x"+parseInt(t,10).toString(16)},s=t.__fontmetrics__.compress=function(t){var r,n,a,c,u=["{"];for(var h in t){if(r=t[h],isNaN(parseInt(h,10))?n="'"+h+"'":(h=parseInt(h,10),n=(n=o(h).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof r)r<0?(a=o(r).slice(3),c="-"):(a=o(r).slice(2),c=""),a=c+a.slice(0,-1)+i[a.slice(-1)];else{if("object"!==e(r))throw new Error("Don't know what to do with value type "+e(r)+".");a=s(r)}u.push(n+a)}return u.push("}"),u.join("")},c=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,a,o={},s=1,c=o,u=[],h="",l="",f=t.length-1,d=1;d<f;d+=1)"'"==(a=t[d])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(a):"{"==a?(u.push([c,i]),c={},i=void 0):"}"==a?((r=u.pop())[0][r[1]]=c,i=void 0,c=r[0]):"-"==a?s=-1:void 0===i?n.hasOwnProperty(a)?(h+=n[a],i=parseInt(h,16)*s,s=1,h=""):h+=a:n.hasOwnProperty(a)?(l+=n[a],c[i]=parseInt(l,16)*s,s=1,i=void 0,l=""):l+=a;return o},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},l={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,r=l.Unicode[e.postScriptName];r&&(e.metadata.Unicode={},e.metadata.Unicode.widths=r.widths,e.metadata.Unicode.kerning=r.kerning);var n=h.Unicode[e.postScriptName];n&&(e.metadata.Unicode.encoding=n,e.encoding=n.codePages[0])}])}(M.API),
/**
   * @license
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r};t.API.events.push(["addFont",function(r){var n=void 0,i=r.font,a=r.instance;if(!i.isStandardFont){if(void 0===a)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(n=!1===a.existsFileInVFS(i.postScriptName)?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(r,n){n=/^\x00\x01\x00\x00/.test(n)?e(n):e(c(n)),r.metadata=t.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(i,n)}}])}(M),function(n){function a(){return(r.canvg?Promise.resolve(r.canvg):Promise.reject(new Error("Could not load canvg"))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}n.addSvgAsImage=function(t,e,r,n,o,s,c,u){if(isNaN(e)||isNaN(r))throw i.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(o))throw i.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=n,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return a().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),e,r,n,o,c,u)}))}}(M.API),
/**
   * @license
   * ====================================================================
   * Copyright (c) 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){t.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this}}(M.API),function(t){t.viewerPreferences=function(t,r){var n;t=t||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1}if("object"===e(t))for(a in t)if(o=t[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "))}n[a].value="["+u.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this}}(M.API),
/** ====================================================================
   * @license
   * jsPDF XMP metadata plugin
   * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(t)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),a=unescape(encodeURIComponent("</x:xmpmeta>")),o=r.length+n.length+i.length+e.length+a.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+r+n+i+a),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,n){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}}(M.API),function(t){var e=t.API,r=e.pdfEscape16=function(t,e){for(var r,n=e.metadata.Unicode.widths,i=["","0","00","000","0000"],a=[""],o=0,s=t.length;o<s;++o){if(r=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(r),e.metadata.toUnicode[r]=t.charCodeAt(o),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(e.metadata.widthOfGlyph(r),10)])),"0"==r)return a.join("");r=r.toString(16),a.push(i[4-r.length],r)}return a.join("")},n=function(t){var e,r,n,i,a,o,s;for(a="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],o=0,s=(r=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=r[o],n.length>=100&&(a+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),n.push("<"+e+"><"+i+">"));return n.length&&(a+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),a+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var r=e.font,i=e.out,a=e.newObject,o=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"Identity-H"===r.encoding){for(var s=r.metadata.Unicode.widths,c=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),u="",h=0;h<c.length;h++)u+=String.fromCharCode(c[h]);var l=a();o({data:u,addLength1:!0,objectId:l}),i("endobj");var f=a();o({data:n(r.metadata.toUnicode),addLength1:!0,objectId:f}),i("endobj");var d=a();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+F(r.fontName)),i("/FontFile2 "+l+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),i("/Flags "+r.metadata.flags),i("/StemV "+r.metadata.stemV),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i(">>"),i("endobj");var p=a();i("<<"),i("/Type /Font"),i("/BaseFont /"+F(r.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+t.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+r.encoding+")"),i(">>"),i(">>"),i("endobj"),r.objectNumber=a(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+f+" 0 R"),i("/BaseFont /"+F(r.fontName)),i("/Encoding /"+r.encoding),i("/DescendantFonts ["+p+" 0 R]"),i(">>"),i("endobj"),r.isAlreadyPutted=!0}}(e)}]);e.events.push(["putFont",function(e){!function(e){var r=e.font,i=e.out,a=e.newObject,o=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var s=r.metadata.rawData,c="",u=0;u<s.length;u++)c+=String.fromCharCode(s[u]);var h=a();o({data:c,addLength1:!0,objectId:h}),i("endobj");var l=a();o({data:n(r.metadata.toUnicode),addLength1:!0,objectId:l}),i("endobj");var f=a();i("<<"),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i("/StemV "+r.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+h+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),i("/FontName /"+F(r.fontName)),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i(">>"),i("endobj"),r.objectNumber=a();for(var d=0;d<r.metadata.hmtx.widths.length;d++)r.metadata.hmtx.widths[d]=parseInt(r.metadata.hmtx.widths[d]*(1e3/r.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+l+" 0 R/BaseFont/"+F(r.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),i("endobj"),r.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,n=t.text||"",i=t.x,a=t.y,o=t.options||{},s=t.mutex||{},c=s.pdfEscape,u=s.activeFontKey,h=s.fonts,l=u,f="",d=0,p="",g=h[l].encoding;if("Identity-H"!==h[l].encoding)return{text:n,x:i,y:a,options:o,mutex:s};for(p=n,l=u,Array.isArray(n)&&(p=n[0]),d=0;d<p.length;d+=1)h[l].metadata.hasOwnProperty("cmap")&&(e=h[l].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e||p[d].charCodeAt(0)<256&&h[l].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(l.slice(1))<14||"WinAnsiEncoding"===g?m=c(f,l).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=r(f,h[l])),s.isHex=!0,{text:m,x:i,y:a,options:o,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",r=[],n={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var a=0;for(a=0;a<e.length;a+=1)Array.isArray(e[a])&&3===e[a].length?r.push([i(Object.assign({},n,{text:e[a][0]})).text,e[a][1],e[a][2]]):r.push(i(Object.assign({},n,{text:e[a]})).text);t.text=r}else t.text=i(Object.assign({},n,{text:e})).text}])}(M),
/**
   * @license
   * jsPDF virtual FileSystem functionality
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,r){return e.call(this),this.internal.vFS[t]=r,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(M.API),
/**
   * @license
   * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
   * MIT License
   */
function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var r,n,i,a,o,s,c,u=e,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","Â«","Â»","Â«","â€¹","â€º","â€¹","â?…","â?†","â?…","â?½","â?¾","â?½","â‚?","â‚Ž","â‚?","â‰¤","â‰¥","â‰¤","âŒ©","âŒª","âŒ©","ï¹™","ï¹š","ï¹™","ï¹›","ï¹œ","ï¹›","ï¹?","ï¹ž","ï¹?","ï¹¤","ï¹¥","ï¹¤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),r=e>>8,n=d[r];return void 0!==n?u[256*n+(255&e)]:252===r||253===r?"AL":g.test(r)?"L":8===r?"R":"N"},y=function(t){for(var e,r=0;r<t.length;r++){if("L"===(e=b(t.charAt(r))))return!1;if("R"===e)return!0}return!1},w=function(t,e,o,s){var c,u,h,l,f=e[s];switch(f){case"L":case"R":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(c=o[s-1])&&"AN"!==c||"EN"!==(u=e[s+1])&&"AN"!==u?f="N":m&&(u="AN"),f=u===c?u:"N";break;case"ES":f="EN"===(c=s>0?o[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){f="EN";break}if(m){f="N";break}for(h=s+1,l=e.length;h<l&&"ET"===e[h];)h++;f=h<l&&"EN"===e[h]?"EN":"N";break;case"NSM":if(i&&!a){for(l=e.length,h=s+1;h<l&&"NSM"===e[h];)h++;if(h<l){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(c=e[h],p&&("R"===c||"AL"===c)){f="R";break}}}f=s<1||"B"===(c=e[s-1])?"N":o[s-1];break;case"B":m=!1,r=!0,f=v;break;case"S":n=!0,f="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"BN":f="N"}return f},N=function(t,e,r){var n=t.split("");return r&&L(n,r,{hiLevel:v}),n.reverse(),e&&e.reverse(),n.join("")},L=function(t,e,i){var a,o,s,c,u,d=-1,p=t.length,g=0,y=[],N=v?l:h,L=[];for(m=!1,r=!1,n=!1,o=0;o<p;o++)L[o]=b(t[o]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,L,y,s),a=240&(g=N[u][f[y[s]]]),g&=15,e[s]=c=N[g][5],a>0)if(16===a){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(N[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=c;d=-1}"B"===L[s]&&(e[s]=0),i.hiLevel|=c}n&&function(t,e,r){for(var n=0;n<r;n++)if("S"===t[n]){e[n]=v;for(var i=n-1;i>=0&&"WS"===t[i];i--)e[i]=v}}(L,e,p)},A=function(t,e,n,i,a){if(!(a.hiLevel<t)){if(1===t&&1===v&&!r)return e.reverse(),void(n&&n.reverse());for(var o,s,c,u,h=e.length,l=0;l<h;){if(i[l]>=t){for(c=l+1;c<h&&i[c]>=t;)c++;for(u=l,s=c-1;u<s;u++,s--)o=e[u],e[u]=e[s],e[s]=o,n&&(o=n[u],n[u]=n[s],n[s]=o);l=c}l++}}},x=function(t,e,r){var n=t.split(""),i={hiLevel:v};return r||(r=[]),L(n,r,i),function(t,e,r){if(0!==r.hiLevel&&c)for(var n,i=0;i<t.length;i++)1===e[i]&&(n=p.indexOf(t[i]))>=0&&(t[i]=p[n+1])}(n,r,i),A(2,n,e,r,i),A(1,n,e,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if(function(t,e){if(e)for(var r=0;r<t.length;r++)e[r]=r;void 0===a&&(a=y(t)),void 0===s&&(s=y(t))}(t,e),i||!o||s)if(i&&o&&a^s)v=a?1:0,t=N(t,e,r);else if(!i&&o&&s)v=a?1:0,t=x(t,e,r),t=N(t,e);else if(!i||a||o||s){if(i&&!o&&a^s)t=N(t,e),a?(v=0,t=x(t,e,r)):(v=1,t=x(t,e,r),t=N(t,e));else if(i&&a&&!o&&s)v=1,t=x(t,e,r),t=N(t,e);else if(!i&&!o&&a^s){var n=c;a?(v=1,t=x(t,e,r),v=0,c=!1,t=x(t,e,r),c=n):(v=0,t=x(t,e,r),t=N(t,e),v=1,c=!1,t=x(t,e,r),c=n,t=N(t,e))}}else v=0,t=x(t,e,r);else v=a?1:0,t=x(t,e,r);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,o=t.isOutputVisual,a=t.isInputRtl,s=t.isOutputRtl,c=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options||{}),i=(t.mutex,n.lang,[]);if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(e)){var a=0;for(i=[],a=0;a<e.length;a+=1)"[object Array]"===Object.prototype.toString.call(e[a])?i.push([r.doBidiReorder(e[a][0]),e[a][1],e[a][2]]):i.push([r.doBidiReorder(e[a])]);t.text=i}else t.text=r.doBidiReorder(e);r.setOptions({isInputVisual:!0})}])}(M),M.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new Te(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new ar(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Ue(this.contents),this.head=new We(this),this.name=new Ze(this),this.cmap=new Ge(this),this.toUnicode={},this.hhea=new Ye(this),this.maxp=new $e(this),this.hmtx=new Qe(this),this.post=new Xe(this),this.os2=new Je(this),this.loca=new ir(this),this.glyf=new er(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,r,n,i;for(i=[],e=0,r=(n=this.bbox).length;e<r;e++)t=n[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),0!=(32768&(e=n>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,r){var n,i,a,o;for(a=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)n=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return a*(e/1e3)},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t}();var Re,Te=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,a,o,s;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*a+256*o+s},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},t}(),Ue=function(){var t;function e(t){var e,r,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,n,i,a,o,s,c,u,h,l,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),h=16*Math.floor(Math.log(f)/s),a=Math.floor(h/s),u=16*f-h,(n=new Te).writeInt(this.scalarType),n.writeShort(f),n.writeShort(h),n.writeShort(a),n.writeShort(u),i=16*f,c=n.pos+i,o=null,d=[],e)for(l=e[p],n.writeString(p),n.writeInt(t(l)),n.writeInt(c),n.writeInt(l.length),d=d.concat(l),"head"===p&&(o=c),c+=l.length;c%4;)d.push(0),c++;return n.write(d),r=2981146554-t(n.data),n.pos=o+8,n.writeUInt32(r),n.data},t=function(t){var e,r,n,i;for(t=tr.call(t);t.length%4;)t.push(0);for(n=new Te(t),r=0,e=0,i=t.length;e<i;e=e+=4)r+=n.readUInt32();return 4294967295&r},e}(),ze={}.hasOwnProperty,He=function(t,e){for(var r in e)ze.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},We=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new Te).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(Re=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}()),Ve=function(){function t(t,e){var r,n,i,a,o,s,c,u,h,l,f,d,p,g,m,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),h=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),l=f/2,t.pos+=6,i=function(){var e,r;for(r=[],s=e=0;0<=l?e<l:e>l;s=0<=l?++e:--e)r.push(t.readUInt16());return r}(),t.pos+=2,p=function(){var e,r;for(r=[],s=e=0;0<=l?e<l:e>l;s=0<=l?++e:--e)r.push(t.readUInt16());return r}(),c=function(){var e,r;for(r=[],s=e=0;0<=l?e<l:e>l;s=0<=l?++e:--e)r.push(t.readUInt16());return r}(),u=function(){var e,r;for(r=[],s=e=0;0<=l?e<l:e>l;s=0<=l?++e:--e)r.push(t.readUInt16());return r}(),n=(this.length-t.pos+this.offset)/2,o=function(){var e,r;for(r=[],s=e=0;0<=n?e<n:e>n;s=0<=n?++e:--e)r.push(t.readUInt16());return r}(),s=m=0,b=i.length;m<b;s=++m)for(g=i[s],r=v=d=p[s];d<=g?v<=g:v>=g;r=d<=g?++v:--v)0===u[s]?a=r+c[s]:0!==(a=o[u[s]/2+(r-d)-(l-s)]||0)&&(a+=c[s]),this.codeMap[r]=65535&a}t.pos=h}return t.encode=function(t,e){var r,n,i,a,o,s,c,u,h,l,f,d,p,g,m,v,b,y,w,N,L,A,x,S,_,P,k,F,I,C,j,O,B,M,E,q,D,R,T,U,z,H,W,V,G,Y;switch(F=new Te,a=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),v={0:0},i={},I=0,B=a.length;I<B;I++)null==v[W=t[n=a[I]]]&&(v[W]=++p),i[n]={old:t[n],new:v[t[n]]},g[n]=v[t[n]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(g),{charMap:i,subtable:F.data,maxGlyphID:p+1};case"unicode":for(P=[],h=[],b=0,v={},r={},m=c=null,C=0,M=a.length;C<M;C++)null==v[w=t[n=a[C]]]&&(v[w]=++b),r[n]={old:w,new:v[w]},o=v[w]-n,null!=m&&o===c||(m&&h.push(m),P.push(n),c=o),m=n;for(m&&h.push(m),h.push(65535),P.push(65535),S=2*(x=P.length),A=2*Math.pow(Math.log(x)/Math.LN2,2),l=Math.log(A/2)/Math.LN2,L=2*x-A,s=[],N=[],f=[],d=j=0,E=P.length;j<E;d=++j){if(_=P[d],u=h[d],65535===_){s.push(0),N.push(0);break}if(_-(k=r[_].new)>=32768)for(s.push(0),N.push(2*(f.length+x-d)),n=O=_;_<=u?O<=u:O>=u;n=_<=u?++O:--O)f.push(r[n].new);else s.push(k-_),N.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*x+2*f.length),F.writeUInt16(0),F.writeUInt16(S),F.writeUInt16(A),F.writeUInt16(l),F.writeUInt16(L),z=0,q=h.length;z<q;z++)n=h[z],F.writeUInt16(n);for(F.writeUInt16(0),H=0,D=P.length;H<D;H++)n=P[H],F.writeUInt16(n);for(V=0,R=s.length;V<R;V++)o=s[V],F.writeUInt16(o);for(G=0,T=N.length;G<T;G++)y=N[G],F.writeUInt16(y);for(Y=0,U=f.length;Y<U;Y++)p=f[Y],F.writeUInt16(p);return{charMap:r,subtable:F.data,maxGlyphID:b+1}}},t}(),Ge=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new Ve(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var r,n;return null==e&&(e="macroman"),r=Ve.encode(t,e),(n=new Te).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},e}(Re),Ye=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(Re),Je=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(Re),Xe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="post",e.prototype.parse=function(t){var e,r,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var i;for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 196608:break;case 262144:return this.map=function(){var e,r,n;for(n=[],i=e=0,r=this.file.maxp.numGlyphs;0<=r?e<r:e>r;i=0<=r?++e:--e)n.push(t.readUInt32());return n}.call(this)}},e}(Re),Ke=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Ze=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="name",e.prototype.parse=function(t){var e,r,n,i,a,o,s,c,u,h,l;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},i=u=0,h=r.length;u<h;i=++u)n=r[i],t.pos=n.offset,c=t.readString(n.length),a=new Ke(c,n),null==s[l=n.nameID]&&(s[l]=[]),s[n.nameID].push(a);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(Re),$e=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(Re),Qe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,r,n,i,a,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,i;for(i=[],e=r=0;0<=n?r<n:r>n;e=0<=n?++r:--r)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.metrics).length;t<e;t++)i=r[t],n.push(i.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],e=a=0;0<=n?a<n:a>n;e=0<=n?++a:--a)s.push(this.widths.push(r));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(Re),tr=[].slice,er=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,r,n,i,a,o,s,c,u,h;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),0===(n=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,a=(o=new Te(e.read(n))).readShort(),c=o.readShort(),h=o.readShort(),s=o.readShort(),u=o.readShort(),this.cache[t]=-1===a?new nr(o,c,h,s,u):new rr(o,a,c,h,s,u),this.cache[t]))},e.prototype.encode=function(t,e,r){var n,i,a,o,s;for(a=[],i=[],o=0,s=e.length;o<s;o++)n=t[e[o]],i.push(a.length),n&&(a=a.concat(n.encode(r)));return i.push(a.length),{table:a,offsets:i}},e}(Re),rr=function(){function t(t,e,r,n,i,a){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),nr=function(){function t(t,e,r,n,i){var a,o;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return 1,8,32,64,128,t.prototype.encode=function(){var t,e,r;for(e=new Te(tr.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),ir=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return He(e,t),e.prototype.tag="loca",e.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=2)n.push(2*t.readUInt16());return n}.call(this):function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=4)n.push(t.readUInt32());return n}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,a=0;a<r.length;++a)if(r[a]=n,i<e.length&&e[i]==a){++i,r[a]=n;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(n+=s)}for(var c=new Array(4*r.length),u=0;u<r.length;++u)c[4*u+3]=255&r[u],c[4*u+2]=(65280&r[u])>>8,c[4*u+1]=(16711680&r[u])>>16,c[4*u]=(4278190080&r[u])>>24;return c},e}(Re),ar=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},t.prototype.glyphsFor=function(t){var e,r,n,i,a,o,s;for(n={},a=0,o=t.length;a<o;a++)n[i=t[a]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(null!=(r=n[i])?r.compound:void 0)&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))r=s[i],n[i]=r;return n},t.prototype.encode=function(t,e){var r,n,i,a,o,s,c,u,h,l,f,d,p,g,m;for(n in r=Ge.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=r.charMap)f[(s=m[n]).old]=s.new;for(d in l=r.maxGlyphID,a)d in f||(f[d]=l++);return u=function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r}(f),h=Object.keys(u).sort((function(t,e){return t-e})),p=function(){var t,e,r;for(r=[],t=0,e=h.length;t<e;t++)o=h[t],r.push(u[o]);return r}(),i=this.font.glyf.encode(a,p,f),c=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();M.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(r){var n,i,a,o;if(Array.isArray(r))return"["+function(){var t,i,a;for(a=[],t=0,i=r.length;t<i;t++)n=r[t],a.push(e.convert(n));return a}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+e.convert(o));return a.push(">>"),a.join("\n")}return""+r},e}(),t.AcroForm=xt,t.AcroFormAppearance=Lt,t.AcroFormButton=gt,t.AcroFormCheckBox=yt,t.AcroFormChoiceField=lt,t.AcroFormComboBox=dt,t.AcroFormEditBox=pt,t.AcroFormListBox=ft,t.AcroFormPasswordField=Nt,t.AcroFormPushButton=mt,t.AcroFormRadioButton=vt,t.AcroFormTextField=wt,t.GState=C,t.ShadingPattern=O,t.TilingPattern=B,t.default=M,t.jsPDF=M,Object.defineProperty(t,"__esModule",{value:!0})}));
/**
 * A JavaScript implementation of the SHA family of hashes - defined in FIPS PUB 180-4, FIPS PUB 202,
 * and SP 800-185 - as well as the corresponding HMAC implementation as defined in FIPS PUB 198-1.
 *
 * Copyright 2008-2020 Brian Turek, 1998-2009 Paul Johnston & Contributors
 * Distributed under the BSD License
 * See http://caligatio.github.com/jsSHA/ for more information
 *
 * Two ECMAScript polyfill functions carry the following license:
 *
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,
 * INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
 * MERCHANTABLITY OR NON-INFRINGEMENT.
 *
 * See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.
 */
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?t["jsSHA"]=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).jsSHA=r()}(window,(function(){"use strict";var t=function(r,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])})(r,n)};var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(t,r,n,i){var e,o,s,u=r||[0],f=(n=n||0)>>>3,h=-1===i?3:0;for(e=0;e<t.length;e+=1)o=(s=e+f)>>>2,u.length<=o&&u.push(0),u[o]|=t[e]<<8*(h+i*(s%4));return{value:u,binLen:8*t.length+n}}function i(t,i,e){switch(i){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(t){case"HEX":return function(t,r,n){return function(t,r,n,i){var e,o,s,u;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");var f=r||[0],h=(n=n||0)>>>3,a=-1===i?3:0;for(e=0;e<t.length;e+=2){if(o=parseInt(t.substr(e,2),16),isNaN(o))throw new Error("String of HEX type contains invalid characters");for(s=(u=(e>>>1)+h)>>>2;f.length<=s;)f.push(0);f[s]|=o<<8*(a+i*(u%4))}return{value:f,binLen:4*t.length+n}}(t,r,n,e)};case"TEXT":return function(t,r,n){return function(t,r,n,i,e){var o,s,u,f,h,a,c,w,E=0,v=n||[0],A=(i=i||0)>>>3;if("UTF8"===r)for(c=-1===e?3:0,u=0;u<t.length;u+=1)for(s=[],128>(o=t.charCodeAt(u))?s.push(o):2048>o?(s.push(192|o>>>6),s.push(128|63&o)):55296>o||57344<=o?s.push(224|o>>>12,128|o>>>6&63,128|63&o):(u+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(u)),s.push(240|o>>>18,128|o>>>12&63,128|o>>>6&63,128|63&o)),f=0;f<s.length;f+=1){for(h=(a=E+A)>>>2;v.length<=h;)v.push(0);v[h]|=s[f]<<8*(c+e*(a%4)),E+=1}else for(c=-1===e?2:0,w="UTF16LE"===r&&1!==e||"UTF16LE"!==r&&1===e,u=0;u<t.length;u+=1){for(o=t.charCodeAt(u),!0===w&&(o=(f=255&o)<<8|o>>>8),h=(a=E+A)>>>2;v.length<=h;)v.push(0);v[h]|=o<<8*(c+e*(a%4)),E+=2}return{value:v,binLen:8*E+i}}(t,i,r,n,e)};case"B64":return function(t,n,i){return function(t,n,i,e){var o,s,u,f,h,a,c=0,w=n||[0],E=(i=i||0)>>>3,v=-1===e?3:0,A=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==A&&A<t.length)throw new Error("Invalid '=' found in base-64 string");for(o=0;o<t.length;o+=4){for(f=t.substr(o,4),u=0,s=0;s<f.length;s+=1)u|=r.indexOf(f.charAt(s))<<18-6*s;for(s=0;s<f.length-1;s+=1){for(h=(a=c+E)>>>2;w.length<=h;)w.push(0);w[h]|=(u>>>16-8*s&255)<<8*(v+e*(a%4)),c+=1}}return{value:w,binLen:8*c+i}}(t,n,i,e)};case"BYTES":return function(t,r,n){return function(t,r,n,i){var e,o,s,u,f=r||[0],h=(n=n||0)>>>3,a=-1===i?3:0;for(o=0;o<t.length;o+=1)e=t.charCodeAt(o),s=(u=o+h)>>>2,f.length<=s&&f.push(0),f[s]|=e<<8*(a+i*(u%4));return{value:f,binLen:8*t.length+n}}(t,r,n,e)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t,r,i){return function(t,r,i,e){return n(new Uint8Array(t),r,i,e)}(t,r,i,e)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t,r,i){return n(t,r,i,e)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function e(t,n,i,e){switch(t){case"HEX":return function(t){return function(t,r,n,i){var e,o,s="",u=r/8,f=-1===n?3:0;for(e=0;e<u;e+=1)o=t[e>>>2]>>>8*(f+n*(e%4)),s+="0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o);return i.outputUpper?s.toUpperCase():s}(t,n,i,e)};case"B64":return function(t){return function(t,n,i,e){var o,s,u,f,h,a="",c=n/8,w=-1===i?3:0;for(o=0;o<c;o+=3)for(f=o+1<c?t[o+1>>>2]:0,h=o+2<c?t[o+2>>>2]:0,u=(t[o>>>2]>>>8*(w+i*(o%4))&255)<<16|(f>>>8*(w+i*((o+1)%4))&255)<<8|h>>>8*(w+i*((o+2)%4))&255,s=0;s<4;s+=1)a+=8*o+6*s<=n?r.charAt(u>>>6*(3-s)&63):e.b64Pad;return a}(t,n,i,e)};case"BYTES":return function(t){return function(t,r,n){var i,e,o="",s=r/8,u=-1===n?3:0;for(i=0;i<s;i+=1)e=t[i>>>2]>>>8*(u+n*(i%4))&255,o+=String.fromCharCode(e);return o}(t,n,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t){return function(t,r,n){var i,e=r/8,o=new ArrayBuffer(e),s=new Uint8Array(o),u=-1===n?3:0;for(i=0;i<e;i+=1)s[i]=t[i>>>2]>>>8*(u+n*(i%4))&255;return o}(t,n,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t){return function(t,r,n){var i,e=r/8,o=-1===n?3:0,s=new Uint8Array(e);for(i=0;i<e;i+=1)s[i]=t[i>>>2]>>>8*(o+n*(i%4))&255;return s}(t,n,i)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(t){var r={outputUpper:!1,b64Pad:"=",outputLen:-1},n=t||{},i="Output length must be a multiple of 8";if(r.outputUpper=n.outputUpper||!1,n.b64Pad&&(r.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(i);r.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(i);r.outputLen=n.shakeLen}if("boolean"!=typeof r.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof r.b64Pad)throw new Error("Invalid b64Pad formatting option");return r}function s(t,r){return t<<r|t>>>32-r}function u(t,r,n){return t^r^n}function f(t,r,n){return t&r^t&n^r&n}function h(t,r){var n=(65535&t)+(65535&r);return(65535&(t>>>16)+(r>>>16)+(n>>>16))<<16|65535&n}function a(t,r,n,i,e){var o=(65535&t)+(65535&r)+(65535&n)+(65535&i)+(65535&e);return(65535&(t>>>16)+(r>>>16)+(n>>>16)+(i>>>16)+(e>>>16)+(o>>>16))<<16|65535&o}function c(t){return[1732584193,4023233417,2562383102,271733878,3285377520]}function w(t,r){var n,i,e,o,c,w,E,v,A=[];for(n=r[0],i=r[1],e=r[2],o=r[3],c=r[4],E=0;E<80;E+=1)A[E]=E<16?t[E]:s(A[E-3]^A[E-8]^A[E-14]^A[E-16],1),w=E<20?a(s(n,5),(v=i)&e^~v&o,c,1518500249,A[E]):E<40?a(s(n,5),u(i,e,o),c,1859775393,A[E]):E<60?a(s(n,5),f(i,e,o),c,2400959708,A[E]):a(s(n,5),u(i,e,o),c,3395469782,A[E]),c=o,o=e,e=s(i,30),i=n,n=w;return r[0]=h(n,r[0]),r[1]=h(i,r[1]),r[2]=h(e,r[2]),r[3]=h(o,r[3]),r[4]=h(c,r[4]),r}function E(t,r,n,i){for(var e,o=15+(r+65>>>9<<4),s=r+n;t.length<=o;)t.push(0);for(t[r>>>5]|=128<<24-r%32,t[o]=4294967295&s,t[o-1]=s/4294967296|0,e=0;e<t.length;e+=16)i=w(t.slice(e,e+16),i);return i}return function(r){function n(t,n,e){var o=this;if("SHA-1"!==t)throw new Error("Chosen SHA variant is not supported");var s=e||{};return(o=r.call(this,t,n,e)||this).t=!0,o.i=o.o,o.s=-1,o.u=i(o.h,o.v,o.s),o.A=w,o.p=function(t){return t.slice()},o.l=c,o.R=E,o.U=[1732584193,4023233417,2562383102,271733878,3285377520],o.T=512,o.m=160,o.F=!1,s.hmacKey&&o.B(function(t,r,n,e){var o=t+" must include a value and format";if(!r){if(!e)throw new Error(o);return e}if(void 0===r.value||!r.format)throw new Error(o);return i(r.format,r.encoding||"UTF8",n)(r.value)}("hmacKey",s.hmacKey,o.s)),o}return function(r,n){function i(){this.constructor=r}t(r,n),r.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,r),n}(function(){function t(t,r,n){var i=n||{};if(this.h=r,this.v=i.encoding||"UTF8",this.numRounds=i.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=t,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return t.prototype.update=function(t){var r,n=0,i=this.T>>>5,e=this.u(t,this.Y,this.I),o=e.binLen,s=e.value,u=o>>>5;for(r=0;r<u;r+=i)n+this.T<=o&&(this.U=this.A(s.slice(r,r+i),this.U),n+=this.T);this.H+=n,this.Y=s.slice(n>>>5),this.I=o%this.T,this.C=!0},t.prototype.getHash=function(t,r){var n,i,s=this.m,u=o(r);if(this.F){if(-1===u.outputLen)throw new Error("Output length must be specified in options");s=u.outputLen}var f=e(t,s,this.s,u);if(this.L&&this.i)return f(this.i(u));for(i=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),s),n=1;n<this.numRounds;n+=1)this.F&&s%32!=0&&(i[i.length-1]&=16777215>>>24-s%32),i=this.R(i,s,0,this.l(this.g),s);return f(i)},t.prototype.setHMACKey=function(t,r,n){if(!this.t)throw new Error("Variant does not support HMAC");if(this.C)throw new Error("Cannot set MAC key after calling update");var e=i(r,(n||{}).encoding||"UTF8",this.s);this.B(e(t))},t.prototype.B=function(t){var r,n=this.T>>>3,i=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(this.L)throw new Error("MAC key already set");for(n<t.binLen/8&&(t.value=this.R(t.value,t.binLen,0,this.l(this.g),this.m));t.value.length<=i;)t.value.push(0);for(r=0;r<=i;r+=1)this.N[r]=909522486^t.value[r],this.S[r]=1549556828^t.value[r];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},t.prototype.getHMAC=function(t,r){var n=o(r);return e(t,this.m,this.s,n)(this.o())},t.prototype.o=function(){var t;if(!this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return t=this.A(this.S,this.l(this.g)),t=this.R(r,this.m,this.T,t,this.m)},t}())}));

var FlexmonsterToolbar=function(a,b,c,e,m,k){this.pivot=b;this.pivotContainer=a;this.width="number"==typeof e||0>e.indexOf("px")&&0>e.indexOf("%")?e+"px":e;this.Labels=m;this.dataSourceType=k||5;this.showShareReportTab=!1};
FlexmonsterToolbar.prototype.getTabs=function(){var a=[],b=this.Labels;a.push({title:b.connect,id:"fm-tab-connect",icon:this.icons.connect,kibana:!1,menu:[{title:b.connect_local_csv,id:"fm-tab-connect-local-csv",handler:this.connectLocalCSVHandler,mobile:!1,icon:this.icons.connect_csv},{title:b.connect_local_json,id:"fm-tab-connect-local-json",handler:this.connectLocalJSONHandler,mobile:!1,icon:this.icons.connect_json},{title:this.osUtils.isMobile?b.connect_remote_csv_mobile:b.connect_remote_csv,
id:"fm-tab-connect-remote-csv",handler:this.connectRemoteCSV,icon:this.icons.connect_csv_remote},{title:this.osUtils.isMobile?b.connect_remote_json_mobile:b.connect_remote_json,id:"fm-tab-connect-remote-json",handler:this.connectRemoteJSON,icon:this.icons.connect_json_remote},{title:this.osUtils.isMobile?b.connect_olap_mobile:b.connect_olap,id:"fm-tab-connect-olap",handler:this.connectOLAP,flat:!1,icon:this.icons.connect_olap},{title:this.osUtils.isMobile?b.connect_elastic_mobile:b.connect_elastic,
id:"fm-tab-connect-elastic",handler:this.connectElastic,flat:!1,icon:this.icons.connect_elastic}]});a.push({title:b.open,id:"fm-tab-open",icon:this.icons.open,kibana:!1,menu:[{title:b.local_report,id:"fm-tab-open-local-report",handler:this.openLocalReport,mobile:!1,icon:this.icons.open_local},{title:this.osUtils.isMobile?b.remote_report_mobile:b.remote_report,id:"fm-tab-open-remote-report",handler:this.openRemoteReport,icon:this.icons.open_remote}]});a.push({title:b.save,id:"fm-tab-save",handler:this.saveHandler,
mobile:!1,kibana:!1,icon:this.icons.save});a.push({title:b.export,id:"fm-tab-export",mobile:!1,icon:this.icons.export,menu:[{title:b.export_print,id:"fm-tab-export-print",handler:this.printHandler,icon:this.icons.export_print},{title:b.export_html,id:"fm-tab-export-html",handler:this.exportHandler,args:"html",icon:this.icons.export_html},{title:b.export_csv,id:"fm-tab-export-csv",handler:this.exportHandler,args:"csv",icon:this.icons.export_csv},{title:b.export_excel,id:"fm-tab-export-excel",handler:this.exportHandler,
args:"excel",icon:this.icons.export_excel},{title:b.export_image,id:"fm-tab-export-image",handler:this.exportHandler,args:"image",icon:this.icons.export_image},{title:b.export_pdf,id:"fm-tab-export-pdf",handler:this.exportHandler,args:"pdf",icon:this.icons.export_pdf}]});a.push({title:b.share,id:"fm-tab-share",handler:this.shareReportHandler,icon:this.icons.share,visible:this.showShareReportTab});a.push({divider:!0});a.push({title:b.grid,id:"fm-tab-grid",handler:this.gridHandler,icon:this.icons.grid});
a.push({title:b.charts,id:"fm-tab-charts",onShowHandler:this.checkChartMultipleMeasures,icon:this.icons.charts,menu:[{title:b.charts_column,id:"fm-tab-charts-column",handler:this.chartsHandler,args:"column",icon:this.icons.charts},{title:b.charts_bar_horizontal,id:"fm-tab-charts-bar-horizontal",handler:this.chartsHandler,args:"bar_h",icon:this.icons.charts_bar},{title:b.charts_line,id:"fm-tab-charts-line",handler:this.chartsHandler,args:"line",icon:this.icons.charts_line},{title:b.charts_scatter,
id:"fm-tab-charts-scatter",handler:this.chartsHandler,args:"scatter",icon:this.icons.charts_scatter},{title:b.charts_pie,id:"fm-tab-charts-pie",handler:this.chartsHandler,args:"pie",icon:this.icons.charts_pie},{title:b.charts_stacked_column,id:"fm-tab-charts-stacked-column",handler:this.chartsHandler,args:"stacked_column",flat:!1,icon:this.icons.charts_stacked_column},{title:b.charts_column_line,id:"fm-tab-charts-column-line",handler:this.chartsHandler,args:"column_line",icon:this.icons.charts_column_line},
{title:b.charts_multiple,id:"fm-tab-charts-multiple",handler:this.chartsMultipleHandler,flat:!1,mobile:!1,type:"checkbox"}]});a.push({divider:!0});a.push({title:b.format,id:"fm-tab-format",icon:this.icons.format,rightGroup:!0,menu:[{title:this.osUtils.isMobile?b.format_cells_mobile:b.format_cells,id:"fm-tab-format-cells",handler:this.formatCellsHandler,icon:this.icons.format_number},{title:this.osUtils.isMobile?b.conditional_formatting_mobile:b.conditional_formatting,id:"fm-tab-format-conditional",
handler:this.conditionalFormattingHandler,icon:this.icons.format_conditional}]});a.push({title:b.options,id:"fm-tab-options",handler:this.optionsHandler,icon:this.icons.options,rightGroup:!0});a.push({title:b.fields,id:"fm-tab-fields",handler:this.fieldsHandler,icon:this.icons.fields,rightGroup:!0});void 0!=document.addEventListener&&(a.push({divider:!0,rightGroup:!0}),a.push({title:b.fullscreen,id:"fm-tab-fullscreen",handler:this.fullscreenHandler,mobile:!1,icon:this.icons.fullscreen,rightGroup:!0}));
return a};FlexmonsterToolbar.prototype.create=function(){this.popupManager=new FlexmonsterToolbar.PopupManager(this);this.dataProvider=this.getTabs();5!=this.dataSourceType&&this.filterConnectMenu();this.init()};FlexmonsterToolbar.prototype.dispose=function(){this.dataProvider=this.Labels=this.pivotContainer=this.pivot=this.popupManager=null;window.removeEventListener("resize",this._redrawToolbar)};FlexmonsterToolbar.prototype.responsiveBreakpoints=[700];
FlexmonsterToolbar.prototype.applyToolbarLayoutClasses=function(){if(!this.osUtils.isMobile){var a=this;(function(){if(a.toolbarWrapper){var b=a.toolbarWrapper.getBoundingClientRect().width;0!=b&&a.responsiveBreakpoints.forEach(function(c){b<c?a.toolbarWrapper.classList.add("fm-layout-"+c):a.toolbarWrapper.classList.remove("fm-layout-"+c)})}})()}};
FlexmonsterToolbar.prototype.init=function(){var a=this;this.container=this.pivotContainer;var b=function(){a.container.style.position=""==a.container.style.position?"relative":a.container.style.position;a.container.querySelector("#fm-toolbar-wrapper")||(a.toolbarWrapper=document.createElement("div"),a.toolbarWrapper.id="fm-toolbar-wrapper");a.listWrapper=document.createElement("div");a.listWrapper.classList.add("fm-list-wrapper");a.listWrapper.style.width="100%";a.toolbarWrapper.style.width="100%";
a.toolbarWrapper.appendChild(a.listWrapper);a.toolbar=document.createElement("ul");a.toolbar.setAttribute("role","menubar");a.toolbar.setAttribute("aria-orientation","horizontal");a.addClass(a.toolbarWrapper,"fm-toolbar-ui");a.toolbar.id="fm-toolbar";if(!a.osUtils.isMobile){var m=document.createElement("div");m.classList.add("fm-toolbar-group-left");a.toolbar.appendChild(m);var k=document.createElement("div");k.classList.add("fm-toolbar-group-right");a.toolbar.appendChild(k)}c(m,k,a.toolbar);a.listWrapper.appendChild(a.toolbar);
a.container.insertBefore(a.toolbarWrapper,a.container.firstChild);a.applyToolbarLayoutClasses();!a.osUtils.isMobile&&m.clientWidth+k.clientWidth>a.toolbar.clientWidth&&(a.toolbar.removeChild(m),a.toolbar.removeChild(k),c(null,null,a.toolbar),a.toolbar.classList.add("fm-scroll-toolbar"));a.updateLabels(a.Labels);a.pivot.on("numberformatting",function(d){a.formatCellsHandler(d.measureName,d.aggregation)});a.pivot.on("conditionalformatting",function(d){a.conditionalFormattingHandler(d.measureName)});
a.osUtils.isMobile&&a.addClass(a.listWrapper,"fm-mobile")},c=function(m,k,d){for(var f=0;f<a.dataProvider.length;f++)if(!a.isDisabled(a.dataProvider[f]))if(a.osUtils.isMobile&&null!=a.dataProvider[f].menu&&1!=a.dataProvider[f].collapse)for(var q=0;q<a.dataProvider[f].menu.length;q++)a.isDisabled(a.dataProvider[f].menu[q])||d.appendChild(a.createTab(a.dataProvider[f].menu[q]));else q=a.dataProvider[f].divider?a.createDivider(a.dataProvider[f]):a.createTab(a.dataProvider[f]),k&&a.dataProvider[f].rightGroup?
k.appendChild(q):m?m.appendChild(q):d.appendChild(q)},e=function(){if(0<a.toolbar.scrollWidth-a.toolbar.clientWidth){a.leftScrollButton=document.createElement("div");a.leftScrollButton.classList.add("fm-left-scroll-button");a.rightScrollButton=document.createElement("div");a.rightScrollButton.classList.add("fm-right-scroll-button");a.addClass(a.rightScrollButton,"fm-scroll-arrow");a.addClass(a.listWrapper,"fm-one-arrow-scroll");var m=function(f){"add"==f?(a.listWrapper.classList.remove("fm-one-arrow-scroll"),
a.listWrapper.classList.add("fm-two-arrow-scroll")):(a.listWrapper.classList.remove("fm-two-arrow-scroll"),a.listWrapper.classList.add("fm-one-arrow-scroll"))},k=function(){var f=a.toolbar.scrollWidth-a.toolbar.clientWidth;0<a.toolbar.scrollLeft&&!a.leftScrollButton.classList.contains("fm-scroll-arrow")?(m("add"),a.addClass(a.leftScrollButton,"fm-scroll-arrow")):0>=a.toolbar.scrollLeft-12&&a.leftScrollButton.classList.contains("fm-scroll-arrow")&&(m("remove"),a.leftScrollButton.classList.remove("fm-scroll-arrow"));
a.toolbar.scrollLeft+12>=f&&a.rightScrollButton.classList.contains("fm-scroll-arrow")?(m("remove"),a.rightScrollButton.classList.remove("fm-scroll-arrow")):a.toolbar.scrollLeft<f&&!a.rightScrollButton.classList.contains("fm-scroll-arrow")&&(m("add"),a.addClass(a.rightScrollButton,"fm-scroll-arrow"))},d=function(f){"left"==f?a.toolbar.scrollLeft-=40:"right"==f&&(a.toolbar.scrollLeft+=40);k()};a.toolbar.onscroll=function(){k()};a.leftScrollButton.onclick=function(){d("left")};a.rightScrollButton.onclick=
function(){d("right")};a.toolbarWrapper.insertBefore(a.leftScrollButton,a.toolbarWrapper.firstChild);a.toolbarWrapper.appendChild(a.rightScrollButton)}};a._redrawToolbar=function(){if(a.toolbarWrapper){for(var m=[],k=a.toolbarWrapper.childNodes,d=0;d<k.length;d++){var f=k[d].classList;f.contains("fm-popup")||f.contains("fm-modal-overlay")||f.contains("fm-popup-modal-overlay")||m.push(k[d])}for(d=0;d<m.length;d++)a.toolbarWrapper.removeChild(m[d])}b();e();a.isFullscreen()&&(document.querySelector("#fm-tab-fullscreen > a > div").innerHTML=
a.icons.minimize)};a._redrawToolbar();window.addEventListener("resize",a._redrawToolbar)};
FlexmonsterToolbar.prototype.updateLabels=function(a){a=this.Labels=a;this.setText(this.pivotContainer.querySelector("#fm-tab-connect .fm-tab-label"),a.connect);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-local-csv .fm-tab-label"),a.connect_local_csv);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-local-json .fm-tab-label"),a.connect_local_json);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-remote-csv .fm-tab-label"),this.osUtils.isMobile?a.connect_remote_csv_mobile:
a.connect_remote_csv);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-remote-json .fm-tab-label"),this.osUtils.isMobile?a.connect_remote_json_mobile:a.connect_remote_json);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-olap .fm-tab-label"),this.osUtils.isMobile?a.connect_olap_mobile:a.connect_olap);this.setText(this.pivotContainer.querySelector("#fm-tab-connect-elastic .fm-tab-label"),this.osUtils.isMobile?a.connect_elastic_mobile:a.connect_elastic);this.setText(this.pivotContainer.querySelector("#fm-tab-open .fm-tab-label"),
a.open);this.setText(this.pivotContainer.querySelector("#fm-tab-open-local-report .fm-tab-label"),a.local_report);this.setText(this.pivotContainer.querySelector("#fm-tab-open-remote-report .fm-tab-label"),this.osUtils.isMobile?a.remote_report_mobile:a.remote_report);this.setText(this.pivotContainer.querySelector("#fm-tab-save .fm-tab-label"),a.save);this.setText(this.pivotContainer.querySelector("#fm-tab-share .fm-tab-label"),a.share);this.setText(this.pivotContainer.querySelector("#fm-tab-grid .fm-tab-label"),
a.grid);this.setText(this.pivotContainer.querySelector("#fm-tab-charts .fm-tab-label"),a.charts);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-column .fm-tab-label"),a.charts_column);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-bar-horizontal .fm-tab-label"),a.charts_bar_horizontal);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-line .fm-tab-label"),a.charts_line);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-scatter .fm-tab-label"),
a.charts_scatter);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-pie .fm-tab-label"),a.charts_pie);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-stacked-column .fm-tab-label"),a.charts_stacked_column);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-column-line .fm-tab-label"),a.charts_column_line);this.setText(this.pivotContainer.querySelector("#fm-tab-charts-multiple .fm-tab-label"),a.charts_multiple);this.setText(this.pivotContainer.querySelector("#fm-tab-format .fm-tab-label"),
a.format);this.setText(this.pivotContainer.querySelector("#fm-tab-format-cells .fm-tab-label"),this.osUtils.isMobile?a.format_cells_mobile:a.format_cells);this.setText(this.pivotContainer.querySelector("#fm-tab-format-conditional .fm-tab-label"),this.osUtils.isMobile?a.conditional_formatting_mobile:a.conditional_formatting);this.setText(this.pivotContainer.querySelector("#fm-tab-options .fm-tab-label"),a.options);this.setText(this.pivotContainer.querySelector("#fm-tab-fullscreen .fm-tab-label"),a.fullscreen);
this.setText(this.pivotContainer.querySelector("#fm-tab-export .fm-tab-label"),a.export);this.setText(this.pivotContainer.querySelector("#fm-tab-export-print .fm-tab-label"),a.export_print);this.setText(this.pivotContainer.querySelector("#fm-tab-export-html .fm-tab-label"),a.export_html);this.setText(this.pivotContainer.querySelector("#fm-tab-export-csv .fm-tab-label"),a.export_csv);this.setText(this.pivotContainer.querySelector("#fm-tab-export-excel .fm-tab-label"),a.export_excel);this.setText(this.pivotContainer.querySelector("#fm-tab-export-image .fm-tab-label"),
a.export_image);this.setText(this.pivotContainer.querySelector("#fm-tab-export-pdf .fm-tab-label"),a.export_pdf);this.setText(this.pivotContainer.querySelector("#fm-tab-fields .fm-tab-label"),a.fields)};
FlexmonsterToolbar.prototype.icons={connect:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25 20.9C31.9036 20.9 37.5 18.5719 37.5 15.7C37.5 12.8281 31.9036 10.5 25 10.5C18.0964 10.5 12.5 12.8281 12.5 15.7C12.5 18.5719 18.0964 20.9 25 20.9Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 34.3002C13 34.8519 13.264 35.4186 13.8337 35.9799C14.4056 36.5434 15.2589 37.0721 16.3539 37.5258C18.5418 38.4323 21.5987 39.0002 25 39.0002C28.4013 39.0002 31.4582 38.4323 33.6461 37.5258C34.7411 37.0721 35.5944 36.5434 36.1663 35.9799C36.736 35.4186 37 34.8519 37 34.3002V15.7004C37 15.7004 37 15.7002 37.5 15.7002C38 15.7002 38 15.7004 38 15.7004V34.3002C38 35.1985 37.564 36.0067 36.8681 36.6923C36.1744 37.3757 35.1964 37.9658 34.0289 38.4496C31.6918 39.418 28.4987 40.0002 25 40.0002C21.5013 40.0002 18.3082 39.418 15.9711 38.4496C14.8036 37.9658 13.8256 37.3757 13.1319 36.6923C12.436 36.0067 12 35.1985 12 34.3002V15.7004C12 15.7004 12 15.7002 12.5 15.7002C13 15.7002 13 15.7004 13 15.7004V34.3002Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8329 14.0324C13.2627 14.5933 13 15.1569 13 15.7004C13 16.2439 13.2627 16.8067 13.8329 17.3676C14.4049 17.9302 15.2583 18.4598 16.3532 18.9153C18.5408 19.8254 21.5976 20.4 25 20.4C28.4024 20.4 31.4592 19.8254 33.6468 18.9153C34.7417 18.4598 35.5951 17.9302 36.1671 17.3676C36.7373 16.8067 37 16.2439 37 15.7004C37 15.1569 36.7373 14.5933 36.1671 14.0324C35.5951 13.4698 34.7417 12.9402 33.6468 12.4847C31.4592 11.5746 28.4024 11 25 11C21.5976 11 18.5408 11.5746 16.3532 12.4847C15.2583 12.9402 14.4049 13.4698 13.8329 14.0324ZM15.9691 11.5614C18.3056 10.5894 21.4988 10 25 10C28.5012 10 31.6944 10.5894 34.0309 11.5614C35.198 12.0469 36.1752 12.6378 36.8683 13.3194C37.5631 14.0028 38 14.808 38 15.7004C38 16.5928 37.5631 17.3972 36.8683 18.0806C36.1752 18.7622 35.198 19.3531 34.0309 19.8386C31.6944 20.8106 28.5012 21.4 25 21.4C21.4988 21.4 18.3056 20.8106 15.9691 19.8386C14.802 19.3531 13.8248 18.7622 13.1317 18.0806C12.4369 17.3972 12 16.5928 12 15.7004C12 14.808 12.4369 14.0028 13.1317 13.3194C13.8248 12.6378 14.802 12.0469 15.9691 11.5614Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.3561 31.5894C18.5448 32.5084 21.6015 33.1004 25 33.1004C28.4013 33.1004 31.4582 32.5325 33.6461 31.626C34.7411 31.1723 35.5944 30.6436 36.1663 30.0801C36.736 29.5188 37 28.9521 37 28.4004H38C38 29.2987 37.564 30.1069 36.8681 30.7925C36.1744 31.4759 35.1964 32.066 34.0289 32.5498C31.6918 33.5182 28.4987 34.1004 25 34.1004C21.4985 34.1004 18.3052 33.4924 15.9689 32.5114C14.802 32.0214 13.8257 31.4287 13.1333 30.7516C12.4403 30.0741 12 29.2782 12 28.4004H13C13 28.9226 13.2597 29.4767 13.8324 30.0366C14.4056 30.5971 15.2605 31.1294 16.3561 31.5894Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.3539 25.126C18.5418 26.0325 21.5987 26.6004 25 26.6004C28.4013 26.6004 31.4582 26.0325 33.6461 25.126C34.7411 24.6722 35.5944 24.1436 36.1663 23.5801C36.736 23.0188 37 22.4521 37 21.9004H38C38 22.7987 37.564 23.6069 36.8681 24.2925C36.1744 24.9759 35.1964 25.566 34.0289 26.0498C31.6918 27.0182 28.4987 27.6004 25 27.6004C21.5013 27.6004 18.3082 27.0182 15.9711 26.0498C14.8036 25.566 13.8256 24.9759 13.1319 24.2925C12.436 23.6069 12 22.7987 12 21.9004H13C13 22.4521 13.264 23.0188 13.8337 23.5801C14.4056 24.1436 15.2589 24.6722 16.3539 25.126Z" class="fill-border"/></svg>',connect_olap:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.7 29.1004V22.1004L24.9 25.9004V32.8004L18.7 29.1004Z" class="fill-background"/><path d="M37.5 32.8004V25.8004L31.3 29.6004V36.5004L37.5 32.8004Z" class="fill-background"/><path d="M31.2 14.8004L24.8 11.4004L18.7 14.8004L24.7 18.4004L31.2 14.8004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.9 25.4004C25.1762 25.4004 25.4 25.6242 25.4 25.9004V40.4004C25.4 40.6765 25.1762 40.9004 24.9 40.9004C24.6239 40.9004 24.4 40.6765 24.4 40.4004V25.9004C24.4 25.6242 24.6239 25.4004 24.9 25.4004Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.8 22.1006V36.6006H30.8V22.1006H31.8Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19.2 22.1006V36.6006H18.2V22.1006H19.2Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.0715 18.2423C12.2139 18.0057 12.5211 17.9293 12.7577 18.0716L25.0577 25.4716C25.2943 25.614 25.3707 25.9212 25.2284 26.1578C25.086 26.3945 24.7788 26.4709 24.5422 26.3285L12.2422 18.9285C12.0056 18.7862 11.9292 18.4789 12.0715 18.2423Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.5499 10.9674C24.702 10.8796 24.8889 10.878 25.0424 10.9632L37.8424 18.0632C38.0024 18.1519 38.1012 18.3209 38.0999 18.5038L37.9999 33.0038C37.9987 33.1805 37.9043 33.3434 37.7516 33.4324L25.0516 40.8324C24.8944 40.924 24.6999 40.923 24.5437 40.8297L12.1437 33.4297C11.9914 33.3389 11.8987 33.1742 11.8999 32.9969L11.9999 18.4969C12.0011 18.3195 12.0963 18.1561 12.2499 18.0674L24.5499 10.9674ZM24.8048 11.9749L12.9979 18.7902L12.9019 32.7177L24.8029 39.8199L37.0019 32.7119L37.0979 18.7937L24.8048 11.9749Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M37.9302 18.2454C38.0709 18.483 37.9923 18.7897 37.7547 18.9303L25.2547 26.3303C25.017 26.471 24.7104 26.3924 24.5697 26.1548C24.429 25.9172 24.5076 25.6105 24.7452 25.4698L37.2452 18.0698C37.4829 17.9291 37.7895 18.0077 37.9302 18.2454Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.4453 21.7701L30.9453 14.3701L31.4547 15.2306L18.9547 22.6306L18.4453 21.7701Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.9547 14.3701L25.2047 18.0701L31.4547 21.7701L30.9453 22.6306L18.4453 15.2306L18.9547 14.3701Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.6547 24.9697L25.1547 32.3697L24.6453 33.2302L12.1453 25.8302L12.6547 24.9697Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M37.6562 25.8294L25.2562 33.2294L24.7438 32.3707L37.1438 24.9707L37.6562 25.8294Z" class="fill-border"/></svg>',
connect_csv:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.5 18.6502H29.3V11.4502" class="fill-background"/><path d="M27.9 36.4502H9.5C8.4 36.4502 7.5 35.5502 7.5 34.4502V27.9502C7.5 26.8502 8.4 25.9502 9.5 25.9502H27.9C29 25.9502 29.9 26.8502 29.9 27.9502V34.4502C29.9 35.5502 29 36.4502 27.9 36.4502Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.2998 15.4502C18.0362 15.4502 17.7776 15.5403 17.5838 15.7341C17.3899 15.928 17.2998 16.1866 17.2998 16.4502V20.6502C17.2998 20.9138 17.3899 21.1724 17.5838 21.3662C17.7776 21.5601 18.0362 21.6502 18.2998 21.6502H21.1998V22.8506H20.3998C20.1236 22.8506 19.8998 23.0744 19.8998 23.3506C19.8998 23.6267 20.1236 23.8506 20.3998 23.8506H22.9998C23.2759 23.8506 23.4998 23.6267 23.4998 23.3506C23.4998 23.0744 23.2759 22.8506 22.9998 22.8506H22.1998V21.6502H24.9998C25.248 21.6502 25.5221 21.5701 25.7291 21.389C25.9403 21.2041 26.0722 20.9131 25.9998 20.5848V16.4502C25.9998 16.1866 25.9097 15.928 25.7159 15.7341C25.522 15.5403 25.2634 15.4502 24.9998 15.4502H18.2998ZM18.2998 20.6502V16.4502H24.9998V20.6502H18.2998Z" class="fill-border"/><path d="M23.9286 29.3014C24.0106 29.0962 24.2434 28.9965 24.4485 29.0785C24.6537 29.1606 24.7534 29.3934 24.6714 29.5985L23.2714 33.0985C23.2113 33.2487 23.0666 33.3479 22.9049 33.3499C22.7431 33.3519 22.5961 33.2562 22.5323 33.1075L21.0323 29.6075C20.9453 29.4044 21.0394 29.1693 21.2424 29.0823C21.4455 28.9952 21.6806 29.0893 21.7676 29.2923L22.8872 31.9047L23.9286 29.3014Z" class="fill-border"/><path d="M13.6 31.2498C13.6 30.7432 13.7662 30.4028 13.9896 30.1884C14.217 29.97 14.5377 29.8498 14.9 29.8498C15.17 29.8498 15.4733 29.9888 15.7172 30.2326C15.8734 30.3889 16.1267 30.3889 16.2829 30.2326C16.4391 30.0764 16.4391 29.8232 16.2829 29.667C15.9268 29.3108 15.4301 29.0498 14.9 29.0498C14.3624 29.0498 13.8331 29.2296 13.4355 29.6112C13.0339 29.9968 12.8 30.5564 12.8 31.2498C12.8 31.9278 12.9994 32.4898 13.3922 32.8826C13.7842 33.2746 14.3207 33.4498 14.9 33.4498C15.5172 33.4498 16.0161 33.1994 16.3829 32.8326C16.5391 32.6764 16.5391 32.4232 16.3829 32.267C16.2267 32.1108 15.9734 32.1108 15.8172 32.267C15.584 32.5002 15.2829 32.6498 14.9 32.6498C14.4794 32.6498 14.1659 32.525 13.9579 32.317C13.7507 32.1098 13.6 31.7718 13.6 31.2498Z" class="fill-border"/><path d="M18.8 29.6506C18.2146 29.6506 18 29.9646 18 30.1506C18 30.3815 18.0548 30.4754 18.1245 30.5358C18.2181 30.6169 18.4172 30.7056 18.8442 30.753C18.8557 30.7543 18.8671 30.7561 18.8785 30.7584C19.3939 30.8614 19.813 30.9999 20.1092 31.2138C20.4338 31.4482 20.6 31.7666 20.6 32.1506C20.6 32.5497 20.395 32.8913 20.0634 33.1182C19.7403 33.3392 19.304 33.4506 18.8 33.4506C18.0977 33.4506 17.6213 33.2122 17.2781 32.9834C17.0943 32.8609 17.0447 32.6125 17.1672 32.4287C17.2897 32.2449 17.5381 32.1952 17.7219 32.3178C17.9788 32.489 18.3023 32.6506 18.8 32.6506C19.196 32.6506 19.4597 32.5619 19.6116 32.458C19.755 32.3598 19.8 32.2515 19.8 32.1506C19.8 32.0345 19.7662 31.9529 19.6408 31.8624C19.4888 31.7526 19.2125 31.6423 18.738 31.5461C18.2727 31.4928 17.8784 31.3812 17.6005 31.1404C17.2952 30.8758 17.2 30.5197 17.2 30.1506C17.2 29.3366 17.9854 28.8506 18.8 28.8506C19.3769 28.8506 19.7383 28.9725 20.1789 29.1928C20.3765 29.2916 20.4566 29.5319 20.3578 29.7295C20.259 29.9271 20.0187 30.0072 19.8211 29.9084C19.4617 29.7286 19.2231 29.6506 18.8 29.6506Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 10.9502C14.1068 10.9502 13.1 12.0913 13.1 13.3502V25.4502H9.5C8.12386 25.4502 7 26.5741 7 27.9502V34.4502C7 35.8263 8.12386 36.9502 9.5 36.9502H13.1V38.4502C13.1 39.8433 14.2411 40.8502 15.5 40.8502H34.5C35.8931 40.8502 36.9 39.709 36.9 38.4502V18.4451L29.5091 10.9502H15.5ZM14.1 36.9502V38.4502C14.1 39.2571 14.7588 39.8502 15.5 39.8502H34.5C35.3069 39.8502 35.9 39.1913 35.9 38.4502V19.1502H29.3C29.0239 19.1502 28.8 18.9263 28.8 18.6502V11.9502H15.5C14.6931 11.9502 14.1 12.609 14.1 13.3502V25.4502H27.9C29.2761 25.4502 30.4 26.5741 30.4 27.9502V34.4502C30.4 35.8263 29.2761 36.9502 27.9 36.9502H14.1ZM29.8 18.1502V12.6694L35.2047 18.1502H29.8ZM8 27.9502C8 27.1263 8.67614 26.4502 9.5 26.4502H27.9C28.7239 26.4502 29.4 27.1263 29.4 27.9502V34.4502C29.4 35.2741 28.7239 35.9502 27.9 35.9502H9.5C8.67614 35.9502 8 35.2741 8 34.4502V27.9502Z" class="fill-border"/></svg>',
connect_json:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.5 18.6502H29.3V11.4502" class="fill-background"/><path d="M27.9 36.4502H9.5C8.4 36.4502 7.5 35.5502 7.5 34.4502V27.9502C7.5 26.8502 8.4 25.9502 9.5 25.9502H27.9C29 25.9502 29.9 26.8502 29.9 27.9502V34.4502C29.9 35.5502 29 36.4502 27.9 36.4502Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.2998 14.4502C18.0362 14.4502 17.7776 14.5403 17.5838 14.7341C17.3899 14.928 17.2998 15.1866 17.2998 15.4502V19.6502C17.2998 19.9138 17.3899 20.1724 17.5838 20.3662C17.7776 20.5601 18.0362 20.6502 18.2998 20.6502H21.1997V21.8506H20.3999C20.1238 21.8506 19.8999 22.0744 19.8999 22.3506C19.8999 22.6267 20.1238 22.8506 20.3999 22.8506H22.9999C23.276 22.8506 23.4999 22.6267 23.4999 22.3506C23.4999 22.0744 23.276 21.8506 22.9999 21.8506H22.1997V20.6502H24.9998C25.248 20.6502 25.5221 20.5701 25.7291 20.389C25.9403 20.2041 26.0722 19.9131 25.9998 19.5848V15.4502C25.9998 15.1866 25.9097 14.928 25.7159 14.7341C25.522 14.5403 25.2634 14.4502 24.9998 14.4502H18.2998ZM18.2998 19.6502V15.4502H24.9998V19.6502H18.2998Z" class="fill-border"/><path d="M15 30.1496C15 29.9636 15.2146 29.6496 15.8 29.6496C16.2231 29.6496 16.4617 29.7277 16.8211 29.9074C17.0187 30.0062 17.259 29.9261 17.3578 29.7285C17.4566 29.5309 17.3765 29.2906 17.1789 29.1918C16.7383 28.9715 16.3769 28.8496 15.8 28.8496C14.9854 28.8496 14.2 29.3356 14.2 30.1496C14.2 30.5187 14.2952 30.8748 14.6005 31.1394C14.8784 31.3802 15.2727 31.4918 15.738 31.5451C16.2125 31.6413 16.4888 31.7516 16.6408 31.8614C16.7662 31.952 16.8 32.0336 16.8 32.1496C16.8 32.2505 16.755 32.3589 16.6116 32.457C16.4597 32.561 16.196 32.6496 15.8 32.6496C15.3023 32.6496 14.9788 32.488 14.7219 32.3168C14.5381 32.1943 14.2897 32.2439 14.1672 32.4277C14.0447 32.6115 14.0943 32.8599 14.2781 32.9824C14.6213 33.2112 15.0977 33.4496 15.8 33.4496C16.304 33.4496 16.7403 33.3383 17.0634 33.1172C17.395 32.8903 17.6 32.5487 17.6 32.1496C17.6 31.7657 17.4338 31.4473 17.1092 31.2128C16.813 30.9989 16.3939 30.8605 15.8785 30.7574C15.8671 30.7551 15.8557 30.7533 15.8442 30.7521C15.4172 30.7046 15.2181 30.616 15.1245 30.5348C15.0548 30.4744 15 30.3805 15 30.1496Z" class="fill-border"/><path d="M13.0001 29.0498C13.221 29.0498 13.4001 29.2289 13.4001 29.4498V31.8498C13.4001 32.6932 12.6978 33.3498 11.8001 33.3498C11.2835 33.3498 10.7505 33.0966 10.4672 32.6717C10.3447 32.4879 10.3944 32.2395 10.5782 32.117C10.762 31.9944 11.0103 32.0441 11.1329 32.2279C11.2496 32.403 11.5166 32.5498 11.8001 32.5498C12.3023 32.5498 12.6001 32.2064 12.6001 31.8498V29.4498C12.6001 29.2289 12.7792 29.0498 13.0001 29.0498Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.2 29.0498C19.0189 29.0498 18.1 30.0566 18.1 31.2498C18.1 32.443 19.0189 33.4498 20.2 33.4498C21.381 33.4498 22.3 32.443 22.3 31.2498C22.3 30.0566 21.381 29.0498 20.2 29.0498ZM18.9 31.2498C18.9 30.4548 19.5032 29.8498 20.2 29.8498C20.8967 29.8498 21.5 30.4548 21.5 31.2498C21.5 32.0449 20.8967 32.6498 20.2 32.6498C19.5032 32.6498 18.9 32.0449 18.9 31.2498Z" class="fill-border"/><path d="M23.265 29.1729C23.424 29.1159 23.6016 29.1648 23.7089 29.2952L25.8001 31.8345V29.5494C25.8001 29.3285 25.9792 29.1494 26.2001 29.1494C26.421 29.1494 26.6001 29.3285 26.6001 29.5494V32.9494C26.6001 33.1183 26.4941 33.2689 26.3352 33.3259C26.1763 33.383 25.9987 33.334 25.8914 33.2037L23.8001 30.6644V32.9494C23.8001 33.1703 23.621 33.3494 23.4001 33.3494C23.1792 33.3494 23.0001 33.1703 23.0001 32.9494V29.5494C23.0001 29.3806 23.1061 29.2299 23.265 29.1729Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.1001 13.3502C13.1001 12.0913 14.107 10.9502 15.5001 10.9502H29.5093L36.9001 18.4451V38.4502C36.9001 39.709 35.8932 40.8502 34.5001 40.8502H15.5001C14.2413 40.8502 13.1001 39.8433 13.1001 38.4502V36.9502H9.5C8.12386 36.9502 7 35.8263 7 34.4502V27.9502C7 26.5741 8.12386 25.4502 9.5 25.4502H13.1001V13.3502ZM14.1001 38.4502V36.9502H27.9C29.2761 36.9502 30.4 35.8263 30.4 34.4502V27.9502C30.4 26.5741 29.2761 25.4502 27.9 25.4502H14.1001V13.3502C14.1001 12.609 14.6932 11.9502 15.5001 11.9502H28.8V18.6502C28.8 18.9263 29.0239 19.1502 29.3 19.1502H35.9001V38.4502C35.9001 39.1913 35.307 39.8502 34.5001 39.8502H15.5001C14.7589 39.8502 14.1001 39.2571 14.1001 38.4502ZM29.8 12.6693V18.1502H35.2048L29.8 12.6693ZM9.5 26.4502C8.67614 26.4502 8 27.1263 8 27.9502V34.4502C8 35.2741 8.67614 35.9502 9.5 35.9502H27.9C28.7239 35.9502 29.4 35.2741 29.4 34.4502V27.9502C29.4 27.1263 28.7239 26.4502 27.9 26.4502H9.5Z" class="fill-border"/></svg>',
connect_csv_remote:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.5 18.6512H29.3V11.4512" class="fill-background"/><path d="M27.9 36.4512H9.5C8.4 36.4512 7.5 35.5512 7.5 34.4512V27.9512C7.5 26.8512 8.4 25.9512 9.5 25.9512H27.9C29 25.9512 29.9 26.8512 29.9 27.9512V34.4512C29.9 35.5512 29 36.4512 27.9 36.4512Z" class="fill-background"/><path d="M22.5 21.6514C22.5 22.2037 22.0523 22.6514 21.5 22.6514C20.9477 22.6514 20.5 22.2037 20.5 21.6514C20.5 21.0991 20.9477 20.6514 21.5 20.6514C22.0523 20.6514 22.5 21.0991 22.5 21.6514Z" class="fill-border"/><path d="M21.5 15.8516C19.7236 15.8516 18.1536 16.505 17.0535 17.6051C16.8582 17.8004 16.5417 17.8004 16.3464 17.6051C16.1511 17.4099 16.1511 17.0933 16.3464 16.898C17.6463 15.5981 19.4763 14.8516 21.5 14.8516C23.4276 14.8516 25.2563 15.6008 26.5535 16.898C26.7488 17.0933 26.7488 17.4099 26.5535 17.6051C26.3582 17.8004 26.0417 17.8004 25.8464 17.6051C24.7436 16.5023 23.1723 15.8516 21.5 15.8516Z" class="fill-border"/><path d="M18.4323 18.9251C19.2672 18.1829 20.3539 17.6514 21.5001 17.6514C22.6708 17.6514 23.7542 18.1018 24.5679 18.8251C24.7743 19.0085 25.0903 18.9899 25.2738 18.7835C25.4573 18.5772 25.4387 18.2611 25.2323 18.0777C24.246 17.2009 22.9294 16.6514 21.5001 16.6514C20.0463 16.6514 18.733 17.3198 17.7679 18.1777C17.5615 18.3611 17.5429 18.6772 17.7264 18.8835C17.9099 19.0899 18.2259 19.1085 18.4323 18.9251Z" class="fill-border"/><path d="M21.4999 19.4512C20.8353 19.4512 20.2454 19.6975 19.72 20.1353C19.5079 20.3121 19.1926 20.2834 19.0158 20.0713C18.839 19.8591 18.8677 19.5438 19.0798 19.3671C19.7544 18.8049 20.5645 18.4512 21.4999 18.4512C22.4283 18.4512 23.2568 18.8009 23.8535 19.3976C24.0487 19.5929 24.0487 19.9095 23.8535 20.1047C23.6582 20.3 23.3416 20.3 23.1464 20.1047C22.7431 19.7014 22.1715 19.4512 21.4999 19.4512Z" class="fill-border"/><path d="M24.7698 29.403C24.8539 29.1987 24.7565 28.9649 24.5523 28.8808C24.348 28.7967 24.1142 28.8941 24.0301 29.0984L22.9873 31.6309L21.8659 29.0892C21.7768 28.8871 21.5406 28.7956 21.3385 28.8847C21.1364 28.9739 21.0448 29.21 21.134 29.4121L22.634 32.8121C22.6987 32.9588 22.8447 33.0527 23.0049 33.0507C23.1652 33.0487 23.3088 32.9512 23.3698 32.803L24.7698 29.403Z" class="fill-border"/><path d="M14.0895 29.9891C13.8661 30.2036 13.7 30.544 13.7 31.0506C13.7 31.5726 13.8507 31.9105 14.0579 32.1177C14.2659 32.3258 14.5794 32.4506 15 32.4506C15.3828 32.4506 15.684 32.301 15.9172 32.0677C16.0734 31.9115 16.3267 31.9115 16.4829 32.0677C16.6391 32.224 16.6391 32.4772 16.4829 32.6334C16.1161 33.0002 15.6172 33.2506 15 33.2506C14.4206 33.2506 13.8842 33.0754 13.4922 32.6834C13.0994 32.2906 12.9 31.7286 12.9 31.0506C12.9 30.3572 13.1339 29.7976 13.5355 29.412C13.933 29.0304 14.4624 28.8506 15 28.8506C15.5301 28.8506 16.0267 29.1116 16.3829 29.4677C16.5391 29.624 16.5391 29.8772 16.3829 30.0334C16.2267 30.1896 15.9734 30.1896 15.8172 30.0334C15.5733 29.7896 15.2699 29.6506 15 29.6506C14.6377 29.6506 14.317 29.7708 14.0895 29.9891Z" class="fill-border"/><path d="M18.2 29.9504C18.2 29.7644 18.4146 29.4504 19 29.4504C19.4231 29.4504 19.6617 29.5285 20.0211 29.7082C20.2187 29.807 20.4589 29.7269 20.5577 29.5293C20.6565 29.3317 20.5764 29.0914 20.3789 28.9926C19.9383 28.7723 19.5769 28.6504 19 28.6504C18.1854 28.6504 17.4 29.1364 17.4 29.9504C17.4 30.3195 17.4952 30.6756 17.8005 30.9402C18.0784 31.181 18.4727 31.2926 18.9379 31.3459C19.4125 31.4421 19.6888 31.5524 19.8408 31.6622C19.9662 31.7527 20 31.8343 20 31.9504C20 32.0513 19.955 32.1597 19.8116 32.2578C19.6596 32.3617 19.396 32.4504 19 32.4504C18.5023 32.4504 18.1787 32.2888 17.9218 32.1176C17.738 31.995 17.4897 32.0447 17.3671 32.2285C17.2446 32.4123 17.2943 32.6607 17.4781 32.7832C17.8212 33.012 18.2977 33.2504 19 33.2504C19.504 33.2504 19.9403 33.139 20.2633 32.918C20.5949 32.6911 20.8 32.3495 20.8 31.9504C20.8 31.5664 20.6337 31.248 20.3092 31.0136C20.0129 30.7997 19.5938 30.6612 19.0784 30.5582C19.0671 30.5559 19.0556 30.5541 19.0441 30.5528C18.6172 30.5054 18.418 30.4167 18.3244 30.3356C18.2547 30.2752 18.2 30.1813 18.2 29.9504Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.1001 13.3512C13.1001 12.0923 14.107 10.9512 15.5001 10.9512H29.3001C29.4339 10.9512 29.5622 11.0048 29.6561 11.1001L36.7561 18.3001C36.8484 18.3937 36.9001 18.5198 36.9001 18.6512V38.4512C36.9001 39.71 35.8932 40.8512 34.5001 40.8512H15.5001C14.2413 40.8512 13.1001 39.8443 13.1001 38.4512V36.9512H9.5C8.12386 36.9512 7 35.8273 7 34.4512V27.9512C7 26.575 8.12386 25.4512 9.5 25.4512H13.1001V13.3512ZM14.1001 38.4512V36.9512H27.9C29.2761 36.9512 30.4 35.8273 30.4 34.4512V27.9512C30.4 26.575 29.2761 25.4512 27.9 25.4512H14.1001V13.3512C14.1001 12.61 14.6932 11.9512 15.5001 11.9512H28.8V18.6512C28.8 18.9273 29.0239 19.1512 29.3 19.1512H35.9001V38.4512C35.9001 39.1923 35.307 39.8512 34.5001 39.8512H15.5001C14.7589 39.8512 14.1001 39.258 14.1001 38.4512ZM29.8 12.6703V18.1512H35.2048L29.8 12.6703ZM9.5 26.4512C8.67614 26.4512 8 27.1273 8 27.9512V34.4512C8 35.275 8.67614 35.9512 9.5 35.9512H27.9C28.7239 35.9512 29.4 35.275 29.4 34.4512V27.9512C29.4 27.1273 28.7239 26.4512 27.9 26.4512H9.5Z" class="fill-border"/></svg>',
connect_json_remote:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36.5 18.6502H29.3V11.4502" class="fill-background"/><path d="M27.9 36.4502H9.5C8.4 36.4502 7.5 35.5502 7.5 34.4502V27.9502C7.5 26.8502 8.4 25.9502 9.5 25.9502H27.9C29 25.9502 29.9 26.8502 29.9 27.9502V34.4502C29.9 35.5502 29 36.4502 27.9 36.4502Z" class="fill-background"/><path d="M21.5 22.6504C22.0523 22.6504 22.5 22.2027 22.5 21.6504C22.5 21.0981 22.0523 20.6504 21.5 20.6504C20.9477 20.6504 20.5 21.0981 20.5 21.6504C20.5 22.2027 20.9477 22.6504 21.5 22.6504Z" class="fill-border"/><path d="M17.0535 17.6041C18.1536 16.504 19.7236 15.8506 21.5 15.8506C23.1723 15.8506 24.7436 16.5014 25.8464 17.6041C26.0417 17.7994 26.3582 17.7994 26.5535 17.6041C26.7488 17.4089 26.7488 17.0923 26.5535 16.897C25.2563 15.5998 23.4276 14.8506 21.5 14.8506C19.4763 14.8506 17.6463 15.5971 16.3464 16.897C16.1511 17.0923 16.1511 17.4089 16.3464 17.6041C16.5417 17.7994 16.8582 17.7994 17.0535 17.6041Z" class="fill-border"/><path d="M21.5 17.6504C20.3538 17.6504 19.2671 18.1819 18.4322 18.9241C18.2258 19.1076 17.9097 19.089 17.7263 18.8826C17.5428 18.6762 17.5614 18.3601 17.7678 18.1767C18.7328 17.3189 20.0462 16.6504 21.5 16.6504C22.9292 16.6504 24.2459 17.2 25.2322 18.0767C25.4386 18.2601 25.4571 18.5762 25.2737 18.7826C25.0902 18.989 24.7742 19.0076 24.5678 18.8241C23.7541 18.1008 22.6707 17.6504 21.5 17.6504Z" class="fill-border"/><path d="M19.7201 20.1343C20.2455 19.6965 20.8354 19.4502 21.5 19.4502C22.1717 19.4502 22.7432 19.7005 23.1465 20.1037C23.3417 20.299 23.6583 20.299 23.8536 20.1037C24.0489 19.9085 24.0489 19.5919 23.8536 19.3966C23.2569 18.7999 22.4284 18.4502 21.5 18.4502C20.5647 18.4502 19.7546 18.8039 19.0799 19.3661C18.8678 19.5429 18.8391 19.8581 19.0159 20.0703C19.1927 20.2824 19.508 20.3111 19.7201 20.1343Z" class="fill-border"/><path d="M15.8 29.6506C15.2146 29.6506 15 29.9646 15 30.1506C15 30.3815 15.0548 30.4754 15.1245 30.5358C15.2181 30.6169 15.4172 30.7056 15.8442 30.753C15.8557 30.7543 15.8671 30.7561 15.8785 30.7584C16.3939 30.8614 16.813 30.9999 17.1092 31.2138C17.4338 31.4482 17.6 31.7666 17.6 32.1506C17.6 32.5497 17.395 32.8913 17.0634 33.1182C16.7403 33.3392 16.304 33.4506 15.8 33.4506C15.0977 33.4506 14.6213 33.2122 14.2781 32.9834C14.0943 32.8609 14.0447 32.6125 14.1672 32.4287C14.2897 32.2449 14.5381 32.1952 14.7219 32.3178C14.9788 32.489 15.3023 32.6506 15.8 32.6506C16.196 32.6506 16.4597 32.5619 16.6116 32.458C16.755 32.3598 16.8 32.2515 16.8 32.1506C16.8 32.0345 16.7662 31.9529 16.6408 31.8624C16.4888 31.7526 16.2125 31.6423 15.738 31.5461C15.2727 31.4928 14.8784 31.3812 14.6005 31.1404C14.2952 30.8758 14.2 30.5197 14.2 30.1506C14.2 29.3366 14.9854 28.8506 15.8 28.8506C16.3769 28.8506 16.7383 28.9725 17.1789 29.1928C17.3765 29.2916 17.4566 29.5319 17.3578 29.7295C17.259 29.9271 17.0187 30.0072 16.8211 29.9084C16.4617 29.7286 16.2231 29.6506 15.8 29.6506Z" class="fill-border"/><path d="M13.3999 29.4498C13.3999 29.2289 13.2209 29.0498 12.9999 29.0498C12.779 29.0498 12.5999 29.2289 12.5999 29.4498V31.8498C12.5999 32.2064 12.3022 32.5498 11.7999 32.5498C11.5165 32.5498 11.2495 32.403 11.1328 32.2279C11.0102 32.0441 10.7619 31.9944 10.5781 32.117C10.3943 32.2395 10.3446 32.4879 10.4671 32.6717C10.7504 33.0966 11.2834 33.3498 11.7999 33.3498C12.6977 33.3498 13.3999 32.6932 13.3999 31.8498V29.4498Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.1 31.2498C18.1 30.0566 19.0189 29.0498 20.2 29.0498C21.381 29.0498 22.3 30.0566 22.3 31.2498C22.3 32.443 21.381 33.4498 20.2 33.4498C19.0189 33.4498 18.1 32.443 18.1 31.2498ZM20.2 29.8498C19.5032 29.8498 18.9 30.4548 18.9 31.2498C18.9 32.0449 19.5032 32.6498 20.2 32.6498C20.8967 32.6498 21.5 32.0449 21.5 31.2498C21.5 30.4548 20.8967 29.8498 20.2 29.8498Z" class="fill-border"/><path d="M23.7088 29.2961C23.6014 29.1658 23.4238 29.1169 23.2649 29.1739C23.106 29.2309 23 29.3816 23 29.5504V32.9504C23 33.1713 23.1791 33.3504 23.4 33.3504C23.6209 33.3504 23.8 33.1713 23.8 32.9504V30.6653L25.8912 33.2047C25.9986 33.335 26.1762 33.3839 26.3351 33.3269C26.494 33.2699 26.6 33.1192 26.6 32.9504V29.5504C26.6 29.3295 26.4209 29.1504 26.2 29.1504C25.9791 29.1504 25.8 29.3295 25.8 29.5504V31.8355L23.7088 29.2961Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 10.9502C14.1068 10.9502 13.1 12.0913 13.1 13.3502V25.4502H9.5C8.12386 25.4502 7 26.5741 7 27.9502V34.4502C7 35.8263 8.12386 36.9502 9.5 36.9502H13.1V38.4502C13.1 39.8433 14.2411 40.8502 15.5 40.8502H34.5C35.8931 40.8502 36.9 39.709 36.9 38.4502V18.4451L29.5091 10.9502H15.5ZM14.1 36.9502V38.4502C14.1 39.2571 14.7588 39.8502 15.5 39.8502H34.5C35.3069 39.8502 35.9 39.1913 35.9 38.4502V19.1502H29.3C29.0239 19.1502 28.8 18.9263 28.8 18.6502V11.9502H15.5C14.6931 11.9502 14.1 12.609 14.1 13.3502V25.4502H27.9C29.2761 25.4502 30.4 26.5741 30.4 27.9502V34.4502C30.4 35.8263 29.2761 36.9502 27.9 36.9502H14.1ZM29.8 18.1502V12.6694L35.2047 18.1502H29.8ZM8 27.9502C8 27.1263 8.67614 26.4502 9.5 26.4502H27.9C28.7239 26.4502 29.4 27.1263 29.4 27.9502V34.4502C29.4 35.2741 28.7239 35.9502 27.9 35.9502H9.5C8.67614 35.9502 8 35.2741 8 34.4502V27.9502Z" class="fill-border"/></svg>',
connect_elastic:'<svg width="50" height="50" viewBox="-14 -14 150 150" xmlns="http://www.w3.org/2000/svg"><path d="m53.2 68h-32.4c-1.2-3.8-1.8-7.8-1.8-12s0.6-8.2 1.8-12h53.2c6.7 0 12 5.4 12 12s-5.3 12-11.9 12h-20.9zm-1.5 4h-29.4c3.1 7.1 8.2 13.2 14.7 17.4 6.3 4.2 13.9 6.6 22 6.6 13.9 0 26.1-7.1 33.3-17.8-3.7-3.8-8.9-6.2-14.6-6.2h-26zm26-32c5.7 0 10.9-2.4 14.6-6.2-7.2-10.7-19.4-17.8-33.3-17.8-8.1 0-15.7 2.4-22 6.6-6.4 4.2-11.5 10.3-14.7 17.4h55.4z" class="fill-border" /></svg>',open:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M34.6 20.9H15.6V18.8C15.6 17.9 16.3 17.2 17.2 17.2H33C33.9 17.2 34.6 17.9 34.6 18.8V20.9Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 12V20.4031C10.7554 20.459 9.87391 21.386 10.0029 22.5542L10.0031 22.5556L11.8502 40.0004H38.1499L39.997 22.5556L39.9971 22.5543C40.1303 21.3489 39.1877 20.4004 38.1 20.4004L38.1 15.2C38.1 14.045 37.1969 13.1 36.1 13.1H23.9981L20.6981 10H13.7C12.5801 10 11.8 10.9698 11.8 12ZM13.7 11C13.22 11 12.8 11.4302 12.8 12V20.4004H15.1V18.8002C15.1 17.6241 16.0238 16.7002 17.2 16.7002H33C34.1761 16.7002 35.1 17.6241 35.1 18.8002V20.4004H37.1V15.2C37.1 14.555 36.6032 14.1 36.1 14.1H23.602L20.302 11H13.7ZM11.9 21.4004C11.3881 21.4004 10.931 21.8512 10.997 22.4452L10.9973 22.4477L12.7499 39.0004H37.2502L39.0028 22.4477L39.0031 22.4452C39.0691 21.8512 38.612 21.4004 38.1 21.4004H11.9ZM16.1 18.8002C16.1 18.1763 16.5761 17.7002 17.2 17.7002H33C33.6238 17.7002 34.1 18.1763 34.1 18.8002V20.4002H16.1V18.8002Z" class="fill-border"/></svg>',
open_local:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 18.1004V12.9004C12.4 12.1004 13 11.4004 13.8 11.4004H20.6L23.9 14.5004H36.2C37 14.5004 37.7 15.2004 37.7 16.1004V18.2004" class="fill-background"/><path d="M32.1 30.9004V32.2004C32.1 32.9004 31.5 33.5004 30.8 33.5004H19.2C18.5 33.5004 17.9 32.9004 17.9 32.2004V30.9004H32.1Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.5001 33.5006H19.2001C18.2239 33.5006 17.4001 32.6767 17.4001 31.7006V23.9006C17.4001 22.9244 18.2239 22.1006 19.2001 22.1006H30.8001C31.7762 22.1006 32.6001 22.9244 32.6001 23.9006V31.7006C32.6001 32.6767 31.7762 33.5006 30.8001 33.5006H25.5001V35.6006H27.4001C27.6762 35.6006 27.9001 35.8244 27.9001 36.1006C27.9001 36.3767 27.6762 36.6006 27.4001 36.6006H22.6001C22.3239 36.6006 22.1001 36.3767 22.1001 36.1006C22.1001 35.8244 22.3239 35.6006 22.6001 35.6006H24.5001V33.5006ZM19.2001 23.1006C18.7762 23.1006 18.4001 23.4767 18.4001 23.9006V30.4004H31.6001V23.9006C31.6001 23.4767 31.2239 23.1006 30.8001 23.1006H19.2001ZM18.4001 31.7006V31.4004H31.6001V31.7006C31.6001 32.1244 31.2239 32.5006 30.8001 32.5006H25.0245C25.0164 32.5002 25.0083 32.5 25.0001 32.5C24.9919 32.5 24.9837 32.5002 24.9756 32.5006H19.2001C18.7762 32.5006 18.4001 32.1244 18.4001 31.7006Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.9001 12.9004V17.6006C10.8139 17.6006 9.87241 18.5465 10.0024 19.7495L11.8416 40.9006H38.1584L39.9977 19.7495C40.1237 18.5836 39.2433 17.6592 38.2001 17.6033V16.1004C38.2001 14.9454 37.2969 14.0004 36.2001 14.0004H24.0981L20.7981 10.9004H13.8001C12.6802 10.9004 11.9001 11.8702 11.9001 12.9004ZM13.8001 11.9004C13.32 11.9004 12.9001 12.3306 12.9001 12.9004V17.6006H37.2001V16.1004C37.2001 15.4554 36.7032 15.0004 36.2001 15.0004H23.7021L20.4021 11.9004H13.8001ZM11.9 18.6006C11.3881 18.6006 10.931 19.0514 10.997 19.6454L10.9983 19.6573L12.7584 39.9006H37.2416L39.003 19.6454C39.069 19.0513 38.612 18.6006 38.1 18.6006H11.9Z" class="fill-border"/></svg>',
open_remote:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 18.1005V12.9005C12.4 12.1005 13 11.4005 13.8 11.4005H20.6L23.9 14.5005H36.2C37 14.5005 37.7 15.2005 37.7 16.1005V18.2005" class="fill-background"/><path d="M25.0999 36.1004C26.094 36.1004 26.8999 35.2945 26.8999 34.3004C26.8999 33.3063 26.094 32.5004 25.0999 32.5004C24.1058 32.5004 23.2999 33.3063 23.2999 34.3004C23.2999 35.2945 24.1058 36.1004 25.0999 36.1004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.7999 34.3C22.7999 33.0297 23.8296 32 25.0999 32C26.3702 32 27.3999 33.0297 27.3999 34.3C27.3999 35.5703 26.3702 36.6 25.0999 36.6C23.8296 36.6 22.7999 35.5703 22.7999 34.3ZM25.0999 33C24.3819 33 23.7999 33.582 23.7999 34.3C23.7999 35.018 24.3819 35.6 25.0999 35.6C25.8179 35.6 26.3999 35.018 26.3999 34.3C26.3999 33.582 25.8179 33 25.0999 33Z" class="fill-border"/><path d="M17.1616 26.646C19.1675 24.5446 21.9369 23.3008 25.0999 23.3008C28.1617 23.3008 30.9361 24.5441 32.9463 26.5543C33.1416 26.7496 33.4582 26.7496 33.6535 26.5543C33.8487 26.3591 33.8487 26.0425 33.6535 25.8472C31.4637 23.6575 28.4381 22.3008 25.0999 22.3008C21.6628 22.3008 18.6323 23.657 16.4382 25.9555C16.2475 26.1553 16.2549 26.4718 16.4547 26.6625C16.6544 26.8531 16.9709 26.8458 17.1616 26.646Z" class="fill-border"/><path d="M24.9999 26.5C22.8464 26.5 20.87 27.437 19.4535 28.8536C19.2582 29.0488 18.9416 29.0488 18.7464 28.8536C18.5511 28.6583 18.5511 28.3417 18.7464 28.1464C20.3298 26.563 22.5534 25.5 24.9999 25.5C27.428 25.5 29.6639 26.4501 31.1654 28.0588C31.3539 28.2607 31.3429 28.5771 31.1411 28.7655C30.9392 28.9539 30.6228 28.943 30.4344 28.7412C29.1359 27.3499 27.1718 26.5 24.9999 26.5Z" class="fill-border"/><path d="M21.8535 31.2539C22.666 30.4414 23.8412 29.9004 25.0999 29.9004C26.3481 29.9004 27.4256 30.4332 28.2464 31.2539C28.4416 31.4492 28.7582 31.4492 28.9535 31.2539C29.1487 31.0587 29.1487 30.7421 28.9535 30.5468C27.9742 29.5676 26.6517 28.9004 25.0999 28.9004C23.5586 28.9004 22.1338 29.5594 21.1464 30.5468C20.9511 30.7421 20.9511 31.0587 21.1464 31.2539C21.3416 31.4492 21.6582 31.4492 21.8535 31.2539Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8999 17.6006V12.9004C11.8999 11.8702 12.68 10.9004 13.7999 10.9004H20.7979L24.0979 14.0004H36.1999C37.2968 14.0004 38.1999 14.9454 38.1999 16.1004V17.6033C39.2431 17.6591 40.1236 18.5836 39.9975 19.7495L38.1583 40.9006H11.8415L10.0023 19.7495C9.87228 18.5465 10.8138 17.6006 11.8999 17.6006ZM12.8999 12.9004C12.8999 12.3306 13.3198 11.9004 13.7999 11.9004H20.4019L23.7019 15.0004H36.1999C36.703 15.0004 37.1999 15.4554 37.1999 16.1004V17.6006H12.8999V12.9004ZM10.9969 19.6454C10.9309 19.0514 11.388 18.6006 11.8999 18.6006H38.0999C38.6119 18.6006 39.0688 19.0513 39.0028 19.6454L37.2415 39.9006H12.7583L10.9982 19.6573L10.9969 19.6454Z" class="fill-border"/></svg>',
grid:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M39.5 20.2H10.5V12.6C10.5 11.4 11.4 10.5 12.6 10.5H37.4C38.6 10.5 39.5 11.4 39.5 12.6V20.2V20.2Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 12.6V37.4C10 38.8761 11.1239 40 12.6 40H37.4C38.8761 40 40 38.8761 40 37.4V12.6C40 11.1239 38.8761 10 37.4 10H12.6C11.1239 10 10 11.1239 10 12.6ZM12.6 11C11.6761 11 11 11.6761 11 12.6V19.7H39V12.6C39 11.6761 38.3239 11 37.4 11H12.6ZM39 29.5996V20.7H30.3V29.5996H39ZM29.3 29.5996H20.7V20.7H29.3V29.5996ZM29.3 30.5996V39H20.7V30.5996H29.3ZM30.3 39V30.5996H39V37.4C39 38.3239 38.3239 39 37.4 39H30.3ZM19.7 29.5996V20.7H11V29.5996H19.7ZM11 30.5996H19.7V39H12.6C11.6761 39 11 38.3239 11 37.4V30.5996Z" class="fill-border"/></svg>',
save:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M29.9496 18.5H20.9496C20.0496 18.5 19.3496 17.8 19.3496 16.9V10.5H31.5496V16.9C31.5496 17.8 30.8496 18.5 29.9496 18.5Z" class="fill-background"/><path d="M35.9496 39.5H14.8496V25.9C14.8496 24.6 15.9496 23.5 17.2496 23.5H33.4496C34.7496 23.5 35.8496 24.6 35.8496 25.9V39.5H35.9496Z" class="fill-background"/><path d="M31.55 29.4004H19.25V28.4004H31.55V29.4004Z" class="fill-border"/><path d="M19.25 34.5996H31.55V33.5996H19.25V34.5996Z" class="fill-border"/><path d="M28.5498 12.4004V16.4004H29.5498V12.4004H28.5498Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.7498 10C11.7737 10 10.0498 11.7239 10.0498 13.7V36.2C10.0498 38.2862 11.7839 39.9 13.7498 39.9H14.3496V40H35.9496V39.9H36.2498C38.336 39.9 39.9498 38.166 39.9498 36.2V17C39.9498 16.8757 39.9035 16.7559 39.82 16.6639L33.92 10.1639C33.8253 10.0595 33.6908 10 33.5498 10H13.7498ZM15.3496 38.9H35.3496V25.9C35.3496 24.8761 34.4735 24 33.4496 24H17.2496C16.2258 24 15.3496 24.8761 15.3496 25.9V38.9ZM36.3496 25.9V38.8982C37.8154 38.844 38.9498 37.6024 38.9498 36.2V17.1931L33.3284 11H32.0496V16.9C32.0496 18.0761 31.1258 19 29.9496 19H20.9496C19.7735 19 18.8496 18.0761 18.8496 16.9V11H13.7498C12.3259 11 11.0498 12.2761 11.0498 13.7V36.2C11.0498 37.7138 12.3158 38.9 13.7498 38.9H14.3496V25.9C14.3496 24.3239 15.6735 23 17.2496 23H33.4496C35.0257 23 36.3496 24.3239 36.3496 25.9ZM31.0496 11H19.8496V16.9C19.8496 17.5239 20.3258 18 20.9496 18H29.9496C30.5735 18 31.0496 17.5239 31.0496 16.9V11Z" class="fill-border"/></svg>',
"export":'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M33.6998 19.2L24.9998 10.5L16.2998 19.2H21.1998V31.8H28.7998V19.2H33.6998Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M25.3534 10.1464C25.1581 9.95118 24.8415 9.95118 24.6463 10.1464L15.9463 18.8464C15.8033 18.9894 15.7605 19.2045 15.8379 19.3913C15.9153 19.5782 16.0976 19.7 16.2998 19.7H20.6998V23H12.1C10.9239 23 10 23.9239 10 25.1V37.9C10 39.0761 10.9239 40 12.1 40H37.9C39.0761 40 40 39.0761 40 37.9V25.1C40 23.9239 39.0761 23 37.9 23H29.2998V19.7H33.6998C33.9021 19.7 34.0844 19.5782 34.1618 19.3913C34.2392 19.2045 34.1964 18.9894 34.0534 18.8464L25.3534 10.1464ZM29.2998 24V31.8C29.2998 32.0761 29.076 32.3 28.7998 32.3H21.1998C20.9237 32.3 20.6998 32.0761 20.6998 31.8V24H12.1C11.4761 24 11 24.4761 11 25.1V37.9C11 38.5239 11.4761 39 12.1 39H37.9C38.5239 39 39 38.5239 39 37.9V25.1C39 24.4761 38.5239 24 37.9 24H29.2998ZM17.5069 18.7L24.9998 11.2071L32.4927 18.7H28.7998C28.5237 18.7 28.2998 18.9239 28.2998 19.2V31.3H21.6998V19.2C21.6998 18.9239 21.476 18.7 21.1998 18.7H17.5069Z" class="fill-border"/></svg>',
export_print:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M32.9462 33.5002H38.0463C39.1463 33.5002 40.0463 32.5002 39.9463 31.5002V22.2002C39.9463 21.1002 39.0463 20.2002 37.9463 20.2002H13.0463C11.9463 20.2002 11.0463 21.1002 11.0463 22.2002V31.5002C11.0463 32.6002 11.9463 33.5002 13.0463 33.5002H18.1462V27.8008H32.9462V33.5002Z" class="fill-background"/><path d="M32.9463 16.0004H28.3463V11.4004L32.9463 16.0004Z" class="fill-background"/><path d="M15.4462 22C15.1701 22 14.9462 22.2239 14.9462 22.5C14.9462 22.7761 15.1701 23 15.4462 23H18.1462C18.4224 23 18.6462 22.7761 18.6462 22.5C18.6462 22.2239 18.4224 22 18.1462 22H15.4462Z" class="fill-border"/><path d="M20.7463 33.5C20.7463 33.2239 20.9701 33 21.2463 33H29.9463C30.2224 33 30.4463 33.2239 30.4463 33.5C30.4463 33.7761 30.2224 34 29.9463 34H21.2463C20.9701 34 20.7463 33.7761 20.7463 33.5Z" class="fill-border"/><path d="M21.2463 35.7002C20.9701 35.7002 20.7463 35.9241 20.7463 36.2002C20.7463 36.4763 20.9701 36.7002 21.2463 36.7002H29.9463C30.2224 36.7002 30.4463 36.4763 30.4463 36.2002C30.4463 35.9241 30.2224 35.7002 29.9463 35.7002H21.2463Z" class="fill-border"/><path d="M20.7463 30.7002C20.7463 30.4241 20.9701 30.2002 21.2463 30.2002H29.9463C30.2224 30.2002 30.4463 30.4241 30.4463 30.7002C30.4463 30.9763 30.2224 31.2002 29.9463 31.2002H21.2463C20.9701 31.2002 20.7463 30.9763 20.7463 30.7002Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.6462 12.7004C17.6462 11.7242 18.4701 10.9004 19.4462 10.9004L22.3618 11.9004H19.4462C19.0224 11.9004 18.6462 12.2765 18.6462 12.7004V19.7002H32.4462V16.5004H28.3463C28.0701 16.5004 27.8463 16.2765 27.8463 16.0004V13.7815L28.8463 14.1245V15.5004H31.7391L31.1552 14.9165L33.3075 15.6547C33.3964 15.7476 33.4462 15.8714 33.4462 16.0004V19.7002H37.9463C39.3224 19.7002 40.4463 20.8241 40.4463 22.2002V31.477C40.5592 32.7766 39.4174 34.0002 38.0463 34.0002H33.4462V40.4008C33.4462 40.6769 33.2224 40.9008 32.9462 40.9008H18.1462C17.8701 40.9008 17.6462 40.6769 17.6462 40.4008V34.0002H13.0463C11.6701 34.0002 10.5463 32.8763 10.5463 31.5002V22.2002C10.5463 20.8241 11.6701 19.7002 13.0463 19.7002H17.6462V12.7004ZM38.0463 33.0002H33.4462V28.3008H35.7462C36.0224 28.3008 36.2462 28.0769 36.2462 27.8008C36.2462 27.5246 36.0224 27.3008 35.7462 27.3008H15.4462C15.1701 27.3008 14.9462 27.5246 14.9462 27.8008C14.9462 28.0769 15.1701 28.3008 15.4462 28.3008H17.6462V33.0002H13.0463C12.2224 33.0002 11.5463 32.3241 11.5463 31.5002V22.2002C11.5463 21.3763 12.2224 20.7002 13.0463 20.7002H37.9463C38.7701 20.7002 39.4463 21.3763 39.4463 22.2002V31.5002C39.4463 31.5168 39.4471 31.5334 39.4487 31.5499C39.5178 32.2405 38.8658 33.0002 38.0463 33.0002ZM18.6462 28.3008V39.9008H32.4462V28.3008H18.6462Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.1485 14.9098L33.2998 15.6468L28.6998 11.0469C28.686 11.0331 28.6716 11.0202 28.6564 11.0083C28.6201 10.9795 28.58 10.956 28.5376 10.9385C28.5219 10.9319 28.5059 10.9262 28.4896 10.9214C28.4513 10.9099 28.4115 10.903 28.371 10.901C28.3628 10.9006 28.3545 10.9004 28.3462 10.9004H19.4462L22.365 11.9004H22.3618L27.8463 13.7815V13.7784L28.8463 14.121V14.1245L31.1552 14.9165L31.1485 14.9098ZM31.1485 14.9098L28.8463 12.6075V14.121L31.1485 14.9098ZM27.8463 13.7784L22.365 11.9004H27.8463V13.7784Z" class="fill-border"/></svg>',
export_csv:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37 18.6502H29.8V11.4502" class="fill-background"/><path d="M28.4 36.4502H10C8.9 36.4502 8 35.5502 8 34.4502V27.9502C8 26.8502 8.9 25.9502 10 25.9502H28.4C29.5 25.9502 30.4 26.8502 30.4 27.9502V34.4502C30.4 35.5502 29.5 36.4502 28.4 36.4502Z" class="fill-background"/><path d="M25.5699 29.7028C25.654 29.4985 25.5566 29.2647 25.3523 29.1806C25.148 29.0965 24.9142 29.1939 24.8301 29.3982L23.7873 31.9308L22.666 29.389C22.5768 29.1869 22.3407 29.0954 22.1385 29.1845C21.9364 29.2737 21.8449 29.5098 21.934 29.712L23.434 33.112C23.4987 33.2586 23.6447 33.3525 23.805 33.3505C23.9652 33.3485 24.1088 33.251 24.1699 33.1028L25.5699 29.7028Z" class="fill-border"/><path d="M14.8895 30.1884C14.6661 30.4028 14.5 30.7432 14.5 31.2498C14.5 31.7718 14.6507 32.1098 14.8579 32.317C15.0659 32.525 15.3794 32.6498 15.8 32.6498C16.1828 32.6498 16.4839 32.5002 16.7172 32.267C16.8734 32.1108 17.1266 32.1108 17.2829 32.267C17.4391 32.4232 17.4391 32.6764 17.2829 32.8326C16.9161 33.1994 16.4172 33.4498 15.8 33.4498C15.2206 33.4498 14.6842 33.2746 14.2922 32.8826C13.8994 32.4898 13.7 31.9278 13.7 31.2498C13.7 30.5564 13.9339 29.9968 14.3355 29.6112C14.733 29.2296 15.2623 29.0498 15.8 29.0498C16.3301 29.0498 16.8267 29.3108 17.1829 29.667C17.3391 29.8232 17.3391 30.0764 17.1829 30.2326C17.0266 30.3889 16.7734 30.3889 16.6172 30.2326C16.3733 29.9888 16.0699 29.8498 15.8 29.8498C15.4377 29.8498 15.117 29.97 14.8895 30.1884Z" class="fill-border"/><path d="M19 30.1506C19 29.9646 19.2146 29.6506 19.8 29.6506C20.2231 29.6506 20.4617 29.7286 20.8211 29.9084C21.0187 30.0072 21.259 29.9271 21.3578 29.7295C21.4566 29.5319 21.3765 29.2916 21.1789 29.1928C20.7383 28.9725 20.3769 28.8506 19.8 28.8506C18.9854 28.8506 18.2 29.3366 18.2 30.1506C18.2 30.5197 18.2952 30.8758 18.6005 31.1404C18.8784 31.3812 19.2727 31.4928 19.738 31.5461C20.2125 31.6423 20.4888 31.7526 20.6408 31.8624C20.7662 31.9529 20.8 32.0345 20.8 32.1506C20.8 32.2515 20.755 32.3598 20.6116 32.458C20.4597 32.5619 20.196 32.6506 19.8 32.6506C19.3023 32.6506 18.9788 32.489 18.7219 32.3178C18.5381 32.1952 18.2897 32.2449 18.1672 32.4287C18.0447 32.6125 18.0943 32.8609 18.2781 32.9834C18.6213 33.2122 19.0977 33.4506 19.8 33.4506C20.304 33.4506 20.7403 33.3392 21.0634 33.1182C21.395 32.8913 21.6 32.5497 21.6 32.1506C21.6 31.7666 21.4338 31.4482 21.1092 31.2138C20.813 30.9999 20.3939 30.8614 19.8785 30.7584C19.8671 30.7561 19.8557 30.7543 19.8442 30.753C19.4172 30.7056 19.2181 30.6169 19.1245 30.5358C19.0548 30.4754 19 30.3815 19 30.1506Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.6001 13.3502C13.6001 12.0913 14.607 10.9502 16.0001 10.9502H30.0093L37.4001 18.4451V38.4502C37.4001 39.709 36.3932 40.8502 35.0001 40.8502H16.0001C14.7413 40.8502 13.6001 39.8433 13.6001 38.4502V36.9502H10C8.62386 36.9502 7.5 35.8263 7.5 34.4502V27.9502C7.5 26.5741 8.62386 25.4502 10 25.4502H13.6001V13.3502ZM14.6001 38.4502V36.9502H28.4C29.7761 36.9502 30.9 35.8263 30.9 34.4502V27.9502C30.9 26.5741 29.7761 25.4502 28.4 25.4502H14.6001V13.3502C14.6001 12.609 15.1932 11.9502 16.0001 11.9502H29.3V18.6502C29.3 18.9263 29.5238 19.1502 29.8 19.1502H36.4001V38.4502C36.4001 39.1913 35.807 39.8502 35.0001 39.8502H16.0001C15.2589 39.8502 14.6001 39.2571 14.6001 38.4502ZM30.3 12.6692V18.1502H35.7048L30.3 12.6692ZM10 26.4502C9.17614 26.4502 8.5 27.1263 8.5 27.9502V34.4502C8.5 35.2741 9.17614 35.9502 10 35.9502H28.4C29.2239 35.9502 29.9 35.2741 29.9 34.4502V27.9502C29.9 27.1263 29.2239 26.4502 28.4 26.4502H10Z" class="fill-border"/></svg>',
export_excel:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37 18.6502H29.8V11.4502" class="fill-background"/><path d="M28.4 36.4502H10C8.9 36.4502 8 35.5502 8 34.4502V27.9502C8 26.8502 8.9 25.9502 10 25.9502H28.4C29.5 25.9502 30.4 26.8502 30.4 27.9502V34.4502C30.4 35.5502 29.5 36.4502 28.4 36.4502Z" class="fill-background"/><path d="M22.7 29.55C22.1146 29.55 21.9 29.864 21.9 30.05C21.9 30.2809 21.9548 30.3748 22.0245 30.4352C22.1181 30.5163 22.3172 30.605 22.7442 30.6524C22.7557 30.6537 22.7671 30.6555 22.7784 30.6578C23.2938 30.7608 23.7129 30.8993 24.0092 31.1132C24.3338 31.3476 24.5 31.666 24.5 32.05C24.5 32.4491 24.295 32.7907 23.9634 33.0176C23.6403 33.2387 23.204 33.35 22.7 33.35C21.9977 33.35 21.5212 33.1116 21.1781 32.8828C20.9943 32.7603 20.9446 32.5119 21.0672 32.3281C21.1897 32.1443 21.4381 32.0946 21.6219 32.2172C21.8787 32.3884 22.2023 32.55 22.7 32.55C23.096 32.55 23.3597 32.4613 23.5116 32.3574C23.655 32.2593 23.7 32.1509 23.7 32.05C23.7 31.934 23.6662 31.8524 23.5408 31.7618C23.3888 31.652 23.1125 31.5417 22.638 31.4455C22.1727 31.3922 21.7784 31.2806 21.5005 31.0398C21.1952 30.7752 21.1 30.4191 21.1 30.05C21.1 29.236 21.8854 28.75 22.7 28.75C23.2769 28.75 23.6383 28.8719 24.0789 29.0922C24.2765 29.191 24.3565 29.4313 24.2578 29.6289C24.159 29.8265 23.9187 29.9066 23.7211 29.8078C23.3617 29.6281 23.1231 29.55 22.7 29.55Z" class="fill-border"/><path d="M18.6 29.2506C18.6 29.0297 18.4209 28.8506 18.2 28.8506C17.9791 28.8506 17.8 29.0297 17.8 29.2506V32.7506C17.8 32.9715 17.9791 33.1506 18.2 33.1506H20.2C20.4209 33.1506 20.6 32.9715 20.6 32.7506C20.6 32.5297 20.4209 32.3506 20.2 32.3506H18.6V29.2506Z" class="fill-border"/><path d="M13.8556 28.9339C14.0306 28.799 14.2817 28.8314 14.4167 29.0063L15.45 30.3457L16.4833 29.0063C16.6182 28.8314 16.8694 28.799 17.0443 28.9339C17.2192 29.0688 17.2516 29.32 17.1167 29.4949L15.9552 31.0006L17.1167 32.5063C17.2516 32.6812 17.2192 32.9324 17.0443 33.0673C16.8694 33.2023 16.6182 33.1698 16.4833 32.9949L15.45 31.6555L14.4167 32.9949C14.2817 33.1698 14.0306 33.2023 13.8556 33.0673C13.6807 32.9324 13.6483 32.6812 13.7833 32.5063L14.9448 31.0006L13.7833 29.4949C13.6483 29.32 13.6807 29.0688 13.8556 28.9339Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0001 10.9502C14.607 10.9502 13.6001 12.0913 13.6001 13.3502V25.4502H10C8.62386 25.4502 7.5 26.5741 7.5 27.9502V34.4502C7.5 35.8263 8.62386 36.9502 10 36.9502H13.6001V38.4502C13.6001 39.8433 14.7413 40.8502 16.0001 40.8502H35.0001C36.3932 40.8502 37.4001 39.709 37.4001 38.4502V18.4451L30.0093 10.9502H16.0001ZM14.6001 36.9502V38.4502C14.6001 39.2571 15.2589 39.8502 16.0001 39.8502H35.0001C35.807 39.8502 36.4001 39.1913 36.4001 38.4502V19.1502H29.8C29.5238 19.1502 29.3 18.9263 29.3 18.6502V11.9502H16.0001C15.1932 11.9502 14.6001 12.609 14.6001 13.3502V25.4502H28.4C29.7761 25.4502 30.9 26.5741 30.9 27.9502V34.4502C30.9 35.8263 29.7761 36.9502 28.4 36.9502H14.6001ZM30.3 18.1502V12.6692L35.7048 18.1502H30.3ZM8.5 27.9502C8.5 27.1263 9.17614 26.4502 10 26.4502H28.4C29.2239 26.4502 29.9 27.1263 29.9 27.9502V34.4502C29.9 35.2741 29.2239 35.9502 28.4 35.9502H10C9.17614 35.9502 8.5 35.2741 8.5 34.4502V27.9502Z" class="fill-border"/></svg>',
export_html:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37 18.6502H29.8V11.4502" class="fill-background"/><path d="M28.4 36.4502H10C8.9 36.4502 8 35.5502 8 34.4502V27.9502C8 26.8502 8.9 25.9502 10 25.9502H28.4C29.5 25.9502 30.4 26.8502 30.4 27.9502V34.4502C30.4 35.5502 29.5 36.4502 28.4 36.4502Z" class="fill-background"/><path d="M25.4 28.75C25.6209 28.75 25.8 28.9291 25.8 29.15V32.25H27.4C27.6209 32.25 27.8 32.4291 27.8 32.65C27.8 32.8709 27.6209 33.05 27.4 33.05H25.4C25.1791 33.05 25 32.8709 25 32.65V29.15C25 28.9291 25.1791 28.75 25.4 28.75Z" class="fill-border"/><path d="M20.1411 28.941C20.0475 28.7883 19.8638 28.7164 19.6914 28.7651C19.5191 28.8137 19.4 28.9709 19.4 29.15V32.65C19.4 32.8709 19.5791 33.05 19.8 33.05C20.0209 33.05 20.2 32.8709 20.2 32.65V30.5681L21.3537 32.4505C21.373 32.4838 21.3973 32.5147 21.4263 32.5418C21.4545 32.5683 21.4861 32.5902 21.5198 32.6072C21.6276 32.6614 21.7576 32.6658 21.8719 32.6113C21.9056 32.5953 21.9373 32.5744 21.9658 32.549C21.9959 32.5223 22.0213 32.4917 22.0416 32.4584L23.3 30.5079V32.65C23.3 32.8709 23.4791 33.05 23.7 33.05C23.9209 33.05 24.1 32.8709 24.1 32.65V29.15C24.1 28.9727 23.9832 28.8165 23.813 28.7663C23.6429 28.7162 23.46 28.7841 23.3639 28.9332L21.7087 31.4987L20.1411 28.941Z" class="fill-border"/><path d="M14.7 29.15C14.7 28.9291 14.5209 28.75 14.3 28.75C14.0791 28.75 13.9 28.9291 13.9 29.15V30.4502H12.1V29.15C12.1 28.9291 11.9209 28.75 11.7 28.75C11.4791 28.75 11.3 28.9291 11.3 29.15V32.65C11.3 32.8709 11.4791 33.05 11.7 33.05C11.9209 33.05 12.1 32.8709 12.1 32.65V31.2502H13.9V32.65C13.9 32.8709 14.0791 33.05 14.3 33.05C14.5209 33.05 14.7 32.8709 14.7 32.65V29.15Z" class="fill-border"/><path d="M17.4 29.55H18.3C18.5209 29.55 18.7 29.3709 18.7 29.15C18.7 28.9291 18.5209 28.75 18.3 28.75H15.7C15.4791 28.75 15.3 28.9291 15.3 29.15C15.3 29.3709 15.4791 29.55 15.7 29.55H16.6V32.65C16.6 32.8709 16.7791 33.05 17 33.05C17.2209 33.05 17.4 32.8709 17.4 32.65V29.55Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0001 10.9502C14.607 10.9502 13.6001 12.0913 13.6001 13.3502V25.4502H10C8.62386 25.4502 7.5 26.5741 7.5 27.9502V34.4502C7.5 35.8263 8.62386 36.9502 10 36.9502H13.6001V38.4502C13.6001 39.8433 14.7413 40.8502 16.0001 40.8502H35.0001C36.3932 40.8502 37.4001 39.709 37.4001 38.4502V18.4451L30.0093 10.9502H16.0001ZM14.6001 36.9502V38.4502C14.6001 39.2571 15.2589 39.8502 16.0001 39.8502H35.0001C35.807 39.8502 36.4001 39.1913 36.4001 38.4502V19.1502H29.8C29.5238 19.1502 29.3 18.9263 29.3 18.6502V11.9502H16.0001C15.1932 11.9502 14.6001 12.609 14.6001 13.3502V25.4502H28.4C29.7761 25.4502 30.9 26.5741 30.9 27.9502V34.4502C30.9 35.8263 29.7761 36.9502 28.4 36.9502H14.6001ZM30.3 18.1502V12.6692L35.7048 18.1502H30.3ZM8.5 27.9502C8.5 27.1263 9.17614 26.4502 10 26.4502H28.4C29.2239 26.4502 29.9 27.1263 29.9 27.9502V34.4502C29.9 35.2741 29.2239 35.9502 28.4 35.9502H10C9.17614 35.9502 8.5 35.2741 8.5 34.4502V27.9502Z" class="fill-border"/></svg>',
export_image:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.9 33.9512H17.5V19.8506C17.5 18.7506 18.4 17.8506 19.5 17.8506H33.5V13.3512C33.5 12.3512 32.7 11.4512 31.6 11.4512H12.9C11.9 11.4512 11 12.2512 11 13.3512V32.0512C11 33.0512 11.8 33.9512 12.9 33.9512Z" class="fill-background"/><path d="M33.5 25.6508C34.7702 25.6508 35.7999 24.621 35.7999 23.3508C35.7999 22.0805 34.7702 21.0508 33.5 21.0508C32.2297 21.0508 31.2 22.0805 31.2 23.3508C31.2 24.621 32.2297 25.6508 33.5 25.6508Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M33.5 20.5508C31.9536 20.5508 30.7 21.8044 30.7 23.3508C30.7 24.8972 31.9536 26.1508 33.5 26.1508C35.0464 26.1508 36.3 24.8972 36.3 23.3508C36.3 21.8044 35.0464 20.5508 33.5 20.5508ZM31.7 23.3508C31.7 22.3567 32.5059 21.5508 33.5 21.5508C34.4941 21.5508 35.3 22.3567 35.3 23.3508C35.3 24.3449 34.4941 25.1508 33.5 25.1508C32.5059 25.1508 31.7 24.3449 31.7 23.3508Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.9 34.4512H17V38.3506C17 39.7267 18.1239 40.8506 19.5 40.8506H38C39.3761 40.8506 40.5 39.7267 40.5 38.3506V19.8506C40.5 18.4744 39.3761 17.3506 38 17.3506H34V13.3512C34 12.0923 32.9931 10.9512 31.6 10.9512H12.9C11.6412 10.9512 10.5 11.958 10.5 13.3512V32.0512C10.5 33.31 11.5069 34.4512 12.9 34.4512ZM12.9 11.9512C12.1588 11.9512 11.5 12.5443 11.5 13.3512V32.0512C11.5 32.7923 12.0931 33.4512 12.9 33.4512H17V19.8506C17 18.4744 18.1239 17.3506 19.5 17.3506H33V13.3512C33 12.61 32.4069 11.9512 31.6 11.9512H12.9ZM19.5 18.3506C18.6761 18.3506 18 19.0267 18 19.8506V32.8735L25.7528 25.3912C25.9427 25.2079 26.2424 25.2038 26.4373 25.3818L33.4607 31.7989L36.1521 29.1917C36.3461 29.0037 36.6544 29.0038 36.8482 29.192L39.5 31.7658V19.8506C39.5 19.0267 38.8239 18.3506 38 18.3506H19.5ZM39.5 37.3169L34.2003 32.4747L36.4997 30.2472L39.5 33.1593V37.3169ZM39.4707 38.6447L26.1094 26.4368L18 34.2633V38.3506C18 39.1744 18.6761 39.8506 19.5 39.8506H38C38.7233 39.8506 39.3327 39.3294 39.4707 38.6447Z" class="fill-border"/></svg>',
export_pdf:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37 18.6502H29.8V11.4502" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M30.3 18.1502V11.4502H29.3V18.6502C29.3 18.9263 29.5239 19.1502 29.8 19.1502H37V18.1502H30.3Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.6001 13.3502C13.6001 12.0913 14.607 10.9502 16.0001 10.9502H30.0093L37.4001 18.4451V38.4502C37.4001 39.709 36.3932 40.8502 35.0001 40.8502H16.0001C14.7413 40.8502 13.6001 39.8433 13.6001 38.4502V13.3502ZM16.0001 11.9502C15.1932 11.9502 14.6001 12.609 14.6001 13.3502V38.4502C14.6001 39.2571 15.2589 39.8502 16.0001 39.8502H35.0001C35.807 39.8502 36.4001 39.1913 36.4001 38.4502V18.8553L29.5909 11.9502H16.0001Z" class="fill-border"/><path d="M28.4 36.4502H10C8.9 36.4502 8 35.5502 8 34.4502V27.9502C8 26.8502 8.9 25.9502 10 25.9502H28.4C29.5 25.9502 30.4 26.8502 30.4 27.9502V34.4502C30.4 35.5502 29.5 36.4502 28.4 36.4502Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 26.4502C9.17614 26.4502 8.5 27.1263 8.5 27.9502V34.4502C8.5 35.2741 9.17614 35.9502 10 35.9502H28.4C29.2239 35.9502 29.9 35.2741 29.9 34.4502V27.9502C29.9 27.1263 29.2239 26.4502 28.4 26.4502H10ZM7.5 27.9502C7.5 26.5741 8.62386 25.4502 10 25.4502H28.4C29.7761 25.4502 30.9 26.5741 30.9 27.9502V34.4502C30.9 35.8263 29.7761 36.9502 28.4 36.9502H10C8.62386 36.9502 7.5 35.8263 7.5 34.4502V27.9502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.1 28.8502C18.3209 28.8502 18.5 29.0293 18.5 29.2502V32.6502C18.5 32.8711 18.3209 33.0502 18.1 33.0502C17.879 33.0502 17.7 32.8711 17.7 32.6502V29.2502C17.7 29.0293 17.879 28.8502 18.1 28.8502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.1 29.2502C22.1 29.0293 22.2791 28.8502 22.5 28.8502H24.3C24.5209 28.8502 24.7 29.0293 24.7 29.2502C24.7 29.4711 24.5209 29.6502 24.3 29.6502H22.9V32.6502C22.9 32.8711 22.7209 33.0502 22.5 33.0502C22.2791 33.0502 22.1 32.8711 22.1 32.6502V29.2502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3 28.8502C14.5209 28.8502 14.7 29.0293 14.7 29.2502V32.6502C14.7 32.8711 14.5209 33.0502 14.3 33.0502C14.0791 33.0502 13.9 32.8711 13.9 32.6502V29.2502C13.9 29.0293 14.0791 28.8502 14.3 28.8502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.1 30.9502C22.1 30.7293 22.2791 30.5502 22.5 30.5502H24.3C24.5209 30.5502 24.7 30.7293 24.7 30.9502C24.7 31.1711 24.5209 31.3502 24.3 31.3502H22.5C22.2791 31.3502 22.1 31.1711 22.1 30.9502Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.9 29.1502C13.9 28.9293 14.0791 28.7502 14.3 28.7502H15.6C16.3097 28.7502 16.882 29.3114 16.8996 30.0166C16.9568 30.4095 16.8569 30.7768 16.6056 31.0474C16.3525 31.32 15.9871 31.4502 15.6 31.4502H14.3C14.0791 31.4502 13.9 31.2711 13.9 31.0502V29.1502ZM14.7 29.5502V30.6502H15.6C15.8129 30.6502 15.9476 30.5803 16.0194 30.503C16.0863 30.4309 16.138 30.3109 16.1055 30.1159C16.1018 30.0942 16.1 30.0722 16.1 30.0502C16.1 29.7711 15.8791 29.5502 15.6 29.5502H14.7Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.6 29.2502C17.6 29.0293 17.7791 28.8502 18 28.8502H19C20.1209 28.8502 21.1 29.8293 21.1 30.9502C21.1 32.0556 20.2361 33.0502 19 33.0502H18C17.7791 33.0502 17.6 32.8711 17.6 32.6502V29.2502ZM18.4 29.6502V32.2502H19C19.7638 32.2502 20.3 31.6449 20.3 30.9502C20.3 30.2711 19.6791 29.6502 19 29.6502H18.4Z" class="fill-border"/></svg>',
share:'<svg width="51" height="51" viewBox="0 0 51 51" xmlns="http://www.w3.org/2000/svg"><rect x="31.171" y="10.055" width="8.0442" height="8.0442" rx="4.0221" class="fill-background"/><rect x="10.055" y="21.116" width="8.0442" height="8.0442" rx="4.0221" class="fill-background"/><rect x="31.171" y="32.177" width="8.0442" height="8.0442" rx="4.0221" class="fill-background"/><path d="m35.194 9.5525c-2.4991 0-4.5249 2.0259-4.5249 4.5249 0 0.5791 0.1088 1.1328 0.3071 1.6418l-13.148 6.8869c-0.8133-1.2024-2.1897-1.9928-3.7506-1.9928-2.499 0-4.5249 2.0259-4.5249 4.5249s2.0259 4.5248 4.5249 4.5248c1.5609 0 2.9372-0.7903 3.7505-1.9926l13.148 6.8869c-0.1982 0.5089-0.307 1.0626-0.307 1.6417 0 2.499 2.0258 4.5248 4.5249 4.5248 2.499 0 4.5248-2.0258 4.5248-4.5248s-2.0258-4.5249-4.5248-4.5249c-1.561 0-2.9373 0.7904-3.7507 1.9928l-13.148-6.8869c0.1983-0.509 0.3071-1.0627 0.3071-1.6418s-0.1088-1.1328-0.3071-1.6417l13.148-6.8869c0.8134 1.2023 2.1897 1.9927 3.7506 1.9927 2.499 0 4.5248-2.0259 4.5248-4.5249s-2.0258-4.5249-4.5248-4.5249zm-3.5194 4.5249c0-1.9437 1.5757-3.5194 3.5194-3.5194 1.9436 0 3.5193 1.5757 3.5193 3.5194s-1.5757 3.5193-3.5193 3.5193c-1.9437 0-3.5194-1.5756-3.5194-3.5193zm-21.116 11.061c0-1.9437 1.5757-3.5194 3.5194-3.5194s3.5193 1.5757 3.5193 3.5194-1.5756 3.5193-3.5193 3.5193-3.5194-1.5756-3.5194-3.5193zm24.636 7.5414c-1.9437 0-3.5194 1.5757-3.5194 3.5194s1.5757 3.5193 3.5194 3.5193c1.9436 0 3.5193-1.5756 3.5193-3.5193s-1.5757-3.5194-3.5193-3.5194z" clip-rule="evenodd" class="fill-border" fill-rule="evenodd"/></svg>',
charts:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.7001 27.0996H14.6001V39.4996H18.7001V27.0996Z" class="fill-background"/><path d="M26.9999 14.5996H22.8999V39.4996H26.9999V14.5996Z" class="fill-background"/><path d="M35.2999 22.9004H31.2V39.5004H35.2999V22.9004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5 10C11.1239 10 10 11.1239 10 12.5V37.5C10 38.8761 11.1239 40 12.5 40H31.18C31.1866 40.0003 31.1933 40.0004 31.2 40.0004H35.2999C35.3066 40.0004 35.3133 40.0003 35.3199 40H37.5C38.8761 40 40 38.8761 40 37.5V12.5C40 11.1239 38.8761 10 37.5 10H12.5ZM35.7999 39H37.5C38.3239 39 39 38.3239 39 37.5V12.5C39 11.6761 38.3239 11 37.5 11H12.5C11.6761 11 11 11.6761 11 12.5V37.5C11 38.3239 11.6761 39 12.5 39H14.1001V27.0996C14.1001 26.8235 14.324 26.5996 14.6001 26.5996H18.7001C18.9762 26.5996 19.2001 26.8235 19.2001 27.0996V39H22.3999V14.5996C22.3999 14.3235 22.6238 14.0996 22.8999 14.0996H26.9999C27.276 14.0996 27.4999 14.3235 27.4999 14.5996V39H30.7V22.9004C30.7 22.6242 30.9238 22.4004 31.2 22.4004H35.2999C35.5761 22.4004 35.7999 22.6242 35.7999 22.9004V39ZM34.7999 39H31.7V23.4004H34.7999V39ZM15.1001 38.9996V27.5996H18.2001V38.9996H15.1001ZM23.3999 15.0996V38.9996H26.4999V15.0996H23.3999Z" class="fill-border"/></svg>',
charts_bar:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 33.9004H11V37.2004H17.5V33.9004Z" class="fill-background"/><path d="M27.1 27.6004H11V30.8004H27.1V27.6004Z" class="fill-background"/><path d="M33.5 21.0004H11V24.3004H33.5V21.0004Z" class="fill-background"/><path d="M23.8 14.6004H11V17.9004H23.8V14.6004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 13.4004C10.5 12.0242 11.6239 10.9004 13 10.9004H38C39.3761 10.9004 40.5 12.0242 40.5 13.4004V38.4004C40.5 39.7765 39.3761 40.9004 38 40.9004H13C11.6239 40.9004 10.5 39.7765 10.5 38.4004V13.4004ZM13 11.9004C12.1761 11.9004 11.5 12.5765 11.5 13.4004V14.1006H23.8C24.0761 14.1006 24.3 14.3244 24.3 14.6006V17.9006C24.3 18.1767 24.0761 18.4006 23.8 18.4006H11.5V20.5H33.5C33.7761 20.5 34 20.7239 34 21V24.3C34 24.5761 33.7761 24.8 33.5 24.8H11.5V27.1006H27.1C27.3761 27.1006 27.6 27.3244 27.6 27.6006V30.8006C27.6 31.0767 27.3761 31.3006 27.1 31.3006H11.5V33.4004H17.5C17.7761 33.4004 18 33.6242 18 33.9004V37.2004C18 37.4765 17.7761 37.7004 17.5 37.7004H11.5V38.4004C11.5 39.2242 12.1761 39.9004 13 39.9004H38C38.8239 39.9004 39.5 39.2242 39.5 38.4004V13.4004C39.5 12.5765 38.8239 11.9004 38 11.9004H13ZM11.5 17.4006H23.3V15.1006H11.5V17.4006ZM11.5 23.8V21.5H33V23.8H11.5ZM11.5 30.3006H26.6V28.1006H11.5V30.3006ZM11.5 36.7004V34.4004H17V36.7004H11.5Z" class="fill-border"/></svg>',
charts_column_line:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 37.2005H14.2V40.4005H17.5V37.2005Z" class="fill-background"/><path d="M23.8001 27.6005H20.6001V40.4005H23.8001V27.6005Z" class="fill-background"/><path d="M30.4001 30.7005H27.1001V40.4005H30.4001V30.7005Z" class="fill-background"/><path d="M36.8 24.4005H33.5V40.4005H36.8V24.4005Z" class="fill-background"/><path d="M15.9 30.7005C16.7837 30.7005 17.5 29.9841 17.5 29.1005C17.5 28.2168 16.7837 27.5005 15.9 27.5005C15.0164 27.5005 14.3 28.2168 14.3 29.1005C14.3 29.9841 15.0164 30.7005 15.9 30.7005Z" class="fill-background"/><path d="M22.3 21.0005C23.1836 21.0005 23.9 20.2841 23.9 19.4005C23.9 18.5168 23.1836 17.8005 22.3 17.8005C21.4163 17.8005 20.7 18.5168 20.7 19.4005C20.7 20.2841 21.4163 21.0005 22.3 21.0005Z" class="fill-background"/><path d="M28.7999 24.3005C29.6836 24.3005 30.4 23.5841 30.4 22.7005C30.4 21.8168 29.6836 21.1005 28.7999 21.1005C27.9163 21.1005 27.2 21.8168 27.2 22.7005C27.2 23.5841 27.9163 24.3005 28.7999 24.3005Z" class="fill-background"/><path d="M35.2001 17.8005C36.0838 17.8005 36.8001 17.0841 36.8001 16.2005C36.8001 15.3168 36.0838 14.6005 35.2001 14.6005C34.3164 14.6005 33.6001 15.3168 33.6001 16.2005C33.6001 17.0841 34.3164 17.8005 35.2001 17.8005Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.4095 27.6411C17.7751 28.019 18 28.5337 18 29.101C18 30.2608 17.0598 31.201 15.9 31.201C14.7402 31.201 13.8 30.2608 13.8 29.101C13.8 27.9412 14.7402 27.001 15.9 27.001C16.1317 27.001 16.3546 27.0385 16.5631 27.1078L20.7712 20.8404C20.417 20.4645 20.2 19.958 20.2 19.4008C20.2 18.241 21.1402 17.3008 22.3 17.3008C23.4598 17.3008 24.4 18.241 24.4 19.4008C24.4 19.575 24.3788 19.7443 24.3388 19.9061L27.2272 21.3091C27.6119 20.8745 28.174 20.6006 28.8 20.6006C29.1725 20.6006 29.5224 20.6976 29.8258 20.8677L33.404 17.2895C33.2111 16.972 33.1 16.5992 33.1 16.2006C33.1 15.0408 34.0402 14.1006 35.2 14.1006C36.3598 14.1006 37.3 15.0408 37.3 16.2006C37.3 17.3604 36.3598 18.3006 35.2 18.3006C34.8013 18.3006 34.4286 18.1895 34.1111 17.9966L30.5573 21.5504C30.774 21.8808 30.9 22.276 30.9 22.7006C30.9 23.8604 29.9598 24.8006 28.8 24.8006C27.6402 24.8006 26.7 23.8604 26.7 22.7006C26.7 22.5261 26.7213 22.3566 26.7614 22.1946L23.8733 20.7918C23.4886 21.2266 22.9263 21.5008 22.3 21.5008C22.0583 21.5008 21.8262 21.46 21.6101 21.3848L17.4095 27.6411ZM14.8 29.101C14.8 28.4935 15.2925 28.001 15.9 28.001C16.0323 28.001 16.1592 28.0243 16.2767 28.0672C16.3128 28.1247 16.3613 28.1757 16.4213 28.2159C16.4928 28.264 16.5723 28.2911 16.6525 28.2987C16.8664 28.4993 17 28.7846 17 29.101C17 29.7085 16.5075 30.201 15.9 30.201C15.2925 30.201 14.8 29.7085 14.8 29.101ZM22.3 18.3008C21.6925 18.3008 21.2 18.7933 21.2 19.4008C21.2 20.0083 21.6925 20.5008 22.3 20.5008C22.9075 20.5008 23.4 20.0083 23.4 19.4008C23.4 18.7933 22.9075 18.3008 22.3 18.3008ZM27.7 22.7006C27.7 22.0931 28.1925 21.6006 28.8 21.6006C29.4075 21.6006 29.9 22.0931 29.9 22.7006C29.9 23.3081 29.4075 23.8006 28.8 23.8006C28.1925 23.8006 27.7 23.3081 27.7 22.7006ZM35.2 15.1006C34.5925 15.1006 34.1 15.5931 34.1 16.2006C34.1 16.8081 34.5925 17.3006 35.2 17.3006C35.8075 17.3006 36.3 16.8081 36.3 16.2006C36.3 15.5931 35.8075 15.1006 35.2 15.1006Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 10.9004C11.6239 10.9004 10.5 12.0242 10.5 13.4004V38.4004C10.5 39.7765 11.6239 40.9004 13 40.9004H20.5859L20.6 40.9006H23.8L23.8141 40.9004H38C39.3761 40.9004 40.5 39.7765 40.5 38.4004V13.4004C40.5 12.0242 39.3761 10.9004 38 10.9004H13ZM36.3 39.9004H34V24.9004H36.3V39.9004ZM37.3 24.4004V39.9004H38C38.8239 39.9004 39.5 39.2242 39.5 38.4004V13.4004C39.5 12.5765 38.8239 11.9004 38 11.9004H13C12.1761 11.9004 11.5 12.5765 11.5 13.4004V38.4004C11.5 39.2242 12.1761 39.9004 13 39.9004H13.7V37.2002C13.7 36.9241 13.9239 36.7002 14.2 36.7002H17.5C17.7762 36.7002 18 36.9241 18 37.2002V39.9004H20.1V27.6006C20.1 27.3244 20.3239 27.1006 20.6 27.1006H23.8C24.0761 27.1006 24.3 27.3244 24.3 27.6006V39.9004H26.6V30.7002C26.6 30.4241 26.8239 30.2002 27.1 30.2002H30.4C30.6761 30.2002 30.9 30.4241 30.9 30.7002V39.9004H33V24.4004C33 24.1242 33.2239 23.9004 33.5 23.9004H36.8C37.0761 23.9004 37.3 24.1242 37.3 24.4004ZM21.1 39.9004H23.3V28.1006H21.1V39.9004ZM14.7 39.9002V37.7002H17V39.9002H14.7ZM27.6 39.9002V31.2002H29.9V39.9002H27.6Z" class="fill-border"/></svg>',
charts_stacked_column:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 30.8004H14.2V40.4004H17.5V30.8004Z" class="fill-background"/><path d="M23.8001 24.3004H20.6001V40.4004H23.8001V24.3004Z" class="fill-background"/><path d="M30.4001 17.8004H27.1001V40.4004H30.4001V17.8004Z" class="fill-background"/><path d="M36.8 27.6004H33.5V40.4004H36.8V27.6004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 10.9004C11.6239 10.9004 10.5 12.0242 10.5 13.4004V38.4004C10.5 39.7765 11.6239 40.9004 13 40.9004H14.1801C14.1867 40.9007 14.1933 40.9008 14.2 40.9008H17.5C17.5067 40.9008 17.5133 40.9007 17.52 40.9004H20.58C20.5867 40.9007 20.5933 40.9008 20.6 40.9008H23.8C23.8067 40.9008 23.8133 40.9007 23.82 40.9004H27.08C27.0867 40.9007 27.0933 40.9008 27.1 40.9008H30.4L30.412 40.9006L30.42 40.9004H33.4859L33.5 40.9006H36.8L36.8141 40.9004H38C39.3761 40.9004 40.5 39.7765 40.5 38.4004V13.4004C40.5 12.0242 39.3761 10.9004 38 10.9004H13ZM34 39.9004H36.3V31.2002H34V39.9004ZM33 39.9004H30.9V30.7026L30.9 30.7002L30.9 30.6978V17.8008C30.9 17.5246 30.6761 17.3008 30.4 17.3008H27.1C26.8239 17.3008 26.6 17.5246 26.6 17.8008V39.9004H24.3V24.3008C24.3 24.0246 24.0761 23.8008 23.8 23.8008H20.6C20.3239 23.8008 20.1 24.0246 20.1 24.3008V39.9004H18V30.8008C18 30.5246 17.7762 30.3008 17.5 30.3008H14.2C13.9239 30.3008 13.7 30.5246 13.7 30.8008V39.9004H13C12.1761 39.9004 11.5 39.2242 11.5 38.4004V13.4004C11.5 12.5765 12.1761 11.9004 13 11.9004H38C38.8239 11.9004 39.5 12.5765 39.5 13.4004V38.4004C39.5 39.2242 38.8239 39.9004 38 39.9004H37.3V27.6006C37.3 27.5836 37.2992 27.5668 37.2975 27.5503C37.2992 27.5338 37.3 27.517 37.3 27.5C37.3 27.2239 37.0761 27 36.8 27H33.5C33.2239 27 33 27.2239 33 27.5C33 27.517 33.0008 27.5338 33.0025 27.5503C33.0008 27.5668 33 27.5836 33 27.6006V39.9004ZM29.9 30.2002V24.8008H27.6V30.2002H29.9ZM27.6 31.2002V39.9004H29.9V31.2002H27.6ZM21.1 28.1006V39.9004H23.3V28.1006H21.1ZM23.3 27.1006H21.1V24.8008H23.3V27.1006ZM29.9 23.8008H27.6V21.5H29.9V23.8008ZM29.9 18.3008V20.5H27.6V18.3008H29.9ZM34 30.2002V28.1006H36.3V30.2002H34ZM17 39.9004H14.7V34.5H17V39.9004ZM14.7 33.5V31.3008H17V33.5H14.7Z" class="fill-border"/></svg>',
charts_line:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.9 34.8004C16.7837 34.8004 17.5 34.0841 17.5 33.2004C17.5 32.3167 16.7837 31.6004 15.9 31.6004C15.0164 31.6004 14.3 32.3167 14.3 33.2004C14.3 34.0841 15.0164 34.8004 15.9 34.8004Z" class="fill-background"/><path d="M22.3 25.1004C23.1836 25.1004 23.9 24.384 23.9 23.5004C23.9 22.6167 23.1836 21.9004 22.3 21.9004C21.4163 21.9004 20.7 22.6167 20.7 23.5004C20.7 24.384 21.4163 25.1004 22.3 25.1004Z" class="fill-background"/><path d="M28.7999 28.3004C29.6836 28.3004 30.4 27.5841 30.4 26.7004C30.4 25.8167 29.6836 25.1004 28.7999 25.1004C27.9163 25.1004 27.2 25.8167 27.2 26.7004C27.2 27.5841 27.9163 28.3004 28.7999 28.3004Z" class="fill-background"/><path d="M35.2001 21.9004C36.0838 21.9004 36.8001 21.184 36.8001 20.3004C36.8001 19.4167 36.0838 18.7004 35.2001 18.7004C34.3164 18.7004 33.6001 19.4167 33.6001 20.3004C33.6001 21.184 34.3164 21.9004 35.2001 21.9004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9 31.1006C14.7402 31.1006 13.8 32.0408 13.8 33.2006C13.8 34.3604 14.7402 35.3006 15.9 35.3006C17.0598 35.3006 18 34.3604 18 33.2006C18 32.6334 17.7751 32.1187 17.4097 31.7408L21.6103 25.4845C21.8263 25.5596 22.0584 25.6004 22.3 25.6004C22.9561 25.6004 23.542 25.2995 23.9271 24.8281L26.7429 26.2762C26.7148 26.4133 26.7 26.5552 26.7 26.7006C26.7 27.8604 27.6402 28.8006 28.8 28.8006C29.9598 28.8006 30.9 27.8604 30.9 26.7006C30.9 26.2995 30.7876 25.9247 30.5925 25.606L34.0513 22.0585C34.3814 22.2746 34.776 22.4002 35.2 22.4002C36.3598 22.4002 37.3 21.46 37.3 20.3002C37.3 19.1404 36.3598 18.2002 35.2 18.2002C34.0402 18.2002 33.1 19.1404 33.1 20.3002C33.1 20.6732 33.1973 21.0235 33.3678 21.3271L29.8831 24.9011C29.5669 24.7103 29.1963 24.6006 28.8 24.6006C28.1439 24.6006 27.558 24.9015 27.1729 25.3729L24.3571 23.9248C24.3852 23.7877 24.4 23.6458 24.4 23.5004C24.4 22.3406 23.4598 21.4004 22.3 21.4004C21.1402 21.4004 20.2 22.3406 20.2 23.5004C20.2 24.0577 20.4171 24.5643 20.7713 24.9402L16.5633 31.2075C16.3548 31.1381 16.1318 31.1006 15.9 31.1006ZM14.8 33.2006C14.8 32.5931 15.2925 32.1006 15.9 32.1006C16.5075 32.1006 17 32.5931 17 33.2006C17 33.8081 16.5075 34.3006 15.9 34.3006C15.2925 34.3006 14.8 33.8081 14.8 33.2006ZM22.3 22.4004C21.6925 22.4004 21.2 22.8929 21.2 23.5004C21.2 24.1079 21.6925 24.6004 22.3 24.6004C22.9075 24.6004 23.4 24.1079 23.4 23.5004C23.4 22.8929 22.9075 22.4004 22.3 22.4004ZM27.7 26.7006C27.7 26.0931 28.1925 25.6006 28.8 25.6006C29.4075 25.6006 29.9 26.0931 29.9 26.7006C29.9 27.3081 29.4075 27.8006 28.8 27.8006C28.1925 27.8006 27.7 27.3081 27.7 26.7006ZM35.2 19.2002C34.5925 19.2002 34.1 19.6927 34.1 20.3002C34.1 20.9077 34.5925 21.4002 35.2 21.4002C35.8075 21.4002 36.3 20.9077 36.3 20.3002C36.3 19.6927 35.8075 19.2002 35.2 19.2002Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13 10.9004C11.6239 10.9004 10.5 12.0242 10.5 13.4004V38.4004C10.5 39.7765 11.6239 40.9004 13 40.9004H38C39.3761 40.9004 40.5 39.7765 40.5 38.4004V13.4004C40.5 12.0242 39.3761 10.9004 38 10.9004H13ZM11.5 13.4004C11.5 12.5765 12.1761 11.9004 13 11.9004H38C38.8239 11.9004 39.5 12.5765 39.5 13.4004V38.4004C39.5 39.2242 38.8239 39.9004 38 39.9004H13C12.1761 39.9004 11.5 39.2242 11.5 38.4004V13.4004Z" class="fill-border"/></svg>',
charts_pie:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25.5 16.7004V25.9004L18 31.3004C19.7 33.6004 22.4 35.1004 25.5 35.1004C30.6 35.1004 34.7 31.0004 34.7 25.9004C34.7 20.9004 30.6 16.7004 25.5 16.7004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.8 25.9002C15.8 20.543 20.1428 16.2002 25.5 16.2002C30.8572 16.2002 35.2 20.543 35.2 25.9002C35.2 31.2574 30.8572 35.6002 25.5 35.6002C20.1428 35.6002 15.8 31.2574 15.8 25.9002ZM25 17.2143C22.9265 17.3318 21.0472 18.1754 19.6124 19.4949L25 24.7192V17.2143ZM26 17.2143V25.9002C26 26.0733 25.9121 26.2258 25.7784 26.3156L18.7431 31.381C20.3382 33.3451 22.7725 34.6002 25.5 34.6002C30.3049 34.6002 34.2 30.7051 34.2 25.9002C34.2 21.2631 30.5722 17.4734 26 17.2143ZM16.8 25.9002C16.8 23.7259 17.5976 21.7379 18.9162 20.2128L24.7228 25.8434L18.1581 30.5699C17.2982 29.2208 16.8 27.6187 16.8 25.9002Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 13.4004C10.5 12.0242 11.6239 10.9004 13 10.9004H38C39.3761 10.9004 40.5 12.0242 40.5 13.4004V38.4004C40.5 39.7765 39.3761 40.9004 38 40.9004H13C11.6239 40.9004 10.5 39.7765 10.5 38.4004V13.4004ZM13 11.9004C12.1761 11.9004 11.5 12.5765 11.5 13.4004V38.4004C11.5 39.2242 12.1761 39.9004 13 39.9004H38C38.8239 39.9004 39.5 39.2242 39.5 38.4004V13.4004C39.5 12.5765 38.8239 11.9004 38 11.9004H13Z" class="fill-border"/></svg>',
charts_scatter:'<svg width="51" height="51" viewBox="0 0 51 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.9 34.0004C16.7837 34.0004 17.5 33.2841 17.5 32.4004C17.5 31.5168 16.7837 30.8004 15.9 30.8004C15.0164 30.8004 14.3 31.5168 14.3 32.4004C14.3 33.2841 15.0164 34.0004 15.9 34.0004Z" class="fill-background"/><path d="M22.3 24.3004C23.1836 24.3004 23.9 23.5841 23.9 22.7004C23.9 21.8167 23.1836 21.1004 22.3 21.1004C21.4163 21.1004 20.7 21.8167 20.7 22.7004C20.7 23.5841 21.4163 24.3004 22.3 24.3004Z" class="fill-background"/><path d="M28.7999 27.5004C29.6836 27.5004 30.4 26.7841 30.4 25.9004C30.4 25.0168 29.6836 24.3004 28.7999 24.3004C27.9163 24.3004 27.2 25.0168 27.2 25.9004C27.2 26.7841 27.9163 27.5004 28.7999 27.5004Z" class="fill-background"/><path d="M35.2001 21.1004C36.0838 21.1004 36.8001 20.384 36.8001 19.5004C36.8001 18.6167 36.0838 17.9004 35.2001 17.9004C34.3164 17.9004 33.6001 18.6167 33.6001 19.5004C33.6001 20.384 34.3164 21.1004 35.2001 21.1004Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8 32.4008C13.8 31.241 14.7402 30.3008 15.9 30.3008C17.0598 30.3008 18 31.241 18 32.4008C18 33.5606 17.0598 34.5008 15.9 34.5008C14.7402 34.5008 13.8 33.5606 13.8 32.4008ZM15.9 31.3008C15.2925 31.3008 14.8 31.7933 14.8 32.4008C14.8 33.0083 15.2925 33.5008 15.9 33.5008C16.5075 33.5008 17 33.0083 17 32.4008C17 31.7933 16.5075 31.3008 15.9 31.3008Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.3 20.6006C21.1402 20.6006 20.2 21.5408 20.2 22.7006C20.2 23.8604 21.1402 24.8006 22.3 24.8006C23.4598 24.8006 24.4 23.8604 24.4 22.7006C24.4 21.5408 23.4598 20.6006 22.3 20.6006ZM21.2 22.7006C21.2 22.0931 21.6925 21.6006 22.3 21.6006C22.9075 21.6006 23.4 22.0931 23.4 22.7006C23.4 23.3081 22.9075 23.8006 22.3 23.8006C21.6925 23.8006 21.2 23.3081 21.2 22.7006Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M26.7 25.9008C26.7 24.741 27.6402 23.8008 28.8 23.8008C29.9598 23.8008 30.9 24.741 30.9 25.9008C30.9 27.0606 29.9598 28.0008 28.8 28.0008C27.6402 28.0008 26.7 27.0606 26.7 25.9008ZM28.8 24.8008C28.1925 24.8008 27.7 25.2933 27.7 25.9008C27.7 26.5083 28.1925 27.0008 28.8 27.0008C29.4075 27.0008 29.9 26.5083 29.9 25.9008C29.9 25.2933 29.4075 24.8008 28.8 24.8008Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M35.2 17.4004C34.0402 17.4004 33.1 18.3406 33.1 19.5004C33.1 20.6602 34.0402 21.6004 35.2 21.6004C36.3598 21.6004 37.3 20.6602 37.3 19.5004C37.3 18.3406 36.3598 17.4004 35.2 17.4004ZM34.1 19.5004C34.1 18.8929 34.5925 18.4004 35.2 18.4004C35.8075 18.4004 36.3 18.8929 36.3 19.5004C36.3 20.1079 35.8075 20.6004 35.2 20.6004C34.5925 20.6004 34.1 20.1079 34.1 19.5004Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 13.4004C10.5 12.0242 11.6239 10.9004 13 10.9004H38C39.3761 10.9004 40.5 12.0242 40.5 13.4004V38.4004C40.5 39.7765 39.3761 40.9004 38 40.9004H13C11.6239 40.9004 10.5 39.7765 10.5 38.4004V13.4004ZM13 11.9004C12.1761 11.9004 11.5 12.5765 11.5 13.4004V38.4004C11.5 39.2242 12.1761 39.9004 13 39.9004H38C38.8239 39.9004 39.5 39.2242 39.5 38.4004V13.4004C39.5 12.5765 38.8239 11.9004 38 11.9004H13Z" class="fill-border"/></svg>',
format:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.9126 23.5371H26.5126V28.04L22.0125 23.6377L20.8125 29.3377L26.5126 28.1584V31.5371H10.9126V23.5371Z" class="fill-background"/><path d="M22.0125 23.6375L24.4037 26.0787L26.5125 28.1375L38.5125 16.1375C39.8125 14.8375 39.8125 12.8375 38.5125 11.5375C37.2125 10.2375 35.2125 10.2375 33.9125 11.5375L22.0125 23.6375Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M33.559 11.1839C35.0542 9.68868 37.3708 9.68868 38.8661 11.1839C40.3613 12.6792 40.3613 14.9958 38.8661 16.4911L34.9125 20.4447V37.317C35.0262 38.8372 33.7568 39.9367 32.4125 39.9367H12.6125C11.1363 39.9367 10.0125 38.8129 10.0125 37.3367V17.7367C10.0125 16.2606 11.1363 15.1367 12.6125 15.1367H29.6715L33.556 11.1869L33.559 11.1839ZM28.688 16.1367H12.6125C11.6886 16.1367 11.0125 16.8129 11.0125 17.7367V23.0367H21.9021L28.688 16.1367ZM21.4175 24.0367H19.0125V31.2373H26.0125V28.7537L20.9155 29.8268C20.7502 29.8616 20.5784 29.8105 20.459 29.6911C20.3395 29.5716 20.2884 29.3998 20.3232 29.2345L21.4175 24.0367ZM27.0125 28.3447V31.2373H33.9125V24.0367H31.3204L27.0125 28.3447ZM32.3204 23.0367H33.9125V21.4447L32.3204 23.0367ZM34.2675 11.8897L22.7204 23.6307L26.558 27.3849L38.159 15.7839C39.2637 14.6792 39.2637 12.9958 38.159 11.8911C37.0547 10.7868 35.3722 10.7863 34.2675 11.8897ZM21.4597 28.6903L22.3141 24.6321L25.5765 27.8236L21.4597 28.6903ZM26.0125 32.2373V38.9367H19.0125V32.2373H26.0125ZM27.0125 38.9367V32.2373H33.9125V37.3367C33.9125 37.3506 33.913 37.3644 33.9142 37.3782C33.9866 38.2467 33.2616 38.9367 32.4125 38.9367H27.0125ZM18.0125 31.2373V24.0367H11.0125V31.2373H18.0125ZM11.0125 32.2373H18.0125V38.9367H12.6125C11.6886 38.9367 11.0125 38.2606 11.0125 37.3367V32.2373Z" class="fill-border"/></svg>',
format_number:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M29.6001 11.4005H37.5001C38.6001 11.4005 39.5001 12.3005 39.5001 13.4005V38.3005C39.5001 39.4005 38.6001 40.3005 37.5001 40.3005H29.6001V11.4005Z" class="fill-background"/><path d="M16.9 22.6008C16.9 21.994 17.2189 21.4325 17.8066 21.0051C18.3972 20.5756 19.2407 20.3008 20.2 20.3008C21.1501 20.3008 21.9936 20.5955 22.5887 21.0392C23.1866 21.4849 23.5 22.0498 23.5 22.6008C23.5 22.8769 23.7239 23.1008 24 23.1008C24.2761 23.1008 24.5 22.8769 24.5 22.6008C24.5 21.6518 23.9634 20.8167 23.1863 20.2374C22.521 19.7414 21.6542 19.41 20.7 19.3234V17.1006C20.7 16.8244 20.4761 16.6006 20.2 16.6006C19.9239 16.6006 19.7 16.8244 19.7 17.1006V19.3219C18.7527 19.4023 17.8867 19.7104 17.2184 20.1964C16.431 20.769 15.9 21.6075 15.9 22.6008C15.9 23.6826 16.2794 24.5368 17.0539 25.1442C17.7968 25.7269 18.8528 26.042 20.1334 26.1964C21.4344 26.3899 22.2766 26.7428 22.7871 27.1804C23.2773 27.6006 23.5 28.1309 23.5 28.8008C23.5 29.3518 23.1866 29.9167 22.5887 30.3624C21.9936 30.806 21.1501 31.1008 20.2 31.1008C19.2407 31.1008 18.3972 30.826 17.8066 30.3964C17.2189 29.969 16.9 29.4075 16.9 28.8008C16.9 28.5246 16.6761 28.3008 16.4 28.3008C16.1239 28.3008 15.9 28.5246 15.9 28.8008C15.9 29.794 16.431 30.6325 17.2184 31.2052C17.8867 31.6912 18.7527 31.9992 19.7 32.0797V34.4002C19.7 34.6763 19.9239 34.9002 20.2 34.9002C20.4761 34.9002 20.7 34.6763 20.7 34.4002V32.0782C21.6542 31.9916 22.521 31.6602 23.1863 31.1642C23.9634 30.5849 24.5 29.7498 24.5 28.8008C24.5 27.8707 24.1727 27.051 23.4379 26.4212C22.7243 25.8095 21.6685 25.4129 20.2733 25.2062L20.2596 25.2043C19.0433 25.0584 18.2018 24.7736 17.6711 24.3574C17.1706 23.9648 16.9 23.419 16.9 22.6008Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.6 10.9004C11.1239 10.9004 10 12.0242 10 13.5004V38.3004C10 39.7765 11.1239 40.9004 12.6 40.9004H37.4C38.8761 40.9004 40 39.7765 40 38.3004V13.5004C40 12.0242 38.8761 10.9004 37.4 10.9004H12.6ZM11 13.5004C11 12.5765 11.6761 11.9004 12.6 11.9004H29.3V39.9004H12.6C11.6761 39.9004 11 39.2242 11 38.3004V13.5004ZM30.3 18.2002V11.9004H37.4C38.3239 11.9004 39 12.5765 39 13.5004V18.2002H30.3ZM30.3 25.4004V19.2002H39V25.4004H30.3ZM30.3 32.6006V26.4004H39V32.6006H30.3ZM30.3 39.9004V33.6006H39V38.3004C39 39.2242 38.3239 39.9004 37.4 39.9004H30.3Z" class="fill-border"/></svg>',
format_conditional:'<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.2 40.4004H12.6C11.4 40.4004 10.5 39.5004 10.5 38.3004V13.5004C10.5 12.3004 11.4 11.4004 12.6 11.4004H37.4C38.6 11.4004 39.5 12.3004 39.5 13.5004L39.5 18.6006H20.2V40.4004Z" class="fill-background"/><path d="M28.8721 23.9195C29.1038 23.7693 29.1698 23.4596 29.0195 23.228C28.8692 22.9963 28.5596 22.9303 28.3279 23.0806L24.6279 25.4806C24.4858 25.5728 24.4 25.7307 24.4 25.9001C24.4 26.0695 24.4858 26.2274 24.6279 26.3195L28.3279 28.7195C28.5596 28.8698 28.8692 28.8038 29.0195 28.5722C29.1698 28.3405 29.1038 28.0309 28.8721 27.8806L25.8188 25.9001L28.8721 23.9195Z" class="fill-border"/><path d="M30.5773 30.4333C30.7247 30.1998 31.0335 30.1301 31.267 30.2775L35.067 32.6775C35.2107 32.7682 35.2984 32.9257 35.3 33.0956C35.3016 33.2655 35.2168 33.4246 35.0748 33.518L31.2748 36.018C31.0441 36.1697 30.7341 36.1058 30.5823 35.8751C30.4305 35.6444 30.4945 35.3343 30.7252 35.1826L33.8772 33.1088L30.733 31.123C30.4995 30.9755 30.4298 30.6667 30.5773 30.4333Z" class="fill-border"/><path d="M24.9 31.7002C24.6239 31.7002 24.4 31.9241 24.4 32.2002C24.4 32.4763 24.6239 32.7002 24.9 32.7002H28.6C28.8761 32.7002 29.1 32.4763 29.1 32.2002C29.1 31.9241 28.8761 31.7002 28.6 31.7002H24.9Z" class="fill-border"/><path d="M24.4 34.1006C24.4 33.8244 24.6239 33.6006 24.9 33.6006H28.6C28.8761 33.6006 29.1 33.8244 29.1 34.1006C29.1 34.3767 28.8761 34.6006 28.6 34.6006H24.9C24.6239 34.6006 24.4 34.3767 24.4 34.1006Z" class="fill-border"/><path d="M31 24.5C30.7239 24.5 30.5 24.7239 30.5 25C30.5 25.2761 30.7239 25.5 31 25.5H32.4629L32.1277 26.3008H31C30.7239 26.3008 30.5 26.5246 30.5 26.8008C30.5 27.0769 30.7239 27.3008 31 27.3008H31.7091L31.5388 27.7076C31.4321 27.9624 31.5522 28.2553 31.8069 28.3619C32.0617 28.4686 32.3546 28.3485 32.4612 28.0938L32.7932 27.3008H34.8C35.0761 27.3008 35.3 27.0769 35.3 26.8008C35.3 26.5246 35.0761 26.3008 34.8 26.3008H33.2118L33.547 25.5H34.8C35.0761 25.5 35.3 25.2761 35.3 25C35.3 24.7239 35.0761 24.5 34.8 24.5H33.9656L34.2612 23.7938C34.3678 23.5391 34.2478 23.2461 33.9931 23.1395C33.7383 23.0329 33.4454 23.1529 33.3388 23.4076L32.8815 24.5H31Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 13.5004C10 12.0242 11.1239 10.9004 12.6 10.9004H37.4C38.8761 10.9004 40 12.0242 40 13.5004V38.3004C40 39.7765 38.8761 40.9004 37.4 40.9004H12.6C11.1239 40.9004 10 39.7765 10 38.3004V13.5004ZM12.6 11.9004C11.6761 11.9004 11 12.5765 11 13.5004V18.1006H19.7V11.9004H12.6ZM20.7 11.9004V18.1006H29.3V11.9004H20.7ZM39 18.1006H30.3V11.9004H37.4C38.3239 11.9004 39 12.5765 39 13.5004V18.1006ZM19.7 19.1006H11V25.4004H19.7V19.1006ZM19.7 26.4004H11V32.6006H19.7V26.4004ZM19.7 33.6006H11V38.3004C11 39.2242 11.6761 39.9004 12.6 39.9004H19.7V33.6006ZM20.7 39.9004V19.1006H39V38.3004C39 39.2242 38.3239 39.9004 37.4 39.9004H20.7Z" class="fill-border"/></svg>',
options:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M39 28.75C37.2 28.55 35.6 26.95 35.6 24.85C35.6 23.05 37.2 21.45 39 21.25C38.3 18.95 37.2 16.75 35.4 14.85C34.3 16.25 32 16.65 30.4 15.75C28.6 14.85 28.1 12.75 28.8 10.95C26.3 10.25 23.8 10.25 21.3 10.95C22 12.75 21.3 14.85 19.7 15.75C17.9 16.65 15.8 16.25 14.7 14.85C13.8 15.75 13.1 16.65 12.4 17.85C11.7 19.05 11.3 20.15 11 21.25C12.8 21.45 14.4 23.05 14.4 25.15C14.4 26.95 12.8 28.55 11 28.75C11.7 31.05 12.8 33.25 14.6 35.15C15.7 33.75 18 33.35 19.6 34.25C21.4 35.15 21.9 37.25 21.2 39.05C23.7 39.75 26.2 39.75 28.7 39.05C28 37.25 28.7 35.15 30.3 34.25C32.1 33.35 34.2 33.75 35.3 35.15C36.2 34.25 36.9 33.35 37.6 32.15C38.3 31.05 38.7 29.95 39 28.75ZM22.2 28.95C19.9 27.55 19 24.65 20.4 22.35C21.8 20.05 24.7 19.35 27.2 20.55C29.5 21.95 30.4 24.85 29 27.15C27.6 29.65 24.4 30.35 22.2 28.95Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.1652 10.4685C23.7534 9.74382 26.3466 9.74382 28.9348 10.4685C29.0707 10.5066 29.1842 10.6002 29.2473 10.7265C29.3103 10.8527 29.3171 10.9997 29.266 11.1312C28.6349 12.7541 29.1108 14.5464 30.6236 15.3028C30.6309 15.3064 30.6381 15.3102 30.6451 15.3142C31.3307 15.6998 32.1854 15.8153 32.9998 15.6702C33.8149 15.5251 34.5463 15.1273 35.0068 14.5411C35.0966 14.4268 35.2317 14.3572 35.3769 14.3505C35.5221 14.3438 35.663 14.4006 35.763 14.5061C37.6282 16.4749 38.7614 18.7488 39.4783 21.1044C39.5216 21.2467 39.4994 21.4008 39.4176 21.525C39.3358 21.6492 39.203 21.7305 39.0552 21.7469C37.476 21.9224 36.1 23.3361 36.1 24.85C36.1 26.6883 37.5015 28.0804 39.0552 28.253C39.1986 28.269 39.3281 28.3461 39.4105 28.4645C39.4929 28.583 39.5201 28.7313 39.4851 28.8713C39.1772 30.1026 38.7611 31.2543 38.027 32.4102C37.3073 33.6426 36.5823 34.5748 35.6536 35.5035C35.5524 35.6046 35.4129 35.6576 35.2702 35.6491C35.1274 35.6406 34.9952 35.5713 34.9068 35.4589C33.9761 34.2743 32.1507 33.8896 30.5346 34.6917C29.1756 35.4637 28.5507 37.2865 29.166 38.8688C29.2171 39.0003 29.2103 39.1473 29.1473 39.2735C29.0842 39.3997 28.9707 39.4934 28.8348 39.5315C26.2466 40.2562 23.6534 40.2562 21.0652 39.5315C20.9293 39.4934 20.8158 39.3997 20.7527 39.2735C20.6897 39.1473 20.6829 39.0003 20.734 38.8688C21.3651 37.2459 20.8892 35.4536 19.3764 34.6972C19.3734 34.6957 19.3703 34.6941 19.3673 34.6926C19.3631 34.6904 19.359 34.6881 19.3549 34.6858C18.6693 34.3001 17.8146 34.1847 17.0002 34.3297C16.1851 34.4749 15.4537 34.8727 14.9932 35.4589C14.9034 35.5732 14.7683 35.6427 14.6231 35.6495C14.4779 35.6562 14.337 35.5994 14.237 35.4939C12.3718 33.5251 11.2386 31.2512 10.5217 28.8956C10.4784 28.7533 10.5006 28.5992 10.5824 28.475C10.6642 28.3508 10.797 28.2695 10.9448 28.253C12.524 28.0776 13.9 26.6639 13.9 25.15C13.9 23.3117 12.4985 21.9196 10.9448 21.7469C10.7995 21.7308 10.6686 21.6519 10.5865 21.531C10.5043 21.4102 10.4792 21.2594 10.5176 21.1184C10.826 19.9878 11.2408 18.8449 11.9681 17.5981C12.6894 16.3616 13.4156 15.4273 14.3464 14.4964C14.4476 14.3953 14.5871 14.3423 14.7298 14.3509C14.8726 14.3594 15.0048 14.4286 15.0932 14.5411C16.0239 15.7256 17.8493 16.1104 19.4654 15.3083C20.8244 14.5363 21.4493 12.7135 20.834 11.1312C20.7829 10.9997 20.7897 10.8527 20.8527 10.7265C20.9158 10.6002 21.0293 10.5066 21.1652 10.4685ZM21.9353 11.301C22.4071 13.1847 21.6194 15.244 19.9451 16.1858C19.9381 16.1898 19.9309 16.1936 19.9236 16.1972C18.1275 17.0952 16.0133 16.8371 14.6898 15.5796C13.9903 16.3281 13.4129 17.1059 12.8319 18.1019C12.2686 19.0676 11.9069 19.9659 11.6329 20.8604C13.4284 21.3305 14.9 23.0137 14.9 25.15C14.9 27.0295 13.4193 28.6657 11.6481 29.1355C12.2818 31.0261 13.2088 32.8211 14.6038 34.4121C15.2148 33.8485 16.0063 33.491 16.8248 33.3452C17.8315 33.166 18.9222 33.2988 19.8344 33.8082C21.7292 34.7624 22.3295 36.8439 21.8389 38.6998C23.9153 39.2003 25.9883 39.2 28.0646 38.699C27.5929 36.8152 28.3806 34.7559 30.0549 33.8142C30.0597 33.8115 30.0646 33.8089 30.0695 33.8063C30.0718 33.8051 30.0741 33.8039 30.0764 33.8028C31.8725 32.9047 33.9867 33.1628 35.3102 34.4204C36.0097 33.6719 36.5871 32.8941 37.1681 31.8981C37.1706 31.8938 37.1731 31.8897 37.1757 31.8855C37.1765 31.8842 37.1773 31.8829 37.1782 31.8815C37.7421 30.9954 38.1032 30.1061 38.3779 29.1424C36.5775 28.6762 35.1 26.9906 35.1 24.85C35.1 22.9704 36.5807 21.3342 38.3519 20.8644C37.7183 18.9739 36.7912 17.1789 35.3962 15.5879C34.7852 16.1514 33.9937 16.509 33.1752 16.6547C32.1685 16.834 31.0778 16.7012 30.1655 16.1917C28.2708 15.2376 27.6705 13.156 28.1611 11.3001C26.0848 10.7997 24.0117 10.7999 21.9353 11.301ZM26.9612 20.99C24.6685 19.902 22.0729 20.5632 20.8271 22.61C19.5891 24.6438 20.3644 27.2473 22.46 28.5229L22.4685 28.5281L22.4684 28.5282C24.4276 29.7749 27.3049 29.1536 28.5637 26.9057C28.5667 26.9004 28.5698 26.8952 28.5729 26.89C29.8067 24.863 29.0408 22.2702 26.9612 20.99ZM19.9729 22.09C21.523 19.5434 24.7145 18.8023 27.4164 20.0992C27.4313 20.1064 27.4458 20.1143 27.46 20.1229C29.9619 21.6458 30.987 24.8374 29.4318 27.4022C27.8892 30.1463 24.3741 30.9227 21.9358 29.3745C19.4344 27.849 18.4118 24.6547 19.9729 22.09Z" class="fill-border"/></svg>',
fields:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M34.2 18.4002H10.5V12.6002C10.5 11.4002 11.4 10.5002 12.6 10.5002H32.1C33.3 10.5002 34.2 11.4002 34.2 12.6002V18.4002V18.4002Z" class="fill-background"/><path d="M39.5 33.1998C38.4 33.0998 37.5 32.0998 37.5 30.9998C37.5 29.8998 38.4 28.9998 39.5 28.8998C39.1 27.5998 38.4 26.2998 37.4 25.1998C36.7 25.9998 35.4 26.2998 34.5 25.6998C33.4 25.1998 33.2 23.9998 33.6 22.8998C32.1 22.4998 30.7 22.4998 29.2 22.8998C29.6 23.9998 29.2 25.0998 28.3 25.6998C27.2 26.1998 26 25.9998 25.4 25.1998C24.9 25.6998 24.5 26.2998 24.1 26.8998C23.7 27.5998 23.4 28.1998 23.3 28.8998C24.4 28.9998 25.3 29.9998 25.3 31.0998C25.3 32.1998 24.4 33.0998 23.3 33.1998C23.7 34.4998 24.4 35.7998 25.4 36.8998C26.1 36.0998 27.4 35.7998 28.3 36.3998C29.4 36.8998 29.6 38.0998 29.2 39.1998C30.7 39.5998 32.1 39.5998 33.6 39.1998C33.2 38.0998 33.6 36.9998 34.5 36.3998C35.6 35.8998 36.8 36.0998 37.4 36.8998C37.9 36.3998 38.3 35.7998 38.7 35.1998C39.1 34.5998 39.2 33.8998 39.5 33.1998ZM29.7 33.3998C28.4 32.5998 27.8 30.8998 28.6 29.5998C29.4 28.2998 31.1 27.8998 32.6 28.4998C33.9 29.2998 34.5 30.9998 33.7 32.2998C32.9 33.7998 31 34.1998 29.7 33.3998Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10 12.6V32C10 33.4761 11.1239 34.6 12.6 34.6H23.299C23.7242 35.5321 24.3009 36.4338 25.0301 37.2359C25.126 37.3414 25.2623 37.4009 25.4048 37.3996C25.5473 37.3982 25.6825 37.3361 25.7763 37.2289C26.345 36.579 27.3716 36.3816 28.0227 36.8156C28.0451 36.8306 28.0687 36.8437 28.0931 36.8548C28.5015 37.0404 28.7303 37.3431 28.8304 37.7072C28.9346 38.0858 28.9032 38.553 28.7302 39.0287C28.6822 39.1606 28.6919 39.3064 28.7567 39.4308C28.8216 39.5552 28.9357 39.6466 29.0712 39.6827C30.6556 40.1052 32.1445 40.1052 33.7289 39.6827C33.8644 39.6466 33.9785 39.5552 34.0434 39.4308C34.1082 39.3064 34.1179 39.1606 34.0699 39.0287C33.7551 38.1628 34.0562 37.3168 34.7444 36.8381C35.6838 36.4275 36.5859 36.6474 37.0001 37.1996C37.087 37.3156 37.22 37.3881 37.3646 37.3984C37.5092 37.4086 37.6511 37.3557 37.7536 37.2532C38.2888 36.718 38.7119 36.0833 39.1032 35.4963L39.1161 35.477C39.3542 35.1198 39.4959 34.7431 39.6119 34.3952C39.6436 34.3 39.673 34.2085 39.7017 34.1194C39.7824 33.8681 39.8569 33.6362 39.9596 33.3966C40.0227 33.2495 40.0115 33.081 39.9295 32.9436C39.8476 32.8061 39.7047 32.7162 39.5453 32.7017C38.7063 32.6254 38.0001 31.8445 38.0001 30.9996C38.0001 30.1834 38.6769 29.4765 39.5453 29.3976C39.6954 29.3839 39.8313 29.3033 39.9153 29.1781C39.9992 29.053 40.0223 28.8966 39.9779 28.7526C39.5579 27.3874 38.8229 26.0215 37.77 24.8633C37.6741 24.7578 37.5378 24.6983 37.3953 24.6996C37.2528 24.701 37.1176 24.7631 37.0238 24.8704C36.4551 25.5202 35.4285 25.7176 34.7774 25.2836C34.755 25.2687 34.7315 25.2556 34.707 25.2444C34.7046 25.2434 34.7023 25.2423 34.7 25.2412V12.6C34.7 11.1239 33.5761 10 32.1 10H12.6C11.1239 10 10 11.1239 10 12.6ZM33.7 22.4088V18.9H26.8V25.4528C27.1789 25.508 27.6132 25.4545 28.0557 25.2611C28.7439 24.7824 29.045 23.9364 28.7302 23.0705C28.6822 22.9387 28.6919 22.7928 28.7567 22.6684C28.8216 22.544 28.9357 22.4526 29.0712 22.4165C30.646 21.9966 32.1264 21.994 33.7 22.4088ZM25.8 24.8996V18.9H18.9V25.9004H24.176C24.4367 25.5342 24.7209 25.1717 25.0465 24.8461C25.149 24.7436 25.2909 24.6906 25.4355 24.7009C25.5801 24.7111 25.713 24.7836 25.8 24.8996ZM23.5258 26.9004H18.9V33.6H22.9037C22.8753 33.5156 22.8482 33.4311 22.8222 33.3467C22.7778 33.2026 22.8009 33.0463 22.8848 32.9211C22.9688 32.7959 23.1047 32.7153 23.2548 32.7017C24.1232 32.6227 24.8001 31.9158 24.8001 31.0996C24.8001 30.2548 24.0938 29.4738 23.2548 29.3976C23.1183 29.3851 22.9929 29.3173 22.9079 29.2098C22.8229 29.1023 22.7857 28.9646 22.8051 28.8289C22.906 28.1227 23.1846 27.5178 23.5258 26.9004ZM12.6 11C11.6761 11 11 11.6761 11 12.6V17.9H33.7V12.6C33.7 11.6761 33.0239 11 32.1 11H12.6ZM17.9 25.9004V18.9H11V25.9004H17.9ZM11 26.9004H17.9V33.6H12.6C11.6761 33.6 11 32.9239 11 32V26.9004ZM28.5774 26.1156C29.5177 25.4888 30.0071 24.4028 29.8133 23.2675C30.8842 23.0442 31.9076 23.0436 32.9782 23.2657C32.8835 23.7315 32.8825 24.2103 33.0054 24.6572C33.1772 25.2818 33.5867 25.821 34.2568 26.1379C35.2293 26.7624 36.4935 26.5657 37.357 25.9167C38.0085 26.7202 38.5052 27.6166 38.8457 28.5282C37.7977 28.8736 37.0001 29.8334 37.0001 30.9996C37.0001 32.1403 37.775 33.1845 38.8319 33.5603C38.799 33.6588 38.7681 33.755 38.7386 33.847C38.7126 33.9279 38.6877 34.0056 38.6632 34.079C38.5542 34.4062 38.4459 34.6794 38.284 34.9223C37.9831 35.3737 37.6996 35.7973 37.3855 36.1735C36.562 35.5206 35.3451 35.4663 34.2931 35.9444C34.2687 35.9556 34.2451 35.9687 34.2227 35.9836C33.2824 36.6104 32.793 37.6964 32.9868 38.8317C31.9159 39.055 30.8925 39.0556 29.8219 38.8335C29.9166 38.3677 29.9176 37.889 29.7947 37.442C29.6229 36.8174 29.2134 36.2782 28.5433 35.9613C27.5708 35.3368 26.3066 35.5335 25.4431 36.1825C24.7916 35.379 24.2949 34.4826 23.9544 33.571C25.0024 33.2256 25.8001 32.2659 25.8001 31.0996C25.8001 29.933 24.9894 28.8672 23.8956 28.5143C24.022 28.0896 24.2363 27.6699 24.5257 27.1626C24.8231 26.7165 25.1039 26.2979 25.4146 25.9258C26.2381 26.5786 27.4551 26.6329 28.507 26.1548C28.5315 26.1437 28.555 26.1306 28.5774 26.1156ZM29.0259 29.8617C29.6646 28.8238 31.0596 28.4412 32.374 28.948C33.4669 29.6448 33.8912 31.0349 33.2742 32.0376C33.2688 32.0463 33.2637 32.0552 33.2589 32.0643C32.6016 33.2966 31.0296 33.6307 29.9621 32.9738C28.8425 32.2848 28.4021 30.8752 29.0259 29.8617ZM32.7857 28.0354C31.1118 27.3658 29.129 27.7861 28.1742 29.3376C27.198 30.924 27.9576 32.9144 29.438 33.8254C30.9665 34.7661 33.1871 34.305 34.134 32.5484C35.0979 30.9642 34.3384 28.9823 32.8621 28.0738C32.8378 28.0588 32.8122 28.046 32.7857 28.0354Z" class="fill-border"/></svg>',
fullscreen:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M29.9 20.2002H20.2V29.9002H29.9V20.2002Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.7 10H10.5C10.2239 10 10 10.2239 10 10.5V18.7C10 18.9022 10.1218 19.0845 10.3087 19.1619C10.4955 19.2393 10.7106 19.1966 10.8536 19.0536L14.6002 15.3069L19.7 20.4066V29.5929L14.6001 34.6928L10.8536 30.9463C10.7106 30.8033 10.4955 30.7605 10.3087 30.8379C10.1218 30.9153 10 31.0976 10 31.2998V39.4998C10 39.776 10.2239 39.9998 10.5 39.9998H18.7C18.9022 39.9998 19.0845 39.878 19.1619 39.6912C19.2393 39.5043 19.1966 39.2893 19.0536 39.1463L15.3072 35.3999L20.3069 30.4002H29.6933L34.6929 35.3998L30.9465 39.1463C30.8035 39.2893 30.7607 39.5043 30.8381 39.6912C30.9155 39.878 31.0978 39.9998 31.3001 39.9998H39.5001C39.7762 39.9998 40.0001 39.776 40.0001 39.4998V31.2998C40.0001 31.0976 39.8782 30.9153 39.6914 30.8379C39.5046 30.7605 39.2895 30.8033 39.1465 30.9463L35.4 34.6927L30.4 29.6926V20.3069L35.3999 15.3069L39.1465 19.0536C39.2895 19.1966 39.5046 19.2393 39.6914 19.1619C39.8782 19.0845 40.0001 18.9022 40.0001 18.7V10.5C40.0001 10.2239 39.7762 10 39.5001 10H31.3001C31.0978 10 30.9155 10.1218 30.8381 10.3087C30.7607 10.4955 30.8035 10.7106 30.9465 10.8536L34.6928 14.5998L29.5924 19.7002H20.4078L15.3073 14.5998L19.0536 10.8536C19.1966 10.7106 19.2393 10.4955 19.1619 10.3087C19.0845 10.1218 18.9022 10 18.7 10ZM11 17.4929V11H17.4929L11 17.4929ZM20.7 20.7002V29.4002H29.4V20.7002H20.7ZM32.5072 38.9998H39.0001V32.5069L32.5072 38.9998ZM32.5072 11L39.0001 17.4929V11H32.5072ZM11 38.9998V32.5069L17.4929 38.9998H11Z" class="fill-border"/></svg>',
minimize:'<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.95 22.15H22.15V13.95L13.95 22.15Z" class="fill-background"/><path d="M36.0499 27.8504H27.8499V36.0504L36.0499 27.8504Z" class="fill-background"/><path d="M22.15 36.0504V27.8504H13.95L22.15 36.0504Z" class="fill-background"/><path d="M27.8499 13.95V22.15H36.0499L27.8499 13.95Z" class="fill-background"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.8035 12.0966C12.6082 11.9014 12.2917 11.9014 12.0964 12.0966C11.9011 12.2919 11.9011 12.6085 12.0964 12.8037L17.3428 18.0502L13.5964 21.7967C13.4534 21.9397 13.4106 22.1547 13.488 22.3416C13.5654 22.5284 13.7477 22.6502 13.9499 22.6502H22.1499C22.4261 22.6502 22.6499 22.4264 22.6499 22.1502V13.9502C22.6499 13.748 22.5281 13.5657 22.3413 13.4883C22.1544 13.4109 21.9394 13.4537 21.7964 13.5967L18.05 17.3431L12.8035 12.0966ZM18.4043 18.4029L18.4035 18.4037L18.4027 18.4046L15.157 21.6502H21.6499V15.1573L18.4043 18.4029Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M32.6572 31.9503L36.4034 28.2041C36.5464 28.0611 36.5892 27.8461 36.5118 27.6592C36.4344 27.4724 36.2521 27.3506 36.0499 27.3506H27.8499C27.5737 27.3506 27.3499 27.5744 27.3499 27.8506V36.0506C27.3499 36.2528 27.4717 36.4351 27.6585 36.5125C27.8453 36.5899 28.0604 36.5471 28.2034 36.4041L31.9501 32.6574L37.1964 37.9037C37.3917 38.099 37.7082 38.099 37.9035 37.9037C38.0988 37.7085 38.0988 37.3919 37.9035 37.1966L32.6572 31.9503ZM31.5863 31.6071L28.3499 34.8435V28.3506H34.8427L31.6068 31.5865L31.5964 31.5966L31.5863 31.6071Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.3426 31.9504L12.0964 37.1966C11.9011 37.3919 11.9011 37.7085 12.0964 37.9037C12.2917 38.099 12.6082 38.099 12.8035 37.9037L18.0497 32.6575L21.7964 36.4041C21.9394 36.5471 22.1544 36.5899 22.3413 36.5125C22.5281 36.4351 22.6499 36.2528 22.6499 36.0506V27.8506C22.6499 27.5744 22.4261 27.3506 22.1499 27.3506H13.9499C13.7477 27.3506 13.5654 27.4724 13.488 27.6592C13.4106 27.8461 13.4534 28.0611 13.5964 28.2041L17.3426 31.9504ZM18.4154 31.609L18.4035 31.5966L18.3912 31.5847L15.157 28.3506H21.6499V34.8435L18.4154 31.609Z" class="fill-border"/><path fill-rule="evenodd" clip-rule="evenodd" d="M37.9035 12.0966C38.0988 12.2919 38.0988 12.6085 37.9035 12.8037L32.657 18.0503L36.4034 21.7967C36.5464 21.9397 36.5892 22.1547 36.5118 22.3416C36.4344 22.5284 36.2521 22.6502 36.0499 22.6502H27.8499C27.5737 22.6502 27.3499 22.4264 27.3499 22.1502V13.9502C27.3499 13.748 27.4717 13.5657 27.6585 13.4883C27.8453 13.4109 28.0604 13.4537 28.2034 13.5967L31.9499 17.3431L37.1964 12.0966C37.3917 11.9014 37.7082 11.9014 37.9035 12.0966ZM28.3499 21.6502V15.1573L34.8427 21.6502H28.3499Z" class="fill-border"/></svg>'};
FlexmonsterToolbar.prototype.icons_v26={connect:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><style>.a{fill:none;}</style><path d="M9.9 18.4c2.1 0.9 5 1.4 8.1 1.4 3.1 0 6-0.5 8.1-1.4C27.9 17.7 29 16.7 29 15.8v-3.9c-1 0.5-1.3 0.9-2.1 1.2 -2.4 1.1-5.5 1.7-8.9 1.7 -3.3 0-6.5-0.6-8.9-1.7C8.3 12.8 8 12.3 7 11.9v3.9c0 0 0 0 0 0C7 16.7 8.1 17.7 9.9 18.4z" class="a"/><path d="M9.9 24.5c2.1 0.9 5 1.4 8.1 1.4 3.1 0 6-0.5 8.1-1.4C27.9 23.7 29 21.8 29 20.9v-2.7c-1 0.4-1.3 0.8-2.1 1.2 -2.4 1-5.5 1.6-8.9 1.6 -3.3 0-6.5-0.6-8.9-1.6C8.3 19 8 18.6 7 18.1v3.7c0 0 0 0 0 0C7 22.8 8.1 23.7 9.9 24.5z" class="a"/><path d="M29 24.2c-0.6 0.4-1.3 0.8-2.1 1.2 -2.4 1-5.5 1.6-8.9 1.6 -3.3 0-6.5-0.6-8.9-1.6C8.3 25 8 24.6 7 24.2v3.7c0 0.9 1.1 1.9 2.9 2.6 2.1 0.9 5 1.4 8.1 1.4 3.1 0 6-0.5 8.1-1.4C27.9 29.8 29 28.8 29 27.9h0V24.2z" class="a"/><path d="M26.9 4.7C24.5 3.6 21.3 3 18 3c-3.3 0-6.5 0.6-8.9 1.7C6.5 5.9 6 7.5 6 9.4c0 0 0 0 0 0C6 9.5 6 9.5 6 9.5v18.5c0 1.8 0.5 2.4 3.1 3.5C11.5 32.4 14.7 33 18 33c3.3 0 6.5-0.6 8.9-1.6C29.5 30.3 30 29.7 30 27.9V9.4c0 0 0 0 0 0C30 7.5 29.5 5.9 26.9 4.7zM7 15.8v-3.9c1 0.5 1.3 0.9 2.1 1.3 2.4 1.1 5.5 1.7 8.9 1.7 3.3 0 6.5-0.6 8.9-1.7C27.7 12.8 28 12.3 29 11.9v3.9c0 0.9-1.1 1.9-2.9 2.6 -2.1 0.9-5 1.4-8.1 1.4 -3.1 0-5.9-0.5-8.1-1.4C8.1 17.7 7 16.7 7 15.8 7 15.8 7 15.8 7 15.8zM7 18.1c1 0.4 1.3 0.8 2.1 1.2 2.4 1 5.5 1.6 8.9 1.6 3.3 0 6.5-0.6 8.9-1.6C27.7 19 28 18.6 29 18.1v2.7c0 0.9-1.1 2.9-2.9 3.6 -2.1 0.9-5 1.4-8.1 1.4 -3.1 0-6-0.5-8.1-1.4 -1.8-0.8-2.9-1.8-2.9-2.6 0 0 0 0 0 0V18.1zM26.1 30.6c-2.1 0.9-5 1.4-8.1 1.4 -3.1 0-5.9-0.5-8.1-1.4C8.1 29.8 7 28.8 7 27.9v-3.7c1 0.4 1.3 0.8 2.1 1.2 2.4 1 5.5 1.6 8.9 1.6 3.3 0 6.5-0.6 8.9-1.6 0.8-0.3 1.5-0.7 2.1-1.2v3.7h0C29 28.8 27.9 29.8 26.1 30.6z"/></svg>',
connect_olap:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M30 10.9c0 0-0.1-0.3-0.2-0.3 0 0 0 0-0.1 0 0 0 0 0 0 0L17.8 4.1c-0.2-0.1-0.3-0.1-0.5 0L5.3 10.5c0 0 0 0 0 0C5.1 10.6 5 10.8 5 11V27l12 5c0 0 0.4-0.1 0.4-0.1 0.1 0.1 0.3 0.1 0.5 0C17.8 31.9 18 32 18 32l12-5 0-16L30 10.9zM22.4 7.7l-4.8 2.4 -4.8-2.4 4.8-2.4L22.4 7.7zM11 21l-5-2V12l5 3V21zM6.3 10.9l4.8-2.4L16 11l-5 2L6.3 10.9zM17 31l-5-2v-6l5 2V31zM17 24l-5-2v-6l5 2V24zM17.6 16.5L12 14l6-2 5 2L17.6 16.5zM23 29l-5 2v-6l5-2V29zM23 22l-5 2v-6l5-2V22zM29 26l-5 2v-6l5-2V26zM29 19l-5 2v-6l5-2V19z"/></svg>',
connect_csv:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M11 24l6 0V27h-6V24z"/><path d="M12.8 22L12.8 22l1.2-2.5L15.1 22h1.9l-2-3.9L16.9 14h-1.8l-1 2.5L12.9 14h-1.8l1.9 3.9L11 22H12.8z"/><path d="M19 19h6v3h-6V19z"/><path d="M19 14h6v3L19 17V14z"/><path d="M19 24h6v3h-6V24z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',connect_json:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/><path d="M19 24c0 0.6-0.4 1-1 1 -0.6 0-1-0.4-1-1v-2c0-0.6 0.4-1 1-1 0.6 0 1 0.4 1 1V24zM21 18v-2c0-0.6-0.4 0-1 0 -0.6 0-1-0.4-1-1 0-0.6 0.4-1 1-1 1.7 0 3 0.3 3 2v2c0 1.1 0.9 2 2 2 0.6 0 1 0.4 1 1 0 0.6-0.4 1-1 1 -1.1 0-2 0.9-2 2v2c0 1.7-1.3 2-3 2 -0.6 0-1-0.4-1-1s0.4-1 1-1c0.6 0 1 0.6 1 0v-2c0-1.2 0.5-2.3 1.4-3C21.5 20.3 21 19.2 21 18zM11 20c1.1 0 2-0.9 2-2v-2c0-1.7 1.3-2 3-2 0.6 0 1 0.4 1 1 0 0.6-0.4 1-1 1 -0.6 0-1-0.6-1 0v2c0 1.2-0.5 2.3-1.4 3 0.8 0.7 1.4 1.8 1.4 3v2c0 0.6 0.4 0 1 0 0.6 0 1 0.4 1 1s-0.4 1-1 1c-1.7 0-3-0.3-3-2v-2c0-1.1-0.9-2-2-2 -0.6 0-1-0.4-1-1C10 20.4 10.4 20 11 20z"/><path d="M18 17c0.6 0 1 0.4 1 1s-0.4 1-1 1 -1-0.4-1-1S17.4 17 18 17z"/></svg>',
connect_csv_remote:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M11 24l6 0V27h-6V24z"/><path d="M12.8 22L12.8 22l1.2-2.5L15.1 22h1.9l-2-3.9L16.9 14h-1.8l-1 2.5L12.9 14h-1.8l1.9 3.9L11 22H12.8z"/><path d="M19 19h6v3h-6V19z"/><path d="M19 14h6v3L19 17V14z"/><path d="M19 24h6v3h-6V24z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',connect_json_remote:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/><path d="M19 24c0 0.6-0.4 1-1 1 -0.6 0-1-0.4-1-1v-2c0-0.6 0.4-1 1-1 0.6 0 1 0.4 1 1V24zM21 18v-2c0-0.6-0.4 0-1 0 -0.6 0-1-0.4-1-1 0-0.6 0.4-1 1-1 1.7 0 3 0.3 3 2v2c0 1.1 0.9 2 2 2 0.6 0 1 0.4 1 1 0 0.6-0.4 1-1 1 -1.1 0-2 0.9-2 2v2c0 1.7-1.3 2-3 2 -0.6 0-1-0.4-1-1s0.4-1 1-1c0.6 0 1 0.6 1 0v-2c0-1.2 0.5-2.3 1.4-3C21.5 20.3 21 19.2 21 18zM11 20c1.1 0 2-0.9 2-2v-2c0-1.7 1.3-2 3-2 0.6 0 1 0.4 1 1 0 0.6-0.4 1-1 1 -0.6 0-1-0.6-1 0v2c0 1.2-0.5 2.3-1.4 3 0.8 0.7 1.4 1.8 1.4 3v2c0 0.6 0.4 0 1 0 0.6 0 1 0.4 1 1s-0.4 1-1 1c-1.7 0-3-0.3-3-2v-2c0-1.1-0.9-2-2-2 -0.6 0-1-0.4-1-1C10 20.4 10.4 20 11 20z"/><path d="M18 17c0.6 0 1 0.4 1 1s-0.4 1-1 1 -1-0.4-1-1S17.4 17 18 17z"/></svg>',
connect_elastic:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 112 112"><style type="text/css">.st0{fill:#FFFFFF;}.st1{fill:#00A9E5;}.st2{fill:#353535;}.st3{fill:#00BFB3;}.st4{fill:#019B8F;}.st5{fill:#F9B110;}.st6{fill:#FED10A;}</style><path d="m53.2 68h-32.4c-1.2-3.8-1.8-7.8-1.8-12s0.6-8.2 1.8-12h53.2c6.7 0 12 5.4 12 12s-5.3 12-11.9 12h-20.9zm-1.5 4h-29.4c3.1 7.1 8.2 13.2 14.7 17.4 6.3 4.2 13.9 6.6 22 6.6 13.9 0 26.1-7.1 33.3-17.8-3.7-3.8-8.9-6.2-14.6-6.2h-26zm26-32c5.7 0 10.9-2.4 14.6-6.2-7.2-10.7-19.4-17.8-33.3-17.8-8.1 0-15.7 2.4-22 6.6-6.4 4.2-11.5 10.3-14.7 17.4h55.4z"/></svg>',
open:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M34.4 16.5C34.3 16.4 34.7 16 34.5 16H31V8C32 7.4 31.1 6 29.5 6h-15l-2-2c-0.1-0.2-0.7 0-1 0h-6C4.9 4 4 5.3 4 6V16H1.5c-0.2 0 0.2 0.4 0.1 0.5 -0.1 0.1-0.2 0.3-0.1 0.5l3.2 14.5C4.8 31.8 5.2 32 5.5 32h25c0.3 0 1 0.3 1 0l3-15C34.5 16.8 34.5 16.7 34.4 16.5zM5 5h6.5l1.9 1.7C13.5 7 14.2 7 14.5 7H30v9h-4v-5H9v5H5V5zM25 16H10v-4h15V16z"/></svg>',open_local:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><style>.a{fill:none;}</style><path d="M30.9 10.6C30.8 10.4 30.2 10 30 10h-1V8c0-0.4-0.6-1-1-1H15l-1-2H8C7.6 5 7 5.6 7 6v4H6c-0.2 0-0.8 0.4-0.9 0.6 -0.1 0.1-0.2 0.3-0.1 0.5l2.1 19.5C7.2 30.8 7.7 31 8 31h20c0.3 0 0.8-0.2 0.9-0.5l2.1-19.5C31 10.9 31 10.7 30.9 10.6zM28 30H8L6 11h24L28 30z"/><line x1="11" y1="23" x2="11" y2="23" class="a"/><line x1="25" y1="23" x2="25" y2="23" class="a"/><polygon points="11 15 11 23 17 23 17 25 14 25 14 26 22 26 22 25 19 25 19 23 25 23 25 15 "/></svg>',
open_remote:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M30.9 10.6C30.8 10.4 30.2 10 30 10h-1V8c0-0.4-0.6-1-1-1H15l-1-2H8C7.6 5 7 5.6 7 6v4H6c-0.2 0-0.8 0.4-0.9 0.6 -0.1 0.1-0.2 0.3-0.1 0.5l2.1 19.5C7.2 30.8 7.7 31 8 31h20c0.3 0 0.8-0.2 0.9-0.5l2.1-19.5C31 10.9 31 10.7 30.9 10.6zM28 30H8L6 11h24L28 30z"/><path d="M24.8 18.1l-0.8 1.5c-0.2 0.2-0.5 0.2-0.8 0 -1.3-1.2-3.2-1.9-5.3-1.9 -2.1 0-4 0.7-5.3 1.9 -0.2 0.2-0.5 0.2-0.8 0l-0.8-1.5c-0.1-0.1-0.2-0.2-0.2-0.3 0-0.1 0.1-0.2 0.2-0.3 1.7-1.5 4.1-2.5 6.8-2.5 2.7 0 5.1 0.9 6.8 2.5 0.1 0 0.2 0.2 0.2 0.3C25 17.9 24.9 18 24.8 18.1zM18 19.6c1.5 0 2.8 0.5 3.8 1.4 0.2 0.2 0.2 0.5 0 0.7l-0.8 1.5c-0.2 0.2-0.5 0.2-0.8 0 -0.6-0.5-1.4-0.8-2.3-0.8 -0.9 0-1.7 0.3-2.3 0.8 -0.2 0.2-0.5 0.2-0.8 0l-0.8-1.5c-0.2-0.2-0.2-0.5 0-0.7C15.2 20.1 16.5 19.6 18 19.6zM18 23.4c0.8 0 1.4 0.6 1.4 1.3 0 0.7-0.6 1.3-1.4 1.3 -0.8 0-1.4-0.6-1.4-1.3C16.6 24 17.2 23.4 18 23.4z"/></svg>',
grid:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><style>.a{fill:none;}</style><polygon points="30 15 23 15 23 22 30 22 30 15 " class="a"/><polygon points="14 22 14 15 7 15 7 22 14 22 " class="a"/><polygon points="14 23 7 23 7 30 14 30 14 23 " class="a"/><polygon points="22 15 15 15 15 22 22 22 22 15 " class="a"/><polygon points="30 23 23 23 23 30 30 30 30 23 " class="a"/><polygon points="22 23 15 23 15 30 22 30 22 23 " class="a"/><path d="M30.5 6l-0.2 0L30 6H7L6.7 6 6.5 6 6 6.5v24L6.5 31l0.2 0L7 31h23.1l0.3 0L30.5 31l0.5-0.5v-24L30.5 6 30.5 6zM14 15v7H7v-7H14L14 15zM15 15h7v7h-7V15L15 15zM23 15h7v7h-7V15L23 15zM7 23h7v7H7V23L7 23zM15 23h7v7h-7V23L15 23zM23 23h7v7h-7V23L23 23z"/></svg>',
save:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M30 10.9l-6-5.2 0 0 0 0 0 0L24 5.5l-0.1 0 0 0.2L23.8 6H6.1L5 6.1v23.7V31h24.5l0.1-0.3L30 29.5v-18L30 10.9 30 10.9zM22 26h-9v-2h9V26L22 26zM29 30h-3V19h-0.5 -15H9v11H6V7h6v5.5l1.5 1.5h9l0.5-1.5v-6l6 5V30L29 30z"/></svg>',export:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="14 27 22 27 22 15 27 15 18 5 9 15 14 15 "/><path d="M32.5 21h-5c-0.3 0-0.5 0.2-0.5 0.5s0.2 0.5 0.5 0.5H32v10H4V22h4.5C8.8 22 9 21.8 9 21.5S8.8 21 8.5 21h-5C3.2 21 3 21.2 3 21.5v11C3 32.8 3.2 33 3.5 33h29c0.3 0 0.5-0.2 0.5-0.5v-11C33 21.2 32.8 21 32.5 21z"/></svg>',
export_print:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M23 23H13v1h10V23L23 23z"/><path d="M13 25v1h10v-1H13z"/><path d="M26 12V5H10v7H6v14h3v4h18v-4h3V12H26zM11 6h14v6H11V6zM26 29H10v-9h16V29zM26 17.8c-1.1 0-2-0.9-2-2s0.9-2 2-2c1.1 0 2 0.9 2 2S27.1 17.8 26 17.8z"/><path d="M26 14.6c0.7 0 1.2 0.5 1.2 1.2 0 0.7-0.5 1.2-1.2 1.2 -0.7 0-1.2-0.5-1.2-1.2C24.8 15.1 25.3 14.6 26 14.6z"/></svg>',export_excel:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M24.4 15h-3.8L18 18.6 15.3 15h-3.8l4.5 5.2L11 27h7.3L18 25h-2l2-3L21.1 27H25l-5.1-6.8L24.4 15z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',
export_html:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M25.7 20.8l-2.3-2.5c-0.2-0.2-0.4-0.3-0.6-0.3 -0.2 0-0.4 0.1-0.6 0.3 -0.3 0.4-0.3 1 0 1.4l1.7 1.9 -1.7 1.9c-0.2 0.2-0.3 0.4-0.3 0.7 0 0.3 0.1 0.5 0.3 0.7 0.2 0.2 0.4 0.3 0.6 0.3 0.2 0 0.4-0.1 0.6-0.3l2.3-2.5C26.1 21.8 26.1 21.2 25.7 20.8z"/><path d="M14 24c0-0.3-0.1-0.5-0.3-0.7l-1.7-1.9 1.7-1.9c0.3-0.4 0.3-1 0-1.4 -0.2-0.2-0.4-0.3-0.6-0.3 -0.2 0-0.4 0.1-0.6 0.3l-2.3 2.5c-0.3 0.4-0.3 1 0 1.4l2.3 2.5c0.2 0.2 0.4 0.3 0.6 0.3 0.2 0 0.4-0.1 0.6-0.3C13.9 24.5 14 24.3 14 24z"/><path d="M20.4 15.1c-0.1 0-0.2-0.1-0.3-0.1 -0.4 0-0.8 0.3-0.9 0.6l-4.1 11.1c-0.1 0.2-0.1 0.5 0 0.7 0.1 0.2 0.3 0.4 0.5 0.5C15.7 28 15.8 28 16 28c0.4 0 0.8-0.3 0.9-0.6l4.1-11.1C21.1 15.8 20.9 15.2 20.4 15.1z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',
export_image:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M25 21.5c0 1.9 0 3.7 0 5.6 0 0.5-0.4 0.9-1 0.9C20 28 16 28 12 28 11.4 28 11 27.7 11 27.1c0-3.2 0-6.4 0-9.5 0-0.6 0-1.1 0-1.7 0-0.4 0.3-0.7 0.7-0.8C11.8 15 11.9 15 11.9 15c4.1 0 8.1 0 12.2 0C24.6 15 25 15.3 25 15.9 25 17.7 25 19.6 25 21.5zM14 26h8c0 0-1.4-3.7-2.2-5.3 -0.8 1.1-1.5 2.1-2.3 3.2 -0.4-0.5-0.8-1-1.2-1.5C15.4 23.4 14 26 14 26zM14.5 17c-0.8 0-1.5 0.7-1.5 1.5 0 0.8 0.7 1.5 1.5 1.5C15.3 20 16 19.3 16 18.5 16 17.7 15.3 17 14.5 17z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',
export_pdf:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M17.2 17.1L17.2 17.1C17.3 17.1 17.3 17.1 17.2 17.1c0.1-0.5 0.2-0.7 0.2-1V15.8c0.1-0.6 0.1-1 0-1.1 0 0 0 0 0-0.1l-0.1-0.1 0 0 0 0c0 0 0 0.1-0.1 0.1C16.9 15.2 16.9 16 17.2 17.1L17.2 17.1zM13.8 24.8c-0.2 0.1-0.4 0.2-0.6 0.3 -0.8 0.7-1.3 1.5-1.5 1.8l0 0 0 0 0 0C12.5 26.9 13.1 26.2 13.8 24.8 13.9 24.8 13.9 24.8 13.8 24.8 13.9 24.8 13.8 24.8 13.8 24.8zM24.1 23.1c-0.1-0.1-0.6-0.5-2.1-0.5 -0.1 0-0.1 0-0.2 0l0 0c0 0 0 0 0 0.1 0.8 0.3 1.6 0.6 2.1 0.6 0.1 0 0.1 0 0.2 0l0 0h0.1c0 0 0 0 0-0.1l0 0C24.2 23.3 24.1 23.3 24.1 23.1zM24.6 24c-0.2 0.1-0.6 0.2-1 0.2 -0.9 0-2.2-0.2-3.4-0.8 -1.9 0.2-3.4 0.5-4.5 0.9 -0.1 0-0.1 0-0.2 0.1 -1.3 2.4-2.5 3.5-3.4 3.5 -0.2 0-0.3 0-0.4-0.1l-0.6-0.3v-0.1c-0.1-0.2-0.1-0.3-0.1-0.6 0.1-0.6 0.8-1.6 2.1-2.4 0.2-0.1 0.6-0.3 1-0.6 0.3-0.6 0.7-1.2 1.1-2 0.6-1.1 0.9-2.3 1.2-3.3l0 0c-0.4-1.4-0.7-2.1-0.2-3.7 0.1-0.5 0.4-0.9 0.9-0.9h0.2c0.2 0 0.4 0.1 0.7 0.2 0.8 0.8 0.4 2.6 0 4.1 0 0.1 0 0.1 0 0.1 0.4 1.2 1.1 2.3 1.8 2.9 0.3 0.2 0.6 0.5 1 0.7 0.6 0 1-0.1 1.5-0.1 1.3 0 2.2 0.2 2.6 0.8 0.1 0.2 0.1 0.5 0.1 0.7C24.9 23.5 24.8 23.8 24.6 24zM17.3 19.6c-0.2 0.8-0.7 1.7-1.1 2.7 -0.2 0.5-0.4 0.8-0.7 1.2h0.1 0.1l0 0c1.5-0.6 2.8-0.9 3.7-1 -0.2-0.1-0.3-0.2-0.4-0.3C18.4 21.6 17.7 20.7 17.3 19.6z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',
export_csv:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M11 24l6 0V27h-6V24z"/><path d="M12.8 22L12.8 22l1.2-2.5L15.1 22h1.9l-2-3.9L16.9 14h-1.8l-1 2.5L12.9 14h-1.8l1.9 3.9L11 22H12.8z"/><path d="M19 19h6v3h-6V19z"/><path d="M19 14h6v3L19 17V14z"/><path d="M19 24h6v3h-6V24z"/><path d="M23 4H7v28h22V11L23 4zM8 31V5h14v7h6v19H8L8 31z"/></svg>',charts:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="28 30 28 22 23 22 23 30 21 30 21 9 16 9 16 30 14 30 14 17 9 17 9 30 5 30 5 5 4 5 4 31 32 31 32 30 "/></svg>',
charts_bar:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 5 30 5 26 18 26 18 21 5 21 5 19 26 19 26 14 5 14 5 12 13 12 13 7 5 7 5 3 4 3 4 31 32 31 "/></svg>',charts_column_line:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 29 30 29 17 26 17 26 30 23 30 23 19 20 19 20 30 17 30 17 14 14 14 14 30 11 30 11 20 8 20 8 30 5 30 5 3 4 3 4 31 32 31 32 30 "/><path d="M8.7 12.5c1 0 1.7-0.8 1.7-1.7 0-0.3 0-0.5-0.1-0.8l4.3-3.9c0.3 0.3 0.5 0.3 0.9 0.3 0.2 0 0.5 0 0.6-0.1l4.8 6c-0.3 0.3-0.4 0.6-0.4 1 0 0.9 0.7 1.6 1.8 1.6 0.9 0 1.7-0.8 1.7-1.6 0-0.3-0.1-0.5-0.3-0.8l4.3-3.8c0.3 0.2 0.6 0.3 0.9 0.3 1.1 0 1.8-0.8 1.8-1.7 0-0.4-0.2-0.9-0.5-1.2C30.2 6 30 5.8 29.6 5.8c0 0-0.2-0.1-0.4-0.1 -0.9 0-1.7 0.8-1.7 1.7 0 0.3 0.1 0.5 0.3 0.8l-4.3 3.7c-0.3-0.1-0.5-0.3-0.9-0.3 -0.3 0-0.5 0.1-0.7 0.2l-4.8-6.1c0.2-0.3 0.4-0.6 0.4-0.9 0-1-0.8-1.7-1.7-1.7 -0.9 0-1.7 0.8-1.7 1.7 0 0.3 0.1 0.6 0.1 0.8l-4.3 3.9C9.4 9.2 9.1 9.1 8.7 9.1c-0.9 0-1.7 0.7-1.7 1.6C7 11.7 7.8 12.5 8.7 12.5z"/></svg>',
charts_stacked_column:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 28 30 28 27 23 27 23 30 21 30 21 14 16 14 16 30 14 30 14 22 9 22 9 30 5 30 5 3 4 3 4 31 32 31 32 30 "/><polygon points="14 15 9 15 9 21 14 21 14 15 "/><polygon points="21 9 16 9 16 13 21 13 21 9 "/><polygon points="28 22 23 22 23 26 28 26 28 22 "/></svg>',charts_line:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 5 30 5 3 4 3 4 31 32 31 32 30 "/><path d="M9.4 24c1.3 0 2.4-1.1 2.4-2.3 0-0.7-0.3-1.3-0.8-1.8l2.8-4.3c0.4 0.1 0.6 0.2 1 0.2 0.8 0 1.4-0.3 1.9-0.7l2.8 2.6c-0.2 0.4-0.2 0.6-0.2 0.9 0 1.2 1 2.2 2.1 2.2 1.3 0 2.2-1 2.2-2.2 0-0.2 0-0.5-0.1-0.8l2.9-8c0.6 0.5 1.3 0.7 2.1 0.7 1.6 0 3-1.3 3-3.1 0-1.7-1.3-3.1-3-3.1 -1.7 0-3.1 1.4-3.1 3.1 0 0.6 0.2 1.1 0.4 1.6l-2.8 8c-0.4-0.5-0.9-0.7-1.6-0.7 -0.5 0-1 0.2-1.4 0.6l-2.8-2.7c0.1-0.4 0.2-0.8 0.2-1.2 0-1.6-1.1-2.8-2.7-2.8 -1.4 0-2.7 1.3-2.7 2.8 0 0.8 0.4 1.5 0.9 2.1l-2.8 4.2c-0.2-0.1-0.5-0.1-0.8-0.1C8.1 19.2 7 20.3 7 21.7 7 22.9 8.1 24 9.4 24z"/></svg>',
charts_pie:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M25.2 28.8c3.3-2.2 5.5-5.8 5.8-9.8h-12L25.2 28.8z"/><path d="M17 18v-13c-7 0.4-12 6.1-12 13 0 7.2 5.9 13 13 13 2.1 0 4-0.5 5.8-1.4C23.8 29.6 17 18.2 17 18z"/><path d="M18 5V18h13l0-0.9C30.6 10.6 25 5.4 18 5z"/></svg>',charts_scatter:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="32 30 5 30 5 3 4 3 4 31 32 31 "/><path d="M9.5 20c1.4 0 2.5 1.1 2.5 2.5 0 1.4-1.1 2.5-2.5 2.5S7 23.9 7 22.5C7 21.1 8.1 20 9.5 20z"/><path d="M21.5 17c1.4 0 2.5 1.1 2.5 2.5 0 1.4-1.1 2.5-2.5 2.5S19 20.9 19 19.5C19 18.1 20.1 17 21.5 17z"/><path d="M14 11c1.7 0 3 1.3 3 3s-1.3 3-3 3 -3-1.3-3-3S12.3 11 14 11z"/><path d="M28 6c1.7 0 3 1.3 3 3 0 1.7-1.3 3-3 3s-3-1.3-3-3C25 7.3 26.3 6 28 6z"/></svg>',
format:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><rect x="18.8" y="12.9" transform="matrix(-0.7073 -0.7069 0.7069 -0.7073 21.6275 41.9551)" width="1.3" height="7.1" fill="none"/><polygon points="24 25 23 25 23 32 4 32 4 13 11 13 11 12 3 12 3 33 24 33 "/><path d="M28.3 3.5c-0.9 0-1.8 0.3-2.5 0.8l-1.7 1.7 5.9 5.9 1.7-1.7c0.5-0.7 0.8-1.6 0.8-2.5C32.5 5.4 30.6 3.5 28.3 3.5z"/><path d="M11.2 18.9L9.5 26.5l7.6-1.7 11.6-11.6 -5.9-5.9L11.2 18.9zM17.4 19.5l-0.9-0.9 5.1-5 0.9 0.9L17.4 19.5z"/></svg>',
format_number:'<svg xmlns="http://www.w3.org/2000/svg" width="52" height="36" viewBox="0 0 52 36"><path d="M31 19.2v-3.4l2.5-0.4c0.2-0.7 0.5-1.4 0.9-2.1l-1.4-2 2.4-2.4 2 1.4c0.7-0.4 1.4-0.7 2.1-0.9l0.4-2.5h3.4l0.4 2.5c0.7 0.2 1.4 0.5 2.1 0.9l2-1.4 2.4 2.4 -1.4 2c0.4 0.7 0.7 1.4 0.9 2.1L52 15.8v3.4l-2.5 0.4c-0.2 0.7-0.5 1.4-0.9 2.1l1.4 2 -2.4 2.4 -2-1.5c-0.7 0.4-1.4 0.7-2.1 0.9l-0.4 2.5h-3.4l-0.4-2.5c-0.7-0.2-1.4-0.5-2.1-0.9l-2 1.5 -2.4-2.4 1.4-2c-0.4-0.7-0.7-1.4-0.9-2.1L31 19.2zM41.5 21c1.9 0 3.5-1.6 3.5-3.5 0-1.9-1.6-3.5-3.5-3.5 -1.9 0-3.5 1.6-3.5 3.5C38 19.4 39.6 21 41.5 21z"/><path d="M38 30H1V6h36V5H0v26h38V30L38 30z"/><path d="M9.4 21.1c-0.3 0.3-0.7 0.4-1.2 0.4 -0.5 0-0.9-0.2-1.2-0.5s-0.4-0.8-0.4-1.4H5c0 0.9 0.2 1.7 0.7 2.2 0.5 0.6 1.2 0.9 2 1v1.3h1.1v-1.4c0.8-0.1 1.5-0.4 1.9-0.9 0.5-0.5 0.7-1.1 0.7-1.9 0-0.4-0.1-0.8-0.2-1.1 -0.1-0.3-0.3-0.6-0.5-0.8 -0.2-0.2-0.5-0.4-0.8-0.6 -0.3-0.2-0.8-0.4-1.4-0.6 -0.6-0.2-1-0.4-1.2-0.7s-0.4-0.6-0.4-1c0-0.4 0.1-0.8 0.4-1 0.2-0.2 0.6-0.4 1-0.4 0.4 0 0.8 0.2 1 0.5 0.3 0.3 0.4 0.8 0.4 1.4h1.6c0-0.9-0.2-1.6-0.6-2.2 -0.4-0.6-1-0.9-1.8-1v-1.5H7.9v1.5C7.1 12.6 6.5 12.9 6 13.4s-0.7 1.1-0.7 1.9c0 1.1 0.5 2 1.6 2.6 0.3 0.2 0.8 0.4 1.3 0.6 0.6 0.2 1 0.4 1.2 0.7s0.4 0.6 0.4 1C9.8 20.5 9.7 20.8 9.4 21.1z"/><path d="M16.3 12.6h-0.2l-3.8 1.5v1.4l2.4-0.8v8.1h1.6V12.6z"/><path d="M19.9 23.8c0.2-0.5 0.4-1 0.4-1.5l0-1.2h-1.5v1.3c0 0.3-0.1 0.6-0.2 1 -0.1 0.3-0.3 0.7-0.5 1.1l0.9 0.5C19.3 24.7 19.6 24.3 19.9 23.8z"/><path d="M27 16.7c0-1.4-0.3-2.5-0.8-3.2s-1.3-1.1-2.4-1.1c-1.1 0-1.9 0.4-2.4 1.1 -0.5 0.7-0.8 1.8-0.8 3.3v1.8c0 1.4 0.3 2.5 0.8 3.2s1.3 1.1 2.4 1.1c1.1 0 1.9-0.4 2.4-1.1 0.5-0.7 0.8-1.8 0.8-3.3V16.7zM25.4 18.9c0 0.9-0.1 1.6-0.4 2 -0.2 0.4-0.6 0.6-1.2 0.6 -0.5 0-0.9-0.2-1.2-0.7 -0.3-0.5-0.4-1.2-0.4-2.1v-2.3c0-0.9 0.1-1.5 0.4-2 0.3-0.4 0.6-0.6 1.2-0.6 0.5 0 0.9 0.2 1.2 0.7 0.3 0.4 0.4 1.1 0.4 2.1V18.9z"/></svg>',
format_conditional:'<svg xmlns="http://www.w3.org/2000/svg" width="52" height="36" viewBox="0 0 52 36"><polygon points="38 5 0 5 0 31 26 31 26 30 1 30 1 6 37 6 37 10 38 10 "/><path d="M9 13H8.6L5 14.4v1.4l2-0.8V23h2V13z"/><path d="M17 22h-4l2.4-2.9c0.6-0.7 1-1.3 1.3-1.8 0.3-0.5 0.4-1.1 0.4-1.5 0-0.8-0.3-1.5-0.8-2 -0.5-0.5-1.2-0.7-2.2-0.7 -0.6 0-1.2 0.1-1.7 0.4s-0.9 0.6-1.1 1C11.1 14.9 11 16 11 16h1.6c0 0 0.1-0.9 0.4-1.3s0.7-0.4 1.2-0.4c0.4 0 0.8 0.2 1 0.5 0.3 0.3 0.4 0.7 0.4 1.1 0 0.4-0.1 0.7-0.3 1.1 -0.2 0.4-0.6 0.8-1.1 1.3L11 21.9V23h6V22z"/><path d="M21 19h0.8c0.6 0 1-0.1 1.3 0.2 0.3 0.3 0.4 0.6 0.4 1.1 0 0.5-0.1 0.8-0.4 1.1 -0.3 0.3-0.6 0.4-1.1 0.4 -0.5 0-0.8-0.3-1.1-0.5C20.6 20.9 20.5 21 20.5 20h-1.5c0 1 0.3 1.6 0.8 2.1s1.3 0.8 2.1 0.8c0.9 0 1.6-0.2 2.2-0.7 0.6-0.5 0.8-1.2 0.8-2.1 0-0.5-0.1-1-0.4-1.4 -0.3-0.4-0.6-0.7-1.1-0.9 0.4-0.2 0.7-0.5 1-0.9 0.3-0.4 0.4-0.8 0.4-1.2 0-0.9-0.3-1.5-0.8-2 -0.5-0.5-1.2-0.7-2.1-0.7 -0.5 0-1 0.1-1.5 0.3 -0.4 0.2-0.8 0.7-1 1.1S19.1 15 19.1 16h1.5c0-1 0.1-0.9 0.4-1.1 0.3-0.3 0.6-0.5 1-0.5 0.5 0 0.8 0.1 1 0.3s0.3 0.6 0.3 1.1c0 0.5-0.1 0.7-0.4 1C22.7 17 22.3 17 21.9 17H21V19z"/><path d="M47.8 7C50.1 7 52 8.9 52 11.2c0 1-0.3 1.8-0.8 2.5l-1.7 1.7L43.6 9.5l1.7-1.7C46 7.3 46.8 7 47.8 7zM30.7 22.4L29 30l7.6-1.7 11.6-11.6 -5.9-5.9L30.7 22.4zM42 17.9l-5.1 5.1 -0.9-0.9 5.1-5L42 17.9z"/></svg>',
options:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M19.8 34.5h-3.5c-0.5 0-0.7 0-2.5-4.5l-1.4-0.6c-3.7 1.7-4.2 1.7-4.3 1.7H7.9l-0.2-0.2 -2.5-2.5c-0.4-0.4-0.5-0.5 1.4-5l-0.6-1.4c-4.5-1.7-4.5-1.8-4.5-2.4v-3.5c0-0.5 0-0.7 4.5-2.5l0.6-1.4C4.5 8.1 4.7 8 5.1 7.6l2.6-2.6 0.3 0c0.4 0 1.9 0.6 4.4 1.6l1.4-0.6c1.7-4.5 1.9-4.5 2.4-4.5h3.5c0.5 0 0.7 0 2.5 4.5l1.4 0.6c3.7-1.7 4.2-1.7 4.3-1.7h0.3l0.2 0.2 2.5 2.5c0.4 0.4 0.5 0.5-1.4 5l0.6 1.4c4.5 1.6 4.5 1.8 4.5 2.4v3.5c0 0.5 0 0.7-4.5 2.5l-0.6 1.4c2 4.4 1.9 4.5 1.5 4.9l-2.7 2.7 -0.3 0c-0.4 0-1.9-0.6-4.4-1.6l-1.4 0.6C20.5 34.5 20.3 34.5 19.8 34.5zM16.7 33.1h2.7c0.3-0.7 1-2.4 1.5-3.9l0.1-0.3 2.5-1 0.3 0.1c1.5 0.6 3.2 1.4 3.9 1.6l1.9-1.9c-0.2-0.7-1-2.4-1.7-3.8l-0.1-0.3 1-2.5 0.3-0.1c1.5-0.6 3.2-1.3 3.9-1.6v-2.7c-0.7-0.3-2.4-1-3.9-1.5l-0.3-0.1 -1-2.5 0.1-0.3c0.6-1.5 1.3-3.2 1.6-3.9l-1.9-1.9c-0.6 0.2-2.4 1-3.8 1.7l-0.3 0.1L21.1 7.1l-0.1-0.3c-0.6-1.5-1.3-3.2-1.7-3.9h-2.7c-0.3 0.7-1 2.4-1.5 3.9l-0.1 0.3 -2.5 1 -0.3-0.1c-1.5-0.6-3.2-1.4-3.9-1.6l-1.9 1.9c0.2 0.7 1 2.4 1.6 3.8l0.1 0.3 -1 2.5 -0.3 0.1c-1.5 0.6-3.2 1.3-3.9 1.6v2.7c0.7 0.3 2.4 1 3.9 1.5l0.3 0.1 1 2.5 -0.1 0.3c-0.6 1.5-1.3 3.2-1.6 3.9l1.9 1.9c0.6-0.2 2.4-1 3.8-1.7l0.3-0.1 2.5 1 0.1 0.3C15.6 30.7 16.4 32.4 16.7 33.1zM18 23.8c-3.2 0-5.8-2.6-5.8-5.8 0-3.2 2.6-5.8 5.8-5.8 3.2 0 5.8 2.6 5.8 5.8C23.8 21.2 21.2 23.8 18 23.8z"/></svg>',
fields:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><style>.a{fill:none;}</style><path d="M2 25.2v-3.4l2.5-0.4c0.2-0.7 0.5-1.4 0.9-2.1l-1.4-2 2.4-2.4 2 1.4c0.7-0.4 1.4-0.7 2.1-0.9L10.8 13h3.4l0.4 2.5c0.7 0.2 1.4 0.5 2.1 0.9l2-1.4 2.4 2.4 -1.4 2c0.4 0.7 0.7 1.4 0.9 2.1L23 21.8v3.4l-2.5 0.4c-0.2 0.7-0.5 1.4-0.9 2.1l1.4 2 -2.4 2.4 -2-1.5c-0.7 0.4-1.4 0.7-2.1 0.9L14.2 34h-3.4l-0.4-2.5c-0.7-0.2-1.4-0.5-2.1-0.9l-2 1.5 -2.4-2.4 1.4-2c-0.4-0.7-0.7-1.4-0.9-2.1L2 25.2zM12.5 27c1.9 0 3.5-1.6 3.5-3.5 0-1.9-1.6-3.5-3.5-3.5S9 21.6 9 23.5C9 25.4 10.6 27 12.5 27z"/><polygon points="24 18.9 24 12 17.3 12 24 18.9 " class="a"/><polygon points="32 27 32 20 25 20 25 24 25 27 32 27 " class="a"/><polygon points="16 4 9 4 9 11 12.5 11 16 11 16 4 " class="a"/><polygon points="17 11 24 11 24 4 17 4 17 11 " class="a"/><polygon points="25 19 32 19 32 12 25 12 25 19 " class="a"/><polygon points="25 11 32 11 32 4 25 4 25 11 " class="a"/><path d="M33 3H8v8.9L11 11H9V4h7v7h-2l3.3 1H24v6.9L25 22v-2h7v7h-7v-2l-1 3h9V3zM24 11h-7V4h7V11L24 11zM32 19h-7v-7h7V19L32 19zM32 11h-7V4h7V11L32 11z"/></svg>',
fullscreen:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><polygon points="31 13 31 5 23 5 23 6 29.3 6 22.3 13 13.7 13 6.7 6 13 6 13 5 5 5 5 13 6 13 6 6.7 13 13.7 13 22.3 6 29.3 6 23 5 23 5 31 13 31 13 30 6.7 30 13.7 23 22.3 23 29.3 30 23 30 23 31 31 31 31 23 30 23 30 29.3 23 22.3 23 13.7 30 6.7 30 13 "/></svg>',minimize:'<svg xmlns="http://www.w3.org/2000/svg" width="36px" height="36px" enable-background="new -0.5 0.5 36 36" version="1.1" viewBox="-0.5 0.5 36 36" xml:space="preserve"><polygon points="10.796 12.499 4.5 12.5 4.5 13.5 12.496 13.5 12.5 5.5 11.5 5.5 11.497 11.799 4.628 4.924 3.925 5.622"/><rect x="12.5" y="13.5" width="10" height="10"/><line x1="13" x2="13" y1="13.7" y2="13.7"/><line x1="13.7" x2="13.7" y1="13" y2="13"/><polygon points="11.492 25.2 11.5 31.497 12.5 31.496 12.491 23.5 4.491 23.506 4.492 24.506 10.791 24.501 3.924 31.378 4.623 32.08"/><polygon points="24.2 24.506 30.497 24.5 30.496 23.5 22.5 23.506 22.502 31.506 23.502 31.505 23.5 25.206 30.373 32.076 31.076 31.378"/><polygon points="23.506 11.8 23.5 5.503 22.5 5.504 22.506 13.5 30.506 13.498 30.505 12.498 24.206 12.5 31.076 5.627 30.378 4.924"/></svg>'};
FlexmonsterToolbar.prototype.connectLocalCSVHandler=function(){this.pivot.connectTo({type:"csv",browseForFile:!0})};FlexmonsterToolbar.prototype.connectLocalJSONHandler=function(){this.pivot.connectTo({type:"json",browseForFile:!0})};FlexmonsterToolbar.prototype.connectRemoteCSV=function(){this.showConnectToRemoteCSVDialog()};FlexmonsterToolbar.prototype.connectRemoteJSON=function(){this.showConnectToRemoteJsonDialog()};FlexmonsterToolbar.prototype.connectOLAP=function(){this.showConnectToOLAPDialog()};
FlexmonsterToolbar.prototype.connectElastic=function(){this.showConnectToElasticDialog()};FlexmonsterToolbar.prototype.openLocalReport=function(){this.pivot.open()};FlexmonsterToolbar.prototype.openRemoteReport=function(){this.showOpenRemoteReportDialog()};FlexmonsterToolbar.prototype.saveHandler=function(){this.pivot.save("report.json","file")};FlexmonsterToolbar.prototype.gridHandler=function(){this.pivot.showGrid()};
FlexmonsterToolbar.prototype.chartsHandler=function(a){var b=((this.pivot.getOptions()||{}).chart||{}).multipleMeasures,c=this.getElementById("fm-tab-charts-multiple");null!=c&&this.disableMultipleValues(a,b,c);this.pivot.showCharts(a,b)};
FlexmonsterToolbar.prototype.chartsMultipleHandler=function(){var a=(this.pivot.getOptions()||{}).chart||{},b=a.type;a=!a.multipleMeasures;var c=this.getElementById("fm-tab-charts-multiple");a?this.addClass(c,"fm-selected"):this.removeClass(c,"fm-selected");"pie"==b||"stacked_column"==b||"column_line"==b?this.removeClass(c,"fm-selected"):this.pivot.showCharts(b,a)};
FlexmonsterToolbar.prototype.checkChartMultipleMeasures=function(){var a=(this.pivot.getOptions()||{}).chart||{},b=a.multipleMeasures,c=this.getElementById("fm-tab-charts-multiple");null!=c&&this.disableMultipleValues(a.type,b,c)};
FlexmonsterToolbar.prototype.disableMultipleValues=function(a,b,c){var e=this.Labels;if("pie"==a||"stacked_column"==a||"column_line"==a){b="";switch(a){case "pie":b=e.charts_pie;break;case "stacked_column":b=e.charts_stacked_column;break;case "column_line":b=e.charts_column_line}c.classList.remove("fm-selected");c.classList.add("fm-ui-disabled");c.setAttribute("aria-checked","false");c.setAttribute("aria-disavled","true");c.setAttribute("title",e.charts_multiple_disabled+b.toLocaleLowerCase()+" "+
e.charts.toLocaleLowerCase())}else b?(c.classList.add("fm-selected"),c.classList.remove("fm-ui-disabled"),c.removeAttribute("title"),c.setAttribute("aria-checked","true")):(c.classList.remove("fm-ui-disabled"),c.removeAttribute("title"),c.setAttribute("aria-checked","false"))};FlexmonsterToolbar.prototype.formatCellsHandler=function(a,b){this.showFormatCellsDialog(a,b)};FlexmonsterToolbar.prototype.conditionalFormattingHandler=function(a){this.showConditionalFormattingDialog(a)};
FlexmonsterToolbar.prototype.optionsHandler=function(){this.showOptionsDialog()};FlexmonsterToolbar.prototype.fieldsHandler=function(){this.pivot.openFieldsList()};FlexmonsterToolbar.prototype.printHandler=function(){this.pivot.print()};FlexmonsterToolbar.prototype.exportHandler=function(a){"pdf"==a?this.showExportPdfDialog():this.pivot.exportTo(a)};FlexmonsterToolbar.prototype.shareReportHandler=function(){this.pivot.shareReport()};FlexmonsterToolbar.prototype.fullscreenHandler=function(){this.toggleFullscreen()};
FlexmonsterToolbar.prototype.defaults={};
FlexmonsterToolbar.prototype.showConnectToRemoteCSVDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.content.classList.add("fm-popup-w500");c.setTitle(b.open_remote_csv);c.setToolbar([{id:"fm-btn-open",label:b.open,handler:function(){0<e.value.length&&a.pivot.connectTo({filename:e.value,type:"csv"})},isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);b=document.createElement("div");var e=document.createElement("input");e.classList.add("fm-inp-file-url");e.type="text";
e.value="https://cdn.flexmonster.com/data/data.csv";e.setAttribute("aria-label","URL");b.appendChild(e);c.setContent(b);c.initialFocusAt=e;this.popupManager.addPopup(c)};
FlexmonsterToolbar.prototype.showConnectToRemoteJsonDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.content.classList.add("fm-popup-w500");c.setTitle(b.open_remote_json);c.setToolbar([{id:"fm-btn-open",label:b.open,handler:function(){0<e.value.length&&a.pivot.connectTo({filename:e.value,type:"json"})},isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);b=document.createElement("div");var e=document.createElement("input");e.classList.add("fm-inp-file-url");e.type="text";
e.value="https://cdn.flexmonster.com/data/data.json";e.setAttribute("aria-label","URL");b.appendChild(e);c.setContent(b);c.initialFocusAt=e;this.popupManager.addPopup(c)};
FlexmonsterToolbar.prototype.showConnectToElasticDialog=function(){var a=this,b=this.Labels,c=function(g,r){g?a.popupManager.removePopup():(r=r.filter(function(u){return 0!=u.indexOf("z_test_")}),h.setDataProvider(r),h.setEnabled(!0))},e=this.popupManager.createPopup();e.content.classList.add("fm-popup-olap");e.content.classList.add("fm-popup-w570");e.setTitle(b.connect_elastic_title);e.setToolbar([{id:"fm-btn-open",label:b.ok,handler:function(){a.pivot.connectTo({type:"elasticsearch",host:f.value,
index:h.getValue()})},disabled:!0,isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);var m=document.createElement("div"),k=document.createElement("div");k.classList.add("fm-inp-group");m.appendChild(k);var d=document.createElement("div");d.classList.add("fm-inp-row");d.classList.add("fm-ir-horizontal");k.appendChild(d);var f=document.createElement("input");f.type="text";f.classList.add("fm-inp");f.classList.add("fm-inp-proxy-url");f.id=this.guid();f.value="https://olap.flexmonster.com:9200";var q=
document.createElement("label");q.setAttribute("for",f.id);this.setText(q,b.host_url);var l=document.createElement("button");l.setAttribute("type","button");l.classList.add("fm-ui-btn");l.classList.add("fm-ui-btn-dark");l.classList.add("fm-btn-connect");this.setText(l,b.connect);l.onclick=function(){0!=f.value.length&&a.pivot.getElasticIndices({host:f.value},c)};d.appendChild(q);d.appendChild(f);d.appendChild(l);d=document.createElement("div");d.classList.add("fm-inp-row");d.classList.add("fm-ir-horizontal");
k.appendChild(d);var h=this.createSelect([],b.select_index);h.onchange=function(){a.setEnabled(a.getElementById("fm-btn-open"),!0)};h.setEnabled(!1);q=document.createElement("label");q.id=this.guid();h.dropdownButton.setAttribute("aria-labelledby",q.id);this.setText(q,b.index_name);d.appendChild(q);d.appendChild(h);e.setContent(m);e.initialFocusAt=f;this.popupManager.addPopup(e)};
FlexmonsterToolbar.prototype.showConnectToOLAPDialog=function(){var a=this,b=this.Labels,c=this,e=function(t){null!=t&&0<t.length?(u.setDataProvider(t),u.setEnabled(!0)):0==t.length&&c.popupManager.removePopup()},m=function(t){null!=t&&0<t.length&&(x.setDataProvider(t),x.setEnabled(!0))},k=function(t){null!=t&&0<t.length&&(y.setDataProvider(t),y.setEnabled(!0))},d=this.popupManager.createPopup();d.content.classList.add("fm-popup-olap");d.content.classList.add("fm-popup-w570");d.setTitle(this.osUtils.isMobile?
b.connect_olap_mobile:b.olap_connection_tool);d.setToolbar([{id:"fm-btn-open",label:b.ok,handler:function(){var t=a.pivot.getXMLAProviderName(h.value,"");a.pivot.connectTo({type:t,proxyUrl:h.value,dataSourceInfo:u.getValue(),catalog:x.getValue(),cube:y.getValue()})},disabled:!0,isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);var f=document.createElement("div"),q=document.createElement("div");q.classList.add("fm-inp-group");f.appendChild(q);var l=document.createElement("div");l.classList.add("fm-inp-row");
l.classList.add("fm-ir-horizontal");q.appendChild(l);var h=document.createElement("input");h.type="text";h.id=this.guid();h.classList.add("fm-inp");h.classList.add("fm-inp-proxy-url");h.value="https://olap.flexmonster.com/olap/msmdpump.dll";var g=document.createElement("label");g.setAttribute("for",h.id);this.setText(g,b.proxy_url);var r=document.createElement("button");r.setAttribute("type","button");r.classList.add("fm-ui-btn");r.classList.add("fm-ui-btn-dark");r.classList.add("fm-btn-connect");
this.setText(r,b.connect);r.onclick=function(){0!=h.value.length&&a.pivot.getXMLADataSources(h.value,e)};l.appendChild(g);l.appendChild(h);l.appendChild(r);l=document.createElement("div");l.classList.add("fm-inp-row");l.classList.add("fm-ir-horizontal");q.appendChild(l);var u=this.createSelect([],b.select_data_source);u.setEnabled(!1);u.onchange=function(){a.pivot.getXMLACatalogs(h.value,u.getValue(),m)};g=document.createElement("label");g.id=this.guid();u.dropdownButton.setAttribute("aria-labelledby",
g.id);this.setText(g,b.data_source_info);l.appendChild(g);l.appendChild(u);l=document.createElement("div");l.classList.add("fm-inp-row");l.classList.add("fm-ir-horizontal");q.appendChild(l);var x=this.createSelect([],b.select_catalog);x.setEnabled(!1);x.onchange=function(){a.pivot.getXMLACubes(h.value,u.getValue(),x.getValue(),k)};g=document.createElement("label");g.id=this.guid();x.dropdownButton.setAttribute("aria-labelledby",g.id);this.setText(g,b.catalog);l.appendChild(g);l.appendChild(x);l=document.createElement("div");
l.classList.add("fm-inp-row");l.classList.add("fm-ir-horizontal");q.appendChild(l);var y=this.createSelect([],b.select_cube);y.setEnabled(!1);y.onchange=function(){a.setEnabled(a.getElementById("fm-btn-open"),!0)};g=document.createElement("label");g.id=this.guid();y.dropdownButton.setAttribute("aria-labelledby",g.id);this.setText(g,b.cube);l.appendChild(g);l.appendChild(y);d.setContent(f);d.initialFocusAt=h;this.popupManager.addPopup(d)};
FlexmonsterToolbar.prototype.showOpenRemoteReportDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.content.classList.add("fm-popup-w500");c.setTitle(b.open_remote_report);c.setToolbar([{id:"fm-btn-open",label:b.open,handler:function(){0<e.value.length&&a.pivot.load(e.value)},isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);b=document.createElement("div");var e=document.createElement("input");e.type="text";e.setAttribute("aria-label","URL");var m=a.pivot.getOptions()||
{};e.value=m.grid&&"flat"==m.grid.type?"https://cdn.flexmonster.com/reports/report-flat.json":"https://cdn.flexmonster.com/reports/report.json";b.appendChild(e);c.setContent(b);c.initialFocusAt=e;this.popupManager.addPopup(c)};
FlexmonsterToolbar.prototype.defaults.numberFormatting={textAligns:[{label:"align_left",value:"left"},{label:"align_right",value:"right"},{label:"align_center",value:"center"}],thousandsSeparators:[{label:"none",value:""},{label:"space",value:" "},{label:",",value:","},{label:".",value:"."}],decimalSeparators:[{label:",",value:","},{label:".",value:"."}],decimalPlaces:[{label:"none",value:-1},{label:"0",value:0},{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",
value:5},{label:"6",value:6},{label:"7",value:7},{label:"8",value:8},{label:"9",value:9}],positiveCurrencyFormats:[{label:"$1",value:"$1"},{label:"1$",value:"1$"}],negativeCurrencyFormats:[{label:"-$1",value:"-$1"},{label:"-1$",value:"-1$"},{label:"$-1",value:"$-1"},{label:"$1-",value:"$1-"},{label:"1-$",value:"1-$"},{label:"1$-",value:"1$-"},{label:"($1)",value:"($1)"},{label:"(1$)",value:"(1$)"}],negativeNumberFormats:[{label:"-1",value:"-1"},{label:"- 1",value:"- 1"},{label:"1-",value:"1-"},{label:"1 -",
value:"1 -"},{label:"(1)",value:"(1)"}],isPercent:[{label:"true_value",value:!0},{label:"false_value",value:!1}]};FlexmonsterToolbar.prototype.ConfirmationPopUp=function(){};
FlexmonsterToolbar.prototype.showFormatCellsDialog=function(a,b){function c(p,B){B=B.replace(/\$/g,"$$$$");return p.map(function(G){return{label:G.label.replace(/\$/g,B),value:G.value}})}function e(p){q.textAlign!=D.getValue()&&(p.textAlign=D.getValue());q.thousandsSeparator!=z.getValue()&&(p.thousandsSeparator=z.getValue());q.decimalSeparator!=K.getValue()&&(p.decimalSeparator=K.getValue());q.decimalPlaces!=F.getValue()&&(p.decimalPlaces=F.getValue());q.currencySymbol!=H.value&&(p.currencySymbol=
H.value);q.positiveCurrencyFormat!=I.getValue()&&""!=I.getValue()&&(p.positiveCurrencyFormat=I.getValue());q.negativeCurrencyFormat!=J.getValue()&&""!=J.getValue()&&(p.negativeCurrencyFormat=J.getValue());q.negativeNumberFormat!=R.getValue()&&""!=R.getValue()&&(p.negativeNumberFormat=R.getValue());q.nullValue!=Q.value&&(p.nullValue=Q.value);q.isPercent!=T.getValue()&&(p.isPercent=T.getValue());return p}function m(){}function k(p){return p.map(function(B){return{label:void 0!==f[B.label]?f[B.label]:
B.label,value:B.value}})}var d=this,f=this.Labels,q=void 0;m.prototype.createPopUp=function(){null==this.dialog&&(this.dialog=d.popupManager.createPopup(this),this.dialog.content.style.zIndex=152)};m.prototype.addPopUp=function(){var p=this.dialog.content;this.modalOverlay=this.createModalOverlay();d.toolbarWrapper.appendChild(p);d.toolbarWrapper.appendChild(this.modalOverlay);d.popupManager.addLayoutClasses(p);d.popupManager.centerPopup(p);var B=this;p.resizeHandler=function(){p&&(B.addLayoutClasses(p),
B.centerPopup(p))};window.addEventListener("resize",p.resizeHandler)};m.prototype.initializePopUp=function(){this.dialog.setTitle(f.confirm_title);x.dialog.setToolbar([{id:"fm-btn-apply",label:f.ok,handler:g,isPositive:!0},{id:"fm-btn-cancel",label:f.cancel,handler:h}],!1,this.removePopUp);var p=document.createElement("div"),B=document.createElement("label");B.innerHTML=f.confirm_message;B.style.fontSize="14px";p.appendChild(B);this.dialog.setContent(p)};m.prototype.removePopUp=function(p){p=p||x.dialog.content;
null!=x.modalOverlay&&(d.toolbarWrapper.removeChild(x.modalOverlay),x.modalOverlay=null);null!=p&&(d.toolbarWrapper.removeChild(p),x.dialog=null,window.removeEventListener("resize",p.resizeHandler))};m.prototype.createModalOverlay=function(){var p=document.createElement("div");p.style.zIndex=151;p.classList.add("fm-modal-overlay");p.classList.add("fm-popup-confirm-modal-overlay");var B=this;p.addEventListener("click",function(G){B.removePopUp(B.dialog.content);h()});return p};var l=void 0,h=function(){A.setValue(l)},
g=function(){var p=null!=A.getValue();D.setEnabled(p);z.setEnabled(p);K.setEnabled(p);F.setEnabled(p);I.setEnabled(p);J.setEnabled(p);R.setEnabled(p);T.setEnabled(p);d.setEnabled(H,p);d.setEnabled(Q,p);q=p=(p=(l=A.getValue())?l[0].split("_@@_@@_@@_",2):null)?d.pivot.getFormat(p[0],p[1]):d.pivot.getFormat(null);if("flat"===d.pivot.getOptions({withDefaults:!0}).grid.type&&l&&0<l.length){var B=d.pivot.getMeasures();for(var G=null,L=0;L<B.length;L++)-1!==l.indexOf(B[L].uniqueName)&&(G=B[L]);B=null!=G&&
"number"!=G.type}else B=!1;B?(E.classList.add("fm-hide"),M.classList.add("fm-hide"),N.classList.add("fm-hide"),U.classList.add("fm-hide"),O.classList.add("fm-hide"),P.classList.add("fm-hide"),V.classList.add("fm-hide"),W.classList.add("fm-hide")):(E.classList.remove("fm-hide"),M.classList.remove("fm-hide"),N.classList.remove("fm-hide"),U.classList.remove("fm-hide"),O.classList.remove("fm-hide"),P.classList.remove("fm-hide"),V.classList.remove("fm-hide"),W.classList.remove("fm-hide"));D.setValue(void 0!==
p.textAlign?p.textAlign:"right");z.setValue(p.thousandsSeparator);K.setValue(p.decimalSeparator);F.setValue(p.decimalPlaces);H.value=p.currencySymbol;I.setDataProvider(c(d.defaults.numberFormatting.positiveCurrencyFormats,p.currencySymbol));I.setValue(p.positiveCurrencyFormat);J.setDataProvider(c(d.defaults.numberFormatting.negativeCurrencyFormats,p.currencySymbol));J.setValue(p.negativeCurrencyFormat);R.setValue(p.negativeNumberFormat);Q.value=p.nullValue;T.setValue(1==p.isPercent?!0:!1);""==p.currencySymbol||
null==p.currencySymbol?(O.classList.add("fm-hide"),P.classList.add("fm-hide"),S.classList.remove("fm-hide")):(O.classList.remove("fm-hide"),P.classList.remove("fm-hide"),S.classList.add("fm-hide"))},r=function(p){var B=p.availableAggregations.indexOf(p.aggregation);B=-1===B||"none"===p.aggregation||p.calculated?null:p.availableAggregationsCaptions[B];return null===B?p.name:p.name+" ("+B+")"},u=this.popupManager.createPopup(),x=new m;u.content.classList.add("fm-popup-format-cells");u.setTitle(this.osUtils.isMobile?
f.format:f.format_cells);u.setToolbar([{id:"fm-btn-apply",label:f.apply,handler:function(){var p=""!=q.name||""==A.getValue()[0]?d.pivot.getReport():{},B=void 0;if(p.hasOwnProperty("formats")&&0<p.formats.length)for(var G=0;G<p.formats.length;G++)if(q.name==p.formats[G].name){B=p.formats[G];break}void 0===B&&(B={});""===A.getValue()[0]&&(B.name="");B.name&&""!==B.name&&delete B.name;e(B);q=void 0;p=A.getValue();for(G=0;G<p.length;G++){var L=p[G].split("_@@_@@_@@_",2);d.pivot.setFormat(B,""==L[0]?
null:L[0],L[1])}d.pivot.refresh()},isPositive:!0},{id:"fm-btn-cancel",label:f.cancel}],!0);var y=document.createElement("div"),t=document.createElement("div");t.classList.add("fm-inp-group");y.appendChild(t);for(var C=[{value:"",label:f.default_value}],n={},w=d.pivot.getMeasures(),v=0;v<w.length;v++)if(!n[w[v].uniqueName]||n[w[v].uniqueName]&&!n[w[v].uniqueName][w[v].aggregation])n[w[v].uniqueName]||(n[w[v].uniqueName]={}),n[w[v].uniqueName][w[v].aggregation]=!0,C.push({value:w[v].uniqueName+"_@@_@@_@@_"+
w[v].aggregation,label:r(w[v])});var A=this.createSelect(C,f.choose_value,!0);A.onchange=function(){var p={};p=e(p);(p.hasOwnProperty("textAlign")||p.hasOwnProperty("thousandsSeparator")||p.hasOwnProperty("decimalSeparator")||p.hasOwnProperty("decimalPlaces")||p.hasOwnProperty("currencySymbol")||p.hasOwnProperty("positiveCurrencyFormat")||p.hasOwnProperty("negativeCurrencyFormat")||p.hasOwnProperty("nullValue")||p.hasOwnProperty("isPercent"))&&l&&0<l.length?(x.createPopUp(),x.initializePopUp(),x.addPopUp()):
g()};a&&b&&A.setValue([a+"_@@_@@_@@_"+b]);a=this.createInputRow(f.choose_value,A);a.querySelector("label").classList.add("fm-uc");t.appendChild(a);t=document.createElement("div");t.classList.add("fm-inp-group");y.appendChild(t);var D=this.createSelect(k(this.defaults.numberFormatting.textAligns));t.appendChild(this.createInputRow(f.text_align,D));var z=this.createSelect(k(this.defaults.numberFormatting.thousandsSeparators)),E=this.createInputRow(f.thousands_separator,z);t.appendChild(E);var K=this.createSelect(k(this.defaults.numberFormatting.decimalSeparators)),
M=this.createInputRow(f.decimal_separator,K);t.appendChild(M);var F=this.createSelect(k(this.defaults.numberFormatting.decimalPlaces)),N=this.createInputRow(f.decimal_places,F);t.appendChild(N);var H=document.createElement("input");H.classList.add("fm-inp");H.type="text";var U=this.createInputRow(f.currency_symbol,H);t.appendChild(U);var I=this.createSelect(),O=this.createInputRow(f.positive_currency_format,I);O.classList.add("fm-popup-format-cells-positive-currency");t.appendChild(O);var J=this.createSelect(),
P=this.createInputRow(f.negative_currency_format,J);P.classList.add("fm-popup-format-cells-negative-currency");t.appendChild(P);var R=this.createSelect(k(this.defaults.numberFormatting.negativeNumberFormats)),S=this.createInputRow(f.negative_number_format,R);S.classList.add("fm-popup-format-cells-negative-number");t.appendChild(S);H.addEventListener("input",function(p){p=H.value;if(p.trim()){O.classList.remove("fm-hide");P.classList.remove("fm-hide");S.classList.add("fm-hide");var B=I.getValue();
I.setDataProvider(c(d.defaults.numberFormatting.positiveCurrencyFormats,p));I.setValue(B);B=J.getValue();J.setDataProvider(c(d.defaults.numberFormatting.negativeCurrencyFormats,p));J.setValue(B)}else O.classList.add("fm-hide"),P.classList.add("fm-hide"),S.classList.remove("fm-hide")});var Q=document.createElement("input");Q.classList.add("fm-inp");Q.type="text";var V=this.createInputRow(f.null_value,Q);t.appendChild(V);var T=this.createSelect(k(this.defaults.numberFormatting.isPercent)),W=this.createInputRow(f.is_percent,
T);t.appendChild(W);u.setContent(y);u.initialFocusAt=A.dropdownButton;this.popupManager.addPopup(u);g()};
FlexmonsterToolbar.prototype.showConditionalFormattingDialog=function(a){var b=this;a=this.Labels;var c=this.pivot.getAllConditions(),e=this.pivot.getReport().dataSource.type,m="microsoft analysis services"===e||"mondrian"===e,k=b.pivot.getAllMeasures(),d=b.pivot.getMeasures(),f={},q=[],l={},h=[],g=function(t){return t.uniqueName+"_@@_@@_@@_"+t.aggregation};for(e=0;e<c.length;e++)f[c[e].measure]=1;for(e=0;e<k.length;e++){var r=m?k[e].uniqueName:g(k[e]);1===f[k[e].uniqueName]&&void 0===l[r]&&(l[r]=
1,q.push(k[e].uniqueName),h.push(k[e]))}for(e=0;e<d.length;e++)if(r=m?d[e].uniqueName:g(d[e]),("number"===d[e].type||"float"===d[e].type||"long"===d[e].type)&&void 0===l[r]||void 0===d[e].type&&void 0===l[r])l[r]=1,h.push(d[e]);l=q=f=d=k=void 0;e=function(){var t={sign:"<",value1:"0",measures:h,format:{fontFamily:"Arial",fontSize:"12px",color:"#000000",backgroundColor:"#FFFFFF"}};c.unshift(t);t=b.createConditionalFormattingItem(t,c,m);x.insertBefore(t,x.firstChild);t.focus();x.scrollTop=0;0<c.length&&
(y.style.display="none");b.popupManager.centerPopup(u.content)};k=function(t){for(var C=[],n=!1,w="",v=0;v<t.length;v++)'"'==t[v]||"'"==t[v]?(n?C.push(w):w="",n=!n):n&&(w+=t[v]);n=t.match(/\W\d+\.*\d*/g);if(n){w=[];for(v=0;v<n.length;v++)isNaN(Number(n[v]))||w.push(n[v]);n=w}t=t.match(/<=|>=|<|>|=|=|!=|isNaN/g);return null==n&&null==C?{}:{value1:null!=n?n[0].replace(/\s/,""):C[0],value2:null!=n&&1<n.length?n[1].replace(/\s/,""):"",sign:t?t.join(""):""}};var u=this.popupManager.createPopup();u.content.classList.add("fm-popup-conditional");
u.setTitle(this.osUtils.isMobile?a.conditional:a.conditional_formatting);u.setToolbar([{id:"fm-btn-apply",label:a.apply,handler:function(){b.pivot.removeAllConditions();for(var t=0;t<c.length;t++){var C=c[t].sign;var n=c[t].value1,w=c[t].value2,v="",A=null==w||0==w.length,D="><"===C,z="isNaN"===C;(null==n||0==n.length)&&!z||D&&A||(D&&!A?v="AND(#value > "+n+", #value < "+w+")":z?v="isNaN(#value)":(isNaN(parseFloat(n))&&(n="'"+n+"'"),v="#value "+C+" "+n));C=v;if(null==C)return;c[t].formula=C;b.pivot.addCondition(c[t])}b.pivot.refresh()},
isPositive:!0},{id:"fm-btn-cancel",label:a.cancel}],!0);d=document.createElement("button");d.setAttribute("type","button");d.classList.add("fm-ui-btn");d.classList.add("fm-ui-btn-light");d.classList.add("fm-button-add");d.onclick=e;d.setAttribute("title",a.tooltips.add_condition);f=document.createElement("span");f.classList.add("fm-icon");f.classList.add("fm-icon-act_add");d.appendChild(f);u.toolbar.insertBefore(d,u.toolbar.firstChild);var x=document.createElement("div");x.classList.add("fm-popup-content");
x.onclick=function(t){t.target.classList.contains("fm-cr-delete")&&(0==c.length&&(y.style.display="block"),b.popupManager.centerPopup(u.content))};var y=document.createElement("div");y.classList.add("fm-popup-placeholder");x.appendChild(y);f=document.createElement("div");f.classList.add("fm-popup-placeholder-text");b.setText(f,a.no_active_conditions);y.appendChild(f);q=document.createElement("button");q.setAttribute("href","javascript:void(0)");q.setAttribute("type","button");q.classList.add("fm-ui-btn");
q.classList.add("fm-ui-btn-light");q.classList.add("fm-button-add-large");q.onclick=e;b.setText(q,a.add_condition_button);f=document.createElement("span");f.classList.add("fm-icon");f.classList.add("fm-icon-act_add");q.insertBefore(f,q.firstChild);y.appendChild(q);for(e=0;e<c.length;e++)a=k(c[e].formula),c[e].value1=a.value1,c[e].value2=a.value2,c[e].sign=a.sign,c[e].measures=h,x.appendChild(b.createConditionalFormattingItem(c[e],c,m));0<c.length&&(y.style.display="none");u.initialFocusAt=d;u.setContent(x);
this.popupManager.addPopup(u)};FlexmonsterToolbar.prototype.defaults.fontSizes="8px 9px 10px 11px 12px 13px 14px".split(" ");FlexmonsterToolbar.prototype.defaults.fonts="Arial;Lucida Sans Unicode;Verdana;Courier New;Palatino Linotype;Tahoma;Impact;Trebuchet MS;Georgia;Times New Roman".split(";");
FlexmonsterToolbar.prototype.defaults.conditions=[{label:"less_than",value:"<"},{label:"less_than_or_equal",value:"<="},{label:"greater_than",value:">"},{label:"greater_than_or_equal",value:">="},{label:"equal_to",value:"="},{label:"not_equal_to",value:"!="},{label:"between",value:"><"},{label:"is_empty",value:"isNaN"}];
FlexmonsterToolbar.prototype.createConditionalFormattingItem=function(a,b,c){function e(z,E,K){var M=m.pivot.getOptions()||{},F=z.filter(function(H){return H.uniqueName===E}).pop();M=M.grid&&"flat"==M.grid.type;var N=[{label:k.all_values,value:""}];E&&""===K&&F&&!F.calculated&&!c&&(F=z.filter(function(H){return H.uniqueName===E}),N.push({label:0<F.length?F[0].name+" ("+k.all+")":E+" ("+k.all+")",value:E}));for(F=0;F<z.length;F++)M&&7==z[F].type||(N.push({label:f(z[F]),value:d(z[F].uniqueName,z[F].aggregation)}),
E=="[Measures].["+z[F].uniqueName+"]"&&(E=z[F].uniqueName));x.setDataProvider(N);x.setValue(E&&void 0!==K?d(E,K):E?E:N[0].value)}var m=this,k=this.Labels,d=function(z,E){return c||"none"===E||""===E?z:z+"_@@_@@_@@_"+E},f=function(z){var E=z.availableAggregations.indexOf(z.aggregation);E=-1===E||"none"===z.aggregation||z.calculated?null:z.availableAggregationsCaptions[E];return null===E||c?z.name:z.name+" ("+E+")"},q=function(){"sign"in a&&"><"===a.sign?(t.classList.remove("fm-width120"),t.classList.add("fm-width50"),
t.style.display="inline-block",n.value="value2"in a?a.value2:"0",n.style.display="inline-block",C.style.display="inline-block"):("sign"in a&&"isNaN"===a.sign?t.style.display="none":(t.classList.add("fm-width120"),t.classList.remove("fm-width50"),t.style.display="inline-block"),n.style.display="none",C.style.display="none")},l=function(){var z=a.format;null!=z&&(D.style.backgroundColor=z.backgroundColor||"#fff",D.style.color=z.color||"#000",D.style.fontFamily=z.fontFamily||"Arial",D.style.fontSize=
z.fontSize||"12px")},h=document.createElement("div");h.classList.add("fm-condition-row");var g=document.createElement("div");h.appendChild(g);var r=document.createElement("div");r.classList.add("fm-cr-inner");g.appendChild(r);var u=document.createElement("div");u.classList.add("fm-cr-lbl");u.classList.add("fm-width50");m.setText(u,k.value+":");r.appendChild(u);var x=this.createSelect();x.classList.add("fm-values");a.measures&&0<a.measures.length?e(a.measures,a.measure,a.aggregation):x.setEnabled(!1);
x.onchange=function(){var z=x.getValue().split("_@@_@@_@@_",2);a.measure=z[0];a.aggregation=z[1]};x.setAttribute("title",k.value);x.dropdownButton.setAttribute("aria-label",k.value);r.appendChild(x);var y=this.createSelect(function(z){return z.map(function(E){return{label:void 0!==k[E.label]?k[E.label]:E.label,value:E.value}})}(this.defaults.conditions));y.classList.add("fm-conditions");y.setValue(a.sign);y.onchange=function(){a.sign=y.getValue();"sign"in a&&"><"===a.sign?a.value2=0:("sign"in a&&
"isNaN"===a.sign&&delete a.value1,delete a.value2);q()};y.setAttribute("title",k.tooltips.condition);y.dropdownButton.setAttribute("aria-label",k.tooltips.condition);r.appendChild(y);var t=document.createElement("input");t.classList.add("fm-number-inp");t.classList.add("fm-width50");t.type="number";t.value="value1"in a?a.value1:"0";t.onchange=function(){a.value1=0==t.value.length?"0":t.value};r.appendChild(t);var C=document.createElement("span");C.classList.add("fm-and-label");C.classList.add("fm-width20");
m.setText(C,k.and_symbole);r.appendChild(C);var n=document.createElement("input");n.classList.add("fm-number-inp");n.classList.add("fm-width50");n.type="number";n.value="value2"in a?a.value2:"0";n.onchange=function(){a.value2=0==n.value.length?"0":n.value};r.appendChild(n);q();r=document.createElement("div");r.classList.add("fm-cr-inner");g.appendChild(r);u=document.createElement("div");u.classList.add("fm-cr-lbl");u.classList.add("fm-width50");m.setText(u,k.format+":");r.appendChild(u);var w=this.createSelect(this.defaults.fonts);
w.classList.add("fm-font-family");w.setValue(a.hasOwnProperty("format")&&a.format.hasOwnProperty("fontFamily")?a.format.fontFamily:this.defaults.fonts[0]);w.onchange=function(){null!=a.format&&(a.format.fontFamily=w.getValue(),l())};w.setAttribute("title",k.tooltips.font);w.dropdownButton.setAttribute("aria-label",k.tooltips.font);r.appendChild(w);var v=this.createSelect(this.defaults.fontSizes);v.classList.add("fm-font-size");v.setValue(a.hasOwnProperty("format")&&a.format.hasOwnProperty("fontSize")?
a.format.fontSize:"12px");v.onchange=function(){null!=a.format&&(a.format.fontSize=v.getValue(),l())};v.setAttribute("title",k.tooltips.font_size);v.dropdownButton.setAttribute("aria-label",k.tooltips.font_size);r.appendChild(v);var A=new FlexmonsterToolbar.ColorPicker(this,h);A.setColor(a.hasOwnProperty("format")&&a.format.hasOwnProperty("backgroundColor")?a.format.backgroundColor:"0xFFFFFF","bg");A.setColor(a.hasOwnProperty("format")&&a.format.hasOwnProperty("color")?a.format.color:"0x000000","font");
A.changeHandler=function(){null!=a.format&&(D.style.color=A.fontColor||"#000",D.style.backgroundColor=A.backgroundColor||"#fff")};A.applyHandler=function(){null!=a.format&&(a.format.color=A.fontColor,a.format.backgroundColor=A.backgroundColor,l())};A.cancelHandler=function(){null!=a.format&&(A.setColor(a.format.hasOwnProperty("backgroundColor")?a.format.backgroundColor:"0xFFFFFF","bg"),A.setColor(a.format.hasOwnProperty("color")?a.format.color:"0x000000","font"));l()};r.appendChild(A.element);var D=
document.createElement("input");D.setAttribute("tabindex","-1");D.classList.add("fm-sample");D.classList.add("fm-inp");D.type="number";D.value="73.93";D.style.pointerEvents="none";r.appendChild(D);l();r=document.createElement("div");r.style.position="relative";g.appendChild(r);g=document.createElement("a");g.href="javascript:void(0);";g.classList.add("fm-cr-delete");g.classList.add("fm-icon");g.classList.add("fm-icon-act_trash");g.onclick=function(){var z=b.indexOf(a);-1<z&&b.splice(z,1);h.parentNode.removeChild(h)};
g.setAttribute("title",k.tooltips.remove_condition);g.setAttribute("role","button");r.appendChild(g);this.makeSelectableByKeyboard(g);return h};
FlexmonsterToolbar.prototype.showOptionsDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.content.classList.add("fm-popup-options");c.setTitle(this.osUtils.isMobile?b.options:b.layout_options);c.setToolbar([{id:"fm-btn-apply",label:b.apply,handler:function(){var r=a.pivot.getOptions(),u=r.viewType,x=r.grid.type;r={grid:{showGrandTotals:f.getValue(),showTotals:g.getValue(),type:h.getValue()}};r.viewType=x!=r.grid.type&&"charts"==u?"grid":u;a.pivot.setOptions(r);a.pivot.refresh()},
isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}],!0);var e=document.createElement("div");e.classList.add("fm-popup-content");var m=document.createElement("div");m.classList.add("fm-ui-row");e.appendChild(m);var k=document.createElement("div");k.classList.add("fm-ui-col-2");m.appendChild(k);var d=document.createElement("div");d.id=this.guid();d.classList.add("fm-title-2");a.setText(d,b.grand_totals);k.appendChild(d);var f=this.createRadioGroup([{label:b.grand_totals_off,value:"off"},{label:b.grand_totals_on,
value:"on"},{label:b.grand_totals_on_rows,value:"rows"},{label:b.grand_totals_on_columns,value:"columns"}]);f.setAttribute("aria-labelledby",d.id);k.appendChild(f);d=document.createElement("div");d.id=this.guid();d.classList.add("fm-title-2");a.setText(d,b.layout);k.appendChild(d);var q=[{label:b.compact_view,value:"compact"},{label:b.classic_view,value:"classic"}],l=a.pivot.getReport({withDefaults:!0,withGlobals:!0});null!=l&&l.hasOwnProperty("dataSource")&&"microsoft analysis services"!=l.dataSource.type&&
"mondrian"!=l.dataSource.type&&"elasticsearch"!=l.dataSource.type&&q.push({label:b.flat_view,value:"flat"});var h=this.createRadioGroup(q);h.setAttribute("aria-labelledby",d.id);k.appendChild(h);k=document.createElement("div");k.classList.add("fm-ui-col-2");m.appendChild(k);d=document.createElement("div");d.id=this.guid();d.classList.add("fm-title-2");a.setText(d,b.subtotals);k.appendChild(d);var g=this.createRadioGroup([{label:b.subtotals_off,value:"off"},{label:b.subtotals_on,value:"on"},{label:b.subtotals_on_rows,
value:"rows"},{label:b.subtotals_on_columns,value:"columns"}]);h.setAttribute("aria-labelledby",d.id);k.appendChild(g);c.setContent(e);c.initialFocusAt=f.querySelector("li");this.popupManager.addPopup(c);l=a.pivot.getOptions()||{};b=l.grid||{};f.setValue(b.showGrandTotals||"on");g.setValue(b.showTotals||"on");h.setValue(b.type||"compact")};
FlexmonsterToolbar.prototype.showExportPdfDialog=function(){var a=this,b=this.Labels,c=this.popupManager.createPopup();c.setTitle(b.choose_page_orientation);c.setToolbar([{id:"fm-btn-apply",label:b.apply,handler:function(){a.pivot.exportTo("pdf",{pageOrientation:m.getValue()})},isPositive:!0},{id:"fm-btn-cancel",label:b.cancel}]);var e=document.createElement("div"),m=this.createRadioGroup([{label:b.portrait,value:"portrait",checked:!0},{label:b.landscape,value:"landscape"}]);e.appendChild(m);c.setContent(e);
c.initialFocusAt=m.querySelector("li");this.popupManager.addPopup(c)};FlexmonsterToolbar.prototype.toggleFullscreen=function(){this.isFullscreen()?this.exitFullscreen():this.enterFullscreen(this.container)};FlexmonsterToolbar.prototype.isFullscreen=function(){return void 0!=document.fullScreenElement||void 0!=document.mozFullScreenElement||void 0!=document.webkitFullscreenElement||void 0!=document.msFullscreenElement};
FlexmonsterToolbar.prototype.enterFullscreen=function(a){if(a.requestFullscreen||a.webkitRequestFullScreen||a.mozRequestFullScreen||a.msRequestFullscreen&&window==top){this.containerStyle={width:this.container.style.width,height:this.container.style.height,position:this.container.style.position,top:this.container.style.top,bottom:this.container.style.bottom,left:this.container.style.left,right:this.container.style.right,marginTop:this.container.style.marginTop,marginLeft:this.container.style.marginLeft,
zIndex:this.container.style.zIndex};this.container.style.width="100%";this.container.style.height="100%";this.container.style.position="fixed";this.container.style.top="0px";this.container.style.left="0px";this.container.style.zIndex=2147483647;this.toolbarWrapper.style.width="100%";var b=null;this.init();if(a.requestFullscreen)a.requestFullscreen(),b=function(){this.isFullscreen()||(this.exitFullscreen(),a.removeEventListener("fullscreenchange",b))}.bind(this),a.addEventListener("fullscreenchange",
b,!1);else if(a.webkitRequestFullScreen){var c=navigator.userAgent;-1<c.indexOf("Safari")&&-1==c.indexOf("Chrome")?a.webkitRequestFullScreen():a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);b=function(){this.isFullscreen()||(this.exitFullscreen(),a.removeEventListener("webkitfullscreenchange",b))}.bind(this);a.addEventListener("webkitfullscreenchange",b,!1)}else a.mozRequestFullScreen?(a.mozRequestFullScreen(),b=function(){this.isFullscreen()||(this.exitFullscreen(),document.removeEventListener("mozfullscreenchange",
b))}.bind(this),document.addEventListener("mozfullscreenchange",b,!1)):a.msRequestFullscreen&&(a.msRequestFullscreen(),b=function(){this.isFullscreen()||(this.exitFullscreen(),document.removeEventListener("MSFullscreenChange",b))}.bind(this),document.addEventListener("MSFullscreenChange",b,!1))}else a.msRequestFullscreen&&window!==top&&alert("Fullscreen mode in IE11 is not supported when Pivot is embedded in IFrame.")};
FlexmonsterToolbar.prototype.exitFullscreen=function(){this.container.style.width=this.containerStyle.width;this.container.style.height=this.containerStyle.height;this.container.style.position=this.containerStyle.position;this.container.style.top=this.containerStyle.top;this.container.style.left=this.containerStyle.left;this.container.style.marginTop=this.containerStyle.marginTop;this.container.style.marginLeft=this.containerStyle.marginLeft;this.container.style.zIndex=this.containerStyle.zIndex;
document.exitFullscreen&&document.fullScreenElement?document.exitFullscreen():document.cancelFullscreen&&document.fullScreenElement?document.cancelFullscreen():document.mozCancelFullScreen&&document.mozFullScreenElement?document.mozCancelFullScreen():document.webkitExitFullScreen&&document.webkitFullscreenElement?document.webkitExitFullScreen():document.webkitCancelFullScreen&&document.webkitFullscreenElement?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msFullscreenElement&&
document.msExitFullscreen();this.init();this.setText(document.querySelector("#fm-tab-fullscreen .fm-tab-label"),this.Labels.fullscreen);document.querySelector("#fm-tab-fullscreen .fm-svg-icon").innerHTML=this.icons.fullscreen};FlexmonsterToolbar.prototype.nullOrUndefined=function(a){return"undefined"===typeof a||null===a};FlexmonsterToolbar.prototype.hasClass=function(a,b){return a.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)"))};
FlexmonsterToolbar.prototype.addClass=function(a,b){this.hasClass(a,b)||(a.className+=" "+b)};FlexmonsterToolbar.prototype.removeClass=function(a,b){this.hasClass(a,b)&&(a.className=a.className.replace(new RegExp("(\\s|^)"+b+"(\\s|$)")," "))};
FlexmonsterToolbar.prototype.setEnabled=function(a,b){b?(this.removeClass(a,"fm-ui-disabled"),a.setAttribute("tabindex","0"),a.removeAttribute("aria-disabled")):(this.addClass(a,"fm-ui-disabled"),a.setAttribute("tabindex","-1"),a.setAttribute("aria-disabled","true"))};FlexmonsterToolbar.prototype.setText=function(a,b){a&&(void 0!==a.innerText&&(a.innerText=b),void 0!==a.textContent&&(a.textContent=b))};
FlexmonsterToolbar.prototype.makeSelectableByKeyboard=function(a){a.setAttribute("tabindex","0");a.addEventListener("keyup",function(b){document.activeElement!==a||13!=b.which&&32!=b.which||(a.click(),(b=a.querySelector("input"))&&b.click())})};
FlexmonsterToolbar.prototype.createRadioGroup=function(a,b){function c(h){if(h=h.target.querySelector("input"))h.checked=!0;e()}function e(){for(var h=m.childNodes,g=0;g<h.length;g++){var r=h.item(g),u=r.querySelector("input");r.setAttribute("aria-checked",u.checked?"true":"false")}}var m=document.createElement("ul");m.setAttribute("role","radiogroup");m.classList.add("fm-radiobtn-list");void 0===b&&(b=this.guid());for(var k=0;k<a.length;k++){var d=a[k],f=document.createElement("li");f.classList.add("fm-radio-wrap");
f.setAttribute("role","radio");f.setAttribute("aria-checked",d.checked?"true":"false");f.addEventListener("click",c);this.makeSelectableByKeyboard(f);var q=document.createElement("input");q.id=this.guid();q.type="radio";q.name=b;q.value=d.value;q.checked=d.checked;f.appendChild(q);var l=document.createElement("label");l.setAttribute("for",q.id);this.setText(l,d.label);f.appendChild(l);m.appendChild(f)}m.getValue=function(){for(var h=m.childNodes,g=0;g<h.length;g++){var r=h.item(g).querySelector("input");
if(r.checked)return r.value}return null};m.setValue=function(h){for(var g=m.childNodes,r=0;r<g.length;r++){var u=g.item(r).querySelector("input");if(u.value==h){u.checked=!0;e();break}}};return m};FlexmonsterToolbar.prototype.guid=function(){return"fm-"+Math.random().toString(36).substr(2,9)};
FlexmonsterToolbar.prototype.createInputRow=function(a,b){var c=document.createElement("div");c.classList.add("fm-inp-row");c.classList.add("fm-ir-horizontal");var e=document.createElement("label");e.id=this.guid();this.setText(e,a);c.appendChild(e);b.dropdownButton?b.dropdownButton.setAttribute("aria-labelledby",e.id):b.setAttribute("aria-labelledby",e.id);c.appendChild(b);return c};
FlexmonsterToolbar.prototype.createSelect=function(a,b,c){function e(n){c?m(n.target):(k(n.target),q());if(x.onchange)x.onchange()}function m(n,w){void 0===w&&(w=!n.classList.contains("fm-selected"));var v=parseInt(n.getAttribute("data-index"));w?(n.classList.add("fm-selected"),n.setAttribute("aria-selected","true"),0>g.indexOf(v)&&g.push(v)):(n.classList.remove("fm-selected"),n.setAttribute("aria-selected","false"),w=g.indexOf(v),0<=w&&g.splice(w,1));v=parseInt(n.getAttribute("data-index"));f(v);
d()}function k(n){for(var w=C.children,v=0;v<w.length;v++)w.item(v).classList.remove("fm-selected"),w.item(v).setAttribute("aria-selected","false");n.classList.add("fm-selected");n.setAttribute("aria-selected","true");w=parseInt(n.getAttribute("data-index"));g=[w];f(w);y.setAttribute("aria-activedescendant",n.id);d()}function d(){var n=b;if(0<g.length)if(c){g.sort();n=[];for(var w=0;w<g.length;w++){var v=h[g[w]];n.push("string"===typeof v?v:v.label)}n=n.join(", ")}else v=h[g[0]],n="string"===typeof v?
v:v.label;y.innerHTML=n}function f(n){r=Math.max(0,Math.min(C.children.length-1,n));n=C.children;for(var w=0;w<n.length;w++)n.item(w).classList.remove("fm-current");C.children.item(r).classList.add("fm-current")}function q(){u&&(u=!1,x.classList.remove("fm-opened"),y.setAttribute("aria-expanded","false"))}function l(){if(0==u){u=!0;x.classList.add("fm-opened");y.setAttribute("aria-expanded","true");var n=y,w=void 0;void 0===w&&(w=n.offsetParent);var v=0,A=0;if(n.offsetParent){v=n.offsetLeft;A=n.offsetTop;
for(var D=n;(D=D.parentNode)&&D!=w;){var z=D.scrollTop?D.scrollTop:0;v-=0;A-=z}for(;(n=n.offsetParent)&&n!=w;)v+=n.offsetLeft,A+=n.offsetTop}t.style.top=A+y.clientHeight+"px";t.style.left=v+"px";t.style.width=y.clientWidth+2+"px";0<g.length&&f(g[0])}}void 0===a&&(a=[]);void 0===b&&(b="");var h=a,g=[],r=-1,u=!1,x=document.createElement("div");x.classList.add("fm-ui");x.classList.add("fm-ui-element");x.classList.add("fm-ui-dropdown");var y=document.createElement("a");y.classList.add("fm-ui");y.classList.add("fm-ui-element");
y.classList.add("fm-ui-toggle-btn");y.classList.add("fm-ui-dropdown-btn");y.setAttribute("tabindex","0");y.setAttribute("role","combobox");y.setAttribute("aria-haspopup","listbox");y.setAttribute("aria-expanded","false");y.addEventListener("click",function(){u?q():l()});y.addEventListener("keydown",function(n){!u||38!=n.keyCode&&40!=n.keyCode||(f(40==n.keyCode?r+1:r-1),n.preventDefault());if(13==n.keyCode||32==n.keyCode){if(u){if(-1!=r&&(c?m(C.children.item(r)):(k(C.children.item(r)),q()),x.onchange))x.onchange()}else l();
n.preventDefault()}u&&27==n.keyCode&&(q(),n.stopImmediatePropagation())});y.addEventListener("blur",q);y.innerHTML=b;x.appendChild(y);x.dropdownButton=y;var t=document.createElement("div");t.classList.add("fm-ui");t.classList.add("fm-ui-element");t.classList.add("fm-ui-dropdown-list");t.addEventListener("mouseleave",q);x.appendChild(t);var C=document.createElement("ul");C.id=this.guid();C.classList.add("fm-ui");C.classList.add("fm-ui-element");C.classList.add("fm-ui-list");C.setAttribute("role","listbox");
t.appendChild(C);y.setAttribute("aria-controls",C.id);x.setDataProvider=function(n){h=n;g.length=0;C.innerHTML="";for(var w=0;w<n.length;w++){var v=n[w],A=document.createElement("li");A.id=C.id+w;A.innerHTML="string"===typeof v?v:v.label;A.classList.add("fm-ui");A.classList.add("fm-ui-element");A.setAttribute("role","option");A.setAttribute("data-index",w);A.setAttribute("aria-selected","false");A.addEventListener("mousedown",e);C.appendChild(A)}C.firstChild&&(y.setAttribute("aria-activedescendant",
C.firstChild.id),f(0))};x.setEnabled=function(n){n?(x.classList.remove("fm-ui-disabled"),x.removeAttribute("aria-disabled"),y.setAttribute("tabindex","0")):(x.classList.add("fm-ui-disabled"),x.setAttribute("aria-disabled","true"),y.setAttribute("tabindex","-1"))};x.getValue=function(){return 0==g.length?null:c?(g.sort(),g.map(function(n){return"string"===typeof h[n]?h[n]:h[n].value})):"string"===typeof h[g[0]]?h[g[0]]:h[g[0]].value};x.setValue=function(n){var w=function(D){for(var z=0;z<h.length;z++)if("string"===
typeof h[z]&&h[z]==D||"object"===typeof h[z]&&h[z].value==D)return z;return-1};if(c)for(var v=0;v<n.length;v++){var A=w(n[v]);0<=A&&m(C.children.item(A),!0)}else A=w(n),0<=A&&k(C.children.item(A))};a&&x.setDataProvider(a);return x};FlexmonsterToolbar.prototype.createDivider=function(a){a=document.createElement("li");a.className="fm-divider";a.setAttribute("aria-hidden","true");return a};
FlexmonsterToolbar.prototype.createTab=function(a,b){b=document.createElement("li");b.id=a.id;var c=document.createElement("a");c.setAttribute("role","menuitem");c.tabIndex=0;a.hasOwnProperty("class_attr")&&c.setAttribute("class",a.class_attr);c.setAttribute("href","javascript:void(0)");if(a.icon){var e=document.createElement("div");e.classList.add("fm-svg-icon");e.setAttribute("aria-hidden","true");e.innerHTML=a.icon;c.appendChild(e)}e=document.createElement("span");e.classList.add("fm-tab-label");
this.setText(e,a.title);c.appendChild(e);var m=this;e="function"==typeof a.handler?a.handler:this[a.handler];var k="function"==typeof a.onShowHandler?a.onShowHandler:this[a.onShowHandler];this.nullOrUndefined(e)||(c.onclick=function(d,f){return function(){d.call(m,f)}}(e,a.args));this.nullOrUndefined(k)||(c.onmouseover=function(d){return function(){d.call(m)}}(k));b.appendChild(c);null==a.menu||this.osUtils.isMobile&&1!=a.collapse||(a=this.createTabMenu(a.menu,b),a.querySelector("ul").id=this.guid(),
c.setAttribute("aria-haspopup","true"),c.setAttribute("aria-controls",a.querySelector("ul").id),b.appendChild(a));return b};
FlexmonsterToolbar.prototype.createSubmenuItem=function(a,b){var c=document.createElement("li");c.setAttribute("role","menuitem");c.id=a.id;a.hasOwnProperty("class_attr")&&c.setAttribute("class",a.class_attr);var e=this,m="function"==typeof a.handler?a.handler:this[a.handler];this.nullOrUndefined(m)||c.addEventListener("mousedown",function(k,d){return function(){k.call(e,d);b.classList.remove("fm-opened")}}(m,a.args));a.icon&&(m=document.createElement("span"),m.classList.add("fm-svg-icon"),m.setAttribute("aria-hidden",
"true"),m.innerHTML=a.icon,c.appendChild(m));"checkbox"===a.type&&(m=document.createElement("span"),m.setAttribute("aria-hidden","true"),m.classList.add("fm-tab-checkbox"),c.appendChild(m),c.setAttribute("role","menuitemcheckbox"));m=document.createElement("span");m.classList.add("fm-tab-label");this.setText(m,a.title);c.appendChild(m);return c};
FlexmonsterToolbar.prototype.createTabMenu=function(a,b){function c(){b.classList.add("fm-opened");b.classList.remove("fm-align-right");d.classList.remove("fm-dropdown-scrollable-left");d.classList.remove("fm-dropdown-scrollable-right");k.style.right=k.style.left=null;var h=k.getBoundingClientRect(),g=l.toolbarWrapper.getBoundingClientRect(),r=l.container.querySelector(".fm-left-scroll-button"),u=l.container.querySelector(".fm-right-scroll-button");h.right>g.right-((r?r.offsetWidth:0)+(u?u.offsetWidth:
0))?(k.style.right=0,l.addClass(b,"fm-align-right"),h=k.getBoundingClientRect(),h.right>g.right-(u?u.offsetWidth:0)&&(h=h.right-u.getBoundingClientRect().left+5,k.style.right=h+"px",l.removeClass(b,"fm-align-right"),d.classList.add("fm-dropdown-scrollable-right"))):h.left<g.left+(r?r.offsetWidth:0)&&(h=(r?r.getBoundingClientRect().right:0)-h.left+5,k.style.left=h+"px",d.classList.add("fm-dropdown-scrollable-left"));m(-2);b.querySelector("a").setAttribute("aria-activedescendant",d.children.item(0).id)}
function e(){b.classList.remove("fm-opened")}function m(h){for(var g=d.children,r=0;r<g.length;r++)g.item(r).classList.remove("fm-current");-1<=h?(q=Math.max(0,Math.min(d.children.length-1,h)),d.children.item(q).classList.add("fm-current")):q=-1}var k=document.createElement("div");k.className="fm-dropdown fm-shadow-container";var d=document.createElement("ul");d.setAttribute("role","menu");d.setAttribute("aria-orientation","vertical");d.className="fm-dropdown-content";for(var f=0;f<a.length;f++)this.isDisabled(a[f])||
d.appendChild(a[f].divider?this.createMenuDivider():this.createSubmenuItem(a[f],b));k.appendChild(d);var q=-1;b.querySelector("a").addEventListener("click",function(){b.classList.contains("fm-opened")?e():c()});b.querySelector("a").addEventListener("keydown",function(h){var g=b.classList.contains("fm-opened");!g||38!=h.keyCode&&40!=h.keyCode||(m(40==h.keyCode?q+1:q-1),h.preventDefault());if(13==h.keyCode||32==h.keyCode){if(g){if(0<=q){var r=a[q],u="function"==typeof r.handler?r.handler:l[r.handler];
l.nullOrUndefined(u)||u.call(l,r.args)}}else c();h.preventDefault()}g&&27==h.keyCode&&(e(),h.stopImmediatePropagation())});b.querySelector("a").addEventListener("blur",e);b.addEventListener("mouseover",c);b.addEventListener("mouseleave",e);var l=this;return k};FlexmonsterToolbar.prototype.createMenuDivider=function(){var a=document.createElement("li");a.className="fm-v-divider";a.setAttribute("aria-hidden","true");return a};
FlexmonsterToolbar.prototype.isDisabled=function(a){return this.nullOrUndefined(a)?!0:!1===a.visible||!1===a.ios&&this.osUtils.isIOS||!1===a.android&&this.osUtils.isAndroid||!1===a.mobile&&this.osUtils.isMobile||!1===a.kibana&&this.envUtils.isKibana};
FlexmonsterToolbar.prototype.filterConnectMenu=function(){var a=[],b=this.Labels;1==this.dataSourceType||2==this.dataSourceType?(a.push({title:b.connect_local_csv,id:"fm-tab-connect-local-csv",handler:this.connectLocalCSVHandler,mobile:!1,icon:this.icons.connect_csv}),a.push({title:b.connect_local_json,id:"fm-tab-connect-local-json",handler:this.connectLocalJSONHandler,mobile:!1,icon:this.icons.connect_json}),a.push({title:this.osUtils.isMobile?b.connect_remote_csv_mobile:b.connect_remote_csv,id:"fm-tab-connect-remote-csv",
handler:this.connectRemoteCSV,icon:this.icons.connect_csv}),a.push({title:this.osUtils.isMobile?b.connect_remote_json_mobile:b.connect_remote_json,id:"fm-tab-connect-remote-json",handler:this.connectRemoteJSON,icon:this.icons.connect_json})):3==this.dataSourceType||4==this.dataSourceType?a.push({title:this.osUtils.isMobile?b.connect_olap_mobile:b.connect_olap,id:"fm-tab-connect-olap",handler:this.connectOLAP,flat:!1,icon:this.icons.connect_olap}):6==this.dataSourceType&&a.push({title:this.osUtils.isMobile?
b.connect_elastic_mobile:b.connect_elastic,id:"fm-tab-connect-elastic",handler:this.connectElastic,flat:!1,icon:this.icons.connect_elastic});0!=this.dataSourceType&&this.dataProvider[0]&&"fm-tab-connect"==this.dataProvider[0].id&&(this.dataProvider[0].menu=a)};FlexmonsterToolbar.prototype.getElementById=function(a,b){var c=function(e,m){for(var k=0;k<e.childNodes.length;k++){var d=e.childNodes[k];if(d.id==m)return d;d=c(d,m);if(null!=d)return d}return null};return c(b||this.toolbarWrapper,a)};
FlexmonsterToolbar.prototype.envUtils={isKibana:null!=document.getElementById("kibana_body")};
FlexmonsterToolbar.prototype.osUtils={isIOS:navigator.userAgent.match(/iPhone|iPad|iPod/i)||navigator.platform.match(/iPhone|iPad|iPod/i)?!0:!1,isMac:/Mac/i.test(navigator.platform),isAndroid:navigator.userAgent.match(/Android/i)?!0:!1,isBlackBerry:/BlackBerry/i.test(navigator.platform),isReactNative:/ReactNative/i.test(navigator.product),isMobile:navigator.userAgent.match(/iPhone|iPad|iPod/i)||navigator.platform.match(/iPhone|iPad|iPod/i)||navigator.userAgent.match(/Android/i)||/BlackBerry/i.test(navigator.platform)||
/ReactNative/i.test(navigator.product)};FlexmonsterToolbar.PopupManager=function(a){this.toolbar=a;this.activePopup=null};FlexmonsterToolbar.PopupManager.prototype.createPopup=function(){return new FlexmonsterToolbar.PopupManager.PopupWindow(this)};
FlexmonsterToolbar.PopupManager.prototype.addPopup=function(a){if(null!=a){this.removePopup();this.modalOverlay=this.createModalOverlay();this.activePopup=a;this.toolbar.toolbarWrapper.appendChild(a.content);this.toolbar.toolbarWrapper.appendChild(this.modalOverlay);this.addLayoutClasses(a.content);this.centerPopup(a.content);var b=this;a.resizeHandler=function(){a&&(b.addLayoutClasses(a.content),b.centerPopup(a.content))};window.addEventListener("resize",a.resizeHandler);a.initialFocusAt&&(a.prevActiveElement=
document.activeElement,a.initialFocusAt.focus({preventScroll:!0}))}};FlexmonsterToolbar.PopupManager.prototype.addLayoutClasses=function(a){a.classList.remove("fm-layout-tablet");a.classList.remove("fm-layout-mobile");a.classList.remove("fm-layout-mobile-small");var b=this.getBoundingRect(this.toolbar.container);768>b.width&&a.classList.add("fm-layout-tablet");580>b.width&&a.classList.add("fm-layout-mobile");460>b.width&&a.classList.add("fm-layout-mobile-small")};
FlexmonsterToolbar.PopupManager.prototype.centerPopup=function(a){if(null!=this.modalOverlay){var b=this.getBoundingRect(this.toolbar.container),c=this.getBoundingRect(a),e=this.getBoundingRect(this.toolbar.toolbarWrapper);a.style.zIndex=parseInt(this.modalOverlay.style.zIndex)+1;this.modalOverlay.style.height=b.height+"px";a.style.left=Math.max(0,(e.width-c.width)/2)+"px";a.style.top=Math.max(e.height,(b.height-e.height-c.height)/2+e.height)+"px"}};
FlexmonsterToolbar.PopupManager.prototype.removePopup=function(a){a=a||this.activePopup;null!=this.modalOverlay&&this.toolbar.toolbarWrapper.contains(this.modalOverlay)&&(this.toolbar.toolbarWrapper.removeChild(this.modalOverlay),this.modalOverlay=null);null!=a&&this.toolbar.toolbarWrapper.contains(a.content)&&(this.toolbar.toolbarWrapper.removeChild(a.content),this.activePopup=null,window.removeEventListener("resize",a.resizeHandler),a.prevActiveElement&&a.prevActiveElement.focus&&a.prevActiveElement.focus({preventScroll:!0}))};
FlexmonsterToolbar.PopupManager.prototype.getBoundingRect=function(a){var b=a.getBoundingClientRect();return{left:b.left,right:b.right,top:b.top,bottom:b.bottom,width:b.width||a.clientWidth,height:b.height||a.clientHeight}};FlexmonsterToolbar.PopupManager.prototype.createModalOverlay=function(){var a=document.createElement("div");a.classList.add("fm-modal-overlay");a.classList.add("fm-popup-modal-overlay");var b=this;a.addEventListener("click",function(c){b.removePopup(b.activePopup)});return a};
FlexmonsterToolbar.PopupManager.PopupWindow=function(a){function b(l){l.relatedTarget&&l.relatedTarget.focus&&l.relatedTarget.focus()}this.popupManager=a;var c=document.createElement("div");c.className="fm-panel-content";var e=document.createElement("div");e.className="fm-title-bar";var m=document.createElement("div");m.className="fm-title-text";m.id="fm-popup-title-text";var k=document.createElement("div");k.className="fm-toolbox";k.style.clear="both";this.content=document.createElement("div");this.content.className=
"fm-popup fm-panel fm-toolbar-ui fm-ui";this.content.setAttribute("role","dialog");this.content.setAttribute("aria-labelledby","fm-popup-title-text");this.content.appendChild(c);this.content.addEventListener("keydown",function(l){27==l.keyCode&&a.removePopup()});c.appendChild(e);e.appendChild(m);var d=this,f=document.createElement("div");f.setAttribute("tabindex","0");f.addEventListener("focus",b);c.insertBefore(f,c.firstChild);var q=document.createElement("div");q.setAttribute("tabindex","0");q.addEventListener("focus",
b);this.setTitle=function(l){FlexmonsterToolbar.prototype.setText(m,l)};this.setContent=function(l){c.insertBefore(l,e.nextSibling);c.appendChild(q)};this.setToolbar=function(l,h,g){k.innerHTML="";for(var r=l.length-1;0<=r;r--){var u=document.createElement("button");u.setAttribute("type","button");u.className="fm-ui-btn"+(l[r].isPositive?" fm-ui-btn-dark":"");l[r].id&&(u.id=l[r].id);FlexmonsterToolbar.prototype.setText(u,l[r].label);u.onclick=function(x){return function(){null!=x&&x.call();void 0!=
g?g.call():d.popupManager.removePopup()}}(l[r].handler,g);FlexmonsterToolbar.prototype.setEnabled(u,!0!==l[r].disabled);l[r].isPositive&&(FlexmonsterToolbar.prototype.osUtils.isMac||FlexmonsterToolbar.prototype.osUtils.isIOS)?k.appendChild(u):k.insertBefore(u,k.firstChild)}h?(k.classList.add("fm-ui-col"),e.appendChild(k),e.classList.add("fm-ui-row"),m.classList.add("fm-ui-col")):c.appendChild(k)};this.toolbar=k;this.titleBar=e;this.title=m;return this};
FlexmonsterToolbar.ColorPicker=function(a,b){function c(g){g.relatedTarget&&g.relatedTarget.focus&&g.relatedTarget.focus()}function e(g){g=g.target.getAttribute("data-c");d.drawShades(d.colors[g]);d.setColor(g,d.currentType,!0)}function m(g){g=g.target.getAttribute("data-c");d.setColor(g,d.currentType,!0)}function k(g){d.currentType=g;f.classList.remove("fm-current");q.classList.remove("fm-current");"bg"==g?(q.classList.add("fm-current"),d.setColor(d.backgroundColor,g,!1)):(f.classList.add("fm-current"),
d.setColor(d.fontColor,g,!1))}var d=this;this.toolbar=a;this.element=document.createElement("div");this.element.classList.add("fm-colorpick-wrap");this.element.classList.add("fm-width40");this.colorPickerButton=document.createElement("div");this.colorPickerButton.classList.add("fm-colorpick-btn");this.colorPickerButton.setAttribute("title",a.Labels.tooltips.cp_text_color);this.element.appendChild(this.colorPickerButton);this.colorPickerIcon=document.createElement("span");this.colorPickerIcon.classList.add("fm-icon");
this.colorPickerIcon.classList.add("fm-ui-icon-vam");this.colorPickerIcon.classList.add("fm-icon-act_font");this.colorPickerButton.appendChild(this.colorPickerIcon);a.makeSelectableByKeyboard(this.colorPickerButton);this.popup=document.createElement("div");this.popup.classList.add("fm-colorpick-popup");this.popup.addEventListener("click",function(g){g.stopPropagation()});this.popup.addEventListener("keydown",function(g){27==g.keyCode&&(d.closePopup(),g.stopImmediatePropagation())});b.appendChild(this.popup);
b=document.createElement("div");b.setAttribute("tabindex","0");b.addEventListener("focus",c);this.popup.insertBefore(b,this.popup.firstChild);b=document.createElement("div");b.classList.add("fm-color-targ-switch");this.popup.appendChild(b);var f=document.createElement("button");f.setAttribute("type","button");f.classList.add("fm-cts-item");f.classList.add("fm-current");f.innerHTML=a.Labels.cp_text;f.onclick=function(){k("font")};b.appendChild(f);var q=document.createElement("button");q.setAttribute("type",
"button");q.classList.add("fm-cts-item");q.innerHTML=a.Labels.cp_highlight;q.onclick=function(){k("bg")};b.appendChild(q);b=document.createElement("div");b.classList.add("fm-cp-sett-row");this.popup.appendChild(b);this.colorInput=document.createElement("input");this.colorInput.type="text";this.colorInput.setAttribute("aria-label",a.Labels.cp_hex_value);this.colorInput.classList.add("fm-inp");this.colorInput.classList.add("fm-cp-2-colors-width");this.colorInput.classList.add("fm-tac");this.colorInput.onchange=
function(){var g=d.colorInput.value;d.isColor(g)&&d.setColor(g,d.currentType,!0)};b.appendChild(this.colorInput);this.colorPreview=document.createElement("div");this.colorPreview.classList.add("fm-cp-curr-color");this.colorPreview.classList.add("fm-cp-2-colors-width");b.appendChild(this.colorPreview);this.mainColors=document.createElement("div");this.mainColors.classList.add("fm-row-10colors");this.popup.appendChild(this.mainColors);for(var l in this.colors){b=document.createElement("div");b.classList.add("fm-r10c-item");
b.style.backgroundColor=l;b.setAttribute("tabindex","0");b.setAttribute("role","checkbox");b.setAttribute("aria-label",this.colorLabels[l]);this.toolbar.makeSelectableByKeyboard(b);b.setAttribute("data-c",l);b.addEventListener("click",e);this.mainColors.appendChild(b);var h=document.createElement("span");h.classList.add("fm-cp-currentmark");h.classList.add("fm-icon");h.classList.add("fm-icon-act_check");b.appendChild(h);h=document.createElement("span");"#FFFFFF"==l?b.classList.add("fm-r10c-white-arrow"):
h.classList.add("fm-r10c-arrow");h.style.borderTopColor=l;b.appendChild(h)}this.shadeColors=document.createElement("div");this.shadeColors.classList.add("fm-row-4colors");this.popup.appendChild(this.shadeColors);for(l=0;8>l;l++)b=document.createElement("div"),b.classList.add("fm-r4c-item"),b.addEventListener("click",m),b.setAttribute("tabindex","0"),b.setAttribute("role","checkbox"),this.toolbar.makeSelectableByKeyboard(b),this.shadeColors.appendChild(b),h=document.createElement("span"),h.classList.add("fm-cp-currentmark"),
h.classList.add("fm-icon"),h.classList.add("fm-icon-act_check"),b.appendChild(h);this.drawShades("#000000");b=document.createElement("div");b.classList.add("fm-cp-btns-row");this.popup.appendChild(b);l=document.createElement("button");l.setAttribute("type","button");l.innerHTML=a.Labels.apply;l.classList.add("fm-ui-btn");l.classList.add("fm-ui-btn-dark");l.addEventListener("click",function(g){d.closePopup();d.applyHandler&&d.applyHandler();d.colorPickerButton.focus()});h=document.createElement("button");
h.setAttribute("type","button");h.innerHTML=a.Labels.cancel;h.classList.add("fm-ui-btn");h.addEventListener("click",function(g){d.closePopup();d.cancelHandler&&d.cancelHandler();d.colorPickerButton.focus()});FlexmonsterToolbar.prototype.osUtils.isMac||FlexmonsterToolbar.prototype.osUtils.isIOS?(b.appendChild(h),b.appendChild(l)):(b.appendChild(l),b.appendChild(h));a=document.createElement("div");a.setAttribute("tabindex","0");a.addEventListener("focus",c);this.popup.appendChild(a);this.currentType=
"font";this.colorPickerButton.addEventListener("click",function(g){g.stopPropagation();d.isOpened()?d.closePopup():d.openPopup()});document.body.addEventListener("click",function(g){d.isOpened()&&d.closePopup()})};
FlexmonsterToolbar.ColorPicker.prototype.colors={"#000000":"#000000 #262626 #424242 #616161 #757575 #9E9E9E #BDBDBD #DEDEDE".split(" "),"#FFFFFF":"#FFFFFF #E6E6E6 #B5B5B5 #8F8F8F #737373 #525252 #404040 #383838".split(" "),"#F44336":"#D32F2F #E53935 #F44336 #EF5350 #E57373 #EF9A9A #FFCDD2 #FFEBEE".split(" "),"#FF9800":"#F57C00 #FB8C00 #FF9800 #FFA726 #FFB74D #FFCC80 #FFE0B2 #FFF3E0".split(" "),"#FFEB3B":"#FBC02D #FDD835 #FFEB3B #FFEE58 #FFF176 #FFF59D #FFF9C4 #FFFDE7".split(" "),"#8BC34A":"#689F38 #7CB342 #8BC34A #9CCC65 #AED581 #C5E1A5 #DCEDC8 #F1F8E9".split(" "),
"#009688":"#00796B #00897B #009688 #26A69A #4DB6AC #80CBC4 #B2DFDB #E0F2F1".split(" "),"#03A9F4":"#0288D1 #039BE5 #03A9F4 #29B6F6 #4FC3F7 #81D4FA #B3E5FC #E1F5FE".split(" "),"#3F51B5":"#303F9F #3949AB #3F51B5 #5C6BC0 #7986CB #9FA8DA #C5CAE9 #E8EAF6".split(" "),"#9C27B0":"#7B1FA2 #8E24AA #9C27B0 #AB47BC #BA68C8 #CE93D8 #E1BEE7 #F3E5F5".split(" ")};
FlexmonsterToolbar.ColorPicker.prototype.colorLabels={"#000000":"black","#FFFFFF":"white","#F44336":"red","#FF9800":"orange","#FFEB3B":"yellow","#8BC34A":"green","#009688":"teal","#03A9F4":"cyan","#3F51B5":"blue","#9C27B0":"purple"};FlexmonsterToolbar.ColorPicker.prototype.isOpened=function(){return this.popup.parentElement&&this.popup.parentElement.classList.contains("fm-popup-opened")};
FlexmonsterToolbar.ColorPicker.prototype.drawShades=function(a){var b=this.colors[a];if(b)for(var c=this.shadeColors.children,e=0;e<c.length;e++){var m=c[e];m.setAttribute("aria-label",this.colorLabels[a]+" "+this.toolbar.Labels.cp_shade+" "+(e+1));m.setAttribute("data-c",b[e]);m.style.backgroundColor=b[e];"#FFFFFF"==b[e]&&m.classList.add("fm-white-shade")}};
FlexmonsterToolbar.ColorPicker.prototype.setColor=function(a,b,c){"string"===typeof a&&0==a.indexOf("0x")&&(a="#"+a.substr(2));"bg"==b?(this.backgroundColor=a,this.colorPickerButton.style.backgroundColor=a):(this.fontColor=a,this.colorPickerIcon.style.color=a);this.colorInput.value=a;this.colorPreview.style.backgroundColor=a;this.drawSelected();c&&this.changeHandler&&this.changeHandler()};
FlexmonsterToolbar.ColorPicker.prototype.drawSelected=function(){var a="bg"==this.currentType?this.backgroundColor:this.fontColor,b=this.findMain(a);this.drawShades(b);for(var c=this.mainColors.children,e=0;e<c.length;e++)c[e].classList.remove("fm-current"),c[e].removeAttribute("aria-checked");if(b=this.mainColors.querySelector("[data-c='"+b+"']"))b.classList.add("fm-current"),b.setAttribute("aria-checked","true");c=this.shadeColors.children;for(e=0;e<c.length;e++)c[e].classList.remove("fm-current"),
c[e].removeAttribute("aria-checked");if(a=this.shadeColors.querySelector("[data-c='"+a+"']"))a.classList.add("fm-current"),a.setAttribute("aria-checked","true")};FlexmonsterToolbar.ColorPicker.prototype.findMain=function(a){"string"===typeof a&&0==a.indexOf("0x")&&(a="#"+a.substr(2));for(var b in this.colors)if(0<=this.colors[b].indexOf(a))return b};FlexmonsterToolbar.ColorPicker.prototype.isColor=function(a){return a.match(/^#?[0-9A-Fa-f]{6}$/g)};
FlexmonsterToolbar.ColorPicker.prototype.closePopup=function(){if(this.popup.parentElement){this.popup.parentElement.classList.remove("fm-popup-opened");this.justClosed=!0;var a=this;setTimeout(function(){a.justClosed=!1},100)}};
FlexmonsterToolbar.ColorPicker.prototype.openPopup=function(){if(!this.justClosed){for(var a=this.toolbar.toolbarWrapper.querySelectorAll(".fm-colorpick-popup"),b=0;b<a.length;b++)a[b].parentElement.classList.remove("fm-popup-opened");this.popup.parentElement&&(this.popup.parentElement.classList.add("fm-popup-opened"),a=this.toolbar.toolbarWrapper.querySelector(".fm-popup-conditional .fm-panel-content"),b=this.getWhere(this.colorPickerButton,a),0>this.getWhere(this.colorPickerButton,document.body).top-
this.popup.clientHeight?(this.popup.classList.remove("fm-arrow-down"),this.popup.classList.add("fm-arrow-up"),this.popup.style.top=this.colorPickerButton.clientHeight+b.top+11+"px",this.popup.style.bottom=""):(this.popup.classList.add("fm-arrow-down"),this.popup.classList.remove("fm-arrow-up"),this.popup.style.bottom=a.clientHeight-b.top+5+"px",this.popup.style.top=""),this.popup.style.left=b.left+"px",this.popup.querySelector("button").focus())}};
FlexmonsterToolbar.ColorPicker.prototype.getWhere=function(a,b){var c=0,e=0;if(a.offsetParent){c=a.offsetLeft;e=a.offsetTop;for(var m=a;(m=m.parentNode)&&m!=b;){var k=m.scrollTop?m.scrollTop:0;c-=0;e-=k}for(;(a=a.offsetParent)&&a!=b;)c+=a.offsetLeft,e+=a.offsetTop}return{top:e+0,left:c+0}};

            if("object"===typeof module&&module.exports){module.exports=Flexmonster;}
        
window["flexmonsterpivottablekey"]="Z7KR-XC9F4F-014N5M-593D52";
// SIG // Begin signature block
// SIG // MIIhaQYJKoZIhvcNAQcCoIIhWjCCIVYCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // OTAZ9mwxWzKSxsCsJyXaphGic+0PYHEONnSyyhmDOg+g
// 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+RZrMYIZFDCCGRACAQEw
// SIG // gY8wezELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFz
// SIG // MRAwDgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wg
// SIG // Q29ycDE3MDUGA1UEAwwuU1NMLmNvbSBFViBDb2RlIFNp
// SIG // Z25pbmcgSW50ZXJtZWRpYXRlIENBIEVDQyBSMgIQITVH
// SIG // a3Kg1pVTo5cnhxh3PjANBglghkgBZQMEAgEFAKB8MBAG
// SIG // CisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJAzEMBgor
// SIG // BgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAMBgorBgEE
// SIG // AYI3AgEVMC8GCSqGSIb3DQEJBDEiBCB2agDO1IhLBP/U
// SIG // Jtup7ZCgMUseLhYHM5MadOoU4iOy4TALBgcqhkjOPQIB
// SIG // BQAESDBGAiEA5muldtHIyMZRj+Amu6hitzR428yb7syT
// SIG // FnrhPiVwYRcCIQC3Fedc7wn9FiGbFOHP8ky4fdTFsq3T
// SIG // JJ5nCFN/CL6ycaGCF5MwghePBgorBgEEAYI3AwMBMYIX
// SIG // fzCCF3sGCSqGSIb3DQEHAqCCF2wwghdoAgEDMQ0wCwYJ
// SIG // YIZIAWUDBAIBMHcGCyqGSIb3DQEJEAEEoGgEZjBkAgEB
// SIG // BgwrBgEEAYKpMAEDBgEwMTANBglghkgBZQMEAgEFAAQg
// SIG // tiaOZ+C/XhEPszI5wCl8wa66kG4WapZVbWV9ZU0gz34C
// SIG // CBxUclI/L6MGGA8yMDIyMDQwNDEyMzkxNlowAwIBAaCC
// SIG // EzwwggXYMIIEwKADAgECAhEA5CcElfaMkdbQ7HtJTqTf
// SIG // HDANBgkqhkiG9w0BAQsFADB+MQswCQYDVQQGEwJQTDEi
// SIG // MCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMgUy5B
// SIG // LjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24g
// SIG // QXV0aG9yaXR5MSIwIAYDVQQDExlDZXJ0dW0gVHJ1c3Rl
// SIG // ZCBOZXR3b3JrIENBMB4XDTE4MDkxMTA5MjY0N1oXDTIz
// SIG // MDkxMTA5MjY0N1owfDELMAkGA1UEBhMCVVMxDjAMBgNV
// SIG // BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYD
// SIG // VQQKDA9TU0wgQ29ycG9yYXRpb24xMTAvBgNVBAMMKFNT
// SIG // TC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0
// SIG // eSBSU0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK
// SIG // AoICAQD5D92jK33L0Cr+7GeFpucuG7p34eP1r6Ts+kpd
// SIG // kcRXR2sYd2t28v2T5D0PwhaeC2bDVpSeF4OFzlbv8hb9
// SIG // AGL1IglU6GUXTkG54E9Gl6obyLhuYl5psV/bKgJ+/GzK
// SIG // 80HY7dDo/D9hSO2wAxQdEA5LGeC7TuyGZf82815nAgud
// SIG // hlVh/Xo47f7iGQC3b6FQYnV0PKD6yCWStG56Isf4HqHj
// SIG // st2RMasrHQT/pUoEN+mFpDMr/eLWVTR8GaRKaMeyqNO3
// SIG // yqGTiOvBl7yM+R3ZIoQkdMcEPWqpKZPM67hb4f5fJao0
// SIG // WMjBI1SdG5gRwzicfj2GbKUPQIZ8AvRcAk8oy65xnw86
// SIG // yDP+ESU16vy6xWA92XwY1bKp03V4A3IiyjrDH+8s5S6p
// SIG // +p4stlFG/a8D1upgaOqFFjZrhekewLPdxCTcgCqBQW2U
// SIG // PsjgyYFBAJ5ev3/FCJiiGCxCQLP5bzgnS06A9D2BR+CI
// SIG // fOoczrV1XFEuHCt/GnIo5wC10XTG1+SfrQeTtlM1Nfw3
// SIG // 5MP2XRa+IXPekgr4oGNqvJaSaj74vGVVm971DYkmBPwl
// SIG // GqYlacvCbcp84llfl6zr7y7IvNcbWTwrzPIZyJNrJ2MZ
// SIG // z/zpJvjKcZt/k/40Z4ROmev8s3gJM3C6ZqZ27Rtz6xql
// SIG // DcQiEyCUVgpOLGxOsf3PnAm6ojPthwIDAQABo4IBUTCC
// SIG // AU0wEgYDVR0TAQH/BAgwBgEB/wIBAjAdBgNVHQ4EFgQU
// SIG // 3QQJB6L1en1SUxKSle44gCUNplkwHwYDVR0jBBgwFoAU
// SIG // CHbNywf/JPbFze27kLzihDdGdfcwDgYDVR0PAQH/BAQD
// SIG // AgEGMDYGA1UdHwQvMC0wK6ApoCeGJWh0dHA6Ly9zc2xj
// SIG // b20uY3JsLmNlcnR1bS5wbC9jdG5jYS5jcmwwcwYIKwYB
// SIG // BQUHAQEEZzBlMCkGCCsGAQUFBzABhh1odHRwOi8vc3Ns
// SIG // Y29tLm9jc3AtY2VydHVtLmNvbTA4BggrBgEFBQcwAoYs
// SIG // aHR0cDovL3NzbGNvbS5yZXBvc2l0b3J5LmNlcnR1bS5w
// SIG // bC9jdG5jYS5jZXIwOgYDVR0gBDMwMTAvBgRVHSAAMCcw
// SIG // JQYIKwYBBQUHAgEWGWh0dHBzOi8vd3d3LmNlcnR1bS5w
// SIG // bC9DUFMwDQYJKoZIhvcNAQELBQADggEBAB+VmiNU7oXC
// SIG // 89RvuekEj0Z/LPcywKdDrAcA7eCpRS39F+HtAEDIr5is
// SIG // 9cAZrRuglzBAbOxb+6OTToyJYht88Dpfp0LPWMp1ZZwi
// SIG // TL92e5iTnBWDM7EO3FE4h3yVnBJplB4AeHR+3MAGd7pw
// SIG // LYcs12id47qFrUnzj2S0FQaDksaXpECTi63xZ5S0uVpn
// SIG // VDyoG9kFz+Sk+YgSAAaIJYXUXu7zk1fWgfgsrvf1UUir
// SIG // tmI6edvsLvI/FFY6yNnLpKJPJajRm6stMCBQBxpv8fGU
// SIG // HTmDY+gf/UnQ6B1GskaCJr2cneGiaEFIUW56/DWW9FTS
// SIG // vCtE5UfXd4KlSqtflzOrJBEwggZcMIIERKADAgECAhBf
// SIG // HLyMXD5fbyT9Ok/kiNYoMA0GCSqGSIb3DQEBCwUAMHMx
// SIG // CzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQMA4G
// SIG // A1UEBwwHSG91c3RvbjERMA8GA1UECgwIU1NMIENvcnAx
// SIG // LzAtBgNVBAMMJlNTTC5jb20gVGltZXN0YW1waW5nIElz
// SIG // c3VpbmcgUlNBIENBIFIxMB4XDTIxMDkxMDE2MzUyMFoX
// SIG // DTMxMDkwODE2MzUxOVowazELMAkGA1UEBhMCVVMxDjAM
// SIG // BgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMREw
// SIG // DwYDVQQKDAhTU0wgQ29ycDEnMCUGA1UEAwweU1NMLmNv
// SIG // bSBUaW1lc3RhbXBpbmcgVW5pdCAyMDIxMIIBojANBgkq
// SIG // hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA3FWxcmsb1oGo
// SIG // QlOzPVuLTbLkZbuahu96+CN2O9u89M3X9Egf/Wynh/kL
// SIG // W3ZxA2KpVkiQxIW6+DEEqQvlJVRZdrGONuLgauQr+h/Q
// SIG // pg7oZB3xnBfNHsAWGDwjOQDnhYvrzj+tsPtC8M3bJll2
// SIG // pbjUYoTWWFAHZ6U0lxT6Tw+zMYYSAIKklpVs4UoRny5L
// SIG // A/AOhVWjFPCOgkLs57hGTPd/dtb4zZTMh7XhA0clk5dt
// SIG // U5YtEoktvQBP4m4L18x9ovxMqY5WMsZcTR3QCDxgdZFC
// SIG // R5FC1l9txmqsx/KqJByxOsKvBC8Jt5W9emxjMQR6+m9W
// SIG // N0Eac5T3G8uwYiL70/WkgkMM9ZD5Cg2fYtKyK4hj4Uvm
// SIG // mn2w+xCbz/zQ4ak2j8St24GkrZaQ9KDqb/0zMUFrtifJ
// SIG // oqtdbxzTHJm05yRdIGYW5d47WX6kY3e3BK50HsvCCxC+
// SIG // Gtz7ZkX0Liqluvc0IB4qqnFzYKYcI54vV1xGI8OC86Ut
// SIG // TTGxYiRkCfeIUg4tAgMBAAGjggFyMIIBbjAfBgNVHSME
// SIG // GDAWgBQMnRAljpqnG5mHQ88IfuG9gZD0zzBzBggrBgEF
// SIG // BQcBAQRnMGUwQQYIKwYBBQUHMAKGNWh0dHA6Ly9jZXJ0
// SIG // LnNzbC5jb20vU1NMLmNvbS10aW1lU3RhbXBpbmctSS1S
// SIG // U0EtUjEuY2VyMCAGCCsGAQUFBzABhhRodHRwOi8vb2Nz
// SIG // cHMuc3NsLmNvbTBHBgNVHSAEQDA+MDwGDCsGAQQBgqkw
// SIG // AQMGATAsMCoGCCsGAQUFBwIBFh5odHRwczovL3d3dy5z
// SIG // c2wuY29tL3JlcG9zaXRvcnkwFgYDVR0lAQH/BAwwCgYI
// SIG // KwYBBQUHAwgwRgYDVR0fBD8wPTA7oDmgN4Y1aHR0cDov
// SIG // L2NybHMuc3NsLmNvbS9TU0wuY29tLXRpbWVTdGFtcGlu
// SIG // Zy1JLVJTQS1SMS5jcmwwHQYDVR0OBBYEFFuhtdaY8ROW
// SIG // HjoOL9NB6XAThF+9MA4GA1UdDwEB/wQEAwIHgDANBgkq
// SIG // hkiG9w0BAQsFAAOCAgEAloanb+bXv7OMdKz7p7xomZrM
// SIG // q9ho9AZqbllCY8CRSburB+rnWnMrhb9aePpSpCnkkmX/
// SIG // NmZAbtVoeWe9n8NOi3NYRt6gxS0BtOiTD8hw43ncch4e
// SIG // rnAGJZcfHCKIJzcusSGdTVETUl6Ba4slCoUpcS4LLv1Y
// SIG // fJTgC1c8WOuoyKPXjl5cTxe2OiavobOcD/euEXUlq2DJ
// SIG // UQuRM0GrTMcE51PRMXNfyWHnzfMZhpqJ3Da3ooPcJYBo
// SIG // ldACXH+ywRfi7jhpBbUxCQ61Fe9GcW4NEN2kEnJelMwy
// SIG // c66TOEMewU5xZtXmJnHZKT931WnntdrlajMwYljkr8Lo
// SIG // 042aF/q6EjORLqSBZWld3Xi1BT99jDVXf7grVvwmCk/7
// SIG // M12pf1kpPNHgid8AzZUzgNBqFporL3qDvo4KtUZ+he/3
// SIG // Fw3Z53eW6FiBBEwoGI+oJLuESKJYk7GwX9yjkd51eK4G
// SIG // ZP7U6KnjPOvevOTmm+pQm9BVUXGgfO2P4VKdASZN6tKa
// SIG // l5g5rt5A6ubxDrhetjpAaMEMqjlfkdBDePayK0J4XzuO
// SIG // Spe7mJZ6OPJ35SJThZxm6zmem/3Re95825lgANhCBdW3
// SIG // boOmW130OM3XbQ4SbqX2G9lo5b8LnP9g2jhtk82dGUp2
// SIG // hl03ghvIcxYXBwrmP8p2Pld5lXc/wTIX6yTk3WcG9LEw
// SIG // ggb8MIIE5KADAgECAhBtUhhwh+gjTYVgANCAj5NWMA0G
// SIG // CSqGSIb3DQEBCwUAMHwxCzAJBgNVBAYTAlVTMQ4wDAYD
// SIG // VQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYG
// SIG // A1UECgwPU1NMIENvcnBvcmF0aW9uMTEwLwYDVQQDDChT
// SIG // U0wuY29tIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3Jp
// SIG // dHkgUlNBMB4XDTE5MTExMzE4NTAwNVoXDTM0MTExMjE4
// SIG // NTAwNVowczELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRl
// SIG // eGFzMRAwDgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhT
// SIG // U0wgQ29ycDEvMC0GA1UEAwwmU1NMLmNvbSBUaW1lc3Rh
// SIG // bXBpbmcgSXNzdWluZyBSU0EgQ0EgUjEwggIiMA0GCSqG
// SIG // SIb3DQEBAQUAA4ICDwAwggIKAoICAQCuURAT0vk8IKAg
// SIG // hd7JUBxkyeH9xek0/wp/MUjoclrFXqhh/fGH91Fc+7fm
// SIG // 0MHCE7A+wmOiqBj9ODrJAYGq3rm33jCnHSsCBNWAQYyo
// SIG // auLq8IjqsS1JlXL29qDNMMdwZ8UNzQS7vWZMDJ40JSGN
// SIG // phMGTIA2qn2bohGtgRc4p1395ESypUOaGvJ3t0FNL3Bu
// SIG // Kmb6YctMcQUF2sqooMzd89h0E6ujdvBDo6ZwNnWoxj7Y
// SIG // mfWjSXg33A5GuY9ym4QZM5OEVgo8ebz/B+gyhyCLNNhh
// SIG // 4Mb/4xvCTCMVmNYrBviGgdPZYrym8Zb84TQCmSuX0JlL
// SIG // La6WK1aO6qlwISbb9bVGh866ekKblC/XRP20gAu1Cjvc
// SIG // YciUgNTrGFg8f8AJgQPOCc1/CCdaJSYwhJpSdheKOnQg
// SIG // ESgNmYZPhFOC6IKaMAUXk5U1tjTcFCgFvvArXtK4azAW
// SIG // UOO1Y3fdldIBL6LjkzLUCYJNkFXqhsBVcPMuB0nUDWvL
// SIG // JfPimstjJ8lF4S6ECxWnlWi7OElVwTnt1GtRqeY9ydvv
// SIG // GLntU+FecK7DbqHDUd366UreMkSBtzevAc9aqoZPnjVM
// SIG // jvFqV1pYOjzmTiVHZtAc80bAfFe5LLfJzPI6DntNyqob
// SIG // pwTevQpHqPDN9qqNO83r3kaw8A9j+HZiSw2AX5cGdQP0
// SIG // kG0vhzfgBwIDAQABo4IBgTCCAX0wEgYDVR0TAQH/BAgw
// SIG // BgEB/wIBADAfBgNVHSMEGDAWgBTdBAkHovV6fVJTEpKV
// SIG // 7jiAJQ2mWTCBgwYIKwYBBQUHAQEEdzB1MFEGCCsGAQUF
// SIG // BzAChkVodHRwOi8vd3d3LnNzbC5jb20vcmVwb3NpdG9y
// SIG // eS9TU0xjb21Sb290Q2VydGlmaWNhdGlvbkF1dGhvcml0
// SIG // eVJTQS5jcnQwIAYIKwYBBQUHMAGGFGh0dHA6Ly9vY3Nw
// SIG // cy5zc2wuY29tMD8GA1UdIAQ4MDYwNAYEVR0gADAsMCoG
// SIG // CCsGAQUFBwIBFh5odHRwczovL3d3dy5zc2wuY29tL3Jl
// SIG // cG9zaXRvcnkwEwYDVR0lBAwwCgYIKwYBBQUHAwgwOwYD
// SIG // VR0fBDQwMjAwoC6gLIYqaHR0cDovL2NybHMuc3NsLmNv
// SIG // bS9zc2wuY29tLXJzYS1Sb290Q0EuY3JsMB0GA1UdDgQW
// SIG // BBQMnRAljpqnG5mHQ88IfuG9gZD0zzAOBgNVHQ8BAf8E
// SIG // BAMCAYYwDQYJKoZIhvcNAQELBQADggIBAJIZdQ2mWkLP
// SIG // GQfZ8vyU+sCb8BXpRJZaL3Ez3VDlE3uZk3cPxPtybVfL
// SIG // uqaci0W6SB22JTMttCiQMnIVOsXWnIuAbD/aFTcUkTLB
// SIG // I3xys+wEajzXaXJYWACDS47BRjDtYlDW14gLJxf8W6DQ
// SIG // oH3jHDGGy8kGJFOlDKG7/YrK7UGfHtBAEDVe6lyZ+FtC
// SIG // srk7dD/IiL/+Q3Q6SFASJLQ2XI89ihFugdYL77CiDNXr
// SIG // I2MFspQGswXEAGpHuaQDTHUp/LdR3TyrIsLlnzoLskUG
// SIG // swF/KF8+kpWUiKJNC4rPWtNrxlbXYRGgdEdx8SMjUTDC
// SIG // lldcrknlFxbqHsVmr9xkT2QtFmG+dEq1v5fsIK0vHaHr
// SIG // WjMMmaJ9i+4qGJSD0stYfQ6v0PddT7EpGxGd867Ada6F
// SIG // ZyHwbuQSadMb0K0P0OC2r7rwqBUe0BaMqTa6LWzWItgB
// SIG // jGcObXeMxmbQqlEz2YtAcErkZvh0WABDDE4U8GyV/32F
// SIG // daAvJgTfe9MiL2nSBioYe/g5mHUSWAay/Ip1RQmQCvmF
// SIG // 9sNfqlhJwkjy/1U1ibUkTIUBX3HgymyQvqQTZLLys6pL
// SIG // 2tCdWcjI9YuLw30rgZm8+K387L7ycUvqrmQ3ZJlujHl3
// SIG // r1hgV76s3WwMPgKk1bAEFMj+rRXimSC+Ev30hXZdqyMd
// SIG // l/il5Ksd0vhGMYIDmTCCA5UCAQEwgYcwczELMAkGA1UE
// SIG // BhMCVVMxDjAMBgNVBAgMBVRleGFzMRAwDgYDVQQHDAdI
// SIG // b3VzdG9uMREwDwYDVQQKDAhTU0wgQ29ycDEvMC0GA1UE
// SIG // AwwmU1NMLmNvbSBUaW1lc3RhbXBpbmcgSXNzdWluZyBS
// SIG // U0EgQ0EgUjECEF8cvIxcPl9vJP06T+SI1igwCwYJYIZI
// SIG // AWUDBAIBoIIBZDAaBgkqhkiG9w0BCQMxDQYLKoZIhvcN
// SIG // AQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTIyMDQwNDEyMzkx
// SIG // NlowKwYJKoZIhvcNAQk0MR4wHDALBglghkgBZQMEAgGh
// SIG // DQYJKoZIhvcNAQELBQAwLwYJKoZIhvcNAQkEMSIEIOkC
// SIG // LM1ktv2F5x++eDtXcNN/GJv9YdQSDYHc395UKD2oMIHJ
// SIG // BgsqhkiG9w0BCRACLzGBuTCBtjCBszCBsAQgoc05HBEP
// SIG // OuoYlS1skEHb5m6BpatckXFttY4rZ+nlf5gwgYswd6R1
// SIG // MHMxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIDAVUZXhhczEQ
// SIG // MA4GA1UEBwwHSG91c3RvbjERMA8GA1UECgwIU1NMIENv
// SIG // cnAxLzAtBgNVBAMMJlNTTC5jb20gVGltZXN0YW1waW5n
// SIG // IElzc3VpbmcgUlNBIENBIFIxAhBfHLyMXD5fbyT9Ok/k
// SIG // iNYoMA0GCSqGSIb3DQEBCwUABIIBgCZNb1u8QNMsuHd9
// SIG // 1JVTTgz9hzCykLwbCbKmHrd2lLH1SMtalDH+0/hnKSa3
// SIG // F5JwDpRSLBTUPHvEjuCx9yndudZq2wQ1+vD6gzCeIrQS
// SIG // EhA9C1lllVkMgV9aKXNGAavilt1pnTEEmOr3YKS6eIZ+
// SIG // SrfZQqWNePbTeT/lt0fnnoUzpxzM8gMqZHACDv1j1fRF
// SIG // xu3hoT0NakKvC97061aSVS83Vdv/Ehm29Gv2t3zd7jv5
// SIG // z3ApzDNwZe3Hb6PvSE+wmcnR5E1UA7aM9M2p8dPqNPwg
// SIG // FHs/BeyCzSJcKHg+1KgXOwn5778AQMt232vHCKGv7sHO
// SIG // 4ggUiL12+E3m8+WrX/yOP+yG3NCoIzmc4nPVnHC/qILK
// SIG // MKiHf+7NcH/UGnNMQ481wqptb8AYtwIzeSAZUyZxvZ4D
// SIG // isweBkroPW6+gRvyWaPLf/t6TiKwPNSF9iBptzoegEvB
// SIG // 8uWcVBEOReS9a/iBtuOIU1Pbx+BMW3u7n7aUcpNIFx1e
// SIG // e0NseUBXVc/bAw==
// SIG // End signature block
