2 lines
2.0 MiB
2 lines
2.0 MiB
function _typeof2(e){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if(function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e,t;function o(){return e.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var o,i=[];for(o=0;o<e.length;++o)i.push(t(e[o],o));return i}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var o in t)p(t,o)&&(e[o]=t[o]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,o,i){return mt(e,t,o,i,!0).utc()}function d(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){if(null==e._isValid){var o=d(e),i=t.call(o.parsedDateParts,(function(e){return null!=e})),n=!isNaN(e._d.getTime())&&o.overflow<0&&!o.empty&&!o.invalidMonth&&!o.invalidWeekday&&!o.weekdayMismatch&&!o.nullInput&&!o.invalidFormat&&!o.userInvalidated&&(!o.meridiem||o.meridiem&&i);if(e._strict&&(n=n&&0===o.charsLeftOver&&0===o.unusedTokens.length&&void 0===o.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function f(e){var t=c(NaN);return null!=e?u(d(t),e):d(t).userInvalidated=!0,t}t=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),o=t.length>>>0,i=0;i<o;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var g=o.momentProperties=[];function y(e,t){var o,i,n;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=d(t)),r(t._locale)||(e._locale=t._locale),0<g.length)for(o=0;o<g.length;o++)r(n=t[i=g[o]])||(e[i]=n);return e}var m=!1;function v(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===m&&(m=!0,o.updateOffset(this),m=!1)}function C(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function _(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,o=0;return 0!==t&&isFinite(t)&&(o=_(t)),o}function b(e,t,o){var i,n=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;i<n;i++)(o&&e[i]!==t[i]||!o&&w(e[i])!==w(t[i]))&&s++;return s+r}function E(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function R(e,t){var i=!0;return u((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),i){for(var n,r=[],s=0;s<arguments.length;s++){if(n="","object"==_typeof2(arguments[s])){for(var a in n+="\n["+s+"] ",arguments[0])n+=a+": "+arguments[0][a]+", ";n=n.slice(0,-2)}else n=arguments[s];r.push(n)}E(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)}),t)}var S,P={};function O(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),P[e]||(E(t),P[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var o,i=u({},e);for(o in t)p(t,o)&&(n(e[o])&&n(t[o])?(i[o]={},u(i[o],e[o]),u(i[o],t[o])):null!=t[o]?i[o]=t[o]:delete i[o]);for(o in e)p(e,o)&&!p(t,o)&&n(e[o])&&(i[o]=u({},i[o]));return i}function D(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,o=[];for(t in e)p(e,t)&&o.push(t);return o};var x={};function F(e,t){var o=e.toLowerCase();x[o]=x[o+"s"]=x[t]=e}function M(e){return"string"==typeof e?x[e]||x[e.toLowerCase()]:void 0}function N(e){var t,o,i={};for(o in e)p(e,o)&&(t=M(o))&&(i[t]=e[o]);return i}var L={};function I(e,t){L[e]=t}function k(e,t,o){var i=""+Math.abs(e),n=t-i.length;return(0<=e?o?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},V={};function j(e,t,o,i){var n=i;"string"==typeof i&&(n=function(){return this[i]()}),e&&(V[e]=n),t&&(V[t[0]]=function(){return k(n.apply(this,arguments),t[1],t[2])}),o&&(V[o]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function B(e,t){return e.isValid()?(t=z(t,e.localeData()),H[t]=H[t]||function(e){var t,o,i,n=e.match(G);for(t=0,o=n.length;t<o;t++)V[n[t]]?n[t]=V[n[t]]:n[t]=(i=n[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,r="";for(i=0;i<o;i++)r+=T(n[i])?n[i].call(t,e):n[i];return r}}(t),H[t](e)):e.localeData().invalidDate()}function z(e,t){var o=5;function i(e){return t.longDateFormat(e)||e}for(W.lastIndex=0;0<=o&&W.test(e);)e=e.replace(W,i),W.lastIndex=0,o-=1;return e}var U=/\d/,Y=/\d\d/,$=/\d{3}/,q=/\d{4}/,K=/[+-]?\d{6}/,X=/\d\d?/,Q=/\d\d\d\d?/,Z=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ne=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ae={};function le(e,t,o){ae[e]=T(t)?t:function(e,i){return e&&o?o:t}}function pe(e,t){return p(ae,e)?ae[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,o,i,n){return t||o||i||n}))))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ce={};function de(e,t){var o,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,o){o[t]=w(e)}),o=0;o<e.length;o++)ce[e[o]]=i}function he(e,t){de(e,(function(e,o,i,n){i._w=i._w||{},t(e,i._w,i,n)}))}function fe(e){return ge(e)?366:365}function ge(e){return e%4==0&&e%100!=0||e%400==0}j("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),j(0,["YY",2],0,(function(){return this.year()%100})),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),F("year","y"),I("year",1),le("Y",ie),le("YY",X,Y),le("YYYY",ee,q),le("YYYYY",te,K),le("YYYYYY",te,K),de(["YYYYY","YYYYYY"],0),de("YYYY",(function(e,t){t[0]=2===e.length?o.parseTwoDigitYear(e):w(e)})),de("YY",(function(e,t){t[0]=o.parseTwoDigitYear(e)})),de("Y",(function(e,t){t[0]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return w(e)+(68<w(e)?1900:2e3)};var ye,me=ve("FullYear",!0);function ve(e,t){return function(i){return null!=i?(_e(this,e,i),o.updateOffset(this,t),this):Ce(this,e)}}function Ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function _e(e,t,o){e.isValid()&&!isNaN(o)&&("FullYear"===t&&ge(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](o,e.month(),we(o,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](o))}function we(e,t){if(isNaN(e)||isNaN(t))return NaN;var o=(t%12+12)%12;return e+=(t-o)/12,1===o?ge(e)?29:28:31-o%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},j("M",["MM",2],"Mo",(function(){return this.month()+1})),j("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),j("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),F("month","M"),I("month",8),le("M",X),le("MM",X,Y),le("MMM",(function(e,t){return t.monthsShortRegex(e)})),le("MMMM",(function(e,t){return t.monthsRegex(e)})),de(["M","MM"],(function(e,t){t[1]=w(e)-1})),de(["MMM","MMMM"],(function(e,t,o,i){var n=o._locale.monthsParse(e,i,o._strict);null!=n?t[1]=n:d(o).invalidMonth=e}));var be=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Se(e,t){var o;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(!s(t=e.localeData().monthsParse(t)))return e;return o=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,o),e}function Pe(e){return null!=e?(Se(this,e),o.updateOffset(this,!0),this):Ce(this,"Month")}var Oe=se,Te=se;function Ae(){function e(e,t){return t.length-e.length}var t,o,i=[],n=[],r=[];for(t=0;t<12;t++)o=c([2e3,t]),i.push(this.monthsShort(o,"")),n.push(this.months(o,"")),r.push(this.months(o,"")),r.push(this.monthsShort(o,""));for(i.sort(e),n.sort(e),r.sort(e),t=0;t<12;t++)i[t]=ue(i[t]),n[t]=ue(n[t]);for(t=0;t<24;t++)r[t]=ue(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function De(e){var t;if(e<100&&0<=e){var o=Array.prototype.slice.call(arguments);o[0]=e+400,t=new Date(Date.UTC.apply(null,o)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function xe(e,t,o){var i=7+t-o;return-(7+De(e,0,i).getUTCDay()-t)%7+i-1}function Fe(e,t,o,i,n){var r,s,a=1+7*(t-1)+(7+o-i)%7+xe(e,i,n);return s=a<=0?fe(r=e-1)+a:a>fe(e)?(r=e+1,a-fe(e)):(r=e,a),{year:r,dayOfYear:s}}function Me(e,t,o){var i,n,r=xe(e.year(),t,o),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?i=s+Ne(n=e.year()-1,t,o):s>Ne(e.year(),t,o)?(i=s-Ne(e.year(),t,o),n=e.year()+1):(n=e.year(),i=s),{week:i,year:n}}function Ne(e,t,o){var i=xe(e,t,o),n=xe(e+1,t,o);return(fe(e)-i+n)/7}function Le(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),I("week",5),I("isoWeek",5),le("w",X),le("ww",X,Y),le("W",X),le("WW",X,Y),he(["w","ww","W","WW"],(function(e,t,o,i){t[i.substr(0,1)]=w(e)})),j("d",0,"do","day"),j("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),j("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),j("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),le("d",X),le("e",X),le("E",X),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),he(["dd","ddd","dddd"],(function(e,t,o,i){var n=o._locale.weekdaysParse(e,i,o._strict);null!=n?t.d=n:d(o).invalidWeekday=e})),he(["d","e","E"],(function(e,t,o,i){t[i]=w(e)}));var Ie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=se,He=se,Ve=se;function je(){function e(e,t){return t.length-e.length}var t,o,i,n,r,s=[],a=[],l=[],p=[];for(t=0;t<7;t++)o=c([2e3,1]).day(t),i=this.weekdaysMin(o,""),n=this.weekdaysShort(o,""),r=this.weekdays(o,""),s.push(i),a.push(n),l.push(r),p.push(i),p.push(n),p.push(r);for(s.sort(e),a.sort(e),l.sort(e),p.sort(e),t=0;t<7;t++)a[t]=ue(a[t]),l[t]=ue(l[t]),p[t]=ue(p[t]);this._weekdaysRegex=new RegExp("^("+p.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Be(){return this.hours()%12||12}function ze(e,t){j(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ue(e,t){return t._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Be),j("k",["kk",2],0,(function(){return this.hours()||24})),j("hmm",0,0,(function(){return""+Be.apply(this)+k(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+Be.apply(this)+k(this.minutes(),2)+k(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+k(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+k(this.minutes(),2)+k(this.seconds(),2)})),ze("a",!0),ze("A",!1),F("hour","h"),I("hour",13),le("a",Ue),le("A",Ue),le("H",X),le("h",X),le("k",X),le("HH",X,Y),le("hh",X,Y),le("kk",X,Y),le("hmm",Q),le("hmmss",Z),le("Hmm",Q),le("Hmmss",Z),de(["H","HH"],3),de(["k","kk"],(function(e,t,o){var i=w(e);t[3]=24===i?0:i})),de(["a","A"],(function(e,t,o){o._isPm=o._locale.isPM(e),o._meridiem=e})),de(["h","hh"],(function(e,t,o){t[3]=w(e),d(o).bigHour=!0})),de("hmm",(function(e,t,o){var i=e.length-2;t[3]=w(e.substr(0,i)),t[4]=w(e.substr(i)),d(o).bigHour=!0})),de("hmmss",(function(e,t,o){var i=e.length-4,n=e.length-2;t[3]=w(e.substr(0,i)),t[4]=w(e.substr(i,2)),t[5]=w(e.substr(n)),d(o).bigHour=!0})),de("Hmm",(function(e,t,o){var i=e.length-2;t[3]=w(e.substr(0,i)),t[4]=w(e.substr(i))})),de("Hmmss",(function(e,t,o){var i=e.length-4,n=e.length-2;t[3]=w(e.substr(0,i)),t[4]=w(e.substr(i,2)),t[5]=w(e.substr(n))}));var Ye,$e=ve("Hours",!0),qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ie,weekdaysMin:Ge,weekdaysShort:ke,meridiemParse:/[ap]\.?m?\.?/i},Ke={},Xe={};function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){var t=null;if(!Ke[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Ye._abbr,require("./locale/"+e),Je(t)}catch(e){}return Ke[e]}function Je(e,t){var o;return e&&((o=r(t)?tt(e):et(e,t))?Ye=o:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ye._abbr}function et(e,t){if(null===t)return delete Ke[e],null;var o,i=qe;if(t.abbr=e,null!=Ke[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Ke[e]._config;else if(null!=t.parentLocale)if(null!=Ke[t.parentLocale])i=Ke[t.parentLocale]._config;else{if(null==(o=Ze(t.parentLocale)))return Xe[t.parentLocale]||(Xe[t.parentLocale]=[]),Xe[t.parentLocale].push({name:e,config:t}),null;i=o._config}return Ke[e]=new D(A(i,t)),Xe[e]&&Xe[e].forEach((function(e){et(e.name,e.config)})),Je(e),Ke[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ye;if(!i(e)){if(t=Ze(e))return t;e=[e]}return function(e){for(var t,o,i,n,r=0;r<e.length;){for(t=(n=Qe(e[r]).split("-")).length,o=(o=Qe(e[r+1]))?o.split("-"):null;0<t;){if(i=Ze(n.slice(0,t).join("-")))return i;if(o&&o.length>=t&&b(n,o,!0)>=t-1)break;t--}r++}return Ye}(e)}function ot(e){var t,o=e._a;return o&&-2===d(e).overflow&&(t=o[1]<0||11<o[1]?1:o[2]<1||o[2]>we(o[0],o[1])?2:o[3]<0||24<o[3]||24===o[3]&&(0!==o[4]||0!==o[5]||0!==o[6])?3:o[4]<0||59<o[4]?4:o[5]<0||59<o[5]?5:o[6]<0||999<o[6]?6:-1,d(e)._overflowDayOfYear&&(t<0||2<t)&&(t=2),d(e)._overflowWeeks&&-1===t&&(t=7),d(e)._overflowWeekday&&-1===t&&(t=8),d(e).overflow=t),e}function it(e,t,o){return null!=e?e:null!=t?t:o}function nt(e){var t,i,n,r,s,a=[];if(!e._d){var l,p;for(l=e,p=new Date(o.now()),n=l._useUTC?[p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()]:[p.getFullYear(),p.getMonth(),p.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,o,i,n,r,s,a,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,s=4,o=it(t.GG,e._a[0],Me(vt(),1,4).year),i=it(t.W,1),((n=it(t.E,1))<1||7<n)&&(l=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var p=Me(vt(),r,s);o=it(t.gg,e._a[0],p.year),i=it(t.w,p.week),null!=t.d?((n=t.d)<0||6<n)&&(l=!0):null!=t.e?(n=t.e+r,(t.e<0||6<t.e)&&(l=!0)):n=r}i<1||i>Ne(o,r,s)?d(e)._overflowWeeks=!0:null!=l?d(e)._overflowWeekday=!0:(a=Fe(o,i,n,r,s),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=it(e._a[0],n[0]),(e._dayOfYear>fe(s)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),i=De(s,0,e._dayOfYear),e._a[1]=i.getUTCMonth(),e._a[2]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=n[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?De:function(e,t,o,i,n,r,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,o,i,n,r,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,o,i,n,r,s),a}).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(d(e).weekdayMismatch=!0)}}var rt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,st=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,at=/Z|[+-]\d\d(?::?\d\d)?/,lt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ut=/^\/?Date\((\-?\d+)/i;function ct(e){var t,o,i,n,r,s,a=e._i,l=rt.exec(a)||st.exec(a);if(l){for(d(e).iso=!0,t=0,o=lt.length;t<o;t++)if(lt[t][1].exec(l[1])){n=lt[t][0],i=!1!==lt[t][2];break}if(null==n)return void(e._isValid=!1);if(l[3]){for(t=0,o=pt.length;t<o;t++)if(pt[t][1].exec(l[3])){r=(l[2]||" ")+pt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(l[4]){if(!at.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=n+(r||"")+(s||""),gt(e)}else e._isValid=!1}var dt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var ht={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ft(e){var t,o,i,n=dt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(n){var r=function(e,t,o,i,n,r){var s=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),Re.indexOf(t),parseInt(o,10),parseInt(i,10),parseInt(n,10)];return r&&s.push(parseInt(r,10)),s}(n[4],n[3],n[2],n[5],n[6],n[7]);if(o=r,i=e,(t=n[1])&&ke.indexOf(t)!==new Date(o[0],o[1],o[2]).getDay()&&(d(i).weekdayMismatch=!0,!(i._isValid=!1)))return;e._a=r,e._tzm=function(e,t,o){if(e)return ht[e];if(t)return 0;var i=parseInt(o,10),n=i%100;return(i-n)/100*60+n}(n[8],n[9],n[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),d(e).rfc2822=!0}else e._isValid=!1}function gt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],d(e).empty=!0;var t,i,n,r,s,a,l,u,c=""+e._i,h=c.length,f=0;for(n=z(e._f,e._locale).match(G)||[],t=0;t<n.length;t++)r=n[t],(i=(c.match(pe(r,e))||[])[0])&&(0<(s=c.substr(0,c.indexOf(i))).length&&d(e).unusedInput.push(s),c=c.slice(c.indexOf(i)+i.length),f+=i.length),V[r]?(i?d(e).empty=!1:d(e).unusedTokens.push(r),a=r,u=e,null!=(l=i)&&p(ce,a)&&ce[a](l,u._a,u,a)):e._strict&&!i&&d(e).unusedTokens.push(r);d(e).charsLeftOver=h-f,0<c.length&&d(e).unusedInput.push(c),e._a[3]<=12&&!0===d(e).bigHour&&0<e._a[3]&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[3]=function(e,t,o){var i;return null==o?t:null!=e.meridiemHour?e.meridiemHour(t,o):(null!=e.isPM&&((i=e.isPM(o))&&t<12&&(t+=12),i||12!==t||(t=0)),t)}(e._locale,e._a[3],e._meridiem),nt(e),ot(e)}else ft(e);else ct(e)}function yt(e){var t,p,c,g,m=e._i,_=e._f;return e._locale=e._locale||tt(e._l),null===m||void 0===_&&""===m?f({nullInput:!0}):("string"==typeof m&&(e._i=m=e._locale.preparse(m)),C(m)?new v(ot(m)):(a(m)?e._d=m:i(_)?function(e){var t,o,i,n,r;if(0===e._f.length)return d(e).invalidFormat=!0,e._d=new Date(NaN);for(n=0;n<e._f.length;n++)r=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],gt(t),h(t)&&(r+=d(t).charsLeftOver,r+=10*d(t).unusedTokens.length,d(t).score=r,(null==i||r<i)&&(i=r,o=t));u(e,o||t)}(e):_?gt(e):r(p=(t=e)._i)?t._d=new Date(o.now()):a(p)?t._d=new Date(p.valueOf()):"string"==typeof p?(c=t,null===(g=ut.exec(c._i))?(ct(c),!1===c._isValid&&(delete c._isValid,ft(c),!1===c._isValid&&(delete c._isValid,o.createFromInputFallback(c)))):c._d=new Date(+g[1])):i(p)?(t._a=l(p.slice(0),(function(e){return parseInt(e,10)})),nt(t)):n(p)?function(e){if(!e._d){var t=N(e._i);e._a=l([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),nt(e)}}(t):s(p)?t._d=new Date(p):o.createFromInputFallback(t),h(e)||(e._d=null),e))}function mt(e,t,o,r,s){var a,l={};return!0!==o&&!1!==o||(r=o,o=void 0),(n(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=o,l._i=e,l._f=t,l._strict=r,(a=new v(ot(yt(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function vt(e,t,o,i){return mt(e,t,o,i,!1)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Ct=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()})),_t=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=vt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:f()}));function wt(e,t){var o,n;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return vt();for(o=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](o)||(o=t[n]);return o}var bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Et(e){var t=N(e),o=t.year||0,i=t.quarter||0,n=t.month||0,r=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,p=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===ye.call(bt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var o=!1,i=0;i<bt.length;++i)if(e[bt[i]]){if(o)return!1;parseFloat(e[bt[i]])!==w(e[bt[i]])&&(o=!0)}return!0}(t),this._milliseconds=+u+1e3*p+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+n+3*i+12*o,this._data={},this._locale=tt(),this._bubble()}function Rt(e){return e instanceof Et}function St(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){j(e,0,0,(function(){var e=this.utcOffset(),o="+";return e<0&&(e=-e,o="-"),o+k(~~(e/60),2)+t+k(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),le("Z",re),le("ZZ",re),de(["Z","ZZ"],(function(e,t,o){o._useUTC=!0,o._tzm=Tt(re,e)}));var Ot=/([\+\-]|\d\d)/gi;function Tt(e,t){var o=(t||"").match(e);if(null===o)return null;var i=((o[o.length-1]||[])+"").match(Ot)||["-",0,0],n=60*i[1]+w(i[2]);return 0===n?0:"+"===i[0]?n:-n}function At(e,t){var i,n;return t._isUTC?(i=t.clone(),n=(C(e)||a(e)?e.valueOf():vt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),o.updateOffset(i,!1),i):vt(e).local()}function Dt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function xt(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Ft=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Mt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nt(e,t){var o,i,n,r=e,a=null;return Rt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=Ft.exec(e))?(o="-"===a[1]?-1:1,r={y:0,d:w(a[2])*o,h:w(a[3])*o,m:w(a[4])*o,s:w(a[5])*o,ms:w(St(1e3*a[6]))*o}):(a=Mt.exec(e))?(o="-"===a[1]?-1:1,r={y:Lt(a[2],o),M:Lt(a[3],o),w:Lt(a[4],o),d:Lt(a[5],o),h:Lt(a[6],o),m:Lt(a[7],o),s:Lt(a[8],o)}):null==r?r={}:"object"==_typeof2(r)&&("from"in r||"to"in r)&&(n=function(e,t){var o;return e.isValid()&&t.isValid()?(t=At(t,e),e.isBefore(t)?o=It(e,t):((o=It(t,e)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}(vt(r.from),vt(r.to)),(r={}).ms=n.milliseconds,r.M=n.months),i=new Et(r),Rt(e)&&p(e,"_locale")&&(i._locale=e._locale),i}function Lt(e,t){var o=e&&parseFloat(e.replace(",","."));return(isNaN(o)?0:o)*t}function It(e,t){var o={};return o.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(o.months,"M").isAfter(t)&&--o.months,o.milliseconds=+t-+e.clone().add(o.months,"M"),o}function kt(e,t){return function(o,i){var n;return null===i||isNaN(+i)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=o,o=i,i=n),Gt(this,Nt(o="string"==typeof o?+o:o,i),e),this}}function Gt(e,t,i,n){var r=t._milliseconds,s=St(t._days),a=St(t._months);e.isValid()&&(n=null==n||n,a&&Se(e,Ce(e,"Month")+a*i),s&&_e(e,"Date",Ce(e,"Date")+s*i),r&&e._d.setTime(e._d.valueOf()+r*i),n&&o.updateOffset(e,s||a))}Nt.fn=Et.prototype,Nt.invalid=function(){return Nt(NaN)};var Wt=kt(1,"add"),Ht=kt(-1,"subtract");function Vt(e,t){var o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return-(o+(t-i<0?(t-i)/(i-e.clone().add(o-1,"months")):(t-i)/(e.clone().add(o+1,"months")-i)))||0}function jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=tt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Bt=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function zt(){return this._locale}var Ut=126227808e5;function Yt(e,t){return(e%t+t)%t}function $t(e,t,o){return e<100&&0<=e?new Date(e+400,t,o)-Ut:new Date(e,t,o).valueOf()}function qt(e,t,o){return e<100&&0<=e?Date.UTC(e+400,t,o)-Ut:Date.UTC(e,t,o)}function Kt(e,t){j(0,[e,e.length],0,t)}function Xt(e,t,o,i,n){var r;return null==e?Me(this,i,n).year:((r=Ne(e,i,n))<t&&(t=r),function(e,t,o,i,n){var r=Fe(e,t,o,i,n),s=De(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,o,i,n))}j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Kt("gggg","weekYear"),Kt("ggggg","weekYear"),Kt("GGGG","isoWeekYear"),Kt("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),le("G",ie),le("g",ie),le("GG",X,Y),le("gg",X,Y),le("GGGG",ee,q),le("gggg",ee,q),le("GGGGG",te,K),le("ggggg",te,K),he(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,o,i){t[i.substr(0,2)]=w(e)})),he(["gg","GG"],(function(e,t,i,n){t[n]=o.parseTwoDigitYear(e)})),j("Q",0,"Qo","quarter"),F("quarter","Q"),I("quarter",7),le("Q",U),de("Q",(function(e,t){t[1]=3*(w(e)-1)})),j("D",["DD",2],"Do","date"),F("date","D"),I("date",9),le("D",X),le("DD",X,Y),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),de(["D","DD"],2),de("Do",(function(e,t){t[2]=w(e.match(X)[0])}));var Qt=ve("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),I("dayOfYear",4),le("DDD",J),le("DDDD",$),de(["DDD","DDDD"],(function(e,t,o){o._dayOfYear=w(e)})),j("m",["mm",2],0,"minute"),F("minute","m"),I("minute",14),le("m",X),le("mm",X,Y),de(["m","mm"],4);var Zt=ve("Minutes",!1);j("s",["ss",2],0,"second"),F("second","s"),I("second",15),le("s",X),le("ss",X,Y),de(["s","ss"],5);var Jt,eo=ve("Seconds",!1);for(j("S",0,0,(function(){return~~(this.millisecond()/100)})),j(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),j(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),j(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),j(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),j(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),j(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),I("millisecond",16),le("S",J,U),le("SS",J,Y),le("SSS",J,$),Jt="SSSS";Jt.length<=9;Jt+="S")le(Jt,oe);function to(e,t){t[6]=w(1e3*("0."+e))}for(Jt="S";Jt.length<=9;Jt+="S")de(Jt,to);var oo=ve("Milliseconds",!1);j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var io=v.prototype;function no(e){return e}io.add=Wt,io.calendar=function(e,t){var i=e||vt(),n=At(i,this).startOf("day"),r=o.calendarFormat(this,n)||"sameElse",s=t&&(T(t[r])?t[r].call(this,i):t[r]);return this.format(s||this.localeData().calendar(r,this,vt(i)))},io.clone=function(){return new v(this)},io.diff=function(e,t,o){var i,n,r;if(!this.isValid())return NaN;if(!(i=At(e,this)).isValid())return NaN;switch(n=6e4*(i.utcOffset()-this.utcOffset()),t=M(t)){case"year":r=Vt(this,i)/12;break;case"month":r=Vt(this,i);break;case"quarter":r=Vt(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-n)/864e5;break;case"week":r=(this-i-n)/6048e5;break;default:r=this-i}return o?r:_(r)},io.endOf=function(e){var t;if(void 0===(e=M(e))||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?qt:$t;switch(e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Yt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Yt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Yt(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},io.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)},io.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||vt(e).isValid())?Nt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},io.fromNow=function(e){return this.from(vt(),e)},io.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||vt(e).isValid())?Nt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},io.toNow=function(e){return this.to(vt(),e)},io.get=function(e){return T(this[e=M(e)])?this[e]():this},io.invalidAt=function(){return d(this).overflow},io.isAfter=function(e,t){var o=C(e)?e:vt(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=M(t)||"millisecond")?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(t).valueOf())},io.isBefore=function(e,t){var o=C(e)?e:vt(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=M(t)||"millisecond")?this.valueOf()<o.valueOf():this.clone().endOf(t).valueOf()<o.valueOf())},io.isBetween=function(e,t,o,i){var n=C(e)?e:vt(e),r=C(t)?t:vt(t);return!!(this.isValid()&&n.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(n,o):!this.isBefore(n,o))&&(")"===i[1]?this.isBefore(r,o):!this.isAfter(r,o))},io.isSame=function(e,t){var o,i=C(e)?e:vt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=M(t)||"millisecond")?this.valueOf()===i.valueOf():(o=i.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf()))},io.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},io.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},io.isValid=function(){return h(this)},io.lang=Bt,io.locale=jt,io.localeData=zt,io.max=_t,io.min=Ct,io.parsingFlags=function(){return u({},d(this))},io.set=function(e,t){if("object"==_typeof2(e))for(var o=function(e){var t=[];for(var o in e)t.push({unit:o,priority:L[o]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=N(e)),i=0;i<o.length;i++)this[o[i].unit](e[o[i].unit]);else if(T(this[e=M(e)]))return this[e](t);return this},io.startOf=function(e){var t;if(void 0===(e=M(e))||"millisecond"===e||!this.isValid())return this;var i=this._isUTC?qt:$t;switch(e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Yt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Yt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Yt(t,1e3)}return this._d.setTime(t),o.updateOffset(this,!0),this},io.subtract=Ht,io.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},io.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},io.toDate=function(){return new Date(this.valueOf())},io.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,o=t?this.clone().utc():this;return o.year()<0||9999<o.year()?B(o,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(o,"Z")):B(o,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},io.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var o="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=t+'[")]';return this.format(o+i+"-MM-DD[T]HH:mm:ss.SSS"+n)},io.toJSON=function(){return this.isValid()?this.toISOString():null},io.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},io.unix=function(){return Math.floor(this.valueOf()/1e3)},io.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},io.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},io.year=me,io.isLeapYear=function(){return ge(this.year())},io.weekYear=function(e){return Xt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},io.isoWeekYear=function(e){return Xt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},io.quarter=io.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},io.month=Pe,io.daysInMonth=function(){return we(this.year(),this.month())},io.week=io.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},io.isoWeek=io.isoWeeks=function(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},io.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},io.isoWeeksInYear=function(){return Ne(this.year(),1,4)},io.date=Qt,io.day=io.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,o,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,o=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=o.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-i,"d")):i},io.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},io.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,o,i=(t=e,o=this.localeData(),"string"==typeof t?o.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?i:i-7)},io.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},io.hour=io.hours=$e,io.minute=io.minutes=Zt,io.second=io.seconds=eo,io.millisecond=io.milliseconds=oo,io.utcOffset=function(e,t,i){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Dt(this);if("string"==typeof e){if(null===(e=Tt(re,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(n=Dt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!t||this._changeInProgress?Gt(this,Nt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this},io.utc=function(e){return this.utcOffset(0,e)},io.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dt(this),"m")),this},io.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Tt(ne,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},io.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?vt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},io.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},io.isLocal=function(){return!!this.isValid()&&!this._isUTC},io.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},io.isUtc=xt,io.isUTC=xt,io.zoneAbbr=function(){return this._isUTC?"UTC":""},io.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},io.dates=R("dates accessor is deprecated. Use date instead.",Qt),io.months=R("months accessor is deprecated. Use month instead",Pe),io.years=R("years accessor is deprecated. Use year instead",me),io.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),io.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=yt(e))._a){var t=e._isUTC?c(e._a):vt(e._a);this._isDSTShifted=this.isValid()&&0<b(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}));var ro=D.prototype;function so(e,t,o,i){var n=tt(),r=c().set(i,t);return n[o](r,e)}function ao(e,t,o){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return so(e,t,o,"month");var i,n=[];for(i=0;i<12;i++)n[i]=so(e,i,o,"month");return n}function lo(e,t,o,i){"boolean"==typeof e?s(t)&&(o=t,t=void 0):(t=e,e=!1,s(o=t)&&(o=t,t=void 0)),t=t||"";var n,r=tt(),a=e?r._week.dow:0;if(null!=o)return so(t,(o+a)%7,i,"day");var l=[];for(n=0;n<7;n++)l[n]=so(t,(n+a)%7,i,"day");return l}ro.calendar=function(e,t,o){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,o):i},ro.longDateFormat=function(e){var t=this._longDateFormat[e],o=this._longDateFormat[e.toUpperCase()];return t||!o?t:(this._longDateFormat[e]=o.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},ro.invalidDate=function(){return this._invalidDate},ro.ordinal=function(e){return this._ordinal.replace("%d",e)},ro.preparse=no,ro.postformat=no,ro.relativeTime=function(e,t,o,i){var n=this._relativeTime[o];return T(n)?n(e,t,o,i):n.replace(/%d/i,e)},ro.pastFuture=function(e,t){var o=this._relativeTime[0<e?"future":"past"];return T(o)?o(t):o.replace(/%s/i,t)},ro.set=function(e){var t,o;for(o in e)T(t=e[o])?this[o]=t:this["_"+o]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ro.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||be).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},ro.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[be.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ro.monthsParse=function(e,t,o){var i,n,r;if(this._monthsParseExact)return function(e,t,o){var i,n,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return o?"MMM"===t?-1!==(n=ye.call(this._shortMonthsParse,s))?n:null:-1!==(n=ye.call(this._longMonthsParse,s))?n:null:"MMM"===t?-1!==(n=ye.call(this._shortMonthsParse,s))||-1!==(n=ye.call(this._longMonthsParse,s))?n:null:-1!==(n=ye.call(this._longMonthsParse,s))||-1!==(n=ye.call(this._shortMonthsParse,s))?n:null}.call(this,e,t,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=c([2e3,i]),o&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),o||this._monthsParse[i]||(r="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),o&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(o&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!o&&this._monthsParse[i].test(e))return i}},ro.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Te),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ro.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ro.week=function(e){return Me(e,this._week.dow,this._week.doy).week},ro.firstDayOfYear=function(){return this._week.doy},ro.firstDayOfWeek=function(){return this._week.dow},ro.weekdays=function(e,t){var o=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Le(o,this._week.dow):e?o[e.day()]:o},ro.weekdaysMin=function(e){return!0===e?Le(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ro.weekdaysShort=function(e){return!0===e?Le(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ro.weekdaysParse=function(e,t,o){var i,n,r;if(this._weekdaysParseExact)return function(e,t,o){var i,n,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return o?"dddd"===t?-1!==(n=ye.call(this._weekdaysParse,s))?n:null:"ddd"===t?-1!==(n=ye.call(this._shortWeekdaysParse,s))?n:null:-1!==(n=ye.call(this._minWeekdaysParse,s))?n:null:"dddd"===t?-1!==(n=ye.call(this._weekdaysParse,s))||-1!==(n=ye.call(this._shortWeekdaysParse,s))||-1!==(n=ye.call(this._minWeekdaysParse,s))?n:null:"ddd"===t?-1!==(n=ye.call(this._shortWeekdaysParse,s))||-1!==(n=ye.call(this._weekdaysParse,s))||-1!==(n=ye.call(this._minWeekdaysParse,s))?n:null:-1!==(n=ye.call(this._minWeekdaysParse,s))||-1!==(n=ye.call(this._weekdaysParse,s))||-1!==(n=ye.call(this._shortWeekdaysParse,s))?n:null}.call(this,e,t,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=c([2e3,1]).day(i),o&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),o&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(o&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(o&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!o&&this._weekdaysParse[i].test(e))return i}},ro.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ro.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=He),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ro.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ro.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ro.meridiem=function(e,t,o){return 11<e?o?"pm":"PM":o?"am":"AM"},Je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",Je),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",tt);var po=Math.abs;function uo(e,t,o,i){var n=Nt(t,o);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function co(e){return e<0?Math.floor(e):Math.ceil(e)}function ho(e){return 4800*e/146097}function fo(e){return 146097*e/4800}function go(e){return function(){return this.as(e)}}var yo=go("ms"),mo=go("s"),vo=go("m"),Co=go("h"),_o=go("d"),wo=go("w"),bo=go("M"),Eo=go("Q"),Ro=go("y");function So(e){return function(){return this.isValid()?this._data[e]:NaN}}var Po=So("milliseconds"),Oo=So("seconds"),To=So("minutes"),Ao=So("hours"),Do=So("days"),xo=So("months"),Fo=So("years"),Mo=Math.round,No={ss:44,s:45,m:45,h:22,d:26,M:11},Lo=Math.abs;function Io(e){return(0<e)-(e<0)||+e}function ko(){if(!this.isValid())return this.localeData().invalidDate();var e,t,o=Lo(this._milliseconds)/1e3,i=Lo(this._days),n=Lo(this._months);t=_((e=_(o/60))/60),o%=60,e%=60;var r=_(n/12),s=n%=12,a=i,l=t,p=e,u=o?o.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",h=Io(this._months)!==Io(c)?"-":"",f=Io(this._days)!==Io(c)?"-":"",g=Io(this._milliseconds)!==Io(c)?"-":"";return d+"P"+(r?h+r+"Y":"")+(s?h+s+"M":"")+(a?f+a+"D":"")+(l||p||u?"T":"")+(l?g+l+"H":"")+(p?g+p+"M":"")+(u?g+u+"S":"")}var Go=Et.prototype;return Go.isValid=function(){return this._isValid},Go.abs=function(){var e=this._data;return this._milliseconds=po(this._milliseconds),this._days=po(this._days),this._months=po(this._months),e.milliseconds=po(e.milliseconds),e.seconds=po(e.seconds),e.minutes=po(e.minutes),e.hours=po(e.hours),e.months=po(e.months),e.years=po(e.years),this},Go.add=function(e,t){return uo(this,e,t,1)},Go.subtract=function(e,t){return uo(this,e,t,-1)},Go.as=function(e){if(!this.isValid())return NaN;var t,o,i=this._milliseconds;if("month"===(e=M(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,o=this._months+ho(t),e){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(t=this._days+Math.round(fo(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Go.asMilliseconds=yo,Go.asSeconds=mo,Go.asMinutes=vo,Go.asHours=Co,Go.asDays=_o,Go.asWeeks=wo,Go.asMonths=bo,Go.asQuarters=Eo,Go.asYears=Ro,Go.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN},Go._bubble=function(){var e,t,o,i,n,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return 0<=r&&0<=s&&0<=a||r<=0&&s<=0&&a<=0||(r+=864e5*co(fo(a)+s),a=s=0),l.milliseconds=r%1e3,e=_(r/1e3),l.seconds=e%60,t=_(e/60),l.minutes=t%60,o=_(t/60),l.hours=o%24,a+=n=_(ho(s+=_(o/24))),s-=co(fo(n)),i=_(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},Go.clone=function(){return Nt(this)},Go.get=function(e){return e=M(e),this.isValid()?this[e+"s"]():NaN},Go.milliseconds=Po,Go.seconds=Oo,Go.minutes=To,Go.hours=Ao,Go.days=Do,Go.weeks=function(){return _(this.days()/7)},Go.months=xo,Go.years=Fo,Go.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,o,i,n,r,s,a,l,p,u,c=this.localeData(),d=(t=!e,o=c,i=Nt(this).abs(),n=Mo(i.as("s")),r=Mo(i.as("m")),s=Mo(i.as("h")),a=Mo(i.as("d")),l=Mo(i.as("M")),p=Mo(i.as("y")),(u=n<=No.ss&&["s",n]||n<No.s&&["ss",n]||r<=1&&["m"]||r<No.m&&["mm",r]||s<=1&&["h"]||s<No.h&&["hh",s]||a<=1&&["d"]||a<No.d&&["dd",a]||l<=1&&["M"]||l<No.M&&["MM",l]||p<=1&&["y"]||["yy",p])[2]=t,u[3]=0<+this,u[4]=o,function(e,t,o,i,n){return n.relativeTime(t||1,!!o,e,i)}.apply(null,u));return e&&(d=c.pastFuture(+this,d)),c.postformat(d)},Go.toISOString=ko,Go.toString=ko,Go.toJSON=ko,Go.locale=jt,Go.localeData=zt,Go.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ko),Go.lang=Bt,j("X",0,0,"unix"),j("x",0,0,"valueOf"),le("x",ie),le("X",/[+-]?\d+(\.\d{1,3})?/),de("X",(function(e,t,o){o._d=new Date(1e3*parseFloat(e,10))})),de("x",(function(e,t,o){o._d=new Date(w(e))})),o.version="2.24.0",e=vt,o.fn=io,o.min=function(){return wt("isBefore",[].slice.call(arguments,0))},o.max=function(){return wt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=c,o.unix=function(e){return vt(1e3*e)},o.months=function(e,t){return ao(e,t,"months")},o.isDate=a,o.locale=Je,o.invalid=f,o.duration=Nt,o.isMoment=C,o.weekdays=function(e,t,o){return lo(e,t,o,"weekdays")},o.parseZone=function(){return vt.apply(null,arguments).parseZone()},o.localeData=tt,o.isDuration=Rt,o.monthsShort=function(e,t){return ao(e,t,"monthsShort")},o.weekdaysMin=function(e,t,o){return lo(e,t,o,"weekdaysMin")},o.defineLocale=et,o.updateLocale=function(e,t){if(null!=t){var o,i,n=qe;null!=(i=Ze(e))&&(n=i._config),(o=new D(t=A(n,t))).parentLocale=Ke[e],Ke[e]=o,Je(e)}else null!=Ke[e]&&(null!=Ke[e].parentLocale?Ke[e]=Ke[e].parentLocale:null!=Ke[e]&&delete Ke[e]);return Ke[e]},o.locales=function(){return S(Ke)},o.weekdaysShort=function(e,t,o){return lo(e,t,o,"weekdaysShort")},o.normalizeUnits=M,o.relativeTimeRounding=function(e){return void 0===e?Mo:"function"==typeof e&&(Mo=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==No[e]&&(void 0===t?No[e]:(No[e]=t,"s"===e&&(No.ss=t-1),!0))},o.calendarFormat=function(e,t){var o=e.diff(t,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"},o.prototype=io,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})),moment.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,o){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))&&"object"==("undefined"==typeof module?"undefined":_typeof2(module))?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))?exports.template=t():e.template=t()}("undefined"!=typeof self?self:this,(function(){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,i){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,o){"use strict";var i=o(6),n=o(2),r=o(22),s=function(e,t){t.onerror(e,t);var o=function(){return"{Template Error}"};return o.mappings=[],o.sourcesContent=[],o},a=function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof t?o=t:o.source=t,t=(o=n.$extend(o)).source,!0===o.debug&&(o.cache=!1,o.minimize=!1,o.compileDebug=!0),o.compileDebug&&(o.minimize=!1),o.filename&&(o.filename=o.resolveFilename(o.filename,o));var a=o.filename,l=o.cache,p=o.caches;if(l&&a){var u=p.get(a);if(u)return u}if(!t)try{t=o.loader(a,o),o.source=t}catch(e){var c=new r({name:"CompileError",path:a,message:"template not found: "+e.message,stack:e.stack});if(o.bail)throw c;return s(c,o)}var d=void 0,h=new i(o);try{d=h.build()}catch(c){if(c=new r(c),o.bail)throw c;return s(c,o)}var f=function(t,i){try{return d(t,i)}catch(n){if(!o.compileDebug)return o.cache=!1,o.compileDebug=!0,e(o)(t,i);if(n=new r(n),o.bail)throw n;return s(n,o)()}};return f.mappings=d.mappings,f.sourcesContent=d.sourcesContent,f.toString=function(){return d.toString()},l&&a&&p.set(a,f),f};a.Compiler=i,e.exports=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0]};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,o){"use strict";function i(){this.$extend=function(e){return r(e=e||{},e instanceof i?e:this)}}var n=o(10),r=o(12),s=o(13),a=o(14),l=o(15),p=o(16),u=o(17),c=o(18),d=o(19),h=o(21),f={source:null,filename:null,rules:[c,u],escape:!0,debug:!!("undefined"==typeof window)&&"production"!==process.env.NODE_ENV,bail:!0,cache:!0,minimize:!0,compileDebug:!1,resolveFilename:h,include:s,htmlMinifier:d,htmlMinifierOptions:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,ignoreCustomFragments:[]},onerror:a,loader:p,caches:l,root:"/",extname:".art",ignore:[],imports:n};i.prototype=f,e.exports=new i},function(e,t){},function(e,t,o){"use strict";var i=o(5),n=o(0),r=o(23),s=function(e,t){return t instanceof Object?i({filename:e},t):n({filename:e,source:t})};s.render=i,s.compile=n,s.defaults=r,e.exports=s},function(e,t,o){"use strict";var i=o(0);e.exports=function(e,t,o){return i(e,o)(t)}},function(e,t,o){"use strict";function i(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function n(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}var r=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),s=o(7),a=o(9),l="$data",p="$imports",u="print",c="include",d="extend",h="block",f="$$out",g="$$line",y="$$blocks",m="$$slice",v="$$from",C="$$options",_=function(e,t){return Object.hasOwnProperty.call(e,t)},w=JSON.stringify,b=function(){function e(t){var o,r,s=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var _=t.source,w=t.minimize,b=t.htmlMinifier;if(this.options=t,this.stacks=[],this.context=[],this.scripts=[],this.CONTEXT_MAP={},this.ignore=[l,p,C].concat(n(t.ignore)),this.internal=(i(o={},f,"''"),i(o,g,"[0,0]"),i(o,y,"arguments[1]||{}"),i(o,v,"null"),i(o,u,"function(){var s=''.concat.apply('',arguments);$$out+=s;return s}"),i(o,c,"function(src,data){var s="+C+".include(src,data||"+l+",arguments[2]||"+y+","+C+");"+f+"+=s;return s}"),i(o,d,"function(from){"+v+"=from}"),i(o,m,"function(c,p,s){p=$$out;$$out='';c();s=$$out;$$out=p+s;return s}"),i(o,h,"function(){var a=arguments,s;if(typeof a[0]==='function'){return "+m+"(a[0])}else if("+v+"){if(!"+y+"[a[0]]){"+y+"[a[0]]="+m+"(a[1])}else{"+f+"+="+y+"[a[0]]}}else{s="+y+"[a[0]];if(typeof s==='string'){"+f+"+=s}else{s="+m+"(a[1])}return s}}"),o),this.dependencies=(i(r={},u,[f]),i(r,c,[f,C,l,y]),i(r,d,[v,c]),i(r,h,[m,v,f,y]),r),this.importContext(f),t.compileDebug&&this.importContext(g),w)try{_=b(_,t)}catch(e){}this.source=_,this.getTplTokens(_,t.rules,this).forEach((function(e){e.type===a.TYPE_STRING?s.parseString(e):s.parseExpression(e)}))}return r(e,[{key:"getTplTokens",value:function(){return a.apply(void 0,arguments)}},{key:"getEsTokens",value:function(e){return s(e)}},{key:"getVariables",value:function(e){var t=!1;return e.filter((function(e){return"whitespace"!==e.type&&"comment"!==e.type})).filter((function(e){return"name"===e.type&&!t||(t="punctuator"===e.type&&"."===e.value,!1)})).map((function(e){return e.value}))}},{key:"importContext",value:function(e){var t=this,o="",i=this.internal,n=this.dependencies,r=this.ignore,s=this.context,a=this.options.imports,u=this.CONTEXT_MAP;_(u,e)||-1!==r.indexOf(e)||(_(i,e)?(o=i[e],_(n,e)&&n[e].forEach((function(e){return t.importContext(e)}))):o="$escape"===e||"$each"===e||_(a,e)?p+"."+e:l+"."+e,u[e]=o,s.push({name:e,value:o}))}},{key:"parseString",value:function(e){var t=e.value;if(t){var o=f+"+="+w(t);this.scripts.push({source:t,tplToken:e,code:o})}}},{key:"parseExpression",value:function(e){var t=this,o=e.value,i=e.script,n=i.output,r=this.options.escape,s=i.code;n&&(s=!1===r||n===a.TYPE_RAW?f+"+="+i.code:f+"+=$escape("+i.code+")");var l=this.getEsTokens(s);this.getVariables(l).forEach((function(e){return t.importContext(e)})),this.scripts.push({source:o,tplToken:e,code:s})}},{key:"checkExpression",value:function(e){for(var t=[[/^\s*}[\w\W]*?{?[\s;]*$/,""],[/(^[\w\W]*?\([\w\W]*?(?:=>|\([\w\W]*?\))\s*{[\s;]*$)/,"$1})"],[/(^[\w\W]*?\([\w\W]*?\)\s*{[\s;]*$)/,"$1}"]],o=0;o<t.length;){if(t[o][0].test(e)){var i;e=(i=e).replace.apply(i,n(t[o]));break}o++}try{return new Function(e),!0}catch(e){return!1}}},{key:"build",value:function(){var e=this.options,t=this.context,o=this.scripts,i=this.stacks,n=this.source,r=e.filename,s=e.imports,u=[],h=_(this.CONTEXT_MAP,d),m=0,b=function(e,t){var o=t.line,n=t.start,r={generated:{line:i.length+m+1,column:1},original:{line:o+1,column:n+1}};return m+=e.split(/\n/).length-1,r},E=function(e){return e.replace(/^[\t ]+|[\t ]$/g,"")};i.push("function("+l+"){"),i.push("'use strict'"),i.push(l+"="+l+"||{}"),i.push("var "+t.map((function(e){return e.name+"="+e.value})).join(",")),e.compileDebug?(i.push("try{"),o.forEach((function(e){e.tplToken.type===a.TYPE_EXPRESSION&&i.push(g+"=["+[e.tplToken.line,e.tplToken.start].join(",")+"]"),u.push(b(e.code,e.tplToken)),i.push(E(e.code))})),i.push("}catch(error){"),i.push("throw {"+["name:'RuntimeError'","path:"+w(r),"message:error.message","line:"+g+"[0]+1","column:"+g+"[1]+1","source:"+w(n),"stack:error.stack"].join(",")+"}"),i.push("}")):o.forEach((function(e){u.push(b(e.code,e.tplToken)),i.push(E(e.code))})),h&&(i.push(f+"=''"),i.push(c+"("+v+","+l+","+y+")")),i.push("return "+f),i.push("}");var R=i.join("\n");try{var S=new Function(p,C,"return "+R)(s,e);return S.mappings=u,S.sourcesContent=[n],S}catch(e){for(var P=0,O=0,T=0,A=void 0;P<o.length;){var D=o[P];if(!this.checkExpression(D.code)){O=D.tplToken.line,T=D.tplToken.start,A=D.code;break}P++}throw{name:"CompileError",path:r,message:e.message,line:O+1,column:T+1,source:n,generated:A,stack:e.stack}}}}]),e}();b.CONSTS={DATA:l,IMPORTS:p,PRINT:u,INCLUDE:c,EXTEND:d,BLOCK:h,OPTIONS:C,OUT:f,LINE:g,BLOCKS:y,SLICE:m,FROM:v,ESCAPE:"$escape",EACH:"$each"},e.exports=b},function(e,t,o){"use strict";var i=o(8),n=o(1).default,r=o(1).matchToToken;e.exports=function(e){return e.match(n).map((function(e){return n.lastIndex=0,r(n.exec(e))})).map((function(e){return"name"===e.type&&i(e.value)&&(e.type="keyword"),e}))}},function(e,t,o){"use strict";var i={abstract:!0,await:!0,boolean:!0,break:!0,byte:!0,case:!0,catch:!0,char:!0,class:!0,const:!0,continue:!0,debugger:!0,default:!0,delete:!0,do:!0,double:!0,else:!0,enum:!0,export:!0,extends:!0,false:!0,final:!0,finally:!0,float:!0,for:!0,function:!0,goto:!0,if:!0,implements:!0,import:!0,in:!0,instanceof:!0,int:!0,interface:!0,let:!0,long:!0,native:!0,new:!0,null:!0,package:!0,private:!0,protected:!0,public:!0,return:!0,short:!0,static:!0,super:!0,switch:!0,synchronized:!0,this:!0,throw:!0,transient:!0,true:!0,try:!0,typeof:!0,var:!0,void:!0,volatile:!0,while:!0,with:!0,yield:!0};e.exports=function(e){return i.hasOwnProperty(e)}},function(e,t,o){"use strict";function i(e){var t=new String(e.value);return t.line=e.line,t.start=e.start,t.end=e.end,t}function n(e,t,o){this.type=e,this.value=t,this.script=null,o?(this.line=o.line+o.value.split(/\n/).length-1,this.line===o.line?this.start=o.end:this.start=o.value.length-o.value.lastIndexOf("\n")-1):(this.line=0,this.start=0),this.end=this.start+this.value.length}var r=function(e,t){for(var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[new n("string",e)],s=0;s<t.length;s++)for(var a=t[s],l=a.test.ignoreCase?"ig":"g",p=new RegExp(a.test.source,l),u=0;u<r.length;u++){var c=r[u],d=r[u-1];if("string"===c.type){for(var h=void 0,f=0,g=[],y=c.value;null!==(h=p.exec(y));)h.index>f&&(d=new n("string",y.slice(f,h.index),d),g.push(d)),d=new n("expression",h[0],d),h[0]=i(d),d.script=a.use.apply(o,h),g.push(d),f=h.index+h[0].length;f<y.length&&(d=new n("string",y.slice(f),d),g.push(d)),r.splice.apply(r,[u,1].concat(g)),u+=g.length-1}}return r};r.TYPE_STRING="string",r.TYPE_EXPRESSION="expression",r.TYPE_RAW="raw",r.TYPE_ESCAPE="escape",e.exports=r},function(e,t,o){"use strict";(function(t){function o(e){return"string"!=typeof e&&(e=null==e?"":"function"==typeof e?o(e.call(e)):JSON.stringify(e)),e}var i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=Object.create(i),r=/["&'<>]/;n.$escape=function(e){return function(e){var t=""+e,o=r.exec(t);if(!o)return e;var i="",n=void 0,s=void 0,a=void 0;for(n=o.index,s=0;n<t.length;n++){switch(t.charCodeAt(n)){case 34:a=""";break;case 38:a="&";break;case 39:a="'";break;case 60:a="<";break;case 62:a=">";break;default:continue}s!==n&&(i+=t.substring(s,n)),s=n+1,i+=a}return s!==n?i+t.substring(s,n):i}(o(e))},n.$each=function(e,t){if(Array.isArray(e))for(var o=0,i=e.length;o<i;o++)t(e[o],o);else for(var n in e)t(e[n],n)},e.exports=n}).call(t,o(11))},function(e,t){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(e){"object"==("undefined"==typeof window?"undefined":_typeof2(window))&&(o=window)}e.exports=o},function(e,t,o){"use strict";var i=Object.prototype.toString,n=function(e){return null===e?"Null":i.call(e).slice(8,-1)};e.exports=function e(t,o){var i=void 0,r=n(t);if("Object"===r?i=Object.create(o||{}):"Array"===r&&(i=[].concat(o||[])),i){for(var s in t)Object.hasOwnProperty.call(t,s)&&(i[s]=e(t[s],i[s]));return i}return t}},function(e,t,o){"use strict";e.exports=function(e,t,i,n){return o(0)(n=n.$extend({filename:n.resolveFilename(e,n),bail:!0,source:null}))(t,i)}},function(e,t,o){"use strict";e.exports=function(e){console.error(e.name,e.message)}},function(e,t,o){"use strict";var i={__data:Object.create(null),set:function(e,t){this.__data[e]=t},get:function(e){return this.__data[e]},reset:function(){this.__data={}}};e.exports=i},function(e,t,o){"use strict";var i="undefined"==typeof window;e.exports=function(e){if(i)return o(3).readFileSync(e,"utf8");var t=document.getElementById(e);return t.value||t.innerHTML}},function(e,t,o){"use strict";var i={test:/{{([@#]?)[ \t]*(\/?)([\w\W]*?)[ \t]*}}/,use:function(e,t,o,n){var r=this.options,s=this.getEsTokens(n),a=s.map((function(e){return e.value})),l={},p=void 0,u=!!t&&"raw",c=o+a.shift(),d=function(t,o){console.warn((r.filename||"anonymous")+":"+(e.line+1)+":"+(e.start+1)+"\nTemplate upgrade: {{"+t+"}} -> {{"+o+"}}")};switch("#"===t&&d("#value","@value"),c){case"set":n="var "+a.join("").trim();break;case"if":n="if("+a.join("").trim()+"){";break;case"else":var h=a.indexOf("if");~h?(a.splice(0,h+1),n="}else if("+a.join("").trim()+"){"):n="}else{";break;case"/if":n="}";break;case"each":(p=i._split(s)).shift(),"as"===p[1]&&(d("each object as value index","each object value index"),p.splice(1,1)),n="$each("+(p[0]||"$data")+",function("+(p[1]||"$value")+","+(p[2]||"$index")+"){";break;case"/each":n="})";break;case"block":(p=i._split(s)).shift(),n="block("+p.join(",").trim()+",function(){";break;case"/block":n="})";break;case"echo":c="print",d("echo value","value");case"print":case"include":case"extend":if(0!==a.join("").trim().indexOf("(")){(p=i._split(s)).shift(),n=c+"("+p.join(",")+")";break}default:if(~a.indexOf("|")){var f=s.reduce((function(e,t){var o=t.value,i=t.type;return"|"===o?e.push([]):"whitespace"!==i&&"comment"!==i&&(e.length||e.push([]),":"===o&&1===e[e.length-1].length?d("value | filter: argv","value | filter argv"):e[e.length-1].push(t)),e}),[]).map((function(e){return i._split(e)}));n=f.reduce((function(e,t){var o=t.shift();return t.unshift(e),"$imports."+o+"("+t.join(",")+")"}),f.shift().join(" ").trim())}u=u||"escape"}return l.code=n,l.output=u,l},_split:function(e){e=e.filter((function(e){var t=e.type;return"whitespace"!==t&&"comment"!==t}));for(var t=0,o=e.shift(),i=/\]|\)/,n=[[o]];t<e.length;){var r=e[t];"punctuator"===r.type||"punctuator"===o.type&&!i.test(o.value)?n[n.length-1].push(r):n.push([r]),o=r,t++}return n.map((function(e){return e.map((function(e){return e.value})).join("")}))}};e.exports=i},function(e,t,o){"use strict";e.exports={test:/<%(#?)((?:==|=#|[=-])?)[ \t]*([\w\W]*?)[ \t]*(-?)%>/,use:function(e,t,o,i){return o={"-":"raw","=":"escape","":!1,"==":"raw","=#":"raw"}[o],t&&(i="/*"+i+"*/",o=!1),{code:i,output:o}}}},function(e,t,o){"use strict";var i="undefined"==typeof window;e.exports=function(e,t){if(i){var n,r=o(20).minify,s=t.htmlMinifierOptions,a=t.rules.map((function(e){return e.test}));(n=s.ignoreCustomFragments).push.apply(n,function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}(a)),e=r(e,s)}return e}},function(e,t){!function(e){e.noop=function(){}}("object"==_typeof2(e)&&"object"==_typeof2(e.exports)?e.exports:window)},function(e,t,o){"use strict";var i="undefined"==typeof window,n=/^\.+\//;e.exports=function(e,t){if(i){var r=o(3),s=t.root,a=t.extname;if(n.test(e)){var l=t.filename,p=!l||e===l?s:r.dirname(l);e=r.resolve(p,e)}else e=r.resolve(s,e);r.extname(e)||(e+=a)}return e}},function(e,t,o){"use strict";var i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=_typeof2(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.message));return o.name="TemplateError",o.message=function(e){var t=e.name,o=e.source,i=e.path,n=e.line,r=e.column,s=e.generated,a=e.message;if(!o)return a;var l=o.split(/\n/),p=Math.max(n-3,0),u=Math.min(l.length,n+3),c=l.slice(p,u).map((function(e,t){var o=t+p+1;return(o===n?" >> ":" ")+o+"| "+e})).join("\n");return(i||"anonymous")+":"+n+":"+r+"\n"+c+"\n\n"+t+": "+a+(s?"\n generated: "+s:"")}(e),Error.captureStackTrace&&Error.captureStackTrace(o,o.constructor),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+_typeof2(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}();e.exports=i},function(e,t,o){"use strict";e.exports=o(2)}])})),function(e,t){"object"===("undefined"==typeof module?"undefined":_typeof2(module))&&"object"===_typeof2(module.exports)?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){var o=[],i=o.slice,n=o.concat,r=o.push,s=o.indexOf,a={},l=a.toString,p=a.hasOwnProperty,u={},c="1.11.3",d=function e(t,o){return new e.fn.init(t,o)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,f=/^-ms-/,g=/-([\da-z])/gi,y=function(e,t){return t.toUpperCase()};function m(e){var t="length"in e&&e.length,o=d.type(e);return"function"!==o&&!d.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===o||0===t||"number"==typeof t&&t>0&&t-1 in e))}d.fn=d.prototype={jquery:c,constructor:d,selector:"",length:0,toArray:function(){return i.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:i.call(this)},pushStack:function(e){var t=d.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return d.each(this,e,t)},map:function(e){return this.pushStack(d.map(this,(function(t,o){return e.call(t,o,t)})))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,o=+e+(e<0?t:0);return this.pushStack(o>=0&&o<t?[this[o]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:r,sort:o.sort,splice:o.splice},d.extend=d.fn.extend=function(){var e,t,o,i,n,r,s=arguments[0]||{},a=1,l=arguments.length,p=!1;for("boolean"==typeof s&&(p=s,s=arguments[a]||{},a++),"object"===_typeof2(s)||d.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(n=arguments[a]))for(i in n)e=s[i],s!==(o=n[i])&&(p&&o&&(d.isPlainObject(o)||(t=d.isArray(o)))?(t?(t=!1,r=e&&d.isArray(e)?e:[]):r=e&&d.isPlainObject(e)?e:{},s[i]=d.extend(p,r,o)):void 0!==o&&(s[i]=o));return s},d.extend({expando:"jQuery"+(c+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===d.type(e)},isArray:Array.isArray||function(e){return"array"===d.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!d.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==d.type(e)||e.nodeType||d.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(u.ownLast)for(t in e)return p.call(e,t);for(t in e);return void 0===t||p.call(e,t)},type:function(e){return null==e?e+"":"object"===_typeof2(e)||"function"==typeof e?a[l.call(e)]||"object":_typeof2(e)},globalEval:function(t){t&&d.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(f,"ms-").replace(g,y)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,o){var i=0,n=e.length,r=m(e);if(o){if(r)for(;i<n&&!1!==t.apply(e[i],o);i++);else for(i in e)if(!1===t.apply(e[i],o))break}else if(r)for(;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var o=t||[];return null!=e&&(m(Object(e))?d.merge(o,"string"==typeof e?[e]:e):r.call(o,e)),o},inArray:function(e,t,o){var i;if(t){if(s)return s.call(t,e,o);for(i=t.length,o=o?o<0?Math.max(0,i+o):o:0;o<i;o++)if(o in t&&t[o]===e)return o}return-1},merge:function(e,t){for(var o=+t.length,i=0,n=e.length;i<o;)e[n++]=t[i++];if(o!=o)for(;void 0!==t[i];)e[n++]=t[i++];return e.length=n,e},grep:function(e,t,o){for(var i=[],n=0,r=e.length,s=!o;n<r;n++)!t(e[n],n)!==s&&i.push(e[n]);return i},map:function(e,t,o){var i,r=0,s=e.length,a=[];if(m(e))for(;r<s;r++)null!=(i=t(e[r],r,o))&&a.push(i);else for(r in e)null!=(i=t(e[r],r,o))&&a.push(i);return n.apply([],a)},guid:1,proxy:function(e,t){var o,n,r;if("string"==typeof t&&(r=e[t],t=e,e=r),d.isFunction(e))return o=i.call(arguments,2),n=function(){return e.apply(t||this,o.concat(i.call(arguments)))},n.guid=e.guid=e.guid||d.guid++,n},now:function(){return+new Date},support:u}),d.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){a["[object "+t+"]"]=t.toLowerCase()}));var v=function(e){var t,o,i,n,r,s,a,l,p,u,c,d,h,f,g,y,m,v,C,_="sizzle"+1*new Date,w=e.document,b=0,E=0,R=se(),S=se(),P=se(),O=function(e,t){return e===t&&(c=!0),0},T=1<<31,A={}.hasOwnProperty,D=[],x=D.pop,F=D.push,M=D.push,N=D.slice,L=function(e,t){for(var o=0,i=e.length;o<i;o++)if(e[o]===t)return o;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",k="[\\x20\\t\\r\\n\\f]",G="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=G.replace("w","w#"),H="\\[[\\x20\\t\\r\\n\\f]*("+G+")(?:"+k+"*([*^$|!~]?=)"+k+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+k+"*\\]",V=":("+G+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",j=new RegExp(k+"+","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),z=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),Y=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),$=new RegExp(V),q=new RegExp("^"+W+"$"),K={ID:new RegExp("^#("+G+")"),CLASS:new RegExp("^\\.("+G+")"),TAG:new RegExp("^("+G.replace("w","w*")+")"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,oe=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),ie=function(e,t,o){var i="0x"+t-65536;return i!=i||o?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ne=function(){d()};try{M.apply(D=N.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){M={apply:D.length?function(e,t){F.apply(e,N.call(t))}:function(e,t){for(var o=e.length,i=0;e[o++]=t[i++];);e.length=o-1}}}function re(e,t,i,n){var r,a,p,u,c,f,m,v,b,E;if((t?t.ownerDocument||t:w)!==h&&d(t),i=i||[],u=(t=t||h).nodeType,"string"!=typeof e||!e||1!==u&&9!==u&&11!==u)return i;if(!n&&g){if(11!==u&&(r=J.exec(e)))if(p=r[1]){if(9===u){if(!(a=t.getElementById(p))||!a.parentNode)return i;if(a.id===p)return i.push(a),i}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(p))&&C(t,a)&&a.id===p)return i.push(a),i}else{if(r[2])return M.apply(i,t.getElementsByTagName(e)),i;if((p=r[3])&&o.getElementsByClassName)return M.apply(i,t.getElementsByClassName(p)),i}if(o.qsa&&(!y||!y.test(e))){if(v=m=_,b=t,E=1!==u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(f=s(e),(m=t.getAttribute("id"))?v=m.replace(te,"\\$&"):t.setAttribute("id",v),v="[id='"+v+"'] ",c=f.length;c--;)f[c]=v+ye(f[c]);b=ee.test(e)&&fe(t.parentNode)||t,E=f.join(",")}if(E)try{return M.apply(i,b.querySelectorAll(E)),i}catch(e){}finally{m||t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,i,n)}function se(){var e=[];return function t(o,n){return e.push(o+" ")>i.cacheLength&&delete t[e.shift()],t[o+" "]=n}}function ae(e){return e[_]=!0,e}function le(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var o=e.split("|"),n=e.length;n--;)i.attrHandle[o[n]]=t}function ue(e,t){var o=t&&e,i=o&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||T)-(~e.sourceIndex||T);if(i)return i;if(o)for(;o=o.nextSibling;)if(o===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var o=t.nodeName.toLowerCase();return("input"===o||"button"===o)&&t.type===e}}function he(e){return ae((function(t){return t=+t,ae((function(o,i){for(var n,r=e([],o.length,t),s=r.length;s--;)o[n=r[s]]&&(o[n]=!(i[n]=o[n]))}))}))}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in o=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=re.setDocument=function(e){var t,n,s=e?e.ownerDocument||e:w;return s!==h&&9===s.nodeType&&s.documentElement?(h=s,f=s.documentElement,(n=s.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",ne,!1):n.attachEvent&&n.attachEvent("onunload",ne)),g=!r(s),o.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),o.getElementsByTagName=le((function(e){return e.appendChild(s.createComment("")),!e.getElementsByTagName("*").length})),o.getElementsByClassName=Z.test(s.getElementsByClassName),o.getById=le((function(e){return f.appendChild(e).id=_,!s.getElementsByName||!s.getElementsByName(_).length})),o.getById?(i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var o=t.getElementById(e);return o&&o.parentNode?[o]:[]}},i.filter.ID=function(e){var t=e.replace(oe,ie);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(oe,ie);return function(e){var o=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return o&&o.value===t}}),i.find.TAG=o.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):o.qsa?t.querySelectorAll(e):void 0}:function(e,t){var o,i=[],n=0,r=t.getElementsByTagName(e);if("*"===e){for(;o=r[n++];)1===o.nodeType&&i.push(o);return i}return r},i.find.CLASS=o.getElementsByClassName&&function(e,t){if(g)return t.getElementsByClassName(e)},m=[],y=[],(o.qsa=Z.test(s.querySelectorAll))&&(le((function(e){f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+I+")"),e.querySelectorAll("[id~="+_+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||y.push(".#.+[+~]")})),le((function(e){var t=s.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")}))),(o.matchesSelector=Z.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&le((function(e){o.disconnectedMatch=v.call(e,"div"),v.call(e,"[s!='']:x"),m.push("!=",V)})),y=y.length&&new RegExp(y.join("|")),m=m.length&&new RegExp(m.join("|")),t=Z.test(f.compareDocumentPosition),C=t||Z.test(f.contains)?function(e,t){var o=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(o.contains?o.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!o.sortDetached&&t.compareDocumentPosition(e)===i?e===s||e.ownerDocument===w&&C(w,e)?-1:t===s||t.ownerDocument===w&&C(w,t)?1:u?L(u,e)-L(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var o,i=0,n=e.parentNode,r=t.parentNode,a=[e],l=[t];if(!n||!r)return e===s?-1:t===s?1:n?-1:r?1:u?L(u,e)-L(u,t):0;if(n===r)return ue(e,t);for(o=e;o=o.parentNode;)a.unshift(o);for(o=t;o=o.parentNode;)l.unshift(o);for(;a[i]===l[i];)i++;return i?ue(a[i],l[i]):a[i]===w?-1:l[i]===w?1:0},s):h},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&d(e),t=t.replace(Y,"='$1']"),o.matchesSelector&&g&&(!m||!m.test(t))&&(!y||!y.test(t)))try{var i=v.call(e,t);if(i||o.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,h,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==h&&d(e),C(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==h&&d(e);var n=i.attrHandle[t.toLowerCase()],r=n&&A.call(i.attrHandle,t.toLowerCase())?n(e,t,!g):void 0;return void 0!==r?r:o.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],n=0,r=0;if(c=!o.detectDuplicates,u=!o.sortStable&&e.slice(0),e.sort(O),c){for(;t=e[r++];)t===e[r]&&(n=i.push(r));for(;n--;)e.splice(i[n],1)}return u=null,e},n=re.getText=function(e){var t,o="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)o+=n(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)o+=n(t);return o},(i=re.selectors={cacheLength:50,createPseudo:ae,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,o=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":o&&$.test(o)&&(t=s(o,!0))&&(t=o.indexOf(")",o.length-t)-o.length)&&(e[0]=e[0].slice(0,t),e[2]=o.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(oe,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+k+"|$)"))&&R(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,o){return function(i){var n=re.attr(i,e);return null==n?"!="===t:!t||(n+="","="===t?n===o:"!="===t?n!==o:"^="===t?o&&0===n.indexOf(o):"*="===t?o&&n.indexOf(o)>-1:"$="===t?o&&n.slice(-o.length)===o:"~="===t?(" "+n.replace(j," ")+" ").indexOf(o)>-1:"|="===t&&(n===o||n.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,o,i,n){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===n?function(e){return!!e.parentNode}:function(t,o,l){var p,u,c,d,h,f,g=r!==s?"nextSibling":"previousSibling",y=t.parentNode,m=a&&t.nodeName.toLowerCase(),v=!l&&!a;if(y){if(r){for(;g;){for(c=t;c=c[g];)if(a?c.nodeName.toLowerCase()===m:1===c.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?y.firstChild:y.lastChild],s&&v){for(h=(p=(u=y[_]||(y[_]={}))[e]||[])[0]===b&&p[1],d=p[0]===b&&p[2],c=h&&y.childNodes[h];c=++h&&c&&c[g]||(d=h=0)||f.pop();)if(1===c.nodeType&&++d&&c===t){u[e]=[b,h,d];break}}else if(v&&(p=(t[_]||(t[_]={}))[e])&&p[0]===b)d=p[1];else for(;(c=++h&&c&&c[g]||(d=h=0)||f.pop())&&((a?c.nodeName.toLowerCase()!==m:1!==c.nodeType)||!++d||(v&&((c[_]||(c[_]={}))[e]=[b,d]),c!==t)););return(d-=n)===i||d%i==0&&d/i>=0}}},PSEUDO:function(e,t){var o,n=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return n[_]?n(t):n.length>1?(o=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae((function(e,o){for(var i,r=n(e,t),s=r.length;s--;)e[i=L(e,r[s])]=!(o[i]=r[s])})):function(e){return n(e,0,o)}):n}},pseudos:{not:ae((function(e){var t=[],o=[],i=a(e.replace(B,"$1"));return i[_]?ae((function(e,t,o,n){for(var r,s=i(e,null,n,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))})):function(e,n,r){return t[0]=e,i(t,null,r,o),t[0]=null,!o.pop()}})),has:ae((function(e){return function(t){return re(e,t).length>0}})),contains:ae((function(e){return e=e.replace(oe,ie),function(t){return(t.textContent||t.innerText||n(t)).indexOf(e)>-1}})),lang:ae((function(e){return q.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(oe,ie).toLowerCase(),function(t){var o;do{if(o=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(o=o.toLowerCase())===e||0===o.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var o=e.location&&e.location.hash;return o&&o.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,o){return[o<0?o+t:o]})),even:he((function(e,t){for(var o=0;o<t;o+=2)e.push(o);return e})),odd:he((function(e,t){for(var o=1;o<t;o+=2)e.push(o);return e})),lt:he((function(e,t,o){for(var i=o<0?o+t:o;--i>=0;)e.push(i);return e})),gt:he((function(e,t,o){for(var i=o<0?o+t:o;++i<t;)e.push(i);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=de(t);function ge(){}function ye(e){for(var t=0,o=e.length,i="";t<o;t++)i+=e[t].value;return i}function me(e,t,o){var i=t.dir,n=o&&"parentNode"===i,r=E++;return t.first?function(t,o,r){for(;t=t[i];)if(1===t.nodeType||n)return e(t,o,r)}:function(t,o,s){var a,l,p=[b,r];if(s){for(;t=t[i];)if((1===t.nodeType||n)&&e(t,o,s))return!0}else for(;t=t[i];)if(1===t.nodeType||n){if((a=(l=t[_]||(t[_]={}))[i])&&a[0]===b&&a[1]===r)return p[2]=a[2];if(l[i]=p,p[2]=e(t,o,s))return!0}}}function ve(e){return e.length>1?function(t,o,i){for(var n=e.length;n--;)if(!e[n](t,o,i))return!1;return!0}:e[0]}function Ce(e,t,o,i,n){for(var r,s=[],a=0,l=e.length,p=null!=t;a<l;a++)(r=e[a])&&(o&&!o(r,i,n)||(s.push(r),p&&t.push(a)));return s}function _e(e,t,o,i,n,r){return i&&!i[_]&&(i=_e(i)),n&&!n[_]&&(n=_e(n,r)),ae((function(r,s,a,l){var p,u,c,d=[],h=[],f=s.length,g=r||function(e,t,o){for(var i=0,n=t.length;i<n;i++)re(e,t[i],o);return o}(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?g:Ce(g,d,e,a,l),m=o?n||(r?e:f||i)?[]:s:y;if(o&&o(y,m,a,l),i)for(p=Ce(m,h),i(p,[],a,l),u=p.length;u--;)(c=p[u])&&(m[h[u]]=!(y[h[u]]=c));if(r){if(n||e){if(n){for(p=[],u=m.length;u--;)(c=m[u])&&p.push(y[u]=c);n(null,m=[],p,l)}for(u=m.length;u--;)(c=m[u])&&(p=n?L(r,c):d[u])>-1&&(r[p]=!(s[p]=c))}}else m=Ce(m===s?m.splice(f,m.length):m),n?n(null,s,m,l):M.apply(s,m)}))}function we(e){for(var t,o,n,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,u=me((function(e){return e===t}),a,!0),c=me((function(e){return L(t,e)>-1}),a,!0),d=[function(e,o,i){var n=!s&&(i||o!==p)||((t=o).nodeType?u(e,o,i):c(e,o,i));return t=null,n}];l<r;l++)if(o=i.relative[e[l].type])d=[me(ve(d),o)];else{if((o=i.filter[e[l].type].apply(null,e[l].matches))[_]){for(n=++l;n<r&&!i.relative[e[n].type];n++);return _e(l>1&&ve(d),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),o,l<n&&we(e.slice(l,n)),n<r&&we(e=e.slice(n)),n<r&&ye(e))}d.push(o)}return ve(d)}return ge.prototype=i.filters=i.pseudos,i.setFilters=new ge,s=re.tokenize=function(e,t){var o,n,r,s,a,l,p,u=S[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],p=i.preFilter;a;){for(s in o&&!(n=z.exec(a))||(n&&(a=a.slice(n[0].length)||a),l.push(r=[])),o=!1,(n=U.exec(a))&&(o=n.shift(),r.push({value:o,type:n[0].replace(B," ")}),a=a.slice(o.length)),i.filter)!(n=K[s].exec(a))||p[s]&&!(n=p[s](n))||(o=n.shift(),r.push({value:o,type:s,matches:n}),a=a.slice(o.length));if(!o)break}return t?a.length:a?re.error(e):S(e,l).slice(0)},a=re.compile=function(e,t){var o,n=[],r=[],a=P[e+" "];if(!a){for(t||(t=s(e)),o=t.length;o--;)(a=we(t[o]))[_]?n.push(a):r.push(a);(a=P(e,function(e,t){var o=t.length>0,n=e.length>0,r=function(r,s,a,l,u){var c,d,f,g=0,y="0",m=r&&[],v=[],C=p,_=r||n&&i.find.TAG("*",u),w=b+=null==C?1:Math.random()||.1,E=_.length;for(u&&(p=s!==h&&s);y!==E&&null!=(c=_[y]);y++){if(n&&c){for(d=0;f=e[d++];)if(f(c,s,a)){l.push(c);break}u&&(b=w)}o&&((c=!f&&c)&&g--,r&&m.push(c))}if(g+=y,o&&y!==g){for(d=0;f=t[d++];)f(m,v,s,a);if(r){if(g>0)for(;y--;)m[y]||v[y]||(v[y]=x.call(l));v=Ce(v)}M.apply(l,v),u&&!r&&v.length>0&&g+t.length>1&&re.uniqueSort(l)}return u&&(b=w,p=C),m};return o?ae(r):r}(r,n))).selector=e}return a},l=re.select=function(e,t,n,r){var l,p,u,c,d,h="function"==typeof e&&e,f=!r&&s(e=h.selector||e);if(n=n||[],1===f.length){if((p=f[0]=f[0].slice(0)).length>2&&"ID"===(u=p[0]).type&&o.getById&&9===t.nodeType&&g&&i.relative[p[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(oe,ie),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(p.shift().value.length)}for(l=K.needsContext.test(e)?0:p.length;l--&&(u=p[l],!i.relative[c=u.type]);)if((d=i.find[c])&&(r=d(u.matches[0].replace(oe,ie),ee.test(p[0].type)&&fe(t.parentNode)||t))){if(p.splice(l,1),!(e=r.length&&ye(p)))return M.apply(n,r),n;break}}return(h||a(e,f))(r,t,!g,n,ee.test(e)&&fe(t.parentNode)||t),n},o.sortStable=_.split("").sort(O).join("")===_,o.detectDuplicates=!!c,d(),o.sortDetached=le((function(e){return 1&e.compareDocumentPosition(h.createElement("div"))})),le((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||pe("type|href|height|width",(function(e,t,o){if(!o)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),o.attributes&&le((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||pe("value",(function(e,t,o){if(!o&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||pe(I,(function(e,t,o){var i;if(!o)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),re}(e);d.find=v,(d.expr=v.selectors)[":"]=d.expr.pseudos,d.unique=v.uniqueSort,d.text=v.getText,d.isXMLDoc=v.isXML,d.contains=v.contains;var C=d.expr.match.needsContext,_=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function b(e,t,o){if(d.isFunction(t))return d.grep(e,(function(e,i){return!!t.call(e,i,e)!==o}));if(t.nodeType)return d.grep(e,(function(e){return e===t!==o}));if("string"==typeof t){if(w.test(t))return d.filter(t,e,o);t=d.filter(t,e)}return d.grep(e,(function(e){return d.inArray(e,t)>=0!==o}))}d.filter=function(e,t,o){var i=t[0];return o&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?d.find.matchesSelector(i,e)?[i]:[]:d.find.matches(e,d.grep(t,(function(e){return 1===e.nodeType})))},d.fn.extend({find:function(e){var t,o=[],i=this,n=i.length;if("string"!=typeof e)return this.pushStack(d(e).filter((function(){for(t=0;t<n;t++)if(d.contains(i[t],this))return!0})));for(t=0;t<n;t++)d.find(e,i[t],o);return(o=this.pushStack(n>1?d.unique(o):o)).selector=this.selector?this.selector+" "+e:e,o},filter:function(e){return this.pushStack(b(this,e||[],!1))},not:function(e){return this.pushStack(b(this,e||[],!0))},is:function(e){return!!b(this,"string"==typeof e&&C.test(e)?d(e):e||[],!1).length}});var E,R=e.document,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(d.fn.init=function(e,t){var o,i;if(!e)return this;if("string"==typeof e){if(!(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:S.exec(e))||!o[1]&&t)return!t||t.jquery?(t||E).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof d?t[0]:t,d.merge(this,d.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:R,!0)),_.test(o[1])&&d.isPlainObject(t))for(o in t)d.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}if((i=R.getElementById(o[2]))&&i.parentNode){if(i.id!==o[2])return E.find(e);this.length=1,this[0]=i}return this.context=R,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):d.isFunction(e)?void 0!==E.ready?E.ready(e):e(d):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),d.makeArray(e,this))}).prototype=d.fn,E=d(R);var P=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function T(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}d.extend({dir:function(e,t,o){for(var i=[],n=e[t];n&&9!==n.nodeType&&(void 0===o||1!==n.nodeType||!d(n).is(o));)1===n.nodeType&&i.push(n),n=n[t];return i},sibling:function(e,t){for(var o=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&o.push(e);return o}}),d.fn.extend({has:function(e){var t,o=d(e,this),i=o.length;return this.filter((function(){for(t=0;t<i;t++)if(d.contains(this,o[t]))return!0}))},closest:function(e,t){for(var o,i=0,n=this.length,r=[],s=C.test(e)||"string"!=typeof e?d(e,t||this.context):0;i<n;i++)for(o=this[i];o&&o!==t;o=o.parentNode)if(o.nodeType<11&&(s?s.index(o)>-1:1===o.nodeType&&d.find.matchesSelector(o,e))){r.push(o);break}return this.pushStack(r.length>1?d.unique(r):r)},index:function(e){return e?"string"==typeof e?d.inArray(this[0],d(e)):d.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(d.unique(d.merge(this.get(),d(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),d.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d.dir(e,"parentNode")},parentsUntil:function(e,t,o){return d.dir(e,"parentNode",o)},next:function(e){return T(e,"nextSibling")},prev:function(e){return T(e,"previousSibling")},nextAll:function(e){return d.dir(e,"nextSibling")},prevAll:function(e){return d.dir(e,"previousSibling")},nextUntil:function(e,t,o){return d.dir(e,"nextSibling",o)},prevUntil:function(e,t,o){return d.dir(e,"previousSibling",o)},siblings:function(e){return d.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return d.sibling(e.firstChild)},contents:function(e){return d.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:d.merge([],e.childNodes)}},(function(e,t){d.fn[e]=function(o,i){var n=d.map(this,t,o);return"Until"!==e.slice(-5)&&(i=o),i&&"string"==typeof i&&(n=d.filter(i,n)),this.length>1&&(O[e]||(n=d.unique(n)),P.test(e)&&(n=n.reverse())),this.pushStack(n)}}));var A,D=/\S+/g,x={};function F(){R.addEventListener?(R.removeEventListener("DOMContentLoaded",M,!1),e.removeEventListener("load",M,!1)):(R.detachEvent("onreadystatechange",M),e.detachEvent("onload",M))}function M(){(R.addEventListener||"load"===event.type||"complete"===R.readyState)&&(F(),d.ready())}d.Callbacks=function(e){e="string"==typeof e?x[e]||function(e){var t=x[e]={};return d.each(e.match(D)||[],(function(e,o){t[o]=!0})),t}(e):d.extend({},e);var t,o,i,n,r,s,a=[],l=!e.once&&[],p=function p(c){for(o=e.memory&&c,i=!0,r=s||0,s=0,n=a.length,t=!0;a&&r<n;r++)if(!1===a[r].apply(c[0],c[1])&&e.stopOnFalse){o=!1;break}t=!1,a&&(l?l.length&&p(l.shift()):o?a=[]:u.disable())},u={add:function(){if(a){var i=a.length;!function t(o){d.each(o,(function(o,i){var n=d.type(i);"function"===n?e.unique&&u.has(i)||a.push(i):i&&i.length&&"string"!==n&&t(i)}))}(arguments),t?n=a.length:o&&(s=i,p(o))}return this},remove:function(){return a&&d.each(arguments,(function(e,o){for(var i;(i=d.inArray(o,a,i))>-1;)a.splice(i,1),t&&(i<=n&&n--,i<=r&&r--)})),this},has:function(e){return e?d.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],n=0,this},disable:function(){return a=l=o=void 0,this},disabled:function(){return!a},lock:function(){return l=void 0,o||u.disable(),this},locked:function(){return!l},fireWith:function(e,o){return!a||i&&!l||(o=[e,(o=o||[]).slice?o.slice():o],t?l.push(o):p(o)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},d.extend({Deferred:function(e){var t=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],o="pending",i={state:function(){return o},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var e=arguments;return d.Deferred((function(o){d.each(t,(function(t,r){var s=d.isFunction(e[t])&&e[t];n[r[1]]((function(){var e=s&&s.apply(this,arguments);e&&d.isFunction(e.promise)?e.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[r[0]+"With"](this===i?o.promise():this,s?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?d.extend(e,i):i}},n={};return i.pipe=i.then,d.each(t,(function(e,r){var s=r[2],a=r[3];i[r[1]]=s.add,a&&s.add((function(){o=a}),t[1^e][2].disable,t[2][2].lock),n[r[0]]=function(){return n[r[0]+"With"](this===n?i:this,arguments),this},n[r[0]+"With"]=s.fireWith})),i.promise(n),e&&e.call(n,n),n},when:function(e){var t,o,n,r=0,s=i.call(arguments),a=s.length,l=1!==a||e&&d.isFunction(e.promise)?a:0,p=1===l?e:d.Deferred(),u=function(e,o,n){return function(r){o[e]=this,n[e]=arguments.length>1?i.call(arguments):r,n===t?p.notifyWith(o,n):--l||p.resolveWith(o,n)}};if(a>1)for(t=new Array(a),o=new Array(a),n=new Array(a);r<a;r++)s[r]&&d.isFunction(s[r].promise)?s[r].promise().done(u(r,n,s)).fail(p.reject).progress(u(r,o,t)):--l;return l||p.resolveWith(n,s),p.promise()}}),d.fn.ready=function(e){return d.ready.promise().done(e),this},d.extend({isReady:!1,readyWait:1,holdReady:function(e){e?d.readyWait++:d.ready(!0)},ready:function(e){if(!(!0===e?--d.readyWait:d.isReady)){if(!R.body)return setTimeout(d.ready);d.isReady=!0,!0!==e&&--d.readyWait>0||(A.resolveWith(R,[d]),d.fn.triggerHandler&&(d(R).triggerHandler("ready"),d(R).off("ready")))}}}),d.ready.promise=function(t){if(!A)if(A=d.Deferred(),"complete"===R.readyState)setTimeout(d.ready);else if(R.addEventListener)R.addEventListener("DOMContentLoaded",M,!1),e.addEventListener("load",M,!1);else{R.attachEvent("onreadystatechange",M),e.attachEvent("onload",M);var o=!1;try{o=null==e.frameElement&&R.documentElement}catch(e){}o&&o.doScroll&&function e(){if(!d.isReady){try{o.doScroll("left")}catch(t){return setTimeout(e,50)}F(),d.ready()}}()}return A.promise(t)};var N,L="undefined";for(N in d(u))break;u.ownLast="0"!==N,u.inlineBlockNeedsLayout=!1,d((function(){var e,t,o,i;(o=R.getElementsByTagName("body")[0])&&o.style&&(t=R.createElement("div"),(i=R.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",o.appendChild(i).appendChild(t),_typeof2(t.style.zoom)!==L&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",u.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(o.style.zoom=1)),o.removeChild(i))})),function(){var e=R.createElement("div");if(null==u.deleteExpando){u.deleteExpando=!0;try{delete e.test}catch(e){u.deleteExpando=!1}}e=null}(),d.acceptData=function(e){var t=d.noData[(e.nodeName+" ").toLowerCase()],o=+e.nodeType||1;return(1===o||9===o)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var I=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,k=/([A-Z])/g;function G(e,t,o){if(void 0===o&&1===e.nodeType){var i="data-"+t.replace(k,"-$1").toLowerCase();if("string"==typeof(o=e.getAttribute(i))){try{o="true"===o||"false"!==o&&("null"===o?null:+o+""===o?+o:I.test(o)?d.parseJSON(o):o)}catch(e){}d.data(e,t,o)}else o=void 0}return o}function W(e){var t;for(t in e)if(("data"!==t||!d.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function H(e,t,i,n){if(d.acceptData(e)){var r,s,a=d.expando,l=e.nodeType,p=l?d.cache:e,u=l?e[a]:e[a]&&a;if(u&&p[u]&&(n||p[u].data)||void 0!==i||"string"!=typeof t)return u||(u=l?e[a]=o.pop()||d.guid++:a),p[u]||(p[u]=l?{}:{toJSON:d.noop}),"object"!==_typeof2(t)&&"function"!=typeof t||(n?p[u]=d.extend(p[u],t):p[u].data=d.extend(p[u].data,t)),s=p[u],n||(s.data||(s.data={}),s=s.data),void 0!==i&&(s[d.camelCase(t)]=i),"string"==typeof t?null==(r=s[t])&&(r=s[d.camelCase(t)]):r=s,r}}function V(e,t,o){if(d.acceptData(e)){var i,n,r=e.nodeType,s=r?d.cache:e,a=r?e[d.expando]:d.expando;if(s[a]){if(t&&(i=o?s[a]:s[a].data)){n=(t=d.isArray(t)?t.concat(d.map(t,d.camelCase)):t in i||(t=d.camelCase(t))in i?[t]:t.split(" ")).length;for(;n--;)delete i[t[n]];if(o?!W(i):!d.isEmptyObject(i))return}(o||(delete s[a].data,W(s[a])))&&(r?d.cleanData([e],!0):u.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}d.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?d.cache[e[d.expando]]:e[d.expando])&&!W(e)},data:function(e,t,o){return H(e,t,o)},removeData:function(e,t){return V(e,t)},_data:function(e,t,o){return H(e,t,o,!0)},_removeData:function(e,t){return V(e,t,!0)}}),d.fn.extend({data:function(e,t){var o,i,n,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(n=d.data(r),1===r.nodeType&&!d._data(r,"parsedAttrs"))){for(o=s.length;o--;)s[o]&&0===(i=s[o].name).indexOf("data-")&&G(r,i=d.camelCase(i.slice(5)),n[i]);d._data(r,"parsedAttrs",!0)}return n}return"object"===_typeof2(e)?this.each((function(){d.data(this,e)})):arguments.length>1?this.each((function(){d.data(this,e,t)})):r?G(r,e,d.data(r,e)):void 0},removeData:function(e){return this.each((function(){d.removeData(this,e)}))}}),d.extend({queue:function(e,t,o){var i;if(e)return i=d._data(e,t=(t||"fx")+"queue"),o&&(!i||d.isArray(o)?i=d._data(e,t,d.makeArray(o)):i.push(o)),i||[]},dequeue:function(e,t){var o=d.queue(e,t=t||"fx"),i=o.length,n=o.shift(),r=d._queueHooks(e,t);"inprogress"===n&&(n=o.shift(),i--),n&&("fx"===t&&o.unshift("inprogress"),delete r.stop,n.call(e,(function(){d.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var o=t+"queueHooks";return d._data(e,o)||d._data(e,o,{empty:d.Callbacks("once memory").add((function(){d._removeData(e,t+"queue"),d._removeData(e,o)}))})}}),d.fn.extend({queue:function(e,t){var o=2;return"string"!=typeof e&&(t=e,e="fx",o--),arguments.length<o?d.queue(this[0],e):void 0===t?this:this.each((function(){var o=d.queue(this,e,t);d._queueHooks(this,e),"fx"===e&&"inprogress"!==o[0]&&d.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){d.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var o,i=1,n=d.Deferred(),r=this,s=this.length,a=function(){--i||n.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(o=d._data(r[s],e+"queueHooks"))&&o.empty&&(i++,o.empty.add(a));return a(),n.promise(t)}});var j=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,B=["Top","Right","Bottom","Left"],z=function(e,t){return"none"===d.css(e=t||e,"display")||!d.contains(e.ownerDocument,e)},U=d.access=function(e,t,o,i,n,r,s){var a=0,l=e.length,p=null==o;if("object"===d.type(o))for(a in n=!0,o)d.access(e,t,a,o[a],!0,r,s);else if(void 0!==i&&(n=!0,d.isFunction(i)||(s=!0),p&&(s?(t.call(e,i),t=null):(p=t,t=function(e,t,o){return p.call(d(e),o)})),t))for(;a<l;a++)t(e[a],o,s?i:i.call(e[a],a,t(e[a],o)));return n?e:p?t.call(e):l?t(e[0],o):r},Y=/^(?:checkbox|radio)$/i;!function(){var e=R.createElement("input"),t=R.createElement("div"),o=R.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",u.leadingWhitespace=3===t.firstChild.nodeType,u.tbody=!t.getElementsByTagName("tbody").length,u.htmlSerialize=!!t.getElementsByTagName("link").length,u.html5Clone="<:nav></:nav>"!==R.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,o.appendChild(e),u.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",u.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,o.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",u.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,u.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",(function(){u.noCloneEvent=!1})),t.cloneNode(!0).click()),null==u.deleteExpando){u.deleteExpando=!0;try{delete t.test}catch(e){u.deleteExpando=!1}}}(),function(){var t,o,i=R.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})o="on"+t,(u[t+"Bubbles"]=o in e)||(i.setAttribute(o,"t"),u[t+"Bubbles"]=!1===i.attributes[o].expando);i=null}();var $=/^(?:input|select|textarea)$/i,q=/^key/,K=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function J(){return!1}function ee(){try{return R.activeElement}catch(e){}}function te(e){var t=oe.split("|"),o=e.createDocumentFragment();if(o.createElement)for(;t.length;)o.createElement(t.pop());return o}d.event={global:{},add:function(e,t,o,i,n){var r,s,a,l,p,u,c,h,f,g,y,m=d._data(e);if(m){for(o.handler&&(o=(l=o).handler,n=l.selector),o.guid||(o.guid=d.guid++),(s=m.events)||(s=m.events={}),(u=m.handle)||((u=m.handle=function(e){return _typeof2(d)===L||e&&d.event.triggered===e.type?void 0:d.event.dispatch.apply(u.elem,arguments)}).elem=e),a=(t=(t||"").match(D)||[""]).length;a--;)f=y=(r=Q.exec(t[a])||[])[1],g=(r[2]||"").split(".").sort(),f&&(p=d.event.special[f]||{},f=(n?p.delegateType:p.bindType)||f,p=d.event.special[f]||{},c=d.extend({type:f,origType:y,data:i,handler:o,guid:o.guid,selector:n,needsContext:n&&d.expr.match.needsContext.test(n),namespace:g.join(".")},l),(h=s[f])||((h=s[f]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,i,g,u)||(e.addEventListener?e.addEventListener(f,u,!1):e.attachEvent&&e.attachEvent("on"+f,u))),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=o.guid)),n?h.splice(h.delegateCount++,0,c):h.push(c),d.event.global[f]=!0);e=null}},remove:function(e,t,o,i,n){var r,s,a,l,p,u,c,h,f,g,y,m=d.hasData(e)&&d._data(e);if(m&&(u=m.events)){for(p=(t=(t||"").match(D)||[""]).length;p--;)if(f=y=(a=Q.exec(t[p])||[])[1],g=(a[2]||"").split(".").sort(),f){for(c=d.event.special[f]||{},h=u[f=(i?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=h.length;r--;)s=h[r],!n&&y!==s.origType||o&&o.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(h.splice(r,1),s.selector&&h.delegateCount--,c.remove&&c.remove.call(e,s));l&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,g,m.handle)||d.removeEvent(e,f,m.handle),delete u[f])}else for(f in u)d.event.remove(e,f+t[p],o,i,!0);d.isEmptyObject(u)&&(delete m.handle,d._removeData(e,"events"))}},trigger:function(t,o,i,n){var r,s,a,l,u,c,h,f=[i||R],g=p.call(t,"type")?t.type:t,y=p.call(t,"namespace")?t.namespace.split("."):[];if(a=c=i=i||R,3!==i.nodeType&&8!==i.nodeType&&!X.test(g+d.event.triggered)&&(g.indexOf(".")>=0&&(y=g.split("."),g=y.shift(),y.sort()),s=g.indexOf(":")<0&&"on"+g,(t=t[d.expando]?t:new d.Event(g,"object"===_typeof2(t)&&t)).isTrigger=n?2:3,t.namespace=y.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),o=null==o?[t]:d.makeArray(o,[t]),u=d.event.special[g]||{},n||!u.trigger||!1!==u.trigger.apply(i,o))){if(!n&&!u.noBubble&&!d.isWindow(i)){for(l=u.delegateType||g,X.test(l+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),c=a;c===(i.ownerDocument||R)&&f.push(c.defaultView||c.parentWindow||e)}for(h=0;(a=f[h++])&&!t.isPropagationStopped();)t.type=h>1?l:u.bindType||g,(r=(d._data(a,"events")||{})[t.type]&&d._data(a,"handle"))&&r.apply(a,o),(r=s&&a[s])&&r.apply&&d.acceptData(a)&&(t.result=r.apply(a,o),!1===t.result&&t.preventDefault());if(t.type=g,!n&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),o))&&d.acceptData(i)&&s&&i[g]&&!d.isWindow(i)){(c=i[s])&&(i[s]=null),d.event.triggered=g;try{i[g]()}catch(e){}d.event.triggered=void 0,c&&(i[s]=c)}return t.result}},dispatch:function(e){e=d.event.fix(e);var t,o,n,r,s,a=[],l=i.call(arguments),p=(d._data(this,"events")||{})[e.type]||[],u=d.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=d.event.handlers.call(this,e,p),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,s=0;(n=r.handlers[s++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(n.namespace)||(e.handleObj=n,e.data=n.data,void 0!==(o=((d.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,l))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var o,i,n,r,s=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(n=[],r=0;r<a;r++)void 0===n[o=(i=t[r]).selector+" "]&&(n[o]=i.needsContext?d(o,this).index(l)>=0:d.find(o,this,null,[l]).length),n[o]&&n.push(i);n.length&&s.push({elem:l,handlers:n})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},fix:function(e){if(e[d.expando])return e;var t,o,i,n=e.type,r=e,s=this.fixHooks[n];for(s||(this.fixHooks[n]=s=K.test(n)?this.mouseHooks:q.test(n)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,e=new d.Event(r),t=i.length;t--;)e[o=i[t]]=r[o];return e.target||(e.target=r.srcElement||R),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var o,i,n,r=t.button,s=t.fromElement;return null==e.pageX&&null!=t.clientX&&(n=(i=e.target.ownerDocument||R).documentElement,o=i.body,e.pageX=t.clientX+(n&&n.scrollLeft||o&&o.scrollLeft||0)-(n&&n.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||o&&o.scrollTop||0)-(n&&n.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?t.toElement:s),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ee()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===ee()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(d.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return d.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,o,i){var n=d.extend(new d.Event,o,{type:e,isSimulated:!0,originalEvent:{}});i?d.event.trigger(n,null,t):d.event.dispatch.call(t,n),n.isDefaultPrevented()&&o.preventDefault()}},d.removeEvent=R.removeEventListener?function(e,t,o){e.removeEventListener&&e.removeEventListener(t,o,!1)}:function(e,t,o){var i="on"+t;e.detachEvent&&(_typeof2(e[i])===L&&(e[i]=null),e.detachEvent(i,o))},(d.Event=function(e,t){if(!(this instanceof d.Event))return new d.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Z:J):this.type=e,t&&d.extend(this,t),this.timeStamp=e&&e.timeStamp||d.now(),this[d.expando]=!0}).prototype={isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Z,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Z,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Z,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){d.event.special[e]={delegateType:t,bindType:t,handle:function(e){var o,i=this,n=e.relatedTarget,r=e.handleObj;return n&&(n===i||d.contains(i,n))||(e.type=r.origType,o=r.handler.apply(this,arguments),e.type=t),o}}})),u.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;d.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,o=d.nodeName(t,"input")||d.nodeName(t,"button")?t.form:void 0;o&&!d._data(o,"submitBubbles")&&(d.event.add(o,"submit._submit",(function(e){e._submit_bubble=!0})),d._data(o,"submitBubbles",!0))}))},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&d.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(d.nodeName(this,"form"))return!1;d.event.remove(this,"._submit")}}),u.changeBubbles||(d.event.special.change={setup:function(){if($.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(d.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)})),d.event.add(this,"click._change",(function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),d.event.simulate("change",this,e,!0)}))),!1;d.event.add(this,"beforeactivate._change",(function(e){var t=e.target;$.test(t.nodeName)&&!d._data(t,"changeBubbles")&&(d.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||d.event.simulate("change",this.parentNode,e,!0)})),d._data(t,"changeBubbles",!0))}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return d.event.remove(this,"._change"),!$.test(this.nodeName)}}),u.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},(function(e,t){var o=function(e){d.event.simulate(t,e.target,d.event.fix(e),!0)};d.event.special[t]={setup:function(){var i=this.ownerDocument||this,n=d._data(i,t);n||i.addEventListener(e,o,!0),d._data(i,t,(n||0)+1)},teardown:function(){var i=this.ownerDocument||this,n=d._data(i,t)-1;n?d._data(i,t,n):(i.removeEventListener(e,o,!0),d._removeData(i,t))}}})),d.fn.extend({on:function(e,t,o,i,n){var r,s;if("object"===_typeof2(e)){for(r in"string"!=typeof t&&(o=o||t,t=void 0),e)this.on(r,t,o,e[r],n);return this}if(null==o&&null==i?(i=t,o=t=void 0):null==i&&("string"==typeof t?(i=o,o=void 0):(i=o,o=t,t=void 0)),!1===i)i=J;else if(!i)return this;return 1===n&&(s=i,(i=function(e){return d().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=d.guid++)),this.each((function(){d.event.add(this,e,i,o,t)}))},one:function(e,t,o,i){return this.on(e,t,o,i,1)},off:function(e,t,o){var i,n;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,d(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===_typeof2(e)){for(n in e)this.off(n,t,e[n]);return this}return!1!==t&&"function"!=typeof t||(o=t,t=void 0),!1===o&&(o=J),this.each((function(){d.event.remove(this,e,o,t)}))},trigger:function(e,t){return this.each((function(){d.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var o=this[0];if(o)return d.event.trigger(e,t,o,!0)}});var oe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ie=/ jQuery\d+="(?:null|\d+)"/g,ne=new RegExp("<(?:"+oe+")[\\s/>]","i"),re=/^\s+/,se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ae=/<([\w:]+)/,le=/<tbody/i,pe=/<|&#?\w+;/,ue=/<(?:script|style|link)/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,de=/^$|\/(?:java|ecma)script/i,he=/^true\/(.*)/,fe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ge={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:u.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ye=te(R).appendChild(R.createElement("div"));function me(e,t){var o,i,n=0,r=_typeof2(e.getElementsByTagName)!==L?e.getElementsByTagName(t||"*"):_typeof2(e.querySelectorAll)!==L?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],o=e.childNodes||e;null!=(i=o[n]);n++)!t||d.nodeName(i,t)?r.push(i):d.merge(r,me(i,t));return void 0===t||t&&d.nodeName(e,t)?d.merge([e],r):r}function ve(e){Y.test(e.type)&&(e.defaultChecked=e.checked)}function Ce(e,t){return d.nodeName(e,"table")&&d.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function _e(e){return e.type=(null!==d.find.attr(e,"type"))+"/"+e.type,e}function we(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function be(e,t){for(var o,i=0;null!=(o=e[i]);i++)d._data(o,"globalEval",!t||d._data(t[i],"globalEval"))}function Ee(e,t){if(1===t.nodeType&&d.hasData(e)){var o,i,n,r=d._data(e),s=d._data(t,r),a=r.events;if(a)for(o in delete s.handle,s.events={},a)for(i=0,n=a[o].length;i<n;i++)d.event.add(t,o,a[o][i]);s.data&&(s.data=d.extend({},s.data))}}function Re(e,t){var o,i,n;if(1===t.nodeType){if(o=t.nodeName.toLowerCase(),!u.noCloneEvent&&t[d.expando]){for(i in(n=d._data(t)).events)d.removeEvent(t,i,n.handle);t.removeAttribute(d.expando)}"script"===o&&t.text!==e.text?(_e(t).text=e.text,we(t)):"object"===o?(t.parentNode&&(t.outerHTML=e.outerHTML),u.html5Clone&&e.innerHTML&&!d.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===o&&Y.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===o?t.defaultSelected=t.selected=e.defaultSelected:"input"!==o&&"textarea"!==o||(t.defaultValue=e.defaultValue)}}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,d.extend({clone:function(e,t,o){var i,n,r,s,a,l=d.contains(e.ownerDocument,e);if(u.html5Clone||d.isXMLDoc(e)||!ne.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(ye.innerHTML=e.outerHTML,ye.removeChild(r=ye.firstChild)),!(u.noCloneEvent&&u.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||d.isXMLDoc(e)))for(i=me(r),a=me(e),s=0;null!=(n=a[s]);++s)i[s]&&Re(n,i[s]);if(t)if(o)for(a=a||me(e),i=i||me(r),s=0;null!=(n=a[s]);s++)Ee(n,i[s]);else Ee(e,r);return(i=me(r,"script")).length>0&&be(i,!l&&me(e,"script")),i=a=n=null,r},buildFragment:function(e,t,o,i){for(var n,r,s,a,l,p,c,h=e.length,f=te(t),g=[],y=0;y<h;y++)if((r=e[y])||0===r)if("object"===d.type(r))d.merge(g,r.nodeType?[r]:r);else if(pe.test(r)){for(a=a||f.appendChild(t.createElement("div")),l=(ae.exec(r)||["",""])[1].toLowerCase(),c=ge[l]||ge._default,a.innerHTML=c[1]+r.replace(se,"<$1></$2>")+c[2],n=c[0];n--;)a=a.lastChild;if(!u.leadingWhitespace&&re.test(r)&&g.push(t.createTextNode(re.exec(r)[0])),!u.tbody)for(n=(r="table"!==l||le.test(r)?"<table>"!==c[1]||le.test(r)?0:a:a.firstChild)&&r.childNodes.length;n--;)d.nodeName(p=r.childNodes[n],"tbody")&&!p.childNodes.length&&r.removeChild(p);for(d.merge(g,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=f.lastChild}else g.push(t.createTextNode(r));for(a&&f.removeChild(a),u.appendChecked||d.grep(me(g,"input"),ve),y=0;r=g[y++];)if((!i||-1===d.inArray(r,i))&&(s=d.contains(r.ownerDocument,r),a=me(f.appendChild(r),"script"),s&&be(a),o))for(n=0;r=a[n++];)de.test(r.type||"")&&o.push(r);return a=null,f},cleanData:function(e,t){for(var i,n,r,s,a=0,l=d.expando,p=d.cache,c=u.deleteExpando,h=d.event.special;null!=(i=e[a]);a++)if((t||d.acceptData(i))&&(s=(r=i[l])&&p[r])){if(s.events)for(n in s.events)h[n]?d.event.remove(i,n):d.removeEvent(i,n,s.handle);p[r]&&(delete p[r],c?delete i[l]:_typeof2(i.removeAttribute)!==L?i.removeAttribute(l):i[l]=null,o.push(r))}}}),d.fn.extend({text:function(e){return U(this,(function(e){return void 0===e?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||R).createTextNode(e))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ce(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ce(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var o,i=e?d.filter(e,this):this,n=0;null!=(o=i[n]);n++)t||1!==o.nodeType||d.cleanData(me(o)),o.parentNode&&(t&&d.contains(o.ownerDocument,o)&&be(me(o,"script")),o.parentNode.removeChild(o));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&d.cleanData(me(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&d.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return d.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},o=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ie,""):void 0;if("string"==typeof e&&!ue.test(e)&&(u.htmlSerialize||!ne.test(e))&&(u.leadingWhitespace||!re.test(e))&&!ge[(ae.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(se,"<$1></$2>");try{for(;o<i;o++)1===(t=this[o]||{}).nodeType&&(d.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){e=this.parentNode,d.cleanData(me(this)),e&&e.replaceChild(t,this)})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=n.apply([],e);var o,i,r,s,a,l,p=0,c=this.length,h=this,f=c-1,g=e[0],y=d.isFunction(g);if(y||c>1&&"string"==typeof g&&!u.checkClone&&ce.test(g))return this.each((function(o){var i=h.eq(o);y&&(e[0]=g.call(this,o,i.html())),i.domManip(e,t)}));if(c&&(o=(l=d.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=o),o)){for(r=(s=d.map(me(l,"script"),_e)).length;p<c;p++)i=l,p!==f&&(i=d.clone(i,!0,!0),r&&d.merge(s,me(i,"script"))),t.call(this[p],i,p);if(r)for(a=s[s.length-1].ownerDocument,d.map(s,we),p=0;p<r;p++)i=s[p],de.test(i.type||"")&&!d._data(i,"globalEval")&&d.contains(a,i)&&(i.src?d._evalUrl&&d._evalUrl(i.src):d.globalEval((i.text||i.textContent||i.innerHTML||"").replace(fe,"")));l=o=null}return this}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){d.fn[e]=function(e){for(var o,i=0,n=[],s=d(e),a=s.length-1;i<=a;i++)o=i===a?this:this.clone(!0),d(s[i])[t](o),r.apply(n,o.get());return this.pushStack(n)}}));var Se,Pe,Oe={};function Te(t,o){var i,n=d(o.createElement(t)).appendTo(o.body),r=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(n[0]))?i.display:d.css(n[0],"display");return n.detach(),r}function Ae(e){var t=R,o=Oe[e];return o||("none"!==(o=Te(e,t))&&o||((t=((Se=(Se||d("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Se[0].contentDocument).document).write(),t.close(),o=Te(e,t),Se.detach()),Oe[e]=o),o}u.shrinkWrapBlocks=function(){return null!=Pe?Pe:(Pe=!1,(t=R.getElementsByTagName("body")[0])&&t.style?(e=R.createElement("div"),(o=R.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(o).appendChild(e),_typeof2(e.style.zoom)!==L&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(R.createElement("div")).style.width="5px",Pe=3!==e.offsetWidth),t.removeChild(o),Pe):void 0);var e,t,o};var De,xe,Fe=/^margin/,Me=new RegExp("^("+j+")(?!px)[a-z%]+$","i"),Ne=/^(top|right|bottom|left)$/;function Le(e,t){return{get:function(){var o=e();if(null!=o){if(!o)return(this.get=t).apply(this,arguments);delete this.get}}}}e.getComputedStyle?(De=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},xe=function(e,t,o){var i,n,r,s,a=e.style;return s=(o=o||De(e))?o.getPropertyValue(t)||o[t]:void 0,o&&(""!==s||d.contains(e.ownerDocument,e)||(s=d.style(e,t)),Me.test(s)&&Fe.test(t)&&(i=a.width,n=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=o.width,a.width=i,a.minWidth=n,a.maxWidth=r)),void 0===s?s:s+""}):R.documentElement.currentStyle&&(De=function(e){return e.currentStyle},xe=function(e,t,o){var i,n,r,s,a=e.style;return null==(s=(o=o||De(e))?o[t]:void 0)&&a&&a[t]&&(s=a[t]),Me.test(s)&&!Ne.test(t)&&(i=a.left,(r=(n=e.runtimeStyle)&&n.left)&&(n.left=e.currentStyle.left),a.left="fontSize"===t?"1em":s,s=a.pixelLeft+"px",a.left=i,r&&(n.left=r)),void 0===s?s:s+""||"auto"}),function(){var t,o,i,n,r,s,a;function l(){var t,o,i,l;(o=R.getElementsByTagName("body")[0])&&o.style&&(t=R.createElement("div"),(i=R.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",o.appendChild(i).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",n=r=!1,a=!0,e.getComputedStyle&&(n="1%"!==(e.getComputedStyle(t,null)||{}).top,r="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(l=t.appendChild(R.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",t.style.width="1px",a=!parseFloat((e.getComputedStyle(l,null)||{}).marginRight),t.removeChild(l)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(l=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",s=0===l[0].offsetHeight),o.removeChild(i))}(t=R.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(o=(i=t.getElementsByTagName("a")[0])&&i.style)&&(o.cssText="float:left;opacity:.5",u.opacity="0.5"===o.opacity,u.cssFloat=!!o.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle="content-box"===t.style.backgroundClip,u.boxSizing=""===o.boxSizing||""===o.MozBoxSizing||""===o.WebkitBoxSizing,d.extend(u,{reliableHiddenOffsets:function(){return null==s&&l(),s},boxSizingReliable:function(){return null==r&&l(),r},pixelPosition:function(){return null==n&&l(),n},reliableMarginRight:function(){return null==a&&l(),a}}))}(),d.swap=function(e,t,o,i){var n,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in n=o.apply(e,i||[]),t)e.style[r]=s[r];return n};var Ie=/alpha\([^)]*\)/i,ke=/opacity\s*=\s*([^)]*)/,Ge=/^(none|table(?!-c[ea]).+)/,We=new RegExp("^("+j+")(.*)$","i"),He=new RegExp("^([+-])=("+j+")","i"),Ve={position:"absolute",visibility:"hidden",display:"block"},je={letterSpacing:"0",fontWeight:"400"},Be=["Webkit","O","Moz","ms"];function ze(e,t){if(t in e)return t;for(var o=t.charAt(0).toUpperCase()+t.slice(1),i=t,n=Be.length;n--;)if((t=Be[n]+o)in e)return t;return i}function Ue(e,t){for(var o,i,n,r=[],s=0,a=e.length;s<a;s++)(i=e[s]).style&&(r[s]=d._data(i,"olddisplay"),o=i.style.display,t?(r[s]||"none"!==o||(i.style.display=""),""===i.style.display&&z(i)&&(r[s]=d._data(i,"olddisplay",Ae(i.nodeName)))):(n=z(i),(o&&"none"!==o||!n)&&d._data(i,"olddisplay",n?o:d.css(i,"display"))));for(s=0;s<a;s++)(i=e[s]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[s]||"":"none"));return e}function Ye(e,t,o){var i=We.exec(t);return i?Math.max(0,i[1]-(o||0))+(i[2]||"px"):t}function $e(e,t,o,i,n){for(var r=o===(i?"border":"content")?4:"width"===t?1:0,s=0;r<4;r+=2)"margin"===o&&(s+=d.css(e,o+B[r],!0,n)),i?("content"===o&&(s-=d.css(e,"padding"+B[r],!0,n)),"margin"!==o&&(s-=d.css(e,"border"+B[r]+"Width",!0,n))):(s+=d.css(e,"padding"+B[r],!0,n),"padding"!==o&&(s+=d.css(e,"border"+B[r]+"Width",!0,n)));return s}function qe(e,t,o){var i=!0,n="width"===t?e.offsetWidth:e.offsetHeight,r=De(e),s=u.boxSizing&&"border-box"===d.css(e,"boxSizing",!1,r);if(n<=0||null==n){if(((n=xe(e,t,r))<0||null==n)&&(n=e.style[t]),Me.test(n))return n;i=s&&(u.boxSizingReliable()||n===e.style[t]),n=parseFloat(n)||0}return n+$e(e,t,o||(s?"border":"content"),i,r)+"px"}function Ke(e,t,o,i,n){return new Ke.prototype.init(e,t,o,i,n)}d.extend({cssHooks:{opacity:{get:function(e,t){if(t){var o=xe(e,"opacity");return""===o?"1":o}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:u.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,o,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,r,s,a=d.camelCase(t),l=e.style;if(t=d.cssProps[a]||(d.cssProps[a]=ze(l,a)),s=d.cssHooks[t]||d.cssHooks[a],void 0===o)return s&&"get"in s&&void 0!==(n=s.get(e,!1,i))?n:l[t];if(!("string"===(r=_typeof2(o))&&(n=He.exec(o))&&(o=(n[1]+1)*n[2]+parseFloat(d.css(e,t)),r="number"),null==o||o!=o||("number"!==r||d.cssNumber[a]||(o+="px"),u.clearCloneStyle||""!==o||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(o=s.set(e,o,i)))))try{l[t]=o}catch(e){}}},css:function(e,t,o,i){var n,r,s,a=d.camelCase(t);return t=d.cssProps[a]||(d.cssProps[a]=ze(e.style,a)),(s=d.cssHooks[t]||d.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,o)),void 0===r&&(r=xe(e,t,i)),"normal"===r&&t in je&&(r=je[t]),""===o||o?(n=parseFloat(r),!0===o||d.isNumeric(n)?n||0:r):r}}),d.each(["height","width"],(function(e,t){d.cssHooks[t]={get:function(e,o,i){if(o)return Ge.test(d.css(e,"display"))&&0===e.offsetWidth?d.swap(e,Ve,(function(){return qe(e,t,i)})):qe(e,t,i)},set:function(e,o,i){var n=i&&De(e);return Ye(0,o,i?$e(e,t,i,u.boxSizing&&"border-box"===d.css(e,"boxSizing",!1,n),n):0)}}})),u.opacity||(d.cssHooks.opacity={get:function(e,t){return ke.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var o=e.style,i=e.currentStyle,n=d.isNumeric(t)?"alpha(opacity="+100*t+")":"",r=i&&i.filter||o.filter||"";o.zoom=1,(t>=1||""===t)&&""===d.trim(r.replace(Ie,""))&&o.removeAttribute&&(o.removeAttribute("filter"),""===t||i&&!i.filter)||(o.filter=Ie.test(r)?r.replace(Ie,n):r+" "+n)}}),d.cssHooks.marginRight=Le(u.reliableMarginRight,(function(e,t){if(t)return d.swap(e,{display:"inline-block"},xe,[e,"marginRight"])})),d.each({margin:"",padding:"",border:"Width"},(function(e,t){d.cssHooks[e+t]={expand:function(o){for(var i=0,n={},r="string"==typeof o?o.split(" "):[o];i<4;i++)n[e+B[i]+t]=r[i]||r[i-2]||r[0];return n}},Fe.test(e)||(d.cssHooks[e+t].set=Ye)})),d.fn.extend({css:function(e,t){return U(this,(function(e,t,o){var i,n,r={},s=0;if(d.isArray(t)){for(i=De(e),n=t.length;s<n;s++)r[t[s]]=d.css(e,t[s],!1,i);return r}return void 0!==o?d.style(e,t,o):d.css(e,t)}),e,t,arguments.length>1)},show:function(){return Ue(this,!0)},hide:function(){return Ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){z(this)?d(this).show():d(this).hide()}))}}),d.Tween=Ke,Ke.prototype={constructor:Ke,init:function(e,t,o,i,n,r){this.elem=e,this.prop=o,this.easing=n||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(d.cssNumber[o]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,o=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=d.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),o&&o.set?o.set(this):Ke.propHooks._default.set(this),this}},Ke.prototype.init.prototype=Ke.prototype,Ke.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=d.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){d.fx.step[e.prop]?d.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[d.cssProps[e.prop]]||d.cssHooks[e.prop])?d.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ke.propHooks.scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},d.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},(d.fx=Ke.prototype.init).step={};var Xe,Qe,Ze,Je,et,tt,ot,it=/^(?:toggle|show|hide)$/,nt=new RegExp("^(?:([+-])=|)("+j+")([a-z%]*)$","i"),rt=/queueHooks$/,st=[function(e,t,o){var i,n,r,s,a,l,p,c=this,h={},f=e.style,g=e.nodeType&&z(e),y=d._data(e,"fxshow");o.queue||(null==(a=d._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always((function(){c.always((function(){a.unqueued--,d.queue(e,"fx").length||a.empty.fire()}))})));1===e.nodeType&&("height"in t||"width"in t)&&(o.overflow=[f.overflow,f.overflowX,f.overflowY],p=d.css(e,"display"),"inline"===("none"===p?d._data(e,"olddisplay")||Ae(e.nodeName):p)&&"none"===d.css(e,"float")&&(u.inlineBlockNeedsLayout&&"inline"!==Ae(e.nodeName)?f.zoom=1:f.display="inline-block"));o.overflow&&(f.overflow="hidden",u.shrinkWrapBlocks()||c.always((function(){f.overflow=o.overflow[0],f.overflowX=o.overflow[1],f.overflowY=o.overflow[2]})));for(i in t)if(n=t[i],it.exec(n)){if(delete t[i],r=r||"toggle"===n,n===(g?"hide":"show")){if("show"!==n||!y||void 0===y[i])continue;g=!0}h[i]=y&&y[i]||d.style(e,i)}else p=void 0;if(d.isEmptyObject(h))"inline"===("none"===p?Ae(e.nodeName):p)&&(f.display=p);else for(i in y?"hidden"in y&&(g=y.hidden):y=d._data(e,"fxshow",{}),r&&(y.hidden=!g),g?d(e).show():c.done((function(){d(e).hide()})),c.done((function(){var t;for(t in d._removeData(e,"fxshow"),h)d.style(e,t,h[t])})),h)s=ut(g?y[i]:0,i,c),i in y||(y[i]=s.start,g&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],at={"*":[function(e,t){var o=this.createTween(e,t),i=o.cur(),n=nt.exec(t),r=n&&n[3]||(d.cssNumber[e]?"":"px"),s=(d.cssNumber[e]||"px"!==r&&+i)&&nt.exec(d.css(o.elem,e)),a=1,l=20;if(s&&s[3]!==r){r=r||s[3],n=n||[],s=+i||1;do{s/=a=a||".5",d.style(o.elem,e,s+r)}while(a!==(a=o.cur()/i)&&1!==a&&--l)}return n&&(s=o.start=+s||+i||0,o.unit=r,o.end=n[1]?s+(n[1]+1)*n[2]:+n[2]),o}]};function lt(){return setTimeout((function(){Xe=void 0})),Xe=d.now()}function pt(e,t){var o,i={height:e},n=0;for(t=t?1:0;n<4;n+=2-t)i["margin"+(o=B[n])]=i["padding"+o]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,o){for(var i,n=(at[t]||[]).concat(at["*"]),r=0,s=n.length;r<s;r++)if(i=n[r].call(o,t,e))return i}function ct(e,t,o){var i,n,r=0,s=st.length,a=d.Deferred().always((function(){delete l.elem})),l=function(){if(n)return!1;for(var t=Xe||lt(),o=Math.max(0,p.startTime+p.duration-t),i=1-(o/p.duration||0),r=0,s=p.tweens.length;r<s;r++)p.tweens[r].run(i);return a.notifyWith(e,[p,i,o]),i<1&&s?o:(a.resolveWith(e,[p]),!1)},p=a.promise({elem:e,props:d.extend({},t),opts:d.extend(!0,{specialEasing:{}},o),originalProperties:t,originalOptions:o,startTime:Xe||lt(),duration:o.duration,tweens:[],createTween:function(t,o){var i=d.Tween(e,p.opts,t,o,p.opts.specialEasing[t]||p.opts.easing);return p.tweens.push(i),i},stop:function(t){var o=0,i=t?p.tweens.length:0;if(n)return this;for(n=!0;o<i;o++)p.tweens[o].run(1);return t?a.resolveWith(e,[p,t]):a.rejectWith(e,[p,t]),this}}),u=p.props;for(!function(e,t){var o,i,n,r,s;for(o in e)if(n=t[i=d.camelCase(o)],r=e[o],d.isArray(r)&&(n=r[1],r=e[o]=r[0]),o!==i&&(e[i]=r,delete e[o]),(s=d.cssHooks[i])&&"expand"in s)for(o in r=s.expand(r),delete e[i],r)o in e||(e[o]=r[o],t[o]=n);else t[i]=n}(u,p.opts.specialEasing);r<s;r++)if(i=st[r].call(p,e,u,p.opts))return i;return d.map(u,ut,p),d.isFunction(p.opts.start)&&p.opts.start.call(e,p),d.fx.timer(d.extend(l,{elem:e,anim:p,queue:p.opts.queue})),p.progress(p.opts.progress).done(p.opts.done,p.opts.complete).fail(p.opts.fail).always(p.opts.always)}d.Animation=d.extend(ct,{tweener:function(e,t){d.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var o,i=0,n=e.length;i<n;i++)o=e[i],at[o]=at[o]||[],at[o].unshift(t)},prefilter:function(e,t){t?st.unshift(e):st.push(e)}}),d.speed=function(e,t,o){var i=e&&"object"===_typeof2(e)?d.extend({},e):{complete:o||!o&&t||d.isFunction(e)&&e,duration:e,easing:o&&t||t&&!d.isFunction(t)&&t};return i.duration=d.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in d.fx.speeds?d.fx.speeds[i.duration]:d.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){d.isFunction(i.old)&&i.old.call(this),i.queue&&d.dequeue(this,i.queue)},i},d.fn.extend({fadeTo:function(e,t,o,i){return this.filter(z).css("opacity",0).show().end().animate({opacity:t},e,o,i)},animate:function(e,t,o,i){var n=d.isEmptyObject(e),r=d.speed(t,o,i),s=function(){var t=ct(this,d.extend({},e),r);(n||d._data(this,"finish"))&&t.stop(!0)};return s.finish=s,n||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,o){var i=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof e&&(o=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,n=null!=e&&e+"queueHooks",r=d.timers,s=d._data(this);if(n)s[n]&&s[n].stop&&i(s[n]);else for(n in s)s[n]&&s[n].stop&&rt.test(n)&&i(s[n]);for(n=r.length;n--;)r[n].elem!==this||null!=e&&r[n].queue!==e||(r[n].anim.stop(o),t=!1,r.splice(n,1));!t&&o||d.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,o=d._data(this),i=o[e+"queue"],n=o[e+"queueHooks"],r=d.timers,s=i?i.length:0;for(o.finish=!0,d.queue(this,e,[]),n&&n.stop&&n.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete o.finish}))}}),d.each(["toggle","show","hide"],(function(e,t){var o=d.fn[t];d.fn[t]=function(e,i,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(pt(t,!0),e,i,n)}})),d.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){d.fn[e]=function(e,o,i){return this.animate(t,e,o,i)}})),d.timers=[],d.fx.tick=function(){var e,t=d.timers,o=0;for(Xe=d.now();o<t.length;o++)(e=t[o])()||t[o]!==e||t.splice(o--,1);t.length||d.fx.stop(),Xe=void 0},d.fx.timer=function(e){d.timers.push(e),e()?d.fx.start():d.timers.pop()},d.fx.interval=13,d.fx.start=function(){Qe||(Qe=setInterval(d.fx.tick,d.fx.interval))},d.fx.stop=function(){clearInterval(Qe),Qe=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(e,t){return e=d.fx&&d.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,o){var i=setTimeout(t,e);o.stop=function(){clearTimeout(i)}}))},(Je=R.createElement("div")).setAttribute("className","t"),Je.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",tt=Je.getElementsByTagName("a")[0],ot=(et=R.createElement("select")).appendChild(R.createElement("option")),Ze=Je.getElementsByTagName("input")[0],tt.style.cssText="top:1px",u.getSetAttribute="t"!==Je.className,u.style=/top/.test(tt.getAttribute("style")),u.hrefNormalized="/a"===tt.getAttribute("href"),u.checkOn=!!Ze.value,u.optSelected=ot.selected,u.enctype=!!R.createElement("form").enctype,et.disabled=!0,u.optDisabled=!ot.disabled,(Ze=R.createElement("input")).setAttribute("value",""),u.input=""===Ze.getAttribute("value"),Ze.value="t",Ze.setAttribute("type","radio"),u.radioValue="t"===Ze.value;var dt=/\r/g;d.fn.extend({val:function(e){var t,o,i,n=this[0];return arguments.length?(i=d.isFunction(e),this.each((function(o){var n;1===this.nodeType&&(null==(n=i?e.call(this,o,d(this).val()):e)?n="":"number"==typeof n?n+="":d.isArray(n)&&(n=d.map(n,(function(e){return null==e?"":e+""}))),(t=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=d.valHooks[n.type]||d.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(o=t.get(n,"value"))?o:"string"==typeof(o=n.value)?o.replace(dt,""):null==o?"":o:void 0}}),d.extend({valHooks:{option:{get:function(e){var t=d.find.attr(e,"value");return null!=t?t:d.trim(d.text(e))}},select:{get:function(e){for(var t,o,i=e.options,n=e.selectedIndex,r="select-one"===e.type||n<0,s=r?null:[],a=r?n+1:i.length,l=n<0?a:r?n:0;l<a;l++)if(((o=i[l]).selected||l===n)&&(u.optDisabled?!o.disabled:null===o.getAttribute("disabled"))&&(!o.parentNode.disabled||!d.nodeName(o.parentNode,"optgroup"))){if(t=d(o).val(),r)return t;s.push(t)}return s},set:function(e,t){for(var o,i,n=e.options,r=d.makeArray(t),s=n.length;s--;)if(i=n[s],d.inArray(d.valHooks.option.get(i),r)>=0)try{i.selected=o=!0}catch(e){i.scrollHeight}else i.selected=!1;return o||(e.selectedIndex=-1),n}}}}),d.each(["radio","checkbox"],(function(){d.valHooks[this]={set:function(e,t){if(d.isArray(t))return e.checked=d.inArray(d(e).val(),t)>=0}},u.checkOn||(d.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var ht,ft,gt=d.expr.attrHandle,yt=/^(?:checked|selected)$/i,mt=u.getSetAttribute,vt=u.input;d.fn.extend({attr:function(e,t){return U(this,d.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){d.removeAttr(this,e)}))}}),d.extend({attr:function(e,t,o){var i,n,r=e.nodeType;if(e&&3!==r&&8!==r&&2!==r)return _typeof2(e.getAttribute)===L?d.prop(e,t,o):(1===r&&d.isXMLDoc(e)||(t=t.toLowerCase(),i=d.attrHooks[t]||(d.expr.match.bool.test(t)?ft:ht)),void 0===o?i&&"get"in i&&null!==(n=i.get(e,t))?n:null==(n=d.find.attr(e,t))?void 0:n:null!==o?i&&"set"in i&&void 0!==(n=i.set(e,o,t))?n:(e.setAttribute(t,o+""),o):void d.removeAttr(e,t))},removeAttr:function(e,t){var o,i,n=0,r=t&&t.match(D);if(r&&1===e.nodeType)for(;o=r[n++];)i=d.propFix[o]||o,d.expr.match.bool.test(o)?vt&&mt||!yt.test(o)?e[i]=!1:e[d.camelCase("default-"+o)]=e[i]=!1:d.attr(e,o,""),e.removeAttribute(mt?o:i)},attrHooks:{type:{set:function(e,t){if(!u.radioValue&&"radio"===t&&d.nodeName(e,"input")){var o=e.value;return e.setAttribute("type",t),o&&(e.value=o),t}}}}}),ft={set:function(e,t,o){return!1===t?d.removeAttr(e,o):vt&&mt||!yt.test(o)?e.setAttribute(!mt&&d.propFix[o]||o,o):e[d.camelCase("default-"+o)]=e[o]=!0,o}},d.each(d.expr.match.bool.source.match(/\w+/g),(function(e,t){var o=gt[t]||d.find.attr;gt[t]=vt&&mt||!yt.test(t)?function(e,t,i){var n,r;return i||(r=gt[t],gt[t]=n,n=null!=o(e,t,i)?t.toLowerCase():null,gt[t]=r),n}:function(e,t,o){if(!o)return e[d.camelCase("default-"+t)]?t.toLowerCase():null}})),vt&&mt||(d.attrHooks.value={set:function(e,t,o){if(!d.nodeName(e,"input"))return ht&&ht.set(e,t,o);e.defaultValue=t}}),mt||(ht={set:function(e,t,o){var i=e.getAttributeNode(o);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(o)),i.value=t+="","value"===o||t===e.getAttribute(o))return t}},gt.id=gt.name=gt.coords=function(e,t,o){var i;if(!o)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},d.valHooks.button={get:function(e,t){var o=e.getAttributeNode(t);if(o&&o.specified)return o.value},set:ht.set},d.attrHooks.contenteditable={set:function(e,t,o){ht.set(e,""!==t&&t,o)}},d.each(["width","height"],(function(e,t){d.attrHooks[t]={set:function(e,o){if(""===o)return e.setAttribute(t,"auto"),o}}}))),u.style||(d.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ct=/^(?:input|select|textarea|button|object)$/i,_t=/^(?:a|area)$/i;d.fn.extend({prop:function(e,t){return U(this,d.prop,e,t,arguments.length>1)},removeProp:function(e){return e=d.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),d.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,o){var i,n,r=e.nodeType;if(e&&3!==r&&8!==r&&2!==r)return(1!==r||!d.isXMLDoc(e))&&(t=d.propFix[t]||t,n=d.propHooks[t]),void 0!==o?n&&"set"in n&&void 0!==(i=n.set(e,o,t))?i:e[t]=o:n&&"get"in n&&null!==(i=n.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=d.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}}}),u.hrefNormalized||d.each(["href","src"],(function(e,t){d.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),u.optSelected||(d.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){d.propFix[this.toLowerCase()]=this})),u.enctype||(d.propFix.enctype="encoding");var wt=/[\t\r\n\f]/g;d.fn.extend({addClass:function(e){var t,o,i,n,r,s,a=0,l=this.length,p="string"==typeof e&&e;if(d.isFunction(e))return this.each((function(t){d(this).addClass(e.call(this,t,this.className))}));if(p)for(t=(e||"").match(D)||[];a<l;a++)if(i=1===(o=this[a]).nodeType&&(o.className?(" "+o.className+" ").replace(wt," "):" ")){for(r=0;n=t[r++];)i.indexOf(" "+n+" ")<0&&(i+=n+" ");s=d.trim(i),o.className!==s&&(o.className=s)}return this},removeClass:function(e){var t,o,i,n,r,s,a=0,l=this.length,p=0===arguments.length||"string"==typeof e&&e;if(d.isFunction(e))return this.each((function(t){d(this).removeClass(e.call(this,t,this.className))}));if(p)for(t=(e||"").match(D)||[];a<l;a++)if(i=1===(o=this[a]).nodeType&&(o.className?(" "+o.className+" ").replace(wt," "):"")){for(r=0;n=t[r++];)for(;i.indexOf(" "+n+" ")>=0;)i=i.replace(" "+n+" "," ");s=e?d.trim(i):"",o.className!==s&&(o.className=s)}return this},toggleClass:function(e,t){var o=_typeof2(e);return"boolean"==typeof t&&"string"===o?t?this.addClass(e):this.removeClass(e):d.isFunction(e)?this.each((function(o){d(this).toggleClass(e.call(this,o,this.className,t),t)})):this.each((function(){if("string"===o)for(var t,i=0,n=d(this),r=e.match(D)||[];t=r[i++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else o!==L&&"boolean"!==o||(this.className&&d._data(this,"__className__",this.className),this.className=this.className||!1===e?"":d._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",o=0,i=this.length;o<i;o++)if(1===this[o].nodeType&&(" "+this[o].className+" ").replace(wt," ").indexOf(t)>=0)return!0;return!1}}),d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){d.fn[t]=function(e,o){return arguments.length>0?this.on(t,null,e,o):this.trigger(t)}})),d.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,o){return this.on(e,null,t,o)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,o,i){return this.on(t,e,o,i)},undelegate:function(e,t,o){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",o)}});var bt=d.now(),Et=/\?/,Rt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;d.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var o,i=null,n=d.trim(t+"");return n&&!d.trim(n.replace(Rt,(function(e,t,n,r){return o&&t&&(i=0),0===i?e:(o=n||t,i+=!r-!n,"")})))?Function("return "+n)():d.error("Invalid JSON: "+t)},d.parseXML=function(t){var o;if(!t||"string"!=typeof t)return null;try{e.DOMParser?o=(new DOMParser).parseFromString(t,"text/xml"):((o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(t))}catch(e){o=void 0}return o&&o.documentElement&&!o.getElementsByTagName("parsererror").length||d.error("Invalid XML: "+t),o};var St,Pt,Ot=/#.*$/,Tt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Dt=/^(?:GET|HEAD)$/,xt=/^\/\//,Ft=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Mt={},Nt={},Lt="*/".concat("*");try{Pt=location.href}catch(e){(Pt=R.createElement("a")).href="",Pt=Pt.href}function It(e){return function(t,o){"string"!=typeof t&&(o=t,t="*");var i,n=0,r=t.toLowerCase().match(D)||[];if(d.isFunction(o))for(;i=r[n++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(o)):(e[i]=e[i]||[]).push(o)}}function kt(e,t,o,i){var n={},r=e===Nt;function s(a){var l;return n[a]=!0,d.each(e[a]||[],(function(e,a){var p=a(t,o,i);return"string"!=typeof p||r||n[p]?r?!(l=p):void 0:(t.dataTypes.unshift(p),s(p),!1)})),l}return s(t.dataTypes[0])||!n["*"]&&s("*")}function Gt(e,t){var o,i,n=d.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:o||(o={}))[i]=t[i]);return o&&d.extend(!0,e,o),e}St=Ft.exec(Pt.toLowerCase())||[],d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Lt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,d.ajaxSettings),t):Gt(d.ajaxSettings,e)},ajaxPrefilter:It(Mt),ajaxTransport:It(Nt),ajax:function(e,t){"object"===_typeof2(e)&&(t=e,e=void 0);var o,i,n,r,s,a,l,p,u=d.ajaxSetup({},t=t||{}),c=u.context||u,h=u.context&&(c.nodeType||c.jquery)?d(c):d.event,f=d.Deferred(),g=d.Callbacks("once memory"),y=u.statusCode||{},m={},v={},C=0,_="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===C){if(!p)for(p={};t=At.exec(r);)p[t[1].toLowerCase()]=t[2];t=p[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===C?r:null},setRequestHeader:function(e,t){var o=e.toLowerCase();return C||(e=v[o]=v[o]||e,m[e]=t),this},overrideMimeType:function(e){return C||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(C<2)for(t in e)y[t]=[y[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||_;return l&&l.abort(t),b(0,t),this}};if(f.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,u.url=((e||u.url||Pt)+"").replace(Ot,"").replace(xt,St[1]+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=d.trim(u.dataType||"*").toLowerCase().match(D)||[""],null==u.crossDomain&&(o=Ft.exec(u.url.toLowerCase()),u.crossDomain=!(!o||o[1]===St[1]&&o[2]===St[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(St[3]||("http:"===St[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=d.param(u.data,u.traditional)),kt(Mt,u,t,w),2===C)return w;for(i in(a=d.event&&u.global)&&0==d.active++&&d.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Dt.test(u.type),n=u.url,u.hasContent||(u.data&&(n=u.url+=(Et.test(n)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=Tt.test(n)?n.replace(Tt,"$1_="+bt++):n+(Et.test(n)?"&":"?")+"_="+bt++)),u.ifModified&&(d.lastModified[n]&&w.setRequestHeader("If-Modified-Since",d.lastModified[n]),d.etag[n]&&w.setRequestHeader("If-None-Match",d.etag[n])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&w.setRequestHeader("Content-Type",u.contentType),w.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Lt+"; q=0.01":""):u.accepts["*"]),u.headers)w.setRequestHeader(i,u.headers[i]);if(u.beforeSend&&(!1===u.beforeSend.call(c,w,u)||2===C))return w.abort();for(i in _="abort",{success:1,error:1,complete:1})w[i](u[i]);if(l=kt(Nt,u,t,w)){w.readyState=1,a&&h.trigger("ajaxSend",[w,u]),u.async&&u.timeout>0&&(s=setTimeout((function(){w.abort("timeout")}),u.timeout));try{C=1,l.send(m,b)}catch(e){if(!(C<2))throw e;b(-1,e)}}else b(-1,"No Transport");function b(e,t,o,i){var p,m,v,_,b,E=t;2!==C&&(C=2,s&&clearTimeout(s),l=void 0,r=i||"",w.readyState=e>0?4:0,p=e>=200&&e<300||304===e,o&&(_=function(e,t,o){for(var i,n,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in o)r=l[0];else{for(s in o){if(!l[0]||e.converters[s+" "+l[0]]){r=s;break}i||(i=s)}r=r||i}if(r)return r!==l[0]&&l.unshift(r),o[r]}(u,w,o)),_=function(e,t,o,i){var n,r,s,a,l,p={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)p[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(o[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=p[l+" "+r]||p["* "+r]))for(n in p)if((a=n.split(" "))[1]===r&&(s=p[l+" "+a[0]]||p["* "+a[0]])){!0===s?s=p[n]:!0!==p[n]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(u,_,w,p),p?(u.ifModified&&((b=w.getResponseHeader("Last-Modified"))&&(d.lastModified[n]=b),(b=w.getResponseHeader("etag"))&&(d.etag[n]=b)),204===e||"HEAD"===u.type?E="nocontent":304===e?E="notmodified":(E=_.state,m=_.data,p=!(v=_.error))):(v=E,!e&&E||(E="error",e<0&&(e=0))),w.status=e,w.statusText=(t||E)+"",p?f.resolveWith(c,[m,E,w]):f.rejectWith(c,[w,E,v]),w.statusCode(y),y=void 0,a&&h.trigger(p?"ajaxSuccess":"ajaxError",[w,u,p?m:v]),g.fireWith(c,[w,E]),a&&(h.trigger("ajaxComplete",[w,u]),--d.active||d.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,o){return d.get(e,t,o,"json")},getScript:function(e,t){return d.get(e,void 0,t,"script")}}),d.each(["get","post"],(function(e,t){d[t]=function(e,o,i,n){return d.isFunction(o)&&(n=n||i,i=o,o=void 0),d.ajax({url:e,type:t,dataType:n,data:o,success:i})}})),d._evalUrl=function(e){return d.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},d.fn.extend({wrapAll:function(e){if(d.isFunction(e))return this.each((function(t){d(this).wrapAll(e.call(this,t))}));if(this[0]){var t=d(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return d.isFunction(e)?this.each((function(t){d(this).wrapInner(e.call(this,t))})):this.each((function(){var t=d(this),o=t.contents();o.length?o.wrapAll(e):t.append(e)}))},wrap:function(e){var t=d.isFunction(e);return this.each((function(o){d(this).wrapAll(t?e.call(this,o):e)}))},unwrap:function(){return this.parent().each((function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)})).end()}}),d.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!u.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||d.css(e,"display"))},d.expr.filters.visible=function(e){return!d.expr.filters.hidden(e)};var Wt=/%20/g,Ht=/\[\]$/,Vt=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Bt=/^(?:input|select|textarea|keygen)/i;function zt(e,t,o,i){var n;if(d.isArray(t))d.each(t,(function(t,n){o||Ht.test(e)?i(e,n):zt(e+"["+("object"===_typeof2(n)?t:"")+"]",n,o,i)}));else if(o||"object"!==d.type(t))i(e,t);else for(n in t)zt(e+"["+n+"]",t[n],o,i)}d.param=function(e,t){var o,i=[],n=function(e,t){t=d.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=d.ajaxSettings&&d.ajaxSettings.traditional),d.isArray(e)||e.jquery&&!d.isPlainObject(e))d.each(e,(function(){n(this.name,this.value)}));else for(o in e)zt(o,e[o],t,n);return i.join("&").replace(Wt,"+")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=d.prop(this,"elements");return e?d.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!d(this).is(":disabled")&&Bt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Y.test(e))})).map((function(e,t){var o=d(this).val();return null==o?null:d.isArray(o)?d.map(o,(function(e){return{name:t.name,value:e.replace(Vt,"\r\n")}})):{name:t.name,value:o.replace(Vt,"\r\n")}})).get()}}),d.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&qt()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:qt;var Ut=0,Yt={},$t=d.ajaxSettings.xhr();function qt(){try{return new e.XMLHttpRequest}catch(e){}}e.attachEvent&&e.attachEvent("onunload",(function(){for(var e in Yt)Yt[e](void 0,!0)})),u.cors=!!$t&&"withCredentials"in $t,($t=u.ajax=!!$t)&&d.ajaxTransport((function(e){var t;if(!e.crossDomain||u.cors)return{send:function(o,i){var n,r=e.xhr(),s=++Ut;if(r.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(n in e.xhrFields)r[n]=e.xhrFields[n];for(n in e.mimeType&&r.overrideMimeType&&r.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)void 0!==o[n]&&r.setRequestHeader(n,o[n]+"");r.send(e.hasContent&&e.data||null),t=function(o,n){var a,l,p;if(t&&(n||4===r.readyState))if(delete Yt[s],t=void 0,r.onreadystatechange=d.noop,n)4!==r.readyState&&r.abort();else{p={},a=r.status,"string"==typeof r.responseText&&(p.text=r.responseText);try{l=r.statusText}catch(e){l=""}a||!e.isLocal||e.crossDomain?1223===a&&(a=204):a=p.text?200:404}p&&i(a,l,p,r.getAllResponseHeaders())},e.async?4===r.readyState?setTimeout(t):r.onreadystatechange=Yt[s]=t:t()},abort:function(){t&&t(void 0,!0)}}})),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return d.globalEval(e),e}}}),d.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),d.ajaxTransport("script",(function(e){if(e.crossDomain){var t,o=R.head||d("head")[0]||R.documentElement;return{send:function(i,n){(t=R.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,o){(o||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,o||n(200,"success"))},o.insertBefore(t,o.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var Kt=[],Xt=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||d.expando+"_"+bt++;return this[e]=!0,e}}),d.ajaxPrefilter("json jsonp",(function(t,o,i){var n,r,s,a=!1!==t.jsonp&&(Xt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=d.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xt,"$1"+n):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return s||d.error(n+" was not called"),s[0]},t.dataTypes[0]="json",r=e[n],e[n]=function(){s=arguments},i.always((function(){e[n]=r,t[n]&&(t.jsonpCallback=o.jsonpCallback,Kt.push(n)),s&&d.isFunction(r)&&r(s[0]),s=r=void 0})),"script"})),d.parseHTML=function(e,t,o){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(o=t,t=!1),t=t||R;var i=_.exec(e),n=!o&&[];return i?[t.createElement(i[1])]:(i=d.buildFragment([e],t,n),n&&n.length&&d(n).remove(),d.merge([],i.childNodes))};var Qt=d.fn.load;d.fn.load=function(e,t,o){if("string"!=typeof e&&Qt)return Qt.apply(this,arguments);var i,n,r,s=this,a=e.indexOf(" ");return a>=0&&(i=d.trim(e.slice(a,e.length)),e=e.slice(0,a)),d.isFunction(t)?(o=t,t=void 0):t&&"object"===_typeof2(t)&&(r="POST"),s.length>0&&d.ajax({url:e,type:r,dataType:"html",data:t}).done((function(e){n=arguments,s.html(i?d("<div>").append(d.parseHTML(e)).find(i):e)})).complete(o&&function(e,t){s.each(o,n||[e.responseText,t,e])}),this},d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){d.fn[t]=function(e){return this.on(t,e)}})),d.expr.filters.animated=function(e){return d.grep(d.timers,(function(t){return e===t.elem})).length};var Zt=e.document.documentElement;function Jt(e){return d.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}d.offset={setOffset:function(e,t,o){var i,n,r,s,a,l,p=d.css(e,"position"),u=d(e),c={};"static"===p&&(e.style.position="relative"),a=u.offset(),r=d.css(e,"top"),l=d.css(e,"left"),("absolute"===p||"fixed"===p)&&d.inArray("auto",[r,l])>-1?(s=(i=u.position()).top,n=i.left):(s=parseFloat(r)||0,n=parseFloat(l)||0),d.isFunction(t)&&(t=t.call(e,o,a)),null!=t.top&&(c.top=t.top-a.top+s),null!=t.left&&(c.left=t.left-a.left+n),"using"in t?t.using.call(e,c):u.css(c)}},d.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){d.offset.setOffset(this,e,t)}));var t,o,i={top:0,left:0},n=this[0],r=n&&n.ownerDocument;return r?(t=r.documentElement,d.contains(t,n)?(_typeof2(n.getBoundingClientRect)!==L&&(i=n.getBoundingClientRect()),o=Jt(r),{top:i.top+(o.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(o.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,o={top:0,left:0},i=this[0];return"fixed"===d.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),d.nodeName(e[0],"html")||(o=e.offset()),o.top+=d.css(e[0],"borderTopWidth",!0),o.left+=d.css(e[0],"borderLeftWidth",!0)),{top:t.top-o.top-d.css(i,"marginTop",!0),left:t.left-o.left-d.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Zt;e&&!d.nodeName(e,"html")&&"static"===d.css(e,"position");)e=e.offsetParent;return e||Zt}))}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var o=/Y/.test(t);d.fn[e]=function(i){return U(this,(function(e,i,n){var r=Jt(e);if(void 0===n)return r?t in r?r[t]:r.document.documentElement[i]:e[i];r?r.scrollTo(o?d(r).scrollLeft():n,o?n:d(r).scrollTop()):e[i]=n}),e,i,arguments.length,null)}})),d.each(["top","left"],(function(e,t){d.cssHooks[t]=Le(u.pixelPosition,(function(e,o){if(o)return o=xe(e,t),Me.test(o)?d(e).position()[t]+"px":o}))})),d.each({Height:"height",Width:"width"},(function(e,t){d.each({padding:"inner"+e,content:t,"":"outer"+e},(function(o,i){d.fn[i]=function(i,n){var r=arguments.length&&(o||"boolean"!=typeof i),s=o||(!0===i||!0===n?"margin":"border");return U(this,(function(t,o,i){var n;return d.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+e],n["scroll"+e],t.body["offset"+e],n["offset"+e],n["client"+e])):void 0===i?d.css(t,o,s):d.style(t,o,i,s)}),t,r?i:void 0,r,null)}}))})),d.fn.size=function(){return this.length},d.fn.andSelf=d.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return d}));var eo=e.jQuery,to=e.$;return d.noConflict=function(t){return e.$===d&&(e.$=to),t&&e.jQuery===d&&(e.jQuery=eo),d},_typeof2(t)===L&&(e.jQuery=e.$=d),d})),function(e,t){function o(t,o){var n,r,s,a=t.nodeName.toLowerCase();return"area"===a?(r=(n=t.parentNode).name,!(!t.href||!r||"map"!==n.nodeName.toLowerCase())&&(!!(s=e("img[usemap=#"+r+"]")[0])&&i(s))):(/input|select|textarea|button|object/.test(a)?!t.disabled:"a"===a&&t.href||o)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter((function(){return"hidden"===e.css(this,"visibility")})).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(o,i){return"number"==typeof o?this.each((function(){var t=this;setTimeout((function(){e(t).focus(),i&&i.call(t)}),o)})):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))})).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(o){if(o!==t)return this.css("zIndex",o);if(this.length)for(var i,n,r=e(this[0]);r.length&&r[0]!==document;){if(("absolute"===(i=r.css("position"))||"relative"===i||"fixed"===i)&&(n=parseInt(r.css("zIndex"),10),!isNaN(n)&&0!==n))return n;r=r.parent()}return 0},uniqueId:function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++n)}))},removeUniqueId:function(){return this.each((function(){r.test(this.id)&&e(this).removeAttr("id")}))}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(o){return!!e.data(o,t)}})):function(t,o,i){return!!e.data(t,i[3])},focusable:function(t){return o(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var i=e.attr(t,"tabindex"),n=isNaN(i);return(n||i>=0)&&o(t,!n)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],(function(o,i){function n(t,o,i,n){return e.each(r,(function(){o-=parseFloat(e.css(t,"padding"+this))||0,i&&(o-=parseFloat(e.css(t,"border"+this+"Width"))||0),n&&(o-=parseFloat(e.css(t,"margin"+this))||0)})),o}var r="Width"===i?["Left","Right"]:["Top","Bottom"],s=i.toLowerCase(),a={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+i]=function(o){return o===t?a["inner"+i].call(this):this.each((function(){e(this).css(s,n(this,o)+"px")}))},e.fn["outer"+i]=function(t,o){return"number"!=typeof t?a["outer"+i].call(this,t):this.each((function(){e(this).css(s,n(this,t,!0,o)+"px")}))}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(o){return arguments.length?t.call(this,e.camelCase(o)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(e){e.preventDefault()}))},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,o,i){var n,r=e.ui[t].prototype;for(n in i)r.plugins[n]=r.plugins[n]||[],r.plugins[n].push([o,i[n]])},call:function(e,t,o){var i,n=e.plugins[t];if(n&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(i=0;n.length>i;i++)e.options[n[i][0]]&&n[i][1].apply(e.element,o)}},hasScroll:function(t,o){if("hidden"===e(t).css("overflow"))return!1;var i=o&&"left"===o?"scrollLeft":"scrollTop",n=!1;return t[i]>0||(t[i]=1,n=t[i]>0,t[i]=0,n)}})}(jQuery),function(e,t){var o=0,i=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var o,i=0;null!=(o=t[i]);i++)try{e(o).triggerHandler("remove")}catch(e){}n(t)},e.widget=function(o,i,n){var r,s,a,l,p={},u=o.split(".")[0];o=o.split(".")[1],r=u+"-"+o,n||(n=i,i=e.Widget),e.expr[":"][r.toLowerCase()]=function(t){return!!e.data(t,r)},e[u]=e[u]||{},s=e[u][o],a=e[u][o]=function(e,o){return this._createWidget?(arguments.length&&this._createWidget(e,o),t):new a(e,o)},e.extend(a,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(l=new i).options=e.widget.extend({},l.options),e.each(n,(function(o,n){return e.isFunction(n)?(p[o]=function(){var e=function(){return i.prototype[o].apply(this,arguments)},t=function(e){return i.prototype[o].apply(this,e)};return function(){var o,i=this._super,r=this._superApply;return this._super=e,this._superApply=t,o=n.apply(this,arguments),this._super=i,this._superApply=r,o}}(),t):(p[o]=n,t)})),a.prototype=e.widget.extend(l,{widgetEventPrefix:s?l.widgetEventPrefix:o},p,{constructor:a,namespace:u,widgetName:o,widgetFullName:r}),s?(e.each(s._childConstructors,(function(t,o){var i=o.prototype;e.widget(i.namespace+"."+i.widgetName,a,o._proto)})),delete s._childConstructors):i._childConstructors.push(a),e.widget.bridge(o,a)},e.widget.extend=function(o){for(var n,r,s=i.call(arguments,1),a=0,l=s.length;l>a;a++)for(n in s[a])r=s[a][n],s[a].hasOwnProperty(n)&&r!==t&&(o[n]=e.isPlainObject(r)?e.isPlainObject(o[n])?e.widget.extend({},o[n],r):e.widget.extend({},r):r);return o},e.widget.bridge=function(o,n){var r=n.prototype.widgetFullName||o;e.fn[o]=function(s){var a="string"==typeof s,l=i.call(arguments,1),p=this;return s=!a&&l.length?e.widget.extend.apply(null,[s].concat(l)):s,a?this.each((function(){var i,n=e.data(this,r);return n?e.isFunction(n[s])&&"_"!==s.charAt(0)?(i=n[s].apply(n,l))!==n&&i!==t?(p=i&&i.jquery?p.pushStack(i.get()):i,!1):t:e.error("no such method '"+s+"' for "+o+" widget instance"):e.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+s+"'")})):this.each((function(){var t=e.data(this,r);t?t.option(s||{})._init():e.data(this,r,new n(s,this))})),p}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=o++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(o,i){var n,r,s,a=o;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof o)if(a={},n=o.split("."),o=n.shift(),n.length){for(r=a[o]=e.widget.extend({},this.options[o]),s=0;n.length-1>s;s++)r[n[s]]=r[n[s]]||{},r=r[n[s]];if(o=n.pop(),i===t)return r[o]===t?null:r[o];r[o]=i}else{if(i===t)return this.options[o]===t?null:this.options[o];a[o]=i}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(o,i,n){var r,s=this;"boolean"!=typeof o&&(n=i,i=o,o=!1),n?(i=r=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),e.each(n,(function(n,a){function l(){return o||!0!==s.options.disabled&&!e(this).hasClass("ui-state-disabled")?("string"==typeof a?s[a]:a).apply(s,arguments):t}"string"!=typeof a&&(l.guid=a.guid=a.guid||l.guid||e.guid++);var p=n.match(/^(\w+)\s*(.*)$/),u=p[1]+s.eventNamespace,c=p[2];c?r.delegate(c,u,l):i.bind(u,l)}))},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){var o=this;return setTimeout((function(){return("string"==typeof e?o[e]:e).apply(o,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,o,i){var n,r,s=this.options[t];if(i=i||{},(o=e.Event(o)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),o.target=this.element[0],r=o.originalEvent)for(n in r)n in o||(o[n]=r[n]);return this.element.trigger(o,i),!(e.isFunction(s)&&!1===s.apply(this.element[0],[o].concat(i))||o.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,o){e.Widget.prototype["_"+t]=function(i,n,r){"string"==typeof n&&(n={effect:n});var s,a=n?!0===n||"number"==typeof n?o:n.effect||o:t;"number"==typeof(n=n||{})&&(n={duration:n}),s=!e.isEmptyObject(n),n.complete=r,n.delay&&i.delay(n.delay),s&&e.effects&&e.effects.effect[a]?i[t](n):a!==t&&i[a]?i[a](n.duration,n.easing,r):i.queue((function(o){e(this)[t](),r&&r.call(i[0]),o()}))}}))}(jQuery),function(e){var t=!1;e(document).mouseup((function(){t=!1})),e.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).bind("click."+this.widgetName,(function(o){return!0===e.data(o.target,t.widgetName+".preventClickEvent")?(e.removeData(o.target,t.widgetName+".preventClickEvent"),o.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(o){if(!t){this._mouseStarted&&this._mouseUp(o),this._mouseDownEvent=o;var i=this,n=1===o.which,r=!("string"!=typeof this.options.cancel||!o.target.nodeName)&&e(o.target).closest(this.options.cancel).length;return!(n&&!r&&this._mouseCapture(o))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(o)&&this._mouseDelayMet(o)&&(this._mouseStarted=!1!==this._mouseStart(o),!this._mouseStarted)?(o.preventDefault(),!0):(!0===e.data(o.target,this.widgetName+".preventClickEvent")&&e.removeData(o.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),o.preventDefault(),t=!0,!0))}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(e,t){function o(e,t,o){return[parseFloat(e[0])*(h.test(e[0])?t/100:1),parseFloat(e[1])*(h.test(e[1])?o/100:1)]}function i(t,o){return parseInt(e.css(t,o),10)||0}function n(t){var o=t[0];return 9===o.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(o)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:o.preventDefault?{width:0,height:0,offset:{top:o.pageY,left:o.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var r,s=Math.max,a=Math.abs,l=Math.round,p=/left|center|right/,u=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,h=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(undefined!==r)return r;var t,o,i=e("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=i.children()[0];return e("body").append(i),t=n.offsetWidth,i.css("overflow","scroll"),t===(o=n.offsetWidth)&&(o=i[0].clientWidth),i.remove(),r=t-o},getScrollInfo:function(t){var o=t.isWindow?"":t.element.css("overflow-x"),i=t.isWindow?"":t.element.css("overflow-y"),n="scroll"===o||"auto"===o&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:n?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var o=e(t||window),i=e.isWindow(o[0]);return{element:o,isWindow:i,offset:o.offset()||{left:0,top:0},scrollLeft:o.scrollLeft(),scrollTop:o.scrollTop(),width:i?o.width():o.outerWidth(),height:i?o.height():o.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return f.apply(this,arguments);t=e.extend({},t);var r,h,g,y,m,v,C=e(t.of),_=e.position.getWithinInfo(t.within),w=e.position.getScrollInfo(_),b=(t.collision||"flip").split(" "),E={};return v=n(C),C[0].preventDefault&&(t.at="left top"),h=v.width,g=v.height,y=v.offset,m=e.extend({},y),e.each(["my","at"],(function(){var e,o,i=(t[this]||"").split(" ");1===i.length&&(i=p.test(i[0])?i.concat(["center"]):u.test(i[0])?["center"].concat(i):["center","center"]),i[0]=p.test(i[0])?i[0]:"center",i[1]=u.test(i[1])?i[1]:"center",e=c.exec(i[0]),o=c.exec(i[1]),E[this]=[e?e[0]:0,o?o[0]:0],t[this]=[d.exec(i[0])[0],d.exec(i[1])[0]]})),1===b.length&&(b[1]=b[0]),"right"===t.at[0]?m.left+=h:"center"===t.at[0]&&(m.left+=h/2),"bottom"===t.at[1]?m.top+=g:"center"===t.at[1]&&(m.top+=g/2),r=o(E.at,h,g),m.left+=r[0],m.top+=r[1],this.each((function(){var n,p,u=e(this),c=u.outerWidth(),d=u.outerHeight(),f=i(this,"marginLeft"),v=i(this,"marginTop"),R=c+f+i(this,"marginRight")+w.width,S=d+v+i(this,"marginBottom")+w.height,P=e.extend({},m),O=o(E.my,u.outerWidth(),u.outerHeight());"right"===t.my[0]?P.left-=c:"center"===t.my[0]&&(P.left-=c/2),"bottom"===t.my[1]?P.top-=d:"center"===t.my[1]&&(P.top-=d/2),P.left+=O[0],P.top+=O[1],e.support.offsetFractions||(P.left=l(P.left),P.top=l(P.top)),n={marginLeft:f,marginTop:v},e.each(["left","top"],(function(o,i){e.ui.position[b[o]]&&e.ui.position[b[o]][i](P,{targetWidth:h,targetHeight:g,elemWidth:c,elemHeight:d,collisionPosition:n,collisionWidth:R,collisionHeight:S,offset:[r[0]+O[0],r[1]+O[1]],my:t.my,at:t.at,within:_,elem:u})})),t.using&&(p=function(e){var o=y.left-P.left,i=o+h-c,n=y.top-P.top,r=n+g-d,l={target:{element:C,left:y.left,top:y.top,width:h,height:g},element:{element:u,left:P.left,top:P.top,width:c,height:d},horizontal:0>i?"left":o>0?"right":"center",vertical:0>r?"top":n>0?"bottom":"middle"};c>h&&h>a(o+i)&&(l.horizontal="center"),d>g&&g>a(n+r)&&(l.vertical="middle"),l.important=s(a(o),a(i))>s(a(n),a(r))?"horizontal":"vertical",t.using.call(this,e,l)}),u.offset(e.extend(P,{using:p}))}))},e.ui.position={fit:{left:function(e,t){var o,i=t.within,n=i.isWindow?i.scrollLeft:i.offset.left,r=i.width,a=e.left-t.collisionPosition.marginLeft,l=n-a,p=a+t.collisionWidth-r-n;t.collisionWidth>r?l>0&&0>=p?(o=e.left+l+t.collisionWidth-r-n,e.left+=l-o):e.left=p>0&&0>=l?n:l>p?n+r-t.collisionWidth:n:l>0?e.left+=l:p>0?e.left-=p:e.left=s(e.left-a,e.left)},top:function(e,t){var o,i=t.within,n=i.isWindow?i.scrollTop:i.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,l=n-a,p=a+t.collisionHeight-r-n;t.collisionHeight>r?l>0&&0>=p?(o=e.top+l+t.collisionHeight-r-n,e.top+=l-o):e.top=p>0&&0>=l?n:l>p?n+r-t.collisionHeight:n:l>0?e.top+=l:p>0?e.top-=p:e.top=s(e.top-a,e.top)}},flip:{left:function(e,t){var o,i,n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,p=e.left-t.collisionPosition.marginLeft,u=p-l,c=p+t.collisionWidth-s-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,h="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(0>(o=e.left+d+h+f+t.collisionWidth-s-r)||a(u)>o)&&(e.left+=d+h+f):c>0&&(((i=e.left-t.collisionPosition.marginLeft+d+h+f-l)>0||c>a(i))&&(e.left+=d+h+f))},top:function(e,t){var o,i,n=t.within,r=n.offset.top+n.scrollTop,s=n.height,l=n.isWindow?n.scrollTop:n.offset.top,p=e.top-t.collisionPosition.marginTop,u=p-l,c=p+t.collisionHeight-s-l,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,h="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];0>u?(i=e.top+d+h+f+t.collisionHeight-s-r,e.top+d+h+f>u&&(0>i||a(u)>i)&&(e.top+=d+h+f)):c>0&&(o=e.top-t.collisionPosition.marginTop+d+h+f-l,e.top+d+h+f>c&&(o>0||c>a(o))&&(e.top+=d+h+f))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,o,i,n,r,s=document.getElementsByTagName("body")[0],a=document.createElement("div");for(r in t=document.createElement(s?"div":"body"),i={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},s&&e.extend(i,{position:"absolute",left:"-1000px",top:"-1000px"}),i)t.style[r]=i[r];t.appendChild(a),(o=s||document.documentElement).insertBefore(t,o.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",n=e(a).offset().left,e.support.offsetFractions=n>10&&11>n,t.innerHTML="",o.removeChild(t)}()}(jQuery),function(e){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var o=this.options;return!(this.helper||o.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(e(!0===o.iframeFix?"iframe":o.iframeFix).each((function(){e("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")})),!0))},_mouseStart:function(t){var o=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,o){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!o){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp({}),!1;this.position=i.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var o=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!e.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==o._trigger("stop",t)&&o._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1)},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(t){var o=this.options,i=e.isFunction(o.helper)?e(o.helper.apply(this.element[0],[t])):"clone"===o.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===o.appendTo?this.element[0].parentNode:o.appendTo),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,o,i,n=this.options;return n.containment?"window"===n.containment?void(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,e(document).width()-this.helperProportions.width-this.margins.left,(e(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((i=(o=e(n.containment))[0])&&(t="hidden"!==o.css("overflow"),this.containment=[(parseInt(o.css("borderLeftWidth"),10)||0)+(parseInt(o.css("paddingLeft"),10)||0),(parseInt(o.css("borderTopWidth"),10)||0)+(parseInt(o.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(o.css("borderRightWidth"),10)||0)-(parseInt(o.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(o.css("borderBottomWidth"),10)||0)-(parseInt(o.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=o))):void(this.containment=null)},_convertPositionTo:function(t,o){o||(o=this.position);var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:n.scrollTop(),left:n.scrollLeft()}),{top:o.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*i,left:o.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*i}},_generatePosition:function(t){var o,i,n,r,s=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=t.pageX,p=t.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(i=this.relative_container.offset(),o=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):o=this.containment,t.pageX-this.offset.click.left<o[0]&&(l=o[0]+this.offset.click.left),t.pageY-this.offset.click.top<o[1]&&(p=o[1]+this.offset.click.top),t.pageX-this.offset.click.left>o[2]&&(l=o[2]+this.offset.click.left),t.pageY-this.offset.click.top>o[3]&&(p=o[3]+this.offset.click.top)),s.grid&&(n=s.grid[1]?this.originalPageY+Math.round((p-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,p=o?n-this.offset.click.top>=o[1]||n-this.offset.click.top>o[3]?n:n-this.offset.click.top>=o[1]?n-s.grid[1]:n+s.grid[1]:n,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=o?r-this.offset.click.left>=o[0]||r-this.offset.click.left>o[2]?r:r-this.offset.click.left>=o[0]?r-s.grid[0]:r+s.grid[0]:r)),{top:p-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,o,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[o,i]),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,o,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,o){var i=e(this).data("ui-draggable"),n=i.options,r=e.extend({},o,{item:i.element});i.sortables=[],e(n.connectToSortable).each((function(){var o=e.data(this,"ui-sortable");o&&!o.options.disabled&&(i.sortables.push({instance:o,shouldRevert:o.options.revert}),o.refreshPositions(),o._trigger("activate",t,r))}))},stop:function(t,o){var i=e(this).data("ui-draggable"),n=e.extend({},o,{item:i.element});e.each(i.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,i.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"===i.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,n))}))},drag:function(t,o){var i=e(this).data("ui-draggable"),n=this;e.each(i.sortables,(function(){var r=!1,s=this;this.instance.positionAbs=i.positionAbs,this.instance.helperProportions=i.helperProportions,this.instance.offset.click=i.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(r=!0,e.each(i.sortables,(function(){return this.instance.positionAbs=i.positionAbs,this.instance.helperProportions=i.helperProportions,this.instance.offset.click=i.offset.click,this!==s&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(s.instance.element[0],this.instance.element[0])&&(r=!1),r}))),r?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return o.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=i.offset.click.top,this.instance.offset.click.left=i.offset.click.left,this.instance.offset.parent.left-=i.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=i.offset.parent.top-this.instance.offset.parent.top,i._trigger("toSortable",t),i.dropped=this.instance.element,i.currentItem=i.element,this.instance.fromOutside=i),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),i._trigger("fromSortable",t),i.dropped=!1)}))}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),o=e(this).data("ui-draggable").options;t.css("cursor")&&(o._cursor=t.css("cursor")),t.css("cursor",o.cursor)},stop:function(){var t=e(this).data("ui-draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,o){var i=e(o.helper),n=e(this).data("ui-draggable").options;i.css("opacity")&&(n._opacity=i.css("opacity")),i.css("opacity",n.opacity)},stop:function(t,o){var i=e(this).data("ui-draggable").options;i._opacity&&e(o.helper).css("opacity",i._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("ui-draggable");t.scrollParent[0]!==document&&"HTML"!==t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var o=e(this).data("ui-draggable"),i=o.options,n=!1;o.scrollParent[0]!==document&&"HTML"!==o.scrollParent[0].tagName?(i.axis&&"x"===i.axis||(o.overflowOffset.top+o.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?o.scrollParent[0].scrollTop=n=o.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-o.overflowOffset.top<i.scrollSensitivity&&(o.scrollParent[0].scrollTop=n=o.scrollParent[0].scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(o.overflowOffset.left+o.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?o.scrollParent[0].scrollLeft=n=o.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-o.overflowOffset.left<i.scrollSensitivity&&(o.scrollParent[0].scrollLeft=n=o.scrollParent[0].scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-e(document).scrollTop()<i.scrollSensitivity?n=e(document).scrollTop(e(document).scrollTop()-i.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<i.scrollSensitivity&&(n=e(document).scrollTop(e(document).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-e(document).scrollLeft()<i.scrollSensitivity?n=e(document).scrollLeft(e(document).scrollLeft()-i.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<i.scrollSensitivity&&(n=e(document).scrollLeft(e(document).scrollLeft()+i.scrollSpeed)))),!1!==n&&e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(o,t)}}),e.ui.plugin.add("draggable","snap",{start:function(){var t=e(this).data("ui-draggable"),o=t.options;t.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each((function(){var o=e(this),i=o.offset();this!==t.element[0]&&t.snapElements.push({item:this,width:o.outerWidth(),height:o.outerHeight(),top:i.top,left:i.left})}))},drag:function(t,o){var i,n,r,s,a,l,p,u,c,d,h=e(this).data("ui-draggable"),f=h.options,g=f.snapTolerance,y=o.offset.left,m=y+h.helperProportions.width,v=o.offset.top,C=v+h.helperProportions.height;for(c=h.snapElements.length-1;c>=0;c--)l=(a=h.snapElements[c].left)+h.snapElements[c].width,u=(p=h.snapElements[c].top)+h.snapElements[c].height,a-g>m||y>l+g||p-g>C||v>u+g||!e.contains(h.snapElements[c].item.ownerDocument,h.snapElements[c].item)?(h.snapElements[c].snapping&&h.options.snap.release&&h.options.snap.release.call(h.element,t,e.extend(h._uiHash(),{snapItem:h.snapElements[c].item})),h.snapElements[c].snapping=!1):("inner"!==f.snapMode&&(i=g>=Math.abs(p-C),n=g>=Math.abs(u-v),r=g>=Math.abs(a-m),s=g>=Math.abs(l-y),i&&(o.position.top=h._convertPositionTo("relative",{top:p-h.helperProportions.height,left:0}).top-h.margins.top),n&&(o.position.top=h._convertPositionTo("relative",{top:u,left:0}).top-h.margins.top),r&&(o.position.left=h._convertPositionTo("relative",{top:0,left:a-h.helperProportions.width}).left-h.margins.left),s&&(o.position.left=h._convertPositionTo("relative",{top:0,left:l}).left-h.margins.left)),d=i||n||r||s,"outer"!==f.snapMode&&(i=g>=Math.abs(p-v),n=g>=Math.abs(u-C),r=g>=Math.abs(a-y),s=g>=Math.abs(l-m),i&&(o.position.top=h._convertPositionTo("relative",{top:p,left:0}).top-h.margins.top),n&&(o.position.top=h._convertPositionTo("relative",{top:u-h.helperProportions.height,left:0}).top-h.margins.top),r&&(o.position.left=h._convertPositionTo("relative",{top:0,left:a}).left-h.margins.left),s&&(o.position.left=h._convertPositionTo("relative",{top:0,left:l-h.helperProportions.width}).left-h.margins.left)),!h.snapElements[c].snapping&&(i||n||r||s||d)&&h.options.snap.snap&&h.options.snap.snap.call(h.element,t,e.extend(h._uiHash(),{snapItem:h.snapElements[c].item})),h.snapElements[c].snapping=i||n||r||s||d)}}),e.ui.plugin.add("draggable","stack",{start:function(){var t,o=this.data("ui-draggable").options,i=e.makeArray(e(o.stack)).sort((function(t,o){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(o).css("zIndex"),10)||0)}));i.length&&(t=parseInt(e(i[0]).css("zIndex"),10)||0,e(i).each((function(o){e(this).css("zIndex",t+o)})),this.css("zIndex",t+i.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,o){var i=e(o.helper),n=e(this).data("ui-draggable").options;i.css("zIndex")&&(n._zIndex=i.css("zIndex")),i.css("zIndex",n.zIndex)},stop:function(t,o){var i=e(this).data("ui-draggable").options;i._zIndex&&e(o.helper).css("zIndex",i._zIndex)}})}(jQuery),function(e){function t(e,t,o){return e>t&&t+o>e}e.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t=this.options,o=t.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(o)?o:function(e){return e.is(o)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},e.ui.ddmanager.droppables[t.scope]=e.ui.ddmanager.droppables[t.scope]||[],e.ui.ddmanager.droppables[t.scope].push(this),t.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var t=0,o=e.ui.ddmanager.droppables[this.options.scope];o.length>t;t++)o[t]===this&&o.splice(t,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,o){"accept"===t&&(this.accept=e.isFunction(o)?o:function(e){return e.is(o)}),e.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var o=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),o&&this._trigger("activate",t,this.ui(o))},_deactivate:function(t){var o=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),o&&this._trigger("deactivate",t,this.ui(o))},_over:function(t){var o=e.ui.ddmanager.current;o&&(o.currentItem||o.element)[0]!==this.element[0]&&this.accept.call(this.element[0],o.currentItem||o.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(o)))},_out:function(t){var o=e.ui.ddmanager.current;o&&(o.currentItem||o.element)[0]!==this.element[0]&&this.accept.call(this.element[0],o.currentItem||o.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(o)))},_drop:function(t,o){var i=o||e.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var t=e.data(this,"ui-droppable");return t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&e.ui.intersect(i,e.extend(t,{offset:t.element.offset()}),t.options.tolerance)?(n=!0,!1):void 0})),!n&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(e,o,i){if(!o.offset)return!1;var n,r=(e.positionAbs||e.position.absolute).left,s=r+e.helperProportions.width,a=(e.positionAbs||e.position.absolute).top,l=a+e.helperProportions.height,p=o.offset.left,u=p+o.proportions.width,c=o.offset.top,d=c+o.proportions.height;switch(i){case"fit":return r>=p&&u>=s&&a>=c&&d>=l;case"intersect":return r+e.helperProportions.width/2>p&&u>s-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>l-e.helperProportions.height/2;case"pointer":return n=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,t((e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,c,o.proportions.height)&&t(n,p,o.proportions.width);case"touch":return(a>=c&&d>=a||l>=c&&d>=l||c>a&&l>d)&&(r>=p&&u>=r||s>=p&&u>=s||p>r&&s>u);default:return!1}},e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,o){var i,n,r=e.ui.ddmanager.droppables[t.options.scope]||[],s=o?o.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;r.length>i;i++)if(!(r[i].options.disabled||t&&!r[i].accept.call(r[i].element[0],t.currentItem||t.element))){for(n=0;a.length>n;n++)if(a[n]===r[i].element[0]){r[i].proportions.height=0;continue e}r[i].visible="none"!==r[i].element.css("display"),r[i].visible&&("mousedown"===s&&r[i]._activate.call(r[i],o),r[i].offset=r[i].element.offset(),r[i].proportions={width:r[i].element[0].offsetWidth,height:r[i].element[0].offsetHeight})}},drop:function(t,o){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance)&&(i=this._drop.call(this,o)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,o)))})),i},dragStart:function(t,o){t.element.parentsUntil("body").bind("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,o)}))},drag:function(t,o){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,o),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,n,r,s=e.ui.intersect(t,this,this.options.tolerance),a=!s&&this.isover?"isout":s&&!this.isover?"isover":null;a&&(this.options.greedy&&(n=this.options.scope,(r=this.element.parents(":data(ui-droppable)").filter((function(){return e.data(this,"ui-droppable").options.scope===n}))).length&&((i=e.data(r[0],"ui-droppable")).greedyChild="isover"===a)),i&&"isover"===a&&(i.isover=!1,i.isout=!0,i._out.call(i,o)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,o),i&&"isout"===a&&(i.isout=!1,i.isover=!0,i._over.call(i,o)))}}))},dragStop:function(t,o){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,o)}}}(jQuery),function(e){function t(e){return parseInt(e,10)||0}function o(e){return!isNaN(parseInt(e,10))}e.widget("ui.resizable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var t,o,i,n,r=this,s=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!s.aspectRatio,aspectRatio:s.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:s.helper||s.ghost||s.animate?s.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=s.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},o=0;t.length>o;o++)i=e.trim(t[o]),(n=e("<div class='ui-resizable-handle "+("ui-resizable-"+i)+"'></div>")).css({zIndex:s.zIndex}),"se"===i&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[i]=".ui-resizable-"+i,this.element.append(n);this._renderAxis=function(t){var o,i,n,r;for(o in t=t||this.element,this.handles)this.handles[o].constructor===String&&(this.handles[o]=e(this.handles[o],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(i=e(this.handles[o],this.element),r=/sw|ne|nw|se|n|s/.test(o)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(o)?"Top":/se|sw|s/.test(o)?"Bottom":/^e$/.test(o)?"Right":"Left"].join(""),t.css(n,r),this._proportionallyResize()),e(this.handles[o]).length},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover((function(){r.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=n&&n[1]?n[1]:"se")})),s.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter((function(){s.disabled||(e(this).removeClass("ui-resizable-autohide"),r._handles.show())})).mouseleave((function(){s.disabled||r.resizing||(e(this).addClass("ui-resizable-autohide"),r._handles.hide())}))),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,o=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(o(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),o(this.originalElement),this},_mouseCapture:function(t){var o,i,n=!1;for(o in this.handles)((i=e(this.handles[o])[0])===t.target||e.contains(i,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(o){var i,n,r,s=this.options,a=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&&l.css({position:"absolute",top:a.top,left:a.left}),this._renderProxy(),i=t(this.helper.css("left")),n=t(this.helper.css("top")),s.containment&&(i+=e(s.containment).scrollLeft()||0,n+=e(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:i,top:n},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.height()},this.originalMousePosition={left:o.pageX,top:o.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===r?this.axis+"-resize":r),l.addClass("ui-resizable-resizing"),this._propagate("start",o),!0},_mouseDrag:function(t){var o,i=this.helper,n={},r=this.originalMousePosition,s=this.axis,a=this.position.top,l=this.position.left,p=this.size.width,u=this.size.height,c=t.pageX-r.left||0,d=t.pageY-r.top||0,h=this._change[s];return!!h&&(o=h.apply(this,[t,c,d]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(o=this._updateRatio(o,t)),o=this._respectSize(o,t),this._updateCache(o),this._propagate("resize",t),this.position.top!==a&&(n.top=this.position.top+"px"),this.position.left!==l&&(n.left=this.position.left+"px"),this.size.width!==p&&(n.width=this.size.width+"px"),this.size.height!==u&&(n.height=this.size.height+"px"),i.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||this._trigger("resize",t,this.ui()),!1)},_mouseStop:function(t){this.resizing=!1;var o,i,n,r,s,a,l,p=this.options,u=this;return this._helper&&(n=(i=(o=this._proportionallyResizeElements).length&&/textarea/i.test(o[0].nodeName))&&e.ui.hasScroll(o[0],"left")?0:u.sizeDiff.height,r=i?0:u.sizeDiff.width,s={width:u.helper.width()-r,height:u.helper.height()-n},a=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,l=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,p.animate||this.element.css(e.extend(s,{top:l,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!p.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,i,n,r,s,a=this.options;s={minWidth:o(a.minWidth)?a.minWidth:0,maxWidth:o(a.maxWidth)?a.maxWidth:1/0,minHeight:o(a.minHeight)?a.minHeight:0,maxHeight:o(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||e)&&(t=s.minHeight*this.aspectRatio,n=s.minWidth/this.aspectRatio,i=s.maxHeight*this.aspectRatio,r=s.maxWidth/this.aspectRatio,t>s.minWidth&&(s.minWidth=t),n>s.minHeight&&(s.minHeight=n),s.maxWidth>i&&(s.maxWidth=i),s.maxHeight>r&&(s.maxHeight=r)),this._vBoundaries=s},_updateCache:function(e){this.offset=this.helper.offset(),o(e.left)&&(this.position.left=e.left),o(e.top)&&(this.position.top=e.top),o(e.height)&&(this.size.height=e.height),o(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return o(e.height)?e.width=e.height*this.aspectRatio:o(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=o(e.width)&&t.maxWidth&&t.maxWidth<e.width,r=o(e.height)&&t.maxHeight&&t.maxHeight<e.height,s=o(e.width)&&t.minWidth&&t.minWidth>e.width,a=o(e.height)&&t.minHeight&&t.minHeight>e.height,l=this.originalPosition.left+this.originalSize.width,p=this.position.top+this.size.height,u=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return s&&(e.width=t.minWidth),a&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),r&&(e.height=t.maxHeight),s&&u&&(e.left=l-t.minWidth),n&&u&&(e.left=l-t.maxWidth),a&&c&&(e.top=p-t.minHeight),r&&c&&(e.top=p-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var e,t,o,i,n,r=this.helper||this.element;for(e=0;this._proportionallyResizeElements.length>e;e++){if(n=this._proportionallyResizeElements[e],!this.borderDif)for(this.borderDif=[],o=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],i=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],t=0;o.length>t;t++)this.borderDif[t]=(parseInt(o[t],10)||0)+(parseInt(i[t],10)||0);n.css({height:r.height()-this.borderDif[0]-this.borderDif[2]||0,width:r.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var t=this.element,o=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++o.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var o=this.originalSize;return{left:this.originalPosition.left+t,width:o.width-t}},n:function(e,t,o){var i=this.originalSize,n=this.originalPosition;return{top:n.top+o,height:i.height-o}},s:function(e,t,o){return{height:this.originalSize.height+o}},se:function(t,o,i){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,o,i]))},sw:function(t,o,i){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,o,i]))},ne:function(t,o,i){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,o,i]))},nw:function(t,o,i){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,o,i]))}},_propagate:function(t,o){e.ui.plugin.call(this,t,[o,this.ui()]),"resize"!==t&&this._trigger(t,o,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var o=e(this).data("ui-resizable"),i=o.options,n=o._proportionallyResizeElements,r=n.length&&/textarea/i.test(n[0].nodeName),s=r&&e.ui.hasScroll(n[0],"left")?0:o.sizeDiff.height,a=r?0:o.sizeDiff.width,l={width:o.size.width-a,height:o.size.height-s},p=parseInt(o.element.css("left"),10)+(o.position.left-o.originalPosition.left)||null,u=parseInt(o.element.css("top"),10)+(o.position.top-o.originalPosition.top)||null;o.element.animate(e.extend(l,u&&p?{top:u,left:p}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseInt(o.element.css("width"),10),height:parseInt(o.element.css("height"),10),top:parseInt(o.element.css("top"),10),left:parseInt(o.element.css("left"),10)};n&&n.length&&e(n[0]).css({width:i.width,height:i.height}),o._updateCache(i),o._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var o,i,n,r,s,a,l,p=e(this).data("ui-resizable"),u=p.options,c=p.element,d=u.containment,h=d instanceof e?d.get(0):/parent/.test(d)?c.parent().get(0):d;h&&(p.containerElement=e(h),/document/.test(d)||d===document?(p.containerOffset={left:0,top:0},p.containerPosition={left:0,top:0},p.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(o=e(h),i=[],e(["Top","Right","Left","Bottom"]).each((function(e,n){i[e]=t(o.css("padding"+n))})),p.containerOffset=o.offset(),p.containerPosition=o.position(),p.containerSize={height:o.innerHeight()-i[3],width:o.innerWidth()-i[1]},n=p.containerOffset,r=p.containerSize.height,s=p.containerSize.width,a=e.ui.hasScroll(h,"left")?h.scrollWidth:s,l=e.ui.hasScroll(h)?h.scrollHeight:r,p.parentData={element:h,left:n.left,top:n.top,width:a,height:l}))},resize:function(t){var o,i,n,r,s=e(this).data("ui-resizable"),a=s.options,l=s.containerOffset,p=s.position,u=s._aspectRatio||t.shiftKey,c={top:0,left:0},d=s.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(c=l),p.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-c.left),u&&(s.size.height=s.size.width/s.aspectRatio),s.position.left=a.helper?l.left:0),p.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),u&&(s.size.width=s.size.height*s.aspectRatio),s.position.top=s._helper?l.top:0),s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top,o=Math.abs((s._helper,s.offset.left-c.left+s.sizeDiff.width)),i=Math.abs((s._helper?s.offset.top-c.top:s.offset.top-l.top)+s.sizeDiff.height),n=s.containerElement.get(0)===s.element.parent().get(0),r=/relative|absolute/.test(s.containerElement.css("position")),n&&r&&(o-=s.parentData.left),o+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-o,u&&(s.size.height=s.size.width/s.aspectRatio)),i+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-i,u&&(s.size.width=s.size.height*s.aspectRatio))},stop:function(){var t=e(this).data("ui-resizable"),o=t.options,i=t.containerOffset,n=t.containerPosition,r=t.containerElement,s=e(t.helper),a=s.offset(),l=s.outerWidth()-t.sizeDiff.width,p=s.outerHeight()-t.sizeDiff.height;t._helper&&!o.animate&&/relative/.test(r.css("position"))&&e(this).css({left:a.left-n.left-i.left,width:l,height:p}),t._helper&&!o.animate&&/static/.test(r.css("position"))&&e(this).css({left:a.left-n.left-i.left,width:l,height:p})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("ui-resizable").options,o=function(t){e(t).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})}))};"object"!=_typeof2(t.alsoResize)||t.alsoResize.parentNode?o(t.alsoResize):t.alsoResize.length?(t.alsoResize=t.alsoResize[0],o(t.alsoResize)):e.each(t.alsoResize,(function(e){o(e)}))},resize:function(t,o){var i=e(this).data("ui-resizable"),n=i.options,r=i.originalSize,s=i.originalPosition,a={height:i.size.height-r.height||0,width:i.size.width-r.width||0,top:i.position.top-s.top||0,left:i.position.left-s.left||0},l=function(t,i){e(t).each((function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),r={},s=i&&i.length?i:t.parents(o.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(s,(function(e,t){var o=(n[t]||0)+(a[t]||0);o&&o>=0&&(r[t]=o||null)})),t.css(r)}))};"object"!=_typeof2(n.alsoResize)||n.alsoResize.nodeType?l(n.alsoResize):e.each(n.alsoResize,(function(e,t){l(e,t)}))},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("ui-resizable"),o=t.options,i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof o.ghost?o.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t=e(this).data("ui-resizable"),o=t.options,i=t.size,n=t.originalSize,r=t.originalPosition,s=t.axis,a="number"==typeof o.grid?[o.grid,o.grid]:o.grid,l=a[0]||1,p=a[1]||1,u=Math.round((i.width-n.width)/l)*l,c=Math.round((i.height-n.height)/p)*p,d=n.width+u,h=n.height+c,f=o.maxWidth&&d>o.maxWidth,g=o.maxHeight&&h>o.maxHeight,y=o.minWidth&&o.minWidth>d,m=o.minHeight&&o.minHeight>h;o.grid=a,y&&(d+=l),m&&(h+=p),f&&(d-=l),g&&(h-=p),/^(se|s|e)$/.test(s)?(t.size.width=d,t.size.height=h):/^(ne)$/.test(s)?(t.size.width=d,t.size.height=h,t.position.top=r.top-c):/^(sw)$/.test(s)?(t.size.width=d,t.size.height=h,t.position.left=r.left-u):(t.size.width=d,t.size.height=h,t.position.top=r.top-c,t.position.left=r.left-u)}})}(jQuery),function(e){e.widget("ui.selectable",e.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,o=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(t=e(o.options.filter,o.element[0])).addClass("ui-selectee"),t.each((function(){var t=e(this),o=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:o.left,top:o.top,right:o.left+t.outerWidth(),bottom:o.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})}))},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=e("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var o=this,i=this.options;this.opos=[t.pageX,t.pageY],this.options.disabled||(this.selectees=e(i.filter,this.element[0]),this._trigger("start",t),e(i.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var i=e.data(this,"selectable-item");i.startselected=!0,t.metaKey||t.ctrlKey||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,o._trigger("unselecting",t,{unselecting:i.element}))})),e(t.target).parents().addBack().each((function(){var i,n=e.data(this,"selectable-item");return n?(i=!t.metaKey&&!t.ctrlKey||!n.$element.hasClass("ui-selected"),n.$element.removeClass(i?"ui-unselecting":"ui-selected").addClass(i?"ui-selecting":"ui-unselecting"),n.unselecting=!i,n.selecting=i,n.selected=i,i?o._trigger("selecting",t,{selecting:n.element}):o._trigger("unselecting",t,{unselecting:n.element}),!1):void 0})))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var o,i=this,n=this.options,r=this.opos[0],s=this.opos[1],a=t.pageX,l=t.pageY;return r>a&&(o=a,a=r,r=o),s>l&&(o=l,l=s,s=o),this.helper.css({left:r,top:s,width:a-r,height:l-s}),this.selectees.each((function(){var o=e.data(this,"selectable-item"),p=!1;o&&o.element!==i.element[0]&&("touch"===n.tolerance?p=!(o.left>a||r>o.right||o.top>l||s>o.bottom):"fit"===n.tolerance&&(p=o.left>r&&a>o.right&&o.top>s&&l>o.bottom),p?(o.selected&&(o.$element.removeClass("ui-selected"),o.selected=!1),o.unselecting&&(o.$element.removeClass("ui-unselecting"),o.unselecting=!1),o.selecting||(o.$element.addClass("ui-selecting"),o.selecting=!0,i._trigger("selecting",t,{selecting:o.element}))):(o.selecting&&((t.metaKey||t.ctrlKey)&&o.startselected?(o.$element.removeClass("ui-selecting"),o.selecting=!1,o.$element.addClass("ui-selected"),o.selected=!0):(o.$element.removeClass("ui-selecting"),o.selecting=!1,o.startselected&&(o.$element.addClass("ui-unselecting"),o.unselecting=!0),i._trigger("unselecting",t,{unselecting:o.element}))),o.selected&&(t.metaKey||t.ctrlKey||o.startselected||(o.$element.removeClass("ui-selected"),o.selected=!1,o.$element.addClass("ui-unselecting"),o.unselecting=!0,i._trigger("unselecting",t,{unselecting:o.element})))))})),!1}},_mouseStop:function(t){var o=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each((function(){var i=e.data(this,"selectable-item");i.$element.removeClass("ui-unselecting"),i.unselecting=!1,i.startselected=!1,o._trigger("unselected",t,{unselected:i.element})})),e(".ui-selecting",this.element[0]).each((function(){var i=e.data(this,"selectable-item");i.$element.removeClass("ui-selecting").addClass("ui-selected"),i.selecting=!1,i.selected=!0,i.startselected=!0,o._trigger("selected",t,{selected:i.element})})),this._trigger("stop",t),this.helper.remove(),!1}})}(jQuery),function(e){function t(e,t,o){return e>t&&t+o>e}function o(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))}e.widget("ui.sortable",e.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===e.axis||o(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,o){"disabled"===t?(this.options[t]=o,this.widget().toggleClass("ui-sortable-disabled",!!o)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,o){var i=null,n=!1,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each((function(){return e.data(this,r.widgetName+"-item")===r?(i=e(this),!1):void 0})),e.data(t.target,r.widgetName+"-item")===r&&(i=e(t.target)),!!i&&(!(this.options.handle&&!o&&(e(this.options.handle,i).find("*").addBack().each((function(){this===t.target&&(n=!0)})),!n))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,o,i){var n,r,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",s.cursor),this.storedStylesheet=e("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(r)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var o,i,n,r,s=this.options,a=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<s.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+s.scrollSpeed:t.pageY-this.overflowOffset.top<s.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-s.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<s.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+s.scrollSpeed:t.pageX-this.overflowOffset.left<s.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-s.scrollSpeed)):(t.pageY-e(document).scrollTop()<s.scrollSensitivity?a=e(document).scrollTop(e(document).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<s.scrollSensitivity&&(a=e(document).scrollTop(e(document).scrollTop()+s.scrollSpeed)),t.pageX-e(document).scrollLeft()<s.scrollSensitivity?a=e(document).scrollLeft(e(document).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<s.scrollSensitivity&&(a=e(document).scrollLeft(e(document).scrollLeft()+s.scrollSpeed))),!1!==a&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),o=this.items.length-1;o>=0;o--)if(n=(i=this.items[o]).item[0],(r=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===r?"next":"prev"]()[0]!==n&&!e.contains(this.placeholder[0],n)&&("semi-dynamic"!==this.options.type||!e.contains(this.element[0],n))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,o){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var i=this,n=this.placeholder.offset(),r=this.options.axis,s={};r&&"x"!==r||(s.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(s.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(s,parseInt(this.options.revert,10)||500,(function(){i._clear(t)}))}else this._clear(t,o);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var o=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e(o).each((function(){var o=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);o&&i.push((t.key||o[1]+"[]")+"="+(t.key&&t.expression?o[1]:o[2]))})),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var o=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},o.each((function(){i.push(e(t.item||this).attr(t.attribute||"id")||"")})),i},_intersectsWith:function(e){var t=this.positionAbs.left,o=t+this.helperProportions.width,i=this.positionAbs.top,n=i+this.helperProportions.height,r=e.left,s=r+e.width,a=e.top,l=a+e.height,p=this.offset.click.top,u=this.offset.click.left,c="x"===this.options.axis||i+p>a&&l>i+p,d="y"===this.options.axis||t+u>r&&s>t+u,h=c&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?h:t+this.helperProportions.width/2>r&&s>o-this.helperProportions.width/2&&i+this.helperProportions.height/2>a&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(e){var o="x"===this.options.axis||t(this.positionAbs.top+this.offset.click.top,e.top,e.height),i="y"===this.options.axis||t(this.positionAbs.left+this.offset.click.left,e.left,e.width),n=o&&i,r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return!!n&&(this.floating?s&&"right"===s||"down"===r?2:1:r&&("down"===r?2:1))},_intersectsWithSides:function(e){var o=t(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=t(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&o||"up"===n&&!o)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var o,i,n,r,s=[],a=[],l=this._connectWith();if(l&&t)for(o=l.length-1;o>=0;o--)for(i=(n=e(l[o])).length-1;i>=0;i--)(r=e.data(n[i],this.widgetFullName))&&r!==this&&!r.options.disabled&&a.push([e.isFunction(r.options.items)?r.options.items.call(r.element):e(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(a.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),o=a.length-1;o>=0;o--)a[o][0].each((function(){s.push(this)}));return e(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var o=0;t.length>o;o++)if(t[o]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var o,i,n,r,s,a,l,p,u=this.items,c=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(o=d.length-1;o>=0;o--)for(i=(n=e(d[o])).length-1;i>=0;i--)(r=e.data(n[i],this.widgetFullName))&&r!==this&&!r.options.disabled&&(c.push([e.isFunction(r.options.items)?r.options.items.call(r.element[0],t,{item:this.currentItem}):e(r.options.items,r.element),r]),this.containers.push(r));for(o=c.length-1;o>=0;o--)for(s=c[o][1],i=0,p=(a=c[o][0]).length;p>i;i++)(l=e(a[i])).data(this.widgetName+"-item",s),u.push({item:l,instance:s,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var o,i,n,r;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),o=this.items.length-1;o>=0;o--)(i=this.items[o]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=n.outerWidth(),i.height=n.outerHeight()),r=n.offset(),i.left=r.left,i.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(o=this.containers.length-1;o>=0;o--)r=this.containers[o].element.offset(),this.containers[o].containerCache.left=r.left,this.containers[o].containerCache.top=r.top,this.containers[o].containerCache.width=this.containers[o].element.outerWidth(),this.containers[o].containerCache.height=this.containers[o].element.outerHeight();return this},_createPlaceholder:function(t){var o,i=(t=t||this).options;i.placeholder&&i.placeholder.constructor!==String||(o=i.placeholder,i.placeholder={element:function(){var i=t.currentItem[0].nodeName.toLowerCase(),n=e("<"+i+">",t.document[0]).addClass(o||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===i?t.currentItem.children().each((function(){e("<td> </td>",t.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)})):"img"===i&&n.attr("src",t.currentItem.attr("src")),o||n.css("visibility","hidden"),n},update:function(e,n){(!o||i.forcePlaceholderSize)&&(n.height()||n.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_contactContainers:function(i){var n,r,s,a,l,p,u,c,d,h,f=null,g=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&e.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],g=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",i,this._uiHash(this)),this.containers[n].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",i,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(s=1e4,a=null,l=(h=f.floating||o(this.currentItem))?"left":"top",p=h?"width":"height",u=this.positionAbs[l]+this.offset.click[l],r=this.items.length-1;r>=0;r--)e.contains(this.containers[g].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(!h||t(this.positionAbs.top+this.offset.click.top,this.items[r].top,this.items[r].height))&&(c=this.items[r].item.offset()[l],d=!1,Math.abs(c-u)>Math.abs(c+this.items[r][p]-u)&&(d=!0,c+=this.items[r][p]),s>Math.abs(c-u)&&(s=Math.abs(c-u),a=this.items[r],this.direction=d?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;a?this._rearrange(i,a,null,!0):this._rearrange(i,null,this.containers[g].element,!0),this._trigger("change",i,this._uiHash()),this.containers[g]._trigger("change",i,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",i,this._uiHash(this)),this.containers[g].containerCache.over=1}},_createHelper:function(t){var o=this.options,i=e.isFunction(o.helper)?e(o.helper.apply(this.element[0],[t,this.currentItem])):"clone"===o.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||e("parent"!==o.appendTo?o.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||o.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||o.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,o,i,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e("document"===n.containment?document:window).width()-this.helperProportions.width-this.margins.left,(e("document"===n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(t=e(n.containment)[0],o=e(n.containment).offset(),i="hidden"!==e(t).css("overflow"),this.containment=[o.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,o.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,o.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,o.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,o){o||(o=this.position);var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(n[0].tagName);return{top:o.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:n.scrollTop())*i,left:o.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:n.scrollLeft())*i}},_generatePosition:function(t){var o,i,n=this.options,r=t.pageX,s=t.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),n.grid&&(o=this.originalPageY+Math.round((s-this.originalPageY)/n.grid[1])*n.grid[1],s=this.containment?o-this.offset.click.top>=this.containment[1]&&o-this.offset.click.top<=this.containment[3]?o:o-this.offset.click.top>=this.containment[1]?o-n.grid[1]:o+n.grid[1]:o,i=this.originalPageX+Math.round((r-this.originalPageX)/n.grid[0])*n.grid[0],r=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-n.grid[0]:i+n.grid[0]:i)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(e,t,o,i){o?o[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay((function(){n===this.counter&&this.refreshPositions(!i)}))},_clear:function(e,t){this.reverting=!1;var o,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(o in this._storedCSS)("auto"===this._storedCSS[o]||"static"===this._storedCSS[o])&&(this._storedCSS[o]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&i.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||i.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(i.push((function(e){this._trigger("remove",e,this._uiHash())})),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),o=this.containers.length-1;o>=0;o--)t||i.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over&&(i.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[o])),this.containers[o].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(this._trigger("beforeStop",e,this._uiHash()),o=0;i.length>o;o++)i[o].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!1}if(t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!t){for(o=0;i.length>o;o++)i[o].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var o=t||this;return{helper:o.helper,placeholder:o.placeholder||e([]),position:o.position,originalPosition:o.originalPosition,offset:o.positionAbs,item:o.currentItem,sender:t?t.element:null}}})}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");if(function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(),function(e){"use strict";var t='[data-dismiss="alert"]',o=function(o){e(o).on("click",t,this.close)};o.VERSION="3.3.0",o.TRANSITION_DURATION=150,o.prototype.close=function(t){var i=e(this),n=i.attr("data-target");n||(n=(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var r=e(n);function s(){r.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),r.length||(r=i.closest(".alert")),r.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",s).emulateTransitionEnd(o.TRANSITION_DURATION):s())};var i=e.fn.alert;e.fn.alert=function(t){return this.each((function(){var i=e(this),n=i.data("bs.alert");n||i.data("bs.alert",n=new o(this)),"string"==typeof t&&n[t].call(i)}))},e.fn.alert.Constructor=o,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,o.prototype.close)}(jQuery),function(e){"use strict";var t=function t(o,i){this.$element=e(o),this.options=e.extend({},t.DEFAULTS,i),this.isLoading=!1};function o(o){return this.each((function(){var i=e(this),n=i.data("bs.button"),r="object"==_typeof2(o)&&o;n||i.data("bs.button",n=new t(this,r)),"toggle"==o?n.toggle():o&&n.setState(o)}))}t.VERSION="3.3.0",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var o="disabled",i=this.$element,n=i.is("input")?"val":"html",r=i.data();t+="Text",null==r.resetText&&i.data("resetText",i[n]()),setTimeout(e.proxy((function(){i[n](null==r[t]?this.options[t]:r[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(o).attr(o,o)):this.isLoading&&(this.isLoading=!1,i.removeClass(o).removeAttr(o))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var o=this.$element.find("input");"radio"==o.prop("type")&&(o.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&o.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));e&&this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=o,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var i=e(t.target);i.hasClass("btn")||(i=i.closest(".btn")),o.call(i,"toggle"),t.preventDefault()})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus","focus"==t.type)}))}(jQuery),function(e){"use strict";var t=function(t,o){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=o,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function o(o){return this.each((function(){var i=e(this),n=i.data("bs.carousel"),r=e.extend({},t.DEFAULTS,i.data(),"object"==_typeof2(o)&&o),s="string"==typeof o?o:r.slide;n||i.data("bs.carousel",n=new t(this,r)),"number"==typeof o?n.to(o):s?n[s]():r.interval&&n.pause().cycle()}))}t.VERSION="3.3.0",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var o="prev"==e?-1:1,i=(this.getItemIndex(t)+o)%this.$items.length;return this.$items.eq(i)},t.prototype.to=function(e){var t=this,o=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(o,i){var n=this.$element.find(".item.active"),r=i||this.getItemForDirection(o,n),s=this.interval,a="next"==o?"left":"right",l="next"==o?"first":"last",p=this;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[l]()}if(r.hasClass("active"))return this.sliding=!1;var u=r[0],c=e.Event("slide.bs.carousel",{relatedTarget:u,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(r)]);d&&d.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:u,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(r.addClass(o),r[0].offsetWidth,n.addClass(a),r.addClass(a),n.one("bsTransitionEnd",(function(){r.removeClass([o,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),p.sliding=!1,setTimeout((function(){p.$element.trigger(h)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(n.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=o,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var n=function(t){var i,n=e(this),r=e(n.attr("data-target")||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var s=e.extend({},r.data(),n.data()),a=n.attr("data-slide-to");a&&(s.interval=!1),o.call(r,s),a&&r.data("bs.carousel").to(a),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",n).on("click.bs.carousel.data-api","[data-slide-to]",n),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);o.call(t,t.data())}))}))}(jQuery),function(e){"use strict";var t='[data-toggle="dropdown"]',o=function(t){e(t).on("click.bs.dropdown",this.toggle)};function i(o){o&&3===o.which||(e(".dropdown-backdrop").remove(),e(t).each((function(){var t=e(this),i=n(t),r={relatedTarget:this};i.hasClass("open")&&(i.trigger(o=e.Event("hide.bs.dropdown",r)),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",r)))})))}function n(t){var o=t.attr("data-target");o||(o=(o=t.attr("href"))&&/#[A-Za-z]/.test(o)&&o.replace(/.*(?=#[^\s]*$)/,""));var i=o&&e(o);return i&&i.length?i:t.parent()}o.VERSION="3.3.0",o.prototype.toggle=function(t){var o=e(this);if(!o.is(".disabled, :disabled")){var r=n(o),s=r.hasClass("open");if(i(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e('<div class="dropdown-backdrop"/>').insertAfter(e(this)).on("click",i);var a={relatedTarget:this};if(r.trigger(t=e.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},o.prototype.keydown=function(o){if(/(38|40|27|32)/.test(o.which)){var i=e(this);if(o.preventDefault(),o.stopPropagation(),!i.is(".disabled, :disabled")){var r=n(i),s=r.hasClass("open");if(!s&&27!=o.which||s&&27==o.which)return 27==o.which&&r.find(t).trigger("focus"),i.trigger("click");var a=" li:not(.divider):visible a",l=r.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var p=l.index(o.target);38==o.which&&p>0&&p--,40==o.which&&p<l.length-1&&p++,~p||(p=0),l.eq(p).trigger("focus")}}}};var r=e.fn.dropdown;e.fn.dropdown=function(t){return this.each((function(){var i=e(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new o(this)),"string"==typeof t&&n[t].call(i)}))},e.fn.dropdown.Constructor=o,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=r,this},e(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",(function(e){e.stopPropagation()})).on("click.bs.dropdown.data-api",t,o.prototype.toggle).on("keydown.bs.dropdown.data-api",t,o.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',o.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',o.prototype.keydown)}(jQuery),function(e){"use strict";var t=function(t,o){this.options=o,this.$body=e(document.body),this.$element=e(t),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function o(o,i){return this.each((function(){var n=e(this),r=n.data("bs.modal"),s=e.extend({},t.DEFAULTS,n.data(),"object"==_typeof2(o)&&o);r||n.data("bs.modal",r=new t(this,s)),"string"==typeof o?r[o](i):s.show&&r.show(i)}))}t.VERSION="3.3.0",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(o){var i=this,n=e.Event("show.bs.modal",{relatedTarget:o});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop((function(){var n=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),n&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:o});n?i.$element.find(".modal-dialog").one("bsTransitionEnd",(function(){i.$element.trigger("focus").trigger(r)})).emulateTransitionEnd(t.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)})))},t.prototype.hide=function(o){o&&o.preventDefault(),o=e.Event("hide.bs.modal"),this.$element.trigger(o),this.isShown&&!o.isDefaultPrevented()&&(this.isShown=!1,this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy((function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop((function(){e.$body.removeClass("modal-open"),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")}))},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(o){var i=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&n;if(this.$backdrop=e('<div class="modal-backdrop '+n+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",e.proxy((function(e){e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))}),this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!o)return;r?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):o()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),o&&o()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):s()}else o&&o()},t.prototype.checkScrollbar=function(){this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",e+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},t.prototype.measureScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return 0;var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=o,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var i=e(this),n=i.attr("href"),r=e(i.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(n)&&n},r.data(),i.data());i.is("a")&&t.preventDefault(),r.one("show.bs.modal",(function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",(function(){i.is(":visible")&&i.trigger("focus")}))})),o.call(r,s,this)}))}(jQuery),function(e){"use strict";var t=function(e,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",e,t)};t.VERSION="3.3.0",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,o,i){this.enabled=!0,this.type=t,this.$element=e(o),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(this.options.viewport.selector||this.options.viewport);for(var n=this.options.trigger.split(" "),r=n.length;r--;){var s=n[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},o=this.getDefaults();return this._options&&e.each(this._options,(function(e,i){o[e]!=i&&(t[e]=i)})),t},t.prototype.enter=function(t){var o=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(o&&o.$tip&&o.$tip.is(":visible"))o.hoverState="in";else{if(o||(o=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,o)),clearTimeout(o.timeout),o.hoverState="in",!o.options.delay||!o.options.delay.show)return o.show();o.timeout=setTimeout((function(){"in"==o.hoverState&&o.show()}),o.options.delay.show)}},t.prototype.leave=function(t){var o=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(o||(o=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,o)),clearTimeout(o.timeout),o.hoverState="out",!o.options.delay||!o.options.delay.hide)return o.hide();o.timeout=setTimeout((function(){"out"==o.hoverState&&o.hide()}),o.options.delay.hide)},t.prototype.show=function(){var o=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(o);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(o.isDefaultPrevented()||!i)return;var n=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,p=l.test(a);p&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var u=this.getPosition(),c=r[0].offsetWidth,d=r[0].offsetHeight;if(p){var h=a,f=this.options.container?e(this.options.container):this.$element.parent(),g=this.getPosition(f);a="bottom"==a&&u.bottom+d>g.bottom?"top":"top"==a&&u.top-d<g.top?"bottom":"right"==a&&u.right+c>g.width?"left":"left"==a&&u.left-c<g.left?"right":a,r.removeClass(h).addClass(a)}var y=this.getCalculatedOffset(a,u,c,d);this.applyPlacement(y,a);var m=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==e&&n.leave(n)};e.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",m).emulateTransitionEnd(t.TRANSITION_DURATION):m()}},t.prototype.applyPlacement=function(t,o){var i=this.tip(),n=i[0].offsetWidth,r=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top=t.top+s,t.left=t.left+a,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,p=i[0].offsetHeight;"top"==o&&p!=r&&(t.top=t.top+r-p);var u=this.getViewportAdjustedDelta(o,t,l,p);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(o),d=c?2*u.left-n+l:2*u.top-r+p,h=c?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(d,i[0][h],c)},t.prototype.replaceArrow=function(e,t,o){this.arrow().css(o?"left":"top",50*(1-e/t)+"%").css(o?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(o){var i=this,n=this.tip(),r=e.Event("hide.bs."+this.type);function s(){"in"!=i.hoverState&&n.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),o&&o()}if(this.$element.trigger(r),!r.isDefaultPrevented())return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var o=(t=t||this.$element)[0],i="BODY"==o.tagName,n=o.getBoundingClientRect();null==n.width&&(n=e.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var r=i?{top:0,left:0}:t.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},a=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},n,s,a,r)},t.prototype.getCalculatedOffset=function(e,t,o,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-o/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-o/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-o}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,o,i){var n={top:0,left:0};if(!this.$viewport)return n;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-r-s.scroll,l=t.top+r-s.scroll+i;a<s.top?n.top=s.top-a:l>s.top+s.height&&(n.top=s.top+s.height-l)}else{var p=t.left-r,u=t.left+r+o;p<s.left?n.left=s.left-p:u>s.width&&(n.left=s.left+s.width-u)}return n},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){return this.$tip=this.$tip||e(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var o=this;t&&((o=e(t.currentTarget).data("bs."+this.type))||(o=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,o))),o.tip().hasClass("in")?o.leave(o):o.enter(o)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type)}))};var o=e.fn.tooltip;e.fn.tooltip=function(o){return this.each((function(){var i=e(this),n=i.data("bs.tooltip"),r="object"==_typeof2(o)&&o,s=r&&r.selector;(n||"destroy"!=o)&&(s?(n||i.data("bs.tooltip",n={}),n[s]||(n[s]=new t(this,r))):n||i.data("bs.tooltip",n=new t(this,r)),"string"==typeof o&&n[o]())}))},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=o,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.0",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype)).constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),o=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof o?"html":"append":"text"](o),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},t.prototype.tip=function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip};var o=e.fn.popover;e.fn.popover=function(o){return this.each((function(){var i=e(this),n=i.data("bs.popover"),r="object"==_typeof2(o)&&o,s=r&&r.selector;(n||"destroy"!=o)&&(s?(n||i.data("bs.popover",n={}),n[s]||(n[s]=new t(this,r))):n||i.data("bs.popover",n=new t(this,r)),"string"==typeof o&&n[o]())}))},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=o,this}}(jQuery),function(e){"use strict";var t=function(t){this.element=e(t)};function o(o){return this.each((function(){var i=e(this),n=i.data("bs.tab");n||i.data("bs.tab",n=new t(this)),"string"==typeof o&&n[o]()}))}t.VERSION="3.3.0",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,o=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var n=o.find(".active:last a"),r=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(r),t.trigger(s),!s.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=e(i);this.activate(t.closest("li"),o),this.activate(a,a.parent(),(function(){n.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:n[0]})}))}}},t.prototype.activate=function(o,i,n){var r=i.find("> .active"),s=n&&e.support.transition&&(r.length&&r.hasClass("fade")||!!i.find("> .fade").length);function a(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),o.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(o[0].offsetWidth,o.addClass("in")):o.removeClass("fade"),o.parent(".dropdown-menu")&&o.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}r.length&&s?r.one("bsTransitionEnd",a).emulateTransitionEnd(t.TRANSITION_DURATION):a(),r.removeClass("in")};var i=e.fn.tab;e.fn.tab=o,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var n=function(t){t.preventDefault(),o.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(e){"use strict";var t=function t(o,i){this.options=e.extend({},t.DEFAULTS,i),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(o),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};function o(o){return this.each((function(){var i=e(this),n=i.data("bs.affix"),r="object"==_typeof2(o)&&o;n||i.data("bs.affix",n=new t(this,r)),"string"==typeof o&&n[o]()}))}t.VERSION="3.3.0",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,o,i){var n=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=o&&"top"==this.affixed)return n<o&&"top";if("bottom"==this.affixed)return null!=o?!(n+this.unpin<=r.top)&&"bottom":!(n+s<=e-i)&&"bottom";var a=null==this.affixed,l=a?n:r.top;return null!=o&&l<=o?"top":null!=i&&l+(a?s:t)>=e-i&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),o=this.$element.offset();return this.pinnedOffset=o.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var o=this.$element.height(),i=this.options.offset,n=i.top,r=i.bottom,s=e("body").height();"object"!=_typeof2(i)&&(r=n=i),"function"==typeof n&&(n=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var a=this.getState(s,o,n,r);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),p=e.Event(l+".bs.affix");if(this.$element.trigger(p),p.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-o-r})}};var i=e.fn.affix;e.fn.affix=o,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),i=t.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),o.call(t,i)}))}))}(jQuery),function(e){"use strict";var t=function t(o,i){this.$element=e(o),this.options=e.extend({},t.DEFAULTS,i),this.$trigger=e(this.options.trigger).filter('[href="#'+o.id+'"], [data-target="#'+o.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function o(t){var o,i=t.attr("data-target")||(o=t.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function i(o){return this.each((function(){var i=e(this),n=i.data("bs.collapse"),r=e.extend({},t.DEFAULTS,i.data(),"object"==_typeof2(o)&&o);!n&&r.toggle&&"show"==o&&(r.toggle=!1),n||i.data("bs.collapse",n=new t(this,r)),"string"==typeof o&&n[o]()}))}t.VERSION="3.3.0",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var o,n=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(n&&n.length&&(o=n.data("bs.collapse"))&&o.transitioning)){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){n&&n.length&&(i.call(n,"hide"),o||n.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var l=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[s](this.$element[0][l])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var o=e.Event("hide.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return n.call(this);this.$element[i](0).one("bsTransitionEnd",e.proxy(n,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,i){var n=e(i);this.addAriaAndCollapsedClass(o(n),n)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var o=e.hasClass("in");e.attr("aria-expanded",o),t.toggleClass("collapsed",!o).attr("aria-expanded",o)};var n=e.fn.collapse;e.fn.collapse=i,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var n=e(this);n.attr("data-target")||t.preventDefault();var r=o(n),s=r.data("bs.collapse")?"toggle":e.extend({},n.data(),{trigger:this});i.call(r,s)}))}(jQuery),function(e){"use strict";function t(o,i){var n=e.proxy(this.process,this);this.$body=e("body"),this.$scrollElement=e(o).is("body")?e(window):e(o),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n),this.refresh(),this.process()}function o(o){return this.each((function(){var i=e(this),n=i.data("bs.scrollspy"),r="object"==_typeof2(o)&&o;n||i.data("bs.scrollspy",n=new t(this,r)),"string"==typeof o&&n[o]()}))}t.VERSION="3.3.0",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t="offset",o=0;e.isWindow(this.$scrollElement[0])||(t="position",o=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map((function(){var i=e(this),n=i.data("target")||i.attr("href"),r=/^#./.test(n)&&e(n);return r&&r.length&&r.is(":visible")&&[[r[t]().top+o,n]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){i.offsets.push(this[0]),i.targets.push(this[1])}))},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,o=this.getScrollHeight(),i=this.options.offset+o-this.$scrollElement.height(),n=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=o&&this.refresh(),t>=i)return s!=(e=r[r.length-1])&&this.activate(e);if(s&&t<n[0])return this.activeTarget=null,this.clear();for(e=n.length;e--;)s!=r[e]&&t>=n[e]&&(!n[e+1]||t<=n[e+1])&&this.activate(r[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var o=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(o).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=o,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",(function(){e('[data-spy="scroll"]').each((function(){var t=e(this);o.call(t,t.data())}))}))}(jQuery),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var o=!1,i=this;e(this).one("bsTransitionEnd",(function(){o=!0}));return setTimeout((function(){o||e(i).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var o in t)if(void 0!==e.style[o])return{end:t[o]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(e){"use strict";var t='[data-toggle="context"]',o=function(t,o){this.$element=e(t),this.before=o.before||this.before,this.onItem=o.onItem||this.onItem,this.scopes=o.scopes||null,o.target&&this.$element.data("target",o.target),this.listen()};o.prototype={constructor:o,show:function(t){var o,i,n={relatedTarget:this};if(!this.isDisabled()&&(this.closemenu(),this.before.call(this,t,e(t.currentTarget))))return(o=this.getMenu()).trigger(e.Event("show.bs.context",n)),i=this.getPosition(t,o),"li:not(.divider)",o.attr("style","").css(i).addClass("open").on("click.context.data-api","li:not(.divider)",e.proxy(this.onItem,this,e(t.currentTarget))).trigger("shown.bs.context",n),e("html").on("click.context.data-api",o.selector,e.proxy(this.closemenu,this)),!1},closemenu:function(t){var o,i;if((o=this.getMenu()).hasClass("open"))return i={relatedTarget:this},o.trigger(e.Event("hide.bs.context",i)),"li:not(.divider)",o.removeClass("open").off("click.context.data-api","li:not(.divider)").trigger("hidden.bs.context",i),e("html").off("click.context.data-api",o.selector),!1},keydown:function(e){27==e.which&&this.closemenu(e)},before:function(e){return!0},onItem:function(e){return!0},listen:function(){this.$element.on("contextmenu.context.data-api",this.scopes,e.proxy(this.show,this)),e("html").on("click.context.data-api",e.proxy(this.closemenu,this)),e("html").on("keydown.context.data-api",e.proxy(this.keydown,this))},destroy:function(){this.$element.off(".context.data-api").removeData("context"),e("html").off(".context.data-api")},isDisabled:function(){return this.$element.hasClass("disabled")||this.$element.attr("disabled")},getMenu:function(){var t,o=this.$element.data("target");return o||(o=(o=this.$element.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),(t=e(o))&&t.length?t:this.$element.find(o)},getPosition:function(t,o){var i,n,r,s=t.clientX,a=t.clientY,l=e(window).width(),p=e(window).height(),u=o.find(".dropdown-menu").outerWidth(),c=o.find(".dropdown-menu").outerHeight();return i=a+c>p?{top:a-c+e(window).scrollTop()}:{top:a+e(window).scrollTop()},n=s+u>l&&s-u>0?{left:s-u+e(window).scrollLeft()}:{left:s+e(window).scrollLeft()},r=o.offsetParent().offset(),n.left=n.left-r.left,i.top=i.top-r.top,e.extend({position:"absolute","z-index":9999},i,n)}},e.fn.contextmenu=function(t,i){return this.each((function(){var n=e(this),r=n.data("context"),s="object"==_typeof2(t)&&t;r||n.data("context",r=new o(n,s)),"string"==typeof t&&r[t].call(r,i)}))},e.fn.contextmenu.Constructor=o,e(document).on("contextmenu.context.data-api",(function(){e(t).each((function(){var t=e(this).data("context");t&&t.closemenu()}))})).on("contextmenu.context.data-api",t,(function(t){e(this).contextmenu("show",t),t.preventDefault(),t.stopPropagation()}))}(jQuery),"undefined"==typeof jQuery)throw new Error("Tempus Dominus Bootstrap3's requires jQuery. jQuery must be included before Tempus Dominus Bootstrap3's JavaScript.");if(function(e){var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Tempus Dominus Bootstrap3's requires at least jQuery v3.0.0 but less than v4.0.0")}(),"undefined"==typeof moment)throw new Error("Tempus Dominus Bootstrap3's requires moment.js. Moment.js must be included before Tempus Dominus Bootstrap3's JavaScript.");var QRMode,QRErrorCorrectLevel,QRMaskPattern,QRUtil,QRMath,i,version=moment.version.split(".");if(version[0]<=2&&version[1]<17||version[0]>=3)throw new Error("Tempus Dominus Bootstrap3's requires at least moment.js v2.17.0 but less than v3.0.0");function QR8bitByte(e){this.mode=QRMode.MODE_8BIT_BYTE,this.data=e}function QRCode(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}function QRPolynomial(e,t){var o,i;if(null==e.length)throw new Error(e.length+"/"+t);for(o=0;o<e.length&&0==e[o];)o++;for(this.num=new Array(e.length-o+t),i=0;i<e.length-o;i++)this.num[i]=e[i+o]}function QRRSBlock(e,t){this.totalCount=e,this.dataCount=t}function QRBitBuffer(){this.buffer=new Array,this.length=0}for(function(){var e="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)},t=function(){function e(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(e,i){var n="datetimepicker",r=""+n,s="."+r,a=".data-api",l={DATA_TOGGLE:'[data-toggle="'+r+'"]'},p={INPUT:n+"-input"},u={CHANGE:"change"+s,BLUR:"blur"+s,KEYUP:"keyup"+s,KEYDOWN:"keydown"+s,FOCUS:"focus"+s,CLICK_DATA_API:"click"+s+a,UPDATE:"update"+s,ERROR:"error"+s,HIDE:"hide"+s,SHOW:"show"+s},c=[{CLASS_NAME:"days",NAV_FUNCTION:"M",NAV_STEP:1},{CLASS_NAME:"months",NAV_FUNCTION:"y",NAV_STEP:1},{CLASS_NAME:"years",NAV_FUNCTION:"y",NAV_STEP:10},{CLASS_NAME:"decades",NAV_FUNCTION:"y",NAV_STEP:100}],d={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},h=["times","days","months","years","decades"],f={},g={},y=0,m={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:i.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-arrow-up",down:"fa fa-arrow-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-calendar-check-o",clear:"fa fa-delete",close:"fa fa-times"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time",selectDate:"Select Date"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",buttons:{showToday:!1,showClear:!1,showClose:!1},widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,keyBinds:{up:function(){if(!this.widget)return!1;var e=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(e.clone().subtract(7,"d")):this.date(e.clone().add(this.stepping(),"m")),!0},down:function(){if(!this.widget)return this.show(),!1;var e=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(e.clone().add(7,"d")):this.date(e.clone().subtract(this.stepping(),"m")),!0},"control up":function(){if(!this.widget)return!1;var e=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(e.clone().subtract(1,"y")):this.date(e.clone().add(1,"h")),!0},"control down":function(){if(!this.widget)return!1;var e=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(e.clone().add(1,"y")):this.date(e.clone().subtract(1,"h")),!0},left:function(){if(!this.widget)return!1;var e=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(e.clone().subtract(1,"d")),!0},right:function(){if(!this.widget)return!1;var e=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(e.clone().add(1,"d")),!0},pageUp:function(){if(!this.widget)return!1;var e=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(e.clone().subtract(1,"M")),!0},pageDown:function(){if(!this.widget)return!1;var e=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(e.clone().add(1,"M")),!0},enter:function(){return!!this.widget&&(this.hide(),!0)},escape:function(){return!!this.widget&&(this.hide(),!0)},"control space":function(){return!!this.widget&&(this.widget.find(".timepicker").is(":visible")&&this.widget.find('.btn[data-action="togglePeriod"]').click(),!0)},t:function(){return!!this.widget&&(this.date(this.getMoment()),!0)},delete:function(){return!!this.widget&&(this.clear(),!0)}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1,allowMultidate:!1,multidateSeparator:","};return function(){function v(e,t){o(this,v),this._options=this._getOptions(t),this._element=e,this._dates=[],this._datesFormatted=[],this._viewDate=null,this.unset=!0,this.component=!1,this.widget=!1,this.use24Hours=null,this.actualFormat=null,this.parseFormats=null,this.currentViewMode=null,this._int()}return v.prototype._int=function(){var t=this._element.data("target-input");this._element.is("input")?this.input=this._element:void 0!==t&&(this.input="nearest"===t?this._element.find("input"):e(t)),this._dates=[],this._dates[0]=this.getMoment(),this._viewDate=this.getMoment().clone(),e.extend(!0,this._options,this._dataToOptions()),this.options(this._options),this._initFormatting(),void 0!==this.input&&this.input.is("input")&&0!==this.input.val().trim().length?this._setValue(this._parseInputDate(this.input.val().trim()),0):this._options.defaultDate&&void 0!==this.input&&void 0===this.input.attr("placeholder")&&this._setValue(this._options.defaultDate,0),this._options.inline&&this.show()},v.prototype._update=function(){this.widget&&(this._fillDate(),this._fillTime())},v.prototype._setValue=function(e,t){var o=this.unset?null:this._dates[t],i="";if(!e)return this._options.allowMultidate&&1!==this._dates.length?(i=(i=this._element.data("date")+",").replace(o.format(this.actualFormat)+",","").replace(",,","").replace(/,\s*$/,""),this._dates.splice(t,1),this._datesFormatted.splice(t,1)):(this.unset=!0,this._dates=[],this._datesFormatted=[]),void 0!==this.input&&(this.input.val(i),this.input.trigger("input")),this._element.data("date",i),this._notifyEvent({type:v.Event.CHANGE,date:!1,oldDate:o}),void this._update();if(e=e.clone().locale(this._options.locale),this._hasTimeZone()&&e.tz(this._options.timeZone),1!==this._options.stepping&&e.minutes(Math.round(e.minutes()/this._options.stepping)*this._options.stepping).seconds(0),this._isValid(e)){if(this._dates[t]=e,this._datesFormatted[t]=e.format("YYYY-MM-DD"),this._viewDate=e.clone(),this._options.allowMultidate&&this._dates.length>1){for(var n=0;n<this._dates.length;n++)i+=""+this._dates[n].format(this.actualFormat)+this._options.multidateSeparator;i=i.replace(/,\s*$/,"")}else i=this._dates[t].format(this.actualFormat);void 0!==this.input&&(this.input.val(i),this.input.trigger("input")),this._element.data("date",i),this.unset=!1,this._update(),this._notifyEvent({type:v.Event.CHANGE,date:this._dates[t].clone(),oldDate:o})}else this._options.keepInvalid?this._notifyEvent({type:v.Event.CHANGE,date:e,oldDate:o}):void 0!==this.input&&(this.input.val(""+(this.unset?"":this._dates[t].format(this.actualFormat))),this.input.trigger("input")),this._notifyEvent({type:v.Event.ERROR,date:e,oldDate:o})},v.prototype._change=function(t){var o=e(t.target).val().trim(),i=o?this._parseInputDate(o):null;return this._setValue(i),t.stopImmediatePropagation(),!1},v.prototype._getOptions=function(t){return t=e.extend(!0,{},m,t)},v.prototype._hasTimeZone=function(){return void 0!==i.tz&&void 0!==this._options.timeZone&&null!==this._options.timeZone&&""!==this._options.timeZone},v.prototype._isEnabled=function(e){if("string"!=typeof e||e.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==this.actualFormat.indexOf("Y");case"M":return-1!==this.actualFormat.indexOf("M");case"d":return-1!==this.actualFormat.toLowerCase().indexOf("d");case"h":case"H":return-1!==this.actualFormat.toLowerCase().indexOf("h");case"m":return-1!==this.actualFormat.indexOf("m");case"s":return-1!==this.actualFormat.indexOf("s");case"a":case"A":return-1!==this.actualFormat.toLowerCase().indexOf("a");default:return!1}},v.prototype._hasTime=function(){return this._isEnabled("h")||this._isEnabled("m")||this._isEnabled("s")},v.prototype._hasDate=function(){return this._isEnabled("y")||this._isEnabled("M")||this._isEnabled("d")},v.prototype._dataToOptions=function(){var t=this._element.data(),o={};return t.dateOptions&&t.dateOptions instanceof Object&&(o=e.extend(!0,o,t.dateOptions)),e.each(this._options,(function(e){var i="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==t[i]?o[e]=t[i]:delete o[e]})),o},v.prototype._notifyEvent=function(e){e.type===v.Event.CHANGE&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||this._element.trigger(e)},v.prototype._viewUpdate=function(e){"y"===e&&(e="YYYY"),this._notifyEvent({type:v.Event.UPDATE,change:e,viewDate:this._viewDate.clone()})},v.prototype._showMode=function(e){this.widget&&(e&&(this.currentViewMode=Math.max(y,Math.min(3,this.currentViewMode+e))),this.widget.find(".datepicker > div").hide().filter(".datepicker-"+c[this.currentViewMode].CLASS_NAME).show())},v.prototype._isInDisabledDates=function(e){return!0===this._options.disabledDates[e.format("YYYY-MM-DD")]},v.prototype._isInEnabledDates=function(e){return!0===this._options.enabledDates[e.format("YYYY-MM-DD")]},v.prototype._isInDisabledHours=function(e){return!0===this._options.disabledHours[e.format("H")]},v.prototype._isInEnabledHours=function(e){return!0===this._options.enabledHours[e.format("H")]},v.prototype._isValid=function(t,o){if(!t.isValid())return!1;if(this._options.disabledDates&&"d"===o&&this._isInDisabledDates(t))return!1;if(this._options.enabledDates&&"d"===o&&!this._isInEnabledDates(t))return!1;if(this._options.minDate&&t.isBefore(this._options.minDate,o))return!1;if(this._options.maxDate&&t.isAfter(this._options.maxDate,o))return!1;if(this._options.daysOfWeekDisabled&&"d"===o&&-1!==this._options.daysOfWeekDisabled.indexOf(t.day()))return!1;if(this._options.disabledHours&&("h"===o||"m"===o||"s"===o)&&this._isInDisabledHours(t))return!1;if(this._options.enabledHours&&("h"===o||"m"===o||"s"===o)&&!this._isInEnabledHours(t))return!1;if(this._options.disabledTimeIntervals&&("h"===o||"m"===o||"s"===o)){var i=!1;if(e.each(this._options.disabledTimeIntervals,(function(){if(t.isBetween(this[0],this[1]))return i=!0,!1})),i)return!1}return!0},v.prototype._parseInputDate=function(e){return void 0===this._options.parseInputDate?i.isMoment(e)||(e=this.getMoment(e)):e=this._options.parseInputDate(e),e},v.prototype._keydown=function(e){var t=null,o=void 0,i=void 0,n=void 0,r=void 0,s=[],a={},l=e.which;for(o in f[l]="p",f)f.hasOwnProperty(o)&&"p"===f[o]&&(s.push(o),parseInt(o,10)!==l&&(a[o]=!0));for(o in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(o)&&"function"==typeof this._options.keyBinds[o]&&(n=o.split(" ")).length===s.length&&d[l]===n[n.length-1]){for(r=!0,i=n.length-2;i>=0;i--)if(!(d[n[i]]in a)){r=!1;break}if(r){t=this._options.keyBinds[o];break}}t&&t.call(this)&&(e.stopPropagation(),e.preventDefault())},v.prototype._keyup=function(e){f[e.which]="r",g[e.which]&&(g[e.which]=!1,e.stopPropagation(),e.preventDefault())},v.prototype._indexGivenDates=function(t){var o={},i=this;return e.each(t,(function(){var e=i._parseInputDate(this);e.isValid()&&(o[e.format("YYYY-MM-DD")]=!0)})),!!Object.keys(o).length&&o},v.prototype._indexGivenHours=function(t){var o={};return e.each(t,(function(){o[this]=!0})),!!Object.keys(o).length&&o},v.prototype._initFormatting=function(){var e=this._options.format||"L LT",t=this;this.actualFormat=e.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,(function(e){return t._dates[0].localeData().longDateFormat(e)||e})),this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[],this.parseFormats.indexOf(e)<0&&this.parseFormats.indexOf(this.actualFormat)<0&&this.parseFormats.push(this.actualFormat),this.use24Hours=this.actualFormat.toLowerCase().indexOf("a")<1&&this.actualFormat.replace(/\[.*?]/g,"").indexOf("h")<1,this._isEnabled("y")&&(y=2),this._isEnabled("M")&&(y=1),this._isEnabled("d")&&(y=0),this.currentViewMode=Math.max(y,this.currentViewMode),this.unset||this._setValue(this._dates[0],0)},v.prototype._getLastPickedDate=function(){var e=this._dates[this._getLastPickedDateIndex()];return void 0!==e&&null!=e||(e=this.getMoment()),e},v.prototype._getLastPickedDateIndex=function(){return this._dates.length-1},v.prototype.getMoment=function(e){var t=void 0;return t=null==e?i():this._hasTimeZone()?i.tz(e,this.parseFormats,this._options.useStrict,this._options.timeZone):i(e,this.parseFormats,this._options.useStrict),this._hasTimeZone()&&t.tz(this._options.timeZone),t},v.prototype.toggle=function(){return this.widget?this.hide():this.show()},v.prototype.ignoreReadonly=function(e){if(0===arguments.length)return this._options.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");this._options.ignoreReadonly=e},v.prototype.options=function(t){if(0===arguments.length)return e.extend(!0,{},this._options);if(!(t instanceof Object))throw new TypeError("options() this.options parameter should be an object");e.extend(!0,this._options,t);var o=this;e.each(this._options,(function(e,t){void 0!==o[e]&&o[e](t)}))},v.prototype.date=function(e,t){if(t=t||0,0===arguments.length)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[t].clone();if(!(null===e||"string"==typeof e||i.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");this._setValue(null===e?null:this._parseInputDate(e),t)},v.prototype.format=function(e){if(0===arguments.length)return this._options.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a string or boolean:false parameter "+e);this._options.format=e,this.actualFormat&&this._initFormatting()},v.prototype.timeZone=function(e){if(0===arguments.length)return this._options.timeZone;if("string"!=typeof e)throw new TypeError("newZone() expects a string parameter");this._options.timeZone=e},v.prototype.dayViewHeaderFormat=function(e){if(0===arguments.length)return this._options.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=e},v.prototype.extraFormats=function(e){if(0===arguments.length)return this._options.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=e,this.parseFormats&&this._initFormatting()},v.prototype.disabledDates=function(t){if(0===arguments.length)return this._options.disabledDates?e.extend({},this._options.disabledDates):this._options.disabledDates;if(!t)return this._options.disabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(t),this._options.enabledDates=!1,this._update()},v.prototype.enabledDates=function(t){if(0===arguments.length)return this._options.enabledDates?e.extend({},this._options.enabledDates):this._options.enabledDates;if(!t)return this._options.enabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(t),this._options.disabledDates=!1,this._update()},v.prototype.daysOfWeekDisabled=function(e){if(0===arguments.length)return this._options.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=e.reduce((function(e,t){return(t=parseInt(t,10))>6||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e}),[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(var t=0;t<this._dates.length;t++){for(var o=0;!this._isValid(this._dates[t],"d");){if(this._dates[t].add(1,"d"),31===o)throw"Tried 31 times to find a valid date";o++}this._setValue(this._dates[t],t)}this._update()},v.prototype.maxDate=function(e){if(0===arguments.length)return this._options.maxDate?this._options.maxDate.clone():this._options.maxDate;if("boolean"==typeof e&&!1===e)return this._options.maxDate=!1,this._update(),!0;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=this.getMoment()));var t=this._parseInputDate(e);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(this._options.minDate&&t.isBefore(this._options.minDate))throw new TypeError("maxDate() date parameter is before this.options.minDate: "+t.format(this.actualFormat));this._options.maxDate=t;for(var o=0;o<this._dates.length;o++)this._options.useCurrent&&!this._options.keepInvalid&&this._dates[o].isAfter(e)&&this._setValue(this._options.maxDate,o);this._viewDate.isAfter(t)&&(this._viewDate=t.clone().subtract(this._options.stepping,"m")),this._update()},v.prototype.minDate=function(e){if(0===arguments.length)return this._options.minDate?this._options.minDate.clone():this._options.minDate;if("boolean"==typeof e&&!1===e)return this._options.minDate=!1,this._update(),!0;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=this.getMoment()));var t=this._parseInputDate(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(this._options.maxDate&&t.isAfter(this._options.maxDate))throw new TypeError("minDate() date parameter is after this.options.maxDate: "+t.format(this.actualFormat));this._options.minDate=t;for(var o=0;o<this._dates.length;o++)this._options.useCurrent&&!this._options.keepInvalid&&this._dates[o].isBefore(e)&&this._setValue(this._options.minDate,o);this._viewDate.isBefore(t)&&(this._viewDate=t.clone().add(this._options.stepping,"m")),this._update()},v.prototype.defaultDate=function(e){if(0===arguments.length)return this._options.defaultDate?this._options.defaultDate.clone():this._options.defaultDate;if(!e)return this._options.defaultDate=!1,!0;"string"==typeof e&&(e="now"===e||"moment"===e?this.getMoment():this.getMoment(e));var t=this._parseInputDate(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!this._isValid(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");this._options.defaultDate=t,(this._options.defaultDate&&this._options.inline||void 0!==this.input&&""===this.input.val().trim())&&this._setValue(this._options.defaultDate,0)},v.prototype.locale=function(e){if(0===arguments.length)return this._options.locale;if(!i.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");this._options.locale=e;for(var t=0;t<this._dates.length;t++)this._dates[t].locale(this._options.locale);this._viewDate.locale(this._options.locale),this.actualFormat&&this._initFormatting(),this.widget&&(this.hide(),this.show())},v.prototype.stepping=function(e){if(0===arguments.length)return this._options.stepping;e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),this._options.stepping=e},v.prototype.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return this._options.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));this._options.useCurrent=e},v.prototype.collapse=function(e){if(0===arguments.length)return this._options.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");if(this._options.collapse===e)return!0;this._options.collapse=e,this.widget&&(this.hide(),this.show())},v.prototype.icons=function(t){if(0===arguments.length)return e.extend({},this._options.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");e.extend(this._options.icons,t),this.widget&&(this.hide(),this.show())},v.prototype.tooltips=function(t){if(0===arguments.length)return e.extend({},this._options.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");e.extend(this._options.tooltips,t),this.widget&&(this.hide(),this.show())},v.prototype.useStrict=function(e){if(0===arguments.length)return this._options.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");this._options.useStrict=e},v.prototype.sideBySide=function(e){if(0===arguments.length)return this._options.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");this._options.sideBySide=e,this.widget&&(this.hide(),this.show())},v.prototype.viewMode=function(e){if(0===arguments.length)return this._options.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===v.ViewModes.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+v.ViewModes.join(", ")+") value");this._options.viewMode=e,this.currentViewMode=Math.max(v.ViewModes.indexOf(e)-1,v.MinViewModeNumber),this._showMode()},v.prototype.calendarWeeks=function(e){if(0===arguments.length)return this._options.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");this._options.calendarWeeks=e,this._update()},v.prototype.buttons=function(t){if(0===arguments.length)return e.extend({},this._options.buttons);if(!(t instanceof Object))throw new TypeError("buttons() expects parameter to be an Object");if(e.extend(this._options.buttons,t),"boolean"!=typeof this._options.buttons.showToday)throw new TypeError("buttons.showToday expects a boolean parameter");if("boolean"!=typeof this._options.buttons.showClear)throw new TypeError("buttons.showClear expects a boolean parameter");if("boolean"!=typeof this._options.buttons.showClose)throw new TypeError("buttons.showClose expects a boolean parameter");this.widget&&(this.hide(),this.show())},v.prototype.keepOpen=function(e){if(0===arguments.length)return this._options.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");this._options.keepOpen=e},v.prototype.focusOnShow=function(e){if(0===arguments.length)return this._options.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");this._options.focusOnShow=e},v.prototype.inline=function(e){if(0===arguments.length)return this._options.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");this._options.inline=e},v.prototype.clear=function(){this._setValue(null)},v.prototype.keyBinds=function(e){if(0===arguments.length)return this._options.keyBinds;this._options.keyBinds=e},v.prototype.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");this._options.debug=e},v.prototype.allowInputToggle=function(e){if(0===arguments.length)return this._options.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");this._options.allowInputToggle=e},v.prototype.keepInvalid=function(e){if(0===arguments.length)return this._options.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");this._options.keepInvalid=e},v.prototype.datepickerInput=function(e){if(0===arguments.length)return this._options.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");this._options.datepickerInput=e},v.prototype.parseInputDate=function(e){if(0===arguments.length)return this._options.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() should be as function");this._options.parseInputDate=e},v.prototype.disabledTimeIntervals=function(t){if(0===arguments.length)return this._options.disabledTimeIntervals?e.extend({},this._options.disabledTimeIntervals):this._options.disabledTimeIntervals;if(!t)return this._options.disabledTimeIntervals=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");this._options.disabledTimeIntervals=t,this._update()},v.prototype.disabledHours=function(t){if(0===arguments.length)return this._options.disabledHours?e.extend({},this._options.disabledHours):this._options.disabledHours;if(!t)return this._options.disabledHours=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(this._options.disabledHours=this._indexGivenHours(t),this._options.enabledHours=!1,this._options.useCurrent&&!this._options.keepInvalid)for(var o=0;o<this._dates.length;o++){for(var i=0;!this._isValid(this._dates[o],"h");){if(this._dates[o].add(1,"h"),24===i)throw"Tried 24 times to find a valid date";i++}this._setValue(this._dates[o],o)}this._update()},v.prototype.enabledHours=function(t){if(0===arguments.length)return this._options.enabledHours?e.extend({},this._options.enabledHours):this._options.enabledHours;if(!t)return this._options.enabledHours=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(this._options.enabledHours=this._indexGivenHours(t),this._options.disabledHours=!1,this._options.useCurrent&&!this._options.keepInvalid)for(var o=0;o<this._dates.length;o++){for(var i=0;!this._isValid(this._dates[o],"h");){if(this._dates[o].add(1,"h"),24===i)throw"Tried 24 times to find a valid date";i++}this._setValue(this._dates[o],o)}this._update()},v.prototype.viewDate=function(e){if(0===arguments.length)return this._viewDate.clone();if(!e)return this._viewDate=(this._dates[0]||this.getMoment()).clone(),!0;if(!("string"==typeof e||i.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");this._viewDate=this._parseInputDate(e),this._viewUpdate()},v.prototype.allowMultidate=function(e){if("boolean"!=typeof e)throw new TypeError("allowMultidate() expects a boolean parameter");this._options.allowMultidate=e},v.prototype.multidateSeparator=function(e){if(0===arguments.length)return this._options.multidateSeparator;if("string"!=typeof e||e.length>1)throw new TypeError("multidateSeparator expects a single character string parameter");this._options.multidateSeparator=e},t(v,null,[{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return r}},{key:"EVENT_KEY",get:function(){return s}},{key:"DATA_API_KEY",get:function(){return a}},{key:"DatePickerModes",get:function(){return c}},{key:"ViewModes",get:function(){return h}},{key:"MinViewModeNumber",get:function(){return y}},{key:"Event",get:function(){return u}},{key:"Selector",get:function(){return l}},{key:"Default",get:function(){return m},set:function(e){m=e}},{key:"ClassName",get:function(){return p}}]),v}()}(jQuery,moment);!function(t){var n=t.fn[i.NAME],r=["top","bottom","auto"],s=["left","right","auto"],a=["default","top","bottom"],l=function(e){var o=e.data("target"),n=void 0;return o||(o=e.attr("href")||"",o=/^#[a-z]/i.test(o)?o:null),0===(n=t(o)).length||n.data(i.DATA_KEY)||t.extend({},n.data(),t(this).data()),n},p=function(n){function l(e,t){o(this,l);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==_typeof2(t)&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return i._init(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+_typeof2(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,n),l.prototype._init=function(){if(this._element.hasClass("input-group")){var e=this._element.find(".datepickerbutton");0===e.length?this.component=this._element.find(".input-group-addon"):this.component=e}},l.prototype._getDatePickerTemplate=function(){var e=t("<thead>").append(t("<tr>").append(t("<th>").addClass("prev").attr("data-action","previous").append(t("<span>").addClass(this._options.icons.previous))).append(t("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",this._options.calendarWeeks?"6":"5")).append(t("<th>").addClass("next").attr("data-action","next").append(t("<span>").addClass(this._options.icons.next)))),o=t("<tbody>").append(t("<tr>").append(t("<td>").attr("colspan",this._options.calendarWeeks?"8":"7")));return[t("<div>").addClass("datepicker-days").append(t("<table>").addClass("table-condensed").append(e).append(t("<tbody>"))),t("<div>").addClass("datepicker-months").append(t("<table>").addClass("table-condensed").append(e.clone()).append(o.clone())),t("<div>").addClass("datepicker-years").append(t("<table>").addClass("table-condensed").append(e.clone()).append(o.clone())),t("<div>").addClass("datepicker-decades").append(t("<table>").addClass("table-condensed").append(e.clone()).append(o.clone()))]},l.prototype._getTimePickerMainTemplate=function(){var e=t("<tr>"),o=t("<tr>"),i=t("<tr>");return this._isEnabled("h")&&(e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(t("<span>").addClass(this._options.icons.up)))),o.append(t("<td>").append(t("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:this._options.tooltips.pickHour}).attr("data-action","showHours"))),i.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(t("<span>").addClass(this._options.icons.down))))),this._isEnabled("m")&&(this._isEnabled("h")&&(e.append(t("<td>").addClass("separator")),o.append(t("<td>").addClass("separator").html(":")),i.append(t("<td>").addClass("separator"))),e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(t("<span>").addClass(this._options.icons.up)))),o.append(t("<td>").append(t("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:this._options.tooltips.pickMinute}).attr("data-action","showMinutes"))),i.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(t("<span>").addClass(this._options.icons.down))))),this._isEnabled("s")&&(this._isEnabled("m")&&(e.append(t("<td>").addClass("separator")),o.append(t("<td>").addClass("separator").html(":")),i.append(t("<td>").addClass("separator"))),e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(t("<span>").addClass(this._options.icons.up)))),o.append(t("<td>").append(t("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:this._options.tooltips.pickSecond}).attr("data-action","showSeconds"))),i.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(t("<span>").addClass(this._options.icons.down))))),this.use24Hours||(e.append(t("<td>").addClass("separator")),o.append(t("<td>").append(t("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:this._options.tooltips.togglePeriod}))),i.append(t("<td>").addClass("separator"))),t("<div>").addClass("timepicker-picker").append(t("<table>").addClass("table-condensed").append([e,o,i]))},l.prototype._getTimePickerTemplate=function(){var e=t("<div>").addClass("timepicker-hours").append(t("<table>").addClass("table-condensed")),o=t("<div>").addClass("timepicker-minutes").append(t("<table>").addClass("table-condensed")),i=t("<div>").addClass("timepicker-seconds").append(t("<table>").addClass("table-condensed")),n=[this._getTimePickerMainTemplate()];return this._isEnabled("h")&&n.push(e),this._isEnabled("m")&&n.push(o),this._isEnabled("s")&&n.push(i),n},l.prototype._getToolbar=function(){var e=[];return this._options.buttons.showToday&&e.push(t("<td>").append(t("<a>").attr({"data-action":"today",title:this._options.tooltips.today}).append(t("<span>").addClass(this._options.icons.today)))),!this._options.sideBySide&&this._hasDate()&&this._hasTime()&&e.push(t("<td>").append(t("<a>").attr({"data-action":"togglePicker",title:this._options.tooltips.selectTime}).append(t("<span>").addClass(this._options.icons.time)))),this._options.buttons.showClear&&e.push(t("<td>").append(t("<a>").attr({"data-action":"clear",title:this._options.tooltips.clear}).append(t("<span>").addClass(this._options.icons.clear)))),this._options.buttons.showClose&&e.push(t("<td>").append(t("<a>").attr({"data-action":"close",title:this._options.tooltips.close}).append(t("<span>").addClass(this._options.icons.close)))),0===e.length?"":t("<table>").addClass("table-condensed").append(t("<tbody>").append(t("<tr>").append(e)))},l.prototype._getTemplate=function(){var e=t("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),o=t("<div>").addClass("datepicker").append(this._getDatePickerTemplate()),i=t("<div>").addClass("timepicker").append(this._getTimePickerTemplate()),n=t("<ul>").addClass("list-unstyled"),r=t("<li>").addClass("picker-switch"+(this._options.collapse?" accordion-toggle":"")).append(this._getToolbar());return this._options.inline&&e.removeClass("dropdown-menu"),this.use24Hours&&e.addClass("usetwentyfour"),this._isEnabled("s")&&!this.use24Hours&&e.addClass("wider"),this._options.sideBySide&&this._hasDate()&&this._hasTime()?(e.addClass("timepicker-sbs"),"top"===this._options.toolbarPlacement&&e.append(r),e.append(t("<div>").addClass("row").append(o.addClass("col-md-6")).append(i.addClass("col-md-6"))),"bottom"!==this._options.toolbarPlacement&&"default"!==this._options.toolbarPlacement||e.append(r),e):("top"===this._options.toolbarPlacement&&n.append(r),this._hasDate()&&n.append(t("<li>").addClass(this._options.collapse&&this._hasTime()?"collapse":"").addClass(this._options.collapse&&this._hasTime()&&"days"===this._options.viewMode?"in":"").append(o)),"default"===this._options.toolbarPlacement&&n.append(r),this._hasTime()&&n.append(t("<li>").addClass(this._options.collapse&&this._hasDate()?"collapse":"").addClass(this._options.collapse&&this._hasDate()&&"times"===this._options.viewMode?"in":"").append(i)),"bottom"===this._options.toolbarPlacement&&n.append(r),e.append(n))},l.prototype._place=function(e){var o=e&&e.data&&e.data.picker||this,i=o._options.widgetPositioning.vertical,n=o._options.widgetPositioning.horizontal,r=void 0,s=(o.component||o._element).position(),a=(o.component||o._element).offset();if(o._options.widgetParent)r=o._options.widgetParent.append(o.widget);else if(o._element.is("input"))r=o._element.after(o.widget).parent();else{if(o._options.inline)return void(r=o._element.append(o.widget));r=o._element,o._element.children().first().after(o.widget)}if("auto"===i&&(i=a.top+1.5*o.widget.height()>=t(window).height()+t(window).scrollTop()&&o.widget.height()+o._element.outerHeight()<a.top?"top":"bottom"),"auto"===n&&(n=r.width()<a.left+o.widget.outerWidth()/2&&a.left+o.widget.outerWidth()>t(window).width()?"right":"left"),"top"===i?o.widget.addClass("top").removeClass("bottom"):o.widget.addClass("bottom").removeClass("top"),"right"===n?o.widget.addClass("pull-right"):o.widget.removeClass("pull-right"),"static"!==r.css("position")&&(r=r.parents().filter((function(){return"static"===t(this).css("position")})).first()),0===r.length)throw new Error("datetimepicker component should be placed within a static positioned container");o.widget.css({top:"top"===i?"auto":s.top+o._element.outerHeight()+"px",bottom:"top"===i?r.outerHeight()-(r===o._element?0:s.top)+"px":"auto",left:"left"===n?(r===o._element?0:s.left)+"px":"auto",right:"left"===n?"auto":r.outerWidth()-o._element.outerWidth()-(r===o._element?0:s.left)+"px"})},l.prototype._fillDow=function(){var e=t("<tr>"),o=this._viewDate.clone().startOf("w").startOf("d");for(!0===this._options.calendarWeeks&&e.append(t("<th>").addClass("cw").text("#"));o.isBefore(this._viewDate.clone().endOf("w"));)e.append(t("<th>").addClass("dow").text(o.format("dd"))),o.add(1,"d");this.widget.find(".datepicker-days thead").append(e)},l.prototype._fillMonths=function(){for(var e=[],o=this._viewDate.clone().startOf("y").startOf("d");o.isSame(this._viewDate,"y");)e.push(t("<span>").attr("data-action","selectMonth").addClass("month").text(o.format("MMM"))),o.add(1,"M");this.widget.find(".datepicker-months td").empty().append(e)},l.prototype._updateMonths=function(){var e=this,o=this.widget.find(".datepicker-months"),i=o.find("th"),n=o.find("tbody").find("span");i.eq(0).find("span").attr("title",this._options.tooltips.prevYear),i.eq(1).attr("title",this._options.tooltips.selectYear),i.eq(2).find("span").attr("title",this._options.tooltips.nextYear),o.find(".disabled").removeClass("disabled"),this._isValid(this._viewDate.clone().subtract(1,"y"),"y")||i.eq(0).addClass("disabled"),i.eq(1).text(this._viewDate.year()),this._isValid(this._viewDate.clone().add(1,"y"),"y")||i.eq(2).addClass("disabled"),n.removeClass("active"),this._getLastPickedDate().isSame(this._viewDate,"y")&&!this.unset&&n.eq(this._getLastPickedDate().month()).addClass("active"),n.each((function(o){e._isValid(e._viewDate.clone().month(o),"M")||t(this).addClass("disabled")}))},l.prototype._getStartEndYear=function(e,t){var o=e/10,i=Math.floor(t/e)*e;return[i,i+9*o,Math.floor(t/o)*o]},l.prototype._updateYears=function(){var e=this.widget.find(".datepicker-years"),t=e.find("th"),o=this._getStartEndYear(10,this._viewDate.year()),i=this._viewDate.clone().year(o[0]),n=this._viewDate.clone().year(o[1]),r="";for(t.eq(0).find("span").attr("title",this._options.tooltips.prevDecade),t.eq(1).attr("title",this._options.tooltips.selectDecade),t.eq(2).find("span").attr("title",this._options.tooltips.nextDecade),e.find(".disabled").removeClass("disabled"),this._options.minDate&&this._options.minDate.isAfter(i,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(i.year()+"-"+n.year()),this._options.maxDate&&this._options.maxDate.isBefore(n,"y")&&t.eq(2).addClass("disabled"),r+='<span data-action="selectYear" class="year old">'+(i.year()-1)+"</span>";!i.isAfter(n,"y");)r+='<span data-action="selectYear" class="year'+(i.isSame(this._getLastPickedDate(),"y")&&!this.unset?" active":"")+(this._isValid(i,"y")?"":" disabled")+'">'+i.year()+"</span>",i.add(1,"y");r+='<span data-action="selectYear" class="year old">'+i.year()+"</span>",e.find("td").html(r)},l.prototype._updateDecades=function(){var e=this.widget.find(".datepicker-decades"),t=e.find("th"),o=this._getStartEndYear(100,this._viewDate.year()),i=this._viewDate.clone().year(o[0]),n=this._viewDate.clone().year(o[1]),r=!1,s=!1,a=void 0,l="";for(t.eq(0).find("span").attr("title",this._options.tooltips.prevCentury),t.eq(2).find("span").attr("title",this._options.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(0===i.year()||this._options.minDate&&this._options.minDate.isAfter(i,"y"))&&t.eq(0).addClass("disabled"),t.eq(1).text(i.year()+"-"+n.year()),this._options.maxDate&&this._options.maxDate.isBefore(n,"y")&&t.eq(2).addClass("disabled"),i.year()-10<0?l+="<span> </span>":l+='<span data-action="selectDecade" class="decade old" data-selection="'+(i.year()+6)+'">'+(i.year()-10)+"</span>";!i.isAfter(n,"y");)a=i.year()+11,r=this._options.minDate&&this._options.minDate.isAfter(i,"y")&&this._options.minDate.year()<=a,s=this._options.maxDate&&this._options.maxDate.isAfter(i,"y")&&this._options.maxDate.year()<=a,l+='<span data-action="selectDecade" class="decade'+(this._getLastPickedDate().isAfter(i)&&this._getLastPickedDate().year()<=a?" active":"")+(this._isValid(i,"y")||r||s?"":" disabled")+'" data-selection="'+(i.year()+6)+'">'+i.year()+"</span>",i.add(10,"y");l+='<span data-action="selectDecade" class="decade old" data-selection="'+(i.year()+6)+'">'+i.year()+"</span>",e.find("td").html(l)},l.prototype._fillDate=function(){var e=this.widget.find(".datepicker-days"),o=e.find("th"),i=[],n=void 0,r=void 0,s=void 0,a=void 0;if(this._hasDate()){for(o.eq(0).find("span").attr("title",this._options.tooltips.prevMonth),o.eq(1).attr("title",this._options.tooltips.selectMonth),o.eq(2).find("span").attr("title",this._options.tooltips.nextMonth),e.find(".disabled").removeClass("disabled"),o.eq(1).text(this._viewDate.format(this._options.dayViewHeaderFormat)),this._isValid(this._viewDate.clone().subtract(1,"M"),"M")||o.eq(0).addClass("disabled"),this._isValid(this._viewDate.clone().add(1,"M"),"M")||o.eq(2).addClass("disabled"),n=this._viewDate.clone().startOf("M").startOf("w").startOf("d"),a=0;a<42;a++){if(0===n.weekday()&&(r=t("<tr>"),this._options.calendarWeeks&&r.append('<td class="cw">'+n.week()+"</td>"),i.push(r)),s="",n.isBefore(this._viewDate,"M")&&(s+=" old"),n.isAfter(this._viewDate,"M")&&(s+=" new"),this._options.allowMultidate){var l=this._datesFormatted.indexOf(n.format("YYYY-MM-DD"));-1!==l&&n.isSame(this._datesFormatted[l],"d")&&!this.unset&&(s+=" active")}else n.isSame(this._getLastPickedDate(),"d")&&!this.unset&&(s+=" active");this._isValid(n,"d")||(s+=" disabled"),n.isSame(this.getMoment(),"d")&&(s+=" today"),0!==n.day()&&6!==n.day()||(s+=" weekend");var p=n.format("L");"function"==typeof this._options.onSelectDay&&(s=this._options.onSelectDay(s,p)),r.append('<td data-action="selectDay" data-day="'+p+'" class="day'+s+'"><span>'+n.date()+"</span></td>"),n.add(1,"d")}e.find("tbody").empty().append(i),this._updateMonths(),this._updateYears(),this._updateDecades()}},l.prototype._fillHours=function(){var e=this.widget.find(".timepicker-hours table"),o=this._viewDate.clone().startOf("d"),i=[],n=t("<tr>");for(this._viewDate.hour()>11&&!this.use24Hours&&o.hour(12);o.isSame(this._viewDate,"d")&&(this.use24Hours||this._viewDate.hour()<12&&o.hour()<12||this._viewDate.hour()>11);)o.hour()%4==0&&(n=t("<tr>"),i.push(n)),n.append('<td data-action="selectHour" class="hour'+(this._isValid(o,"h")?"":" disabled")+'">'+o.format(this.use24Hours?"HH":"hh")+"</td>"),o.add(1,"h");e.empty().append(i)},l.prototype._fillMinutes=function(){for(var e=this.widget.find(".timepicker-minutes table"),o=this._viewDate.clone().startOf("h"),i=[],n=1===this._options.stepping?5:this._options.stepping,r=t("<tr>");this._viewDate.isSame(o,"h");)o.minute()%(4*n)==0&&(r=t("<tr>"),i.push(r)),r.append('<td data-action="selectMinute" class="minute'+(this._isValid(o,"m")?"":" disabled")+'">'+o.format("mm")+"</td>"),o.add(n,"m");e.empty().append(i)},l.prototype._fillSeconds=function(){for(var e=this.widget.find(".timepicker-seconds table"),o=this._viewDate.clone().startOf("m"),i=[],n=t("<tr>");this._viewDate.isSame(o,"m");)o.second()%20==0&&(n=t("<tr>"),i.push(n)),n.append('<td data-action="selectSecond" class="second'+(this._isValid(o,"s")?"":" disabled")+'">'+o.format("ss")+"</td>"),o.add(5,"s");e.empty().append(i)},l.prototype._fillTime=function(){var e=void 0,t=void 0,o=this.widget.find(".timepicker span[data-time-component]");this.use24Hours||(e=this.widget.find(".timepicker [data-action=togglePeriod]"),t=this._getLastPickedDate().clone().add(this._getLastPickedDate().hours()>=12?-12:12,"h"),e.text(this._getLastPickedDate().format("A")),this._isValid(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),o.filter("[data-time-component=hours]").text(this._getLastPickedDate().format(this.use24Hours?"HH":"hh")),o.filter("[data-time-component=minutes]").text(this._getLastPickedDate().format("mm")),o.filter("[data-time-component=seconds]").text(this._getLastPickedDate().format("ss")),this._fillHours(),this._fillMinutes(),this._fillSeconds()},l.prototype._doAction=function(e,o){var n=this._getLastPickedDate();if(t(e.currentTarget).is(".disabled"))return!1;switch(o=o||t(e.currentTarget).data("action")){case"next":var r=i.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.add(i.DatePickerModes[this.currentViewMode].NAV_STEP,r),this._fillDate(),this._viewUpdate(r);break;case"previous":var s=i.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.subtract(i.DatePickerModes[this.currentViewMode].NAV_STEP,s),this._fillDate(),this._viewUpdate(s);break;case"pickerSwitch":this._showMode(1);break;case"selectMonth":var a=t(e.target).closest("tbody").find("span").index(t(e.target));this._viewDate.month(a),this.currentViewMode===i.MinViewModeNumber?(this._setValue(n.clone().year(this._viewDate.year()).month(this._viewDate.month()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("M");break;case"selectYear":var l=parseInt(t(e.target).text(),10)||0;this._viewDate.year(l),this.currentViewMode===i.MinViewModeNumber?(this._setValue(n.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDecade":var p=parseInt(t(e.target).data("selection"),10)||0;this._viewDate.year(p),this.currentViewMode===i.MinViewModeNumber?(this._setValue(n.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDay":var u=this._viewDate.clone();t(e.target).is(".old")&&u.subtract(1,"M"),t(e.target).is(".new")&&u.add(1,"M");var c=u.date(parseInt(t(e.target).text(),10)),d=-1;this._options.allowMultidate?-1!==(d=this._datesFormatted.indexOf(c.format("YYYY-MM-DD")))?this._setValue(null,d):this._setValue(c,this._getLastPickedDateIndex()+1):this._setValue(c,0),this._hasTime()||this._options.keepOpen||this._options.inline||this._options.allowMultidate||this.hide();break;case"incrementHours":var h=n.clone().add(1,"h");this._isValid(h,"h")&&this._setValue(h,this._getLastPickedDateIndex());break;case"incrementMinutes":var f=this._getLastPickedDate().clone().add(this._options.stepping,"m");this._isValid(f,"m")&&this._setValue(f,this._getLastPickedDateIndex());break;case"incrementSeconds":var g=this._getLastPickedDate().clone().add(1,"s");this._isValid(g,"s")&&this._setValue(g,this._getLastPickedDateIndex());break;case"decrementHours":var y=n.clone().subtract(1,"h");this._isValid(y,"h")&&this._setValue(y,this._getLastPickedDateIndex());break;case"decrementMinutes":var m=n.clone().subtract(this._options.stepping,"m");this._isValid(m,"m")&&this._setValue(m,this._getLastPickedDateIndex());break;case"decrementSeconds":var v=n.clone().subtract(1,"s");this._isValid(v,"s")&&this._setValue(v,this._getLastPickedDateIndex());break;case"togglePeriod":this._setValue(n.clone().add(n.hours()>=12?-12:12,"h"),this._getLastPickedDateIndex());break;case"togglePicker":var C=t(e.target),_=C.closest("a"),w=C.closest("ul"),b=w.find(".in"),E=w.find(".collapse:not(.in)"),R=C.is("span")?C:C.find("span"),S=void 0;if(b&&b.length){if((S=b.data("collapse"))&&S.transitioning)return!1;b.collapse?(b.collapse("hide"),E.collapse("show")):(b.removeClass("in"),E.addClass("in")),R.toggleClass(this._options.icons.time+" "+this._options.icons.date),R.hasClass(this._options.icons.date)?_.attr("title",this._options.tooltips.selectDate):_.attr("title",this._options.tooltips.selectTime)}break;case"showPicker":this.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),this.widget.find(".timepicker .timepicker-picker").show();break;case"showHours":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-hours").show();break;case"showMinutes":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-minutes").show();break;case"showSeconds":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-seconds").show();break;case"selectHour":var P=parseInt(t(e.target).text(),10);this.use24Hours||(n.hours()>=12?12!==P&&(P+=12):12===P&&(P=0)),this._setValue(n.clone().hours(P),this._getLastPickedDateIndex()),this._doAction(e,"showPicker");break;case"selectMinute":this._setValue(n.clone().minutes(parseInt(t(e.target).text(),10)),n),this._doAction(e,"showPicker");break;case"selectSecond":this._setValue(n.clone().seconds(parseInt(t(e.target).text(),10)),this._getLastPickedDateIndex()),this._doAction(e,"showPicker");break;case"clear":this.clear();break;case"today":var O=this.getMoment();this._isValid(O,"d")&&this._setValue(O,n);break;case"close":this.hide()}return!1},l.prototype.hide=function(){var e=!1;this.widget&&(this.widget.find(".collapse").each((function(){var o=t(this).data("collapse");return!o||!o.transitioning||(e=!0,!1)})),e||(this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this.widget.hide(),t(window).off("resize",this._place),this.widget.off("click","[data-action]"),this.widget.off("mousedown",!1),this.widget.remove(),this.widget=!1,this._notifyEvent({type:i.Event.HIDE,date:this._getLastPickedDate().clone()}),void 0!==this.input&&this.input.blur(),this._viewDate=this._getLastPickedDate().clone()))},l.prototype.show=function(){var e=void 0,o={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}};if(void 0!==this.input){if(this.input.prop("disabled")||!this._options.ignoreReadonly&&this.input.prop("readonly")||this.widget)return;void 0!==this.input.val()&&0!==this.input.val().trim().length?this._setValue(this._parseInputDate(this.input.val().trim()),0):this.unset&&this._options.useCurrent&&(e=this.getMoment(),"string"==typeof this._options.useCurrent&&(e=o[this._options.useCurrent](e)),this._setValue(e,0))}else this.unset&&this._options.useCurrent&&(e=this.getMoment(),"string"==typeof this._options.useCurrent&&(e=o[this._options.useCurrent](e)),this._setValue(e,0));this.widget=this._getTemplate(),this._fillDow(),this._fillMonths(),this.widget.find(".timepicker-hours").hide(),this.widget.find(".timepicker-minutes").hide(),this.widget.find(".timepicker-seconds").hide(),this._update(),this._showMode(),t(window).on("resize",{picker:this},this._place),this.widget.on("click","[data-action]",t.proxy(this._doAction,this)),this.widget.on("mousedown",!1),this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this._place(),this.widget.show(),void 0!==this.input&&this._options.focusOnShow&&!this.input.is(":focus")&&this.input.focus(),this._notifyEvent({type:i.Event.SHOW})},l.prototype.destroy=function(){this.hide(),this._element.removeData(i.DATA_KEY),this._element.removeData("date")},l.prototype.disable=function(){this.hide(),this.component&&this.component.hasClass("btn")&&this.component.addClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!0)},l.prototype.enable=function(){this.component&&this.component.hasClass("btn")&&this.component.removeClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!1)},l.prototype.toolbarPlacement=function(e){if(0===arguments.length)return this._options.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===a.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+a.join(", ")+") value");this._options.toolbarPlacement=e,this.widget&&(this.hide(),this.show())},l.prototype.widgetPositioning=function(e){if(0===arguments.length)return t.extend({},this._options.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===s.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+s.join(", ")+")");this._options.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===r.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+r.join(", ")+")");this._options.widgetPositioning.vertical=e.vertical}this._update()},l.prototype.widgetParent=function(e){if(0===arguments.length)return this._options.widgetParent;if("string"==typeof e&&(e=t(e)),null!==e&&"string"!=typeof e&&!(e instanceof t))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");this._options.widgetParent=e,this.widget&&(this.hide(),this.show())},l._jQueryHandleThis=function(o,n,r){var s=t(o).data(i.DATA_KEY);if("object"===(void 0===n?"undefined":e(n))&&t.extend({},i.Default,n),s||(s=new l(t(o),n),t(o).data(i.DATA_KEY,s)),"string"==typeof n){if(void 0===s[n])throw new Error('No method named "'+n+'"');return void 0===r?s[n]():s[n](r)}},l._jQueryInterface=function(e,t){return 1===this.length?l._jQueryHandleThis(this[0],e,t):this.each((function(){l._jQueryHandleThis(this,e,t)}))},l}(i);t(document).on(i.Event.CLICK_DATA_API,i.Selector.DATA_TOGGLE,(function(){var e=l(t(this));0!==e.length&&p._jQueryInterface.call(e,"toggle")})).on(i.Event.CHANGE,"."+i.ClassName.INPUT,(function(e){var o=l(t(this));0!==o.length&&p._jQueryInterface.call(o,"_change",e)})).on(i.Event.BLUR,"."+i.ClassName.INPUT,(function(e){var o=l(t(this)),n=o.data(i.DATA_KEY);0!==o.length&&(n._options.debug||window.debug||p._jQueryInterface.call(o,"hide",e))})).on(i.Event.KEYDOWN,"."+i.ClassName.INPUT,(function(e){var o=l(t(this));0!==o.length&&p._jQueryInterface.call(o,"_keydown",e)})).on(i.Event.KEYUP,"."+i.ClassName.INPUT,(function(e){var o=l(t(this));0!==o.length&&p._jQueryInterface.call(o,"_keyup",e)})).on(i.Event.FOCUS,"."+i.ClassName.INPUT,(function(e){var o=l(t(this)),n=o.data(i.DATA_KEY);0!==o.length&&n._options.allowInputToggle&&p._jQueryInterface.call(o,n,e)})),t.fn[i.NAME]=p._jQueryInterface,t.fn[i.NAME].Constructor=p,t.fn[i.NAME].noConflict=function(){return t.fn[i.NAME]=n,p._jQueryInterface}}(jQuery)}(),function(e){e.fn.qrcode=function(t){var o,i;return"string"==typeof t&&(t={text:t}),t=e.extend({},{render:"canvas",width:256,height:256,imgWidth:t.width/2.5,imgHeight:t.height/2.5,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},t),o=function(){var e,o,i,n,r,s,a,l,p,u=new QRCode(t.typeNumber,t.correctLevel);for(u.addData(t.text),u.make(),e=document.createElement("canvas"),e.width=t.width,e.height=t.height,o=e.getContext("2d"),t.src&&((i=new Image).src=t.src,i.onload=function(){o.drawImage(i,(t.width-t.imgWidth)/2,(t.height-t.imgHeight)/2,t.imgWidth,t.imgHeight)}),n=t.width/u.getModuleCount(),r=t.height/u.getModuleCount(),s=0;s<u.getModuleCount();s++)for(a=0;a<u.getModuleCount();a++)o.fillStyle=u.isDark(s,a)?t.foreground:t.background,l=Math.ceil((a+1)*n)-Math.floor(a*n),p=Math.ceil((s+1)*n)-Math.floor(s*n),o.fillRect(Math.round(a*n),Math.round(s*r),l,p);return e},i=function(){var o,i,n,r,s,a,l=new QRCode(t.typeNumber,t.correctLevel);for(l.addData(t.text),l.make(),o=e("<table></table>").css("width",t.width+"px").css("height",t.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",t.background),i=t.width/l.getModuleCount(),n=t.height/l.getModuleCount(),r=0;r<l.getModuleCount();r++)for(s=e("<tr></tr>").css("height",n+"px").appendTo(o),a=0;a<l.getModuleCount();a++)e("<td></td>").css("width",i+"px").css("background-color",l.isDark(r,a)?t.foreground:t.background).appendTo(s);return o},this.each((function(){var n="canvas"==t.render?o():i();e(n).appendTo(this)}))}}(jQuery),QR8bitByte.prototype={getLength:function(){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},QRCode.prototype={addData:function(e){var t=new QR8bitByte(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(0>e||this.moduleCount<=e||0>t||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){var e,t,o,i,n,r;if(this.typeNumber<1){for(e=1,e=1;40>e;e++){for(t=QRRSBlock.getRSBlocks(e,this.errorCorrectLevel),o=new QRBitBuffer,i=0,n=0;n<t.length;n++)i+=t[n].dataCount;for(n=0;n<this.dataList.length;n++)r=this.dataList[n],o.put(r.mode,4),o.put(r.getLength(),QRUtil.getLengthInBits(r.mode,e)),r.write(o);if(o.getLengthInBits()<=8*i)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){var o,i;for(this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount),o=0;o<this.moduleCount;o++)for(this.modules[o]=new Array(this.moduleCount),i=0;i<this.moduleCount;i++)this.modules[o][i]=null;this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=QRCode.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){var o,i;for(o=-1;7>=o;o++)if(!(-1>=e+o||this.moduleCount<=e+o))for(i=-1;7>=i;i++)-1>=t+i||this.moduleCount<=t+i||(this.modules[e+o][t+i]=o>=0&&6>=o&&(0==i||6==i)||i>=0&&6>=i&&(0==o||6==o)||o>=2&&4>=o&&i>=2&&4>=i)},getBestMaskPattern:function(){var e,t,o=0,i=0;for(e=0;8>e;e++)this.makeImpl(!0,e),t=QRUtil.getLostPoint(this),(0==e||o>t)&&(o=t,i=e);return i},createMovieClip:function(e,t,o){var i,n,r,s,a=e.createEmptyMovieClip(t,o);for(this.make(),i=0;i<this.modules.length;i++)for(n=1*i,r=0;r<this.modules[i].length;r++)s=1*r,this.modules[i][r]&&(a.beginFill(0,100),a.moveTo(s,n),a.lineTo(s+1,n),a.lineTo(s+1,n+1),a.lineTo(s,n+1),a.endFill());return a},setupTimingPattern:function(){var e,t;for(e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=0==e%2);for(t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=0==t%2)},setupPositionAdjustPattern:function(){var e,t,o,i,n,r,s=QRUtil.getPatternPosition(this.typeNumber);for(e=0;e<s.length;e++)for(t=0;t<s.length;t++)if(o=s[e],i=s[t],null==this.modules[o][i])for(n=-2;2>=n;n++)for(r=-2;2>=r;r++)this.modules[o+n][i+r]=-2==n||2==n||-2==r||2==r||0==n&&0==r},setupTypeNumber:function(e){var t,o,i=QRUtil.getBCHTypeNumber(this.typeNumber);for(t=0;18>t;t++)o=!e&&1==(1&i>>t),this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=o;for(t=0;18>t;t++)o=!e&&1==(1&i>>t),this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=o},setupTypeInfo:function(e,t){var o,i,n=this.errorCorrectLevel<<3|t,r=QRUtil.getBCHTypeInfo(n);for(o=0;15>o;o++)i=!e&&1==(1&r>>o),6>o?this.modules[o][8]=i:8>o?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i;for(o=0;15>o;o++)i=!e&&1==(1&r>>o),8>o?this.modules[8][this.moduleCount-o-1]=i:9>o?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){var o,i,n,r=-1,s=this.moduleCount-1,a=7,l=0;for(o=this.moduleCount-1;o>0;o-=2)for(6==o&&o--;;){for(i=0;2>i;i++)null==this.modules[s][o-i]&&(n=!1,l<e.length&&(n=1==(1&e[l]>>>a)),QRUtil.getMask(t,s,o-i)&&(n=!n),this.modules[s][o-i]=n,-1==--a&&(l++,a=7));if(0>(s+=r)||this.moduleCount<=s){s-=r,r=-r;break}}}},QRCode.PAD0=236,QRCode.PAD1=17,QRCode.createData=function(e,t,o){var i,n,r,s=QRRSBlock.getRSBlocks(e,t),a=new QRBitBuffer;for(i=0;i<o.length;i++)n=o[i],a.put(n.mode,4),a.put(n.getLength(),QRUtil.getLengthInBits(n.mode,e)),n.write(a);for(r=0,i=0;i<s.length;i++)r+=s[i].dataCount;if(a.getLengthInBits()>8*r)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*r+")");for(a.getLengthInBits()+4<=8*r&&a.put(0,4);0!=a.getLengthInBits()%8;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*r)&&(a.put(QRCode.PAD0,8),!(a.getLengthInBits()>=8*r));)a.put(QRCode.PAD1,8);return QRCode.createBytes(a,s)},QRCode.createBytes=function(e,t){var o,i,n,r,s,a,l,p,u,c,d=0,h=0,f=0,g=new Array(t.length),y=new Array(t.length);for(o=0;o<t.length;o++){for(i=t[o].dataCount,n=t[o].totalCount-i,h=Math.max(h,i),f=Math.max(f,n),g[o]=new Array(i),r=0;r<g[o].length;r++)g[o][r]=255&e.buffer[r+d];for(d+=i,s=QRUtil.getErrorCorrectPolynomial(n),a=new QRPolynomial(g[o],s.getLength()-1).mod(s),y[o]=new Array(s.getLength()-1),r=0;r<y[o].length;r++)l=r+a.getLength()-y[o].length,y[o][r]=l>=0?a.get(l):0}for(p=0,r=0;r<t.length;r++)p+=t[r].totalCount;for(u=new Array(p),c=0,r=0;h>r;r++)for(o=0;o<t.length;o++)r<g[o].length&&(u[c++]=g[o][r]);for(r=0;f>r;r++)for(o=0;o<t.length;o++)r<y[o].length&&(u[c++]=y[o][r]);return u},QRMode={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},QRErrorCorrectLevel={L:1,M:0,Q:3,H:2},QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;QRUtil.getBCHDigit(t)-QRUtil.getBCHDigit(QRUtil.G15)>=0;)t^=QRUtil.G15<<QRUtil.getBCHDigit(t)-QRUtil.getBCHDigit(QRUtil.G15);return(e<<10|t)^QRUtil.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;QRUtil.getBCHDigit(t)-QRUtil.getBCHDigit(QRUtil.G18)>=0;)t^=QRUtil.G18<<QRUtil.getBCHDigit(t)-QRUtil.getBCHDigit(QRUtil.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return QRUtil.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,o){switch(e){case QRMaskPattern.PATTERN000:return 0==(t+o)%2;case QRMaskPattern.PATTERN001:return 0==t%2;case QRMaskPattern.PATTERN010:return 0==o%3;case QRMaskPattern.PATTERN011:return 0==(t+o)%3;case QRMaskPattern.PATTERN100:return 0==(Math.floor(t/2)+Math.floor(o/3))%2;case QRMaskPattern.PATTERN101:return 0==t*o%2+t*o%3;case QRMaskPattern.PATTERN110:return 0==(t*o%2+t*o%3)%2;case QRMaskPattern.PATTERN111:return 0==(t*o%3+(t+o)%2)%2;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){var t,o=new QRPolynomial([1],0);for(t=0;e>t;t++)o=o.multiply(new QRPolynomial([1,QRMath.gexp(t)],0));return o},getLengthInBits:function(e,t){if(t>=1&&10>t)switch(e){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:case QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(27>t)switch(e){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(41>t))throw new Error("type:"+t);switch(e){case QRMode.MODE_NUMBER:return 14;case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){var t,o,i,n,r,s,a,l,p=e.getModuleCount(),u=0;for(t=0;p>t;t++)for(o=0;p>o;o++){for(i=0,n=e.isDark(t,o),r=-1;1>=r;r++)if(!(0>t+r||t+r>=p))for(s=-1;1>=s;s++)0>o+s||o+s>=p||(0!=r||0!=s)&&n==e.isDark(t+r,o+s)&&i++;i>5&&(u+=3+i-5)}for(t=0;p-1>t;t++)for(o=0;p-1>o;o++)a=0,e.isDark(t,o)&&a++,e.isDark(t+1,o)&&a++,e.isDark(t,o+1)&&a++,e.isDark(t+1,o+1)&&a++,(0==a||4==a)&&(u+=3);for(t=0;p>t;t++)for(o=0;p-6>o;o++)e.isDark(t,o)&&!e.isDark(t,o+1)&&e.isDark(t,o+2)&&e.isDark(t,o+3)&&e.isDark(t,o+4)&&!e.isDark(t,o+5)&&e.isDark(t,o+6)&&(u+=40);for(o=0;p>o;o++)for(t=0;p-6>t;t++)e.isDark(t,o)&&!e.isDark(t+1,o)&&e.isDark(t+2,o)&&e.isDark(t+3,o)&&e.isDark(t+4,o)&&!e.isDark(t+5,o)&&e.isDark(t+6,o)&&(u+=40);for(l=0,o=0;p>o;o++)for(t=0;p>t;t++)e.isDark(t,o)&&l++;return u+10*(Math.abs(100*l/p/p-50)/5)}},QRMath={glog:function(e){if(1>e)throw new Error("glog("+e+")");return QRMath.LOG_TABLE[e]},gexp:function(e){for(;0>e;)e+=255;for(;e>=256;)e-=255;return QRMath.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},i=0;8>i;i++)QRMath.EXP_TABLE[i]=1<<i;for(i=8;256>i;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(i=0;255>i;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i;QRPolynomial.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){var t,o,i=new Array(this.getLength()+e.getLength()-1);for(t=0;t<this.getLength();t++)for(o=0;o<e.getLength();o++)i[t+o]^=QRMath.gexp(QRMath.glog(this.get(t))+QRMath.glog(e.get(o)));return new QRPolynomial(i,0)},mod:function(e){var t,o,i;if(this.getLength()-e.getLength()<0)return this;for(t=QRMath.glog(this.get(0))-QRMath.glog(e.get(0)),o=new Array(this.getLength()),i=0;i<this.getLength();i++)o[i]=this.get(i);for(i=0;i<e.getLength();i++)o[i]^=QRMath.gexp(QRMath.glog(e.get(i))+t);return new QRPolynomial(o,0).mod(e)}},QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],QRRSBlock.getRSBlocks=function(e,t){var o,i,n,r,s,a,l,p=QRRSBlock.getRsBlockTable(e,t);if(null==p)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(o=p.length/3,i=new Array,n=0;o>n;n++)for(r=p[3*n+0],s=p[3*n+1],a=p[3*n+2],l=0;r>l;l++)i.push(new QRRSBlock(s,a));return i},QRRSBlock.getRsBlockTable=function(e,t){switch(t){case QRErrorCorrectLevel.L:return QRRSBlock.RS_BLOCK_TABLE[4*(e-1)+0];case QRErrorCorrectLevel.M:return QRRSBlock.RS_BLOCK_TABLE[4*(e-1)+1];case QRErrorCorrectLevel.Q:return QRRSBlock.RS_BLOCK_TABLE[4*(e-1)+2];case QRErrorCorrectLevel.H:return QRRSBlock.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},QRBitBuffer.prototype={get:function(e){var t=Math.floor(e/8);return 1==(1&this.buffer[t]>>>7-e%8)},put:function(e,t){for(var o=0;t>o;o++)this.putBit(1==(1&e>>>t-o-1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},function(e){var t=new Array("00","33","66","99","CC","FF"),o=new Array("FF0000","00FF00","0000FF","FFFF00","00FFFF","FF00FF");e.fn.colorpicker=function(n){var r=jQuery.extend({},jQuery.fn.colorpicker.defaults,n);return function(){e("body").append('<style>.colorpicker-controller{background-color:#fff;border: 1px solid #bbb;width:18px;height:18px;}.colorpicker{margin:2px;outline:none;display:inline-block;cursor:pointer;width:12px;height:12px;}</style><div id="color-panel" style="background-color:#fff;border-radius:6px;box-shadow:0 5px 10px rgba(0,0,0,0.2);padding:5px;border:solid 1px #ccc;position:absolute;z-index:1051;display:none;"></div>');var n="",r="";for(i=0;i<2;i++)for(j=0;j<6;j++)for(n+='<tr height="12">',r=0==i?t[j]+t[j]+t[j]:o[j],n=n+'<td width="11" rel="#'+r+'" style="background-color:#'+r+'">',k=0;k<3;k++)for(l=0;l<6;l++)r=t[k+3*i]+t[l]+t[j],n=n+'<td width="11" rel="#'+r+'" style="background-color:#'+r+'">';n='<table width="230" border="0" cellspacing="0" cellpadding="0"><tr height="30"><td colspan="21" bgcolor="#fff"><table cellpadding="0" cellspacing="1" border="0" style="border-collapse:collapse"><tr><td width="3"><td><input type="text" id="color-panel-color" size="6" disabled style="border:inset 1px #ccc;"></td><td width="3"><td><input type="text" id="color-panel-hex-color" size="7" style="border:inset 1px #ccc; font-family:Arial;"><a href="javascript:;" id="color-panel-close" style="padding-left:15px;">关闭</a> <a href="javascript:;" style="padding-left:5px;" id="color-panel-reset">重置</a></td></tr></table></td></table><table width="230" id="color-panel-body" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse" style="cursor:pointer;">'+n+"</table>";var s=e("#color-panel");s.html(n),e(document).on("mousedown.colorpicker",(function(){s.hide()})),s.on("mousedown.colorpicker",(function(e){e.stopPropagation()})),e("#color-panel-close").on("click.colorpicker",(function(){return s.hide(),!1}))}(),this.each((function(){var t=e(this);t.on(r.event+".colorpicker",(function(){var o=e("#color-panel"),i=e(this).offset().top,n=e(this).height(),a=e(this).offset().left;o.css({top:i+n+15,left:a}).show();var l,p=r.target?e(r.target):t;null==p.data("color")&&p.data("color",p.css("color")),null==p.data("value")&&p.data("value",p.val()),e("#color-panel-reset").on("click.colorpicker",(function(){p.css("color",p.data("color")).val(p.data("value"));var e=p.data("value");e=r.ishex?e:s(e),o.hide(),r.reset(t,e)})),e("#color-panel-body").off("click.colorpicker").on("mouseover.colorpicker","tr td",(function(){var t=e(this).css("background-color");e("#color-panel-color").css("background",t),e("#color-panel-hex-color").val(e(this).attr("rel"))})).on("click.colorpicker","tr td",(function(){var i=e(this).attr("rel");i=r.ishex?i:s(i),r.fillcolor&&p.val(i),p.css("color",i),o.hide(),e("#color-panel-reset").off("click.colorpicker"),r.change(t,i)})),l=p.val(),e("#color-panel-color").css("background",l),e("#color-panel-hex-color").val(l)}))}));function s(e){var t;return e&&e.constructor==Array&&3==e.length&&(e=e),(t=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))&&(e=[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]),(t=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))&&(e=[2.55*parseFloat(t[1]),2.55*parseFloat(t[2]),2.55*parseFloat(t[3])]),(t=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))&&(e=[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]),(t=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))&&(e=[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]),"rgb("+e[0]+","+e[1]+","+e[2]+")"}},jQuery.fn.colorpicker.defaults={ishex:!0,fillcolor:!1,target:null,event:"click",change:function(){},reset:function(){}}}(jQuery),function(e,t,o,i){var n="table2excel",r={exclude:".noExl",name:"Table2Excel",filename:"table2excel",fileext:".xls",exclude_img:!0,exclude_links:!0,exclude_inputs:!0,preserveColors:!1};function s(t,o){this.element=t,this.settings=e.extend({},r,o),this._defaults=r,this._name=n,this.init()}function a(e){return e.filename?e.filename:"table2excel"}s.prototype={init:function(){var t=this;t.template={head:'<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><meta http-equiv="content-type" content="application/vnd.ms-excel; charset=UTF-8"><head>\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets>',sheet:{head:"<x:ExcelWorksheet><x:Name>",tail:"</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet>"},mid:"</x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e</head><body>",table:{head:"<table>",tail:"</table>"},foot:"</body></html>"},t.tableRows=[];var o="",i=null;e(t.element).each((function(n,r){var s,a="";e(r).find("tr").not(t.settings.exclude).each((function(n,r){o="",t.settings.preserveColors&&(i=getComputedStyle(r),o+=i&&i.backgroundColor?"background-color: "+i.backgroundColor+";":"",o+=i&&i.color?"color: "+i.color+";":""),a+="<tr style='"+o+"'>",e(r).find("td,th").not(t.settings.exclude).each((function(n,r){o="",t.settings.preserveColors&&(i=getComputedStyle(r),o+=i&&i.backgroundColor?"background-color: "+i.backgroundColor+";":"",o+=i&&i.color?"color: "+i.color+";":"");var s=e(this).attr("rowspan"),l=e(this).attr("colspan");e(r).find(t.settings.exclude).length>0?a+="<td> </td>":(a+="<td",s>0&&(a+=" rowspan='"+s+"' "),l>0&&(a+=" colspan='"+l+"' "),o&&(a+=" style='"+o+"'"),a+=">"+e(r).html()+"</td>")})),a+="</tr>"})),t.settings.exclude_img&&(s=/(\s+alt\s*=\s*"([^"]*)"|\s+alt\s*=\s*'([^']*)')/i,a=a.replace(/<img[^>]*>/gi,(function(e){var t=s.exec(e);return null!==t&&t.length>=2?t[2]:""}))),t.settings.exclude_links&&(a=function(e){return e.replace(/<a[^>]*>|<\/a>/gi,"")}(a)),t.settings.exclude_inputs&&(a=function(e){var t=/(\s+value\s*=\s*"([^"]*)"|\s+value\s*=\s*'([^']*)')/i;return e.replace(/<input[^>]*>|<\/input>/gi,(function(e){var o=t.exec(e);return null!==o&&o.length>=2?o[2]:""}))}(a)),t.tableRows.push(a)})),t.tableToExcel(t.tableRows,t.settings.name,t.settings.sheetName)},tableToExcel:function(i,n,r){var s,l,p,u=this,c="";for(s in u.format=function(e,t){return e.replace(/{(\w+)}/g,(function(e,o){return t[o]}))},r=void 0===r?"Sheet":r,u.ctx={worksheet:n||"Worksheet",table:i,sheetName:r},c=u.template.head,e.isArray(i)&&Object.keys(i).forEach((function(e){c+=u.template.sheet.head+r+e+u.template.sheet.tail})),c+=u.template.mid,e.isArray(i)&&Object.keys(i).forEach((function(e){c+=u.template.table.head+"{table"+e+"}"+u.template.table.tail})),c+=u.template.foot,i)u.ctx["table"+s]=i[s];if(delete u.ctx.table,-1!==navigator.appVersion.indexOf("MSIE 10")||-1!==navigator.userAgent.indexOf("Trident")&&-1!==navigator.userAgent.indexOf("rv:11"))if("undefined"!=typeof Blob){c=[c=u.format(c,u.ctx)];var d=new Blob(c,{type:"text/html"});t.navigator.msSaveBlob(d,a(u.settings))}else txtArea1.document.open("text/html","replace"),txtArea1.document.write(u.format(c,u.ctx)),txtArea1.document.close(),txtArea1.focus(),sa=txtArea1.document.execCommand("SaveAs",!0,a(u.settings));else{var h=new Blob([u.format(c,u.ctx)],{type:"application/vnd.ms-excel"});t.URL=t.URL||t.webkitURL,l=t.URL.createObjectURL(h),(p=o.createElement("a")).download=a(u.settings),p.href=l,o.body.appendChild(p),p.click(),o.body.removeChild(p)}return!0}},e.fn.table2excel=function(t){var o=this;return o.each((function(){e.data(o,"plugin_table2excel")||e.data(o,"plugin_table2excel",new s(this,t))})),o}}(jQuery,window,document),function(e,t){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Viewer=t()}(this,(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function n(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function r(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){i(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var s={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,zoom:null,zoomed:null},a="undefined"!=typeof window&&void 0!==window.document,l=a?window:{},p=!!a&&"ontouchstart"in l.document.documentElement,u=!!a&&"PointerEvent"in l,c="viewer",d="move",h="switch",f="zoom",g="".concat(c,"-active"),y="".concat(c,"-close"),m="".concat(c,"-fade"),v="".concat(c,"-fixed"),C="".concat(c,"-fullscreen"),_="".concat(c,"-fullscreen-exit"),w="".concat(c,"-hide"),b="".concat(c,"-hide-md-down"),E="".concat(c,"-hide-sm-down"),R="".concat(c,"-hide-xs-down"),S="".concat(c,"-in"),P="".concat(c,"-invisible"),O="".concat(c,"-loading"),T="".concat(c,"-move"),A="".concat(c,"-open"),D="".concat(c,"-show"),x="".concat(c,"-transition"),F="click",M="dblclick",N="dragstart",L="hidden",I="hide",k="keydown",G="load",W=u?"pointerdown":p?"touchstart":"mousedown",H=u?"pointermove":p?"touchmove":"mousemove",V=u?"pointerup pointercancel":p?"touchend touchcancel":"mouseup",j="ready",B="resize",z="show",U="shown",Y="transitionend",$="view",q="viewed",K="wheel",X="zoom",Q="zoomed",Z="".concat(c,"Action"),J=/\s\s*/,ee=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function te(e){return"string"==typeof e}var oe=Number.isNaN||l.isNaN;function ie(e){return"number"==typeof e&&!oe(e)}function ne(e){return void 0===e}function re(t){return"object"===e(t)&&null!==t}var se=Object.prototype.hasOwnProperty;function ae(e){if(!re(e))return!1;try{var t=e.constructor,o=t.prototype;return t&&o&&se.call(o,"isPrototypeOf")}catch(e){return!1}}function le(e){return"function"==typeof e}function pe(e,t){if(e&&le(t))if(Array.isArray(e)||ie(e.length)){var o,i=e.length;for(o=0;o<i&&!1!==t.call(e,e[o],o,e);o+=1);}else re(e)&&Object.keys(e).forEach((function(o){t.call(e,e[o],o,e)}));return e}var ue=Object.assign||function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return re(e)&&o.length>0&&o.forEach((function(t){re(t)&&Object.keys(t).forEach((function(o){e[o]=t[o]}))})),e},ce=/^(?:width|height|left|top|marginLeft|marginTop)$/;function de(e,t){var o=e.style;pe(t,(function(e,t){ce.test(t)&&ie(e)&&(e+="px"),o[t]=e}))}function he(e){return te(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function fe(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function ge(e,t){if(e&&t)if(ie(e.length))pe(e,(function(e){ge(e,t)}));else if(e.classList)e.classList.add(t);else{var o=e.className.trim();o?o.indexOf(t)<0&&(e.className="".concat(o," ").concat(t)):e.className=t}}function ye(e,t){e&&t&&(ie(e.length)?pe(e,(function(e){ye(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function me(e,t,o){t&&(ie(e.length)?pe(e,(function(e){me(e,t,o)})):o?ge(e,t):ye(e,t))}var ve=/([a-z\d])([A-Z])/g;function Ce(e){return e.replace(ve,"$1-$2").toLowerCase()}function _e(e,t){return re(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Ce(t)))}function we(e,t,o){re(o)?e[t]=o:e.dataset?e.dataset[t]=o:e.setAttribute("data-".concat(Ce(t)),o)}var be=function(){var e=!1;if(a){var t=!1,o=function(){},i=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});l.addEventListener("test",o,i),l.removeEventListener("test",o,i)}return e}();function Ee(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=o;t.trim().split(J).forEach((function(t){if(!be){var r=e.listeners;r&&r[t]&&r[t][o]&&(n=r[t][o],delete r[t][o],0===Object.keys(r[t]).length&&delete r[t],0===Object.keys(r).length&&delete e.listeners)}e.removeEventListener(t,n,i)}))}function Re(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=o;t.trim().split(J).forEach((function(t){if(i.once&&!be){var r=e.listeners,s=void 0===r?{}:r;n=function(){delete s[t][o],e.removeEventListener(t,n,i);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];o.apply(e,a)},s[t]||(s[t]={}),s[t][o]&&e.removeEventListener(t,s[t][o],i),s[t][o]=n,e.listeners=s}e.addEventListener(t,n,i)}))}function Se(e,t,o){var i;return le(Event)&&le(CustomEvent)?i=new CustomEvent(t,{detail:o,bubbles:!0,cancelable:!0}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,o),e.dispatchEvent(i)}function Pe(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function Oe(e){var t=e.rotate,o=e.scaleX,i=e.scaleY,n=e.translateX,r=e.translateY,s=[];ie(n)&&0!==n&&s.push("translateX(".concat(n,"px)")),ie(r)&&0!==r&&s.push("translateY(".concat(r,"px)")),ie(t)&&0!==t&&s.push("rotate(".concat(t,"deg)")),ie(o)&&1!==o&&s.push("scaleX(".concat(o,")")),ie(i)&&1!==i&&s.push("scaleY(".concat(i,")"));var a=s.length?s.join(" "):"none";return{WebkitTransform:a,msTransform:a,transform:a}}var Te=l.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(l.navigator.userAgent);function Ae(e,t){var o=document.createElement("img");if(e.naturalWidth&&!Te)return t(e.naturalWidth,e.naturalHeight),o;var i=document.body||document.documentElement;return o.onload=function(){t(o.width,o.height),Te||i.removeChild(o)},o.src=e.src,Te||(o.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(o)),o}function De(e){switch(e){case 2:return R;case 3:return E;case 4:return b;default:return""}}function xe(e,t){var o=e.pageX,i=e.pageY,n={endX:o,endY:i};return t?n:r({timeStamp:Date.now(),startX:o,startY:i},n)}function Fe(e){var t=0,o=0,i=0;return pe(e,(function(e){var n=e.startX,r=e.startY;t+=n,o+=r,i+=1})),{pageX:t/=i,pageY:o/=i}}var Me={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,o=this.parent;t.inline&&(e={width:Math.max(o.offsetWidth,t.minWidth),height:Math.max(o.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=ue({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&de(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,o=this.options,i=this.list,n=[];i.innerHTML="",pe(this.images,(function(t,r){var s=t.src,a=t.alt||function(e){return te(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(s),l=o.url;if(te(l)?l=t.getAttribute(l):le(l)&&(l=l.call(e,t)),s||l){var p=document.createElement("li"),u=document.createElement("img");u.src=s||l,u.alt=a,u.setAttribute("data-index",r),u.setAttribute("data-original-url",l||s),u.setAttribute("data-viewer-action","view"),u.setAttribute("role","button"),p.appendChild(u),i.appendChild(p),n.push(p)}})),this.items=n,pe(n,(function(t){var i=t.firstElementChild;we(i,"filled",!0),o.loading&&ge(t,O),Re(i,G,(function(i){o.loading&&ye(t,O),e.loadImage(i)}),{once:!0})})),o.transition&&Re(t,q,(function(){ge(i,x)}),{once:!0})},renderList:function(e){var t=e||this.index,o=this.items[t].offsetWidth||30,i=o+1;de(this.list,ue({width:i*this.length},Oe({translateX:(this.viewerData.width-o)/2-i*t})))},resetList:function(){var e=this.list;e.innerHTML="",ye(e,x),de(e,Oe({translateX:0}))},initImage:function(e){var t,o=this,i=this.options,n=this.image,r=this.viewerData,s=this.footer.offsetHeight,a=r.width,l=Math.max(r.height-s,s),p=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=Ae(n,(function(t,n){var r=t/n,s=a,u=l;o.imageInitializing=!1,l*r>a?u=a/r:s=l*r;var c={naturalWidth:t,naturalHeight:n,aspectRatio:r,ratio:(s=Math.min(.9*s,t))/t,width:s,height:u=Math.min(.9*u,n),left:(a-s)/2,top:(l-u)/2},d=ue({},c);i.rotatable&&(c.rotate=p.rotate||0,d.rotate=0),i.scalable&&(c.scaleX=p.scaleX||1,c.scaleY=p.scaleY||1,d.scaleX=1,d.scaleY=1),o.imageData=c,o.initialImageData=d,e&&e()}))},renderImage:function(e){var t=this,o=this.image,i=this.imageData;if(de(o,ue({width:i.width,height:i.height,marginLeft:i.left,marginTop:i.top},Oe(i))),e)if((this.viewing||this.zooming)&&this.options.transition){var n=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Ee(o,Y,n)}},Re(o,Y,n,{once:!0})}else e()},resetImage:function(){if(this.viewing||this.viewed){var e=this.image;this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null}}},Ne={bind:function(){var e=this.options,t=this.viewer,o=this.canvas,i=this.element.ownerDocument;Re(t,F,this.onClick=this.click.bind(this)),Re(t,N,this.onDragStart=this.dragstart.bind(this)),Re(o,W,this.onPointerDown=this.pointerdown.bind(this)),Re(i,H,this.onPointerMove=this.pointermove.bind(this)),Re(i,V,this.onPointerUp=this.pointerup.bind(this)),Re(i,k,this.onKeyDown=this.keydown.bind(this)),Re(window,B,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Re(t,K,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&Re(o,M,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,o=this.canvas,i=this.element.ownerDocument;Ee(t,F,this.onClick),Ee(t,N,this.onDragStart),Ee(o,W,this.onPointerDown),Ee(i,H,this.onPointerMove),Ee(i,V,this.onPointerUp),Ee(i,k,this.onKeyDown),Ee(window,B,this.onResize),e.zoomable&&e.zoomOnWheel&&Ee(t,K,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Ee(o,M,this.onDblclick)}},Le={click:function(e){var t=e.target,o=this.options,i=this.imageData,n=_e(t,Z);switch(p&&e.isTrusted&&t===this.canvas&&clearTimeout(this.clickCanvasTimeout),n){case"mix":this.played?this.stop():o.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(_e(t,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(o.loop);break;case"play":this.play(o.fullscreen);break;case"next":this.next(o.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-i.scaleX||-1);break;case"flip-vertical":this.scaleY(-i.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(p&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle())},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,o=this.options,i=this.image,n=this.index,r=this.viewerData;ye(i,P),o.loading&&ye(this.canvas,O),i.style.cssText="height:0;"+"margin-left:".concat(r.width/2,"px;")+"margin-top:".concat(r.height/2,"px;")+"max-width:none!important;position:absolute;width:0;",this.initImage((function(){me(i,T,o.movable),me(i,x,o.transition),e.renderImage((function(){e.viewed=!0,e.viewing=!1,le(o.viewed)&&Re(t,q,o.viewed,{once:!0}),Se(t,q,{originalImage:e.images[n],index:n,image:i})}))}))},loadImage:function(e){var t=e.target,o=t.parentNode,i=o.offsetWidth||30,n=o.offsetHeight||50,r=!!_e(t,"filled");Ae(t,(function(e,o){var s=e/o,a=i,l=n;n*s>i?r?a=n*s:l=i/s:r?l=i/s:a=n*s,de(t,ue({width:a,height:l},Oe({translateX:(i-a)/2,translateY:(n-l)/2})))}))},keydown:function(e){var t=this.options;if(this.fulled&&t.keyboard)switch(e.keyCode||e.which||e.charCode){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}},dragstart:function(e){"img"===e.target.tagName.toLowerCase()&&e.preventDefault()},pointerdown:function(e){var t=this.options,o=this.pointers,i=e.buttons,n=e.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(ie(i)&&1!==i||ie(n)&&0!==n||e.ctrlKey))){e.preventDefault(),e.changedTouches?pe(e.changedTouches,(function(e){o[e.identifier]=xe(e)})):o[e.pointerId||0]=xe(e);var r=!!t.movable&&d;t.zoomOnTouch&&t.zoomable&&Object.keys(o).length>1?r=f:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(r=h),!t.transition||r!==d&&r!==f||ye(this.image,x),this.action=r}},pointermove:function(e){var t=this.pointers,o=this.action;this.viewed&&o&&(e.preventDefault(),e.changedTouches?pe(e.changedTouches,(function(e){ue(t[e.identifier]||{},xe(e,!0))})):ue(t[e.pointerId||0]||{},xe(e,!0)),this.change(e))},pointerup:function(e){var t,o=this,i=this.options,n=this.action,r=this.pointers;e.changedTouches?pe(e.changedTouches,(function(e){t=r[e.identifier],delete r[e.identifier]})):(t=r[e.pointerId||0],delete r[e.pointerId||0]),n&&(e.preventDefault(),!i.transition||n!==d&&n!==f||ge(this.image,x),this.action=!1,p&&n!==f&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){Se(o.image,M)}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){o.imageClicked=!1}),500)):(this.imageClicked=!1,i.backdrop&&"static"!==i.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){Se(o.canvas,F)}),50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage()})),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();pe(this.player.getElementsByTagName("img"),(function(t){Re(t,G,e.loadImage.bind(e),{once:!0}),Se(t,G)}))}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50);var o=Number(this.options.zoomRatio)||.1,i=1;e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),this.zoom(-i*o,!0,e)}}},Ie={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,o=this.options;if(o.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(le(o.show)&&Re(t,z,o.show,{once:!0}),!1===Se(t,z)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(ye(i,w),o.transition&&!e){var n=this.shown.bind(this);this.transitioning={abort:function(){Ee(i,Y,n),ye(i,S)}},ge(i,x),i.initialOffsetWidth=i.offsetWidth,Re(i,Y,n,{once:!0}),ge(i,S)}else ge(i,S),this.shown();return this},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,o=this.options;if(o.inline||this.hiding||!this.isShown&&!this.showing)return this;if(le(o.hide)&&Re(t,I,o.hide,{once:!0}),!1===Se(t,I))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer;if(o.transition&&!e){var n=this.hidden.bind(this),r=function(){setTimeout((function(){Re(i,Y,n,{once:!0}),ye(i,S)}),0)};this.transitioning={abort:function(){this.viewed?Ee(this.image,Y,r):Ee(i,Y,n)}},this.viewed&&fe(this.image,x)?(Re(this.image,Y,r,{once:!0}),this.zoomTo(0,!1,!1,!0)):r()}else ye(i,S),this.hidden();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var o=this.element,i=this.options,n=this.title,r=this.canvas,s=this.items[t],a=s.querySelector("img"),l=_e(a,"originalUrl"),p=a.getAttribute("alt"),u=document.createElement("img");if(u.src=l,u.alt=p,le(i.view)&&Re(o,$,i.view,{once:!0}),!1===Se(o,$,{originalImage:this.images[t],index:t,image:u})||!this.isShown||this.hiding||this.played)return this;this.image=u,ye(this.items[this.index],g),ge(s,g),this.viewed=!1,this.index=t,this.imageData={},ge(u,P),i.loading&&ge(r,O),r.innerHTML="",r.appendChild(u),this.renderList(),n.innerHTML="";var c,d=function(){var t=e.imageData,o=Array.isArray(i.title)?i.title[1]:i.title;n.innerHTML=he(le(o)?o.call(e,u,t):"".concat(p," (").concat(t.naturalWidth," × ").concat(t.naturalHeight,")"))};return Re(o,q,d,{once:!0}),this.viewing={abort:function(){Ee(o,q,d),u.complete?this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort():(u.src="",Ee(u,G,c),this.timeout&&clearTimeout(this.timeout))}},u.complete?this.load():(Re(u,G,c=this.load.bind(this),{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){ye(u,P),e.timeout=!1}),1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,o=this.index+1;return o>t&&(o=e?0:t),this.view(o),this},move:function(e,t){var o=this.imageData;return this.moveTo(ne(e)?e:o.left+Number(e),ne(t)?t:o.top+Number(t)),this},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=this.imageData;if(e=Number(e),t=Number(t),this.viewed&&!this.played&&this.options.movable){var i=!1;ie(e)&&(o.left=e,i=!0),ie(t)&&(o.top=t,i=!0),i&&this.renderImage()}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,t,o),this},zoomTo:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.element,s=this.options,a=this.pointers,l=this.imageData,p=l.width,u=l.height,c=l.left,d=l.top,h=l.naturalWidth,f=l.naturalHeight;if(ie(e=Math.max(0,e))&&this.viewed&&!this.played&&(n||s.zoomable)){if(!n){var g=Math.max(.01,s.minZoomRatio),y=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,g),y)}i&&e>.95&&e<1.05&&(e=1);var m=h*e,v=f*e,C=m-p,_=v-u,w=p/h;if(le(s.zoom)&&Re(r,X,s.zoom,{once:!0}),!1===Se(r,X,{ratio:e,oldRatio:w,originalEvent:i}))return this;if(this.zooming=!0,i){var b=Pe(this.viewer),E=a&&Object.keys(a).length?Fe(a):{pageX:i.pageX,pageY:i.pageY};l.left-=C*((E.pageX-b.left-c)/p),l.top-=_*((E.pageY-b.top-d)/u)}else l.left-=C/2,l.top-=_/2;l.width=m,l.height=v,l.ratio=e,this.renderImage((function(){t.zooming=!1,le(s.zoomed)&&Re(r,Q,s.zoomed,{once:!0}),Se(r,Q,{ratio:e,oldRatio:w,originalEvent:i})})),o&&this.tooltip()}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this.imageData;return ie(e=Number(e))&&this.viewed&&!this.played&&this.options.rotatable&&(t.rotate=e,this.renderImage()),this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=this.imageData;if(e=Number(e),t=Number(t),this.viewed&&!this.played&&this.options.scalable){var i=!1;ie(e)&&(o.scaleX=e,i=!0),ie(t)&&(o.scaleY=t,i=!0),i&&this.renderImage()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var o=this.options,i=this.player,n=this.loadImage.bind(this),r=[],s=0,a=0;if(this.played=!0,this.onLoadWhenPlay=n,t&&this.requestFullscreen(),ge(i,D),pe(this.items,(function(e,t){var l=e.querySelector("img"),p=document.createElement("img");p.src=_e(l,"originalUrl"),p.alt=l.getAttribute("alt"),s+=1,ge(p,m),me(p,x,o.transition),fe(e,g)&&(ge(p,S),a=t),r.push(p),Re(p,G,n,{once:!0}),i.appendChild(p)})),ie(o.interval)&&o.interval>0){var l=function t(){e.playing=setTimeout((function(){ye(r[a],S),ge(r[a=(a+=1)<s?a:0],S),t()}),o.interval)};s>1&&l()}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.player;return this.played=!1,clearTimeout(this.playing),pe(t.getElementsByTagName("img"),(function(t){Ee(t,G,e.onLoadWhenPlay)})),ye(t,D),t.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,o=this.viewer,i=this.image,n=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),ge(this.button,_),t.transition&&(ye(n,x),this.viewed&&ye(i,x)),ge(o,v),o.setAttribute("style",""),de(o,{zIndex:t.zIndex}),this.initContainer(),this.viewerData=ue({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){ge(i,x),ge(n,x)}),0)}))}))),this},exit:function(){var e=this,t=this.options,o=this.viewer,i=this.image,n=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),ye(this.button,_),t.transition&&(ye(n,x),this.viewed&&ye(i,x)),ye(o,v),de(o,{zIndex:t.zIndexInline}),this.viewerData=ue({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){ge(i,x),ge(n,x)}),0)}))})),this):this},tooltip:function(){var e=this,t=this.options,o=this.tooltipBox,i=this.imageData;return this.viewed&&!this.played&&t.tooltip?(o.textContent="".concat(Math.round(100*i.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&Se(o,Y),ge(o,D),ge(o,m),ge(o,x),o.initialOffsetWidth=o.offsetWidth,ge(o,S)):ge(o,D),this.tooltipping=setTimeout((function(){t.transition?(Re(o,Y,(function(){ye(o,D),ye(o,m),ye(o,x),e.fading=!1}),{once:!0}),ye(o,S),e.fading=!0):ye(o,D),e.tooltipping=!1}),1e3),this):this},toggle:function(){return 1===this.imageData.ratio?this.zoomTo(this.initialImageData.ratio,!0):this.zoomTo(1,!0),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=ue({},this.initialImageData),this.renderImage()),this},update:function(){var e=this.element,t=this.options,o=this.isImg;if(o&&!e.parentNode)return this.destroy();var i=[];if(pe(o?[e]:e.querySelectorAll("img"),(function(e){t.filter?t.filter(e)&&i.push(e):i.push(e)})),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var n=[];if(pe(this.items,(function(e,t){var o=e.querySelector("img"),r=i[t];r&&o?r.src!==o.src&&n.push(t):n.push(t)})),de(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var r=n.indexOf(this.index);r>=0?(this.viewed=!1,this.view(Math.max(this.index-(r+1),0))):ge(this.items[this.index],g)}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e.viewer?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||Ee(e,F,this.onStart),e.viewer=void 0,this):this}},ke={open:function(){var e=this.body;ge(e,A),e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyPaddingRight)||0),"px")},close:function(){var e=this.body;ye(e,A),e.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var e=this.element,t=this.options;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,le(t.shown)&&Re(e,U,t.shown,{once:!0}),!1!==Se(e,U)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options;this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),ge(this.viewer,w),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(le(t.hidden)&&Re(e,L,t.hidden,{once:!0}),Se(e,L))},requestFullscreen:function(){var e=this.element.ownerDocument;if(this.fulled&&!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)){var t=e.documentElement;t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var t=this.options,o=this.pointers,i=o[Object.keys(o)[0]],n=i.endX-i.startX,s=i.endY-i.startY;switch(this.action){case d:this.move(n,s);break;case f:this.zoom(function(e){var t=r({},e),o=[];return pe(e,(function(e,i){delete t[i],pe(t,(function(t){var i=Math.abs(e.startX-t.startX),n=Math.abs(e.startY-t.startY),r=Math.abs(e.endX-t.endX),s=Math.abs(e.endY-t.endY),a=Math.sqrt(i*i+n*n),l=(Math.sqrt(r*r+s*s)-a)/a;o.push(l)}))})),o.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),o[0]}(o),!1,e);break;case h:this.action="switched";var a=Math.abs(n);a>1&&a>Math.abs(s)&&(this.pointers={},n>1?this.prev(t.loop):n<-1&&this.next(t.loop))}pe(o,(function(e){e.startX=e.endX,e.startY=e.endY}))},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.left>=0&&e.top>=0&&e.width<=t.width&&e.height<=t.height}},Ge=l.Viewer,We=function(){function e(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!o||1!==o.nodeType)throw new Error("The first argument is required and must be an element.");this.element=o,this.options=ue({},s,ae(i)&&i),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.init()}var i,n,r;return i=e,r=[{key:"noConflict",value:function(){return window.Viewer=Ge,e}},{key:"setDefaults",value:function(e){ue(s,ae(e)&&e)}}],(n=[{key:"init",value:function(){var e=this,t=this.element,o=this.options;if(!t.viewer){t.viewer=this;var i="img"===t.tagName.toLowerCase(),n=[];pe(i?[t]:t.querySelectorAll("img"),(function(t){le(o.filter)?o.filter.call(e,t)&&n.push(t):n.push(t)})),this.isImg=i,this.length=n.length,this.images=n;var r=t.ownerDocument,s=r.body||r.documentElement;if(this.body=s,this.scrollbarWidth=window.innerWidth-r.documentElement.clientWidth,this.initialBodyPaddingRight=window.getComputedStyle(s).paddingRight,ne(document.createElement(c).style.transition)&&(o.transition=!1),o.inline){var a=0,l=function(){var t;(a+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout((function(){e.delaying=!1,e.build()}),0))};this.initializing={abort:function(){pe(n,(function(e){e.complete||Ee(e,G,l)}))}},pe(n,(function(e){e.complete?l():Re(e,G,l,{once:!0})}))}else Re(t,F,this.onStart=function(t){var i=t.target;"img"!==i.tagName.toLowerCase()||le(o.filter)&&!o.filter.call(e,i)||e.view(e.images.indexOf(i))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,o=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="viewer-container" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list"></ul></div></div><div class="viewer-tooltip"></div><div role="button" class="viewer-button" data-viewer-action="mix"></div><div class="viewer-player"></div></div>';var n=i.querySelector(".".concat(c,"-container")),r=n.querySelector(".".concat(c,"-title")),s=n.querySelector(".".concat(c,"-toolbar")),a=n.querySelector(".".concat(c,"-navbar")),l=n.querySelector(".".concat(c,"-button")),p=n.querySelector(".".concat(c,"-canvas"));if(this.parent=o,this.viewer=n,this.title=r,this.toolbar=s,this.navbar=a,this.button=l,this.canvas=p,this.footer=n.querySelector(".".concat(c,"-footer")),this.tooltipBox=n.querySelector(".".concat(c,"-tooltip")),this.player=n.querySelector(".".concat(c,"-player")),this.list=n.querySelector(".".concat(c,"-list")),ge(r,t.title?De(Array.isArray(t.title)?t.title[0]:t.title):w),ge(a,t.navbar?De(t.navbar):w),me(l,w,!t.button),t.backdrop&&(ge(n,"".concat(c,"-backdrop")),t.inline||"static"===t.backdrop||we(p,Z,"hide")),te(t.className)&&t.className&&t.className.split(J).forEach((function(e){ge(n,e)})),t.toolbar){var u=document.createElement("ul"),d=ae(t.toolbar),h=ee.slice(0,3),f=ee.slice(7,9),g=ee.slice(9);d||ge(s,De(t.toolbar)),pe(d?t.toolbar:ee,(function(e,o){var i=d&&ae(e),n=d?Ce(o):e,r=i&&!ne(e.show)?e.show:e;if(r&&(t.zoomable||-1===h.indexOf(n))&&(t.rotatable||-1===f.indexOf(n))&&(t.scalable||-1===g.indexOf(n))){var s=i&&!ne(e.size)?e.size:e,a=i&&!ne(e.click)?e.click:e,l=document.createElement("li");l.setAttribute("role","button"),ge(l,"".concat(c,"-").concat(n)),le(a)||we(l,Z,n),ie(r)&&ge(l,De(r)),-1!==["small","large"].indexOf(s)?ge(l,"".concat(c,"-").concat(s)):"play"===n&&ge(l,"".concat(c,"-large")),le(a)&&Re(l,F,a),u.appendChild(l)}})),s.appendChild(u)}else ge(s,w);if(!t.rotatable){var _=s.querySelectorAll('li[class*="rotate"]');ge(_,P),pe(_,(function(e){s.appendChild(e)}))}if(t.inline)ge(l,C),de(n,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(o).position&&de(o,{position:"relative"}),o.insertBefore(n,e.nextSibling);else{ge(l,y),ge(n,v),ge(n,m),ge(n,w),de(n,{zIndex:t.zIndex});var b=t.container;te(b)&&(b=e.ownerDocument.querySelector(b)),b||(b=this.body),b.appendChild(n)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,le(t.ready)&&Re(e,j,t.ready,{once:!0}),!1!==Se(e,j)?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}])&&o(i.prototype,n),r&&o(i,r),e}();return ue(We.prototype,Me,Ne,Le,Ie,ke),We})),function(e){e(["jquery"],(function(e){return function(){var t,o,i,n=0,r="error",s="info",a="success",l="warning",p={clear:function(o,i){var n=f();t||u(n);c(o,n,i)||function(o){for(var i=t.children(),n=i.length-1;n>=0;n--)c(e(i[n]),o)}(n)},remove:function(o){var i=f();t||u(i);if(o&&0===e(":focus",o).length)return void g(o);t.children().length&&t.remove()},error:function(e,t,o){return h({type:r,iconClass:f().iconClasses.error,message:e,optionsOverride:o,title:t})},getContainer:u,info:function(e,t,o){return h({type:s,iconClass:f().iconClasses.info,message:e,optionsOverride:o,title:t})},options:{},subscribe:function(e){o=e},success:function(e,t,o){return h({type:a,iconClass:f().iconClasses.success,message:e,optionsOverride:o,title:t})},version:"2.1.3",warning:function(e,t,o){return h({type:l,iconClass:f().iconClasses.warning,message:e,optionsOverride:o,title:t})}};return p;function u(o,i){return o||(o=f()),(t=e("#"+o.containerId)).length||i&&(t=function(o){return(t=e("<div/>").attr("id",o.containerId).addClass(o.positionClass)).appendTo(e(o.target)),t}(o)),t}function c(t,o,i){var n=!(!i||!i.force)&&i.force;return!(!t||!n&&0!==e(":focus",t).length)&&(t[o.hideMethod]({duration:o.hideDuration,easing:o.hideEasing,complete:function(){g(t)}}),!0)}function d(e){o&&o(e)}function h(o){var r=f(),s=o.iconClass||r.iconClass;if(void 0!==o.optionsOverride&&(r=e.extend(r,o.optionsOverride),s=o.optionsOverride.iconClass||s),!function(e,t){if(e.preventDuplicates){if(t.message===i)return!0;i=t.message}return!1}(r,o)){n++,t=u(r,!0);var a=null,l=e("<div/>"),p=e("<div/>"),c=e("<div/>"),h=e("<div/>"),y=e(r.closeHtml),m={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:n,state:"visible",startTime:new Date,options:r,map:o};return o.iconClass&&l.addClass(r.toastClass).addClass(s),function(){if(o.title){var e=o.title;r.escapeHtml&&(e=C(o.title)),p.append(e).addClass(r.titleClass),l.append(p)}}(),function(){if(o.message){var e=o.message;r.escapeHtml&&(e=C(o.message)),c.append(e).addClass(r.messageClass),l.append(c)}}(),r.closeButton&&(y.addClass(r.closeClass).attr("role","button"),l.prepend(y)),r.progressBar&&(h.addClass(r.progressClass),l.prepend(h)),r.rtl&&l.addClass("rtl"),r.newestOnTop?t.prepend(l):t.append(l),function(){var e="";switch(o.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}l.attr("aria-live",e)}(),l.hide(),l[r.showMethod]({duration:r.showDuration,easing:r.showEasing,complete:r.onShown}),r.timeOut>0&&(a=setTimeout(_,r.timeOut),m.maxHideTime=parseFloat(r.timeOut),m.hideEta=(new Date).getTime()+m.maxHideTime,r.progressBar&&(m.intervalId=setInterval(E,10))),function(){r.closeOnHover&&l.hover(b,w);!r.onclick&&r.tapToDismiss&&l.click(_);r.closeButton&&y&&y.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),r.onCloseClick&&r.onCloseClick(e),_(!0)}));r.onclick&&l.click((function(e){r.onclick(e),_()}))}(),d(v),r.debug&&console&&console.log(v),l}function C(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function _(t){var o=t&&!1!==r.closeMethod?r.closeMethod:r.hideMethod,i=t&&!1!==r.closeDuration?r.closeDuration:r.hideDuration,n=t&&!1!==r.closeEasing?r.closeEasing:r.hideEasing;if(!e(":focus",l).length||t)return clearTimeout(m.intervalId),l[o]({duration:i,easing:n,complete:function(){g(l),clearTimeout(a),r.onHidden&&"hidden"!==v.state&&r.onHidden(),v.state="hidden",v.endTime=new Date,d(v)}})}function w(){(r.timeOut>0||r.extendedTimeOut>0)&&(a=setTimeout(_,r.extendedTimeOut),m.maxHideTime=parseFloat(r.extendedTimeOut),m.hideEta=(new Date).getTime()+m.maxHideTime)}function b(){clearTimeout(a),m.hideEta=0,l.stop(!0,!0)[r.showMethod]({duration:r.showDuration,easing:r.showEasing})}function E(){var e=(m.hideEta-(new Date).getTime())/m.maxHideTime*100;h.width(e+"%")}}function f(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},p.options)}function g(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),i=void 0))}}()}))}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(){function e(){var e=Math.random().toString().replace(".","");this.id="paging_"+e}$.fn.Paging=function(t){var o=[];return $(this).each((function(){var i=$.extend({target:$(this)},t),n=new e;n.init(i),o.push(n)})),o},e.prototype={init:function(e){this.settings=$.extend({callback:null,pagesize:10,current:1,prevTpl:"上一页",nextTpl:"下一页",firstTpl:"首页",lastTpl:"末页",ellipseTpl:"...",toolbar:!0,hash:!1,pageSizeList:[5,10,15,20]},e),this.target=$(this.settings.target),this.container=$('<div id="'+this.id+'" class="ui-paging-container" /><div class="clearfix"></div>'),this.target.append(this.container),this.render(this.settings),this.format(),this.bindEvent()},render:function(e){this.count=e.count||this.settings.count,this.pagesize=e.pagesize||this.settings.pagesize,this.current=e.current||this.settings.current,this.pagecount=Math.ceil(this.count/this.pagesize),0===e.count&&(this.count=0,this.pagecount=0,this.current=0),this.format()},bindEvent:function(){var e=this;this.container.on("click","li.js-page-action, li.ui-pager",(function(t){if($(this).hasClass("ui-pager-disabled")||$(this).hasClass("focus"))return!1;$(this).hasClass("js-page-action")?($(this).hasClass("js-page-first")&&(e.current=1),$(this).hasClass("js-page-prev")&&(e.current=Math.max(1,e.current-1)),$(this).hasClass("js-page-next")&&(e.current=Math.min(e.pagecount,e.current+1)),$(this).hasClass("js-page-last")&&(e.current=e.pagecount)):$(this).data("page")&&(e.current=parseInt($(this).data("page"))),e.go()}))},go:function(e){this.current=e||this.current,this.current=Math.max(1,this.current),this.current=Math.min(this.current,this.pagecount),this.format(),this.settings.hash&&Query.setHash({page:this.current}),this.settings.callback&&this.settings.callback(this.current,this.pagesize,this.pagecount)},changePagesize:function(e){this.render({pagesize:e}),this.settings.callback&&this.settings.callback(this.current,this.pagesize,this.pagecount)},format:function(){var e="<ul>";if(e+='<li class="js-page-first js-page-action ui-pager">'+this.settings.firstTpl+"</li>",e+='<li class="js-page-prev js-page-action ui-pager">'+this.settings.prevTpl+"</li>",this.pagecount>3)if(this.current<=1)e+='<li data-page="1" class="ui-pager">1</li>',e+='<li data-page="2" class="ui-pager">2</li>',e+='<li data-page="3" class="ui-pager">3</li>';else if(this.current>1&&this.current<=this.pagecount-1)e+='<li data-page="'+(this.current-1)+'" class="ui-pager">'+(this.current-1)+"</li>",e+='<li data-page="'+this.current+'" class="ui-pager">'+this.current+"</li>",e+='<li data-page="'+(this.current+1)+'" class="ui-pager">'+(this.current+1)+"</li>";else for(var t=this.pagecount-2;t<this.pagecount+1;t++)e+='<li data-page="'+t+'" class="ui-pager">'+t+"</li>";else for(t=1;t<=this.pagecount;t++)e+='<li data-page="'+t+'" class="ui-pager">'+t+"</li>";e+='<li class="js-page-next js-page-action ui-pager">'+this.settings.nextTpl+"</li>",e+='<li class="js-page-last js-page-action ui-pager">'+this.settings.lastTpl+"</li>",e+="</ul>",e+='<div class="js-page-total">共'+this.count+"条记录 "+this.current+"/"+this.pagecount+"页</div>",$(this.container[0]).html(e),0!=this.current&&1!=this.current||($(".js-page-prev",this.container).addClass("ui-pager-disabled"),$(".js-page-first",this.container).addClass("ui-pager-disabled")),this.current==this.pagecount&&($(".js-page-next",this.container).addClass("ui-pager-disabled"),$(".js-page-last",this.container).addClass("ui-pager-disabled")),this.container.find('li[data-page="'+this.current+'"]').addClass("focus").siblings().removeClass("focus"),this.settings.toolbar&&this.bindToolbar()},bindToolbar:function(){for(var e=this,t=$('<li class="ui-paging-toolbar"><select class="ui-select-pagesize form-control input-sm input-inline"></select><input type="text" class="form-control input-sm input-inline ui-paging-count"/><a href="javascript:;">跳转</a></li>'),o=$(".ui-select-pagesize",t),i="",n=0,r=this.settings.pageSizeList.length;n<r;n++)i+='<option value="'+this.settings.pageSizeList[n]+'">'+this.settings.pageSizeList[n]+"条/页</option>";o.html(i),o.val(this.pagesize),$("input",t).val(this.current),$("input",t).click((function(){$(this).select()})).keydown((function(t){if(13==t.keyCode){var o=parseInt($(this).val())||1;e.go(o)}})),$("a",t).click((function(){var t=parseInt($(this).prev().val())||1;e.go(t)})),o.change((function(){e.changePagesize($(this).val())})),this.container.children("ul").append(t)}}}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"===("undefined"==typeof module?"undefined":_typeof2(module))&&module.exports?module.exports=function(t,o){return void 0===o&&(o="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(o),o}:e(jQuery)}((function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var o;return function(){var e,o,i;t&&t.requirejs||(t?o=t:t={},function(t){var n,r,s,a,l={},p={},u={},c={},d=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function g(e,t){return d.call(e,t)}function y(e,t){var o,i,n,r,s,a,l,p,c,d,h,g=t&&t.split("/"),y=u.map,m=y&&y["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),c=0;c<e.length;c++)if("."===(h=e[c]))e.splice(c,1),c-=1;else if(".."===h){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((g||m)&&y){for(c=(o=e.split("/")).length;c>0;c-=1){if(i=o.slice(0,c).join("/"),g)for(d=g.length;d>0;d-=1)if((n=y[g.slice(0,d).join("/")])&&(n=n[i])){r=n,a=c;break}if(r)break;!l&&m&&m[i]&&(l=m[i],p=c)}!r&&l&&(r=l,a=p),r&&(o.splice(0,a,r),e=o.join("/"))}return e}function m(e,o){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),r.apply(t,i.concat([e,o]))}}function v(e){return function(t){l[e]=t}}function C(e){if(g(p,e)){var o=p[e];delete p[e],c[e]=!0,n.apply(t,o)}if(!g(l,e)&&!g(c,e))throw new Error("No "+e);return l[e]}function _(e){var t,o=e?e.indexOf("!"):-1;return o>-1&&(t=e.substring(0,o),e=e.substring(o+1,e.length)),[t,e]}function w(e){return e?_(e):[]}function b(e){return function(){return u&&u.config&&u.config[e]||{}}}s=function(e,t){var o,i,n=_(e),r=n[0],s=t[1];return e=n[1],r&&(o=C(r=y(r,s))),r?e=o&&o.normalize?o.normalize(e,(i=s,function(e){return y(e,i)})):y(e,s):(r=(n=_(e=y(e,s)))[0],e=n[1],r&&(o=C(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:o}},a={require:function(e){return m(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:b(e)}}},n=function(e,o,i,n){var r,u,d,h,f,y,_,b=[],E=_typeof2(i);if(y=w(n=n||e),"undefined"===E||"function"===E){for(o=!o.length&&i.length?["require","exports","module"]:o,f=0;f<o.length;f+=1)if("require"===(u=(h=s(o[f],y)).f))b[f]=a.require(e);else if("exports"===u)b[f]=a.exports(e),_=!0;else if("module"===u)r=b[f]=a.module(e);else if(g(l,u)||g(p,u)||g(c,u))b[f]=C(u);else{if(!h.p)throw new Error(e+" missing "+u);h.p.load(h.n,m(n,!0),v(u),{}),b[f]=l[u]}d=i?i.apply(l[e],b):void 0,e&&(r&&r.exports!==t&&r.exports!==l[e]?l[e]=r.exports:d===t&&_||(l[e]=d))}else e&&(l[e]=i)},e=o=r=function(e,o,i,l,p){if("string"==typeof e)return a[e]?a[e](o):C(s(e,w(o)).f);if(!e.splice){if((u=e).deps&&r(u.deps,u.callback),!o)return;o.splice?(e=o,o=i,i=null):e=t}return o=o||function(){},"function"==typeof i&&(i=l,l=p),l?n(t,e,o,i):setTimeout((function(){n(t,e,o,i)}),4),r},r.config=function(e){return r(e)},e._defined=l,(i=function(e,t,o){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(o=t,t=[]),g(l,e)||g(p,e)||(p[e]=[e,t,o])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=o,t.define=i)}(),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function o(e){var t=e.prototype,o=[];for(var i in t){"function"==typeof t[i]&&("constructor"!==i&&o.push(i))}return o}t.Extend=function(e,t){var o={}.hasOwnProperty;function i(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=o(t),n=o(e);function r(){var o=Array.prototype.unshift,i=t.prototype.constructor.length,n=e.prototype.constructor;i>0&&(o.call(arguments,e.prototype.constructor),n=t.prototype.constructor),n.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var s=0;s<n.length;s++){var a=n[s];r.prototype[a]=e.prototype[a]}for(var l=function(e){var o=function(){};e in r.prototype&&(o=r.prototype[e]);var i=t.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,o),i.apply(this,arguments)}},p=0;p<i.length;p++){var u=i[p];r.prototype[u]=l(u)}return r};var i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,o=t.call(arguments,1);this.listeners=this.listeners||{},null==o&&(o=[]),0===o.length&&o.push({}),o[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var o=0,i=e.length;o<i;o++)e[o].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",o=0;o<e;o++){t+=Math.floor(36*Math.random()).toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var o=t.split("-"),i=e;if(1!==o.length){for(var n=0;n<o.length;n++){var r=o[n];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),n==o.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},t.hasScroll=function(t,o){var i=e(o),n=o.style.overflowX,r=o.style.overflowY;return(n!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===n||"scroll"===r||(i.innerHeight()<o.scrollHeight||i.innerWidth()<o.scrollWidth))},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.appendMany=function(t,o){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(o,(function(e){i=i.add(e)})),o=i}t.append(o)},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function o(e,t,i){this.$element=e,this.data=i,this.options=t,o.__super__.constructor.call(this)}return t.Extend(o,t.Observable),o.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},o.prototype.clear=function(){this.$results.empty()},o.prototype.displayMessage=function(t){var o=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),n=this.options.get("translations").get(t.message);i.append(o(n(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},o.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},o.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var o=0;o<e.results.length;o++){var i=e.results[o],n=this.option(i);t.push(n)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},o.prototype.position=function(e,t){t.find(".select2-results").append(e)},o.prototype.sort=function(e){return this.options.get("sorter")(e)},o.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},o.prototype.setClasses=function(){var t=this;this.data.current((function(o){var i=e.map(o,(function(e){return e.id.toString()}));t.$results.find(".select2-results__option[aria-selected]").each((function(){var t=e(this),o=e.data(this,"data"),n=""+o.id;null!=o.element&&o.element.selected||null==o.element&&e.inArray(n,i)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")}))}))},o.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},o=this.option(t);o.className+=" loading-results",this.$results.prepend(o)},o.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},o.prototype.option=function(t){var o=document.createElement("li");o.className="select2-results__option";var i={role:"treeitem","aria-selected":"false"};for(var n in t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==t.id&&delete i["aria-selected"],null!=t._resultId&&(o.id=t._resultId),t.title&&(o.title=t.title),t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]),i){var r=i[n];o.setAttribute(n,r)}if(t.children){var s=e(o),a=document.createElement("strong");a.className="select2-results__group";e(a);this.template(t,a);for(var l=[],p=0;p<t.children.length;p++){var u=t.children[p],c=this.option(u);l.push(c)}var d=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});d.append(l),s.append(a),s.append(d)}else this.template(t,o);return e.data(o,"data",t),o},o.prototype.bind=function(t,o){var i=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",(function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())})),t.on("results:append",(function(e){i.append(e.data),t.isOpen()&&i.setClasses()})),t.on("query",(function(e){i.hideMessages(),i.showLoading(e)})),t.on("select",(function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())})),t.on("unselect",(function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())})),t.on("open",(function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()})),t.on("close",(function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")})),t.on("results:toggle",(function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),t.on("results:select",(function(){var e=i.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t})}})),t.on("results:previous",(function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e);if(0!==o){var n=o-1;0===e.length&&(n=0);var r=t.eq(n);r.trigger("mouseenter");var s=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-s);0===n?i.$results.scrollTop(0):a-s<0&&i.$results.scrollTop(l)}})),t.on("results:next",(function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e)+1;if(!(o>=t.length)){var n=t.eq(o);n.trigger("mouseenter");var r=i.$results.offset().top+i.$results.outerHeight(!1),s=n.offset().top+n.outerHeight(!1),a=i.$results.scrollTop()+s-r;0===o?i.$results.scrollTop(0):s>r&&i.$results.scrollTop(a)}})),t.on("results:focus",(function(e){e.element.addClass("select2-results__option--highlighted")})),t.on("results:message",(function(e){i.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=i.$results.scrollTop(),o=i.$results.get(0).scrollHeight-t+e.deltaY,n=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&o<=i.$results.height();n?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(t){var o=e(this),n=o.data("data");"true"!==o.attr("aria-selected")?i.trigger("select",{originalEvent:t,data:n}):i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:n}):i.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(t){var o=e(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:o,element:e(this)})}))},o.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},o.prototype.destroy=function(){this.$results.remove()},o.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),o=this.$results.offset().top,i=e.offset().top,n=this.$results.scrollTop()+(i-o),r=i-o;n-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(n)}},o.prototype.template=function(t,o){var i=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),r=i(t,o);null==r?o.style.display="none":"string"==typeof r?o.innerHTML=n(r):e(o).append(r)},o})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,o){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e,t){var i=this,n=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===o.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",n),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.focus(),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex)})),e.on("disable",(function(){i.$selection.attr("tabindex","-1")}))},i.prototype._handleBlur=function(t){var o=this;window.setTimeout((function(){document.activeElement==o.$selection[0]||e.contains(o.$selection[0],document.activeElement)||o.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,(function(t){var o=e(t.target).closest(".select2");e(".select2.select2-container--open").each((function(){var t=e(this);this!=o[0]&&t.data("element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,o,i){function n(){n.__super__.constructor.apply(this,arguments)}return o.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},n.prototype.bind=function(e,t){var o=this;n.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",(function(e){1===e.which&&o.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||o.$selection.focus()})),e.on("selection:update",(function(e){o.update(e.data)}))},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(e,t){var o=this.options.get("templateSelection");return this.options.get("escapeMarkup")(o(e,t))},n.prototype.selectionContainer=function(){return e("<span></span>")},n.prototype.update=function(e){if(0!==e.length){var t=e[0],o=this.$selection.find(".select2-selection__rendered"),i=this.display(t,o);o.empty().append(i),o.prop("title",t.title||t.text)}else this.clear()},n})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,o){function i(e,t){i.__super__.constructor.apply(this,arguments)}return o.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,o){var n=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(e){n.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!n.options.get("disabled")){var o=e(this).parent().data("data");n.trigger("unselect",{originalEvent:t,data:o})}}))},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var o=this.options.get("templateSelection");return this.options.get("escapeMarkup")(o(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var n=e[i],r=this.selectionContainer(),s=this.display(n,r);r.append(s),r.prop("title",n.title||n.text),r.data("data",n),t.push(r)}var a=this.$selection.find(".select2-selection__rendered");o.appendMany(a,t)}},i})),t.define("select2/selection/placeholder",["../utils"],(function(e){function t(e,t,o){this.placeholder=this.normalizePlaceholder(o.get("placeholder")),e.call(this,t,o)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var o=this.selectionContainer();return o.html(this.display(t)),o.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),o},t.prototype.update=function(e,t){var o=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||o)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t})),t.define("select2/selection/allowClear",["jquery","../keys"],(function(e,t){function o(){}return o.prototype.bind=function(e,t,o){var i=this;e.call(this,t,o),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){i._handleClear(e)})),t.on("keypress",(function(e){i._handleKeyboardClear(e,t)}))},o.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var o=this.$selection.find(".select2-selection__clear");if(0!==o.length){t.stopPropagation();for(var i=o.data("data"),n=0;n<i.length;n++){var r={data:i[n]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},o.prototype._handleKeyboardClear=function(e,o,i){i.isOpen()||o.which!=t.DELETE&&o.which!=t.BACKSPACE||this._handleClear(o)},o.prototype.update=function(t,o){if(t.call(this,o),!(this.$selection.find(".select2-selection__placeholder").length>0||0===o.length)){var i=e('<span class="select2-selection__clear">×</span>');i.data("data",o),this.$selection.find(".select2-selection__rendered").prepend(i)}},o})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,o){function i(e,t,o){e.call(this,t,o)}return i.prototype.render=function(t){var o=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=o,this.$search=o.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("open",(function(){n.$search.trigger("focus")})),t.on("close",(function(){n.$search.val(""),n.$search.removeAttr("aria-activedescendant"),n.$search.trigger("focus")})),t.on("enable",(function(){n.$search.prop("disabled",!1),n._transferTabIndex()})),t.on("disable",(function(){n.$search.prop("disabled",!0)})),t.on("focus",(function(e){n.$search.trigger("focus")})),t.on("results:focus",(function(e){n.$search.attr("aria-activedescendant",e.id)})),this.$selection.on("focusin",".select2-search--inline",(function(e){n.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){n._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),n.trigger("keypress",e),n._keyUpPrevented=e.isDefaultPrevented(),e.which===o.BACKSPACE&&""===n.$search.val()){var t=n.$searchContainer.prev(".select2-selection__choice");if(t.length>0){var i=t.data("data");n.searchRemoveChoice(i),e.preventDefault()}}}));var r=document.documentMode,s=r&&r<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){s?n.$selection.off("input.search input.searchcheck"):n.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(s&&"input"===e.type)n.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=o.SHIFT&&t!=o.CTRL&&t!=o.ALT&&t!=o.TAB&&n.handleSearch(e)}}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var o=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),o&&this.$search.focus()},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},i})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,o,i){var n=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];t.call(this,o,i),o.on("*",(function(t,o){if(-1!==e.inArray(t,r)){o=o||{};var i=e.Event("select2:"+t,{params:o});n.$element.trigger(i),-1!==e.inArray(t,s)&&(o.prevented=i.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function o(e){this.dict=e||{}}return o.prototype.all=function(){return this.dict},o.prototype.get=function(e){return this.dict[e]},o.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},o._cache={},o.loadPath=function(e){if(!(e in o._cache)){var i=t(e);o._cache[e]=i}return new o(o._cache[e])},o})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,o){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,o){var i=t.id+"-result-";return i+=e.generateChars(4),null!=o.id?i+="-"+o.id.toString():i+="-"+e.generateChars(4),i},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,o){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each((function(){var e=o(this),n=i.item(e);t.push(n)})),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,o(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var n=[];(e=[e]).push.apply(e,i);for(var r=0;r<e.length;r++){var s=e[r].id;-1===o.inArray(s,n)&&n.push(s)}t.$element.val(n),t.$element.trigger("change")}));else{var i=e.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,o(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current((function(i){for(var n=[],r=0;r<i.length;r++){var s=i[r].id;s!==e.id&&-1===o.inArray(s,n)&&n.push(s)}t.$element.val(n),t.$element.trigger("change")}))}},i.prototype.bind=function(e,t){var o=this;this.container=e,e.on("select",(function(e){o.select(e.data)})),e.on("unselect",(function(e){o.unselect(e.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){o.removeData(this,"data")}))},i.prototype.query=function(e,t){var i=[],n=this;this.$element.children().each((function(){var t=o(this);if(t.is("option")||t.is("optgroup")){var r=n.item(t),s=n.matches(e,r);null!==s&&i.push(s)}})),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=o(t),n=this._normalizeItem(e);return n.element=t,o.data(t,"data",n),i},i.prototype.item=function(e){var t={};if(null!=(t=o.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),n=[],r=0;r<i.length;r++){var s=o(i[r]),a=this.item(s);n.push(a)}t.children=n}return(t=this._normalizeItem(t)).element=e[0],o.data(e[0],"data",t),t},i.prototype._normalizeItem=function(e){o.isPlainObject(e)||(e={id:e,text:e});return null!=(e=o.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),o.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,o){function i(e,t){var o=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(o))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,o){return o.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var i=this,n=this.$element.find("option"),r=n.map((function(){return i.item(o(this)).id})).get(),s=[];function a(e){return function(){return o(this).val()==e.id}}for(var l=0;l<e.length;l++){var p=this._normalizeItem(e[l]);if(o.inArray(p.id,r)>=0){var u=n.filter(a(p)),c=this.item(u),d=o.extend(!0,{},p,c),h=this.option(d);u.replaceWith(h)}else{var f=this.option(p);if(p.children){var g=this.convertToOptions(p.children);t.appendMany(f,g)}s.push(f)}}return s},i})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,o){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,i){var n=o.ajax(e);return n.then(t),n.fail(i),n}};return o.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var n=o.extend({type:"GET"},this.ajaxOptions);function r(){var r=n.transport(n,(function(n){var r=i.processResults(n,e);i.options.get("debug")&&window.console&&console.error&&(r&&r.results&&o.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)}),(function(){r.status&&"0"===r.status||i.trigger("results:message",{message:"errorLoading"})}));i._request=r}"function"==typeof n.url&&(n.url=n.url.call(this.$element,e)),"function"==typeof n.data&&(n.data=n.data.call(this.$element,e)),this.ajaxOptions.delay?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},i})),t.define("select2/data/tags",["jquery"],(function(e){function t(t,o,i){var n=i.get("tags"),r=i.get("createTag");void 0!==r&&(this.createTag=r);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,o,i),e.isArray(n))for(var a=0;a<n.length;a++){var l=n[a],p=this._normalizeItem(l),u=this.option(p);this.$element.append(u)}}return t.prototype.query=function(e,t,o){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(n,r){for(var s=n.results,a=0;a<s.length;a++){var l=s[a],p=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||p)return!r&&(n.data=s,void o(n))}if(r)return!0;var u=i.createTag(t);if(null!=u){var c=i.option(u);c.attr("data-select2-tag",!0),i.addOptions([c]),i.insertTag(s,u)}n.results=s,o(n)})):e.call(this,t,o)},t.prototype.createTag=function(t,o){var i=e.trim(o.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,o){t.unshift(o)},t.prototype._removeOldTags=function(t){this._lastTag;this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,o){var i=o.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,o)}return t.prototype.bind=function(e,t,o){e.call(this,t,o),this.$search=t.dropdown.$search||t.selection.$search||o.find(".select2-search__field")},t.prototype.query=function(t,o,i){var n=this;o.term=o.term||"";var r=this.tokenizer(o,this.options,(function(t){var o=n._normalizeItem(t);if(!n.$element.find("option").filter((function(){return e(this).val()===o.id})).length){var i=n.option(o);i.attr("data-select2-tag",!0),n._removeOldTags(),n.addOptions([i])}!function(e){n.trigger("select",{data:e})}(o)}));r.term!==o.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.focus()),o.term=r.term),t.call(this,o,i)},t.prototype.tokenizer=function(t,o,i,n){for(var r=i.get("tokenSeparators")||[],s=o.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var p=s[a];if(-1!==e.inArray(p,r)){var u=s.substr(0,a),c=l(e.extend({},o,{term:u}));null!=c?(n(c),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,o){this.minimumInputLength=o.get("minimumInputLength"),e.call(this,t,o)}return e.prototype.query=function(e,t,o){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,o)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,o){this.maximumInputLength=o.get("maximumInputLength"),e.call(this,t,o)}return e.prototype.query=function(e,t,o){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,o)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,o){this.maximumSelectionLength=o.get("maximumSelectionLength"),e.call(this,t,o)}return e.prototype.query=function(e,t,o){var i=this;this.current((function(n){var r=null!=n?n.length:0;i.maximumSelectionLength>0&&r>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e.call(i,t,o)}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return t.Extend(o,t.Observable),o.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},o.prototype.bind=function(){},o.prototype.position=function(e,t){},o.prototype.destroy=function(){this.$dropdown.remove()},o})),t.define("select2/dropdown/search",["jquery","../utils"],(function(e,t){function o(){}return o.prototype.render=function(t){var o=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),o.prepend(i),o},o.prototype.bind=function(t,o,i){var n=this;t.call(this,o,i),this.$search.on("keydown",(function(e){n.trigger("keypress",e),n._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){n.handleSearch(e)})),o.on("open",(function(){n.$search.attr("tabindex",0),n.$search.focus(),window.setTimeout((function(){n.$search.focus()}),0)})),o.on("close",(function(){n.$search.attr("tabindex",-1),n.$search.val("")})),o.on("focus",(function(){o.isOpen()||n.$search.focus()})),o.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(n.showSearch(e)?n.$searchContainer.removeClass("select2-search--hide"):n.$searchContainer.addClass("select2-search--hide"))}))},o.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},o.prototype.showSearch=function(e,t){return!0},o})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,o,i){this.placeholder=this.normalizePlaceholder(o.get("placeholder")),e.call(this,t,o,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var o=t.slice(0),i=t.length-1;i>=0;i--){var n=t[i];this.placeholder.id===n.id&&o.splice(i,1)}return o},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,o,i){this.lastParams={},e.call(this,t,o,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,o,i){var n=this;t.call(this,o,i),o.on("query",(function(e){n.lastParams=e,n.loading=!0})),o.on("query:append",(function(e){n.lastParams=e,n.loading=!0})),this.$results.on("scroll",(function(){var t=e.contains(document.documentElement,n.$loadingMore[0]);!n.loading&&t&&(n.$results.offset().top+n.$results.outerHeight(!1)+50>=n.$loadingMore.offset().top+n.$loadingMore.outerHeight(!1)&&n.loadMore())}))},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),o=this.options.get("translations").get("loadingMore");return t.html(o(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function o(t,o,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,o,i)}return o.prototype.bind=function(e,t,o){var i=this,n=!1;e.call(this,t,o),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),n||(n=!0,t.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})))})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},o.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},o.prototype.position=function(e,t,o){t.attr("class",o.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=o},o.prototype.render=function(t){var o=e("<span></span>"),i=t.call(this);return o.append(i),this.$dropdownContainer=o,o},o.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},o.prototype._attachPositioningHandler=function(o,i){var n=this,r="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(r,(function(t){var o=e(this).data("select2-scroll-position");e(this).scrollTop(o.y)})),e(window).on(r+" "+s+" "+a,(function(e){n._positionDropdown(),n._resizeDropdown()}))},o.prototype._detachPositioningHandler=function(o,i){var n="scroll.select2."+i.id,r="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(n),e(window).off(n+" "+r+" "+s)},o.prototype._positionDropdown=function(){var t=e(window),o=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),n=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),p=t.scrollTop()+t.height(),u=l<r.top-a,c=p>r.bottom+a,d={left:r.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f=h.offset();d.top-=f.top,d.left-=f.left,o||i||(n="below"),c||!u||o?!u&&c&&o&&(n="below"):n="above",("above"==n||o&&"below"!==n)&&(d.top=s.top-f.top-a),null!=n&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+n),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+n)),this.$dropdownContainer.css(d)},o.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},o.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},o})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var o=0,i=0;i<t.length;i++){var n=t[i];n.children?o+=e(n.children):o++}return o}function t(e,t,o,i){this.minimumResultsForSearch=o.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,o,i)}return t.prototype.showSearch=function(t,o){return!(e(o.data.results)<this.minimumResultsForSearch)&&t.call(this,o)},t})),t.define("select2/dropdown/selectOnClose",[],(function(){function e(){}return e.prototype.bind=function(e,t,o){var i=this;e.call(this,t,o),t.on("close",(function(e){i._handleSelectOnClose(e)}))},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var o=t.originalSelect2Event;if("select"===o._type||"unselect"===o._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var n=i.data("data");null!=n.element&&n.element.selected||null==n.element&&n.selected||this.trigger("select",{data:n})}},e})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,o){var i=this;e.call(this,t,o),t.on("select",(function(e){i._selectTriggered(e)})),t.on("unselect",(function(e){i._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var o=t.originalEvent;o&&o.ctrlKey||this.trigger("close",{originalEvent:o,originalSelect2Event:t})},e})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,o="Please delete "+t+" character";return 1!=t&&(o+="s"),o},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}})),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(e,t,o,i,n,r,s,a,l,p,u,c,d,h,f,g,y,m,v,C,_,w,b,E,R,S,P,O,T){function A(){this.reset()}return A.prototype.apply=function(c){if(null==(c=e.extend(!0,{},this.defaults,c)).dataAdapter){if(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=h:c.dataAdapter=d,c.minimumInputLength>0&&(c.dataAdapter=p.Decorate(c.dataAdapter,m)),c.maximumInputLength>0&&(c.dataAdapter=p.Decorate(c.dataAdapter,v)),c.maximumSelectionLength>0&&(c.dataAdapter=p.Decorate(c.dataAdapter,C)),c.tags&&(c.dataAdapter=p.Decorate(c.dataAdapter,g)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=p.Decorate(c.dataAdapter,y)),null!=c.query){var T=t(c.amdBase+"compat/query");c.dataAdapter=p.Decorate(c.dataAdapter,T)}if(null!=c.initSelection){var A=t(c.amdBase+"compat/initSelection");c.dataAdapter=p.Decorate(c.dataAdapter,A)}}if(null==c.resultsAdapter&&(c.resultsAdapter=o,null!=c.ajax&&(c.resultsAdapter=p.Decorate(c.resultsAdapter,E)),null!=c.placeholder&&(c.resultsAdapter=p.Decorate(c.resultsAdapter,b)),c.selectOnClose&&(c.resultsAdapter=p.Decorate(c.resultsAdapter,P))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=_;else{var D=p.Decorate(_,w);c.dropdownAdapter=D}if(0!==c.minimumResultsForSearch&&(c.dropdownAdapter=p.Decorate(c.dropdownAdapter,S)),c.closeOnSelect&&(c.dropdownAdapter=p.Decorate(c.dropdownAdapter,O)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var x=t(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=p.Decorate(c.dropdownAdapter,x)}c.dropdownAdapter=p.Decorate(c.dropdownAdapter,R)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=n:c.selectionAdapter=i,null!=c.placeholder&&(c.selectionAdapter=p.Decorate(c.selectionAdapter,r)),c.allowClear&&(c.selectionAdapter=p.Decorate(c.selectionAdapter,s)),c.multiple&&(c.selectionAdapter=p.Decorate(c.selectionAdapter,a)),null!=c.containerCssClass||null!=c.containerCss||null!=c.adaptContainerCssClass){var F=t(c.amdBase+"compat/containerCss");c.selectionAdapter=p.Decorate(c.selectionAdapter,F)}c.selectionAdapter=p.Decorate(c.selectionAdapter,l)}if("string"==typeof c.language)if(c.language.indexOf("-")>0){var M=c.language.split("-")[0];c.language=[c.language,M]}else c.language=[c.language];if(e.isArray(c.language)){var N=new u;c.language.push("en");for(var L=c.language,I=0;I<L.length;I++){var k=L[I],G={};try{G=u.loadPath(k)}catch(e){try{k=this.defaults.amdLanguageBase+k,G=u.loadPath(k)}catch(e){c.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+k+'" could not be automatically loaded. A fallback will be used instead.');continue}}N.extend(G)}c.translations=N}else{var W=u.loadPath(this.defaults.amdLanguageBase+"en"),H=new u(c.language);H.extend(W),c.translations=H}return c},A.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return c[e]||e}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:p.escapeMarkup,language:T,matcher:function o(i,n){if(""===e.trim(i.term))return n;if(n.children&&n.children.length>0){for(var r=e.extend(!0,{},n),s=n.children.length-1;s>=0;s--){null==o(i,n.children[s])&&r.children.splice(s,1)}return r.children.length>0?r:o(i,r)}var a=t(n.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},A.prototype.set=function(t,o){var i={};i[e.camelCase(t)]=o;var n=p._convertData(i);e.extend(this.defaults,n)},new A})),t.define("select2/options",["require","jquery","./defaults","./utils"],(function(e,t,o,i){function n(t,n){if(this.options=t,null!=n&&this.fromElement(n),this.options=o.apply(this.options),n&&n.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return n.prototype.fromElement=function(e){var o=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n={};n=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},n);for(var s in r=i._convertData(r))t.inArray(s,o)>-1||(t.isPlainObject(this.options[s])?t.extend(this.options[s],r[s]):this.options[s]=r[s]);return this},n.prototype.get=function(e){return this.options[e]},n.prototype.set=function(e,t){this.options[e]=t},n})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,o,i){var n=function e(o,i){null!=o.data("select2")&&o.data("select2").destroy(),this.$element=o,this.id=this._generateId(o),i=i||{},this.options=new t(i,o),e.__super__.constructor.call(this);var n=o.attr("tabindex")||0;o.data("old-tabindex",n),o.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(o,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get("selectionAdapter");this.selection=new a(o,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get("dropdownAdapter");this.dropdown=new l(o,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var p=this.options.get("resultsAdapter");this.results=new p(o,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){u.trigger("selection:update",{data:e})})),o.addClass("select2-hidden-accessible"),o.attr("aria-hidden","true"),this._syncAttributes(),o.data("select2",this)};return o.Extend(n,o.Observable),n.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+o.generateChars(2):o.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},n.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},n.prototype._resolveWidth=function(e,t){var o=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var n=e.outerWidth(!1);return n<=0?"auto":n+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),a=0,l=s.length;a<l;a+=1){var p=s[a].replace(/\s/g,"").match(o);if(null!==p&&p.length>=1)return p[1]}return null}return t},n.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},n.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i((function(o){e.each(o,t._syncA),e.each(o,t._syncS)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},n.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,o){e.trigger(t,o)}))},n.prototype._registerSelectionEvents=function(){var t=this,o=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(i,n){-1===e.inArray(i,o)&&t.trigger(i,n)}))},n.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,o){e.trigger(t,o)}))},n.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,o){e.trigger(t,o)}))},n.prototype._registerEvents=function(){var t=this;t.lastPage=1,t.lastResults=null,t.lastTerm=null,this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||(t.trigger("open",{}),void 0!==t.dropdown.$search&&t.dropdown.$search.val(t.lastTerm)),1==t.options.options.resultCache&&t.lastResults&&null==e.term?(e.page=t.lastPage,t.trigger("results:all",{data:t.lastResults,query:e})):(t.lastTerm=e.term,t.lastPage=1,this.dataAdapter.query(e,(function(o){t.lastResults=o,t.trigger("results:all",{data:o,query:e})})))})),this.on("query:append",(function(o){t.lastPage<o.page&&(t.lastPage=o.page,this.dataAdapter.query(o,(function(i){e.each(i.results,(function(e,o){t.lastResults.results.push(o)})),t.lastResults.pagination.more=i.pagination.more,t.trigger("results:append",{data:i,query:o})})))})),this.on("keypress",(function(e){var o=e.which;t.isOpen()?o===i.ESC||o===i.TAB||o===i.UP&&e.altKey?(t.close(),e.preventDefault()):o===i.ENTER?(t.trigger("results:select",{}),e.preventDefault()):o===i.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):o===i.UP?(t.trigger("results:previous",{}),e.preventDefault()):o===i.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(o===i.ENTER||o===i.SPACE||o===i.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},n.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},n.prototype._syncSubtree=function(e,t){var o=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var n=0;n<t.addedNodes.length;n++){t.addedNodes[n].selected&&(o=!0)}else t.removedNodes&&t.removedNodes.length>0&&(o=!0);else o=!0;o&&this.dataAdapter.current((function(e){i.trigger("selection:update",{data:e})}))}},n.prototype.trigger=function(e,t){var o=n.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(o.call(this,r,s),s.prevented)return void(t.prevented=!0)}o.call(this,e,t)},n.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},n.prototype.open=function(){this.isOpen()||this.trigger("query",{})},n.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},n.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},n.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},n.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},n.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},n.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},n.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var o=t[0];e.isArray(o)&&(o=e.map(o,(function(e){return e.toString()}))),this.$element.val(o).trigger("change")},n.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},n.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},n})),t.define("select2/compat/utils",["jquery"],(function(e){return{syncCssClasses:function(t,o,i){var n,r,s=[];(n=e.trim(t.attr("class")))&&e((n=""+n).split(/\s+/)).each((function(){0===this.indexOf("select2-")&&s.push(this)})),(n=e.trim(o.attr("class")))&&e((n=""+n).split(/\s+/)).each((function(){0!==this.indexOf("select2-")&&null!=(r=i(this))&&s.push(r)})),t.attr("class",s.join(" "))}}})),t.define("select2/compat/containerCss",["jquery","./utils"],(function(e,t){function o(e){return null}function i(){}return i.prototype.render=function(i){var n=i.call(this),r=this.options.get("containerCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||o,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("containerCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(n,this.$element,s),n.css(l),n.addClass(r),n},i})),t.define("select2/compat/dropdownCss",["jquery","./utils"],(function(e,t){function o(e){return null}function i(){}return i.prototype.render=function(i){var n=i.call(this),r=this.options.get("dropdownCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||o,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("dropdownCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(n,this.$element,s),n.css(l),n.addClass(r),n},i})),t.define("select2/compat/initSelection",["jquery"],(function(e){function t(e,t,o){o.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=o.get("initSelection"),this._isInitialized=!1,e.call(this,t,o)}return t.prototype.current=function(t,o){var i=this;this._isInitialized?t.call(this,o):this.initSelection.call(null,this.$element,(function(t){i._isInitialized=!0,e.isArray(t)||(t=[t]),o(t)}))},t})),t.define("select2/compat/inputData",["jquery"],(function(e){function t(e,t,o){this._currentData=[],this._valueSeparator=o.get("valueSeparator")||",","hidden"===t.prop("type")&&o.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,o)}return t.prototype.current=function(t,o){function i(t,o){var n=[];return t.selected||-1!==e.inArray(t.id,o)?(t.selected=!0,n.push(t)):t.selected=!1,t.children&&n.push.apply(n,i(t.children,o)),n}for(var n=[],r=0;r<this._currentData.length;r++){var s=this._currentData[r];n.push.apply(n,i(s,this.$element.val().split(this._valueSeparator)))}o(n)},t.prototype.select=function(t,o){if(this.options.get("multiple")){var i=this.$element.val();i+=this._valueSeparator+o.id,this.$element.val(i),this.$element.trigger("change")}else this.current((function(t){e.map(t,(function(e){e.selected=!1}))})),this.$element.val(o.id),this.$element.trigger("change")},t.prototype.unselect=function(e,t){var o=this;t.selected=!1,this.current((function(e){for(var i=[],n=0;n<e.length;n++){var r=e[n];t.id!=r.id&&i.push(r.id)}o.$element.val(i.join(o._valueSeparator)),o.$element.trigger("change")}))},t.prototype.query=function(e,t,o){for(var i=[],n=0;n<this._currentData.length;n++){var r=this._currentData[n],s=this.matches(t,r);null!==s&&i.push(s)}o({results:i})},t.prototype.addOptions=function(t,o){var i=e.map(o,(function(t){return e.data(t[0],"data")}));this._currentData.push.apply(this._currentData,i)},t})),t.define("select2/compat/matcher",["jquery"],(function(e){return function(t){return function(o,i){var n=e.extend(!0,{},i);if(null==o.term||""===e.trim(o.term))return n;if(i.children){for(var r=i.children.length-1;r>=0;r--){var s=i.children[r];t(o.term,s.text,s)||n.children.splice(r,1)}if(n.children.length>0)return n}return t(o.term,i.text,i)?n:null}}})),t.define("select2/compat/query",[],(function(){function e(e,t,o){o.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,o)}return e.prototype.query=function(e,t,o){t.callback=o,this.options.get("query").call(null,t)},e})),t.define("select2/dropdown/attachContainer",[],(function(){function e(e,t,o){e.call(this,t,o)}return e.prototype.position=function(e,t,o){o.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),o.addClass("select2-container--below")},e})),t.define("select2/dropdown/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,o){e.call(this,t,o);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),t.define("select2/selection/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,o){e.call(this,t,o);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),o=function(e){var t,o,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(e.event.fixHooks)for(var s=i.length;s;)e.event.fixHooks[i[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=n.length;t;)this.addEventListener(n[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=n.length;t;)this.removeEventListener(n[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var o=e(t),i=o["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(o.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var n=i||window.event,s=r.call(arguments,1),l=0,c=0,d=0,h=0,f=0,g=0;if((i=e.event.fix(n)).type="mousewheel","detail"in n&&(d=-1*n.detail),"wheelDelta"in n&&(d=n.wheelDelta),"wheelDeltaY"in n&&(d=n.wheelDeltaY),"wheelDeltaX"in n&&(c=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(c=-1*d,d=0),l=0===d?c:d,"deltaY"in n&&(l=d=-1*n.deltaY),"deltaX"in n&&(c=n.deltaX,0===d&&(l=-1*c)),0!==d||0!==c){if(1===n.deltaMode){var y=e.data(this,"mousewheel-line-height");l*=y,d*=y,c*=y}else if(2===n.deltaMode){var m=e.data(this,"mousewheel-page-height");l*=m,d*=m,c*=m}if(h=Math.max(Math.abs(d),Math.abs(c)),(!o||h<o)&&(o=h,u(n,h)&&(o/=40)),u(n,h)&&(l/=40,c/=40,d/=40),l=Math[l>=1?"floor":"ceil"](l/o),c=Math[c>=1?"floor":"ceil"](c/o),d=Math[d>=1?"floor":"ceil"](d/o),a.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();f=i.clientX-v.left,g=i.clientY-v.top}return i.deltaX=c,i.deltaY=d,i.deltaFactor=o,i.offsetX=f,i.offsetY=g,i.deltaMode=0,s.unshift(i,l,c,d),t&&clearTimeout(t),t=setTimeout(p,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function p(){o=null}function u(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],o):"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))?module.exports=o:o(e),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],(function(e,t,o,i){if(null==e.fn.select2){var n=["open","close","destroy"];e.fn.select2=function(t){if("object"===_typeof2(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new o(e(this),i)})),this;if("string"==typeof t){var i,r=Array.prototype.slice.call(arguments,1);return this.each((function(){var o=e(this).data("select2");null==o&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=o[t].apply(o,r)})),e.inArray(t,n)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),o})),{define:t.define,require:t.require}}(),o=t.require("jquery.select2");return e.fn.select2.amd=t,o})),function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/zh-CN",[],(function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(e){return"请删除"+(e.input.length-e.maximum)+"个字符"},inputTooShort:function(e){return"请再输入至少"+(e.minimum-e.input.length)+"个字符"},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(e){return"最多只能选择"+e.maximum+"个项目"},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"}}})),e.define,e.require}();var PCAD="北京市$市辖区,东城区,西城区,朝阳区,丰台区,石景山区,海淀区,门头沟区,房山区,通州区,顺义区,昌平区,大兴区,怀柔区,平谷区|市辖县,密云县,延庆县#天津市$市辖区,和平区,河东区,河西区,南开区,河北区,红桥区,东丽区,西青区,津南区,北辰区,武清区,宝坻区,滨海新区|市辖县,宁河县,静海县,蓟县#河北省$石家庄市,市辖区,长安区,桥东区,桥西区,新华区,井陉矿区,裕华区,井陉县,正定县,栾城县,行唐县,灵寿县,高邑县,深泽县,赞皇县,无极县,平山县,元氏县,赵县,辛集市,藁城市,晋州市,新乐市,鹿泉市|唐山市,市辖区,路南区,路北区,古冶区,开平区,丰南区,丰润区,滦县,滦南县,乐亭县,迁西县,玉田县,唐海县,遵化市,迁安市|秦皇岛市,市辖区,海港区,山海关区,北戴河区,青龙满族自治县,昌黎县,抚宁县,卢龙县|邯郸市,市辖区,邯山区,丛台区,复兴区,峰峰矿区,邯郸县,临漳县,成安县,大名县,涉县,磁县,肥乡县,永年县,邱县,鸡泽县,广平县,馆陶县,魏县,曲周县,武安市|邢台市,市辖区,桥东区,桥西区,邢台县,临城县,内丘县,柏乡县,隆尧县,任县,南和县,宁晋县,巨鹿县,新河县,广宗县,平乡县,威县,清河县,临西县,南宫市,沙河市|保定市,市辖区,新市区,北市区,南市区,满城县,清苑县,涞水县,阜平县,徐水县,定兴县,唐县,高阳县,容城县,涞源县,望都县,安新县,易县,曲阳县,蠡县,顺平县,博野县,雄县,涿州市,定州市,安国市,高碑店市|张家口市,市辖区,桥东区,桥西区,宣化区,下花园区,宣化县,张北县,康保县,沽源县,尚义县,蔚县,阳原县,怀安县,万全县,怀来县,涿鹿县,赤城县,崇礼县|承德市,市辖区,双桥区,双滦区,鹰手营子矿区,承德县,兴隆县,平泉县,滦平县,隆化县,丰宁满族自治县,宽城满族自治县,围场满族蒙古族自治县|沧州市,市辖区,新华区,运河区,沧县,青县,东光县,海兴县,盐山县,肃宁县,南皮县,吴桥县,献县,孟村回族自治县,泊头市,任丘市,黄骅市,河间市|廊坊市,市辖区,安次区,广阳区,固安县,永清县,香河县,大城县,文安县,大厂回族自治县,霸州市,三河市|衡水市,市辖区,桃城区,枣强县,武邑县,武强县,饶阳县,安平县,故城县,景县,阜城县,冀州市,深州市#山西省$太原市,市辖区,小店区,迎泽区,杏花岭区,尖草坪区,万柏林区,晋源区,清徐县,阳曲县,娄烦县,古交市|大同市,市辖区,城区,矿区,南郊区,新荣区,阳高县,天镇县,广灵县,灵丘县,浑源县,左云县,大同县|阳泉市,市辖区,城区,矿区,郊区,平定县,盂县|长治市,市辖区,城区,郊区,长治县,襄垣县,屯留县,平顺县,黎城县,壶关县,长子县,武乡县,沁县,沁源县,潞城市|晋城市,市辖区,城区,沁水县,阳城县,陵川县,泽州县,高平市|朔州市,市辖区,朔城区,平鲁区,山阴县,应县,右玉县,怀仁县|晋中市,市辖区,榆次区,榆社县,左权县,和顺县,昔阳县,寿阳县,太谷县,祁县,平遥县,灵石县,介休市|运城市,市辖区,盐湖区,临猗县,万荣县,闻喜县,稷山县,新绛县,绛县,垣曲县,夏县,平陆县,芮城县,永济市,河津市|忻州市,市辖区,忻府区,定襄县,五台县,代县,繁峙县,宁武县,静乐县,神池县,五寨县,岢岚县,河曲县,保德县,偏关县,原平市|临汾市,市辖区,尧都区,曲沃县,翼城县,襄汾县,洪洞县,古县,安泽县,浮山县,吉县,乡宁县,大宁县,隰县,永和县,蒲县,汾西县,侯马市,霍州市|吕梁市,市辖区,离石区,文水县,交城县,兴县,临县,柳林县,石楼县,岚县,方山县,中阳县,交口县,孝义市,汾阳市#内蒙古自治区$呼和浩特市,市辖区,新城区,回民区,玉泉区,赛罕区,土默特左旗,托克托县,和林格尔县,清水河县,武川县|包头市,市辖区,东河区,昆都仑区,青山区,石拐区,白云鄂博矿区,九原区,土默特右旗,固阳县,达尔罕茂明安联合旗|乌海市,市辖区,海勃湾区,海南区,乌达区|赤峰市,市辖区,红山区,元宝山区,松山区,阿鲁科尔沁旗,巴林左旗,巴林右旗,林西县,克什克腾旗,翁牛特旗,喀喇沁旗,宁城县,敖汉旗|通辽市,市辖区,科尔沁区,科尔沁左翼中旗,科尔沁左翼后旗,开鲁县,库伦旗,奈曼旗,扎鲁特旗,霍林郭勒市|鄂尔多斯市,市辖区,东胜区,达拉特旗,准格尔旗,鄂托克前旗,鄂托克旗,杭锦旗,乌审旗,伊金霍洛旗|呼伦贝尔市,市辖区,海拉尔区,阿荣旗,莫力达瓦达斡尔族自治旗,鄂伦春自治旗,鄂温克族自治旗,陈巴尔虎旗,新巴尔虎左旗,新巴尔虎右旗,满洲里市,牙克石市,扎兰屯市,额尔古纳市,根河市|巴彦淖尔市,市辖区,临河区,五原县,磴口县,乌拉特前旗,乌拉特中旗,乌拉特后旗,杭锦后旗|乌兰察布市,市辖区,集宁区,卓资县,化德县,商都县,兴和县,凉城县,察哈尔右翼前旗,察哈尔右翼中旗,察哈尔右翼后旗,四子王旗,丰镇市|兴安盟,乌兰浩特市,阿尔山市,科尔沁右翼前旗,科尔沁右翼中旗,扎赉特旗,突泉县|锡林郭勒盟,二连浩特市,锡林浩特市,阿巴嘎旗,苏尼特左旗,苏尼特右旗,东乌珠穆沁旗,西乌珠穆沁旗,太仆寺旗,镶黄旗,正镶白旗,正蓝旗,多伦县|阿拉善盟,阿拉善左旗,阿拉善右旗,额济纳旗#辽宁省$沈阳市,市辖区,和平区,沈河区,大东区,皇姑区,铁西区,苏家屯区,东陵区,沈北新区,于洪区,辽中县,康平县,法库县,新民市|大连市,市辖区,中山区,西岗区,沙河口区,甘井子区,旅顺口区,金州区,长海县,瓦房店市,普兰店市,庄河市|鞍山市,市辖区,铁东区,铁西区,立山区,千山区,台安县,岫岩满族自治县,海城市|抚顺市,市辖区,新抚区,东洲区,望花区,顺城区,抚顺县,新宾满族自治县,清原满族自治县|本溪市,市辖区,平山区,溪湖区,明山区,南芬区,本溪满族自治县,桓仁满族自治县|丹东市,市辖区,元宝区,振兴区,振安区,宽甸满族自治县,东港市,凤城市|锦州市,市辖区,古塔区,凌河区,太和区,黑山县,义县,凌海市,北镇市|营口市,市辖区,站前区,西市区,鲅鱼圈区,老边区,盖州市,大石桥市|阜新市,市辖区,海州区,新邱区,太平区,清河门区,细河区,阜新蒙古族自治县,彰武县|辽阳市,市辖区,白塔区,文圣区,宏伟区,弓长岭区,太子河区,辽阳县,灯塔市|盘锦市,市辖区,双台子区,兴隆台区,大洼县,盘山县|铁岭市,市辖区,银州区,清河区,铁岭县,西丰县,昌图县,调兵山市,开原市|朝阳市,市辖区,双塔区,龙城区,朝阳县,建平县,喀喇沁左翼蒙古族自治县,北票市,凌源市|葫芦岛市,市辖区,连山区,龙港区,南票区,绥中县,建昌县,兴城市#吉林省$长春市,市辖区,南关区,宽城区,朝阳区,二道区,绿园区,双阳区,农安县,九台市,榆树市,德惠市|吉林市,市辖区,昌邑区,龙潭区,船营区,丰满区,永吉县,蛟河市,桦甸市,舒兰市,磐石市|四平市,市辖区,铁西区,铁东区,梨树县,伊通满族自治县,公主岭市,双辽市|辽源市,市辖区,龙山区,西安区,东丰县,东辽县|通化市,市辖区,东昌区,二道江区,通化县,辉南县,柳河县,梅河口市,集安市|白山市,市辖区,八道江区,江源区,抚松县,靖宇县,长白朝鲜族自治县,临江市|松原市,市辖区,宁江区,前郭尔罗斯蒙古族自治县,长岭县,乾安县,扶余县|白城市,市辖区,洮北区,镇赉县,通榆县,洮南市,大安市|延边朝鲜族自治州,延吉市,图们市,敦化市,珲春市,龙井市,和龙市,汪清县,安图县#黑龙江省$哈尔滨市,市辖区,道里区,南岗区,道外区,平房区,松北区,香坊区,呼兰区,阿城区,依兰县,方正县,宾县,巴彦县,木兰县,通河县,延寿县,双城市,尚志市,五常市|齐齐哈尔市,市辖区,龙沙区,建华区,铁锋区,昂昂溪区,富拉尔基区,碾子山区,梅里斯达斡尔族区,龙江县,依安县,泰来县,甘南县,富裕县,克山县,克东县,拜泉县,讷河市|鸡西市,市辖区,鸡冠区,恒山区,滴道区,梨树区,城子河区,麻山区,鸡东县,虎林市,密山市|鹤岗市,市辖区,向阳区,工农区,南山区,兴安区,东山区,兴山区,萝北县,绥滨县|双鸭山市,市辖区,尖山区,岭东区,四方台区,宝山区,集贤县,友谊县,宝清县,饶河县|大庆市,市辖区,萨尔图区,龙凤区,让胡路区,红岗区,大同区,肇州县,肇源县,林甸县,杜尔伯特蒙古族自治县|伊春市,市辖区,伊春区,南岔区,友好区,西林区,翠峦区,新青区,美溪区,金山屯区,五营区,乌马河区,汤旺河区,带岭区,乌伊岭区,红星区,上甘岭区,嘉荫县,铁力市|佳木斯市,市辖区,向阳区,前进区,东风区,郊区,桦南县,桦川县,汤原县,抚远县,同江市,富锦市|七台河市,市辖区,新兴区,桃山区,茄子河区,勃利县|牡丹江市,市辖区,东安区,阳明区,爱民区,西安区,东宁县,林口县,绥芬河市,海林市,宁安市,穆棱市|黑河市,市辖区,爱辉区,嫩江县,逊克县,孙吴县,北安市,五大连池市|绥化市,市辖区,北林区,望奎县,兰西县,青冈县,庆安县,明水县,绥棱县,安达市,肇东市,海伦市|大兴安岭地区,呼玛县,塔河县,漠河县#上海市$市辖区,黄浦区,徐汇区,长宁区,静安区,普陀区,闸北区,虹口区,杨浦区,闵行区,宝山区,嘉定区,浦东新区,金山区,松江区,青浦区,奉贤区|市辖县,崇明县#江苏省$南京市,市辖区,玄武区,白下区,秦淮区,建邺区,鼓楼区,下关区,浦口区,栖霞区,雨花台区,江宁区,六合区,溧水县,高淳县|无锡市,市辖区,崇安区,南长区,北塘区,锡山区,惠山区,滨湖区,江阴市,宜兴市|徐州市,市辖区,鼓楼区,云龙区,贾汪区,泉山区,铜山区,丰县,沛县,睢宁县,新沂市,邳州市|常州市,市辖区,天宁区,钟楼区,戚墅堰区,新北区,武进区,溧阳市,金坛市|苏州市,市辖区,沧浪区,平江区,金阊区,虎丘区,吴中区,相城区,常熟市,张家港市,昆山市,吴江市,太仓市|南通市,市辖区,崇川区,港闸区,通州区,海安县,如东县,启东市,如皋市,海门市|连云港市,市辖区,连云区,新浦区,海州区,赣榆县,东海县,灌云县,灌南县|淮安市,市辖区,清河区,楚州区,淮阴区,清浦区,涟水县,洪泽县,盱眙县,金湖县|盐城市,市辖区,亭湖区,盐都区,响水县,滨海县,阜宁县,射阳县,建湖县,东台市,大丰市|扬州市,市辖区,广陵区,邗江区,江都区,宝应县,仪征市,高邮市|镇江市,市辖区,京口区,润州区,丹徒区,丹阳市,扬中市,句容市|泰州市,市辖区,海陵区,高港区,兴化市,靖江市,泰兴市,姜堰市|宿迁市,市辖区,宿城区,宿豫区,沭阳县,泗阳县,泗洪县#浙江省$杭州市,市辖区,上城区,下城区,江干区,拱墅区,西湖区,滨江区,萧山区,余杭区,桐庐县,淳安县,建德市,富阳市,临安市|宁波市,市辖区,海曙区,江东区,江北区,北仑区,镇海区,鄞州区,象山县,宁海县,余姚市,慈溪市,奉化市|温州市,市辖区,鹿城区,龙湾区,瓯海区,洞头县,永嘉县,平阳县,苍南县,文成县,泰顺县,瑞安市,乐清市|嘉兴市,市辖区,南湖区,秀洲区,嘉善县,海盐县,海宁市,平湖市,桐乡市|湖州市,市辖区,吴兴区,南浔区,德清县,长兴县,安吉县|绍兴市,市辖区,越城区,绍兴县,新昌县,诸暨市,上虞市,嵊州市|金华市,市辖区,婺城区,金东区,武义县,浦江县,磐安县,兰溪市,义乌市,东阳市,永康市|衢州市,市辖区,柯城区,衢江区,常山县,开化县,龙游县,江山市|舟山市,市辖区,定海区,普陀区,岱山县,嵊泗县|台州市,市辖区,椒江区,黄岩区,路桥区,玉环县,三门县,天台县,仙居县,温岭市,临海市|丽水市,市辖区,莲都区,青田县,缙云县,遂昌县,松阳县,云和县,庆元县,景宁畲族自治县,龙泉市#安徽省$合肥市,市辖区,瑶海区,庐阳区,蜀山区,包河区,长丰县,肥东县,肥西县,庐江县,巢湖市|芜湖市,市辖区,镜湖区,弋江区,鸠江区,三山区,芜湖县,繁昌县,南陵县,无为县|蚌埠市,市辖区,龙子湖区,蚌山区,禹会区,淮上区,怀远县,五河县,固镇县|淮南市,市辖区,大通区,田家庵区,谢家集区,八公山区,潘集区,凤台县|马鞍山市,市辖区,金家庄区,花山区,雨山区,当涂县,含山县,和县|淮北市,市辖区,杜集区,相山区,烈山区,濉溪县|铜陵市,市辖区,铜官山区,狮子山区,郊区,铜陵县|安庆市,市辖区,迎江区,大观区,宜秀区,怀宁县,枞阳县,潜山县,太湖县,宿松县,望江县,岳西县,桐城市|黄山市,市辖区,屯溪区,黄山区,徽州区,歙县,休宁县,黟县,祁门县|滁州市,市辖区,琅琊区,南谯区,来安县,全椒县,定远县,凤阳县,天长市,明光市|阜阳市,市辖区,颍州区,颍东区,颍泉区,临泉县,太和县,阜南县,颍上县,界首市|宿州市,市辖区,埇桥区,砀山县,萧县,灵璧县,泗县|六安市,市辖区,金安区,裕安区,寿县,霍邱县,舒城县,金寨县,霍山县|亳州市,市辖区,谯城区,涡阳县,蒙城县,利辛县|池州市,市辖区,贵池区,东至县,石台县,青阳县|宣城市,市辖区,宣州区,郎溪县,广德县,泾县,绩溪县,旌德县,宁国市#福建省$福州市,市辖区,鼓楼区,台江区,仓山区,马尾区,晋安区,闽侯县,连江县,罗源县,闽清县,永泰县,平潭县,福清市,长乐市|厦门市,市辖区,思明区,海沧区,湖里区,集美区,同安区,翔安区|莆田市,市辖区,城厢区,涵江区,荔城区,秀屿区,仙游县|三明市,市辖区,梅列区,三元区,明溪县,清流县,宁化县,大田县,尤溪县,沙县,将乐县,泰宁县,建宁县,永安市|泉州市,市辖区,鲤城区,丰泽区,洛江区,泉港区,惠安县,安溪县,永春县,德化县,金门县,石狮市,晋江市,南安市|漳州市,市辖区,芗城区,龙文区,云霄县,漳浦县,诏安县,长泰县,东山县,南靖县,平和县,华安县,龙海市|南平市,市辖区,延平区,顺昌县,浦城县,光泽县,松溪县,政和县,邵武市,武夷山市,建瓯市,建阳市|龙岩市,市辖区,新罗区,长汀县,永定县,上杭县,武平县,连城县,漳平市|宁德市,市辖区,蕉城区,霞浦县,古田县,屏南县,寿宁县,周宁县,柘荣县,福安市,福鼎市#江西省$南昌市,市辖区,东湖区,西湖区,青云谱区,湾里区,青山湖区,南昌县,新建县,安义县,进贤县|景德镇市,市辖区,昌江区,珠山区,浮梁县,乐平市|萍乡市,市辖区,安源区,湘东区,莲花县,上栗县,芦溪县|九江市,市辖区,庐山区,浔阳区,九江县,武宁县,修水县,永修县,德安县,星子县,都昌县,湖口县,彭泽县,瑞昌市,共青城市|新余市,市辖区,渝水区,分宜县|鹰潭市,市辖区,月湖区,余江县,贵溪市|赣州市,市辖区,章贡区,赣县,信丰县,大余县,上犹县,崇义县,安远县,龙南县,定南县,全南县,宁都县,于都县,兴国县,会昌县,寻乌县,石城县,瑞金市,南康市|吉安市,市辖区,吉州区,青原区,吉安县,吉水县,峡江县,新干县,永丰县,泰和县,遂川县,万安县,安福县,永新县,井冈山市|宜春市,市辖区,袁州区,奉新县,万载县,上高县,宜丰县,靖安县,铜鼓县,丰城市,樟树市,高安市|抚州市,市辖区,临川区,南城县,黎川县,南丰县,崇仁县,乐安县,宜黄县,金溪县,资溪县,东乡县,广昌县|上饶市,市辖区,信州区,上饶县,广丰县,玉山县,铅山县,横峰县,弋阳县,余干县,鄱阳县,万年县,婺源县,德兴市#山东省$济南市,市辖区,历下区,市中区,槐荫区,天桥区,历城区,长清区,平阴县,济阳县,商河县,章丘市|青岛市,市辖区,市南区,市北区,四方区,黄岛区,崂山区,李沧区,城阳区,胶州市,即墨市,平度市,胶南市,莱西市|淄博市,市辖区,淄川区,张店区,博山区,临淄区,周村区,桓台县,高青县,沂源县|枣庄市,市辖区,市中区,薛城区,峄城区,台儿庄区,山亭区,滕州市|东营市,市辖区,东营区,河口区,垦利县,利津县,广饶县|烟台市,市辖区,芝罘区,福山区,牟平区,莱山区,长岛县,龙口市,莱阳市,莱州市,蓬莱市,招远市,栖霞市,海阳市|潍坊市,市辖区,潍城区,寒亭区,坊子区,奎文区,临朐县,昌乐县,青州市,诸城市,寿光市,安丘市,高密市,昌邑市|济宁市,市辖区,市中区,任城区,微山县,鱼台县,金乡县,嘉祥县,汶上县,泗水县,梁山县,曲阜市,兖州市,邹城市|泰安市,市辖区,泰山区,岱岳区,宁阳县,东平县,新泰市,肥城市|威海市,市辖区,环翠区,文登市,荣成市,乳山市|日照市,市辖区,东港区,岚山区,五莲县,莒县|莱芜市,市辖区,莱城区,钢城区|临沂市,市辖区,兰山区,罗庄区,河东区,沂南县,郯城县,沂水县,苍山县,费县,平邑县,莒南县,蒙阴县,临沭县|德州市,市辖区,德城区,陵县,宁津县,庆云县,临邑县,齐河县,平原县,夏津县,武城县,乐陵市,禹城市|聊城市,市辖区,东昌府区,阳谷县,莘县,茌平县,东阿县,冠县,高唐县,临清市|滨州市,市辖区,滨城区,惠民县,阳信县,无棣县,沾化县,博兴县,邹平县|菏泽市,市辖区,牡丹区,曹县,单县,成武县,巨野县,郓城县,鄄城县,定陶县,东明县#河南省$郑州市,市辖区,中原区,二七区,管城回族区,金水区,上街区,惠济区,中牟县,巩义市,荥阳市,新密市,新郑市,登封市|开封市,市辖区,龙亭区,顺河回族区,鼓楼区,禹王台区,金明区,杞县,通许县,尉氏县,开封县,兰考县|洛阳市,市辖区,老城区,西工区,瀍河回族区,涧西区,吉利区,洛龙区,孟津县,新安县,栾川县,嵩县,汝阳县,宜阳县,洛宁县,伊川县,偃师市|平顶山市,市辖区,新华区,卫东区,石龙区,湛河区,宝丰县,叶县,鲁山县,郏县,舞钢市,汝州市|安阳市,市辖区,文峰区,北关区,殷都区,龙安区,安阳县,汤阴县,滑县,内黄县,林州市|鹤壁市,市辖区,鹤山区,山城区,淇滨区,浚县,淇县|新乡市,市辖区,红旗区,卫滨区,凤泉区,牧野区,新乡县,获嘉县,原阳县,延津县,封丘县,长垣县,卫辉市,辉县市|焦作市,市辖区,解放区,中站区,马村区,山阳区,修武县,博爱县,武陟县,温县,沁阳市,孟州市|濮阳市,市辖区,华龙区,清丰县,南乐县,范县,台前县,濮阳县|许昌市,市辖区,魏都区,许昌县,鄢陵县,襄城县,禹州市,长葛市|漯河市,市辖区,源汇区,郾城区,召陵区,舞阳县,临颍县|三门峡市,市辖区,湖滨区,渑池县,陕县,卢氏县,义马市,灵宝市|南阳市,市辖区,宛城区,卧龙区,南召县,方城县,西峡县,镇平县,内乡县,淅川县,社旗县,唐河县,新野县,桐柏县,邓州市|商丘市,市辖区,梁园区,睢阳区,民权县,睢县,宁陵县,柘城县,虞城县,夏邑县,永城市|信阳市,市辖区,浉河区,平桥区,罗山县,光山县,新县,商城县,固始县,潢川县,淮滨县,息县|周口市,市辖区,川汇区,扶沟县,西华县,商水县,沈丘县,郸城县,淮阳县,太康县,鹿邑县,项城市|驻马店市,市辖区,驿城区,西平县,上蔡县,平舆县,正阳县,确山县,泌阳县,汝南县,遂平县,新蔡县|省直辖县级行政区划,济源市#湖北省$武汉市,市辖区,江岸区,江汉区,硚口区,汉阳区,武昌区,青山区,洪山区,东西湖区,汉南区,蔡甸区,江夏区,黄陂区,新洲区|黄石市,市辖区,黄石港区,西塞山区,下陆区,铁山区,阳新县,大冶市|十堰市,市辖区,茅箭区,张湾区,郧县,郧西县,竹山县,竹溪县,房县,丹江口市|宜昌市,市辖区,西陵区,伍家岗区,点军区,猇亭区,夷陵区,远安县,兴山县,秭归县,长阳土家族自治县,五峰土家族自治县,宜都市,当阳市,枝江市|襄阳市,市辖区,襄城区,樊城区,襄州区,南漳县,谷城县,保康县,老河口市,枣阳市,宜城市|鄂州市,市辖区,梁子湖区,华容区,鄂城区|荆门市,市辖区,东宝区,掇刀区,京山县,沙洋县,钟祥市|孝感市,市辖区,孝南区,孝昌县,大悟县,云梦县,应城市,安陆市,汉川市|荆州市,市辖区,沙市区,荆州区,公安县,监利县,江陵县,石首市,洪湖市,松滋市|黄冈市,市辖区,黄州区,团风县,红安县,罗田县,英山县,浠水县,蕲春县,黄梅县,麻城市,武穴市|咸宁市,市辖区,咸安区,嘉鱼县,通城县,崇阳县,通山县,赤壁市|随州市,市辖区,曾都区,随县,广水市|恩施土家族苗族自治州,恩施市,利川市,建始县,巴东县,宣恩县,咸丰县,来凤县,鹤峰县|省直辖县级行政区划,仙桃市,潜江市,天门市,神农架林区#湖南省$长沙市,市辖区,芙蓉区,天心区,岳麓区,开福区,雨花区,望城区,长沙县,宁乡县,浏阳市|株洲市,市辖区,荷塘区,芦淞区,石峰区,天元区,株洲县,攸县,茶陵县,炎陵县,醴陵市|湘潭市,市辖区,雨湖区,岳塘区,湘潭县,湘乡市,韶山市|衡阳市,市辖区,珠晖区,雁峰区,石鼓区,蒸湘区,南岳区,衡阳县,衡南县,衡山县,衡东县,祁东县,耒阳市,常宁市|邵阳市,市辖区,双清区,大祥区,北塔区,邵东县,新邵县,邵阳县,隆回县,洞口县,绥宁县,新宁县,城步苗族自治县,武冈市|岳阳市,市辖区,岳阳楼区,云溪区,君山区,岳阳县,华容县,湘阴县,平江县,汨罗市,临湘市|常德市,市辖区,武陵区,鼎城区,安乡县,汉寿县,澧县,临澧县,桃源县,石门县,津市市|张家界市,市辖区,永定区,武陵源区,慈利县,桑植县|益阳市,市辖区,资阳区,赫山区,南县,桃江县,安化县,沅江市|郴州市,市辖区,北湖区,苏仙区,桂阳县,宜章县,永兴县,嘉禾县,临武县,汝城县,桂东县,安仁县,资兴市|永州市,市辖区,零陵区,冷水滩区,祁阳县,东安县,双牌县,道县,江永县,宁远县,蓝山县,新田县,江华瑶族自治县|怀化市,市辖区,鹤城区,中方县,沅陵县,辰溪县,溆浦县,会同县,麻阳苗族自治县,新晃侗族自治县,芷江侗族自治县,靖州苗族侗族自治县,通道侗族自治县,洪江市|娄底市,市辖区,娄星区,双峰县,新化县,冷水江市,涟源市|湘西土家族苗族自治州,吉首市,泸溪县,凤凰县,花垣县,保靖县,古丈县,永顺县,龙山县#广东省$广州市,市辖区,荔湾区,越秀区,海珠区,天河区,白云区,黄埔区,番禺区,花都区,南沙区,萝岗区,增城市,从化市|韶关市,市辖区,武江区,浈江区,曲江区,始兴县,仁化县,翁源县,乳源瑶族自治县,新丰县,乐昌市,南雄市|深圳市,市辖区,罗湖区,福田区,南山区,宝安区,龙岗区,盐田区|珠海市,市辖区,香洲区,斗门区,金湾区|汕头市,市辖区,龙湖区,金平区,濠江区,潮阳区,潮南区,澄海区,南澳县|佛山市,市辖区,禅城区,南海区,顺德区,三水区,高明区|江门市,市辖区,蓬江区,江海区,新会区,台山市,开平市,鹤山市,恩平市|湛江市,市辖区,赤坎区,霞山区,坡头区,麻章区,遂溪县,徐闻县,廉江市,雷州市,吴川市|茂名市,市辖区,茂南区,茂港区,电白县,高州市,化州市,信宜市|肇庆市,市辖区,端州区,鼎湖区,广宁县,怀集县,封开县,德庆县,高要市,四会市|惠州市,市辖区,惠城区,惠阳区,博罗县,惠东县,龙门县|梅州市,市辖区,梅江区,梅县,大埔县,丰顺县,五华县,平远县,蕉岭县,兴宁市|汕尾市,市辖区,城区,海丰县,陆河县,陆丰市|河源市,市辖区,源城区,紫金县,龙川县,连平县,和平县,东源县|阳江市,市辖区,江城区,阳西县,阳东县,阳春市|清远市,市辖区,清城区,佛冈县,阳山县,连山壮族瑶族自治县,连南瑶族自治县,清新县,英德市,连州市|东莞市|中山市|潮州市,市辖区,湘桥区,潮安县,饶平县|揭阳市,市辖区,榕城区,揭东县,揭西县,惠来县,普宁市|云浮市,市辖区,云城区,新兴县,郁南县,云安县,罗定市#广西壮族自治区$南宁市,市辖区,兴宁区,青秀区,江南区,西乡塘区,良庆区,邕宁区,武鸣县,隆安县,马山县,上林县,宾阳县,横县|柳州市,市辖区,城中区,鱼峰区,柳南区,柳北区,柳江县,柳城县,鹿寨县,融安县,融水苗族自治县,三江侗族自治县|桂林市,市辖区,秀峰区,叠彩区,象山区,七星区,雁山区,阳朔县,临桂县,灵川县,全州县,兴安县,永福县,灌阳县,龙胜各族自治县,资源县,平乐县,荔蒲县,恭城瑶族自治县|梧州市,市辖区,万秀区,蝶山区,长洲区,苍梧县,藤县,蒙山县,岑溪市|北海市,市辖区,海城区,银海区,铁山港区,合浦县|防城港市,市辖区,港口区,防城区,上思县,东兴市|钦州市,市辖区,钦南区,钦北区,灵山县,浦北县|贵港市,市辖区,港北区,港南区,覃塘区,平南县,桂平市|玉林市,市辖区,玉州区,容县,陆川县,博白县,兴业县,北流市|百色市,市辖区,右江区,田阳县,田东县,平果县,德保县,靖西县,那坡县,凌云县,乐业县,田林县,西林县,隆林各族自治县|贺州市,市辖区,八步区,昭平县,钟山县,富川瑶族自治县|河池市,市辖区,金城江区,南丹县,天峨县,凤山县,东兰县,罗城仫佬族自治县,环江毛南族自治县,巴马瑶族自治县,都安瑶族自治县,大化瑶族自治县,宜州市|来宾市,市辖区,兴宾区,忻城县,象州县,武宣县,金秀瑶族自治县,合山市|崇左市,市辖区,江洲区,扶绥县,宁明县,龙州县,大新县,天等县,凭祥市#海南省$海口市,市辖区,秀英区,龙华区,琼山区,美兰区|三亚市,市辖区|省直辖县级行政区划,五指山市,琼海市,儋州市,文昌市,万宁市,东方市,定安县,屯昌县,澄迈县,临高县,白沙黎族自治县,昌江黎族自治县,乐东黎族自治县,陵水黎族自治县,保亭黎族苗族自治县,琼中黎族苗族自治县,西沙群岛,南沙群岛,中沙群岛的岛礁及其海域#重庆市$市辖区,万州区,涪陵区,渝中区,大渡口区,江北区,沙坪坝区,九龙坡区,南岸区,北碚区,綦江区,大足区,渝北区,巴南区,黔江区,长寿区,江津区,合川区,永川区,南川区|市辖县,潼南县,铜梁县,荣昌县,璧山县,梁平县,城口县,丰都县,垫江县,武隆县,忠县,开县,云阳县,奉节县,巫山县,巫溪县,石柱土家族自治县,秀山土家族苗族自治县,酉阳土家族苗族自治县,彭水苗族土家族自治县#四川省$成都市,市辖区,锦江区,青羊区,金牛区,武侯区,成华区,龙泉驿区,青白江区,新都区,温江区,金堂县,双流县,郫县,大邑县,蒲江县,新津县,都江堰市,彭州市,邛崃市,崇州市|自贡市,市辖区,自流井区,贡井区,大安区,沿滩区,荣县,富顺县|攀枝花市,市辖区,东区,西区,仁和区,米易县,盐边县|泸州市,市辖区,江阳区,纳溪区,龙马潭区,泸县,合江县,叙永县,古蔺县|德阳市,市辖区,旌阳区,中江县,罗江县,广汉市,什邡市,绵竹市|绵阳市,市辖区,涪城区,游仙区,三台县,盐亭县,安县,梓潼县,北川羌族自治县,平武县,江油市|广元市,市辖区,利州区,元坝区,朝天区,旺苍县,青川县,剑阁县,苍溪县|遂宁市,市辖区,船山区,安居区,蓬溪县,射洪县,大英县|内江市,市辖区,市中区,东兴区,威远县,资中县,隆昌县|乐山市,市辖区,市中区,沙湾区,五通桥区,金口河区,犍为县,井研县,夹江县,沐川县,峨边彝族自治县,马边彝族自治县,峨眉山市|南充市,市辖区,顺庆区,高坪区,嘉陵区,南部县,营山县,蓬安县,仪陇县,西充县,阆中市|眉山市,市辖区,东坡区,仁寿县,彭山县,洪雅县,丹棱县,青神县|宜宾市,市辖区,翠屏区,南溪区,宜宾县,江安县,长宁县,高县,珙县,筠连县,兴文县,屏山县|广安市,市辖区,广安区,岳池县,武胜县,邻水县,华蓥市|达州市,市辖区,通川区,达县,宣汉县,开江县,大竹县,渠县,万源市|雅安市,市辖区,雨城区,名山县,荥经县,汉源县,石棉县,天全县,芦山县,宝兴县|巴中市,市辖区,巴州区,通江县,南江县,平昌县|资阳市,市辖区,雁江区,安岳县,乐至县,简阳市|阿坝藏族羌族自治州,汶川县,理县,茂县,松潘县,九寨沟县,金川县,小金县,黑水县,马尔康县,壤塘县,阿坝县,若尔盖县,红原县|甘孜藏族自治州,康定县,泸定县,丹巴县,九龙县,雅江县,道孚县,炉霍县,甘孜县,新龙县,德格县,白玉县,石渠县,色达县,理塘县,巴塘县,乡城县,稻城县,得荣县|凉山彝族自治州,西昌市,木里藏族自治县,盐源县,德昌县,会理县,会东县,宁南县,普格县,布拖县,金阳县,昭觉县,喜德县,冕宁县,越西县,甘洛县,美姑县,雷波县#贵州省$贵阳市,市辖区,南明区,云岩区,花溪区,乌当区,白云区,小河区,开阳县,息烽县,修文县,清镇市|六盘水市,钟山区,六枝特区,水城县,盘县|遵义市,市辖区,红花岗区,汇川区,遵义县,桐梓县,绥阳县,正安县,道真仡佬族苗族自治县,务川仡佬族苗族自治县,凤冈县,湄潭县,余庆县,习水县,赤水市,仁怀市|安顺市,市辖区,西秀区,平坝县,普定县,镇宁布依族苗族自治县,关岭布依族苗族自治县,紫云苗族布依族自治县|毕节市,市辖区,七星关区,大方县,黔西县,金沙县,织金县,纳雍县,威宁彝族回族苗族自治县,赫章县|铜仁市,市辖区,碧江区,万山区,江口县,玉屏侗族自治县,石阡县,思南县,印江土家族苗族自治县,德江县,沿河土家族自治县,松桃苗族自治县|黔西南布依族苗族自治州,兴义市,兴仁县,普安县,晴隆县,贞丰县,望谟县,册亨县,安龙县|黔东南苗族侗族自治州,凯里市,黄平县,施秉县,三穗县,镇远县,岑巩县,天柱县,锦屏县,剑河县,台江县,黎平县,榕江县,从江县,雷山县,麻江县,丹寨县|黔南布依族苗族自治州,都匀市,福泉市,荔波县,贵定县,瓮安县,独山县,平塘县,罗甸县,长顺县,龙里县,惠水县,三都水族自治县#云南省$昆明市,市辖区,五华区,盘龙区,官渡区,西山区,东川区,呈贡区,晋宁县,富民县,宜良县,石林彝族自治县,嵩明县,禄劝彝族苗族自治县,寻甸回族彝族自治县,安宁市|曲靖市,市辖区,麒麟区,马龙县,陆良县,师宗县,罗平县,富源县,会泽县,沾益县,宣威市|玉溪市,市辖区,红塔区,江川县,澄江县,通海县,华宁县,易门县,峨山彝族自治县,新平彝族傣族自治县,元江哈尼族彝族傣族自治县|保山市,市辖区,隆阳区,施甸县,腾冲县,龙陵县,昌宁县|昭通市,市辖区,昭阳区,鲁甸县,巧家县,盐津县,大关县,永善县,绥江县,镇雄县,彝良县,威信县,水富县|丽江市,市辖区,古城区,玉龙纳西族自治县,永胜县,华坪县,宁蒗彝族自治县|普洱市,市辖区,思茅区,宁洱哈尼族彝族自治县,墨江哈尼族自治县,景东彝族自治县,景谷傣族彝族自治县,镇沅彝族哈尼族拉祜族自治县,江城哈尼族彝族自治县,孟连傣族拉祜族佤族自治县,澜沧拉祜族自治县,西盟佤族自治县|临沧市,市辖区,临翔区,凤庆县,云县,永德县,镇康县,双江拉祜族佤族布朗族傣族自治县,耿马傣族佤族自治县,沧源佤族自治县|楚雄彝族自治州,楚雄市,双柏县,牟定县,南华县,姚安县,大姚县,永仁县,元谋县,武定县,禄丰县|红河哈尼族彝族自治州,个旧市,开远市,蒙自市,屏边苗族自治县,建水县,石屏县,弥勒县,泸西县,元阳县,红河县,金平苗族瑶族傣族自治县,绿春县,河口瑶族自治县|文山壮族苗族自治州,文山市,砚山县,西畴县,麻栗坡县,马关县,丘北县,广南县,富宁县|西双版纳傣族自治州,景洪市,勐海县,勐腊县|大理白族自治州,大理市,漾濞彝族自治县,祥云县,宾川县,弥渡县,南涧彝族自治县,巍山彝族回族自治县,永平县,云龙县,洱源县,剑川县,鹤庆县|德宏傣族景颇族自治州,瑞丽市,芒市,梁河县,盈江县,陇川县|怒江傈僳族自治州,泸水县,福贡县,贡山独龙族怒族自治县,兰坪白族普米族自治县|迪庆藏族自治州,香格里拉县,德钦县,维西傈僳族自治县#西藏自治区$拉萨市,市辖区,城关区,林周县,当雄县,尼木县,曲水县,堆龙德庆县,达孜县,墨竹工卡县|昌都地区,昌都县,江达县,贡觉县,类乌齐县,丁青县,察雅县,八宿县,左贡县,芒康县,洛隆县,边坝县|山南地区,乃东县,扎囊县,贡嘎县,桑日县,琼结县,曲松县,措美县,洛扎县,加查县,隆子县,错那县,浪卡子县|日喀则地区,日喀则市,南木林县,江孜县,定日县,萨迦县,拉孜县,昂仁县,谢通门县,白朗县,仁布县,康马县,定结县,仲巴县,亚东县,吉隆县,聂拉木县,萨嘎县,岗巴县|那曲地区,那曲县,嘉黎县,比如县,聂荣县,安多县,申扎县,索县,班戈县,巴青县,尼玛县|阿里地区,普兰县,札达县,噶尔县,日土县,革吉县,改则县,措勤县|林芝地区,林芝县,工布江达县,米林县,墨脱县,波密县,察隅县,朗县#陕西省$西安市,市辖区,新城区,碑林区,莲湖区,灞桥区,未央区,雁塔区,阎良区,临潼区,长安区,蓝田县,周至县,户县,高陵县|铜川市,市辖区,王益区,印台区,耀州区,宜君县|宝鸡市,市辖区,渭滨区,金台区,陈仓区,凤翔县,岐山县,扶风县,眉县,陇县,千阳县,麟游县,凤县,太白县|咸阳市,市辖区,秦都区,杨陵区,渭城区,三原县,泾阳县,乾县,礼泉县,永寿县,彬县,长武县,旬邑县,淳化县,武功县,兴平市|渭南市,市辖区,临渭区,华县,潼关县,大荔县,合阳县,澄城县,蒲城县,白水县,富平县,韩城市,华阴市|延安市,市辖区,宝塔区,延长县,延川县,子长县,安塞县,志丹县,吴起县,甘泉县,富县,洛川县,宜川县,黄龙县,黄陵县|汉中市,市辖区,汉台区,南郑县,城固县,洋县,西乡县,勉县,宁强县,略阳县,镇巴县,留坝县,佛坪县|榆林市,市辖区,榆阳区,神木县,府谷县,横山县,靖边县,定边县,绥德县,米脂县,佳县,吴堡县,清涧县,子洲县|安康市,市辖区,汉滨区,汉阴县,石泉县,宁陕县,紫阳县,岚皋县,平利县,镇坪县,旬阳县,白河县|商洛市,市辖区,商州区,洛南县,丹凤县,商南县,山阳县,镇安县,柞水县#甘肃省$兰州市,市辖区,城关区,七里河区,西固区,安宁区,红古区,永登县,皋兰县,榆中县|嘉峪关市,市辖区|金昌市,市辖区,金川区,永昌县|白银市,市辖区,白银区,平川区,靖远县,会宁县,景泰县|天水市,市辖区,秦州区,麦积区,清水县,秦安县,甘谷县,武山县,张家川回族自治县|武威市,市辖区,凉州区,民勤县,古浪县,天祝藏族自治县|张掖市,市辖区,甘州区,肃南裕固族自治县,民乐县,临泽县,高台县,山丹县|平凉市,市辖区,崆峒区,泾川县,灵台县,崇信县,华亭县,庄浪县,静宁县|酒泉市,市辖区,肃州区,金塔县,瓜州县,肃北蒙古族自治县,阿克塞哈萨克族自治县,玉门市,敦煌市|庆阳市,市辖区,西峰区,庆城县,环县,华池县,合水县,正宁县,宁县,镇原县|定西市,市辖区,安定区,通渭县,陇西县,渭源县,临洮县,漳县,岷县|陇南市,市辖区,武都区,成县,文县,宕昌县,康县,西和县,礼县,徽县,两当县|临夏回族自治州,临夏市,临夏县,康乐县,永靖县,广河县,和政县,东乡族自治县,积石山保安族东乡族撒拉族自治县|甘南藏族自治州,合作市,临潭县,卓尼县,舟曲县,迭部县,玛曲县,碌曲县,夏河县#青海省$西宁市,市辖区,城东区,城中区,城西区,城北区,大通回族土族自治县,湟中县,湟源县|海东地区,平安县,民和回族土族自治县,乐都县,互助土族自治县,化隆回族自治县,循化撒拉族自治县|海北藏族自治州,门源回族自治县,祁连县,海晏县,刚察县|黄南藏族自治州,同仁县,尖扎县,泽库县,河南蒙古族自治县|海南藏族自治州,共和县,同德县,贵德县,兴海县,贵南县|果洛藏族自治州,玛沁县,班玛县,甘德县,达日县,久治县,玛多县|玉树藏族自治州,玉树县,杂多县,称多县,治多县,囊谦县,曲麻莱县|海西蒙古族藏族自治州,格尔木市,德令哈市,乌兰县,都兰县,天峻县#宁夏回族自治区$银川市,市辖区,兴庆区,西夏区,金凤区,永宁县,贺兰县,灵武市|石嘴山市,市辖区,大武口区,惠农区,平罗县|吴忠市,市辖区,利通区,红寺堡区,盐池县,同心县,青铜峡市|固原市,市辖区,原州区,西吉县,隆德县,泾源县,彭阳县|中卫市,市辖区,沙坡头区,中宁县,海原县#新疆维吾尔自治区$乌鲁木齐市,市辖区,天山区,沙依巴克区,新市区,水磨沟区,头屯河区,达坂城区,米东区,乌鲁木齐县|克拉玛依市,市辖区,独山子区,克拉玛依区,白碱滩区,乌尔禾区|吐鲁番地区,吐鲁番市,鄯善县,托克逊县|哈密地区,哈密市,巴里坤哈萨克自治县,伊吾县|昌吉回族自治州,昌吉市,阜康市,呼图壁县,玛纳斯县,奇台县,吉木萨尔县,木垒哈萨克自治县|博尔塔拉蒙古自治州,博乐市,精河县,温泉县|巴音郭楞蒙古自治州,库尔勒市,轮台县,尉犁县,若羌县,且末县,焉耆回族自治县,和静县,和硕县,博湖县|阿克苏地区,阿克苏市,温宿县,库车县,沙雅县,新和县,拜城县,乌什县,阿瓦提县,柯坪县|克孜勒苏柯尔克孜自治州,阿图什市,阿克陶县,阿合奇县,乌恰县|喀什地区,喀什市,疏附县,疏勒县,英吉沙县,泽普县,莎车县,叶城县,麦盖提县,岳普湖县,伽师县,巴楚县,塔什库尔干塔吉克自治县|和田地区,和田市,和田县,墨玉县,皮山县,洛浦县,策勒县,于田县,民丰县|伊犁哈萨克自治州,伊宁市,奎屯市,伊宁县,察布查尔锡伯自治县,霍城县,巩留县,新源县,昭苏县,特克斯县,尼勒克县|塔城地区,塔城市,乌苏市,额敏县,沙湾县,托里县,裕民县,和布克赛尔蒙古自治县|阿勒泰地区,阿勒泰市,布尔津县,富蕴县,福海县,哈巴河县,青河县,吉木乃县|自治区直辖县级行政区划,石河子市,阿拉尔市,图木舒克市,五家渠市#香港特别行政区$香港,香港特别行政区#澳门特别行政区$澳门,澳门特别行政区#台湾省$台北市,中正区,大同区,中山区,松山区,大安区,万华区,信义区,士林区,北投区,内湖区,南港区,文山区|高雄市,新兴区,前金区,芩雅区,盐埕区,鼓山区,旗津区,前镇区,三民区,左营区,楠梓区,小港区|基隆市,仁爱区,信义区,中正区,中山区,安乐区,暖暖区,七堵区|台中市,中区,东区,南区,西区,北区,北屯区,西屯区,南屯区|台南市,中西区,东区,南区,北区,安平区,安南区|新竹市,东区,北区,香山区|嘉义市,东区,西区|县,台北县(板桥市),宜兰县(宜兰市),新竹县(竹北市),桃园县(桃园市),苗栗县(苗栗市),台中县(丰原市),彰化县(彰化市),南投县(南投市),嘉义县(太保市),云林县(斗六市),台南县(新营市),高雄县(凤山市),屏东县(屏东市),台东县(台东市),花莲县(花莲市),澎湖县(马公市)#其它$亚洲,阿富汗,巴林,孟加拉国,不丹,文莱,缅甸,塞浦路斯,印度,印度尼西亚,伊朗,伊拉克,日本,约旦,朝鲜,科威特,老挝,马尔代夫,黎巴嫩,马来西亚,以色列,蒙古,尼泊尔,阿曼,巴基斯坦,巴勒斯坦,菲律宾,沙特阿拉伯,新加坡,斯里兰卡,叙利亚,泰国,柬埔寨,土耳其,阿联酋,越南,也门,韩国,中国,中国香港,中国澳门,中国台湾|非洲,阿尔及利亚,安哥拉,厄里特里亚,法罗群鸟,加那利群岛(西)(拉斯帕尔马斯),贝宁,博茨瓦纳,布基纳法索,布隆迪,喀麦隆,加那利群岛(西)(圣克鲁斯),佛得角,中非,乍得,科摩罗,刚果,吉布提,埃及,埃塞俄比亚,赤道几内亚,加蓬,冈比亚,加纳,几内亚,南非,几内亚比绍,科特迪瓦,肯尼亚,莱索托,利比里亚,利比亚,马达加斯加,马拉维,马里,毛里塔尼亚,毛里求斯,摩洛哥,莫桑比克,尼日尔,尼日利亚,留尼旺岛,卢旺达,塞内加尔,塞舌尔,塞拉利昂,索马里,苏丹,斯威士兰,坦桑尼亚,圣赤勒拿,多哥,突尼斯,乌干达,扎伊尔,赞比亚,津巴布韦,纳米比亚,迪戈加西亚,桑给巴尔,马约特岛,圣多美和普林西比|欧洲,阿尔巴尼亚,安道尔,奥地利,比利时,保加利亚,捷克,丹麦,芬兰,法国,德国,直布罗陀(英),希腊,匈牙利,冰岛,爱尔兰,意大利,列支敦士登,斯洛伐克,卢森堡,马耳他,摩纳哥,荷兰,挪威,波兰,葡萄牙,马其顿,罗马尼亚,南斯拉夫,圣马力诺,西班牙,瑞典,瑞士,英国,科罗地亚,斯洛文尼亚,梵蒂冈,波斯尼亚和塞哥维那,俄罗斯联邦,亚美尼亚共和国,白俄罗斯共和国,格鲁吉亚共和国,哈萨克斯坦共和国,吉尔吉斯坦共和国,乌兹别克斯坦共和国,塔吉克斯坦共和国,土库曼斯坦共和国,乌克兰,立陶宛,拉脱维亚,爱沙尼亚,摩尔多瓦,阿塞拜疆|美洲,安圭拉岛,安提瓜和巴布达,阿根廷,阿鲁巴岛,阿森松,巴哈马,巴巴多斯,伯利兹,百慕大群岛,玻利维亚,巴西,加拿大,开曼群岛,智利,哥伦比亚,多米尼加联邦,哥斯达黎加,古巴,多米尼加共和国,厄瓜多尔,萨尔瓦多,法属圭亚那,格林纳达,危地马拉,圭亚那,海地,洪都拉斯,牙买加,马提尼克(法),墨西哥,蒙特塞拉特岛,荷属安的列斯群岛,尼加拉瓜,巴拿马,巴拉圭,秘鲁,波多黎哥,圣皮埃尔岛密克隆岛(法),圣克里斯托弗和尼维斯,圣卢西亚,福克兰群岛,维尔京群岛(英),圣文森特岛(英),维尔京群岛(美),苏里南,特立尼达和多巴哥,乌拉圭,美国,委内瑞拉,格陵兰岛,特克斯和凯科斯群岛,瓜多罗普|大洋洲,澳大利亚,科克群岛,斐济,法属波里尼西亚、塔希提,瓦努阿图,关岛,基里巴斯,马里亚纳群岛,中途岛,瑙鲁,新咯里多尼亚群岛,新西兰,巴布亚新几内亚,东萨摩亚,西萨摩亚,所罗门群岛,汤加,对诞岛,威克岛,科科斯岛,夏威夷,诺福克岛,帕劳,纽埃岛,图瓦卢,托克鲁,密克罗尼西亚,马绍尔群岛,瓦里斯加富士那群岛";!function(e,t){for(SPT="省份",SCT="城市",SAT="地区",ShowT=1,ShowT&&(PCAD1=SPT+"$"+SCT+","+SAT+"#"+PCAD),PCAArea=[],PCAP=[],PCAC=[],PCAA=[],PCAN=PCAD1.split("#"),i=0;i<PCAN.length;i++){for(PCAA[i]=[],TArea=PCAN[i].split("$")[1].split("|"),j=0;j<TArea.length;j++)PCAA[i][j]=TArea[j].split(","),1==PCAA[i][j].length&&(PCAA[i][j][1]=SAT),TArea[j]=TArea[j].split(",")[0];PCAArea[i]=PCAN[i].split("$")[0]+","+TArea.join(","),PCAP[i]=PCAArea[i].split(",")[0],PCAC[i]=PCAArea[i].split(",")}function o(){this.SelP=document.getElementById(arguments[0]),this.SelC=document.getElementById(arguments[1]),this.SelA=document.getElementById(arguments[2]),this.DefP=this.SelA?arguments[3]:arguments[2],this.DefC=this.SelA?arguments[4]:arguments[3],this.DefA=this.SelA?arguments[5]:arguments[4],this.SelP.PCA=this,this.SelC.PCA=this,this.SelP.onchange=function(){o.SetC(this.PCA)},this.SelA&&(this.SelC.onchange=function(){o.SetA(this.PCA)}),o.SetP(this)}o.SetP=function(e){for(i=0;i<PCAP.length;i++)PCAPT=PCAPV=PCAP[i],PCAPT==SPT&&(PCAPV=""),e.SelP.options.add(new Option(PCAPT,PCAPV)),e.DefP==PCAPV&&(e.SelP[i].selected=!0);o.SetC(e)},o.SetC=function(e){for(PI=e.SelP.selectedIndex,e.SelC.length=0,i=1;i<PCAC[PI].length;i++)PCACT=PCACV=PCAC[PI][i],PCACT==SCT&&(PCACV=""),e.SelC.options.add(new Option(PCACT,PCACV)),e.DefC==PCACV&&(e.SelC[i-1].selected=!0);e.SelA&&o.SetA(e)},o.SetA=function(e){for(PI=e.SelP.selectedIndex,CI=e.SelC.selectedIndex,e.SelA.length=0,i=1;i<PCAA[PI][CI].length;i++)PCAAT=PCAAV=PCAA[PI][CI][i],PCAAT==SAT&&(PCAAV=""),e.SelA.options.add(new Option(PCAAT,PCAAV)),e.DefA==PCAAV&&(e.SelA[i-1].selected=!0)},e.pcas=o}(window),function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))&&"object"==("undefined"==typeof module?"undefined":_typeof2(module))?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))?exports.agGrid=t():e.agGrid=t()}(window,(function(){return function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==_typeof2(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=244)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=function(){function e(e,t){if(this.beanWrappers={},this.registeredModules=[],this.componentsMappedByName={},this.destroyed=!1,e&&e.beans){this.contextParams=e,this.registeredModules=e.registeredModules,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return i._.mapObject(this.beanWrappers,(function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.theClass},e.prototype.createComponentFromElement=function(e,t){var o=e.nodeName;if(this.componentsMappedByName&&this.componentsMappedByName[o]){var i=new this.componentsMappedByName[o];return this.wireBean(i,t),i}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),i._.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beans.forEach(this.createBeanWrapper.bind(this)),this.contextParams.overrideBeans&&this.contextParams.overrideBeans.forEach(this.createBeanWrapper.bind(this)),i._.iterateObject(this.beanWrappers,(function(t,o){var i;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(i=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var n,r,s=e.getBeansForParameters(i,o.bean.name),a=(n=o.bean,r=[null].concat(s),new(n.bind.apply(n,r)));o.beanInstance=a,e.logger.log("bean "+e.getBeanName(a)+" created")}))},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o;return o=e.prototype.constructor?e.prototype.constructor.name:""+e,void console.error("context item "+o+" is not a bean")}var i={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=i},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,i){var n=o.agClassAttributes;n&&n.forEach((function(o){var n=t.lookupBeanInstance(i,o.beanName,o.optional);e[o.attributeName]=n}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,n){i._.iterateObject(o.autowireMethods,(function(o,i){if("agConstructor"!==o){var r=t.getBeansForParameters(i,n);e[o].apply(e,r)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var i=o.constructor;i.hasOwnProperty("__agBeanMetaData")&&t(i.__agBeanMetaData,this.getBeanName(i)),o=Object.getPrototypeOf(o)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var o=this,n=[];return e&&i._.iterateObject(e,(function(e,i){var r=o.lookupBeanInstance(t,i);n[Number(e)]=r})),n},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.seed&&this.contextParams.seed.hasOwnProperty(t))return this.contextParams.seed[t];var i=this.beanWrappers[t];return i?i.beanInstance:(o||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var o=this;e.forEach((function(e){o.forEachMetaDataInHierarchy(e,(function(o){var i=o[t];i&&i.forEach((function(t){return e[t]()}))}))}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.getEnterpriseDefaultComponents=function(){return this.contextParams.enterpriseDefaultComponents},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.seed=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.isModuleRegistered=function(e){return-1!==this.registeredModules.indexOf(e)},e}();function r(e,t,o,i,n,r){if(null!==t)if("number"!=typeof r){var a=s(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:n,beanName:t,optional:o})}else console.error("ag-Grid: Autowired should be on an attribute");else console.error("ag-Grid: Autowired name should not be null")}function s(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}t.Context=n,t.PreConstruct=function(e,t,o){var i=s(e.constructor);i.postConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)},t.PostConstruct=function(e,t,o){var i=s(e.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)},t.PreDestroy=function(e,t,o){var i=s(e.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)},t.Bean=function(e){return function(t){s(t).beanName=e}},t.Autowired=function(e){return function(t,o,i){r(t,e,!1,0,o,null)}},t.Optional=function(e){return function(t,o,i){r(t,e,!0,0,o,null)}},t.Qualifier=function(e){return function(t,o,i){var n,r="function"==typeof t?t:t.constructor;if("number"==typeof i){var a=void 0;o?(n=s(r),a=o):(n=s(r),a="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[a]||(n.autowireMethods[a]={}),n.autowireMethods[a][i]=e}}}},function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var i=void 0===e?{}:e;i.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,i.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,i.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,i.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,i.Node="undefined"==typeof Node?{}:Node,i.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var n=o(57);t.ColumnFactory=n.ColumnFactory;var r=o(5);t.ColumnController=r.ColumnController;var s=o(193);t.ColumnKeyCreator=s.ColumnKeyCreator;var a=o(44);t.ColumnUtils=a.ColumnUtils;var l=o(84);t.DisplayedGroupCreator=l.DisplayedGroupCreator;var p=o(147);t.GroupInstanceIdCreator=p.GroupInstanceIdCreator;var u=o(122);t.ComponentUtil=u.ComponentUtil;var c=o(191);t.ColDefUtil=c.ColDefUtil;var d=o(130);t.UserComponentRegistry=d.UserComponentRegistry;var h=o(19);t.UserComponentFactory=h.UserComponentFactory;var f=o(265);t.initialiseAgGridWithAngular1=f.initialiseAgGridWithAngular1;var g=o(277);t.initialiseAgGridWithWebComponents=g.initialiseAgGridWithWebComponents;var y=o(15);t.BeanStub=y.BeanStub;var m=o(0);t.Context=m.Context,t.Autowired=m.Autowired,t.PostConstruct=m.PostConstruct,t.PreConstruct=m.PreConstruct,t.Optional=m.Optional,t.Bean=m.Bean,t.Qualifier=m.Qualifier,t.PreDestroy=m.PreDestroy;var v=o(11);t.QuerySelector=v.QuerySelector,t.Listener=v.Listener,t.RefSelector=v.RefSelector;var C=o(18);t.DragAndDropService=C.DragAndDropService,t.DragSourceType=C.DragSourceType,t.HDirection=C.HDirection,t.VDirection=C.VDirection;var _=o(37);t.DragService=_.DragService;var w=o(12);t.Column=w.Column;var b=o(36);t.ColumnGroup=b.ColumnGroup;var E=o(45);t.OriginalColumnGroup=E.OriginalColumnGroup;var R=o(22);t.RowNode=R.RowNode;var S=o(17);t.FilterManager=S.FilterManager;var P=o(88);t.ProvidedFilter=P.ProvidedFilter;var O=o(33);t.SimpleFilter=O.SimpleFilter;var T=o(133);t.ScalerFilter=T.ScalerFilter;var A=o(137);t.NumberFilter=A.NumberFilter;var D=o(138);t.TextFilter=D.TextFilter;var x=o(132);t.DateFilter=x.DateFilter;var F=o(152);t.GridPanel=F.GridPanel;var M=o(66);t.ScrollVisibleService=M.ScrollVisibleService;var N=o(63);t.MouseEventService=N.MouseEventService;var L=o(198);t.BodyDropPivotTarget=L.BodyDropPivotTarget;var I=o(196);t.BodyDropTarget=I.BodyDropTarget;var k=o(144);t.CssClassApplier=k.CssClassApplier;var G=o(194);t.HeaderContainer=G.HeaderContainer;var W=o(151);t.HeaderRootComp=W.HeaderRootComp;var H=o(195);t.HeaderRowComp=H.HeaderRowComp;var V=o(91);t.HorizontalResizeService=V.HorizontalResizeService;var j=o(197);t.MoveColumnController=j.MoveColumnController;var B=o(203);t.StandardMenuFactory=B.StandardMenuFactory;var z=o(278);t.TabbedLayout=z.TabbedLayout;var U=o(279);t.VerticalStack=U.VerticalStack;var Y=o(280);t.simpleHttpRequest=Y.simpleHttpRequest;var $=o(94);t.ResizeObserverService=$.ResizeObserverService;var q=o(184);t.LargeTextCellEditor=q.LargeTextCellEditor;var K=o(126);t.PopupEditorWrapper=K.PopupEditorWrapper;var X=o(183);t.PopupSelectCellEditor=X.PopupSelectCellEditor;var Q=o(182);t.PopupTextCellEditor=Q.PopupTextCellEditor;var Z=o(136);t.SelectCellEditor=Z.SelectCellEditor;var J=o(131);t.TextCellEditor=J.TextCellEditor;var ee=o(135);t.AnimateShowChangeCellRenderer=ee.AnimateShowChangeCellRenderer;var te=o(129);t.AnimateSlideCellRenderer=te.AnimateSlideCellRenderer;var oe=o(134);t.GroupCellRenderer=oe.GroupCellRenderer;var ie=o(92);t.SetLeftFeature=ie.SetLeftFeature;var ne=o(58);t.AutoWidthCalculator=ne.AutoWidthCalculator;var re=o(87);t.CellRendererFactory=re.CellRendererFactory;var se=o(125);t.CheckboxSelectionComponent=se.CheckboxSelectionComponent;var ae=o(59);t.CellComp=ae.CellComp;var le=o(124);t.RowComp=le.RowComp;var pe=o(20);t.RowRenderer=pe.RowRenderer;var ue=o(62);t.ValueFormatterService=ue.ValueFormatterService;var ce=o(204);t.FilterStage=ce.FilterStage;var de=o(208);t.FlattenStage=de.FlattenStage;var he=o(206);t.SortStage=he.SortStage;var fe=o(30);t.PinnedRowModel=fe.PinnedRowModel;var ge=o(211);t.ClientSideRowModel=ge.ClientSideRowModel;var ye=o(85);t.ChangedPath=ye.ChangedPath;var me=o(212);t.ClientSideNodeManager=me.ClientSideNodeManager;var ve=o(209);t.InfiniteRowModel=ve.InfiniteRowModel;var Ce=o(95);t.RowNodeBlock=Ce.RowNodeBlock;var _e=o(210);t.RowNodeBlockLoader=_e.RowNodeBlockLoader;var we=o(31);t.PaginationProxy=we.PaginationProxy;var be=o(154);t.RowNodeCache=be.RowNodeCache;var Ee=o(141);t.StylingService=Ee.StylingService;var Re=o(39);t.AgAbstractField=Re.AgAbstractField;var Se=o(49);t.AgCheckbox=Se.AgCheckbox;var Pe=o(155);t.AgRadioButton=Pe.AgRadioButton;var Oe=o(222);t.AgToggleButton=Oe.AgToggleButton;var Te=o(157);t.AgInputTextField=Te.AgInputTextField;var Ae=o(217);t.AgInputTextArea=Ae.AgInputTextArea;var De=o(97);t.AgInputNumberField=De.AgInputNumberField;var xe=o(158);t.AgInputRange=xe.AgInputRange;var Fe=o(220);t.AgSelect=Fe.AgSelect;var Me=o(218);t.AgSlider=Me.AgSlider;var Ne=o(221);t.AgAngleSelect=Ne.AgAngleSelect;var Le=o(219);t.AgColorPicker=Le.AgColorPicker;var Ie=o(216);t.AgGroupComponent=Ie.AgGroupComponent;var ke=o(96);t.AgDialog=ke.AgDialog;var Ge=o(156);t.AgPanel=Ge.AgPanel;var We=o(281);t.MessageBox=We.MessageBox;var He=o(8);t.Component=He.Component;var Ve=o(47);t.PopupComponent=Ve.PopupComponent;var je=o(32);t.PopupService=je.PopupService;var Be=o(61);t.TouchListener=Be.TouchListener;var ze=o(179);t.CellRangeType=ze.CellRangeType;var Ue=o(123);t.CsvCreator=Ue.CsvCreator,t.BaseCreator=Ue.BaseCreator;var Ye=o(148);t.Downloader=Ye.Downloader;var $e=o(214);t.XmlFactory=$e.XmlFactory;var qe=o(83);t.BaseGridSerializingSession=qe.BaseGridSerializingSession,t.GridSerializer=qe.GridSerializer;var Ke=o(83);t.RowType=Ke.RowType;var Xe=o(215);t.ZipContainer=Xe.ZipContainer;var Qe=o(213);t.VanillaFrameworkOverrides=Qe.VanillaFrameworkOverrides;var Ze=o(127);t.CellNavigationService=Ze.CellNavigationService;var Je=o(93);t.AlignedGridsService=Je.AlignedGridsService;var et=o(7);t.Constants=et.Constants;var tt=o(150);t.Grid=tt.Grid;var ot=o(9);t.GridApi=ot.GridApi;var it=o(35);t.Events=it.Events;var nt=o(26);t.FocusedCellController=nt.FocusedCellController;var rt=o(282);t.defaultGroupComparator=rt.defaultGroupComparator;var st=o(3);t.GridOptionsWrapper=st.GridOptionsWrapper;var at=o(4);t.EventService=at.EventService;var lt=o(153);t.SelectableService=lt.SelectableService;var pt=o(202);t.GridCore=pt.GridCore;var ut=o(14);t.Logger=ut.Logger;var ct=o(23);t.SelectionController=ct.SelectionController;var dt=o(27);t.SortController=dt.SortController;var ht=o(128);t.TemplateService=ht.TemplateService;var ft=o(2);t.Color=ft.Color,t.Utils=ft.Utils,t.NumberSequence=ft.NumberSequence,t._=ft._,t.Promise=ft.Promise;var gt=o(24);t.ValueService=gt.ValueService;var yt=o(25);t.ExpressionService=yt.ExpressionService;var mt=o(14);t.LoggerFactory=mt.LoggerFactory;var vt=o(143);t.CellPositionUtils=vt.CellPositionUtils;var Ct=o(90);t.RowPositionUtils=Ct.RowPositionUtils;var _t=o(10);t.ColumnApi=_t.ColumnApi;var wt=o(283);t.BaseComponentWrapper=wt.BaseComponentWrapper;var bt=o(60);t.Environment=bt.Environment;var Et=o(142);t.TooltipManager=Et.TooltipManager;var Rt=o(284);t.ChartType=Rt.ChartType}).call(this,o(246))},function(e,t,o){"use strict";function i(e){for(var o in e)t.hasOwnProperty(o)||(t[o]=e[o])}Object.defineProperty(t,"__esModule",{value:!0}),i(o(247)),i(o(248)),i(o(249)),i(o(250))},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(4),l=o(7),p=o(122),u=o(9),c=o(0),d=o(10),h=o(5),f=o(60),g=o(178),y=o(191),m=o(35),v=o(149),C=o(192);function _(e){return!0===e||"true"===e}var w=function(){function e(){this.propertyEventService=new a.EventService,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var t;return t=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null},e.prototype.init=function(){!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var e=this.useAsyncEvents();this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: groupSelectsChildren does not work wth suppressParentsInRowNodes, this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.addEventListener(t.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this))},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var o=Object.getOwnPropertyNames(t),i=y.ColDefUtil.ALL_PROPERTIES.concat(y.ColDefUtil.FRAMEWORK_PROPERTIES);e.checkProperties(o,i,i,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=g.PropertyKeys.ALL_PROPERTIES.concat(g.PropertyKeys.FRAMEWORK_PROPERTIES);Object.keys(m.Events).forEach((function(e){return t.push(p.ComponentUtil.getCallbackForEvent(m.Events[e]))}));var o=t.concat("api","columnApi");this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,o,i,n){var r=s._.fuzzyCheckStrings(e,t,o),a=Object.keys(r);a.forEach((function(e){var t=r[e];console.warn("ag-grid: invalid "+i+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(","))})),a.length>0&&console.warn("ag-grid: to see all the valid "+i+" properties please check: "+n)},e.prototype.getDomData=function(e,t){var o=e[this.domDataKey];if(o)return o[t]},e.prototype.setDomData=function(e,t,o){var i=e[this.domDataKey];s._.missing(i)&&(i={},e[this.domDataKey]=i),i[t]=o},e.prototype.isEnterprise=function(){return this.enterprise},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return _(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return _(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return _(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return _(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===l.Constants.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===l.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===l.Constants.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return s._.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===l.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===l.Constants.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return _(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return _(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return _(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isShowToolPanel=function(){return _(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return _(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return _(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return _(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.useAsyncEvents=function(){return!_(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return _(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=_(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return _(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return _(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return _(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return _(this.gridOptions.groupMultiAutoColumn)||_(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return _(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return _(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return _(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return _(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return _(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return _(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return _(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return _(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return _(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return _(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return _(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return _(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return _(this.gridOptions.suppressRowDrag)},e.prototype.getDomLayout=function(){var e=this,t=this.gridOptions.domLayout;return t===l.Constants.DOM_LAYOUT_PRINT||t===l.Constants.DOM_LAYOUT_AUTO_HEIGHT||t===l.Constants.DOM_LAYOUT_NORMAL?t:(null==t||s._.doOnce((function(){return console.warn("ag-Grid: "+e.gridOptions.domLayout+" is not valid for DOM Layout, valid values are "+l.Constants.DOM_LAYOUT_NORMAL+", "+l.Constants.DOM_LAYOUT_AUTO_HEIGHT+" and "+l.Constants.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),l.Constants.DOM_LAYOUT_NORMAL)},e.prototype.isSuppressHorizontalScroll=function(){return _(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return _(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return _(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return _(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return _(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return _(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return _(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return _(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return _(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return _(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return _(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return _(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return _(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return _(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return _(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return _(this.gridOptions.enterMovesDown)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getCreateChartContainerFunc=function(){return this.gridOptions.createChartContainer},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return _(this.gridOptions.embedFullWidthRows)||_(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isDeltaRowDataMode=function(){return _(this.gridOptions.deltaRowDataMode)},e.prototype.isDeltaColumnMode=function(){return _(this.gridOptions.deltaColumnMode)},e.prototype.isEnsureDomOrder=function(){return _(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!(!_(this.gridOptions.enableCharts)||!this.context.isModuleRegistered("chartsModule")&&(s._.doOnce((function(){console.warn("ag-grid: Charts is enabled but the Charts Module has not been included.")}),"ChartsModuleCheck"),1))},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return _(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return _(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return _(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.isPaginateChildRows=function(){return!!(this.isGroupSuppressRow()||this.isGroupRemoveSingleChildren()||this.isGroupRemoveLowestSingleChildren())||_(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return _(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return _(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(e){return!e&&_(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return _(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return _(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return _(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return _(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return _(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return _(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return _(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return _(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return _(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return _(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return _(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return _(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return _(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return _(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return _(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return _(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return _(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return _(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return _(this.gridOptions.suppressClipboardPaste)},e.prototype.isPagination=function(){return _(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return _(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getBatchUpdateWaitMillis=function(){return s._.exists(this.gridOptions.batchUpdateWaitMillis)?this.gridOptions.batchUpdateWaitMillis:l.Constants.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return _(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&_(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return _(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return _(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return _(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return this.enterprise&&_(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return _(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return _(this.gridOptions.enableFillHandle)},e.prototype.isSuppressMultiRangeSelection=function(){return _(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return _(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return _(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){var e=this,t=_(this.gridOptions.masterDetail);return s._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: Master Detail is an Enterprise feature of ag-Grid.")}),"MasterDetailEnterpriseCheck"),t&&this.enterprise},e.prototype.isKeepDetailRows=function(){return _(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){return this.gridOptions.keepDetailRowsCount>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return _(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return _(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return _(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isFunctionsReadOnly=function(){return _(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return _(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return _(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return _(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return _(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return _(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return _(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getChartToolbarItemsFunc=function(){return this.gridOptions.getChartToolbarItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){var e=this,t=_(this.gridOptions.treeData);return s._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: TreeData is an Enterprise feature of ag-Grid.")}),"TreeDataEnterpriseCheck"),t},e.prototype.isValueCache=function(){return _(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return _(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return _(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return _(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return 5,(e=this.gridOptions.viewportRowModelPageSize)>0?e:5;var e},e.prototype.getViewportRowModelBufferSize=function(){return 5,(e=this.gridOptions.viewportRowModelBufferSize)>=0?e:5;var e},e.prototype.isServerSideSortingAlwaysResets=function(){return _(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getProcessChartOptionsFunc=function(){return this.gridOptions.processChartOptions},e.prototype.getClipboardDeliminator=function(){return s._.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var o=this.gridOptions,i=o[e];if(i!==t){o[e]=t;var n={type:e,currentValue:t,previousValue:i};this.propertyEventService.dispatchEvent(n)}},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===l.Constants.DOM_LAYOUT_AUTO_HEIGHT,o=e===l.Constants.DOM_LAYOUT_PRINT,i=e===l.Constants.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){s._.addOrRemoveCssClass(e,"ag-layout-auto-height",t),s._.addOrRemoveCssClass(e,"ag-layout-normal",i),s._.addOrRemoveCssClass(e,"ag-layout-print",o)}))},e.prototype.addEventListener=function(e,o){t.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,o)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&s._.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&s._.exists(e)?e:document},e.prototype.getMinColWidth=function(){return this.gridOptions.minColWidth&&this.gridOptions.minColWidth>t.MIN_COL_WIDTH?this.gridOptions.minColWidth:t.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(s._.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=l.Constants.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0;this.scrollWidth=e?this.gridOptions.scrollbarWidth:s._.getScrollbarWidth()}return this.scrollWidth},e.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var o={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},i={};Object.keys(o).forEach((function(t){var n=o[t],r=e.gridOptions[t];if(void 0!==r){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+n),i[n]=r}})),Object.keys(i).length>0&&!s._.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=C.SideBarDefParser.parse(t.sideBar));var n=this.gridOptions.sideBar;if(Object.keys(i).length>0&&n&&n.toolPanels){var r=n.toolPanels.filter((function(e){return"columns"===e.id}));1===r.length&&s._.mergeDeep(r[0],{componentParams:i})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.deprecatedEmbedFullWidthRows&&console.warn("ag-Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing."),t.doesDataFlower&&console.warn("ag-Grid: since v21.1, doesDataFlower is deprecated. Master/Detail is the new way for showing child data for a row and was introduced over a year ago. Please migrate your code to use master/detail instead.")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&s._.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(s._.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),s._.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,o){var i=e.gridOptions.localeText;return i&&i[t]?i[t]:o}},e.prototype.globalEventHandler=function(e,t){var o=p.ComponentUtil.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||s._.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var o={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context};return{height:this.gridOptions.getRowHeight(o),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var i=this.getDefaultRowHeight(),n=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:i,r=Math.min(i,n);if(this.columnController.isAutoRowHeightActive()){if(t)return{height:n,estimated:!0};var s=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(s,r),estimated:!1}}return{height:n,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getVirtualItemHeight=function(){return this.specialForNewMaterial(20,"virtualItemHeight")},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.specialForNewMaterial=function(e,t){var o=this.environment.getTheme().theme;return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,t):e},e.prototype.getDefaultRowHeight=function(){return this.specialForNewMaterial(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",i([c.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([c.Autowired("columnController"),n("design:type",h.ColumnController)],e.prototype,"columnController",void 0),i([c.Autowired("eventService"),n("design:type",a.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("enterprise"),n("design:type",Boolean)],e.prototype,"enterprise",void 0),i([c.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([c.Autowired("columnApi"),n("design:type",d.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("environment"),n("design:type",f.Environment)],e.prototype,"environment",void 0),i([c.Autowired("autoHeightCalculator"),n("design:type",v.AutoHeightCalculator)],e.prototype,"autoHeightCalculator",void 0),i([c.Autowired("context"),n("design:type",c.Context)],e.prototype,"context",void 0),i([r(0,c.Qualifier("gridApi")),r(1,c.Qualifier("columnApi")),n("design:type",Function),n("design:paramtypes",[u.GridApi,d.ColumnApi]),n("design:returntype",void 0)],e.prototype,"agWire",null),i([c.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),i([c.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),t=i([c.Bean("gridOptionsWrapper")],e)}();t.GridOptionsWrapper=w},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(14),a=o(0),l=o(0),p=o(3),u=o(2),c=function(){function e(){this.allSyncListeners={},this.allAsyncListeners={},this.globalSyncListeners=[],this.globalAsyncListeners=[],this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}var t;return t=e,e.prototype.setBeans=function(e,t,o){if(void 0===o&&(o=null),this.logger=e.create("EventService"),o){var i=t.useAsyncEvents();this.addGlobalListener(o,i)}},e.prototype.getListenerList=function(e,t){var o=t?this.allAsyncListeners:this.allSyncListeners,i=o[e];return i||(i=[],o[e]=i),i},e.prototype.addEventListener=function(e,t,o){void 0===o&&(o=!1);var i=this.getListenerList(e,o);i.indexOf(t)<0&&i.push(t)},e.prototype.addModalPriorityEventListener=function(e,o,i){void 0===i&&(i=!1),this.addEventListener(e+t.PRIORITY,o,i)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),t?this.globalAsyncListeners.push(e):this.globalSyncListeners.push(e)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var i=this.getListenerList(e,o);u._.removeFromArray(i,t)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),t?u._.removeFromArray(this.globalAsyncListeners,e):u._.removeFromArray(this.globalSyncListeners,e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,o){var i=this,n=o?this.globalAsyncListeners:this.globalSyncListeners,r=e.type,s=this.getListenerList(r+t.PRIORITY,o);u._.forEachSnapshotFirst(s,(function(t){o?i.dispatchAsync((function(){return t(e)})):t(e)}));var a=this.getListenerList(r,o);u._.forEachSnapshotFirst(a,(function(t){o?i.dispatchAsync((function(){return t(e)})):t(e)})),u._.forEachSnapshotFirst(n,(function(t){o?i.dispatchAsync((function(){return t(r,e)})):t(r,e)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},e.PRIORITY="-P1",i([r(0,l.Qualifier("loggerFactory")),r(1,l.Qualifier("gridOptionsWrapper")),r(2,l.Qualifier("globalEventListener")),n("design:type",Function),n("design:paramtypes",[s.LoggerFactory,p.GridOptionsWrapper,Function]),n("design:returntype",void 0)],e.prototype,"setBeans",null),t=i([a.Bean("eventService")],e)}();t.EventService=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(36),a=o(12),l=o(3),p=o(25),u=o(57),c=o(84),d=o(58),h=o(4),f=o(44),g=o(14),y=o(6),m=o(45),v=o(147),C=o(0),_=o(86),w=o(189),b=o(46),E=o(9),R=o(10),S=o(2),P=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0}return e.prototype.init=function(){var e=this.gridOptionsWrapper.isPivotMode();this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation(),this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,n=this.columnFactory.createColumnTree(e,!0,i);this.primaryColumnTree=n.columnTree,this.primaryHeaderRowCount=n.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,i),this.extractPivotColumns(t,i),this.createValueColumns(t,i),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isDeltaColumnMode()&&o&&this.resetColumnState(!0,t);var r={type:y.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r);var s={type:y.Events.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,o=[];t&&S._.exists(t);)o.push(t),t=this.getDisplayedColAfter(t);return o},e.prototype.checkDisplayedVirtualColumns=function(){if(S._.exists(this.displayedCenterColumns)){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");if(this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")){var t={type:y.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var o={type:y.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent)return null;var o=this.getPrimaryColumn(t),i=null;return this.secondaryColumns&&this.secondaryColumns.forEach((function(t){var n=t.getColDef().pivotKeys,r=t.getColDef().pivotValueColumn;S._.compareArrays(n,e)&&r===o&&(i=t)})),i},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,o=this.displayedRightColumns?S._.last(this.displayedRightColumns):null):(t=this.displayedLeftColumns?S._.last(this.displayedLeftColumns):null,o=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(i){i.setLastLeftPinned(i===t,e),i.setFirstRightPinned(i===o,e)}))},e.prototype.autoSizeColumns=function(e,t){var o=this;void 0===t&&(t="api");for(var i=[],n=-1;0!==n;)n=0,this.actionOnGridColumns(e,(function(e){if(i.indexOf(e)>=0)return!1;var r=o.autoWidthCalculator.getPreferredWidthForColumn(e);if(r>0){var s=o.normaliseColumnWidth(e,r);e.setActualWidth(s,t),i.push(e),n++}return!0}),t);if(i.length>0){var r={type:y.Events.EVENT_COLUMN_RESIZED,columns:i,column:1===i.length?i[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"};this.eventService.dispatchEvent(r)}},e.prototype.autoSizeColumn=function(e,t){void 0===t&&(t="api"),e&&this.autoSizeColumns([e],t)},e.prototype.autoSizeAllColumns=function(e){void 0===e&&(e="api");var t=this.getAllDisplayedColumns();this.autoSizeColumns(t,e)},e.prototype.getColumnsFromTree=function(e){var t=[];return function e(o){for(var i=0;i<o.length;i++){var n=o[i];n instanceof a.Column?t.push(n):n instanceof m.OriginalColumnGroup&&e(n.getChildren())}}(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case a.Column.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,o,i){for(var n,r=[],s=null,a=function(a){var l,p=t[a],u=t.length-a,c=Math.min(p.getColSpan(e),u),d=[p];if(c>1){for(var h=c-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}o?(l=!1,d.forEach((function(e){o(e)&&(l=!0)}))):l=!0,l&&(0===r.length&&s&&i&&i(p)&&r.push(s),r.push(p)),s=p,n=a},l=0;l<t.length;l++)a(l),l=n;return r},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var o=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,o,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),o=e.getLeft()+e.getActualWidth(),i=this.viewportLeft-200,n=this.viewportRight+200;return!(t<i&&o<i||t>n&&o>n)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,o,i,n,r){var s=this;if(void 0===r&&(r="api"),e&&!S._.missingOrEmpty(e)){var a=!1;if(e.forEach((function(e){var n=s.getPrimaryColumn(e);if(n){if(o){if(t.indexOf(n)>=0)return;t.push(n)}else{if(t.indexOf(n)<0)return;S._.removeFromArray(t,n)}i(n),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var l={type:n,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,o))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),y.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,y.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e,o){o.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),y.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,o,i,n){var r=this;t.length=0,S._.exists(e)&&e.forEach((function(e){var o=r.getPrimaryColumn(e);o&&t.push(o)})),this.primaryColumns.forEach((function(e){var o=t.indexOf(e)>=0;i(o,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(n);var s={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,y.Events.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.prototype.setValueActive=function(e,t,o){if(e!==t.isValueActive()&&(t.setValueActive(e,o),e&&!t.getAggFunc())){var i=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(i)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),y.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),y.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},e.prototype.setColumnWidth=function(e,t,o,i,n){void 0===n&&(n="api");var r=this.getPrimaryOrGridColumn(e);if(r){var s=[];if(s.push({width:t,ratios:[1],columns:[r]}),"shift"===this.gridOptionsWrapper.getColResizeDefault()&&(o=!o),o){var a=this.getDisplayedColAfter(r);if(!a)return;var l=r.getActualWidth()-t,p=a.getActualWidth()+l;s.push({width:p,ratios:[1],columns:[a]})}this.resizeColumnSets(s,i,n)}},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,o=e.width,i=0,n=0,r=!0;return t.forEach((function(e){i+=e.getMinWidth(),e.getMaxWidth()>0?n+=e.getMaxWidth():r=!1})),o>=i&&(!r||o<=n)},e.prototype.resizeColumnSets=function(e,t,o){if(S._.every(e,this.checkMinAndMaxWidthsForSet.bind(this))){var i=[],n=[];e.forEach((function(e){var t=e.width,o=e.columns,r=e.ratios,s={},a={};o.forEach((function(e){return n.push(e)}));for(var l=!0,p=0,u=function(){if(++p>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";l=!1;var e=[],i=[],n=0,u=t;o.forEach((function(t,o){if(a[t.getId()])u-=s[t.getId()];else{e.push(t);var l=r[o];n+=l,i.push(l)}}));var c=1/n;e.forEach((function(o,i){var n;i===e.length-1?n=u:(n=Math.round(r[i]*t*c),u-=n),n<o.getMinWidth()?(n=o.getMinWidth(),a[o.getId()]=!0,l=!0):o.getMaxWidth()>0&&n>o.getMaxWidth()&&(n=o.getMaxWidth(),a[o.getId()]=!0,l=!0),s[o.getId()]=n}))};l&&"break"!==u(););o.forEach((function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t),i.push(e))}))}));var r=i.length>0;if(r&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),r||t){var s={type:y.Events.EVENT_COLUMN_RESIZED,columns:n,column:1===n.length?n[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(s)}}else if(t){var a=e&&e.length>0?e[0].columns:null,l={type:y.Events.EVENT_COLUMN_RESIZED,columns:a,column:a&&1===a.length?a[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(l)}},e.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){e.setAggFunc(t);var i={type:y.Events.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(i)}},e.prototype.moveRowGroupColumn=function(e,t,o){void 0===o&&(o="api");var i=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,i);var n={type:y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(n)},e.prototype.moveColumns=function(e,t,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("ag-Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var i=this.getGridColumns(e);if(this.doesMovePassRules(i,t)){S._.moveInArray(this.gridColumns,i,t),this.updateDisplayedColumns(o);var n={type:y.Events.EVENT_COLUMN_MOVED,columns:i,column:1===i.length?i[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(n),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var o=this.gridColumns.slice();return S._.moveInArray(o,e,t),!!this.doesMovePassMarryChildren(o)&&!!this.doesMovePassLockedPositions(o)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,o=!0;return e.forEach((function(e){e.getColDef().lockPosition?t&&(o=!1):t=!0})),o},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof m.OriginalColumnGroup){var i=o;if(i.getColGroupDef()&&i.getColGroupDef().marryChildren){var n=[];i.getLeafColumns().forEach((function(t){var o=e.indexOf(t);n.push(o)})),Math.max.apply(Math,n)-Math.min.apply(Math,n)>i.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},e.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var i=this.gridColumns[e];this.moveColumn(i,t,o)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case a.Column.PINNED_LEFT:return this.leftWidth;case a.Column.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var i={type:y.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getDisplayedLeftColumns();case a.Column.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return S._.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return S._.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},e.prototype.setColumnsVisible=function(e,t,o){var i=this;void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,o),!0)}),o,(function(){return{type:y.Events.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:i.gridApi,columnApi:i.columnApi,source:o}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},e.prototype.setColumnsPinned=function(e,t,o){var i,n=this;void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),i=!0===t||t===a.Column.PINNED_LEFT?a.Column.PINNED_LEFT:t===a.Column.PINNED_RIGHT?a.Column.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==i&&(e.setPinned(i),!0)}),o,(function(){return{type:y.Events.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:o}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,o,i){var n=this;if(!S._.missingOrEmpty(e)){var r=[];if(e.forEach((function(e){var o=n.getGridColumn(e);o&&!1!==t(o)&&r.push(o)})),0!==r.length&&(this.updateDisplayedColumns(o),S._.exists(i)&&i)){var s=i();s.columns=r,s.column=1===r.length?r[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],o=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var i=t.getParent();i.getOriginalColumnGroup().getLevel()!==o;)i=i.getParent();if(i!==e)return i}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&S._.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:i,width:e.getActualWidth(),pivotIndex:o,pinned:e.getPinned(),rowGroupIndex:t}},e.prototype.getColumnState=function(){if(S._.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,o){return t.indexOf(e.colId)-t.indexOf(o.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var o=this.getColumnsFromTree(this.primaryColumnTree),i=[],n=1e3,r=1e3;o&&o.forEach((function(e){var t=e.getColDef().rowGroupIndex,o=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};S._.missing(t)&&o&&(l.rowGroupIndex=n++),S._.missing(s)&&a&&(l.pivotIndex=r++),i.push(l)})),this.setColumnState(i,e,t)},e.prototype.setColumnState=function(e,t,o){var i=this;if(void 0===t&&(t=!1),void 0===o&&(o="api"),S._.missingOrEmpty(this.primaryColumns))return!1;var n=this.getColumnState();this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},p=[];if(e&&e.forEach((function(e){if(S._.exists(i.getAutoColumn(e.colId)))p.push(e);else{var t=i.getPrimaryColumn(e.colId);t?(i.syncColumnWithStateItem(t,e,a,l,o),S._.removeFromArray(r,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),r.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),p.forEach((function(e){var t=i.getAutoColumn(e.colId);i.syncColumnWithStateItem(t,e,a,l,o)})),e){var u=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return u.indexOf(e.getId())-u.indexOf(t.getId())}))}if(this.putFixedColumnsFirst(),this.updateDisplayedColumns(o),!t){var c={type:y.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(c)}return this.raiseColumnEvents(n,o),s},e.prototype.raiseColumnEvents=function(e,t){var o=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var i=this.getColumnState(),n=function(n,r,s){if(!S._.compareArrays(e.map(r).sort(),i.map(r).sort())){var a={type:n,columns:s,column:1===s.length?s[0]:null,api:o.gridApi,columnApi:o.columnApi,source:t};o.eventService.dispatchEvent(a)}},r=function(t){var i=[],n={};return e.forEach((function(e){n[e.colId]=e})),o.gridColumns.forEach((function(e){var o=n[e.getColId()];o&&!t(o,e)||i.push(e)})),i};n(y.Events.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns),n(y.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns),n(y.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns),this.raiseColumnPinnedEvent(r((function(e,t){return e.pinned!==t.getPinned()})),t);var s=r((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t),this.raiseColumnResizeEvent(r((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length>0){var o={type:y.Events.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length>0){var o={type:y.Events.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnResizeEvent=function(e,t){if(e.length>0){var o={type:y.Events.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnMovedEvent=function(e,t){for(var o=[],i=this.getColumnState(),n=function(t){var n=e[t],s=i[t];if(!n||s.hide)return"continue";if(n.colId!==s.colId){var a=S._.find(r.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));o.push(a)}},r=this,s=0;s<i.length;s++)n(s);if(o.length>0){var a={type:y.Events.EVENT_COLUMN_MOVED,columns:o,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(a)}},e.prototype.sortColumnListUsingIndexes=function(e,t,o){return e[t.getId()]-e[o.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,o,i,n){if(e){e.setVisible(!t.hide,n),e.setPinned(t.pinned);var r=this.gridOptionsWrapper.getMinColWidth();t.width&&r&&t.width>=r&&e.setActualWidth(t.width,n),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,n),this.valueColumns.push(e)):(S._.exists(t.aggFunc)&&console.warn("ag-Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it isintended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1,n)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,n),o[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,n),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,n),i[e.getId()]=t.pivotIndex):e.setPivotActive(!1,n)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach((function(e){var i=t(e);i&&o.push(i)})),o},e.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("ag-Grid: could not find column "+e),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&S._.exists(this.groupAutoColumns)&&!S._.missing(this.groupAutoColumns)?S._.find(this.groupAutoColumns,(function(o){return t.columnsMatch(o,e)})):null},e.prototype.columnsMatch=function(e,t){var o=e===t,i=e.getColDef()===t,n=e.getColId()==t;return o||i||n},e.prototype.getDisplayNameForColumn=function(e,t,o){if(void 0===o&&(o=!1),!e)return null;var i=this.getHeaderName(e.getColDef(),e,null,null,t);return o?this.wrapHeaderNameWithAggFunc(e,i):i},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,o){var i=t?t.getColGroupDef():null;return i?this.getHeaderName(i,null,e,t,o):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,o,i,n){var r=e.headerValueGetter;if(r){var s={colDef:e,column:t,columnGroup:o,originalColumnGroup:i,location:n,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof r?r(s):"string"==typeof r?this.expressionService.evaluate(r,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?S._.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,i=e.getColDef().pivotValueColumn,n=null;if(S._.exists(i))n=i?i.getAggFunc():null,o=!0;else{var r=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();r&&s?(n=e.getAggFunc(),o=!0):o=!1}if(o){var a="string"==typeof n?n:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof s.ColumnGroup)return e;var o=this.getAllDisplayedColumnGroups(),i="number"==typeof t,n=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof s.ColumnGroup){var r=o;(i?e===r.getGroupId()&&t===r.getInstanceId():e===r.getGroupId())&&(n=r)}})),n},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,o){return t.setValueActive(o,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,o){return t.setRowGroupActive(o,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},e.prototype.extractColumns=function(e,t,o,i,n){var r=this;t||(t=[]);var s=t.filter((function(e){return r.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return r.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));s.forEach((function(e){return o(e,!1)}));var p=[];return l.forEach((function(e){"number"==typeof i(e.getColDef())&&p.push(e)})),p.sort((function(e,t){var o=i(e.getColDef()),n=i(t.getColDef());return o===n?0:o<n?-1:1})),l.forEach((function(e){if(n(e.getColDef())){if(p.indexOf(e)>=0)return;p.push(e)}})),p.forEach((function(e){return o(e,!0)})),a.concat(p)},e.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,o){return t.setPivotActive(o,e)}),(function(e){return e.pivotIndex}),(function(e){return e.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof m.OriginalColumnGroup){var o={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(o)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof m.OriginalColumnGroup){var o=t;e.push({groupId:o.getGroupId(),open:o.isExpanded()})}})),e},e.prototype.setColumnGroupState=function(e,t){var o=this;void 0===t&&(t="api"),this.columnAnimationService.start();var i=[];e.forEach((function(e){var t=e.groupId,n=e.open,r=o.getOriginalColumnGroup(t);r&&r.isExpanded()!==n&&(o.logger.log("columnGroupOpened("+r.getGroupId()+","+n+")"),r.setExpanded(n),i.push(r))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),i.forEach((function(e){var t={type:y.Events.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,o){var i;void 0===o&&(o="api"),i=e instanceof m.OriginalColumnGroup?e.getId():e,this.setColumnGroupState([{groupId:i,open:t}],o)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof m.OriginalColumnGroup)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof m.OriginalColumnGroup){var i=o;i.getId()===e&&(t=i)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?S._.filter(this.gridColumns,(function(t){var o=e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0,i=e.valueColumns&&e.valueColumns.indexOf(t)>=0;return o||i})):S._.filter(this.gridColumns,(function(t){return e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){S._.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var o=t.getColDef();o&&S._.exists(o.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var o=e&&e.length>0;if(o||this.secondaryColumnsPresent){if(o){this.processSecondaryColumnDefinitions(e);var i=this.columnFactory.createColumnTree(e,!1);this.secondaryBalancedTree=i.columnTree,this.secondaryHeaderRowCount=i.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),o=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();(t||o)&&e&&function e(i){i.forEach((function(i){if(S._.exists(i.children)){var n=i;o&&o(n),e(n.children)}else t&&t(i)}))}(e)},e.prototype.updateGridColumns=function(){this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:y.Events.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!S._.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(o){e.lastPrimaryOrder.indexOf(o)>=0&&(t=!1)})),!t){var o=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),i=this.gridColumns.filter((function(e){return o.indexOf(e)<0})),n=o.slice();i.forEach((function(e){var t=e.getOriginalParent();if(t){for(var o=[];!o.length&&t;)t.getLeafColumns().forEach((function(e){var t=n.indexOf(e)>=0,i=o.indexOf(e)<0;t&&i&&o.push(e)})),t=t.getOriginalParent();if(o.length){var i=o.map((function(e){return n.indexOf(e)})),r=Math.max.apply(Math,i);S._.insertIntoArray(n,e,r+1)}else n.push(e)}else n.push(e)})),this.gridColumns=n}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var e=this.gridColumns.filter((function(e){return e.getColDef().lockPosition})),t=this.gridColumns.filter((function(e){return!e.getColDef().lockPosition}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!S._.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.updateBodyWidths();var t={type:y.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,o=this.primaryColumns.slice(0),i=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(n){if(i){var r=t.getWidthOfColsInList(n);n.forEach((function(t){r-=t.getActualWidth(),t.setLeft(r,e)}))}else{var s=0;n.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}S._.removeAllFromArray(o,n)})),o.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof s.ColumnGroup&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof a.Column&&t.push(e)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var o;switch(e){case a.Column.PINNED_LEFT:o=this.displayedLeftHeaderRows[t];break;case a.Column.PINNED_RIGHT:o=this.displayedRightHeaderRows[t];break;default:o=this.displayedCentreHeaderRows[t]}return S._.missing(o)&&(o=[]),o},e.prototype.updateDisplayedVirtualGroups=function(e){function t(o,i,n){for(var r=!1,s=0;s<o.length;s++){var l=o[s];(l instanceof a.Column?!0===e[l.getId()]:t(l.getDisplayedChildren(),i,n+1))&&(r=!0,i[n]||(i[n]=[]),i[n].push(l))}return r}this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return S._.filter(this.displayedCenterColumns,this.isColumnInViewport.bind(this))},e.prototype.sizeColumnsToFit=function(e,t){var o=this;void 0===t&&(t="api");var i=this.getAllDisplayedColumns();if(!(e<=0||0===i.length)){for(var n=S._.filter(i,(function(e){return!0===e.getColDef().suppressSizeToFit})),r=S._.filter(i,(function(e){return!0!==e.getColDef().suppressSizeToFit})),s=r.slice(0),a=!1;!a;){a=!0;var l=e-this.getWidthOfColsInList(n);if(l<=0)r.forEach((function(e){e.setMinimum(t)}));else for(var p=l/this.getWidthOfColsInList(r),u=l,c=r.length-1;c>=0;c--){var d=r[c],h=Math.round(d.getActualWidth()*p);h<d.getMinWidth()?(d.setMinimum(t),f(d),a=!1):d.isGreaterThanMax(h)?(d.setActualWidth(d.getMaxWidth(),t),f(d),a=!1):0===c?d.setActualWidth(u,t):d.setActualWidth(h,t),u-=h}}this.setLeftValues(t),this.updateBodyWidths(),s.forEach((function(e){var t={type:y.Events.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:o.gridApi,columnApi:o.columnApi,source:"sizeColumnsToFit"};o.eventService.dispatchEvent(t)}))}function f(e){S._.removeFromArray(r,e),n.push(e)}},e.prototype.buildDisplayedTrees=function(e){var t=S._.filter(e,(function(e){return"left"===e.getPinned()})),o=S._.filter(e,(function(e){return"right"===e.getPinned()})),i=S._.filter(e,(function(e){return"left"!==e.getPinned()&&"right"!==e.getPinned()})),n=new v.GroupInstanceIdCreator;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,n,a.Column.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,n,a.Column.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,n,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof s.ColumnGroup&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.gridOptionsWrapper.isGroupSuppressAutoColumn()&&!this.pivotMode,o=this.gridOptionsWrapper.isGroupSuppressRow();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||t||e||o)this.groupAutoColumns=null;else{var i=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(i,this.groupAutoColumns)&&(this.groupAutoColumns=i)}}},e.prototype.autoColsEqual=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++){var i=e[o],n=t[o];if(i.getColId()!==n.getColId())return!1}return!0},e.prototype.getWidthOfColsInList=function(e){for(var t=0,o=0;o<e.length;o++)t+=e[o].getActualWidth();return t},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},i([C.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([C.Autowired("expressionService"),n("design:type",p.ExpressionService)],e.prototype,"expressionService",void 0),i([C.Autowired("columnFactory"),n("design:type",u.ColumnFactory)],e.prototype,"columnFactory",void 0),i([C.Autowired("displayedGroupCreator"),n("design:type",c.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([C.Autowired("autoWidthCalculator"),n("design:type",d.AutoWidthCalculator)],e.prototype,"autoWidthCalculator",void 0),i([C.Autowired("eventService"),n("design:type",h.EventService)],e.prototype,"eventService",void 0),i([C.Autowired("columnUtils"),n("design:type",f.ColumnUtils)],e.prototype,"columnUtils",void 0),i([C.Autowired("context"),n("design:type",C.Context)],e.prototype,"context",void 0),i([C.Autowired("columnAnimationService"),n("design:type",_.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([C.Autowired("autoGroupColService"),n("design:type",w.AutoGroupColService)],e.prototype,"autoGroupColService",void 0),i([C.Optional("aggFuncService"),n("design:type",Object)],e.prototype,"aggFuncService",void 0),i([C.Optional("valueCache"),n("design:type",b.ValueCache)],e.prototype,"valueCache",void 0),i([C.Autowired("columnApi"),n("design:type",R.ColumnApi)],e.prototype,"columnApi",void 0),i([C.Autowired("gridApi"),n("design:type",E.GridApi)],e.prototype,"gridApi",void 0),i([C.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r(0,C.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[g.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([C.Bean("columnController")],e)}();t.ColumnController=P},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(35);t.Events=i.Events},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e}();t.Constants=i},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(15),p=o(2),u=new p.NumberSequence,c=function(e){function t(t){var o=e.call(this)||this;return o.childComponents=[],o.annotatedEventListeners=[],o.displayed=!0,o.visible=!0,o.compId=u.next(),t&&o.setTemplate(t),o}return n(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e){var t=this;p._.copyNodeList(e.childNodes).forEach((function(o){var i=t.getContext().createComponentFromElement(o,(function(e){t.copyAttributesFromNode(o,e.getGui())}));if(i){if(i.addItems&&o.children.length){t.createChildComponentsFromTags(o);var n=Array.prototype.slice.call(o.children);i.addItems(n)}t.swapComponentForNode(i,e,o)}else o.childNodes&&t.createChildComponentsFromTags(o)}))},t.prototype.copyAttributesFromNode=function(e,t){p._.iterateNamedNodeMap(e.attributes,(function(e,o){t.setAttribute(e,o)}))},t.prototype.swapComponentForNode=function(e,t,o){var i=e.getGui();t.replaceChild(i,o),t.insertBefore(document.createComment(o.nodeName),i),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){for(var o=Object.getPrototypeOf(this),i=this;null!=o;){var n=o.__agComponentMetaData,r=o.constructor.name;n&&n[r]&&n[r].querySelectors&&n[r].querySelectors.forEach((function(o){i[o.attributeName]===t&&(i[o.attributeName]=e)})),o=Object.getPrototypeOf(o)}},t.prototype.setTemplate=function(e){var t=p._.loadTemplate(e);this.setTemplateFromElement(t)},t.prototype.setTemplateFromElement=function(e){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui)for(var t=Object.getPrototypeOf(this),o=function(){var o=t.__agComponentMetaData,n=t.constructor.name;if(o&&o[n]&&o[n].querySelectors){var r=i;o[n].querySelectors.forEach((function(t){var o=e.eGui.querySelector(t.querySelector);if(o){var i=o.__agComponent;r[t.attributeName]=i||o}}))}t=Object.getPrototypeOf(t)},i=this;null!=t;)o()},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");p._.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),t.forEach((function(t){var o=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,o),e.annotatedEventListeners.push({eventName:t.eventName,listener:o})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],o=Object.getPrototypeOf(this);null!=o;){var i=o.__agComponentMetaData,n=o.constructor.name;if(void 0===n){var r=/function\s([^(]{1,})\(/.exec(o.constructor.toString());r&&r.length>1&&(n=r[1].trim())}i&&i[n]&&i[n][e]&&(t=t.concat(i[n][e])),o=Object.getPrototypeOf(o)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(this.annotatedEventListeners.forEach((function(t){e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},t.prototype.getGui=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e){if(p._.isNodeOrElement(e))this.eGui.appendChild(e);else{var t=e;this.eGui.appendChild(t.getGui()),this.childComponents.push(t)}},t.prototype.addFeature=function(e,t){e.wireBean(t),t.destroy&&this.addDestroyFunc(t.destroy.bind(t))},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,p._.setVisible(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,p._.setDisplayed(this.eGui,e);var o={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(o)}},t.prototype.addOrRemoveCssClass=function(e,t){p._.addOrRemoveCssClass(this.eGui,e,t)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childComponents.forEach((function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners()},t.prototype.addGuiEventListener=function(e,t){var o=this;this.getGui().addEventListener(e,t),this.addDestroyFunc((function(){return o.getGui().removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){p._.addCssClass(this.getGui(),e)},t.prototype.removeCssClass=function(e){p._.removeCssClass(this.getGui(),e)},t.prototype.getAttribute=function(e){var t=this.getGui();return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",r([a.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"createChildComponentsPreConstruct",null),t}(l.BeanStub);t.Component=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(123),s=o(20),a=o(17),l=o(5),p=o(23),u=o(3),c=o(24),d=o(4),h=o(7),f=o(0),g=o(27),y=o(26),m=o(87),v=o(31),C=o(190),_=o(46),w=o(93),b=o(30),E=o(48),R=o(2),S=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case h.Constants.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_INFINITE:this.infinitePageRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;R._.iterateObject(this.detailGridInfoMap,(function(o,i){R._.exists(i)&&(e(i,t),t++)}))},e.prototype.getDataAsCsv=function(e){return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){return this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isDeltaRowDataMode()){var t=this.immutableService.createTransactionForRowData(e),o=t[0],i=t[1];this.clientSideRowModel.updateRowData(o,i),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,o=0,i=0,n=this;!function r(){var s=(new Date).getTime();n.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var n=(new Date).getTime(),l=a-s,p=n-a;console.log("duration: processing = "+l+"ms, reflow = "+p+"ms"),o+=l,i+=p,++t<e?window.setTimeout(r,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+o/t+"ms"),console.log("average reflow = "+i/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){R._.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),R._.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){R._.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=h.Constants.STEP_EVERYTHING,o={group:h.Constants.STEP_EVERYTHING,filter:h.Constants.STEP_FILTER,map:h.Constants.STEP_MAP,aggregate:h.Constants.STEP_AGGREGATE,sort:h.Constants.STEP_SORT,pivot:h.Constants.STEP_PIVOT};if(R._.exists(e)&&(t=o[e]),R._.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var i={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(i)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.expandAll=function(){R._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){R._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.addVirtualRowListener=function(e,t,o){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,o)},e.prototype.addRenderedRowListener=function(e,t,o){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,o){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){R._.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){R._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){R._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){R._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterApi instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.getFilterComponent(t,"NO_UI").resolveNow(null,(function(e){return e}))},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusedCellController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusedCellController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusedCellController.setFocusedCell(e,t,o,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){R._.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){R._.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);return R._.missing(o)&&(o=this.columnController.getGridColumn(e)),R._.missing(o)?null:this.valueService.getValue(o,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("ag-Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the ag-Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return R._.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){console.warn("ag-Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.removeAllCellRanges()},e.prototype.chartRange=function(e){if(this.context.isModuleRegistered("chartsModule"))return this.chartService.chartCellRange(e);R._.doOnce((function(){console.warn("ag-grid: Cannot chart range - the Charts Module has not been included.")}),"ChartsModuleCheck")},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnController.getGridColumn(e);this.menuFactory.showMenuAfterMouseEvent(o,t)},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t};R._.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(o,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.updateRowData=function(e){var t=null;return this.clientSideRowModel?t=this.clientSideRowModel.updateRowData(e):this.infinitePageRowModel?this.infinitePageRowModel.updateRowData(e):console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel."),this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.batchUpdateRowData=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.batchUpdateRowData() only works with ClientSideRowModel.")},e.prototype.insertItemsAtIndex=function(e,t,o){void 0===o&&(o=!1),console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},e.prototype.addItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infinitePageRowModel?this.infinitePageRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infinitePageRowModel?this.infinitePageRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},i([f.Autowired("immutableService"),n("design:type",C.ImmutableService)],e.prototype,"immutableService",void 0),i([f.Autowired("csvCreator"),n("design:type",r.CsvCreator)],e.prototype,"csvCreator",void 0),i([f.Optional("excelCreator"),n("design:type",Object)],e.prototype,"excelCreator",void 0),i([f.Autowired("rowRenderer"),n("design:type",s.RowRenderer)],e.prototype,"rowRenderer",void 0),i([f.Autowired("filterManager"),n("design:type",a.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("selectionController"),n("design:type",p.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("gridOptionsWrapper"),n("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("valueService"),n("design:type",c.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("alignedGridsService"),n("design:type",w.AlignedGridsService)],e.prototype,"alignedGridsService",void 0),i([f.Autowired("eventService"),n("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("pinnedRowModel"),n("design:type",b.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([f.Autowired("context"),n("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([f.Autowired("sortController"),n("design:type",g.SortController)],e.prototype,"sortController",void 0),i([f.Autowired("paginationProxy"),n("design:type",v.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([f.Autowired("focusedCellController"),n("design:type",y.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([f.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([f.Optional("clipboardService"),n("design:type",Object)],e.prototype,"clipboardService",void 0),i([f.Optional("aggFuncService"),n("design:type",Object)],e.prototype,"aggFuncService",void 0),i([f.Autowired("menuFactory"),n("design:type",Object)],e.prototype,"menuFactory",void 0),i([f.Optional("contextMenuFactory"),n("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([f.Autowired("cellRendererFactory"),n("design:type",m.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([f.Autowired("valueCache"),n("design:type",_.ValueCache)],e.prototype,"valueCache",void 0),i([f.Optional("sideBarComp"),n("design:type",Object)],e.prototype,"sideBarComp",void 0),i([f.Autowired("animationFrameService"),n("design:type",E.AnimationFrameService)],e.prototype,"animationFrameService",void 0),i([f.Optional("statusBarService"),n("design:type",Object)],e.prototype,"statusBarService",void 0),i([f.Optional("chartService"),n("design:type",Object)],e.prototype,"chartService",void 0),i([f.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([f.Bean("gridApi")],e)}();t.GridApi=S},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(5),s=o(0),a=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o){void 0===o&&(o=!0),this.columnController.setColumnWidth(e,t,!1,o)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e){return this.columnController.autoSizeColumn(e,"api")},e.prototype.autoSizeColumns=function(e){return this.columnController.autoSizeColumns(e,"api")},e.prototype.autoSizeAllColumns=function(){this.columnController.autoSizeAllColumns("api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},i([s.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([s.Bean("columnApi")],e)}();t.ColumnApi=a},function(e,t,o){"use strict";function i(e,t,o,i){null!==e?"number"!=typeof i?s(t,"querySelectors",{attributeName:o,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function n(e,t,o){null!==e?s(t,"listenerMethods",{methodName:o,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function r(e,t,o){null!==e?s(t,"methods",{methodName:o,alias:e}):console.error("ag-Grid: EventListener eventName should not be null")}function s(e,t,o){var i=function(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}(e,e.constructor.name);i[t]||(i[t]=[]),i[t].push(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySelector=function(e){return i.bind(this,e)},t.RefSelector=function(e){return i.bind(this,"[ref="+e+"]")},t.Listener=function(e){return n.bind(this,e)},t.Method=function(e){return r.bind(this,e)}},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(2),a=o(0),l=o(3),p=o(44),u=o(10),c=o(9),d=function(){function e(e,t,o,i){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new r.EventService,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=o,this.primary=i}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var o=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=s._.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=s._.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!o,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(s._.missing(this.colDef)||s._.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===e;return t||o},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;this.gridOptionsWrapper.isEnterprise()||["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc","chartDataType"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is only valid in ag-Grid-Enterprise, your column definition should not have "+t)})),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t)})),s._.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&console.warn("ag-Grid: colDef.width should be a number, not "+_typeof2(this.colDef.width)),s._.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),e.floatingCellRenderer&&(console.warn("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(console.warn("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(console.warn("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(console.warn("ag-Grid: since v12, cellFormatter is now valueFormatter"),s._.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&console.warn("ag-Grid: since v15, headerCellTemplate is gone, use header component instead."),e.headerCellRenderer&&console.warn("ag-Grid: since v15, headerCellRenderer is gone, use header component instead."),e.volatile&&console.warn("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells."),e.suppressSorting&&(console.warn("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(console.warn("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.",this.colDef),this.colDef.filter=!1),e.suppressResize&&(console.warn("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.",this.colDef),this.colDef.resizable=!1),e.tooltip&&(console.warn("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.",this.colDef),this.colDef.tooltipValueGetter=e.tooltip)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,o){void 0===o&&(o="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,o))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,o){void 0===o&&(o="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,o)))},e.prototype.setMenuVisible=function(t,o){void 0===o&&(o="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,o)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===e.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===e.SORT_DESC},e.prototype.isSortNone=function(){return s._.missing(this.sort)},e.prototype.isSorting=function(){return s._.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,o)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,o,i){void 0===o&&(o="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,o)));var n=this.createColumnEvent(e.EVENT_FILTER_CHANGED,o);i&&s._.mergeDeep(n,i),this.eventService.dispatchEvent(n)},e.prototype.setPinned=function(t){!0===t||t===e.PINNED_LEFT?this.pinned=e.PINNED_LEFT:t===e.PINNED_RIGHT?this.pinned=e.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,o){void 0===o&&(o="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},e.prototype.setLastLeftPinned=function(t,o){void 0===o&&(o="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===e.PINNED_LEFT||this.pinned===e.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===e.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===e.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,o){void 0===o&&(o="api");var i=!0===t;this.visible!==i&&(this.visible=i,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,o)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(s._.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)},e.prototype.getRowSpan=function(e){if(s._.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)},e.prototype.setActualWidth=function(t,o){void 0===o&&(o="api"),this.actualWidth!==t&&(this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,o)))},e.prototype.isGreaterThanMax=function(e){return!!this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,o){void 0===o&&(o="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,o)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,o){void 0===o&&(o="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,o)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,o){void 0===o&&(o="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,o)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("ag-Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("ag-Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("ag-Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("columnUtils"),n("design:type",p.ColumnUtils)],e.prototype,"columnUtils",void 0),i([a.Autowired("columnApi"),n("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),n("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"initialise",null),e}();t.Column=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(){function e(){}var t;return t=e,e.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,t.DEFAULT_TRANSLATIONS[e])},e.DEFAULT_TRANSLATIONS={pivotChartTitle:"Pivot Chart",rangeChartTitle:"Range Chart",settings:"Settings",data:"Data",format:"Format",categories:"Categories",series:"Series",xyValues:"X Y Values",axis:"Axis",color:"Color",thickness:"Thickness",xRotation:"X Rotation",yRotation:"Y Rotation",ticks:"Ticks",width:"Width",length:"Length",padding:"Padding",chart:"Chart",title:"Title",font:"Font",top:"Top",right:"Right",bottom:"Bottom",left:"Left",labels:"Labels",size:"Size",legend:"Legend",position:"Position",markerSize:"Marker Size",markerStroke:"Marker Stroke",markerPadding:"Marker Padding",itemPaddingX:"Item Padding X",itemPaddingY:"Item Padding Y",strokeWidth:"Stroke Width",offset:"Offset",tooltips:"Tooltips",offsets:"Offsets",callout:"Callout",markers:"Markers",shadow:"Shadow",blur:"Blur",xOffset:"X Offset",yOffset:"Y Offset",lineWidth:"Line Width",normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",fillOpacity:"Fill Opacity",strokeOpacity:"Line Opacity",groupedColumnTooltip:"Grouped",stackedColumnTooltip:"Stacked",normalizedColumnTooltip:"100% Stacked",groupedBarTooltip:"Grouped",stackedBarTooltip:"Stacked",normalizedBarTooltip:"100% Stacked",pieTooltip:"Pie",doughnutTooltip:"Doughnut",lineTooltip:"Line",groupedAreaTooltip:"Grouped",stackedAreaTooltip:"Stacked",normalizedAreaTooltip:"100% Stacked",scatterTooltip:"Scatter",bubbleTooltip:"Bubble",columnGroup:"Column",barGroup:"Bar",pieGroup:"Pie",lineGroup:"Line",scatterGroup:"X Y (Scatter)",areaGroup:"Area",pivotChartRequiresPivotMode:"Pivot Chart requires Pivot Mode enabled.",noDataToChart:"No data available to be charted."},i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),t=i([r.Bean("chartTranslator")],e)}();t.ChartTranslator=s},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(3),a=o(0),l=o(0),p=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new u(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},i([r(0,l.Qualifier("gridOptionsWrapper")),n("design:type",Function),n("design:paramtypes",[s.GridOptionsWrapper]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([a.Bean("loggerFactory")],e)}();t.LoggerFactory=p;var u=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}();t.Logger=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(3),a=o(0),l=o(2),p=function(){function e(){this.destroyFunctions=[],this.destroyed=!1}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new r.EventService),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,o){var i=this;if(!this.destroyed){e instanceof HTMLElement?l._.addSafePassiveEventListener(this.getFrameworkOverrides(),e,t,o):(e instanceof Window||s.GridOptionsWrapper,e.addEventListener(t,o));var n=function n(){e instanceof HTMLElement||e instanceof Window||s.GridOptionsWrapper,e.removeEventListener(t,o),i.destroyFunctions=i.destroyFunctions.filter((function(e){return e!==n}))};return this.destroyFunctions.push(n),n}},e.prototype.isAlive=function(){return!this.destroyed},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.EVENT_DESTROYED="destroyed",i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("frameworkOverrides"),n("design:type",Object)],e.prototype,"frameworkOverrides",void 0),i([a.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),e}();t.BeanStub=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(28),s=o(29),a=o(98),l=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.isContainerNode=!0,o.getBBox=function(){var e=1/0,i=-1/0,n=1/0,r=-1/0;return o.dirtyTransform&&o.computeTransformMatrix(),o.children.forEach((function(o){if(o.visible){var s=o.getBBox();if(s){if(!(o instanceof t)){o.dirtyTransform&&o.computeTransformMatrix();for(var l=a.Matrix.flyweight(o.matrix),p=o.parent;p;)l.preMultiplySelf(p.matrix),p=p.parent;l.transformBBox(s,0,s)}var u=s.x,c=s.y;u<e&&(e=u),c<n&&(n=c),u+s.width>i&&(i=u+s.width),c+s.height>r&&(r=c+s.height)}}})),new s.BBox(e,n,i-e,r-n)},o}return n(t,e),t.prototype.isPointInNode=function(e,t){return!0},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);for(var t=this.children,o=t.length,i=0;i<o;i++){e.save();var n=t[i];n.visible&&n.render(e),e.restore()}},t.className="Group",t}(r.Node);t.Group=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(3),a=o(32),l=o(24),p=o(5),u=o(10),c=o(0),d=o(4),h=o(6),f=o(9),g=o(19),y=function(){function e(){this.allFilters={},this.quickFilter=null,this.quickFilterParts=null,this.processingFilterChange=!1}var t;return t=e,e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.eventService.addEventListener(h.Events.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilter?this.quickFilterParts=this.quickFilter.split(" "):this.quickFilterParts=null},e.prototype.setFilterModel=function(e){var t=this,o=[];if(e){var i=Object.keys(e);r._.iterateObject(this.allFilters,(function(n,s){r._.removeFromArray(i,n);var a=e[n];t.setModelOnFilterWrapper(s.filterPromise,a),o.push(s.filterPromise)})),r._.iterateArray(i,(function(i){var n=t.columnController.getPrimaryColumn(i);if(n){var r=t.getOrCreateFilterWrapper(n,"NO_UI");t.setModelOnFilterWrapper(r.filterPromise,e[i]),o.push(r.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+i)}))}else r._.iterateObject(this.allFilters,(function(e,i){t.setModelOnFilterWrapper(i.filterPromise,null),o.push(i.filterPromise)}));r.Promise.all(o).then((function(e){t.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},e.prototype.getFilterModel=function(){var e={};return r._.iterateObject(this.allFilters,(function(t,o){var i=o.filterPromise.resolveNow(null,(function(e){return e}));if(null==i)return null;if("function"==typeof i.getModel){var n=i.getModel();r._.exists(n)&&(e[t]=n)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;r._.iterateObject(this.allFilters,(function(t,o){o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e,t){r._.iterateObject(this.allFilters,(function(o,i){var n=i.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));i.column.setFilterActive(n,e,t)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){for(var o=e.data,i=Object.keys(this.allFilters),n=0,r=i.length;n<r;n++){var s=i[n],a=this.allFilters[s];if(void 0!==a){var l=a.filterPromise.resolveNow(void 0,(function(e){return e}));if(void 0!==l&&l!==t&&l.isFilterActive()){l.doesFilterPass||console.error("Filter is missing method doesFilterPass");var p={node:e,data:o};if(!l.doesFilterPass(p))return!1}}}return!0},e.prototype.parseQuickFilter=function(e){return r._.missing(e)||""===e?null:this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-side Row Model"),null)},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(e){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged",e),this.checkExternalFilter(),r._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var t={type:h.Events.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};e&&r._.mergeDeep(t,e),this.processingFilterChange=!0,this.eventService.dispatchEvent(t),this.processingFilterChange=!1},e.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e,t){var o=this,i=this.columnController.getAllColumnsForQuickFilter(),n=!1;return i.forEach((function(i){if(!n){var s=o.getQuickFilterTextForColumn(i,e);r._.exists(s)&&s.indexOf(t)>=0&&(n=!0)}})),n},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,o=!0,i=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.forEach((function(n){(i?t.doesRowPassQuickFilterCache(e,n):t.doesRowPassQuickFilterNoCache(e,n))||(o=!1)})),o},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e)||this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e)||this.advancedFilterPresent&&!this.doesFilterPass(e,t))},e.prototype.getQuickFilterTextForColumn=function(e,t){var o,i=this.valueService.getValue(e,t,!0),n=e.getColDef();if(e.getColDef().getQuickFilterText){var s={value:i,node:t,data:t.data,column:e,colDef:n,context:this.gridOptionsWrapper.getContext()};o=e.getColDef().getQuickFilterText(s)}else o=i;return r._.exists(o)?o.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var o=this,i=[];this.columnController.getAllColumnsForQuickFilter().forEach((function(t){var n=o.getQuickFilterTextForColumn(t,e);r._.exists(n)&&i.push(n)})),e.quickFilterAggregateText=i.join(t.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){r._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(o){return t.valueService.getValue(e,o,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(e,t){var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allFilters[e.getColId()]=o),o},e.prototype.cachedFilter=function(e){return this.allFilters[e.getColId()]},e.prototype.createFilterInstance=function(e,t){var o=this,i="agTextColumnFilter";this.gridOptionsWrapper.isEnterprise()&&(i="agSetColumnFilter");var n,s=r._.cloneObject(e.getColDef()),a=this.createFilterParams(e,s,t);a.filterChangedCallback=this.onFilterChanged.bind(this),a.filterModifiedCallback=function(){var t={type:h.Events.EVENT_FILTER_MODIFIED,api:o.gridApi,columnApi:o.columnApi,column:e,filterInstance:n};o.eventService.dispatchEvent(t)};var l=this.userComponentFactory.newFilterComponent(s,a,i,(function(e,t){return r._.assign(e,{doesRowPassOtherFilter:o.doesRowPassOtherFilters.bind(o,t)})}));return l.then((function(e){return n=e})),l},e.prototype.createFilterParams=function(e,t,o){void 0===o&&(o=null);var i={api:this.gridOptionsWrapper.getApi(),column:e,colDef:t,rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return o&&(i.$scope=o),i},e.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:r.Promise.external()};return o.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,o.filterPromise=this.createFilterInstance(e,o.scope),this.putIntoGui(o,t),o},e.prototype.putIntoGui=function(e,t){var o=this,i=document.createElement("div");i.className="ag-filter",e.filterPromise.then((function(n){var s=n.getGui();if(r._.missing(s)&&console.warn("getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=r._.loadTemplate(s)),i.appendChild(s),e.scope){var a=o.$compile(i)(e.scope);e.compiledElement=a,window.setTimeout((function(){return e.scope.$apply()}),0)}e.guiPromise.resolve(i),o.eventService.dispatchEvent({type:h.Events.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:i,api:o.gridApi,columnApi:o.columnApi})}))},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;r._.iterateObject(this.allFilters,(function(o,i){!e.columnController.getPrimaryColumn(i.column)&&(t=!0,e.disposeFilterWrapper(i,"filterDestroyed"))})),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allFilters[e.getColId()];o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then((function(i){i.setModel(null),i.destroy&&i.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),delete o.allFilters[e.column.getColId()]}))},e.prototype.destroy=function(){var e=this;r._.iterateObject(this.allFilters,(function(t,o){e.disposeFilterWrapper(o,"filterDestroyed")}))},e.QUICK_FILTER_SEPARATOR="\n",i([c.Autowired("$compile"),n("design:type",Object)],e.prototype,"$compile",void 0),i([c.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([c.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("popupService"),n("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([c.Autowired("valueService"),n("design:type",l.ValueService)],e.prototype,"valueService",void 0),i([c.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([c.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("eventService"),n("design:type",d.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("enterprise"),n("design:type",Boolean)],e.prototype,"enterprise",void 0),i([c.Autowired("context"),n("design:type",c.Context)],e.prototype,"context",void 0),i([c.Autowired("columnApi"),n("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),n("design:type",f.GridApi)],e.prototype,"gridApi",void 0),i([c.Autowired("userComponentFactory"),n("design:type",g.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([c.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([c.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),t=i([c.Bean("filterManager")],e)}();t.FilterManager=y},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s,a,l,p=o(14),u=o(0),c=o(3),d=o(37),h=o(5),f=o(60),g=o(2);!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag"}(s=t.DragSourceType||(t.DragSourceType={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(a=t.VDirection||(t.VDirection={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(l=t.HDirection||(t.HDirection={}));var y=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var t;return t=e,e.prototype.init=function(){this.ePinnedIcon=g._.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.ePlusIcon=g._.createIcon("columnMoveAdd",this.gridOptionsWrapper,null),this.eHiddenIcon=g._.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=g._.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=g._.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=g._.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=g._.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=g._.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=g._.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=g._.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.setBeans=function(e){this.logger=e.create("OldToolPanelDragAndDropService")},e.prototype.getStringType=function(e){switch(e){case s.RowDrag:return"row";case s.HeaderCell:return"headerCell";case s.ToolPanel:return"toolPanel";default:return console.warn("ag-Grid: bug - unknown drag type "+e),null}},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},e.prototype.removeDragSource=function(e){var t=g._.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),g._.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.dragItemCallback(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.dragStarted&&this.dragSource.dragStarted(),this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.dragStopped&&this.dragSource.dragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(e,t){var o=this.workOutHDirection(e),i=this.workOutVDirection(e);this.eventLastTime=e,this.positionGhost(e);var n=g._.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(n!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,i,t),this.enterDragTargetIfExists(n,e,o,i,t),this.lastDropTarget=n;else if(n){var r=this.createDropTargetEvent(n,e,o,i,t);n.onDragging(r)}},e.prototype.enterDragTargetIfExists=function(e,t,o,i,n){if(e){var r=this.createDropTargetEvent(e,t,o,i,n);e.onDragEnter(r),this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,o,i){if(this.lastDropTarget){var n=this.createDropTargetEvent(this.lastDropTarget,e,t,o,i);this.lastDropTarget.onDragLeave(n),this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],o=e.getSecondaryContainers?e.getSecondaryContainers():null;return o&&(t=t.concat(o)),t},e.prototype.isMouseOnDropTarget=function(e,t){var o=this.getAllContainersFromDropTarget(t),i=!1;return o.forEach((function(t){if(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var n=e.clientX>=o.left&&e.clientX<=o.right,r=e.clientY>=o.top&&e.clientY<=o.bottom;n&&r&&(i=!0)}}})),!!i&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.workOutHDirection=function(e){return this.eventLastTime.clientX>e.clientX?l.Left:this.eventLastTime.clientX<e.clientX?l.Right:null},e.prototype.workOutVDirection=function(e){return this.eventLastTime.clientY>e.clientY?a.Up:this.eventLastTime.clientY<e.clientY?a.Down:null},e.prototype.createDropTargetEvent=function(e,t,o,i,n){var r=e.getContainer().getBoundingClientRect();return{event:t,x:t.clientX-r.left,y:t.clientY-r.top,vDirection:i,hDirection:o,dragSource:this.dragSource,fromNudge:n,dragItem:this.dragItem}},e.prototype.positionGhost=function(e){var t=this.eGhost.getBoundingClientRect().height,o=g._.getBodyWidth()-2,i=g._.getBodyHeight()-2,n=e.pageY-t/2,r=e.pageX-30,s=this.gridOptionsWrapper.getDocument(),a=window.pageYOffset||s.documentElement.scrollTop,l=window.pageXOffset||s.documentElement.scrollLeft;o>0&&r+this.eGhost.clientWidth>o+l&&(r=o+l-this.eGhost.clientWidth),r<0&&(r=0),i>0&&n+this.eGhost.clientHeight>i+a&&(n=i+a-this.eGhost.clientHeight),n<0&&(n=0),this.eGhost.style.left=r+"px",this.eGhost.style.top=n+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=g._.loadTemplate(t.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&g._.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null),this.eGhost.querySelector(".ag-dnd-ghost-label").innerHTML=g._.escape(this.dragSource.dragItemName),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsWrapper.getDocument();this.eGhostParent=o.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,o){var i;switch(void 0===o&&(o=!1),g._.clearElement(this.eGhostIcon),e){case t.ICON_ADD:i=this.ePlusIcon;break;case t.ICON_PINNED:i=this.ePinnedIcon;break;case t.ICON_MOVE:i=this.eMoveIcon;break;case t.ICON_LEFT:i=this.eLeftIcon;break;case t.ICON_RIGHT:i=this.eRightIcon;break;case t.ICON_GROUP:i=this.eGroupIcon;break;case t.ICON_AGGREGATE:i=this.eAggregateIcon;break;case t.ICON_PIVOT:i=this.ePivotIcon;break;case t.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;default:i=this.eHiddenIcon}this.eGhostIcon.appendChild(i),g._.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",o)},e.ICON_PINNED="pinned",e.ICON_ADD="add",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost"> <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span> <div class="ag-dnd-ghost-label"> </div></div>',i([u.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([u.Autowired("dragService"),n("design:type",d.DragService)],e.prototype,"dragService",void 0),i([u.Autowired("environment"),n("design:type",f.Environment)],e.prototype,"environment",void 0),i([u.Autowired("columnController"),n("design:type",h.ColumnController)],e.prototype,"columnController",void 0),i([u.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r(0,u.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[p.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([u.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),t=i([u.Bean("dragAndDropService")],e)}();t.DragAndDropService=y},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(0),a=o(3),l=o(130),p=o(139),u=o(140),c=o(2);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(r=t.ComponentSource||(t.ComponentSource={}));var d=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"dateComponent","agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,"headerComponent","agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,"headerGroupComponent","agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"groupRowInnerRenderer",null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,o){return this.createAndInitUserComponent(null,e,t,o)},e.prototype.newCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"cellRenderer",null,!0)},e.prototype.newPinnedRowCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"pinnedRowCellRenderer",null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,"cellEditor","agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"innerRenderer",null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"loadingOverlayComponent","agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"noRowsOverlayComponent","agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){var t=e.colDef;return this.createAndInitUserComponent(t,e,"tooltipComponent","agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,o,i){return this.createAndInitUserComponent(e,t,"filter",o,!1,i)},e.prototype.newFloatingFilterComponent=function(e,t,o){return this.createAndInitUserComponent(e,t,"floatingFilterComponent",o,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"toolPanel")},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"statusPanel")},e.prototype.createAndInitUserComponent=function(e,t,o,i,n,r){void 0===n&&(n=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,o,t,i,n);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,o,t,s.paramsFromSelector);this.addReactHacks(l);var p=r?r(l,a):l,u=this.initComponent(a,p);return null==u?c.Promise.resolve(a):u.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=c._.cloneObject(t));var o=this.context.getBean("frameworkComponentWrapper");o&&(e.frameworkComponentWrapper=o)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var o=new e;return this.initComponent(o,t),o},e.prototype.lookupComponentClassDef=function(e,t,o,i){void 0===o&&(o=null);var n,s=null,a=null,l=null,p=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?s=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?a=u:l=u)),p=e[t+"Framework"],n=e[t+"Selector"]}if(a&&p||s&&p||l&&p)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(p&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(n&&(s||a||l||p))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(p)return{componentFromFramework:!0,component:p,source:r.HARDCODED,paramsFromSelector:null};if(a)return{componentFromFramework:!1,component:a,source:r.HARDCODED,paramsFromSelector:null};if(l)return this.agComponentUtils.adaptFunction(t,l,!1,r.HARDCODED);var c,d=n?n(o):null;if(!(c=d&&d.component?d.component:s||i))return null;var h=this.lookupFromRegisteredComponents(t,c);return{componentFromFramework:h.componentFromFramework,component:h.component,source:h.source,paramsFromSelector:d?d.params:null}},e.prototype.lookupFromRegisteredComponents=function(e,t){var o=null!=t?t:e,i=this.userComponentRegistry.retrieve(o);return null==i?null:i.componentFromFramework?{component:i.component,componentFromFramework:!0,source:r.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(i.component)?{component:i.component,componentFromFramework:!1,source:i.source==l.RegisteredComponentSource.REGISTERED?r.REGISTERED_BY_NAME:r.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,i.component,i.componentFromFramework,i.source==l.RegisteredComponentSource.REGISTERED?r.REGISTERED_BY_NAME:r.DEFAULT)},e.prototype.createFinalParams=function(e,t,o,i){void 0===i&&(i=null);var n={};c._.mergeDeep(n,o);var r=e?e[t+"Params"]:null;return null!=r&&("function"==typeof r?c._.mergeDeep(n,r(o)):"object"==_typeof2(r)&&c._.mergeDeep(n,r)),c._.mergeDeep(n,i),n},e.prototype.createComponentInstance=function(e,t,o,i,n){var r,s=this.lookupComponentClassDef(e,t,o,i);if(!s||!s.component)return n||console.error("Error creating component "+t+"=>"+i),null;if(s.componentFromFramework){var a=s.component,l=this.componentMetadataProvider.retrieve(t);r=this.frameworkComponentWrapper.wrap(a,l.mandatoryMethodList,l.optionalMethodList,i)}else r=new s.component;return{componentInstance:r,paramsFromSelector:s.paramsFromSelector}},e.prototype.initComponent=function(e,t){return this.context.wireBean(e),null==e.init?void 0:e.init(t)},i([s.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),n("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("agComponentUtils"),n("design:type",p.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([s.Autowired("componentMetadataProvider"),n("design:type",u.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),i([s.Autowired("userComponentRegistry"),n("design:type",l.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),i([s.Optional("frameworkComponentWrapper"),n("design:type",Object)],e.prototype,"frameworkComponentWrapper",void 0),i([s.Bean("userComponentFactory")],e)}();t.UserComponentFactory=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(3),p=o(4),u=o(124),c=o(12),d=o(6),h=o(7),f=o(59),g=o(0),y=o(10),m=o(5),v=o(14),C=o(26),_=o(127),w=o(15),b=o(31),E=o(9),R=o(30),S=o(38),P=o(48),O=o(89),T=o(2),A=o(90),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return n(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.getGridCore=function(){return this.gridCore},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,l.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===h.Constants.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.registerCellEventListeners=function(){var e=this;this.addDestroyableEventListener(this.eventService,d.Events.EVENT_CELL_FOCUSED,(function(t){e.forEachCellComp((function(e){return e.onCellFocused(t)}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_FLASH_CELLS,(function(t){e.forEachCellComp((function(e){return e.onFlashCells(t)}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_HOVER_CHANGED,(function(){e.forEachCellComp((function(e){return e.onColumnHover()}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.forEachCellComp((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addDestroyableEventListener(this.eventService,d.Events.EVENT_RANGE_SELECTION_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRangeSelectionChanged()}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_MOVED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_PINNED,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_VISIBLE,(function(){e.forEachCellComp((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnController.getAllGridColumns();t&&t.forEach((function(t){var o=function(o){e.forEachCellComp((function(e){e.getColumn()===t&&o(e)}))},i=function(){o((function(e){return e.onLeftChanged()}))},n=function(){o((function(e){return e.onWidthChanged()}))},r=function(){o((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){o((function(e){return e.onLastLeftPinnedChanged()}))};t.addEventListener(c.Column.EVENT_LEFT_CHANGED,i),t.addEventListener(c.Column.EVENT_WIDTH_CHANGED,n),t.addEventListener(c.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,r),t.addEventListener(c.Column.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(c.Column.EVENT_LEFT_CHANGED,i),t.removeEventListener(c.Column.EVENT_WIDTH_CHANGED,n),t.removeEventListener(c.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,r),t.removeEventListener(c.Column.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===h.Constants.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){T._.missing(e)&&(e={type:d.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function o(o,i){var n=i.getCellForCol(e);n&&t.push(n)}return T._.iterateObject(this.rowCompsByIndex,o),T._.iterateObject(this.floatingBottomRowComps,o),T._.iterateObject(this.floatingTopRowComps,o),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWith)},t.prototype.refreshFloatingRows=function(e,t,o,i,n,r){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new u.RowComp(s.$scope,n,o,i,r,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return T._.missing(e)||T._.iterateObject(this.rowCompsByIndex,(function(o,i){var n=i.getRowNode();e.indexOf(n)>=0&&t.push(o)})),t},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusedCellController.getFocusCellToUseAfterRefresh();if(T._.missing(t))return null;var o=document.activeElement,i=this.gridOptionsWrapper.getDomData(o,f.CellComp.DOM_DATA_KEY_CELL_COMP);return T._.missing(i)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&e.recycleRows,i=e.animate&&this.gridOptionsWrapper.isAnimateRows(),n=this.binRowComps(o);this.redraw(n,i),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!o&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var o=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(o)}))}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,o){o.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,o){return o.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){T._.iterateObject(this.rowCompsByIndex,e),T._.iterateObject(this.floatingTopRowComps,e),T._.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,o){var i=this.rowCompsByIndex[t];i&&i.addEventListener(e,o)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellRenderer();o&&t.push(o)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellEditor();o&&t.push(o)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var o=t.getCellPosition();e.push(o)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,o){var i,n,r=this;T._.exists(e)&&(i={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===h.Constants.PINNED_TOP?i.top[e.id]=!0:e.rowPinned===h.Constants.PINNED_BOTTOM?i.bottom[e.id]=!0:i.normal[e.id]=!0}))),T._.exists(t)&&(n={},t.forEach((function(e){var t=r.columnController.getGridColumn(e);T._.exists(t)&&(n[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),r=t.id,s=t.rowPinned;if(T._.exists(i))if(s===h.Constants.PINNED_BOTTOM){if(!i.bottom[r])return}else if(s===h.Constants.PINNED_TOP){if(!i.top[r])return}else if(!i.normal[r])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();n&&!n[t]||o(e)}))};T._.iterateObject(this.rowCompsByIndex,(function(e,t){s(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},t.prototype.binRowComps=function(e){var t,o=this,i={};return e?(t=[],T._.iterateObject(this.rowCompsByIndex,(function(e,n){var r=n.getRowNode();T._.exists(r.id)?(i[r.id]=n,delete o.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),i},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var o=Object.keys(this.rowCompsByIndex),i=T._.filter(o,(function(e){return!t[e]}));this.removeRowComps(i)},t.prototype.calculateIndexesToDraw=function(){var e=this,t=T._.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return T._.iterateObject(this.rowCompsByIndex,(function(o,i){var n=Number(o);(n<e.firstRenderedRow||n>e.lastRenderedRow)&&e.doNotUnVirtualiseRow(i)&&t.push(n)})),t.sort((function(e,t){return e-t})),t},t.prototype.redraw=function(e,t,o){var i=this;void 0===t&&(t=!1),void 0===o&&(o=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var n=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(n),this.printLayout&&(t=!1);var r=[],s=[];n.forEach((function(n){var a=i.createOrUpdateRowComp(n,e,t,o);T._.exists(a)&&(s.push(a),T._.pushAll(r,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),T._.executeNextVMTurn(r),!o||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowComps(e,t):this.beans.taskQueue.addP2Task(this.destroyRowComps.bind(this,e,t)),this.checkAngularCompile(),this.gridPanel.updateRowCount()},t.prototype.flushContainers=function(e){T._.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];T._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var i=o.getRowNode().rowIndex;e.push(i.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];T._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()&&!o.refreshFullWidth()){var i=o.getRowNode().rowIndex;e.push(i.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,o,i){var n,r=this.rowCompsByIndex[e];if(r||(n=this.paginationProxy.getRow(e),T._.exists(n)&&T._.exists(t)&&t[n.id]&&n.alreadyRendered&&(r=t[n.id],t[n.id]=null)),r)r.ensureDomOrder();else{if(n||(n=this.paginationProxy.getRow(e)),!T._.exists(n))return;r=this.createRowComp(n,o,i)}return n&&(n.alreadyRendered=!0),this.rowCompsByIndex[e]=r,r},t.prototype.destroyRowComps=function(e,t){var o=[];T._.iterateObject(e,(function(e,i){i&&(i.destroy(t),T._.pushAll(o,i.getAndClearDelayedDestroyFunctions()))})),T._.executeInAWhile(o)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.paginationProxy.getPixelOffset(),i=this.maxDivHeightScaler.getOffset(),n=this.gridPanel.getVScrollPosition(),r=n.top,s=n.bottom,a=this.gridOptionsWrapper.getRowBufferInPixels(),l=r+o+i-a,p=s+o+i+a;this.ensureAllRowsInRangeHaveHeightsCalculated(l,p);var u=this.paginationProxy.getRowIndexAtPixel(l),c=this.paginationProxy.getRowIndexAtPixel(p),f=this.paginationProxy.getPageFirstRow(),g=this.paginationProxy.getPageLastRow();u<f&&(u=f),c>g&&(c=g),e=u,t=c}else e=0,t=-1;var y=this.gridOptionsWrapper.getDomLayout()===h.Constants.DOM_LAYOUT_NORMAL,m=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),v=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);y&&!m&&t-e>v&&(t=e+v);var C=e!==this.firstRenderedRow,_=t!==this.lastRenderedRow;if(C||_){this.firstRenderedRow=e,this.lastRenderedRow=t;var w={type:d.Events.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var b={type:d.Events.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEventOnce(b)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),o=this.focusedCellController.isRowNodeFocused(t),i=e.isEditing(),n=t.detail;return!!(o||i||n)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowComp=function(e,t,o){var i=this.gridOptionsWrapper.isSuppressAnimationFrame(),n=o&&!i&&!this.printLayout,r=new u.RowComp(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,n,this.printLayout,this.embedFullWidthRows);return r.init(),r},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,o,i){for(var n=o,r=!1;!r;)if(this.gridOptionsWrapper.isEnableRtl()?t===h.Constants.KEY_LEFT&&(n=this.getLastCellOfColSpan(n)):t===h.Constants.KEY_RIGHT&&(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextCellToFocus(t,n),T._.missing(n))r=!0;else{var s=this.rowPositionUtils.getRowNode(n);if(!s.detail)if(s.group){var a=this.columnController.isPivotMode();this.gridOptionsWrapper.isGroupUseEntireRow(a)||(r=!0)}else r=!0}if(i){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(T._.exists(l)){var p=l({key:t,previousCellPosition:o,nextCellPosition:n||null,event:e});T._.exists(p)?(p.floating&&(T._.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),p.rowPinned=p.floating),n={rowPinned:p.rowPinned,rowIndex:p.rowIndex,column:p.column}):n=null}}n&&(this.ensureCellVisible(n),n=this.getComponentForCell(n).getCellPosition(),this.ensureCellVisible(n),this.focusedCellController.setFocusedCell(n.rowIndex,n.column,n.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(n))},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;var o=t.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:T._.last(o),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){T._.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,o){var i=this.getComponentForCell(e);i&&i.startRowOrCellEdit(t,o)},t.prototype.getComponentForCell=function(e){var t;switch(e.rowPinned){case h.Constants.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case h.Constants.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.getRowNode=function(e){switch(e.rowPinned){case h.Constants.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case h.Constants.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;this.moveToCellAfter(e,o)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusedCellController.getFocusedCell();if(T._.missing(t))return!1;var o=this.getComponentForCell(t);return!T._.missing(o)&&this.moveToCellAfter(o,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var o=e.getCellPosition();e.stopEditing();var i=this.findNextCellToFocusOn(o,t,!0),n=T._.exists(i);return n&&(i.startEditingIfEnabled(null,null,!0),i.focusCell(!1)),n},t.prototype.moveToNextEditingRow=function(e,t){var o=e.getCellPosition(),i=this.findNextCellToFocusOn(o,t,!0),n=T._.exists(i);return n&&this.moveEditToNextCellOrRow(e,i),n},t.prototype.moveToNextCellNotEditing=function(e,t){var o=e.getCellPosition(),i=this.findNextCellToFocusOn(o,t,!1),n=T._.exists(i);return n&&i.focusCell(!0),n},t.prototype.moveEditToNextCellOrRow=function(e,t){var o=e.getCellPosition(),i=t.getCellPosition();if(o.rowIndex===i.rowIndex&&o.rowPinned===i.rowPinned)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var n=e.getRenderedRow(),r=t.getRenderedRow();e.setFocusOutOnEditor(),n.stopEditing(),r.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,o){for(var i=e;;){t||(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextTabbedCell(i,t);var n=this.gridOptionsWrapper.getTabToNextCellFunc();if(T._.exists(n)){var r=n({backwards:t,editing:o,previousCellPosition:e,nextCellPosition:i||null});T._.exists(r)?(r.floating&&(T._.doOnce((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),r.rowPinned=r.floating),i={rowIndex:r.rowIndex,column:r.column,rowPinned:r.rowPinned}):i=null}if(!i)return null;if(o){var s=this.lookupRowNodeForCell(i);if(!i.column.isCellEditable(s))continue}T._.missing(i.rowPinned)&&this.gridPanel.ensureIndexVisible(i.rowIndex),i.column.isPinned()||this.gridPanel.ensureColumnVisible(i.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(i);if(!T._.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(i),a}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===h.Constants.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===h.Constants.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},r([g.Autowired("paginationProxy"),s("design:type",b.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([g.Autowired("columnController"),s("design:type",m.ColumnController)],t.prototype,"columnController",void 0),r([g.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([g.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([g.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([g.Autowired("pinnedRowModel"),s("design:type",R.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),r([g.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([g.Autowired("loggerFactory"),s("design:type",v.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([g.Autowired("focusedCellController"),s("design:type",C.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([g.Autowired("cellNavigationService"),s("design:type",_.CellNavigationService)],t.prototype,"cellNavigationService",void 0),r([g.Autowired("columnApi"),s("design:type",y.ColumnApi)],t.prototype,"columnApi",void 0),r([g.Autowired("gridApi"),s("design:type",E.GridApi)],t.prototype,"gridApi",void 0),r([g.Autowired("beans"),s("design:type",S.Beans)],t.prototype,"beans",void 0),r([g.Autowired("maxDivHeightScaler"),s("design:type",O.MaxDivHeightScaler)],t.prototype,"maxDivHeightScaler",void 0),r([g.Autowired("animationFrameService"),s("design:type",P.AnimationFrameService)],t.prototype,"animationFrameService",void 0),r([g.Autowired("rowPositionUtils"),s("design:type",A.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),r([g.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),r([a(0,g.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[v.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"agWire",null),r([g.Bean("rowRenderer")],t)}(w.BeanStub);t.RowRenderer=D},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(){function e(){this.cellRanges=[],this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1}return e.prototype.registerGridComp=function(e){this.gridPanel=e,this.autoScrollService=new a(this.gridPanel,this.gridOptionsWrapper)},e.prototype.init=function(){this.logger=this.loggerFactory.create("RangeController"),this.eventService.addEventListener(r.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.removeAllCellRanges.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_GROUP_OPENED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_MOVED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_PINNED,this.refreshLastRangeStart.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_VISIBLE,this.onColumnVisibleChange.bind(this))},e.prototype.onColumnVisibleChange=function(){var e=this;this.refreshLastRangeStart(),this.cellRanges.forEach((function(t){var o=t.columns;if(t.columns=t.columns.filter((function(e){return e.isVisible()})),!r._.compareArrays(o,t.columns)){e.onRangeChanged({started:!1,finished:!0});var i={id:t.id,type:r.Events.EVENT_CHART_RANGE_SELECTION_CHANGED};e.eventService.dispatchEvent(i)}}))},e.prototype.refreshLastRangeStart=function(){var e=r._.last(this.cellRanges);e&&this.refreshRangeStart(e)},e.prototype.isContiguousRange=function(e){var t=e.columns;if(!t.length)return!1;var o=this.columnController.getAllDisplayedColumns(),i=[];return t.forEach((function(e){return i.push(o.indexOf(e))})),i.sort((function(e,t){return e-t})),r._.last(i)-i[0]+1===t.length},e.prototype.getRangeStartRow=function(e){return e.startRow&&e.endRow?this.rowPositionUtils.before(e.startRow,e.endRow)?e.startRow:e.endRow:{rowIndex:0,rowPinned:this.pinnedRowModel.getPinnedTopRowCount()>0?r.Constants.PINNED_TOP:void 0}},e.prototype.getRangeEndRow=function(e){if(e.startRow&&e.endRow)return this.rowPositionUtils.before(e.startRow,e.endRow)?e.endRow:e.startRow;var t=this.pinnedRowModel.getPinnedBottomRowCount();return t>0?{rowIndex:t-1,rowPinned:r.Constants.PINNED_BOTTOM}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:void 0}},e.prototype.setRangeToCell=function(e,t){if(void 0===t&&(t=!1),this.gridOptionsWrapper.isEnableRangeSelection()){var o=this.calculateColumnsBetween(e.column,e.column);if(o){(this.gridOptionsWrapper.isSuppressMultiRangeSelection()||!t||r._.missing(this.cellRanges))&&this.removeAllCellRanges(!0);for(var i,n={rowIndex:e.rowIndex,rowPinned:e.rowPinned},s=0;s<this.cellRanges.length;s++){var a=this.cellRanges[s];if(a.columns&&1===a.columns.length&&a.columns[0]===e.column&&this.rowPositionUtils.sameRow(n,a.startRow)&&this.rowPositionUtils.sameRow(n,a.endRow)){i=a;break}}if(i)r._.last(this.cellRanges)===i||(r._.removeFromArray(this.cellRanges,i),this.cellRanges.push(i));else{var l={startRow:n,endRow:n,columns:o,startColumn:e.column};this.cellRanges.push(l)}this.newestRangeStartCell=e,this.onDragStop(),this.onRangeChanged({started:!1,finished:!0})}}},e.prototype.extendLatestRangeToCell=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=r._.last(this.cellRanges);this.updateRangeEnd({cellRange:t,cellPosition:e})}},e.prototype.updateRangeEnd=function(e){var t=e.cellRange,o=e.cellPosition,i=t.columns.slice(),n=r._.cloneObject(t.endRow),s=o.column,a=this.calculateColumnsBetween(t.startColumn,s);if(a){t.columns=a,t.endRow={rowIndex:o.rowIndex,rowPinned:o.rowPinned},this.onRangeChanged({started:!1,finished:!0});var l=!r._.compareArrays(i,t.columns),p=JSON.stringify(n)!==JSON.stringify(t.endRow);if(l||p){var u={id:t.id,type:r.Events.EVENT_CHART_RANGE_SELECTION_CHANGED};this.eventService.dispatchEvent(u)}}},e.prototype.refreshRangeStart=function(e){var t=e.startColumn,o=e.columns,i=function(t,o){var i=e.columns.filter((function(e){return e!==t}));t?(e.startColumn=t,e.columns=o?[t].concat(i):i.concat([t])):e.columns=i},n=this.getRangeEdgeColumns(e),s=n.left,a=n.right;t===o[0]&&t!==s?i(s,!0):t===r._.last(o)&&t===a&&i(a,!1)},e.prototype.getRangeEdgeColumns=function(e){for(var t=this.columnController.getAllDisplayedColumns(),o=[],i=0,n=e.columns;i<n.length;i++){var s=n[i],a=t.indexOf(s);a>-1&&o.push(a)}return o.sort((function(e,t){return e-t})),{left:t[o[0]],right:t[r._.last(o)]}},e.prototype.extendLatestRangeInDirection=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=r._.last(this.cellRanges),o=this.newestRangeStartCell,i=t.columns[0],n=r._.last(t.columns),s=t.endRow.rowIndex,a=t.endRow.rowPinned,l={column:o.column===i?n:i,rowIndex:s,rowPinned:a},p=this.cellNavigationService.getNextCellToFocus(e,l);if(p)return this.setCellRange({rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:p.rowIndex,rowEndPinned:p.rowPinned,columnStart:o.column,columnEnd:p.column}),p}},e.prototype.setCellRange=function(e){this.gridOptionsWrapper.isEnableRangeSelection()&&(this.removeAllCellRanges(!0),this.addCellRange(e))},e.prototype.setCellRanges=function(e){var t=this;this.removeAllCellRanges(!0),e.forEach((function(e){e.columns&&e.startRow&&(t.newestRangeStartCell={rowIndex:e.startRow.rowIndex,rowPinned:e.startRow.rowPinned,column:e.columns[0]}),t.cellRanges.push(e)})),this.onRangeChanged({started:!1,finished:!0})},e.prototype.createCellRangeFromCellRangeParams=function(e){var t,o=this;if(e.columns)t=[],e.columns.forEach((function(e){var i=o.columnController.getColumnWithValidation(e);i&&t.push(i)}));else{var i=this.columnController.getColumnWithValidation(e.columnStart),n=this.columnController.getColumnWithValidation(e.columnEnd);if(!i||!n)return;t=this.calculateColumnsBetween(i,n)}if(t){var r=void 0;null!=e.rowStartIndex&&(r={rowIndex:e.rowStartIndex,rowPinned:e.rowStartPinned});var s=void 0;return null!=e.rowEndIndex&&(s={rowIndex:e.rowEndIndex,rowPinned:e.rowEndPinned}),{startRow:r,endRow:s,columns:t,startColumn:t[0]}}},e.prototype.addCellRange=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=this.createCellRangeFromCellRangeParams(e);t&&(this.cellRanges.push(t),this.onRangeChanged({started:!1,finished:!0}))}},e.prototype.getCellRanges=function(){return this.cellRanges},e.prototype.isEmpty=function(){return 0===this.cellRanges.length},e.prototype.isMoreThanOneCell=function(){if(0===this.cellRanges.length)return!1;if(this.cellRanges.length>1)return!0;var e=this.cellRanges[0],t=this.getRangeStartRow(e),o=this.getRangeEndRow(e);return t.rowPinned!==o.rowPinned||t.rowIndex!==o.rowIndex||1!==e.columns.length},e.prototype.removeAllCellRanges=function(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.onRangeChanged({started:!1,finished:!0}))},e.prototype.onBodyScroll=function(){this.onDragging(this.lastMouseEvent)},e.prototype.isCellInAnyRange=function(e){return this.getCellRangeCount(e)>0},e.prototype.isCellInSpecificRange=function(e,t){var o=null!==t.columns&&t.columns.indexOf(e.column)>=0,i=this.isRowInRange(e.rowIndex,e.rowPinned,t);return o&&i},e.prototype.getCellRangeCount=function(e){var t=this;if(this.isEmpty())return 0;var o=0;return this.cellRanges.forEach((function(i){t.isCellInSpecificRange(e,i)&&o++})),o},e.prototype.isRowInRange=function(e,t,o){var i=this.getRangeStartRow(o),n=this.getRangeEndRow(o),r={rowIndex:e,rowPinned:t},s=r.rowIndex===i.rowIndex&&r.rowPinned==i.rowPinned,a=r.rowIndex===n.rowIndex&&r.rowPinned==n.rowPinned;if(s||a)return!0;var l=!this.rowPositionUtils.before(r,i),p=this.rowPositionUtils.before(r,n);return l&&p},e.prototype.getDraggingRange=function(){return this.draggingRange},e.prototype.onDragStart=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=e.ctrlKey,o=e.metaKey,i=e.shiftKey,n=t||o,s=!this.gridOptionsWrapper.isSuppressMultiRangeSelection()&&n,a=this.mouseEventService.getCellPositionForEvent(e);if(!r._.missing(a)){if(s||i&&!r._.exists(r._.last(this.cellRanges).type)||this.removeAllCellRanges(!0),this.dragging=!0,this.draggingCell=a,this.lastMouseEvent=e,i||(this.newestRangeStartCell=a),this.cellRanges.length>0)this.draggingRange=r._.last(this.cellRanges);else{var l={rowIndex:a.rowIndex,rowPinned:a.rowPinned};this.draggingRange={startRow:l,endRow:l,columns:[a.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.gridPanel.addScrollEventListener(this.bodyScrollListener),this.onRangeChanged({started:!0,finished:!1})}}},e.prototype.onDragging=function(e){if(this.dragging&&e){this.lastMouseEvent=e;var t=this.mouseEventService.getCellPositionForEvent(e),o=t&&"top"===t.rowPinned&&"top"===this.newestRangeStartCell.rowPinned,i=t&&"bottom"===t.rowPinned&&"bottom"===this.newestRangeStartCell.rowPinned,n=o||i;if(this.autoScrollService.check(e,n),t&&this.draggingCell&&!this.cellPositionUtils.equals(this.draggingCell,t)){var r=this.calculateColumnsBetween(this.newestRangeStartCell.column,t.column);r&&(this.draggingCell=t,this.draggingRange.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},this.draggingRange.columns=r,this.onRangeChanged({started:!1,finished:!1}))}}},e.prototype.onDragStop=function(){this.dragging&&(this.autoScrollService.ensureCleared(),this.gridPanel.removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.draggingCell=void 0,this.onRangeChanged({started:!1,finished:!0}))},e.prototype.onRangeChanged=function(e){var t=e.started,o=e.finished;this.dispatchChangedEvent(t,o)},e.prototype.dispatchChangedEvent=function(e,t){var o={type:r.Events.EVENT_RANGE_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi,started:e,finished:t};this.eventService.dispatchEvent(o)},e.prototype.calculateColumnsBetween=function(e,t){var o=this.columnController.getAllDisplayedColumns(),i=e===t,n=o.indexOf(e),r=i?n:o.indexOf(t);if(n<0)console.warn("ag-Grid: column "+e.getId()+" is not visible");else{if(!(r<0)){if(i)return[e];for(var s=Math.min(n,r),a=s===n?r:n,l=[],p=s;p<=a;p++)l.push(o[p]);return l}console.warn("ag-Grid: column "+t.getId()+" is not visible")}},i([r.Autowired("loggerFactory"),n("design:type",r.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("mouseEventService"),n("design:type",r.MouseEventService)],e.prototype,"mouseEventService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnApi"),n("design:type",r.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("cellNavigationService"),n("design:type",r.CellNavigationService)],e.prototype,"cellNavigationService",void 0),i([r.Autowired("pinnedRowModel"),n("design:type",r.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([r.Autowired("rowPositionUtils"),n("design:type",r.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([r.Autowired("cellPositionUtils"),n("design:type",r.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("rangeController")],e)}();t.RangeController=s;var a=function(){function e(e,t){this.tickingInterval=null,this.gridPanel=e,this.gridOptionsWrapper=t}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var o=this.gridPanel.getBodyClientRect();(t=t||this.gridOptionsWrapper.getDomLayout()!==r.Constants.DOM_LAYOUT_NORMAL)&&!this.gridPanel.isHorizontalScrollShowing()||(this.tickLeft=e.clientX<o.left+20,this.tickRight=e.clientX>o.right-20,this.tickUp=e.clientY<o.top+20&&!t,this.tickDown=e.clientY>o.bottom-20&&!t,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared())},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){this.tickCount++;var e,t=this.gridPanel.getVScrollPosition(),o=this.gridPanel.getHScrollPosition();e=this.tickCount>20?200:this.tickCount>10?80:40,this.tickUp&&this.gridPanel.setVerticalScrollPosition(t.top-e),this.tickDown&&this.gridPanel.setVerticalScrollPosition(t.top+e),this.tickLeft&&this.gridPanel.setHorizontalScrollPosition(o.left-e),this.tickRight&&this.gridPanel.setHorizontalScrollPosition(o.left+e)},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}()},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(6),a=o(3),l=o(23),p=o(24),u=o(5),c=o(10),d=o(0),h=o(7),f=o(46),g=o(9),y=o(2),m=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,o,i){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:i}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var o=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(o)},e.prototype.getRowIndexString=function(){return this.rowPinned===h.Constants.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===h.Constants.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var o=y._.exists(this.id)?this.createDaemonNode():null,i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,o),this.checkRowSelectable();var n=this.createDataChangedEvent(e,i,!1);this.dispatchLocalEvent(n)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&y._.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setRowHeight=function(t,o){void 0===o&&(o=!1),this.rowHeight=t,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(o),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.valueService.setValue(this,o,t),this.dispatchCellChangedEvent(o,t)},e.prototype.setGroupValue=function(e,t){var o=this.columnController.getGridColumn(e);y._.missing(this.groupData)&&(this.groupData={}),this.groupData[o.getColId()]=t,this.dispatchCellChangedEvent(o,t)},e.prototype.setAggData=function(e){var t=this,o=y._.getAllKeysInObjects([this.aggData,e]);this.aggData=e,this.eventService&&o.forEach((function(e){var o=t.columnController.getGridColumn(e),i=t.aggData?t.aggData[e]:void 0;t.dispatchCellChangedEvent(o,i)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyRowGroupNode=function(){return this.group&&y._.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o){var i={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o};this.dispatchLocalEvent(i)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,i=!1;if(this.childrenAfterGroup)for(var n=0;n<this.childrenAfterGroup.length;n++){var r=this.childrenAfterGroup[n];if(r.selectable)switch(r.isSelected()){case!0:t=!0;break;case!1:o=!0;break;default:i=!0}}e=i?void 0:!(!t||o)||!(!t&&o)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===h.Constants.PINNED_TOP||this.rowPinned===h.Constants.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,i=!0===e.clearSelection,n=!0===e.suppressFinishActions,r=!0===e.rangeSelect,a=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(r){var l=this.selectionController.getLastSelectedNode()!==this,p=this.gridOptionsWrapper.isRowSelectionMulti();if(l&&p)return this.doRowRangeSelection()}var u=0;if(a&&this.group||this.selectThisNode(o)&&u++,t&&this.group&&(u+=this.selectChildNodes(o,a)),!n){if(o&&(i||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var c={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(c)}o&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=0,t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=this.selectionController.getLastSelectedNode();this.rowModel.getNodesInRangeForSelection(this,o).forEach((function(o){o.group&&t||o.selectThisNode(!0)&&e++})),this.selectionController.updateGroupsFromChildrenSelections();var i={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(i),e},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var o=t?this.childrenAfterFilter:this.childrenAfterGroup,i=0;if(!y._.missing(o)){for(var n=0;n<o.length;n++)i+=o[n].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return i}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new r.EventService),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,o=this,i=!0,n=!1;i&&!n;){var r=o.parent;y._.exists(r)&&o.firstChild?r.rowGroupColumn===e&&(n=!0,t=r):i=!1,o=r}return n?t:null},e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",i([d.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"mainEventService",void 0),i([d.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("selectionController"),n("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([d.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([d.Autowired("valueService"),n("design:type",p.ValueService)],e.prototype,"valueService",void 0),i([d.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([d.Autowired("context"),n("design:type",d.Context)],e.prototype,"context",void 0),i([d.Autowired("valueCache"),n("design:type",f.ValueCache)],e.prototype,"valueCache",void 0),i([d.Autowired("columnApi"),n("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([d.Autowired("gridApi"),n("design:type",g.GridApi)],e.prototype,"gridApi",void 0),e}();t.RowNode=m},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(0),a=o(0),l=o(14),p=o(4),u=o(6),c=o(0),d=o(3),h=o(0),f=o(7),g=o(10),y=o(9),m=o(2),v=o(85),C=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(u.Events.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(u.Events.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return m._.iterateObject(this.selectedNodes,(function(t,o){o&&e.push(o)})),e},e.prototype.getSelectedRows=function(){var e=[];return m._.iterateObject(this.selectedNodes,(function(t,o){o&&o.data&&e.push(o.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;m._.iterateObject(this.selectedNodes,(function(t,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new v.ChangedPath(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,o={},i=0;return m._.iterateObject(this.selectedNodes,(function(n,r){if(r&&r.id!==e.id){var s=t.selectedNodes[r.id];i+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&r.parent&&(o[r.parent.id]=r.parent)}})),m._.iterateObject(o,(function(e,t){t.calculateSelectedFromChildren()})),i},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){m._.exists(t)&&e.id!==t.id&&m._.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t)},e.prototype.syncInNewRowNode=function(e){m._.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&console.warn("getBestCostNodeSelection is only available when using normal row model");var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(o){for(var i=0,n=o.length;i<n;i++){var r=o[i];r.isSelected()?t.push(r):r.group&&r.children&&e(r.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return m._.iterateObject(this.selectedNodes,(function(t,o){o&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},o=this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else m._.iterateObject(this.selectedNodes,(function(e,o){o&&t(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var i={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,o=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(o):t.forEachNode(o),this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var i={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var o=this.rowModel.getRow(e);this.selectNode(o,t)},i([c.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([c.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("gridOptionsWrapper"),n("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("columnApi"),n("design:type",g.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),n("design:type",y.GridApi)],e.prototype,"gridApi",void 0),i([r(0,a.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[l.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([h.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([s.Bean("selectionController")],e)}();t.SelectionController=C},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(3),s=o(25),a=o(5),l=o(0),p=o(6),u=o(4),c=o(46),d=o(2),h=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,o,i){if(void 0===o&&(o=!1),void 0===i&&(i=!1),this.initialised||this.init(),t){var n,r=e.getColDef(),s=r.field,a=e.getId(),l=t.data,p=t.groupData&&void 0!==t.groupData[a],u=!i&&t.aggData&&void 0!==t.aggData[a];if(o&&r.filterValueGetter?n=this.executeFilterValueGetter(r.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&u?n=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&r.valueGetter?n=this.executeValueGetter(r.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?n=d._.getValueUsingField(l,s,e.isFieldContainsDots()):p?n=t.groupData[a]:u?n=t.aggData[a]:r.valueGetter?n=this.executeValueGetter(r.valueGetter,l,e,t):s&&l&&(n=d._.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof n&&0===n.indexOf("=")){var c=n.substring(1);n=this.executeValueGetter(c,l,e,t)}return n}},e.prototype.setValue=function(e,t,o){var i=this.columnController.getPrimaryColumn(t);if(e&&i){var n=e.data;d._.missing(n)&&(e.data={});var r=i.getColDef(),s=r.field,a=r.newValueHandler,l=r.valueSetter;if(d._.missing(s)&&d._.missing(a)&&d._.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,c={node:e,data:e.data,oldValue:this.getValue(i,e),newValue:o,colDef:i.getColDef(),column:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(c.newValue=o,void 0===(u=a&&d._.exists(a)?a(c):d._.exists(l)?this.expressionService.evaluate(l,c):this.setValueUsingField(n,s,o,i.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(i,e);var h=i.getColDef().onCellValueChanged;"function"==typeof h&&setTimeout((function(){return h(c)}),0);var f={type:p.Events.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,colDef:c.colDef,columnApi:c.columnApi,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue};this.eventService.dispatchEvent(f)}}}},e.prototype.setValueUsingField=function(e,t,o,i){if(!t)return!1;if(i)for(var n=t.split("."),r=e;n.length>0&&r;){var s=n.shift();0===n.length?r[s]=o:r=r[s]}else e[t]=o;return!0},e.prototype.executeFilterValueGetter=function(e,t,o,i){var n={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)};return this.expressionService.evaluate(e,n)},e.prototype.executeValueGetter=function(e,t,o,i){var n=o.getId(),r=this.valueCache.getValue(i,n);if(void 0!==r)return r;var s={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(i,n,a),a},e.prototype.getValueCallback=function(e,t){var o=this.columnController.getPrimaryColumn(t);return o?this.getValue(o,e):null},e.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),i=e.getColDef().keyCreator,n=i?i({value:o}):o;return"string"==typeof n||null==n||"[object Object]"===(n=String(n))&&d._.doOnce((function(){console.warn("ag-Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se ag-Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),n},i([l.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("expressionService"),n("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),i([l.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([l.Autowired("eventService"),n("design:type",u.EventService)],e.prototype,"eventService",void 0),i([l.Autowired("valueCache"),n("design:type",c.ValueCache)],e.prototype,"valueCache",void 0),i([l.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([l.Bean("valueService")],e)}();t.ValueService=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(14),a=o(0),l=o(0),p=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var o=e;return this.evaluateExpression(o,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(t){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Exception = "+t),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},i([r(0,l.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[s.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([a.Bean("expressionService")],e)}();t.ExpressionService=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(4),a=o(6),l=o(3),p=o(10),u=o(5),c=o(9),d=o(59),h=o(2),f=function(){function e(){}return e.prototype.init=function(){this.eventService.addEventListener(a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this))},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCellPosition&&this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var o=this.gridOptionsWrapper.getDomData(t,d.CellComp.DOM_DATA_KEY_CELL_COMP);if(o)return o.getCellPosition();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,o,i){void 0===i&&(i=!1);var n=h._.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:h._.makeNull(o),column:n},this.onCellFocused(i)},e.prototype.isCellFocused=function(e){return!h._.missing(this.focusedCellPosition)&&this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(e,t){if(h._.missing(this.focusedCellPosition))return!1;var o=h._.makeNull(t);return this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===o},e.prototype.onCellFocused=function(e){var t={type:a.Events.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCellPosition&&(t.rowIndex=this.focusedCellPosition.rowIndex,t.column=this.focusedCellPosition.column,t.rowPinned=this.focusedCellPosition.rowPinned),this.eventService.dispatchEvent(t)},i([r.Autowired("eventService"),n("design:type",s.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("focusedCellController")],e)}();t.FocusedCellController=f},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(12),s=o(0),a=o(3),l=o(10),p=o(5),u=o(4),c=o(6),d=o(9),h=o(2),f=function(){function e(){}var t;return t=e,e.prototype.progressSort=function(e,t,o){void 0===o&&(o="api");var i=this.getNextSortDirection(e);this.setSortForColumn(e,i,t,o)},e.prototype.setSortForColumn=function(e,t,o,i){if(void 0===i&&(i="api"),t!==r.Column.SORT_ASC&&t!==r.Column.SORT_DESC&&(t=null),e.setSort(t,i),e.getSort()){var n=Number((new Date).valueOf());e.setSortedAt(n)}else e.setSortedAt(null);o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,i),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:c.Events.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==e&&o.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var o;if(o=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var i,n=o.indexOf(e.getSort()),r=n<0,s=n==o.length-1;return i=r||s?o[0]:o[n+1],t.DEFAULT_SORTING_ORDER.indexOf(i)<0?(console.warn("ag-grid: invalid sort type "+i),null):i},e.prototype.getSortModel=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{colId:e.getColId(),sort:e.getSort()}}))},e.prototype.setSortModel=function(e,t){var o=this;void 0===t&&(t="api");var i=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){var r=null,s=-1;if(i&&n.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof n.getColId()&&o.compareColIds(l,n)&&(r=l.sort,s=a)}r?(n.setSort(r,t),n.setSortedAt(s)):(n.setSort(null,t),n.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns(),t=h._.filter(e,(function(e){return!!e.getSort()}));return t.sort((function(e,t){return e.sortedAt-t.sortedAt})),t},e.prototype.getSortForRowController=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{inverter:e.getSort()===r.Column.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[r.Column.SORT_ASC,r.Column.SORT_DESC,null],i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),n("design:type",u.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("columnApi"),n("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([s.Autowired("gridApi"),n("design:type",d.GridApi)],e.prototype,"gridApi",void 0),t=i([s.Bean("sortController")],e)}();t.SortController=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(98);!function(e){e[e.All=0]="All",e[e.None=1]="None"}(i=t.PointerEvents||(t.PointerEvents={}));var r=function(){function e(){this.id=this.createId(),this.tag=NaN,this.isContainerNode=!1,this._children=[],this.childSet={},this.matrix=new n.Matrix,this.inverseMatrix=new n.Matrix,this._dirtyTransform=!1,this._scalingX=1,this._scalingY=1,this._scalingCenterX=null,this._scalingCenterY=null,this._rotationCenterX=null,this._rotationCenterY=null,this._rotation=0,this._translationX=0,this._translationY=0,this._dirty=!0,this._visible=!0,this.pointerEvents=i.All}return e.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},e.isNode=function(e){return!!e&&void 0!==e.matrix},e.prototype._setScene=function(e){this._scene=e;for(var t=this.children,o=t.length,i=0;i<o;i++)t[i]._setScene(e)},Object.defineProperty(e.prototype,"scene",{get:function(){return this._scene},enumerable:!0,configurable:!0}),e.prototype._setParent=function(e){this._parent=e},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),e.prototype.countChildren=function(t){if(void 0===t&&(t=e.MAX_SAFE_INTEGER),t<=0)return 0;for(var o=this.children,i=o.length,n=i,r=0;r<i;r++)n+=o[r].countChildren(t-1);return n},e.prototype.append=function(t){e.isNode(t)&&(t=[t]);for(var o=t.length,i=0;i<o;i++){var n=t[i];if(n.parent)throw new Error(n+" already belongs to another parent: "+n.parent+".");if(n.scene)throw new Error(n+" already belongs a scene: "+n.scene+".");if(this.childSet[n.id])throw new Error("Duplicate "+n.constructor.name+" node: "+n);this._children.push(n),this.childSet[n.id]=!0,n._setParent(this),n._setScene(this.scene)}this.dirty=!0},e.prototype.appendChild=function(e){if(e.parent)throw new Error(e+" already belongs to another parent: "+e.parent+".");if(e.scene)throw new Error(e+" already belongs a scene: "+e.scene+".");if(this.childSet[e.id])throw new Error("Duplicate "+e.constructor.name+" node: "+e);return this._children.push(e),this.childSet[e.id]=!0,e._setParent(this),e._setScene(this.scene),this.dirty=!0,e},e.prototype.removeChild=function(e){if(e.parent===this){var t=this.children.indexOf(e);if(t>=0)return this._children.splice(t,1),delete this.childSet[e.id],e._setParent(void 0),e._setScene(void 0),this.dirty=!0,e}throw new Error("The node to be removed is not a child of this node.")},e.prototype.insertBefore=function(e,t){var o=e.parent;if(e.parent&&e.parent.removeChild(e),t&&t.parent===this){var i=this.children.indexOf(t);if(!(i>=0))throw new Error(t+" has "+o+" as the parent, but is not in its list of children.");this._children.splice(i,0,e),this.childSet[e.id]=!0,e._setParent(this),e._setScene(this.scene),this.dirty=!0}else this.append(e);return e},e.prototype.transformPoint=function(e,t){for(var o=n.Matrix.flyweight(this.matrix),i=this.parent;i;)o.preMultiplySelf(i.matrix),i=i.parent;return o.invertSelf().transformPoint(e,t)},Object.defineProperty(e.prototype,"dirtyTransform",{get:function(){return this._dirtyTransform},set:function(e){this._dirtyTransform=e,e&&(this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingX",{get:function(){return this._scalingX},set:function(e){this._scalingX!==e&&(this._scalingX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingY",{get:function(){return this._scalingY},set:function(e){this._scalingY!==e&&(this._scalingY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterX",{get:function(){return this._scalingCenterX},set:function(e){this._scalingCenterX!==e&&(this._scalingCenterX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterY",{get:function(){return this._scalingCenterY},set:function(e){this._scalingCenterY!==e&&(this._scalingCenterY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterX",{get:function(){return this._rotationCenterX},set:function(e){this._rotationCenterX!==e&&(this._rotationCenterX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterY",{get:function(){return this._rotationCenterY},set:function(e){this._rotationCenterY!==e&&(this._rotationCenterY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDeg",{get:function(){return this.rotation/Math.PI*180},set:function(e){this.rotation=e/180*Math.PI},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationX",{get:function(){return this._translationX},set:function(e){this._translationX!==e&&(this._translationX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationY",{get:function(){return this._translationY},set:function(e){this._translationY!==e&&(this._translationY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),e.prototype.isPointInNode=function(e,t){return!1},e.prototype.pickNode=function(e,t){if(this.visible&&this.pointerEvents!==i.None&&this.isPointInNode(e,t)){var o=this.children;if(o.length)for(var n=o.length-1;n>=0;n--){var r=o[n].pickNode(e,t);if(r)return r}else if(!this.isContainerNode)return this}},e.prototype.getBBox=function(){},e.prototype.getBBoxCenter=function(){var e=this.getBBox&&this.getBBox();return e?[e.x+.5*e.width,e.y+.5*e.height]:[0,0]},e.prototype.computeTransformMatrix=function(){var e,t,o=[0,0],i=o[0],n=o[1],r=this.scalingX,s=this.scalingY;1===r&&1===s?(e=0,t=0):(e=null===this.scalingCenterX?i:this.scalingCenterX,t=null===this.scalingCenterY?n:this.scalingCenterY);var a,l,p=this.rotation,u=Math.cos(p),c=Math.sin(p);0===p?(a=0,l=0):(a=null===this.rotationCenterX?i:this.rotationCenterX,l=null===this.rotationCenterY?n:this.rotationCenterY);var d=this.translationX,h=this.translationY,f=e*(1-r)-a,g=t*(1-s)-l;this.dirtyTransform=!1,this.matrix.setElements([u*r,c*r,-c*s,u*s,u*f-c*g+a+d,c*f+u*g+l+h]).inverseTo(this.inverseMatrix)},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(e){this._dirty=e,e&&(this.parent?this.parent.dirty=!0:this.scene&&(this.scene.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible!==e&&(this._visible=e,this.dirty=!0)},enumerable:!0,configurable:!0}),e.MAX_SAFE_INTEGER=Math.pow(2,53)-1,e}();t.Node=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o,i){this.x=e,this.y=t,this.width=o,this.height=i}return e.prototype.dilate=function(e){this.x-=e,this.y-=e,this.width+=2*e,this.height+=2*e},e.prototype.containsPoint=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.render=function(t,o){void 0===o&&(o=e.noParams),t.save(),o.resetTransform&&t.setTransform(1,0,0,1,0,0),t.strokeStyle=o.strokeStyle||"cyan",t.lineWidth=o.lineWidth||1,t.strokeRect(this.x,this.y,this.width,this.height),o.label&&(t.fillStyle=o.fillStyle||"black",t.textBaseline="bottom",t.fillText(o.label,this.x,this.y)),t.restore()},e.noParams={},e}();t.BBox=i},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(3),s=o(22),a=o(0),l=o(4),p=o(6),u=o(7),c=o(10),d=o(9),h=o(2),f=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return h._.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var o=t===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(h._.missingOrEmpty(o))return 0;for(var i=0;i<o.length;i++){var n=o[i];if(n.rowTop+n.rowHeight-1>=e)return i}return o.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var o=this,i=[];if(e){var n=0;e.forEach((function(e,r){var a=new s.RowNode;o.context.wireBean(a),a.data=e,a.id=(t?"t":"b")+"-"+r,a.rowPinned=t?u.Constants.PINNED_TOP:u.Constants.PINNED_BOTTOM,a.setRowTop(n),a.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(r),n+=a.rowHeight,i.push(a)}))}return i},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){h._.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){h._.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=h._.last(e);return t.rowTop+t.rowHeight}return 0},i([a.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("columnApi"),n("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),n("design:type",d.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([a.Bean("pinnedRowModel")],e)}();t.PinnedRowModel=f},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(15),l=o(4),p=o(6),u=o(0),c=o(3),d=o(23),h=o(10),f=o(9),g=o(2),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return n(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,o,i){var n=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return n&&this.calculatePages(),n},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:p.Events.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:p.Events.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return g._.missing(this.topRowBounds)||g._.missing(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.pixelOffset=g._.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},t.prototype.setZeroRows=function(){this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!g._.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>e&&(o=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),o===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var i=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=i-1}}else this.setZeroRows()},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!g._.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},r([u.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("selectionController"),s("design:type",d.SelectionController)],t.prototype,"selectionController",void 0),r([u.Autowired("columnApi"),s("design:type",h.ColumnApi)],t.prototype,"columnApi",void 0),r([u.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),r([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([u.Bean("paginationProxy")],t)}(a.BeanStub);t.PaginationProxy=y},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(0),a=o(3),l=o(60),p=o(4),u=o(6),c=o(2),d=function(){function e(){this.popupList=[]}return e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getDocument=function(){return this.gridOptionsWrapper.getDocument()},e.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),n=this.getPopupParent();t=n===i.body?i.documentElement.getBoundingClientRect():n.getBoundingClientRect();var r=o.top-t.top;r=this.keepYWithinBounds(e,r);var s=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=s+"px";var a,l=t.right-t.left-s;function p(){return o.right-t.left-2}function u(){return o.left-t.left-s}this.gridOptionsWrapper.isEnableRtl()?((a=u())<0&&(a=p()),a>l&&(a=0)):((a=p())>l&&(a=u()),a<0&&(a=0)),e.ePopup.style.left=a+"px",e.ePopup.style.top=r+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),o=t.x,i=t.y,n=e.ePopup,r=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:n,x:o,y:i,nudgeX:r,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getDocument(),o=this.getPopupParent(),i=o.getBoundingClientRect(),n=t.documentElement.getBoundingClientRect();return{x:e.clientX-(o===t.body?n.left:i.left),y:e.clientY-(o===t.body?n.top:i.top)}},e.prototype.positionPopupUnderComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),n=this.getPopupParent(),r=e.alignSide||"left";t=n===i.body?i.documentElement.getBoundingClientRect():n.getBoundingClientRect();var s=o.left-t.left;"right"===r&&(s-=e.ePopup.offsetWidth-o.width),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:s,y:o.top-t.top+o.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopupOverComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),i=this.getDocument(),n=this.getPopupParent();t=n===i.body?i.documentElement.getBoundingClientRect():n.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-t.left,y:o.top-t.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,o,i,n,r){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:n,rowNode:r,ePopup:e,type:i,eventSource:t,mouseEvent:o})},e.prototype.positionPopup=function(e){var t=e.x,o=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(o+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),o=this.keepYWithinBounds(e,o)),e.ePopup.style.left=t+"px",e.ePopup.style.top=o+"px"},e.prototype.keepYWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),i=o.documentElement,n=this.getPopupParent(),r=n.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=n===o.body,l=Math.min(200,r.height),p=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,p=c._.getAbsoluteHeight(e.ePopup)-l);var u=a?c._.getAbsoluteHeight(i)+i.scrollTop:r.height;a&&(u-=Math.abs(s.top-r.top));var d=u-l-p-3;return Math.min(Math.max(t,0),Math.abs(d))},e.prototype.keepXWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),i=o.documentElement,n=this.getPopupParent(),r=n.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=n===o.body,l=e.ePopup,p=Math.min(200,r.width),u=0;e.minWidth&&e.minWidth<p?p=e.minWidth:l.offsetWidth>0&&(p=l.offsetWidth,l.style.minWidth=p+"px",u=c._.getAbsoluteWidth(l)-p);var d=a?c._.getAbsoluteWidth(i)+i.scrollLeft:r.width;a&&(d-=Math.abs(s.left-r.left));var h=d-p-u-3;return Math.min(Math.max(t,0),Math.abs(h))},e.prototype.addAsModalPopup=function(e,t,o,i){return this.addPopup(!0,e,t,o,i)},e.prototype.addPopup=function(e,t,o,i,n,s){var a=this,l=this.gridOptionsWrapper.getDocument();if(!l)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var p=c._.findIndex(this.popupList,(function(e){return e.element===t}));if(-1!==p)return this.popupList[p].hideFunc;var d=this.getPopupParent();d.appendChild(t),t.style.top="0px",t.style.left="0px";var h=document.createElement("div"),f=this.environment.getTheme().theme;f&&c._.addCssClass(h,f),c._.addCssClass(h,"ag-popup"),c._.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),h.appendChild(t),d.appendChild(h),s?this.setAlwaysOnTop(h,!0):this.bringPopupToFront(h);var g=!1,y=function(e){(e.which||e.keyCode)===r.Constants.KEY_ESCAPE&&h.contains(document.activeElement)&&C(null)},m=function(e){C(e)},v=function(e){C(null,e)},C=function(e,o){a.isEventFromCurrentPopup(e,o,t)||a.isEventSameChainAsOriginalEvent(n,e,o)||g||(g=!0,d.removeChild(h),l.removeEventListener("keydown",y),l.removeEventListener("mousedown",m),l.removeEventListener("touchstart",v),l.removeEventListener("contextmenu",m),a.eventService.removeEventListener(u.Events.EVENT_DRAG_STARTED,m),i&&i(),a.popupList=a.popupList.filter((function(e){return e.element!==t})))};return window.setTimeout((function(){o&&l.addEventListener("keydown",y),e&&(l.addEventListener("mousedown",m),a.eventService.addEventListener(u.Events.EVENT_DRAG_STARTED,m),l.addEventListener("touchstart",v),l.addEventListener("contextmenu",m))}),0),this.popupList.push({element:t,hideFunc:C}),C},e.prototype.isEventFromCurrentPopup=function(e,t,o){var i=e||t;if(!i)return!1;var n=c._.findIndex(this.popupList,(function(e){return e.element===o}));if(-1===n)return!1;for(var r=n;r<this.popupList.length;r++){var s=this.popupList[r];if(c._.isElementInEventPath(s.element,i))return!0}for(var a=i.target;a&&a!=document.body;){if(a.classList.contains("ag-custom-component-popup")||null===a.parentElement)return!0;a=a.parentElement}},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,o){var i=null;if(t?i=t:o&&(i=o.touches[0]),i&&e){var n=t?t.screenX:0,r=t?t.screenY:0,s=Math.abs(e.screenX-n)<5,a=Math.abs(e.screenY-r)<5;if(s&&a)return!0}return!1},e.prototype.getWrapper=function(e){for(;!c._.containsClass(e,"ag-popup")&&e.parentElement;)e=e.parentElement;return c._.containsClass(e,"ag-popup")?e:null},e.prototype.setAlwaysOnTop=function(e,t){var o=this.getWrapper(e);o&&(c._.addOrRemoveCssClass(o,"ag-always-on-top",!!t),t&&this.bringPopupToFront(o))},e.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=o.length,n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),r=n.length,s=this.getWrapper(e);if(s&&!(i<=1)&&t.contains(e)){var a=o.indexOf(s);r?c._.containsClass(s,"ag-always-on-top")?a!==i-1&&c._.last(n).insertAdjacentElement("afterend",s):a!==i-r-1&&n[0].insertAdjacentElement("beforebegin",s):a!==i-1&&c._.last(o).insertAdjacentElement("afterend",s);var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("environment"),n("design:type",l.Environment)],e.prototype,"environment",void 0),i([s.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.Bean("popupService")],e)}();t.PopupService=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(11),p=o(181),u=o(88),c=o(2);!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(a=t.ConditionPosition||(t.ConditionPosition={}));var d={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.showValueFrom=function(e){return!this.doesFilterHaveHiddenInput(e)&&e!==t.EMPTY},t.prototype.showValueTo=function(e){return e===t.IN_RANGE},t.prototype.onFloatingFilterChanged=function(e,t){this.setValueFromFloatingFilter(t),this.setTypeFromFloatingFilter(e),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.value=e,this.eType2.value=null,this.eJoinOperatorAnd.checked=!0},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(a.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(a.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(a.One),condition2:this.createCondition(a.Two)}:this.createCondition(a.One):null},t.prototype.getCondition1Type=function(){return this.eType1.value},t.prototype.getCondition2Type=function(){return this.eType2.value},t.prototype.getJoinOperator=function(){return this.eJoinOperatorOr.checked?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var o,i=!e.operator,n=!t.operator;if(!i&&n||i&&!n)return!1;if(i){var r=e,s=t;o=this.areSimpleModelsEqual(r,s)}else{var a=e,l=t;o=a.operator===l.operator&&this.areSimpleModelsEqual(a.condition1,l.condition1)&&this.areSimpleModelsEqual(a.condition2,l.condition2)}return o},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,o="OR"===t.operator;this.eJoinOperatorAnd.checked=!o,this.eJoinOperatorOr.checked=o,this.eType1.value=t.condition1.type,this.eType2.value=t.condition2.type,this.setConditionIntoUi(t.condition1,a.One),this.setConditionIntoUi(t.condition2,a.Two)}else{var i=e;this.eJoinOperatorAnd.checked=!0,this.eJoinOperatorOr.checked=!1,this.eType1.value=i.type,this.eType2.value=this.optionsFactory.getDefaultOption(),this.setConditionIntoUi(i,a.One),this.setConditionIntoUi(null,a.Two)}},t.prototype.doesFilterPass=function(e){var t=this.getModel();if(t.operator){var o=t,i=this.individualConditionPasses(e,o.condition1),n=this.individualConditionPasses(e,o.condition2);return"AND"===o.operator?i&&n:i||n}var r=t;return this.individualConditionPasses(e,r)},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.simpleFilterParams=t,this.optionsFactory=new p.OptionsFactory,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions();t.forEach((function(t){var o=function(){var o="string"==typeof t?t:t.displayKey,i=e.translate(o),n=document.createElement("option");return n.text=i,n.value=o,n};e.eType1.add(o()),e.eType2.add(o())}));var o=t.length<=1;this.eType1.disabled=o,this.eType2.disabled=o},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){var e=this.createValueTemplate(a.One),t=this.createValueTemplate(a.Two),o="ag-simple-filter-and-or-"+this.getCompId(),i=this.gridOptionsWrapper.getLocaleTextFunc();return'<select class="ag-filter-select" ref="eOptions1"></select>\n '+e+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <label>\n <input ref="eJoinOperatorAnd" type="radio" class="and" name="'+o+'" value="AND")} checked="checked" />\n '+i("andCondition","AND")+'\n </label>\n <label>\n <input ref="eJoinOperatorOr" type="radio" class="or" name="'+o+'" value="OR" />\n '+i("orCondition","OR")+'\n </label>\n </div>\n <select class="ag-filter-select" ref="eOptions2"></select>\n '+t},t.prototype.updateUiVisibility=function(){var e=this.isConditionUiComplete(a.One),t=this.allowTwoConditions&&e;c._.setDisplayed(this.eCondition2Body,t),c._.setDisplayed(this.eType2,t),c._.setDisplayed(this.eJoinOperatorPanel,t)},t.prototype.resetUiToDefaults=function(){this.eJoinOperatorAnd.checked=!0;var e=this.optionsFactory.getDefaultOption();this.eType1.value=e,this.eType2.value=e},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=d[e];return!o&&this.optionsFactory.getCustomOption(e)&&(o=this.optionsFactory.getCustomOption(e).displayName),t(e,o)},t.prototype.addChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eType1,"change",t),this.addDestroyableEventListener(this.eType2,"change",t),this.addDestroyableEventListener(this.eJoinOperatorOr,"change",t),this.addDestroyableEventListener(this.eJoinOperatorAnd,"change",t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",r([l.RefSelector("eOptions1"),s("design:type",HTMLSelectElement)],t.prototype,"eType1",void 0),r([l.RefSelector("eOptions2"),s("design:type",HTMLSelectElement)],t.prototype,"eType2",void 0),r([l.RefSelector("eJoinOperatorAnd"),s("design:type",HTMLInputElement)],t.prototype,"eJoinOperatorAnd",void 0),r([l.RefSelector("eJoinOperatorOr"),s("design:type",HTMLInputElement)],t.prototype,"eJoinOperatorOr",void 0),r([l.RefSelector("eCondition2Body"),s("design:type",HTMLElement)],t.prototype,"eCondition2Body",void 0),r([l.RefSelector("eJoinOperatorPanel"),s("design:type",HTMLElement)],t.prototype,"eJoinOperatorPanel",void 0),t}(u.ProvidedFilter);t.SimpleFilter=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(28),n=function(){function e(e,t){this.next=null,this.scene=e.scene,this.parent=e,this.datum=t}return e.prototype.appendChild=function(e){if(null===this.next)return this.parent.insertBefore(e,null);if(!i.Node.isNode(this.next))throw new Error(this.next+" is not a Node.");return this.parent.insertBefore(e,this.next)},e.prototype.insertBefore=function(e,t){return this.parent.insertBefore(e,t)},e}();t.EnterNode=n;var r=function(){function e(e,t){this.groups=e,this.parents=t}return e.select=function(t){return new e([["function"==typeof t?t():t]],[void 0])},e.selectAll=function(t){return new e([null==t?[]:t],[void 0])},e.prototype.append=function(e){return this.select((function(t){return t.appendChild(new e)}))},e.prototype.appendFn=function(e){return this.select((function(t,o,i,n){return t.appendChild(e(t,o,i,n))}))},e.prototype.select=function(t){for(var o=this.groups,i=o.length,n=[],r=0;r<i;r++)for(var s=o[r],a=s.length,l=n[r]=new Array(a),p=0;p<a;p++){var u=s[p];if(u){var c=t(u,u.datum,p,s);c&&(c.datum=u.datum),l[p]=c}}return new e(n,this.parents)},e.prototype.selectByClass=function(e){return this.select((function(t){if(i.Node.isNode(t))for(var o=t.children,n=o.length,r=0;r<n;r++){var s=o[r];if(s instanceof e)return s}}))},e.prototype.selectByTag=function(e){return this.select((function(t){if(i.Node.isNode(t))for(var o=t.children,n=o.length,r=0;r<n;r++){var s=o[r];if(s.tag===e)return s}}))},e.prototype.selectAllByClass=function(e){return this.selectAll((function(t){var o=[];if(i.Node.isNode(t))for(var n=t.children,r=n.length,s=0;s<r;s++){var a=n[s];a instanceof e&&o.push(a)}return o}))},e.prototype.selectAllByTag=function(e){return this.selectAll((function(t){var o=[];if(i.Node.isNode(t))for(var n=t.children,r=n.length,s=0;s<r;s++){var a=n[s];a.tag===e&&o.push(a)}return o}))},e.prototype.selectNone=function(){return[]},e.prototype.selectAll=function(t){t||(t=this.selectNone);for(var o=[],i=[],n=this.groups,r=n.length,s=0;s<r;s++)for(var a=n[s],l=a.length,p=0;p<l;p++){var u=a[p];u&&(o.push(t(u,u.datum,p,a)),i.push(u))}return new e(o,i)},e.prototype.each=function(e){for(var t=this.groups,o=t.length,i=0;i<o;i++)for(var n=t[i],r=n.length,s=0;s<r;s++){var a=n[s];a&&e(a,a.datum,s,n)}return this},e.prototype.remove=function(){return this.each((function(e){if(i.Node.isNode(e)){var t=e.parent;t&&t.removeChild(e)}}))},e.prototype.merge=function(t){for(var o=this.groups,i=t.groups,n=o.length,r=i.length,s=Math.min(n,r),a=new Array(n),l=0;l<s;l++)for(var p=o[l],u=i[l],c=p.length,d=a[l]=new Array(c),h=0;h<c;h++){var f=p[h]||u[h];d[h]=f||void 0}for(;l<n;l++)a[l]=o[l];return new e(a,this.parents)},e.prototype.node=function(){for(var e=this.groups,t=e.length,o=0;o<t;o++)for(var i=e[o],n=i.length,r=0;r<n;r++){var s=i[r];if(s)return s}return null},e.prototype.attr=function(e,t){return this.each((function(o){o[e]=t})),this},e.prototype.attrFn=function(e,t){return this.each((function(o,i,n,r){o[e]=t(o,i,n,r)})),this},e.prototype.call=function(e){return e(this),this},Object.defineProperty(e.prototype,"size",{get:function(){var e=0;return this.each((function(){return e++})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){var e=[];return this.each((function(t,o){return e.push(o)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enter",{get:function(){return new e(this.enterGroups?this.enterGroups:[[]],this.parents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exit",{get:function(){return new e(this.exitGroups?this.exitGroups:[[]],this.parents)},enumerable:!0,configurable:!0}),e.prototype.setDatum=function(e){return this.each((function(t){t.datum=e}))},Object.defineProperty(e.prototype,"datum",{get:function(){var e=this.node();return e?e.datum:null},enumerable:!0,configurable:!0}),e.prototype.setData=function(t,o){if("function"!=typeof t){var i=t;t=function(){return i}}for(var n=this.groups,r=this.parents,s=n.length,a=new Array(s),l=new Array(s),p=new Array(s),u=0;u<s;u++){var c=n[u],d=r[u];if(!d)throw new Error("Group #"+u+" has no parent: "+c);var h=c.length,f=t(d,d.datum,u,r),g=f.length,y=l[u]=new Array(g),m=a[u]=new Array(g),v=p[u]=new Array(h);o?this.bindKey(d,c,y,m,v,f,o):this.bindIndex(d,c,y,m,v,f);for(var C=0,_=0;C<g;C++){var w=y[C];if(w){C>=_&&(_=C+1);for(var b=void 0;!(b=m[_])&&_<g;)_++;w.next=b||null}}}var E=new e(a,r);return E.enterGroups=l,E.exitGroups=p,E},e.prototype.bindIndex=function(e,t,o,i,r,s){for(var a=t.length,l=s.length,p=0;p<l;p++)(u=t[p])?(u.datum=s[p],i[p]=u):o[p]=new n(e,s[p]);for(;p<a;p++){var u;(u=t[p])&&(r[p]=u)}},e.prototype.bindKey=function(t,o,i,r,s,a,l){for(var p=o.length,u=a.length,c=new Array(p),d={},h=0;h<p;h++)(g=o[h])&&((f=c[h]=e.keyPrefix+l(g,g.datum,h,o))in d?s[h]=g:d[f]=g);for(h=0;h<u;h++){var f;(g=d[f=e.keyPrefix+l(t,a[h],h,a)])?(r[h]=g,g.datum=a[h],d[f]=void 0):i[h]=new n(t,a[h])}for(h=0;h<p;h++){var g;(g=o[h])&&d[c[h]]===g&&(s[h]=g)}},e.keyPrefix="$",e}();t.Selection=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e}();t.Events=i},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(12),s=o(4),a=o(0),l=o(3),p=o(2),u=function(){function e(e,t,o,i){this.displayedChildren=[],this.localEventService=new s.EventService,this.groupId=t,this.instanceId=o,this.originalColumnGroup=e,this.pinned=i}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();if(!e||0===e.length)return!1;var t=!0;return e.forEach((function(e){e.isMoving()||(t=!1)})),t},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=p._.last(this.displayedChildren).getLeft();this.setLeft(t)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach((function(i){t===i&&(o=!0),i instanceof e&&i.isChildInThisGroupDeepSearch(t)&&(o=!0)})),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(o){o instanceof r.Column?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(o){o instanceof r.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var o=this;if(this.isPadding())for(;o.getParent()&&o.isPadding();)o=o.getParent();o.originalColumnGroup.isExpandable()?this.children.forEach((function(i){switch(i.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:o.originalColumnGroup.isExpanded()&&t.displayedChildren.push(i);break;case e.HEADER_GROUP_SHOW_CLOSED:o.originalColumnGroup.isExpanded()||t.displayedChildren.push(i);break;default:t.displayedChildren.push(i)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.HEADER_GROUP_PADDING="padding",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.ColumnGroup=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(14),a=o(4),l=o(6),p=o(3),u=o(10),c=o(9),d=o(2),h=function(){function e(){this.onMouseUpListener=this.onMouseUp.bind(this),this.onMouseMoveListener=this.onMouseMove.bind(this),this.onTouchEndListener=this.onTouchUp.bind(this),this.onTouchMoveListener=this.onTouchMove.bind(this),this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var i=e.touchStartListener;t.removeEventListener("touchstart",i,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=d._.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),d._.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");d._.exists(t)&&d._.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var i=null,n=this.gridOptionsWrapper.isSuppressTouch();t&&!n&&(i=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",i,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:i,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var i=t.touches[0];this.touchLastTime=i,this.touchStart=i,t.preventDefault(),e.eElement.addEventListener("touchmove",this.onTouchMoveListener,{passive:!0}),e.eElement.addEventListener("touchend",this.onTouchEndListener,{passive:!0}),e.eElement.addEventListener("touchcancel",this.onTouchEndListener,{passive:!0}),this.dragEndFunctions.push((function(){e.eElement.removeEventListener("touchmove",o.onTouchMoveListener,{passive:!0}),e.eElement.removeEventListener("touchend",o.onTouchEndListener,{passive:!0}),e.eElement.removeEventListener("touchcancel",o.onTouchEndListener,{passive:!0})})),0===e.dragStartPixels&&this.onCommonMove(i,this.touchStart)},e.prototype.onMouseDown=function(e,t){var o=this;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||t._alreadyProcessedByDragService||(t._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var i=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0),i.addEventListener("mousemove",this.onMouseMoveListener),i.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push((function(){i.removeEventListener("mousemove",o.onMouseMoveListener),i.removeEventListener("mouseup",o.onMouseUpListener)})),0===e.dragStartPixels&&this.onMouseMove(t)}},e.prototype.isEventNearStartEvent=function(e,t){var o=this.currentDragParams.dragStartPixels,i=d._.exists(o)?o:4;return d._.areEventsNear(e,t,i)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:l.Events.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e){var t=this.getFirstActiveTouch(e.touches);t&&this.onCommonMove(t,this.touchStart)},e.prototype.onMouseMove=function(e){this.onCommonMove(e,this.mouseStartEvent)},e.prototype.onTouchUp=function(e){var t=this.getFirstActiveTouch(e.changedTouches);t||(t=this.touchLastTime),this.onUpCommon(t)},e.prototype.onMouseUp=function(e){this.onUpCommon(e)},e.prototype.onUpCommon=function(e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var t={type:l.Events.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},i([r.Autowired("loggerFactory"),n("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("eventService"),n("design:type",a.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnApi"),n("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),i([r.Bean("dragService")],e)}();t.DragService=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(10),a=o(5),l=o(9),p=o(3),u=o(25),c=o(20),d=o(128),h=o(24),f=o(4),g=o(86),y=o(26),m=o(87),v=o(32),C=o(62),_=o(141),w=o(64),b=o(31),E=o(48),R=o(19),S=o(18),P=o(27),O=o(17),T=o(89),A=o(142),D=o(187),x=o(143),F=o(90),M=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},i([r.Autowired("paginationProxy"),n("design:type",b.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnApi"),n("design:type",s.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",l.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",u.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Autowired("rowRenderer"),n("design:type",c.RowRenderer)],e.prototype,"rowRenderer",void 0),i([r.Autowired("$compile"),n("design:type",Object)],e.prototype,"$compile",void 0),i([r.Autowired("templateService"),n("design:type",d.TemplateService)],e.prototype,"templateService",void 0),i([r.Autowired("valueService"),n("design:type",h.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("eventService"),n("design:type",f.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnAnimationService"),n("design:type",g.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([r.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([r.Autowired("focusedCellController"),n("design:type",y.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([r.Optional("contextMenuFactory"),n("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([r.Autowired("cellRendererFactory"),n("design:type",m.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([r.Autowired("popupService"),n("design:type",v.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("valueFormatterService"),n("design:type",C.ValueFormatterService)],e.prototype,"valueFormatterService",void 0),i([r.Autowired("stylingService"),n("design:type",_.StylingService)],e.prototype,"stylingService",void 0),i([r.Autowired("columnHoverService"),n("design:type",w.ColumnHoverService)],e.prototype,"columnHoverService",void 0),i([r.Autowired("enterprise"),n("design:type",Boolean)],e.prototype,"enterprise",void 0),i([r.Autowired("userComponentFactory"),n("design:type",R.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([r.Autowired("animationFrameService"),n("design:type",E.AnimationFrameService)],e.prototype,"taskQueue",void 0),i([r.Autowired("dragAndDropService"),n("design:type",S.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([r.Autowired("sortController"),n("design:type",P.SortController)],e.prototype,"sortController",void 0),i([r.Autowired("filterManager"),n("design:type",O.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("maxDivHeightScaler"),n("design:type",T.MaxDivHeightScaler)],e.prototype,"maxDivHeightScaler",void 0),i([r.Autowired("tooltipManager"),n("design:type",A.TooltipManager)],e.prototype,"tooltipManager",void 0),i([r.Autowired("frameworkOverrides"),n("design:type",Object)],e.prototype,"frameworkOverrides",void 0),i([r.Autowired("detailRowCompCache"),n("design:type",D.DetailRowCompCache)],e.prototype,"detailRowCompCache",void 0),i([r.Autowired("cellPositionUtils"),n("design:type",x.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([r.Autowired("rowPositionUtils"),n("design:type",F.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("beans")],e)}();t.Beans=M},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(145),s=o(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.onValueChange=function(e){var o=this;return this.addDestroyableEventListener(this,t.EVENT_CHANGED,(function(){e(o.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return s._.setFixedWidth(this.getGui(),e),this},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,o){return this.value===e||(this.value=e,o||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.EVENT_CHANGED="valueChange",t}(r.AgAbstractLabel);t.AgAbstractField=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(){function e(){this.aggFuncsMap={},this.initialised=!1}var t;return t=e,e.prototype.init=function(){this.initialised||(this.initialised=!0,this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs()))},e.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[t.AGG_SUM]=a,this.aggFuncsMap[t.AGG_FIRST]=l,this.aggFuncsMap[t.AGG_LAST]=p,this.aggFuncsMap[t.AGG_MIN]=u,this.aggFuncsMap[t.AGG_MAX]=c,this.aggFuncsMap[t.AGG_COUNT]=d,this.aggFuncsMap[t.AGG_AVG]=h},e.prototype.getDefaultAggFunc=function(e){var o=this.getFuncNames(e),i=o.indexOf(t.AGG_SUM)>=0,n=r._.exists(this.aggFuncsMap[t.AGG_SUM]);return i&&n?t.AGG_SUM:r._.existsAndNotEmpty(o)?o[0]:null},e.prototype.addAggFuncs=function(e){r._.iterateObject(e,this.addAggFunc.bind(this))},e.prototype.addAggFunc=function(e,t){this.init(),this.aggFuncsMap[e]=t},e.prototype.getAggFunc=function(e){return this.init(),this.aggFuncsMap[e]},e.prototype.getFuncNames=function(e){var t=e.getColDef().allowedAggFuncs;return r._.exists(t)&&t?t:Object.keys(this.aggFuncsMap).sort()},e.prototype.clear=function(){this.aggFuncsMap={}},e.AGG_SUM="sum",e.AGG_FIRST="first",e.AGG_LAST="last",e.AGG_MIN="min",e.AGG_MAX="max",e.AGG_COUNT="count",e.AGG_AVG="avg",i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),t=i([r.Bean("aggFuncService")],e)}();function a(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t?t=e[i]:t+=e[i]);return t}function l(e){return e.length>=0?e[0]:null}function p(e){return e.length>=0?r._.last(e):null}function u(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t||t>e[i])&&(t=e[i]);return t}function c(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t||t<e[i])&&(t=e[i]);return t}function d(e){for(var t={value:0,toString:function(){return this.value.toString()},toNumber:function(){return this.value}},o=e.length,i=0;i<o;i++)r._.exists(e[i])&&"number"==typeof e[i].value?t.value+=e[i].value:t.value++;return t}function h(e){for(var t=0,o=0,i=e.length,n=0;n<i;n++){var s=e[n],a=r._.exists(s)&&"number"==typeof s.value&&"number"==typeof s.count;"number"==typeof s?(t+=s,o++):a&&(t+=s.value*s.count,o+=s.count)}var l=null;return 0!==o&&(l=t/o),{count:o,value:l,toString:function(){return"number"==typeof this.value?this.value.toString():""},toNumber:function(){return this.value}}}t.AggFuncService=s},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(28),s=o(99),a=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o._fillOpacity=1,o._strokeOpacity=1,o._fill=t.defaultStyles.fill,o._stroke=t.defaultStyles.stroke,o._strokeWidth=t.defaultStyles.strokeWidth,o._lineDash=t.defaultStyles.lineDash,o._lineDashOffset=t.defaultStyles.lineDashOffset,o._lineCap=t.defaultStyles.lineCap,o._lineJoin=t.defaultStyles.lineJoin,o._opacity=t.defaultStyles.opacity,o._fillShadow=t.defaultStyles.fillShadow,o._strokeShadow=t.defaultStyles.strokeShadow,o}return n(t,e),t.prototype.restoreOwnStyles=function(){for(var e=this.constructor.defaultStyles,t=Object.getOwnPropertyNames(e),o=0,i=t.length;o<i;o++){var n=t[o];this[n]=e[n]}},t.prototype.restoreAllStyles=function(){var e=this.constructor.defaultStyles;for(var t in e)this[t]=e[t]},t.prototype.restoreOverriddenStyles=function(){var e=this.constructor.defaultStyles,t=Object.getPrototypeOf(e);for(var o in e)e.hasOwnProperty(o)&&t.hasOwnProperty(o)&&(this[o]=e[o])},Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineDash",{get:function(){return this._lineDash},set:function(e){var t=this._lineDash;if(t!==e){if(t&&e&&t.length===e.length){for(var o=!0,i=e.length,n=0;n<i;n++)if(t[n]!==e[n]){o=!1;break}if(o)return}this._lineDash=e,this.dirty=!0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineDashOffset",{get:function(){return this._lineDashOffset},set:function(e){this._lineDashOffset!==e&&(this._lineDashOffset=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function(){return this._lineCap},set:function(e){this._lineCap!==e&&(this._lineCap=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacity},set:function(e){e=Math.min(1,Math.max(0,e)),this._opacity!==e&&(this._opacity=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillShadow",{get:function(){return this._fillShadow},set:function(e){var t=this,o=this._fillShadow;o!==e&&(o&&(o.onChange=void 0),e&&(e.onChange=function(){return t.dirty=!0}),this._fillShadow=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeShadow",{get:function(){return this._strokeShadow},set:function(e){var t=this,o=this._strokeShadow;o!==e&&(o&&(o.onChange=void 0),e&&(e.onChange=function(){return t.dirty=!0}),this._strokeShadow=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.fillStroke=function(e){if(this.scene){var t=this.scene.canvas.pixelRatio||1;if(this.fill){e.fillStyle=this.fill,e.globalAlpha=this.opacity*this.fillOpacity;var o=this.fillShadow;o&&o.enabled&&(e.shadowColor=o.color,e.shadowOffsetX=o.xOffset*t,e.shadowOffsetY=o.yOffset*t,e.shadowBlur=o.blur*t),e.fill()}if(e.shadowColor="rgba(0, 0, 0, 0)",this.stroke&&this.strokeWidth){e.strokeStyle=this.stroke,e.globalAlpha=this.opacity*this.strokeOpacity,e.lineWidth=this.strokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin);var i=this.strokeShadow;i&&i.enabled&&(e.shadowColor=i.color,e.shadowOffsetX=i.xOffset*t,e.shadowOffsetY=i.yOffset*t,e.shadowBlur=i.blur*t),e.stroke()}}},t.prototype.isPointInNode=function(e,t){return this.isPointInPath(e,t)},t.defaultStyles=s.chainObjects({},{fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:null,lineJoin:null,opacity:1,fillShadow:void 0,strokeShadow:void 0}),t}(r.Node);t.Shape=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqual=function(e,t,o){return void 0===o&&(o=1e-10),Math.abs(e-t)<o},t.toFixed=function(e,t){void 0===t&&(t=2);var o=Math.floor(Math.log(Math.abs(e))/Math.LN10);return o>=0?e.toFixed(t):e.toFixed(Math.abs(o)-1+t)};var i=["","K","M","B","T"];t.toReadableNumber=function(e,t){void 0===t&&(t=2);var o="";e<=0&&(e=-e,o="-");var n=~~(Math.log10(e)/Math.log10(1e3));return o+(e/Math.pow(1e3,n)).toFixed(t)+i[n]}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.setLabel=function(e,t){this.setDisplayed(!1);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLabel.innerHTML=o(e,t)},t.prototype.setValue=function(e){this.eValue.innerHTML=e},t.TEMPLATE='<div class="ag-name-value"> \n <span ref="eLabel"></span>: \n <span ref="eValue" class="ag-name-value-value"></span>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([a.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),t}(a.Component);t.NameValueComp=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(3),s=o(36),a=o(45),l=o(0),p=o(0),u=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){return e.width?e.width<this.gridOptionsWrapper.getMinColWidth()?this.gridOptionsWrapper.getMinColWidth():e.width:this.gridOptionsWrapper.getColWidth()},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],i=!1;return function t(n,r){for(var s=0;s<n.length;s++){if(i)return;var l=n[s];l instanceof a.OriginalColumnGroup?(t(l.getChildren(),r+1),o[r]=l):l===e&&(i=!0)}}(t,0),i?o:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var i=this;t&&t.forEach((function(t){t instanceof a.OriginalColumnGroup&&i.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},i([p.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([l.Bean("columnUtils")],e)}();t.ColumnUtils=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(36),n=o(12),r=o(4),s=function(){function e(e,t,o,i){this.localEventService=new r.EventService,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=o,this.level=i}return e.prototype.setOriginalParent=function(e){this.originalParent=this.originalParent},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(o){o instanceof n.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?i.ColumnGroup.HEADER_GROUP_PADDING:this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(n.Column.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,n=!1,r=this.findChildren(),s=0,a=r.length;s<a;s++){var l=r[s];if(l.isVisible()){var p=l.getColumnGroupShow();p===i.ColumnGroup.HEADER_GROUP_SHOW_OPEN?(t=!0,n=!0):p===i.ColumnGroup.HEADER_GROUP_SHOW_CLOSED?(o=!0,n=!0):(t=!0,o=!0,p===i.ColumnGroup.HEADER_GROUP_PADDING&&(n=l.children.some((function(e){return void 0!==e.getColumnGroupShow()}))))}}var u=t&&o&&n;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildren=function(){var t=this.children,o=t[0];if(o&&(!o.isPadding||!o.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}();t.OriginalColumnGroup=s},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},e.prototype.getValue=function(e,t){return this.active&&e.__cacheVersion===this.cacheVersion&&void 0!==e.__cacheData[t]?e.__cacheData[t]:void 0},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("valueCache")],e)}();t.ValueCache=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),s=o(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){s._.addCssClass(t.getGui(),"ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&s._.removeCssClass(t.getGui(),"ag-has-popup"),e.prototype.destroy.call(this)},t}(r.Component);t.PopupComponent=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=o(35),l=o(4),p=function(){function e(){this.p1Tasks=[],this.p2Tasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.addP1Task=function(e,t){this.verifyAnimationFrameOn("addP1Task");var o={task:e,index:t};this.p1Tasks.push(o),this.schedule()},e.prototype.addP2Task=function(e){this.verifyAnimationFrameOn("addP2Task"),this.p2Tasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame"),this.scrollGoingDown?this.p1Tasks.sort((function(e,t){return t.index-e.index})):this.p1Tasks.sort((function(e,t){return e.index-t.index}));for(var t=(new Date).getTime(),o=(new Date).getTime()-t,i=e<=0;i||o<e;){if(!this.gridPanel.executeFrame())if(this.p1Tasks.length>0)this.p1Tasks.pop().task();else{if(!(this.p2Tasks.length>0))break;this.p2Tasks.pop()()}o=(new Date).getTime()-t}this.p1Tasks.length>0||this.p2Tasks.length>0?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:a.Events.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return this.ticking},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("animationFrameService")],e)}();t.AnimationFrameService=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(3),p=o(65),u=o(39),c=o(2),d=function(e){function t(){var t=e.call(this)||this;return t.className="ag-checkbox",t.displayTag="input",t.inputType="checkbox",t.labelAlignment="right",t.iconMap={selected:"checkboxChecked",unselected:"checkboxUnchecked",indeterminate:"checkboxIndeterminate"},t.selected=!1,t.readOnly=!1,t.passive=!1,t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return n(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),c._.addCssClass(this.eInput,"ag-hidden"),this.addIconsPlaceholder(),this.updateIcons()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.getGui(),"click",(function(t){return e.onClick(t)})),this.addDestroyableEventListener(this.eInput,"change",(function(t){return e.setValue(t.target.checked,!0)}))},t.prototype.addIconsPlaceholder=function(){var e=document.createElement("div");this.eWrapper.appendChild(e),this.eIconEl=e},t.prototype.onClick=function(e){c._.addAgGridEventPath(e),this.readOnly||this.toggle()},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.setReadOnly=function(e){this.readOnly=e,this.updateIcons()},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.isSelected=function(){return this.selected},t.prototype.toggle=function(){var e=this.getNextValue();if(this.passive){var o={type:t.EVENT_CHANGED,selected:e};this.dispatchEvent(o)}else this.setValue(e)},t.prototype.setSelected=function(e,t){if(this.selected!==e&&(this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=this.selected,this.updateIcons(),!t)){var o={type:u.AgAbstractField.EVENT_CHANGED,selected:this.selected};this.dispatchEvent(o)}},t.prototype.getIconName=function(){var e=this.getValue(),t=void 0===e?"indeterminate":e?"selected":"unselected",o=this.isReadOnly()?"ReadOnly":"";return""+this.iconMap[t]+o},t.prototype.updateIcons=function(){c._.clearElement(this.eIconEl),this.eIconEl.appendChild(c._.createIconNoSpan(this.getIconName(),this.gridOptionsWrapper,null))},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.setSelected(e,t),this},r([a.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(p.AgAbstractInputField);t.AgCheckbox=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(224),n=o(302),r=o(303),s=o(304),a=o(306),l=o(307),p=o(308),u=o(229),c=o(165),d=o(164),h=o(51),f=o(230),g=o(309),y=o(311),m=function(){function e(){}return e.createCartesianChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t)},e.createGroupedColumnChart=function(t){var o=new y.GroupedCategoryChart({document:t.document,xAxis:e.createGroupedAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initGroupedCategoryChart(o,t,"bar")},e.createGroupedBarChart=function(t){var o=new y.GroupedCategoryChart({document:t.document,xAxis:e.createAxis(t.yAxis),yAxis:e.createGroupedAxis(t.xAxis)});return o.layout=i.CartesianChartLayout.Horizontal,e.initGroupedCategoryChart(o,t,"bar")},e.createGroupedLineChart=function(t){var o=new y.GroupedCategoryChart({document:t.document,xAxis:e.createGroupedAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initGroupedCategoryChart(o,t,"line")},e.createGroupedAreaChart=function(t){var o=new y.GroupedCategoryChart({document:t.document,xAxis:e.createGroupedAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initGroupedCategoryChart(o,t,"area")},e.createBarChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.yAxis),yAxis:e.createAxis(t.xAxis)});return o.layout=i.CartesianChartLayout.Horizontal,e.initCartesianChart(o,t,"bar")},e.createColumnChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t,"bar")},e.createLineChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t,"line")},e.createScatterChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t,"scatter")},e.createAreaChart=function(t){var o=new i.CartesianChart({document:t.document,xAxis:e.createAxis(t.xAxis),yAxis:e.createAxis(t.yAxis)});return e.initCartesianChart(o,t,"area")},e.createPolarChart=function(t){var o=new n.PolarChart;return e.initPolarChart(o,t)},e.createDoughnutChart=function(t){var o=new n.PolarChart;return e.initPolarChart(o,t)},e.createPieChart=function(t){var o=new n.PolarChart;return e.initPolarChart(o,t,"pie")},e.createLineSeries=function(e){return new r.LineSeries},e.createScatterSeries=function(e){return new s.ScatterSeries},e.createSeries=function(t,o){switch(o||t&&t.type){case"line":return e.initLineSeries(new r.LineSeries,t);case"scatter":return e.initScatterSeries(new s.ScatterSeries,t);case"bar":return e.initBarSeries(new a.BarSeries,t);case"area":return e.initAreaSeries(new l.AreaSeries,t);case"pie":return e.initPieSeries(new p.PieSeries,t);default:return null}},e.initChart=function(t,o,i){if(void 0!==o.parent&&(t.parent=o.parent),void 0!==o.width&&(t.width=o.width),void 0!==o.height&&(t.height=o.height),o.title&&(t.title=e.createChartTitle(o.title)),o.subtitle&&(t.subtitle=e.createChartSubtitle(o.subtitle)),void 0!==o.series){for(var n=o.series,r=[],s=0,a=n.length;s<a;s++){var l=e.createSeries(n[s],i);l&&r.push(l)}t.series=r}return void 0!==o.padding&&(t.padding=new h.Padding(o.padding.top,o.padding.right,o.padding.bottom,o.padding.left)),void 0!==o.background&&(void 0!==o.background.fill&&(t.background.fill=o.background.fill),void 0!==o.background.visible&&(t.background.visible=o.background.visible)),void 0!==o.legendPosition&&(t.legendPosition=o.legendPosition),void 0!==o.legendPadding&&(t.legendPadding=o.legendPadding),void 0!==o.legend&&e.initLegend(t.legend,o.legend),void 0!==o.data&&(t.data=o.data),void 0!==o.tooltipClass&&(t.tooltipClass=o.tooltipClass),t},e.initCartesianChart=function(t,o,i){return e.initChart(t,o,i),t},e.initGroupedCategoryChart=function(t,o,i){return e.initChart(t,o,i),t},e.initPolarChart=function(t,o,i){return e.initChart(t,o,i),t},e.initSeries=function(e,t){return void 0!==t.visible&&(e.visible=t.visible),void 0!==t.showInLegend&&(e.showInLegend=t.showInLegend),void 0!==t.tooltipEnabled&&(e.tooltipEnabled=t.tooltipEnabled),void 0!==t.data&&(e.data=t.data),e},e.initLineSeries=function(t,o){return e.initSeries(t,o),void 0!==o.title&&(t.title=o.title),void 0!==o.xField&&(t.xField=o.xField),void 0!==o.yField&&(t.yField=o.yField),void 0!==o.fill&&(t.fill=o.fill),void 0!==o.stroke&&(t.stroke=o.stroke),void 0!==o.strokeWidth&&(t.strokeWidth=o.strokeWidth),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.marker&&(t.marker=o.marker),void 0!==o.markerSize&&(t.markerSize=o.markerSize),void 0!==o.markerStrokeWidth&&(t.markerStrokeWidth=o.markerStrokeWidth),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),t},e.initScatterSeries=function(t,o){return e.initSeries(t,o),void 0!==o.title&&(t.title=o.title),void 0!==o.xField&&(t.xField=o.xField),void 0!==o.yField&&(t.yField=o.yField),void 0!==o.radiusField&&(t.radiusField=o.radiusField),void 0!==o.xFieldName&&(t.xFieldName=o.xFieldName),void 0!==o.yFieldName&&(t.yFieldName=o.yFieldName),void 0!==o.radiusFieldName&&(t.radiusFieldName=o.radiusFieldName),void 0!==o.fill&&(t.fill=o.fill),void 0!==o.stroke&&(t.stroke=o.stroke),void 0!==o.fillOpacity&&(t.fillOpacity=o.fillOpacity),void 0!==o.strokeOpacity&&(t.strokeOpacity=o.strokeOpacity),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.markerSize&&(t.markerSize=o.markerSize),void 0!==o.minMarkerSize&&(t.minMarkerSize=o.minMarkerSize),void 0!==o.markerStrokeWidth&&(t.markerStrokeWidth=o.markerStrokeWidth),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),t},e.initBarSeries=function(t,o){return e.initSeries(t,o),void 0!==o.xField&&(t.xField=o.xField),void 0!==o.yFields&&(t.yFields=o.yFields),void 0!==o.yFieldNames&&(t.yFieldNames=o.yFieldNames),void 0!==o.grouped&&(t.grouped=o.grouped),void 0!==o.normalizedTo&&(t.normalizedTo=o.normalizedTo),void 0!==o.fills&&(t.fills=o.fills),void 0!==o.strokes&&(t.strokes=o.strokes),void 0!==o.fillOpacity&&(t.fillOpacity=o.fillOpacity),void 0!==o.strokeOpacity&&(t.strokeOpacity=o.strokeOpacity),void 0!==o.strokeWidth&&(t.strokeWidth=o.strokeWidth),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.labelEnabled&&(t.labelEnabled=o.labelEnabled),void 0!==o.labelFontStyle&&(t.labelFontStyle=o.labelFontStyle),void 0!==o.labelFontWeight&&(t.labelFontWeight=o.labelFontWeight),void 0!==o.labelFontSize&&(t.labelFontSize=o.labelFontSize),void 0!==o.labelFontFamily&&(t.labelFontFamily=o.labelFontFamily),void 0!==o.labelFormatter&&(t.labelFormatter=o.labelFormatter),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),void 0!==o.shadow&&(t.shadow=e.createDropShadow(o.shadow)),t},e.initAreaSeries=function(t,o){return e.initSeries(t,o),void 0!==o.xField&&(t.xField=o.xField),void 0!==o.yFields&&(t.yFields=o.yFields),void 0!==o.yFieldNames&&(t.yFieldNames=o.yFieldNames),void 0!==o.normalizedTo&&(t.normalizedTo=o.normalizedTo),void 0!==o.fills&&(t.fills=o.fills),void 0!==o.strokes&&(t.strokes=o.strokes),void 0!==o.fillOpacity&&(t.fillOpacity=o.fillOpacity),void 0!==o.strokeOpacity&&(t.strokeOpacity=o.strokeOpacity),void 0!==o.strokeWidth&&(t.strokeWidth=o.strokeWidth),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.marker&&(t.marker=o.marker),void 0!==o.markerSize&&(t.markerSize=o.markerSize),void 0!==o.markerStrokeWidth&&(t.markerStrokeWidth=o.markerStrokeWidth),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),void 0!==o.shadow&&(t.shadow=e.createDropShadow(o.shadow)),t},e.initPieSeries=function(t,o){return e.initSeries(t,o),void 0!==o.title&&(t.title=e.createPieTitle(o.title)),void 0!==o.calloutColors&&(t.calloutColors=o.calloutColors),void 0!==o.calloutStrokeWidth&&(t.calloutStrokeWidth=o.calloutStrokeWidth),void 0!==o.calloutLength&&(t.calloutLength=o.calloutLength),void 0!==o.calloutLength&&(t.calloutLength=o.calloutLength),void 0!==o.labelFontStyle&&(t.labelFontStyle=o.labelFontStyle),void 0!==o.labelFontWeight&&(t.labelFontWeight=o.labelFontWeight),void 0!==o.labelFontSize&&(t.labelFontSize=o.labelFontSize),void 0!==o.labelFontFamily&&(t.labelFontFamily=o.labelFontFamily),void 0!==o.labelColor&&(t.labelColor=o.labelColor),void 0!==o.labelMinAngle&&(t.labelMinAngle=o.labelMinAngle),void 0!==o.angleField&&(t.angleField=o.angleField),void 0!==o.radiusField&&(t.radiusField=o.radiusField),void 0!==o.labelField&&(t.labelField=o.labelField),void 0!==o.labelEnabled&&(t.labelEnabled=o.labelEnabled),void 0!==o.fills&&(t.fills=o.fills),void 0!==o.strokes&&(t.strokes=o.strokes),void 0!==o.fillOpacity&&(t.fillOpacity=o.fillOpacity),void 0!==o.strokeOpacity&&(t.strokeOpacity=o.strokeOpacity),void 0!==o.highlightStyle&&(t.highlightStyle=o.highlightStyle),void 0!==o.rotation&&(t.rotation=o.rotation),void 0!==o.outerRadiusOffset&&(t.outerRadiusOffset=o.outerRadiusOffset),void 0!==o.innerRadiusOffset&&(t.innerRadiusOffset=o.innerRadiusOffset),void 0!==o.strokeWidth&&(t.strokeWidth=o.strokeWidth),void 0!==o.shadow&&(t.shadow=e.createDropShadow(o.shadow)),void 0!==o.tooltipRenderer&&(t.tooltipRenderer=o.tooltipRenderer),t},e.initLegend=function(e,t){void 0!==t.enabled&&(e.enabled=t.enabled),void 0!==t.markerStrokeWidth&&(e.markerStrokeWidth=t.markerStrokeWidth),void 0!==t.markerSize&&(e.markerSize=t.markerSize),void 0!==t.markerPadding&&(e.markerPadding=t.markerPadding),void 0!==t.itemPaddingX&&(e.itemPaddingX=t.itemPaddingX),void 0!==t.itemPaddingY&&(e.itemPaddingY=t.itemPaddingY),void 0!==t.labelFontStyle&&(e.labelFontStyle=t.labelFontStyle),void 0!==t.labelFontWeight&&(e.labelFontWeight=t.labelFontWeight),void 0!==t.labelFontSize&&(e.labelFontSize=t.labelFontSize),void 0!==t.labelFontFamily&&(e.labelFontFamily=t.labelFontFamily),void 0!==t.labelColor&&(e.labelColor=t.labelColor)},e.createAxisTitle=function(t){return void 0===(t=Object.create(t)).text&&(t.text="Title"),void 0===t.fontWeight&&(t.fontWeight="bold"),void 0===t.fontSize&&(t.fontSize=16),void 0===t.fontFamily&&(t.fontFamily="Verdana, sans-serif"),e.createCaption(t)},e.createChartTitle=function(t){return void 0===(t=Object.create(t)).text&&(t.text="Title"),void 0===t.fontWeight&&(t.fontWeight="bold"),void 0===t.fontSize&&(t.fontSize=16),void 0===t.fontFamily&&(t.fontFamily="Verdana, sans-serif"),e.createCaption(t)},e.createChartSubtitle=function(t){return void 0===(t=Object.create(t)).text&&(t.text="Subtitle"),void 0===t.fontWeight&&(t.fontWeight="bold"),void 0===t.fontSize&&(t.fontSize=12),void 0===t.fontFamily&&(t.fontFamily="Verdana, sans-serif"),e.createCaption(t)},e.createPieTitle=function(t){return void 0===(t=Object.create(t)).fontWeight&&(t.fontWeight="bold"),void 0===t.fontSize&&(t.fontSize=12),void 0===t.fontFamily&&(t.fontFamily="Verdana, sans-serif"),e.createCaption(t)},e.createCaption=function(e){var t=new f.Caption;return void 0!==e.text&&(t.text=e.text),void 0!==e.fontStyle&&(t.fontStyle=e.fontStyle),void 0!==e.fontWeight&&(t.fontWeight=e.fontWeight),void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.fontFamily&&(t.fontFamily=e.fontFamily),void 0!==e.color&&(t.color=e.color),void 0!==e.enabled&&(t.enabled=e.enabled),t},e.createDropShadow=function(e){return void 0===e&&(e={}),new u.DropShadow(e)},e.createAxis=function(t){var o=void 0;switch(t.type){case"category":o=new c.CategoryAxis;break;case"number":o=new d.NumberAxis}if(!o)throw new Error("Unknown axis type.");for(var i in t)if("type"!==i)if("title"===i&&t.title)o.title=e.createAxisTitle(t.title);else{var n=t[i];void 0!==n&&(o[i]=n)}return o},e.createGroupedAxis=function(t){var o=new g.GroupedCategoryAxis;if(!o)throw new Error("Unknown axis type.");for(var i in t)if("type"!==i)if("title"===i&&t.title)o.title=e.createAxisTitle(t.title);else{var n=t[i];void 0!==n&&(o[i]=n)}return o},e}();t.ChartBuilder=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o,i){void 0===e&&(e=0),void 0===t&&(t=e),void 0===o&&(o=e),void 0===i&&(i=t),this.top=e,this.right=t,this.bottom=o,this.left=i}return e.prototype.clear=function(){this.top=0,this.right=0,this.bottom=0,this.left=0},e}();t.Padding=i},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(41),s=o(99),a=o(29),l=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o._x=0,o._y=0,o.lineBreakRe=/\r?\n/g,o.lines=[],o._text="",o._dirtyFont=!0,o._fontStyle=void 0,o._fontWeight=void 0,o._fontSize=10,o._fontFamily="sans-serif",o._textAlign=t.defaultStyles.textAlign,o._textBaseline=t.defaultStyles.textBaseline,o._lineHeight=14,o}return n(t,e),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.splitText=function(){this.lines=this._text.split(this.lineBreakRe)},Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){var t=String(e);this._text!==t&&(this._text=t,this.splitText(),this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.dirtyFont?(this.dirtyFont=!1,this._font=[this.fontStyle||"",this.fontWeight||"",this.fontSize+"px",this.fontFamily].join(" ").trim()):this._font},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyFont",{get:function(){return this._dirtyFont},set:function(e){this._dirtyFont!==e&&(this._dirtyFont=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){isFinite(e)||(e=10),this._fontSize!==e&&(this._fontSize=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this._fontFamily!==e&&(this._fontFamily=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textAlign",{get:function(){return this._textAlign},set:function(e){this._textAlign!==e&&(this._textAlign=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.getBBox=function(){return this.scene?this.scene.canvas.has.textMetrics?this.getPreciseBBox():this.getApproximateBBox():void 0},t.prototype.getPreciseBBox=function(){var e=this.scene.canvas.measureText(this.text,this.font,this.textBaseline,this.textAlign);return new a.BBox(this.x-e.actualBoundingBoxLeft,this.y-e.actualBoundingBoxAscent,e.width,e.actualBoundingBoxAscent+e.actualBoundingBoxDescent)},t.prototype.getApproximateBBox=function(){var e=this.scene.canvas.getTextSize(this.text,this.font),t=this.x,o=this.y;switch(this.textAlign){case"end":case"right":t-=e.width;break;case"center":t-=e.width/2}switch(this.textBaseline){case"alphabetic":o-=.7*e.height;break;case"middle":o-=.45*e.height;break;case"ideographic":o-=e.height;break;case"hanging":o-=.2*e.height;break;case"bottom":o-=e.height}return new a.BBox(t,o,e.width,e.height)},t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t),i=this.getBBox();return!!i&&i.containsPoint(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){if(this.scene&&this.lines.length){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.opacity<1&&(e.globalAlpha=this.opacity),e.font=this.font,e.textAlign=this.textAlign,e.textBaseline=this.textBaseline;var t=this.scene.canvas.pixelRatio||1;if(this.fill){e.fillStyle=this.fill;var o=this.fillShadow;o&&o.enabled&&(e.shadowColor=o.color,e.shadowOffsetX=o.xOffset*t,e.shadowOffsetY=o.yOffset*t,e.shadowBlur=o.blur*t),e.fillText(this.text,this.x,this.y)}if(this.stroke&&this.strokeWidth){e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin);var i=this.strokeShadow;i&&i.enabled&&(e.shadowColor=i.color,e.shadowOffsetX=i.xOffset*t,e.shadowOffsetY=i.yOffset*t,e.shadowBlur=i.blur*t),e.strokeText(this.text,this.x,this.y)}this.dirty=!1}},t.className="Text",t.defaultStyles=s.chainObjects(r.Shape.defaultStyles,{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),t}(r.Shape);t.Text=l},function(e,t,o){"use strict";function i(e){for(var t,o,i,n=e.length,r=-1;++r<n;)if(null!=(t=e[r])&&t>=t)for(o=i=t;++r<n;)null!=(t=e[r])&&(o>t&&(o=t),i<t&&(i=t));return[o,i]}Object.defineProperty(t,"__esModule",{value:!0}),t.extent=i,t.find=function(e,t){for(var o=0,i=e.length;o<i;o++){var n=e[o];if(t(n,o,e))return n}},t.numericExtent=function(e){var t=i(e),o=t[0],n=t[1];if("number"==typeof o&&isFinite(o)&&"number"==typeof n&&isFinite(n))return[o,n]}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=2*Math.PI;t.normalizeAngle360=function(e){return e%=i,(e+=i)%i},t.normalizeAngle360Inclusive=function(e){return e%=i,(e+=i)!==i&&(e%=i),e},t.normalizeAngle180=function(e){return(e%=i)<-Math.PI?e+=i:e>=Math.PI&&(e-=i),e},t.toRadians=function(e){return e/180*Math.PI},t.toDegrees=function(e){return e/Math.PI*180}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.borneo={fills:["#f3622d","#fba71b","#57b757","#41a9c9","#4258c9","#9a42c8","#c84164","#888888"],strokes:["#aa4520","#b07513","#3d803d","#2d768d","#2e3e8d","#6c2e8c","#8c2d46","#5f5f5f"]},t.material={fills:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"],strokes:["#ab2f26","#a31545","#6d1b7b","#482980","#2c397f","#1769aa","#0276ab","#008494","#00695f","#357a38","#618834","#909a28","#b3a429","#b38705","#b36a00","#b33d18"]},t.pastel={fills:["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],strokes:["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"]},t.bright={fills:["#5BC0EB","#FDE74C","#9BC53D","#E55934","#FA7921","#fa3081"],strokes:["#4086a4","#b1a235","#6c8a2b","#a03e24","#af5517","#af225a"]},t.flat={fills:["#febe76","#ff7979","#badc58","#f9ca23","#f0932b","#eb4c4b","#6ab04c","#7ed6df","#e056fd","#686de0"],strokes:["#b28553","#b35555","#829a3e","#ae8d19","#a8671e","#a43535","#4a7b35","#58969c","#9d3cb1","#494c9d"]},t.default=t.borneo,t.palettes=[t.borneo,t.material,t.pastel,t.bright,t.flat]},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(78),a=function(){function e(){this.watermarkMessage=void 0}var t;return t=e,e.prototype.validateLicense=function(){if(r._.missingOrEmpty(t.licenseKey))this.outputMissingLicenseKey();else if(!r._.missingOrEmpty(t.licenseKey)&&t.licenseKey.length>32){var e=t.extractLicenseComponents(t.licenseKey),o=e.md5,i=e.license,n=e.version,s=e.isTrial;o===this.md5.md5(i)?r._.exists(n)&&n?this.validateLicenseKeyForVersion(n,!!s,i):this.validateLegacyKey(i):this.outputInvalidLicenseKey()}},e.extractExpiry=function(e){var o=e.substring(e.lastIndexOf("_")+1,e.length);return new Date(parseInt(t.decode(o),10))},e.extractLicenseComponents=function(e){var o=e.length-32,i=e.substring(o),n=e.substring(0,o),r=t.extractBracketedInformation(e);return{md5:i,license:n,version:r[0],isTrial:r[1]}},e.prototype.getLicenseDetails=function(e){var o=t.extractLicenseComponents(e),i=o.md5,n=o.license,r=o.version,s=o.isTrial,a=i===this.md5.md5(n),l=null;return a&&(l=t.extractExpiry(n),a=!isNaN(l.getTime())),{licenseKey:e,valid:a,expiry:a?t.formatDate(l):null,version:r||"legacy",isTrial:s}},e.prototype.isDisplayWatermark=function(){return!r._.missingOrEmpty(this.watermarkMessage)},e.prototype.getWatermarkMessage=function(){return this.watermarkMessage},e.formatDate=function(e){var t=e.getDate(),o=e.getMonth(),i=e.getFullYear();return t+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][o]+" "+i},e.getGridReleaseDate=function(){return new Date(parseInt(t.decode(t.RELEASE_INFORMATION),10))},e.decode=function(e){for(var o,i,n,r,s,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",p="",u=0,c=e.replace(/[^A-Za-z0-9+\/=]/g,"");u<c.length;)o=l.indexOf(c.charAt(u++))<<2|(r=l.indexOf(c.charAt(u++)))>>4,i=(15&r)<<4|(s=l.indexOf(c.charAt(u++)))>>2,n=(3&s)<<6|(a=l.indexOf(c.charAt(u++))),p+=String.fromCharCode(o),64!=s&&(p+=String.fromCharCode(i)),64!=a&&(p+=String.fromCharCode(n));return t.utf8_decode(p)},e.utf8_decode=function(e){e=e.replace(/rn/g,"n");for(var t="",o=0;o<e.length;o++){var i=e.charCodeAt(o);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},e.setLicenseKey=function(e){t.licenseKey=e},e.extractBracketedInformation=function(e){var t=e.split("[").filter((function(e){return e.indexOf("]")>-1})).map((function(e){return e.split("]")[0]}));if(!t||0===t.length)return[null,null];var o=1===t.filter((function(e){return"TRIAL"===e})).length;return[t.filter((function(e){return 0===e.indexOf("v")})).map((function(e){return e.replace(/^v/,"")}))[0],o]},e.prototype.validateLicenseKeyForVersion=function(e,t,o){switch(e){case"2":t?this.validateForTrial(o):this.validateLegacyKey(o)}},e.prototype.validateLegacyKey=function(e){var o=t.getGridReleaseDate(),i=t.extractExpiry(e),n=!1,r=!1;if(isNaN(i.getTime())||(n=!0,r=o<i),n){if(!r){var s=t.formatDate(i),a=t.formatDate(o);this.outputIncompatibleVersion(s,a)}}else this.outputInvalidLicenseKey()},e.prototype.validateForTrial=function(e){var o=t.extractExpiry(e),i=new Date,n=!1,r=!1;if(isNaN(o.getTime())||(n=!0,r=o>i),n){if(!r){var s=t.formatDate(o);this.outputExpiredTrialKey(s)}}else this.outputInvalidLicenseKey()},e.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for ag-Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},e.prototype.outputExpiredTrialKey=function(e){console.error("****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License *******************************************"),console.error("***************************************** Trial Period Expired. *******************************************"),console.error("* Your license for ag-Grid Enterprise expired on "+e+". *"),console.error("* Please email info@ag-grid.com to purchase a license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},e.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All ag-Grid Enterprise features are unlocked. *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production. *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},e.prototype.outputIncompatibleVersion=function(e,t){console.error("****************************************************************************************************************************"),console.error("********************************************* ag-Grid Enterprise License ***************************************************"),console.error("*************************** License not compatible with installed version of ag-Grid Enterprise. ***************************"),console.error("* Your license for ag-Grid Enterprise expired on "+e+" but the version installed was released on "+t+". *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions. *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="Incompatible License Version"},e.RELEASE_INFORMATION="MTU2OTUwNzQ0NTUxNw==",i([r.Autowired("md5"),n("design:type",s.MD5)],e.prototype,"md5",void 0),i([r.PreConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"validateLicense",null),t=i([r.Bean("licenseManager")],e)}();t.LicenseManager=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(3),a=o(14),l=o(44),p=o(193),u=o(45),c=o(12),d=o(0),h=o(264),f=o(2),g=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,o){var i=new p.ColumnKeyCreator;if(o){var n=o.map((function(e){return e.getId()}));i.addExistingKeys(n)}var r=o?o.slice():null,s=this.recursivelyCreateColumns(e,0,t,r,i,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,i);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof u.OriginalColumnGroup&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var o=this,i=[];return e.forEach((function(e){var n=o.createAutoGroupTreeItem(t,e);i.push(n)})),i},e.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,i=this.findDepth(e)-1;i>=0;i--){var n=new u.OriginalColumnGroup(null,"FAKE_PATH_"+t.getId()+"}_"+i,!0,i);this.context.wireBean(n),n.setChildren([o]),o.setOriginalParent(n),o=n}return o},e.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof u.OriginalColumnGroup;)t++,o=o[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,o,i){for(var n=[],r=0;r<e.length;r++){var s=e[r];if(s instanceof u.OriginalColumnGroup){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,i);a.setChildren(l),n.push(a)}else{for(var p=void 0,c=void 0,d=o-1;d>=t;d--){var h=i.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),g=new u.OriginalColumnGroup(f,h,!0,t);this.context.wireBean(g),c&&c.setChildren([g]),c=g,p||(p=c)}if(p){if(n.push(p),e.some((function(e){return e instanceof u.OriginalColumnGroup}))){c.setChildren([s]);continue}c.setChildren(e);break}n.push(s)}}return n},e.prototype.findMaxDept=function(e,t){for(var o=t,i=0;i<e.length;i++){var n=e[i];if(n instanceof u.OriginalColumnGroup){var r=n,s=this.findMaxDept(r.getChildren(),t+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(e,t,o,i,n,r){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(o,e,t,i,n,r):s.createColumn(o,e,i,n,r),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,o,i,n,r){var s=this.createMergedColGroupDef(t),a=n.getUniqueKey(s.groupId,null),l=new u.OriginalColumnGroup(s,a,!1,o);this.context.wireBean(l);var p=this.recursivelyCreateColumns(s.children,o+1,e,i,n,l);return l.setChildren(p),l},e.prototype.createMergedColGroupDef=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),f._.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,o,i,n){var r=this.mergeColDefs(t);this.checkForDeprecatedItems(r);var s=this.findExistingColumn(t,o);if(s)s.setColDef(r,t);else{var a=i.getUniqueKey(r.colId,r.field);s=new c.Column(r,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var o=f._.find(t,(function(t){var o=t.getUserProvidedColDef();return!(!o||o!==e&&(null===o.colId||void 0===o.colId||o.colId!==e.colId))}));return o&&f._.removeFromArray(t,o),o},e.prototype.mergeColDefs=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),f._.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var o;if(e.type instanceof Array)e.type.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e.type;else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");o=e.type.split(",")}var i=f._.assign({},this.gridOptionsWrapper.getColumnTypes(),h.DefaultColumnTypes);o.forEach((function(e){var o=i[e.trim()];o?f._.assign(t,o):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},i([d.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("columnUtils"),n("design:type",l.ColumnUtils)],e.prototype,"columnUtils",void 0),i([d.Autowired("context"),n("design:type",d.Context)],e.prototype,"context",void 0),i([r(0,d.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[a.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([d.Bean("columnFactory")],e)}();t.ColumnFactory=g},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(20),s=o(0),a=o(3),l=o(188),p=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e){var t=this.getHeaderCellForColumn(e);if(!t)return-1;var o=document.createElement("span");o.style.position="fixed";var i=this.gridPanel.getCenterContainer();i.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),this.cloneItemIntoDummy(t,o);var n=o.offsetWidth;return i.removeChild(o),n+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(o){if(o instanceof l.HeaderWrapperComp){var i=o;i.getColumn()===e&&(t=i)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var o=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return o.cloneItemIntoDummy(e,t)}))},e.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var i=document.createElement("div");i.style.display="table-row",i.appendChild(o),t.appendChild(i)},i([s.Autowired("rowRenderer"),n("design:type",r.RowRenderer)],e.prototype,"rowRenderer",void 0),i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Bean("autoWidthCalculator")],e)}();t.AutoWidthCalculator=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(12),a=o(7),l=o(6),p=o(8),u=o(125),c=o(179),d=o(251),h=o(126),f=o(2),g=o(252),y=function(e){function t(t,o,i,n,r,s,a){var l=e.call(this)||this;if(l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=o,l.column=i,l.rowNode=n,l.rowComp=r,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=o.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusedCellController.isCellFocused(l.cellPosition),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled){var p=l.beans.rangeController;l.rangeCount=p.getCellRangeCount(l.cellPosition),l.rangeCount&&(l.hasChartRange=p.getCellRanges().every((function(e){return f._.exists(e.type)})))}return l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return n(t,e),t.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],o=this.column,i=this.getCellWidth(),n=this.modifyLeftForPrintLayout(this.getCellLeft()),r=this.getInitialValueToRender(),s=f._.get(this.column,"colDef.template",null)?r:f._.escape(r);this.tooltip=this.getToolTip();var a=f._.escape(this.tooltip),l=f._.escape(o.getId()),p="",u="",c=this.preProcessStylesFromColDef(),d=this.getInitialCssClasses(),h=this.getStylesForRowSpanning();return this.usingWrapper&&(p='<div ref="eCellWrapper" class="ag-cell-wrapper"><span ref="eCellValue" class="ag-cell-value" '+e+">",u="</span></div>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="gridcell"'),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+d.join(" ")+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&f._.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+i+"px; left: "+n+"px; "+c+" "+h+'" >'),t.push(p),f._.exists(s,!0)&&t.push(s),t.push(u),t.push("</div>"),t.join("")},t.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},t.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.rangeSelectionEnabled&&this.shouldHaveSelectionHandle()&&this.addSelectionHandle(),f._.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.beans.tooltipManager.registerTooltip(this)},t.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);f._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?f._.last(this.colsSpanning):this.column).getLeft()},t.prototype.getCellWidth=function(){if(!this.colsSpanning)return this.column.getActualWidth();var e=0;return this.colsSpanning.forEach((function(t){return e+=t.getActualWidth()})),e},t.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},t.prototype.setupColSpan=function(){f._.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var o=this.column,i=this.column.getPinned(),n=0;o&&n<e&&(t.push(o),(o=this.beans.columnController.getDisplayedColAfter(o))&&!f._.missing(o))&&i===o.getPinned();n++);return t},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();f._.compareArrays(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-with-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),f._.pushAll(e,this.preProcessClassesFromColDef()),f._.pushAll(e,this.preProcessCellClassRules()),f._.pushAll(e,this.getInitialRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},t.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},t.prototype.getRenderedRow=function(){return this.rowComp},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editingCell){var t=this.getComponentHolder(),o=e&&e.newData,i=e&&e.suppressFlash||t.suppressCellFlash,n=e&&e.forceRefresh,r=this.value;this.getValueAndFormat();var s=!this.valuesAreEqual(r,this.value);if(n||s){!o&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh();var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!i&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()}this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},t.prototype.flashCell=function(){this.animateCell("data-changed")},t.prototype.animateCell=function(e){var t="ag-cell-"+e,o="ag-cell-"+e+"-animation",i=this.getGui();f._.addCssClass(i,t),f._.removeCssClass(i,o),window.setTimeout((function(){f._.removeCssClass(i,t),f._.addCssClass(i,o),window.setTimeout((function(){f._.removeCssClass(i,o)}),1e3)}),500)},t.prototype.replaceContentsAfterRefresh=function(){f._.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},t.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=r({},this.rowNode.data),this.angular1Compile())},t.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){t.remove()}))}}},t.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&f._.addStylesToElement(this.getGui(),e)},t.prototype.preProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();return f._.cssStyleObjectToMarkup(e)},t.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(o)}else t=e.cellStyle;return t}},t.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return f._.addCssClass(e.getGui(),t)}))},t.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},t.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},t.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.chooseCellRenderer(),this.usingCellRenderer)this.createCellRendererInstance();else{var o=this.getValueToUse();null!=o&&(this.eParentOfValue.innerHTML=f._.escape(o))}},t.prototype.attemptCellRendererRefresh=function(){if(f._.missing(this.cellRenderer)||!this.cellRenderer||f._.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),o=this.cellRenderer.refresh(t);return!0===o||void 0===o},t.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){var t=f._.exists(e),o=f._.exists(this.tooltip);if(!t||this.tooltip!==e.toString())if(this.tooltip=e,this.beans.gridOptionsWrapper.isEnableBrowserTooltips())if(t){var i=f._.escape(this.tooltip);this.eParentOfValue.setAttribute("title",i)}else this.eParentOfValue.removeAttribute("title");else o?t||this.beans.tooltipManager.unregisterTooltip(this):t&&this.beans.tooltipManager.registerTooltip(this)}},t.prototype.valuesAreEqual=function(e,t){var o=this.getComponentHolder(),i=o?o.equals:null;return i?i(e,t):e===t},t.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&f._.exists(t))return f._.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var o=e.tooltipValueGetter||e.tooltip;return o?o({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,$scope:this.scope}):null},t.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?f._.escape(this.tooltip):this.tooltip},t.prototype.processCellClassRules=function(e,t){var o=this.getComponentHolder();this.beans.stylingService.processClassRules(o.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){f._.addCssClass(e.getGui(),t)}),(function(t){f._.removeCssClass(e.getGui(),t)}))},t.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,this.includeRowDraggingComponent=!1,void(this.includeDndSourceComponent=!1);var t="function"==typeof e.checkboxSelection,o="function"==typeof e.rowDrag,i="function"==typeof e.dndSource;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=o||!0===e.rowDrag,this.includeDndSourceComponent=i||!0===e.dndSource,this.usingWrapper=this.includeRowDraggingComponent||this.includeSelectionComponent||this.includeDndSourceComponent},t.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var o=this.createCellRendererParams(),i=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",o);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",o)&&this.rowNode.rowPinned?(this.cellRendererType=t.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):i?(this.cellRendererType=t.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},t.prototype.createCellRendererInstance=function(e){var o=this;if(void 0===e&&(e=!1),this.usingCellRenderer){var i=this.beans.gridOptionsWrapper.isAngularCompileRows(),n=this.beans.gridOptionsWrapper.isSuppressAnimationFrame();(i||n||this.autoHeightCell)&&(e=!1);var r=this.createCellRendererParams();this.cellRendererVersion++;var s=this.afterCellRendererCreated.bind(this,this.cellRendererVersion),a=this.cellRendererType===t.CELL_RENDERER_TYPE_NORMAL,l=function(){var e;(e=a?o.beans.userComponentFactory.newCellRenderer(o.getComponentHolder(),r):o.beans.userComponentFactory.newPinnedRowCellRenderer(o.getComponentHolder(),r))&&e.then(s)};e?this.beans.taskQueue.addP2Task(l):l()}},t.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),f._.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.cellPosition.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,o){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,o)}}},t.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},t.prototype.getValueToUse=function(){return null!==this.valueFormatted&&void 0!==this.valueFormatted?this.valueFormatted:this.value},t.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},t.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),i=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),n=t&&o&&!i;return this.beans.valueService.getValue(this.column,this.rowNode,!1,n)},t.prototype.onMouseEvent=function(e,t){if(!f._.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,l.Events.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(o)}),0)},t.prototype.createEvent=function(e,t){var o={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(o.$scope=this.scope),o},t.prototype.onMouseOut=function(e){var t=this.createEvent(e,l.Events.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(e){var t=this.createEvent(e,l.Events.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},t.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,l.Events.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},t.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.startEditingIfEnabled=function(e,t,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var i=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),n=this.createCellEditorParams(e,t,o);this.createCellEditor(n).then(i),f._.missing(this.cellEditor)&&o&&this.focusCell(!0)}},t.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(o){if(!o.isPopup||!o.isPopup())return o;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var i=new h.PopupEditorWrapper(o);return t.beans.context.wireBean(i),i.init(e),i}))},t.prototype.afterCellEditorCreated=function(e,t){if(e===this.cellEditorVersion&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var o=this.createEvent(null,l.Events.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(o)}else t.destroy&&t.destroy()},t.prototype.addInCellEditor=function(){f._.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},t.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null;this.hideEditorPopup=this.beans.popupService.addAsModalPopup(t,!0,(function(){e.onPopupEditorClosed()})),this.beans.popupService.positionPopupOverComponent({column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0}),this.angular1Compile()},t.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusedCellController.isCellFocused(this.cellPosition)&&this.focusCell(!0))},t.prototype.setInlineEditingClass=function(){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;f._.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),f._.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),f._.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),f._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),f._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)},t.prototype.createCellEditorParams=function(e,t,o){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.cellPosition.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.parseValue=function(e){var t=this.getComponentHolder(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},i=t.valueParser;return f._.exists(i)?this.beans.expressionService.evaluate(i,o):e},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusedCellController.setFocusedCell(this.cellPosition.rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},t.prototype.isEditing=function(){return this.editingCell},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case a.Constants.KEY_ENTER:this.onEnterKeyDown();break;case a.Constants.KEY_F2:this.onF2KeyDown();break;case a.Constants.KEY_ESCAPE:this.onEscapeKeyDown();break;case a.Constants.KEY_TAB:this.onTabKeyDown(e);break;case a.Constants.KEY_BACKSPACE:case a.Constants.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case a.Constants.KEY_DOWN:case a.Constants.KEY_UP:case a.Constants.KEY_RIGHT:case a.Constants.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.cellPosition,!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){var t=this.beans.rangeController.extendLatestRangeInDirection(e);t&&this.beans.rowRenderer.ensureCellVisible(t)},t.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,a.Constants.KEY_DOWN,this.cellPosition,!1):this.startRowOrCellEdit(a.Constants.KEY_ENTER)},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,a.Constants.KEY_DOWN,this.cellPosition,!1)},t.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(a.Constants.KEY_F2)},t.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},t.prototype.onKeyPress=function(e){if(f._.getTarget(e)===this.getGui()&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):f._.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){if(!this.editingCell&&this.beans.gridOptionsWrapper.isRowSelection()){var t=this.rowNode.isSelected();this.rowNode.setSelected(!t)}e.preventDefault()},t.prototype.onMouseDown=function(e){var t=!1,o=e.button,i=e.ctrlKey,n=e.metaKey,r=e.shiftKey,s=e.target,a=this.beans,p=a.eventService,u=a.rangeController;if(!(u&&u.isCellInAnyRange(this.getCellPosition())&&2===o||(f._.isBrowserIE()&&s.classList.contains("ag-cell")&&(t=!0),!r||u&&!u.getCellRanges().length?this.focusCell(t):e.preventDefault(),f._.isElementChildOfClass(s,"ag-selection-checkbox",3)))){if(f._.isLeftClick(e)&&u){var c=this.cellPosition;if(r)u.extendLatestRangeToCell(c);else{var d=i||n;u.setRangeToCell(c,d)}}var h=this.createEvent(e,l.Events.EVENT_CELL_MOUSE_DOWN);p.dispatchEvent(h)}},t.prototype.isDoubleClickOnIPad=function(){if(!f._.isUserAgentIPad())return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.createEvent(e,l.Events.EVENT_CELL_CLICKED);this.beans.eventService.dispatchEvent(t);var o=this.getComponentHolder();o.onCellClicked&&window.setTimeout((function(){return o.onCellClicked(t)}),0),(this.beans.gridOptionsWrapper.isSingleClickEdit()||o.singleClickEdit)&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit(),f._.doIeFocusHack(this.getGui())},t.prototype.createGridCellVo=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,column:this.column}},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.getParentRow=function(){return this.eParentRow},t.prototype.setParentRow=function(e){this.eParentRow=e},t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.cellEditor&&this.cellEditor.destroy&&(this.cellEditor.destroy(),this.cellEditor=null),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null),this.selectionHandle&&this.selectionHandle.destroy()},t.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px"},t.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout?this.column.getPinned()===s.Column.PINNED_LEFT?e:this.column.getPinned()===s.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},t.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},t.prototype.getRangeBorders=function(){var e,t,o=this,i=this.beans.gridOptionsWrapper.isEnableRtl(),n=!1,r=!1,s=!1,a=!1,l=this.cellPosition.column,p=this.beans.rangeController;i?(e=this.beans.columnController.getDisplayedColAfter(l),t=this.beans.columnController.getDisplayedColBefore(l)):(e=this.beans.columnController.getDisplayedColBefore(l),t=this.beans.columnController.getDisplayedColAfter(l));var u=p.getCellRanges().filter((function(e){return p.isCellInSpecificRange(o.cellPosition,e)}));e||(a=!0),t||(r=!0);for(var c=0;c<u.length&&!(n&&r&&s&&a);c++){var d=u[c],h=p.getRangeStartRow(d),f=p.getRangeEndRow(d);!n&&this.beans.rowPositionUtils.sameRow(h,this.cellPosition)&&(n=!0),!s&&this.beans.rowPositionUtils.sameRow(f,this.cellPosition)&&(s=!0),!a&&d.columns.indexOf(e)<0&&(a=!0),!r&&d.columns.indexOf(t)<0&&(r=!0)}return{top:n,right:r,bottom:s,left:a}},t.prototype.getInitialRangeClasses=function(){var e=[];if(!this.rangeSelectionEnabled||!this.rangeCount)return e;var t=this.beans.rangeController;e.push("ag-cell-range-selected"),this.hasChartRange&&e.push("ag-cell-range-chart");var o=Math.min(this.rangeCount,4);if(e.push("ag-cell-range-selected-"+o),1!==this.rangeCount||t.isMoreThanOneCell()||e.push("ag-cell-range-single-cell"),this.rangeCount>0){var i=this.getRangeBorders();i.top&&e.push("ag-cell-range-top"),i.right&&e.push("ag-cell-range-right"),i.bottom&&e.push("ag-cell-range-bottom"),i.left&&e.push("ag-cell-range-left")}return this.selectionHandle&&e.push("ag-cell-range-handle"),e},t.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){if(this.beans.enterprise){var e=this.beans,t=this.cellPosition,o=this.rangeCount,i=e.rangeController,n=i.getCellRangeCount(t),r=this.getGui();o!==n&&(f._.addOrRemoveCssClass(r,"ag-cell-range-selected",0!==n),f._.addOrRemoveCssClass(r,"ag-cell-range-selected-1",1===n),f._.addOrRemoveCssClass(r,"ag-cell-range-selected-2",2===n),f._.addOrRemoveCssClass(r,"ag-cell-range-selected-3",3===n),f._.addOrRemoveCssClass(r,"ag-cell-range-selected-4",n>=4),this.rangeCount=n);var s=this.rangeCount&&i.getCellRanges().every((function(e){return f._.exists(e.type)}));this.hasChartRange!==s&&(f._.addOrRemoveCssClass(r,"ag-cell-range-chart",s),this.hasChartRange=s),this.updateRangeBorders();var a=1===this.rangeCount&&!i.isMoreThanOneCell();f._.addOrRemoveCssClass(r,"ag-cell-range-single-cell",a),this.refreshHandle(),f._.addOrRemoveCssClass(r,"ag-cell-range-handle",!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,o=e.rangeController,i=this.getGui(),n=o.getCellRanges(),r=n.length;if(!r)return!1;var s=f._.last(n),a=n[0].type===c.CellRangeType.DIMENSION,l=(t.isEnableFillHandle()||t.isEnableRangeHandle()||this.hasChartRange&&!a)&&1===r;if(!l&&this.hasChartRange){var p=this.getCellPosition();l=a&&2===r&&o.isCellInSpecificRange(this.getCellPosition(),s);var u=a&&o.isCellInSpecificRange(p,n[0]);f._.addOrRemoveCssClass(i,"ag-cell-range-chart-category",u)}return this.rangeCount&&l&&null!=s.endRow&&this.beans.rangeController.isContiguousRange(s)&&(f._.containsClass(i,"ag-cell-range-single-cell")||f._.containsClass(i,"ag-cell-range-bottom")&&f._.containsClass(i,"ag-cell-range-right"))},t.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,o=e.context,i=e.rangeController,n=f._.last(i.getCellRanges()).type,r=t.isEnableFillHandle()&&f._.missing(n)?"fill":"range";this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle.destroy(),this.selectionHandle=void 0),this.selectionHandle||(this.selectionHandle=o.createComponentFromElement(document.createElement("ag-"+r+"-handle"))),this.selectionHandle.refresh(this)},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.refreshHandle=function(){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle.destroy(),this.selectionHandle=null),e&&this.addSelectionHandle()},t.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=1===this.rangeCount&&!this.beans.rangeController.isMoreThanOneCell(),o=!t&&e.top,i=!t&&e.right,n=!t&&e.bottom,r=!t&&e.left,s=this.getGui();f._.addOrRemoveCssClass(s,"ag-cell-range-top",o),f._.addOrRemoveCssClass(s,"ag-cell-range-right",i),f._.addOrRemoveCssClass(s,"ag-cell-range-bottom",n),f._.addOrRemoveCssClass(s,"ag-cell-range-left",r)},t.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,f._.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},t.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,f._.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},t.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.addRowDragging=function(){var e=this.beans.gridOptionsWrapper.isPagination(),t=this.beans.gridOptionsWrapper.isRowDragManaged(),o=this.beans.gridOptionsWrapper.isRowModelDefault();if(t){if(!o)return void f._.doOnce((function(){return console.warn("ag-Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(e)return void f._.doOnce((function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var i=new d.RowDragComp(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(this.beans.context,i),this.eCellWrapper.insertBefore(i.getGui(),this.eParentOfValue)},t.prototype.addDndSource=function(){var e=new g.DndSourceComp(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.addFeature(this.beans.context,e),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},t.prototype.addSelectionCheckbox=function(){var e=new u.CheckboxSelectionComponent;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},t.prototype.addDomData=function(){var e=this,o=this.getGui();this.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,null)}))},t.prototype.onCellFocused=function(e){var t=this.beans.focusedCellController.isCellFocused(this.cellPosition);if(t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&f._.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t),t&&e&&e.forceBrowserFocus){var o=this.getGui();o.focus(),f._.doIeFocusHack(o)}var i=this.beans.gridOptionsWrapper.isFullRowEdit();t||i||!this.editingCell||this.stopRowOrCellEdit()},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,o=!1;if(e||this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),o=!0),this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(f._.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var i=this.cellRendererGui;i&&this.getGui().appendChild(i)}this.setInlineEditingClass(),o&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var n=this.createEvent(null,l.Events.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(n)}else this.editingCell=!1},t.DOM_DATA_KEY_CELL_COMP="cellComp",t.CELL_RENDERER_TYPE_NORMAL="cellRenderer",t.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",t}(p.Component);t.CellComp=y},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(2),a={"ag-theme-material":{headerHeight:56,virtualItemHeight:40,rowHeight:48},"ag-theme-classic":{headerHeight:25,virtualItemHeight:20,rowHeight:25},"ag-theme-balham":{headerHeight:32,virtualItemHeight:28,rowHeight:28}},l={headerHeight:["ag-header-row"],virtualItemHeight:["ag-virtual-list-container","ag-virtual-list-item"],rowHeight:["ag-row"]},p={},u=function(){function e(){}return e.prototype.getSassVariable=function(e,t){var o="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":"classic"),i=a[o][t],n=0;if(p[e]||(p[e]={}),p[e][t])return p[e][t];if(l[t]){var r=l[t],u=document.createElement("div"),c=r.reduce((function(t,o,i){0===i&&s._.addCssClass(t,e);var n=document.createElement("div");return s._.addCssClass(n,o),t.appendChild(n),n}),u);document.body&&(document.body.appendChild(u),n=parseInt(window.getComputedStyle(c).height,10),document.body.removeChild(u))}return p[e][t]=n||i,p[e][t]},e.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},e.prototype.getTheme=function(){for(var e,t=/\bag-(fresh|dark|blue|material|bootstrap|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&!(e=t.exec(o.className));)o=o.parentElement;if(!e)return{};var i=e[0];if(void 0===e[2]){var n=i.replace("ag-","ag-theme-");s._.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+i+" with "+n+".")}),"using-old-theme")}return{theme:i,el:o}},i([r.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([r.Bean("environment")],e)}();t.Environment=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),n=o(2),r=function(){function e(e,t){var o=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new i.EventService,this.eElement=e,this.preventMouseClick=t;var n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",n,{passive:!0}),o.eElement.removeEventListener("touchmove",r,{passive:!0}),o.eElement.removeEventListener("touchend",s,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var i=this.touchStart;window.setTimeout((function(){var n=o.touchStart===i;if(o.touching&&n&&!o.moved){o.moved=!0;var r={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(r)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);t&&!n._.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var o={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}();t.TouchListener=r},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=o(25),l=function(){function e(){}return e.prototype.formatValue=function(e,t,o,i){var n,r=e.getColDef(),s=null;if(n=t&&t.rowPinned&&r.pinnedRowValueFormatter?r.pinnedRowValueFormatter:r.valueFormatter){var a={value:i,node:t,data:t?t.data:null,colDef:e.getColDef(),column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};a.$scope=o,s=this.expressionService.evaluate(n,a)}else if(r.refData)return r.refData[i]||"";return null==s&&Array.isArray(i)&&(s=i.join(", ")),s},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",a.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Bean("valueFormatterService")],e)}();t.ValueFormatterService=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(0),a=o(3),l=o(2),p=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return l._.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var o=l._.getEventPath(e),i=0;i<o.length;i++){var n=o[i][t.GRID_DOM_KEY];if(l._.exists(n))return n===this.gridInstanceId}return!1},e.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},e.gridInstanceSequence=new l.NumberSequence,e.GRID_DOM_KEY="__ag_grid_instance",i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),t=i([r.Bean("mouseEventService")],e)}();t.MouseEventService=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(4),l=o(0),p=o(6),u=o(15),c=o(10),d=o(9),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},r([l.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("gridApi"),s("design:type",d.GridApi)],t.prototype,"gridApi",void 0),r([l.Bean("columnHoverService")],t)}(u.BeanStub);t.ColumnHoverService=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(39),p=o(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.config={},t.TEMPLATE='<div class="ag-input-field" role="presentation">\n <label ref="eLabel"></label>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <%displayField% ref="eInput"></%displayField%>\n </div>\n </div>',t}return n(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),p._.addCssClass(this.getGui(),this.className);var t=this.config,o=t.width,i=t.value;null!=o&&this.setWidth(o),null!=i&&this.setValue(i),this.addInputListeners()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.eInput,"input",(function(t){var o=t.target.value;e.setValue(o)}))},t.prototype.setInputType=function(){this.inputType&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return p._.setElementWidth(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},r([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([a.RefSelector("eWrapper"),s("design:type",HTMLElement)],t.prototype,"eWrapper",void 0),r([a.RefSelector("eInput"),s("design:type",Object)],t.prototype,"eInput",void 0),t}(l.AgAbstractField);t.AgAbstractInputField=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(4),a=o(6),l=o(5),p=o(10),u=o(9),c=o(3),d=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:a.Events.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},i([r.Autowired("eventService"),n("design:type",s.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("scrollVisibleService")],e)}();t.ScrollVisibleService=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(290),p=o(21),u=function(e){function t(t){var o=e.call(this)||this;return o.dimensionColState=[],o.valueColState=[],o.initialising=!0,o.detached=!1,o.columnNames={},o.pivotChart=t.pivotChart,o.chartType=t.chartType,o.aggFunc=t.aggFunc,o.cellRanges=t.cellRanges,o.palettes=t.palettes,o.activePalette=t.activePalette,o.suppressChartRanges=t.suppressChartRanges,o.chartId=o.generateId(),o}return n(t,e),t.prototype.init=function(){this.datasource=new l.ChartDatasource,this.getContext().wireBean(this.datasource),this.referenceCellRange=this.cellRanges[0]},t.prototype.updateData=function(){var e=this.getRowIndexes(),t=e.startRow,o=e.endRow,i=this.getSelectedDimension(),n=this.getSelectedValueCols();this.grouping=this.isGrouping();var r={aggFunc:this.aggFunc,dimensionCols:[i],grouping:this.grouping,pivoting:this.isPivotActive(),multiCategories:this.isMultiCategoryChart(),valueCols:n,startRow:t,endRow:o},s=this.datasource.getData(r);this.chartData=s.data,this.columnNames=s.columnNames},t.prototype.resetColumnState=function(){var e=this,o=this.getAllChartColumns(),i=o.dimensionCols,n=o.valueCols,r=this.pivotChart?this.columnController.getAllDisplayedColumns():this.getAllColumnsFromRanges();this.valueColState=n.map((function(t){return{column:t,colId:t.getColId(),displayName:e.getColDisplayName(t),selected:r.indexOf(t)>-1}})),this.dimensionColState=i.map((function(t){return{column:t,colId:t.getColId(),displayName:e.getColDisplayName(t),selected:!1}}));var s=i.filter((function(e){return r.indexOf(e)>-1}));if(s.length>0){var a=s[0].getColId();this.dimensionColState.forEach((function(e){return e.selected=e.colId===a}))}var l={colId:t.DEFAULT_CATEGORY,displayName:"(None)",selected:0===s.length};this.dimensionColState.unshift(l)},t.prototype.updateColumnState=function(e){var t=function(t){return t.colId===e.colId},o=this.dimensionColState.filter(t).length>0,i=this.valueColState.filter(t).length>0;o?this.dimensionColState.forEach((function(e){return e.selected=t(e)})):i&&this.valueColState.forEach((function(o){return o.selected=t(o)?e.selected:o.selected}))},t.prototype.updateCellRanges=function(e){var o=this.getAllChartColumns(),i=o.dimensionCols,n=o.valueCols,r=a._.last(this.cellRanges);if(r&&(this.referenceCellRange=r,e)){var s=r.columns[0]===e.column;this.referenceCellRange.startColumn=s?r.columns[1]:r.columns[0]}var l=this.getAllColumnsFromRanges();this.cellRanges=[];var p=i.filter((function(e){return l.indexOf(e)>-1}));if(this.initialising&&(p.length>0&&this.addRange(a.CellRangeType.DIMENSION,[p[0]]),this.initialising=!1),e&&i.indexOf(e.column)>-1)e.colId!==t.DEFAULT_CATEGORY&&this.addRange(a.CellRangeType.DIMENSION,[e.column]);else{var u=this.dimensionColState.filter((function(e){return e.selected}))[0];u&&u.colId!==t.DEFAULT_CATEGORY&&this.addRange(a.CellRangeType.DIMENSION,[u.column])}var c=n.filter((function(e){return l.indexOf(e)>-1}));e&&n.indexOf(e.column)>-1&&(e.selected?(c.push(e.column),c=this.getColumnInDisplayOrder(n,c)):c=c.filter((function(t){return t.getColId()!==e.colId}))),c.length>0&&this.addRange(a.CellRangeType.VALUE,c)},t.prototype.getData=function(){if(this.grouping&&this.isMultiCategoryChart())return this.chartData;var e=this.getSelectedDimension().colId;return this.chartData.map((function(t,o){var i=t[e]?t[e].toString():"";return t[e]={toString:function(){return i},id:o},t}))},t.prototype.setChartType=function(e){var t=this.isMultiCategoryChart();this.chartType=e,t!==this.isMultiCategoryChart()&&this.updateData()},t.prototype.isGrouping=function(){var e=this.gridOptionsWrapper.isTreeData(),t=e?null:this.columnController.getRowGroupColumns(),o=e||t&&t.length>0,i=this.columnController.getGroupDisplayColumns(),n=this.getSelectedDimension().colId,r=i.map((function(e){return e.getColId()})).some((function(e){return e===n}));return o&&r},t.prototype.isPivotActive=function(){return this.columnController.isPivotActive()},t.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},t.prototype.isPivotChart=function(){return this.pivotChart},t.prototype.setChartProxy=function(e){this.chartProxy=e},t.prototype.getChartProxy=function(){return this.chartProxy},t.prototype.getChartId=function(){return this.chartId},t.prototype.getValueColState=function(){return this.valueColState.map(this.displayNameMapper.bind(this))},t.prototype.getDimensionColState=function(){return this.dimensionColState},t.prototype.getCellRanges=function(){return this.cellRanges},t.prototype.getChartType=function(){return this.chartType},t.prototype.setActivePalette=function(e){this.activePalette=e},t.prototype.getActivePalette=function(){return this.activePalette},t.prototype.getPalettes=function(){return this.palettes},t.prototype.isSuppressChartRanges=function(){return this.suppressChartRanges},t.prototype.isDetached=function(){return this.detached},t.prototype.toggleDetached=function(){this.detached=!this.detached},t.prototype.getSelectedValueColState=function(){return this.getValueColState().filter((function(e){return e.selected}))},t.prototype.getSelectedValueCols=function(){return this.valueColState.filter((function(e){return e.selected})).map((function(e){return e.column}))},t.prototype.getSelectedDimension=function(){return this.dimensionColState.filter((function(e){return e.selected}))[0]},t.prototype.getColumnInDisplayOrder=function(e,t){var o=[];return e.forEach((function(e){t.indexOf(e)>-1&&o.push(e)})),o},t.prototype.addRange=function(e,t){var o={id:this.chartId,startRow:this.referenceCellRange.startRow,endRow:this.referenceCellRange.endRow,columns:t,startColumn:this.referenceCellRange.startColumn,type:e};e===a.CellRangeType.DIMENSION?this.cellRanges.unshift(o):this.cellRanges.push(o)},t.prototype.getAllColumnsFromRanges=function(){return a._.flatten(this.cellRanges.map((function(e){return e.columns})))},t.prototype.getColDisplayName=function(e){return this.columnController.getDisplayNameForColumn(e,"chart")},t.prototype.getRowIndexes=function(){var e=0,t=0,o=a._.last(this.cellRanges);return o&&(e=this.rangeController.getRangeStartRow(o).rowIndex,t=this.rangeController.getRangeEndRow(o).rowIndex),{startRow:e,endRow:t}},t.prototype.getAllChartColumns=function(){var e=this,t=this.columnController.getAllDisplayedColumns(),o=[],i=[];return t.forEach((function(t){var n=t.getColDef(),r=n.chartDataType;if(r){var s=!0;if("category"===r?o.push(t):"series"===r?i.push(t):"excluded"===r||(console.warn("ag-Grid: unexpected chartDataType value '"+r+"' supplied, instead use 'category', 'series' or 'excluded'"),s=!1),s)return}"ag-Grid-AutoColumn"!==n.colId?t.isPrimary()?e.isNumberCol(t.getColId())?i.push(t):o.push(t):i.push(t):o.push(t)})),{dimensionCols:o,valueCols:i}},t.prototype.isNumberCol=function(e){if("ag-Grid-AutoColumn"===e)return!1;var t=this.rowRenderer.getRowNode({rowIndex:0,rowPinned:void 0}),o=t?t.data:null;return"number"==typeof(t&&t.group?this.extractLeafData(t,e):o?o[e]:null)},t.prototype.extractLeafData=function(e,t){for(var o=e.allLeafChildren.map((function(e){return e.data})).map((function(e){return e[t]})),i=0;i<o.length;i++)if(null!==o[i])return o[i];return null},t.prototype.displayNameMapper=function(e){return this.columnNames[e.colId]?e.displayName=this.columnNames[e.colId].join(" - "):e.displayName=this.getColDisplayName(e.column),e},t.prototype.isMultiCategoryChart=function(){return[a.ChartType.Pie,a.ChartType.Doughnut,a.ChartType.Scatter,a.ChartType.Bubble].indexOf(this.chartType)<0},t.prototype.generateId=function(){return"id-"+Math.random().toString(36).substr(2,16)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.datasource&&this.datasource.destroy()},t.DEFAULT_CATEGORY="AG-GRID-DEFAULT-CATEGORY",r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("rangeController"),s("design:type",p.RangeController)],t.prototype,"rangeController",void 0),r([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.BeanStub);t.ChartModel=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(69),a=o(40),l=function(){function e(){}return e.prototype.execute=function(e){if(r._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))return null;var t=r._.missingOrEmpty(this.columnController.getValueColumns()),o=!this.gridOptionsWrapper.getGroupRowAggNodesFunc(),i=e.changedPath&&e.changedPath.isActive();if(!(t&&o&&i)){var n=this.createAggDetails(e);this.recursivelyCreateAggData(n)}},e.prototype.createAggDetails=function(e){var t=this.columnController.isPivotActive(),o=this.columnController.getValueColumns(),i=t?this.columnController.getPivotColumns():[];return{changedPath:e.changedPath,valueColumns:o,pivotColumns:i}},e.prototype.recursivelyCreateAggData=function(e){var t=this;e.changedPath.forEachChangedNodeDepthFirst((function(o){if(o.hasChildren()){if(-1===o.level){var i=!t.columnController.isPivotMode();if(t.gridOptionsWrapper.isSuppressAggAtRootLevel()&&i)return}t.aggregateRowNode(o,e)}else o.aggData&&o.setAggData(null)}),!0)},e.prototype.aggregateRowNode=function(e,t){var o,i=0===t.valueColumns.length,n=0===t.pivotColumns.length,r=this.gridOptionsWrapper.getGroupRowAggNodesFunc();o=r?r(e.childrenAfterFilter):i?null:n?this.aggregateRowNodeUsingValuesOnly(e,t):this.aggregateRowNodeUsingValuesAndPivot(e),e.setAggData(o),e.sibling&&e.sibling.setAggData(o)},e.prototype.aggregateRowNodeUsingValuesAndPivot=function(e){var t=this,o={},i=this.pivotStage.getPivotColumnDefs();return i.filter((function(e){return!r._.exists(e.pivotTotalColumnIds)})).forEach((function(i){var n,r=i.pivotKeys||[],s=i.pivotValueColumn,a=i.colId;n=e.leafGroup?t.getValuesFromMappedSet(e.childrenMapped,r,s):t.getValuesPivotNonLeaf(e,a),o[a]=t.aggregateValues(n,s.getAggFunc())})),i.filter((function(e){return r._.exists(e.pivotTotalColumnIds)})).forEach((function(e){var i=[],n=e.pivotValueColumn,r=e.pivotTotalColumnIds,s=e.colId;r&&r.length&&(r.forEach((function(e){i.push(o[e])})),o[s]=t.aggregateValues(i,n.getAggFunc()))})),o},e.prototype.aggregateRowNodeUsingValuesOnly=function(e,t){var o=this,i={},n=t.changedPath.isActive()?t.changedPath.getValueColumnsForNode(e,t.valueColumns):t.valueColumns,r=t.changedPath.isActive()?t.changedPath.getNotValueColumnsForNode(e,t.valueColumns):null,s=this.getValuesNormal(e,n),a=e.aggData;return n.forEach((function(e,t){i[e.getId()]=o.aggregateValues(s[t],e.getAggFunc())})),r&&a&&r.forEach((function(e){i[e.getId()]=a[e.getId()]})),i},e.prototype.getValuesPivotNonLeaf=function(e,t){var o=[];return e.childrenAfterFilter.forEach((function(e){var i=e.aggData[t];o.push(i)})),o},e.prototype.getValuesFromMappedSet=function(e,t,o){var i=this,n=e;if(t.forEach((function(e){return n=n?n[e]:null})),!n)return[];var r=[];return n.forEach((function(e){var t=i.valueService.getValue(o,e);r.push(t)})),r},e.prototype.getValuesNormal=function(e,t){var o=[];t.forEach((function(){return o.push([])}));for(var i=t.length,n=e.childrenAfterFilter.length,r=0;r<n;r++)for(var s=e.childrenAfterFilter[r],a=0;a<i;a++){var l=t[a],p=this.valueService.getValue(l,s);o[a].push(p)}return o},e.prototype.aggregateValues=function(e,t){var o;return"function"!=typeof(o="string"==typeof t?this.aggFuncService.getAggFunc(t):t)?(console.error("ag-Grid: unrecognised aggregation function "+t),null):o(e)},i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("valueService"),n("design:type",r.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("pivotStage"),n("design:type",s.PivotStage)],e.prototype,"pivotStage",void 0),i([r.Autowired("aggFuncService"),n("design:type",a.AggFuncService)],e.prototype,"aggFuncService",void 0),i([r.Bean("aggregationStage")],e)}();t.AggregationStage=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(70),a=function(){function e(){this.uniqueValues={}}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;this.columnController.isPivotActive()?this.executePivotOn(t,o):this.executePivotOff(o)},e.prototype.executePivotOff=function(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnController.isSecondaryColumnsPresent()&&(this.columnController.setSecondaryColumns(null,"rowModelUpdated"),e&&e.setInactive())},e.prototype.executePivotOn=function(e,t){var o=this.bucketUpRowNodes(e),i=this.setUniqueValues(o),n=this.columnController.getValueColumns(),r=n.map((function(e){return e.getId()})).join("#"),s=n.map((function(e){return e.getAggFunc().toString()})).join("#"),a=this.aggregationColumnsHashLastTime!==r,l=this.aggregationFuncsHashLastTime!==s;if(this.aggregationColumnsHashLastTime=r,this.aggregationFuncsHashLastTime=s,i||a||l){var p=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues);this.pivotColumnGroupDefs=p.pivotColumnGroupDefs,this.pivotColumnDefs=p.pivotColumnDefs,this.columnController.setSecondaryColumns(this.pivotColumnGroupDefs,"rowModelUpdated"),t&&t.setInactive()}},e.prototype.setUniqueValues=function(e){return!(JSON.stringify(e)===JSON.stringify(this.uniqueValues)||(this.uniqueValues=e,0))},e.prototype.bucketUpRowNodes=function(e){var t=this,o={};return function e(i){i.leafGroup?t.bucketRowNode(i,o):i.childrenAfterFilter.forEach((function(t){e(t)}))}(e),o},e.prototype.bucketRowNode=function(e,t){var o=this.columnController.getPivotColumns();0!==o.length?e.childrenMapped=this.bucketChildren(e.childrenAfterFilter,o,0,t):e.childrenMapped=null},e.prototype.bucketChildren=function(e,t,o,i){var n=this,s={},a=t[o];if(e.forEach((function(e){var t=n.valueService.getKeyForNode(a,e);r._.missing(t)&&(t=""),i[t]||(i[t]={}),s[t]||(s[t]=[]),s[t].push(e)})),o===t.length-1)return s;var l={};return r._.iterateObject(s,(function(e,r){l[e]=n.bucketChildren(r,t,o+1,i[e])})),l},e.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("valueService"),n("design:type",r.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("pivotColDefService"),n("design:type",s.PivotColDefService)],e.prototype,"pivotColDefService",void 0),i([r.Bean("pivotStage")],e)}();t.PivotStage=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(){function e(){}return e.prototype.createPivotColumnDefs=function(e){var t=[],o=[],i=this.columnController.getPivotColumns(),n=this.columnController.getValueColumns(),s=i.length,a=new r.NumberSequence;return this.recursivelyAddGroup(t,o,1,e,[],a,s,i),this.addRowGroupTotals(t,o,n,i,a),this.addPivotTotalsToGroups(t,o,a),{pivotColumnGroupDefs:t,pivotColumnDefs:o.map((function(e){return r._.cloneObject(e)}))}},e.prototype.recursivelyAddGroup=function(e,t,o,i,n,s,a,l){var p=this;r._.iterateObject(i,(function(i,r){var u=n.slice(0);if(u.push(i),o!==a){var c={children:[],headerName:i,pivotKeys:u,columnGroupShow:"open",groupId:"pivot"+s.next()};e.push(c),p.recursivelyAddGroup(c.children,t,o+1,r,u,s,a,l)}else{var d=p.columnController.getValueColumns(),h={children:[],headerName:i,pivotKeys:u,columnGroupShow:"open",groupId:"pivot"+s.next()};if(0===d.length){var f=p.createColDef(null,"-",u,s);h.children.push(f),t.push(f)}else d.forEach((function(e){var o=p.columnController.getDisplayNameForColumn(e,"header"),i=p.createColDef(e,o,u,s);i.columnGroupShow="open",h.children.push(i),t.push(i)}));e.push(h)}}));var u=l[o-1].getColDef().pivotComparator,c=this.headerNameComparator.bind(this,u);e.sort(c)},e.prototype.addPivotTotalsToGroups=function(e,t,o){var i=this;if(this.gridOptionsWrapper.getPivotColumnGroupTotals()){var n="after"===this.gridOptionsWrapper.getPivotColumnGroupTotals(),r=this.columnController.getValueColumns(),s=r.map((function(e){return e.getAggFunc()}));if(s&&!(s.length<1)&&this.sameAggFuncs(s)){var a=r[0];e.forEach((function(e){i.recursivelyAddPivotTotal(e,t,o,a,n)}))}}},e.prototype.recursivelyAddPivotTotal=function(e,t,o,i,n){var r=this,s=e;if(!s.children){var a=e;return a.colId?[a.colId]:null}var l=[];if(s.children.forEach((function(e){var s=r.recursivelyAddPivotTotal(e,t,o,i,n);s&&(l=l.concat(s))})),s.children.length>1){var p=this.createColDef(i,"Total",e.pivotKeys,o);p.pivotTotalColumnIds=l,p.aggFunc=i.getAggFunc();var u=e.children;n?u.push(p):u.unshift(p),t.push(p)}return l},e.prototype.addRowGroupTotals=function(e,t,o,i,n){var r=this;if(this.gridOptionsWrapper.getPivotRowTotals())for(var s="after"===this.gridOptionsWrapper.getPivotRowTotals(),a=s?o.slice():o.slice().reverse(),l=function(o){var l=a[o],u=[];e.forEach((function(e){u=u.concat(r.extractColIdsForValueColumn(e,l))}));var c=i.length;p.createRowGroupTotal(e,t,1,[],n,c,i,l,u,s)},p=this,u=0;u<a.length;u++)l(u)},e.prototype.extractColIdsForValueColumn=function(e,t){var o=this,i=e;if(!i.children){var n=i;return n.pivotValueColumn===t&&n.colId?[n.colId]:[]}var r=[];return i.children.forEach((function(e){o.extractColIdsForValueColumn(e,t);var i=o.extractColIdsForValueColumn(e,t);r=r.concat(i)})),r},e.prototype.createRowGroupTotal=function(e,t,o,i,n,r,s,a,l,p){var u=i.slice(0);if(o!==r){var c={children:[],pivotKeys:u,groupId:"pivot"+n.next()};p?e.push(c):e.unshift(c),this.createRowGroupTotal(c.children,t,o+1,u,n,r,s,a,l,p)}else{var d=this.columnController.getValueColumns(),h={children:[],pivotKeys:u,groupId:"pivot"+n.next()};if(0===d.length){var f=this.createColDef(null,"-",u,n);h.children.push(f),t.push(f)}else{var g=this.columnController.getDisplayNameForColumn(a,"header");(f=this.createColDef(a,g,u,n)).pivotTotalColumnIds=l,h.children.push(f),t.push(f)}p?e.push(h):e.unshift(h)}},e.prototype.createColDef=function(e,t,o,i){var n={};if(e){var s=e.getColDef();r._.assign(n,s),n.hide=!1}return n.headerName=t,n.colId="pivot_"+i.next(),n.field=n.colId,n.pivotKeys=o,n.pivotValueColumn=e,n.filter=!1,n},e.prototype.sameAggFuncs=function(e){if(1==e.length)return!0;for(var t=1;t<e.length;t++)if(e[t]!==e[0])return!1;return!0},e.prototype.headerNameComparator=function(e,t,o){return e?e(t.headerName,o.headerName):t.headerName&&!o.headerName?1:!t.headerName&&o.headerName?-1:t.headerName&&o.headerName?t.headerName<o.headerName?-1:t.headerName>o.headerName?1:0:0},i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("pivotColDefService")],e)}();t.PivotColDefService=s},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.activeComps=[],o.params=t,o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initFontSelects(),this.initFontColorPicker()},t.prototype.addCompToPanel=function(e){this.labelsGroup.addItem(e),this.activeComps.push(e)},t.prototype.setEnabled=function(e){this.labelsGroup.setEnabled(e)},t.prototype.initGroup=function(){var e=this;this.labelsGroup.setTitle(this.params.name?this.params.name:this.chartTranslator.translate("labels")).setEnabled(this.params.enabled).hideEnabledCheckbox(!!this.params.suppressEnabledCheckbox).hideOpenCloseIcons(!0).onEnableChange((function(t){e.params.setEnabled&&e.params.setEnabled(t)}))},t.prototype.initFontSelects=function(){var e=this,t=function(t,o,i,n){var r=e.params.initialFont[t],s=i[0];if(r){var l=""+r,p=a._.exists(l)?l.toLowerCase():"",u=i.map((function(e){return e.toLowerCase()})).indexOf(p);if(u<0){var c=a._.capitalise(l);i.push(c),n&&i.sort(),s=c}else s=i[u]}var d=i.map((function(e){return{value:e,text:e}}));o.addOptions(d).setValue(""+s).onValueChange((function(o){var i;return e.params.setFont(((i={})[t]=o,i))}))};t("family",this.labelFontFamilySelect,["Arial, sans-serif","Aria Black, sans-serif","Book Antiqua, serif","Charcoal, sans-serif","Comic Sans MS, cursive","Courier, monospace","Courier New, monospace","Gadget, sans-serif","Geneva, sans-serif","Helvetica, sans-serif","Impact, sans-serif","Lucida Console, monospace","Lucida Grande, sans-serif","Lucida Sans Unicode, sans-serif","Monaco, monospace","Palatino Linotype, serif","Palatino, serif","Times New Roman, serif","Times, serif","Verdana, sans-serif"],!0),t("weight",this.labelFontWeightSelect,this.getWeigthNames(["normal","bold","italic","boldItalic"]),!1),this.labelFontSizeSelect.setLabel(this.chartTranslator.translate("size")),t("size",this.labelFontSizeSelect,["8","10","12","14","16","18","20","22","24","26","28","30","32","34","36"],!0)},t.prototype.initFontColorPicker=function(){var e=this;this.labelColorPicker.setLabel(this.chartTranslator.translate("color")).setInputWidth(45).setValue(""+this.params.initialFont.color).onValueChange((function(t){return e.params.setFont({color:t})}))},t.prototype.getWeigthNames=function(e){var t=this;return e.map((function(e){return t.chartTranslator.translate(e)}))},t.prototype.destroyActiveComps=function(){this.activeComps.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActiveComps(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n <ag-group-component ref="labelsGroup">\n <ag-select ref="labelFontFamilySelect"></ag-select>\n <ag-select ref="labelFontWeightSelect"></ag-select>\n <div class="ag-group-subgroup">\n <ag-select ref="labelFontSizeSelect"></ag-select>\n <ag-color-picker ref="labelColorPicker"></ag-color-picker>\n </div>\n </ag-group-component>\n </div>',r([a.RefSelector("labelsGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"labelsGroup",void 0),r([a.RefSelector("labelFontFamilySelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontFamilySelect",void 0),r([a.RefSelector("labelFontWeightSelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontWeightSelect",void 0),r([a.RefSelector("labelFontSizeSelect"),s("design:type",a.AgSelect)],t.prototype,"labelFontSizeSelect",void 0),r([a.RefSelector("labelColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"labelColorPicker",void 0),r([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.LabelPanel=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(298),n=function(){function e(){this.commands=[],this.params=[],this._closedPath=!1}return e.prototype.moveTo=function(e,t){this.xy?(this.xy[0]=e,this.xy[1]=t):this.xy=[e,t],this.commands.push("M"),this.params.push(e,t)},e.prototype.lineTo=function(e,t){this.xy?(this.commands.push("L"),this.params.push(e,t),this.xy[0]=e,this.xy[1]=t):this.moveTo(e,t)},e.prototype.rect=function(e,t,o,i){this.moveTo(e,t),this.lineTo(e+o,t),this.lineTo(e+o,t+i),this.lineTo(e,t+i),this.closePath()},e.prototype.arcTo=function(e,t,o,i,n,r,s){var a=this.xy;if(a){e<0&&(e=-e),t<0&&(t=-t);var l=a[0],p=a[1],u=(l-r)/2,c=(p-s)/2,d=Math.sin(o),h=Math.cos(o),f=h*u+d*c,g=-d*u+h*c,y=f/e,m=g/t,v=y*y+m*m,C=(l+r)/2,_=(p+s)/2,w=0,b=0;v>=1?(e*=v=Math.sqrt(v),t*=v):(v=Math.sqrt(1/v-1),i===n&&(v=-v),C+=h*(w=v*e*m)-d*(b=-v*t*y),_+=d*w+h*b);var E=Math.atan2((g-b)/t,(f-w)/e),R=Math.atan2((-g-b)/t,(-f-w)/e)-E;this.cubicArc(C,_,e,t,o,E,E+R,1-n)}},e.prototype.arcToAlt=function(e,t,o,i,n,r,s){if(this.xy){e<0&&(e=-e),t<0&&(t=-t);var a=(this.xy[0]-r)/2,l=(this.xy[1]-s)/2,p=Math.sin(o),u=Math.cos(o),c=u*a+p*l,d=-p*a+u*l,h=e*e*d*d,f=t*t*c*c,g=(i===n?0:1)*Math.sqrt((e*e*t*t-h-f)/(h+f))*e*d/t;Math.acos((c-g)/e/((c-g)/e))}},e.cubicArc=function(e,t,o,i,n,r,s,a,l,p){if(p){var u=a;a=l,l=u}var c=t.length,d=.5522847498307935,h=Math.sin(a),f=Math.cos(a),g=Math.sin(s),y=Math.cos(s),m=Math.PI/2,v=y*f*n-g*h*r,C=g*f*n+y*h*r,_=-y*h*n-g*f*r,w=-g*h*n+y*f*r;for((l-=a)<0&&(l+=2*Math.PI),e.push("M"),t.push(v+o,C+i);l>=m;){l-=m,e.push("C");var b=_+o;t.push(v+_*d+o,C+w*d+i,v*d+_+o,C*d+w+i,Math.abs(b)<1e-8?0:b,w+i),u=v,v=_,_=-u,u=C,C=w,w=-u}if(l){var E=4/3*Math.tan(l/4),R=Math.sin(l),S=Math.cos(l),P=S+E*R,O=R-E*S;e.push("C"),b=v*S+_*R+o,t.push(v+_*E+o,C+w*E+i,v*P+_*O+o,C*P+w*O+i,Math.abs(b)<1e-8?0:b,C*S+w*R+i)}if(p)for(var T=c,A=t.length-2;T<A;T+=2,A-=2)u=t[T],t[T]=t[A],t[A]=u,u=t[T+1],t[T+1]=t[A+1],t[A+1]=u},e.prototype.cubicArc=function(t,o,i,n,r,s,a,l){var p=this.commands,u=this.params,c=p.length;e.cubicArc(p,u,t,o,i,n,r,s,a,l);var d=u[u.length-2],h=u[u.length-1];this.xy?(p[c]="L",this.xy[0]=d,this.xy[1]=h):this.xy=[d,h]},e.prototype.deCasteljau=function(e,t){var o=e.length;if(o<2||o%2==1)throw new Error("Fewer than two points or not an even count.");if(2===o||0===t)return e.slice(0,2);if(1===t)return e.slice(-2);for(var i=[],n=o-2,r=0;r<n;r+=2)i.push((1-t)*e[r]+t*e[r+2],(1-t)*e[r+1]+t*e[r+3]);return this.deCasteljau(i,t)},e.prototype.approximateCurve=function(e,t){var o=this.deCasteljau(e,0);this.moveTo(o[0],o[1]);for(var i=1/t,n=i;n<=1;n+=i){var r=this.deCasteljau(e,n);this.lineTo(r[0],r[1])}},e.prototype.quadraticCurveTo=function(e,t,o,i){this.xy||this.moveTo(e,t),this.cubicCurveTo((this.xy[0]+2*e)/3,(this.xy[1]+2*t)/3,(2*e+o)/3,(2*t+i)/3,o,i)},e.prototype.cubicCurveTo=function(e,t,o,i,n,r){this.xy||this.moveTo(e,t),this.commands.push("C"),this.params.push(e,t,o,i,n,r),this.xy[0]=n,this.xy[1]=r},Object.defineProperty(e.prototype,"closedPath",{get:function(){return this._closedPath},enumerable:!0,configurable:!0}),e.prototype.closePath=function(){this.xy&&(this.xy=void 0,this.commands.push("Z"),this._closedPath=!0)},e.prototype.clear=function(){this.commands.length=0,this.params.length=0,this.xy=void 0,this._closedPath=!1},e.prototype.isPointInPath=function(e,t){for(var o=this.commands,n=this.params,r=o.length,s=NaN,a=NaN,l=0,p=0,u=0,c=0,d=0;c<r;c++)switch(o[c]){case"M":isNaN(s)||i.segmentIntersection(s,a,l,p,-1e4,-1e4,e,t)&&u++,s=l=n[d++],a=p=n[d++];break;case"L":i.segmentIntersection(l,p,l=n[d++],p=n[d++],-1e4,-1e4,e,t)&&u++;break;case"C":u+=i.cubicSegmentIntersections(l,p,n[d++],n[d++],n[d++],n[d++],l=n[d++],p=n[d++],-1e4,-1e4,e,t).length;break;case"Z":isNaN(s)||i.segmentIntersection(s,a,l,p,-1e4,-1e4,e,t)&&u++}return u%2==1},e.fromString=function(t){var o=new e;return o.setFromString(t),o},e.parseSvgPath=function(t){return t.trim().split(e.splitCommandsRe).map((function(t){var o=t.match(e.matchParamsRe);return{command:t.substr(0,1),params:o?o.map(parseFloat):[]}}))},e.prettifySvgPath=function(t){return e.parseSvgPath(t).map((function(e){return e.command+e.params.join(",")})).join("\n")},e.prototype.setFromString=function(t){var o,i,n,r,s,a=this;function l(){s.match(e.quadraticCommandRe)||(n=o,r=i)}function p(){s.match(e.cubicCommandRe)||(n=o,r=i)}this.clear(),e.parseSvgPath(t).forEach((function(e){var t=e.params,u=t.length,c=0;switch(e.command){case"M":for(a.moveTo(o=t[c++],i=t[c++]);c<u;)a.lineTo(o=t[c++],i=t[c++]);break;case"m":for(a.moveTo(o+=t[c++],i+=t[c++]);c<u;)a.lineTo(o+=t[c++],i+=t[c++]);break;case"L":for(;c<u;)a.lineTo(o=t[c++],i=t[c++]);break;case"l":for(;c<u;)a.lineTo(o+=t[c++],i+=t[c++]);break;case"C":for(;c<u;)a.cubicCurveTo(t[c++],t[c++],n=t[c++],r=t[c++],o=t[c++],i=t[c++]);break;case"c":for(;c<u;)a.cubicCurveTo(o+t[c++],i+t[c++],n=o+t[c++],r=i+t[c++],o+=t[c++],i+=t[c++]);break;case"S":for(p();c<u;)a.cubicCurveTo(o+o-n,i+i-r,n=t[c++],r=t[c++],o=t[c++],i=t[c++]);break;case"s":for(p();c<u;)a.cubicCurveTo(o+o-n,i+i-r,n=o+t[c++],r=i+t[c++],o+=t[c++],i+=t[c++]);break;case"Q":for(;c<u;)a.quadraticCurveTo(n=t[c++],r=t[c++],o=t[c++],i=t[c++]);break;case"q":for(;c<u;)a.quadraticCurveTo(n=o+t[c++],r=i+t[c++],o+=t[c++],i+=t[c++]);break;case"T":for(l();c<u;)a.quadraticCurveTo(n=o+o-n,r=i+i-r,o=t[c++],i=t[c++]);break;case"t":for(l();c<u;)a.quadraticCurveTo(n=o+o-n,r=i+i-r,o+=t[c++],i+=t[c++]);break;case"A":for(;c<u;)a.arcTo(t[c++],t[c++],t[c++]*Math.PI/180,t[c++],t[c++],o=t[c++],i=t[c++]);break;case"a":for(;c<u;)a.arcTo(t[c++],t[c++],t[c++]*Math.PI/180,t[c++],t[c++],o+=t[c++],i+=t[c++]);break;case"Z":case"z":a.closePath();break;case"H":for(;c<u;)a.lineTo(o=t[c++],i);break;case"h":for(;c<u;)a.lineTo(o+=t[c++],i);break;case"V":for(;c<u;)a.lineTo(o,i=t[c++]);break;case"v":for(;c<u;)a.lineTo(o,i+=t[c++])}s=e.command}))},e.prototype.toString=function(){for(var e=this.commands,t=this.params,o=e.length,i=[],n=0,r=0;n<o;n++)switch(e[n]){case"M":i.push("M"+t[r++]+","+t[r++]);break;case"L":i.push("L"+t[r++]+","+t[r++]);break;case"C":i.push("C"+t[r++]+","+t[r++]+" "+t[r++]+","+t[r++]+" "+t[r++]+","+t[r++]);break;case"Z":i.push("Z")}return i.join("")},e.prototype.toPrettyString=function(){return e.prettifySvgPath(this.toString())},e.prototype.toSvg=function(){return e.xmlDeclaration+'\n<svg width="100%" height="100%" viewBox="0 0 50 50" version="1.1" xmlns="'+e.xmlns+'">\n <path d="'+this.toString()+'" style="fill:none;stroke:#000;stroke-width:0.5;"/>\n</svg>'},e.prototype.toDebugSvg=function(){var t=e.prettifySvgPath(this.toString());return e.xmlDeclaration+'\n<svg width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="'+e.xmlns+'">\n <path d="'+t+'" style="fill:none;stroke:#000;stroke-width:0.5;"/>\n</svg>'},e.prototype.toCubicPaths=function(){var e,t,o,i,n,r=[],s=this.params,a=0;return this.commands.forEach((function(l){switch(l){case"M":e=[t=i=s[a++],o=n=s[a++]],r.push(e);break;case"L":var p=s[a++],u=s[a++];e.push((i+i+p)/3,(n+n+u)/3,(i+p+p)/3,(n+u+u)/3,i=p,n=u);break;case"C":e.push(s[a++],s[a++],s[a++],s[a++],i=s[a++],n=s[a++]);break;case"Z":e.push((i+i+t)/3,(n+n+o)/3,(i+t+t)/3,(n+o+o)/3,i=t,n=o)}})),r},e.cubicPathToString=function(e){var t=e.length;if(!(t%2==0&&(t/2-1)/2>=1))throw new Error("Invalid path.");return"M"+e.slice(0,2).join(",")+"C"+e.slice(2).join(",")},e.splitCommandsRe=/(?=[AaCcHhLlMmQqSsTtVvZz])/g,e.matchParamsRe=/-?[0-9]*\.?\d+/g,e.quadraticCommandRe=/[QqTt]/,e.cubicCommandRe=/[CcSs]/,e.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>',e.xmlns="http://www.w3.org/2000/svg",e}();t.Path2D=n},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(41),a=o(72),l=o(29),p=o(54),u=o(99),c=o(42);!function(e){e[e.Open=0]="Open",e[e.Chord=1]="Chord",e[e.Round=2]="Round"}(r=t.ArcType||(t.ArcType={}));var d=function(e){function t(){var t=e.call(this)||this;return t.path=new a.Path2D,t._dirtyPath=!0,t._centerX=0,t._centerY=0,t._radiusX=10,t._radiusY=10,t._startAngle=0,t._endAngle=2*Math.PI,t._counterClockwise=!1,t._type=r.Open,t.getBBox=function(){return new l.BBox(t.centerX-t.radiusX,t.centerY-t.radiusY,2*t.radiusX,2*t.radiusY)},t.restoreOwnStyles(),t}return n(t,e),t.create=function(e,o,i,n,r,s,a){void 0===n&&(n=i),void 0===r&&(r=0),void 0===s&&(s=2*Math.PI),void 0===a&&(a=!1);var l=new t;return l.centerX=e,l.centerY=o,l.radiusX=i,l.radiusY=n,l.startAngle=r,l.endAngle=s,l.counterClockwise=a,l},Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusX",{get:function(){return this._radiusX},set:function(e){this._radiusX!==e&&(this._radiusX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusY",{get:function(){return this._radiusY},set:function(e){this._radiusY!==e&&(this._radiusY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPie",{get:function(){return c.isEqual(p.normalizeAngle360(this.startAngle),p.normalizeAngle360(this.endAngle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"counterClockwise",{get:function(){return this._counterClockwise},set:function(e){this._counterClockwise!==e&&(this._counterClockwise=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){this._type!==e&&(this._type=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){if(this.dirtyPath){var e=this.path;e.clear(),e.cubicArc(this.centerX,this.centerY,this.radiusX,this.radiusY,0,this.startAngle,this.endAngle,this.counterClockwise?1:0),this.type===r.Chord?e.closePath():this.type!==r.Round||this.fullPie||(e.lineTo(this.centerX,this.centerY),e.closePath()),this.dirtyPath=!1}},t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t),i=this.getBBox();return this.type!==r.Open&&i.containsPoint(o.x,o.y)&&this.path.isPointInPath(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Arc",t.defaultStyles=u.chainObjects(s.Shape.defaultStyles,{lineWidth:1,fillStyle:null}),t}(s.Shape);t.Arc=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(16),n=function(){function e(){this.id=this.createId(),this.group=new i.Group,this._data=[],this._chart=void 0,this._visible=!0,this.tooltipEnabled=!1,this._showInLegend=!0}return e.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible!==e&&(this._visible=e,this.scheduleData())},enumerable:!0,configurable:!0}),e.prototype.toggleSeriesItem=function(e,t){this.visible=t},Object.defineProperty(e.prototype,"showInLegend",{get:function(){return this._showInLegend},set:function(e){this._showInLegend!==e&&(this._showInLegend=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),e.prototype.scheduleLayout=function(){this.chart&&(this.chart.layoutPending=!0)},e.prototype.scheduleData=function(){this.chart&&(this.chart.dataPending=!0)},e}();t.Series=n},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.params=o,i}return n(t,e),t.prototype.init=function(){var e=this;this.params.checked?this.eIcon.appendChild(a._.createIconNoSpan("check",this.gridOptionsWrapper)):this.params.icon?a._.isNodeOrElement(this.params.icon)?this.eIcon.appendChild(this.params.icon):"string"==typeof this.params.icon?this.eIcon.innerHTML=this.params.icon:console.warn("ag-Grid: menu item icon must be DOM node or string"):this.eIcon.innerHTML=" ",this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.tooltipManager.registerTooltip(this)),this.params.shortcut&&(this.eShortcut.innerHTML=this.params.shortcut),this.params.subMenu?this.gridOptionsWrapper.isEnableRtl()?this.ePopupPointer.appendChild(a._.createIconNoSpan("smallLeft",this.gridOptionsWrapper)):this.ePopupPointer.appendChild(a._.createIconNoSpan("smallRight",this.gridOptionsWrapper)):this.ePopupPointer.innerHTML=" ",this.eName.innerHTML=this.params.name,this.params.disabled?a._.addCssClass(this.getGui(),"ag-menu-option-disabled"):this.addGuiEventListener("click",this.onOptionSelected.bind(this)),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return a._.addCssClass(e.getGui(),t)}))},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.getComponentHolder=function(){},t.prototype.onOptionSelected=function(e){var o={type:t.EVENT_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,mouseEvent:e};this.dispatchEvent(o),this.params.action&&this.params.action()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-menu-option">\n <span ref="eIcon" class="ag-menu-option-icon"></span>\n <span ref="eName" class="ag-menu-option-text"></span>\n <span ref="eShortcut" class="ag-menu-option-shortcut"></span>\n <span ref="ePopupPointer" class="ag-menu-option-popup-pointer"></span>\n </div>',t.EVENT_ITEM_SELECTED="itemSelected",r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("tooltipManager"),s("design:type",a.TooltipManager)],t.prototype,"tooltipManager",void 0),r([a.RefSelector("eIcon"),s("design:type",HTMLElement)],t.prototype,"eIcon",void 0),r([a.RefSelector("eName"),s("design:type",HTMLElement)],t.prototype,"eName",void 0),r([a.RefSelector("eShortcut"),s("design:type",HTMLElement)],t.prototype,"eShortcut",void 0),r([a.RefSelector("ePopupPointer"),s("design:type",HTMLElement)],t.prototype,"ePopupPointer",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.MenuItemComponent=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(21),a=function(){function e(){this.pasteOperationActive=!1}return e.prototype.isPasteOperationActive=function(){return this.pasteOperationActive},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("ClipboardService"),this.rowModel.getType()===r.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.pasteFromClipboard=function(){var e=this;this.logger.log("pasteFromClipboard"),this.executeOnTempElement((function(e){e.focus()}),(function(t){var o=t.value;if(!r._.missingOrEmpty(o)){var i=e.dataToArray(o),n=e.gridOptionsWrapper.getProcessDataFromClipboardFunc();if(n&&(i=n({data:i})),!r._.missingOrEmpty(i)){e.eventService.dispatchEvent({type:r.Events.EVENT_PASTE_START,api:e.gridOptionsWrapper.getApi(),columnApi:e.gridOptionsWrapper.getColumnApi(),source:"clipboard"});var s=1==i.length&&1==i[0].length;e.rangeController.isMoreThanOneCell()&&!s?e.pasteIntoActiveRange(i):e.pasteStartingFromFocusedCell(i),e.eventService.dispatchEvent({type:r.Events.EVENT_PASTE_END,api:e.gridOptionsWrapper.getApi(),columnApi:e.gridOptionsWrapper.getColumnApi(),source:"clipboard"})}}}))},e.prototype.pasteIntoActiveRange=function(e){var t=this,o={},i=[],n=this.focusedCellController.getFocusedCell(),s=this.rangeSize()%e.length!=0,a=0,l=0;this.iterateActiveRanges(!1,(function(n,p,u,c,d){if(c-a>=e.length){if(s)return;a+=l,l=0}var h=e[c-a];i.push(p),u.forEach((function(e,i){if(e.isCellEditable(p)){i>=h.length&&(i%=h.length);var s=h[i],a=t.gridOptionsWrapper.getProcessCellFromClipboardFunc();s=t.userProcessCell(p,e,s,a,r.Constants.EXPORT_TYPE_DRAG_COPY),t.valueService.setValue(p,e,s);var l={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:e},u=t.cellPositionUtils.createId(l);o[u]=!0}})),l++})),this.rowRenderer.refreshCells({rowNodes:i,columns:[]}),this.dispatchFlashCells(o),n&&this.focusedCellController.setFocusedCell(n.rowIndex,n.column,n.rowPinned,!0),this.fireRowChanged(i)},e.prototype.pasteStartingFromFocusedCell=function(e){var t=this.focusedCellController.getFocusedCell();if(t){this.pasteOperationActive=!0;var o=r._.last(e);o&&1===o.length&&""===o[0]&&r._.removeFromArray(e,o);var i,n={rowIndex:t.rowIndex,rowPinned:t.rowPinned},s={},a=[],l=[],p=this.columnController.getDisplayedColumnsStartingAt(t.column),u=1===e.length&&1===e[0].length;if(this.clientSideRowModel){var c=this.gridOptionsWrapper.isAggregateOnlyChangedColumns();i=new r.ChangedPath(c,this.clientSideRowModel.getRootNode())}u?this.pasteSingleValue(e,a,s,l,i):this.pasteMultipleValues(e,n,a,p,s,l,r.Constants.EXPORT_TYPE_CLIPBOARD,i),i&&this.clientSideRowModel.doAggregate(i),this.rowRenderer.refreshCells({rowNodes:a,columns:l}),this.dispatchFlashCells(s),this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0),this.fireRowChanged(a),this.pasteOperationActive=!1}},e.prototype.copyRangeDown=function(){var e=this;if(!this.rangeController.isEmpty()){this.eventService.dispatchEvent({type:r.Events.EVENT_PASTE_START,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),source:"rangeDown"});var t={},o=[],i=[],n=[];this.iterateActiveRanges(!0,(function(s,a,l,p,u){o.length?(i.push(a),l.forEach((function(i,n){if(i.isCellEditable(a)){var l=o[n],p=e.gridOptionsWrapper.getProcessCellFromClipboardFunc();l=e.userProcessCell(a,i,l,p,r.Constants.EXPORT_TYPE_DRAG_COPY),e.valueService.setValue(a,i,l);var u={rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:i},c=e.cellPositionUtils.createId(u);t[c]=!0}}))):l.forEach((function(t){var i=e.valueService.getValue(t,a),s=e.gridOptionsWrapper.getProcessCellForClipboardFunc();i=e.userProcessCell(a,t,i,s,r.Constants.EXPORT_TYPE_DRAG_COPY),o.push(i),n.push(t.getId())}))})),this.rowRenderer.refreshCells({rowNodes:i,columns:n}),this.dispatchFlashCells(t),this.fireRowChanged(i),this.eventService.dispatchEvent({type:r.Events.EVENT_PASTE_END,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),source:"rangeDown"})}},e.prototype.fireRowChanged=function(e){var t=this;this.gridOptionsWrapper.isFullRowEdit()&&e.forEach((function(e){var o={type:r.Events.EVENT_ROW_VALUE_CHANGED,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned,context:t.gridOptionsWrapper.getContext(),api:t.gridOptionsWrapper.getApi(),columnApi:t.gridOptionsWrapper.getColumnApi()};t.eventService.dispatchEvent(o)}))},e.prototype.pasteMultipleValues=function(e,t,o,i,n,r,s,a){var l=this;return e.forEach((function(e){if(t){var p=l.rowPositionUtils.getRowNode(t);p&&(o.push(p),e.forEach((function(e,o){var u=i[o];l.updateCellValue(p,u,e,t,n,r,s,a)})),t=l.cellNavigationService.getRowBelow({rowPinned:t.rowPinned,rowIndex:t.rowIndex}))}})),t},e.prototype.pasteSingleValue=function(e,t,o,i,n){var s=this,a=e[0][0];this.iterateActiveRanges(!1,(function(e,l,p){t.push(l),p.forEach((function(t){s.updateCellValue(l,t,a,e,o,i,r.Constants.EXPORT_TYPE_CLIPBOARD,n)}))}))},e.prototype.updateCellValue=function(e,t,o,i,n,r,s,a){if(e&&i&&t.isCellEditable(e)&&!t.isSuppressPaste(e)){var l=this.userProcessCell(e,t,o,this.gridOptionsWrapper.getProcessCellFromClipboardFunc(),s);this.valueService.setValue(e,t,l);var p={rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:t};n[this.cellPositionUtils.createId(p)]=!0,r.indexOf(t.getId())<0&&r.push(t.getId()),a&&!e.isRowPinned()&&a.addParentNode(e.parent,[t])}},e.prototype.copyToClipboard=function(e){this.logger.log("copyToClipboard: includeHeaders = "+e),void 0===e&&(e=this.gridOptionsWrapper.isCopyHeadersToClipboard());var t=!this.selectionController.isEmpty()&&!this.gridOptionsWrapper.isSuppressCopyRowsToClipboard();this.rangeController.isMoreThanOneCell()?this.copySelectedRangeToClipboard(e):t?this.copySelectedRowsToClipboard(e):this.focusedCellController.isAnyCellFocused()?this.copyFocusedCellToClipboard(e):this.copySelectedRangeToClipboard(e)},e.prototype.iterateActiveRanges=function(e,t,o){var i=this;if(!this.rangeController.isEmpty()){var n=this.rangeController.getCellRanges();if(e){var r=n[0];this.iterateActiveRange(r,t,o,!0)}else n.forEach((function(e,r){return i.iterateActiveRange(e,t,o,r===n.length-1)}))}},e.prototype.iterateActiveRange=function(e,t,o,i){var n=this.rangeController.getRangeStartRow(e),s=this.rangeController.getRangeEndRow(e);o&&r._.exists(o)&&e.columns&&o(e.columns);for(var a=0,l=!1;!l&&!r._.missing(n)&&n;){var p=this.rowPositionUtils.getRowNode(n);l=n.rowIndex===s.rowIndex&&n.rowIndex===s.rowIndex,t(n,p,e.columns,a++,l&&i),n=this.cellNavigationService.getRowBelow(n)}},e.prototype.copySelectedRangeToClipboard=function(e){var t=this;if(void 0===e&&(e=!1),!this.rangeController.isEmpty()){var o=this.gridOptionsWrapper.getClipboardDeliminator(),i="",n={};this.iterateActiveRanges(!1,(function(e,s,a,l,p){a.forEach((function(a,l){var p=t.valueService.getValue(a,s),u=t.userProcessCell(s,a,p,t.gridOptionsWrapper.getProcessCellForClipboardFunc(),r.Constants.EXPORT_TYPE_CLIPBOARD);0!=l&&(i+=o),r._.exists(u)&&(i+=u);var c={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:a},d=t.cellPositionUtils.createId(c);n[d]=!0})),p||(i+="\r\n")}),(function(n){e&&(n.forEach((function(e,n){var s=t.columnController.getDisplayNameForColumn(e,"clipboard",!0),a=t.userProcessHeader(e,s,t.gridOptionsWrapper.getProcessHeaderForClipboardFunc());0!=n&&(i+=o),r._.exists(a)&&(i+=a)})),i+="\r\n")})),this.copyDataToClipboard(i),this.dispatchFlashCells(n)}},e.prototype.copyFocusedCellToClipboard=function(e){var t;void 0===e&&(e=!1);var o=this.focusedCellController.getFocusedCell();if(!r._.missing(o)){var i=this.cellPositionUtils.createId(o),n={rowPinned:o.rowPinned,rowIndex:o.rowIndex},s=this.rowPositionUtils.getRowNode(n),a=o.column,l=this.valueService.getValue(a,s),p=this.userProcessCell(s,a,l,this.gridOptionsWrapper.getProcessCellForClipboardFunc(),r.Constants.EXPORT_TYPE_CLIPBOARD);r._.missing(p)&&(p="\t");var u="";if(e){var c=this.columnController.getDisplayNameForColumn(a,"clipboard",!0);u=this.userProcessHeader(a,c,this.gridOptionsWrapper.getProcessHeaderForClipboardFunc()),u+="\r\n"}u+=p.toString(),this.copyDataToClipboard(u),this.dispatchFlashCells(((t={})[i]=!0,t))}},e.prototype.dispatchFlashCells=function(e){var t=this;window.setTimeout((function(){var o={type:r.Events.EVENT_FLASH_CELLS,cells:e,api:t.gridApi,columnApi:t.columnApi};t.eventService.dispatchEvent(o)}),0)},e.prototype.userProcessCell=function(e,t,o,i,n){return i?i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:n}):o},e.prototype.userProcessHeader=function(e,t,o){return o?o({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):t},e.prototype.copySelectedRowsToClipboard=function(e,t){void 0===e&&(e=!1);var o={columnKeys:t,skipHeader:!e,skipFooters:!0,suppressQuotes:!0,columnSeparator:this.gridOptionsWrapper.getClipboardDeliminator(),onlySelected:!0,processCellCallback:this.gridOptionsWrapper.getProcessCellForClipboardFunc(),processHeaderCallback:this.gridOptionsWrapper.getProcessHeaderForClipboardFunc()},i=this.csvCreator.getDataAsCsv(o);this.copyDataToClipboard(i)},e.prototype.copyDataToClipboard=function(e){var t=this.gridOptionsWrapper.getSendToClipboardFunc();t&&r._.exists(t)?t({data:e}):this.executeOnTempElement((function(t){t.value=e,t.select(),t.focus(),document.execCommand("copy")||console.warn("ag-grid: Browser did not allow document.execCommand('copy'). Ensure api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.")}))},e.prototype.executeOnTempElement=function(e,t){var o=document.createElement("textarea");o.style.width="1px",o.style.height="1px",o.style.top="0px",o.style.left="0px",o.style.position="absolute",o.style.opacity="0.0";var i=this.gridCore.getRootGui();i.appendChild(o);try{e(o)}catch(e){console.warn("ag-grid: Browser does not support document.execCommand('copy') for clipboard operations")}t?window.setTimeout((function(){t(o),i.removeChild(o)}),100):i.removeChild(o)},e.prototype.dataToArray=function(e){for(var t,o=this.gridOptionsWrapper.getClipboardDeliminator(),i=new RegExp("(\\"+o+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^\\'+o+"\\r\\n]*))","gi"),n=[[]],s=!0;t=i.exec(e);){var a=t[1];(s&&a||!t.index&&t[0].charAt(0)===o)&&n[0].push(""),a.length&&a!==o&&n.push([]);var l;l=t[2]?t[2].replace(new RegExp('""',"g"),'"'):t[3];var p=r._.last(n);p&&p.push(l),s=!1}return n},e.prototype.rangeSize=function(){var e,t,o=this.rangeController.getCellRanges();return o.length>0?(e=0,t=0):(e=this.rangeController.getRangeStartRow(o[0]).rowIndex,t=this.rangeController.getRangeEndRow(o[0]).rowIndex),e-t+1},i([r.Autowired("csvCreator"),n("design:type",r.CsvCreator)],e.prototype,"csvCreator",void 0),i([r.Autowired("loggerFactory"),n("design:type",r.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("selectionController"),n("design:type",r.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("rangeController"),n("design:type",s.RangeController)],e.prototype,"rangeController",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("valueService"),n("design:type",r.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("focusedCellController"),n("design:type",r.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([r.Autowired("rowRenderer"),n("design:type",r.RowRenderer)],e.prototype,"rowRenderer",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("cellNavigationService"),n("design:type",r.CellNavigationService)],e.prototype,"cellNavigationService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnApi"),n("design:type",r.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("cellPositionUtils"),n("design:type",r.CellPositionUtils)],e.prototype,"cellPositionUtils",void 0),i([r.Autowired("rowPositionUtils"),n("design:type",r.RowPositionUtils)],e.prototype,"rowPositionUtils",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("clipboardService")],e)}();t.ClipboardService=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){var t=e.call(this,void 0)||this;return t.rowsInBodyContainer={},t.rowHeight=20,t}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener();var e=document.createElement("div");a._.addCssClass(e,"ag-virtual-list-item"),this.rowHeight=this.getItemHeight()},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getVirtualItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("invalid row index for ensureIndexVisible: "+e);else{var o=e*this.rowHeight,i=o+this.rowHeight,n=this.getGui().scrollTop,r=this.getGui().offsetHeight,s=n+r<i;if(n>o)this.getGui().scrollTop=o;else if(s){var a=i-r;this.getGui().scrollTop=a}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){a._.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},t.prototype.clearVirtualRows=function(){var e=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(e)},t.prototype.drawVirtualRows=function(){var e=this.getGui().scrollTop,t=e+this.getGui().offsetHeight,o=Math.floor(e/this.rowHeight),i=Math.floor(t/this.rowHeight);this.ensureRowsRendered(o,i)},t.prototype.ensureRowsRendered=function(e,t){for(var o=Object.keys(this.rowsInBodyContainer),i=e;i<=t;i++)if(o.indexOf(i.toString())>=0)o.splice(o.indexOf(i.toString()),1);else if(this.model.getRowCount()>i){var n=this.model.getRow(i);this.insertRow(n,i)}this.removeVirtualRows(o)},t.prototype.removeVirtualRows=function(e){var t=this;e.forEach((function(e){var o=t.rowsInBodyContainer[e];t.eListContainer.removeChild(o.eDiv),o.rowComponent.destroy&&o.rowComponent.destroy(),delete t.rowsInBodyContainer[e]}))},t.prototype.insertRow=function(e,t){var o=document.createElement("div");a._.addCssClass(o,"ag-virtual-list-item"),o.style.top=this.rowHeight*t+"px";var i=this.componentCreator(e);o.appendChild(i.getGui()),this.eListContainer.appendChild(o),this.rowsInBodyContainer[t]={rowComponent:i,eDiv:o}},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.TEMPLATE='<div class="ag-virtual-list-viewport">\n <div class="ag-virtual-list-container"></div>\n </div>',r([a.Autowired("environment"),s("design:type",a.Environment)],t.prototype,"environment",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.VirtualList=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(){function e(){this.ieCompatibility=!1}return e.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},e.prototype.md5cycle=function(e,t){var o=e[0],i=e[1],n=e[2],r=e[3];o=this.ff(o,i,n,r,t[0],7,-680876936),r=this.ff(r,o,i,n,t[1],12,-389564586),n=this.ff(n,r,o,i,t[2],17,606105819),i=this.ff(i,n,r,o,t[3],22,-1044525330),o=this.ff(o,i,n,r,t[4],7,-176418897),r=this.ff(r,o,i,n,t[5],12,1200080426),n=this.ff(n,r,o,i,t[6],17,-1473231341),i=this.ff(i,n,r,o,t[7],22,-45705983),o=this.ff(o,i,n,r,t[8],7,1770035416),r=this.ff(r,o,i,n,t[9],12,-1958414417),n=this.ff(n,r,o,i,t[10],17,-42063),i=this.ff(i,n,r,o,t[11],22,-1990404162),o=this.ff(o,i,n,r,t[12],7,1804603682),r=this.ff(r,o,i,n,t[13],12,-40341101),n=this.ff(n,r,o,i,t[14],17,-1502002290),i=this.ff(i,n,r,o,t[15],22,1236535329),o=this.gg(o,i,n,r,t[1],5,-165796510),r=this.gg(r,o,i,n,t[6],9,-1069501632),n=this.gg(n,r,o,i,t[11],14,643717713),i=this.gg(i,n,r,o,t[0],20,-373897302),o=this.gg(o,i,n,r,t[5],5,-701558691),r=this.gg(r,o,i,n,t[10],9,38016083),n=this.gg(n,r,o,i,t[15],14,-660478335),i=this.gg(i,n,r,o,t[4],20,-405537848),o=this.gg(o,i,n,r,t[9],5,568446438),r=this.gg(r,o,i,n,t[14],9,-1019803690),n=this.gg(n,r,o,i,t[3],14,-187363961),i=this.gg(i,n,r,o,t[8],20,1163531501),o=this.gg(o,i,n,r,t[13],5,-1444681467),r=this.gg(r,o,i,n,t[2],9,-51403784),n=this.gg(n,r,o,i,t[7],14,1735328473),i=this.gg(i,n,r,o,t[12],20,-1926607734),o=this.hh(o,i,n,r,t[5],4,-378558),r=this.hh(r,o,i,n,t[8],11,-2022574463),n=this.hh(n,r,o,i,t[11],16,1839030562),i=this.hh(i,n,r,o,t[14],23,-35309556),o=this.hh(o,i,n,r,t[1],4,-1530992060),r=this.hh(r,o,i,n,t[4],11,1272893353),n=this.hh(n,r,o,i,t[7],16,-155497632),i=this.hh(i,n,r,o,t[10],23,-1094730640),o=this.hh(o,i,n,r,t[13],4,681279174),r=this.hh(r,o,i,n,t[0],11,-358537222),n=this.hh(n,r,o,i,t[3],16,-722521979),i=this.hh(i,n,r,o,t[6],23,76029189),o=this.hh(o,i,n,r,t[9],4,-640364487),r=this.hh(r,o,i,n,t[12],11,-421815835),n=this.hh(n,r,o,i,t[15],16,530742520),i=this.hh(i,n,r,o,t[2],23,-995338651),o=this.ii(o,i,n,r,t[0],6,-198630844),r=this.ii(r,o,i,n,t[7],10,1126891415),n=this.ii(n,r,o,i,t[14],15,-1416354905),i=this.ii(i,n,r,o,t[5],21,-57434055),o=this.ii(o,i,n,r,t[12],6,1700485571),r=this.ii(r,o,i,n,t[3],10,-1894986606),n=this.ii(n,r,o,i,t[10],15,-1051523),i=this.ii(i,n,r,o,t[1],21,-2054922799),o=this.ii(o,i,n,r,t[8],6,1873313359),r=this.ii(r,o,i,n,t[15],10,-30611744),n=this.ii(n,r,o,i,t[6],15,-1560198380),i=this.ii(i,n,r,o,t[13],21,1309151649),o=this.ii(o,i,n,r,t[4],6,-145523070),r=this.ii(r,o,i,n,t[11],10,-1120210379),n=this.ii(n,r,o,i,t[2],15,718787259),i=this.ii(i,n,r,o,t[9],21,-343485551),e[0]=this.add32(o,e[0]),e[1]=this.add32(i,e[1]),e[2]=this.add32(n,e[2]),e[3]=this.add32(r,e[3])},e.prototype.cmn=function(e,t,o,i,n,r){return t=this.add32(this.add32(t,e),this.add32(i,r)),this.add32(t<<n|t>>>32-n,o)},e.prototype.ff=function(e,t,o,i,n,r,s){return this.cmn(t&o|~t&i,e,t,n,r,s)},e.prototype.gg=function(e,t,o,i,n,r,s){return this.cmn(t&i|o&~i,e,t,n,r,s)},e.prototype.hh=function(e,t,o,i,n,r,s){return this.cmn(t^o^i,e,t,n,r,s)},e.prototype.ii=function(e,t,o,i,n,r,s){return this.cmn(o^(t|~i),e,t,n,r,s)},e.prototype.md51=function(e){var t,o=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)this.md5cycle(i,this.md5blk(e.substring(t-64,t)));e=e.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)n[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(this.md5cycle(i,n),t=0;t<16;t++)n[t]=0;return n[14]=8*o,this.md5cycle(i,n),i},e.prototype.md5blk=function(e){for(var t=[],o=0;o<64;o+=4)t[o>>2]=e.charCodeAt(o)+(e.charCodeAt(o+1)<<8)+(e.charCodeAt(o+2)<<16)+(e.charCodeAt(o+3)<<24);return t},e.prototype.rhex=function(e){for(var t="0123456789abcdef".split(""),o="",i=0;i<4;i++)o+=t[e>>8*i+4&15]+t[e>>8*i&15];return o},e.prototype.hex=function(e){for(var t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")},e.prototype.md5=function(e){return this.hex(this.md51(e))},e.prototype.add32=function(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)},e.prototype.add32Std=function(e,t){return e+t&4294967295},e.prototype.add32Compat=function(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o},i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("md5")],e)}();t.MD5=s},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(173),a=function(e){function t(o,i,n){var s=e.call(this,'<div class="ag-column-drop ag-unselectable ag-column-drop-'+(o?"horizontal":"vertical")+" ag-column-drop-"+n+'"></div>')||this;return s.state=t.STATE_NOT_DRAGGING,s.guiDestroyFunctions=[],s.childColumnComponents=[],s.horizontal=o,s.valueColumn=i,s.eColumnDropList=r._.loadTemplate('<div class="ag-column-drop-list"></div>'),s}return n(t,e),t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.setBeans=function(e){this.beans=e},t.prototype.destroy=function(){this.destroyGui(),e.prototype.destroy.call(this)},t.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach((function(e){return e()})),this.guiDestroyFunctions.length=0,this.childColumnComponents.length=0,r._.clearElement(this.getGui()),r._.clearElement(this.eColumnDropList)},t.prototype.init=function(e){this.params=e,this.logger=this.beans.loggerFactory.create("AbstractColumnDropPanel"),this.beans.eventService.addEventListener(r.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refreshGui.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.refreshGui()},t.prototype.setupDropTarget=function(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.beans.dragAndDropService.addDropTarget(this.dropTarget)},t.prototype.isInterestedIn=function(e){return e===r.DragSourceType.HeaderCell||e===r.DragSourceType.ToolPanel},t.prototype.checkInsertIndex=function(e){var t;if((t=this.horizontal?this.getNewHorizontalInsertIndex(e):this.getNewVerticalInsertIndex(e))<0)return!1;var o=t!==this.insertIndex;return o&&(this.insertIndex=t),o},t.prototype.getNewHorizontalInsertIndex=function(e){if(r._.missing(e.hDirection))return-1;var t=0,o=e.event,i=this.beans.gridOptionsWrapper.isEnableRtl(),n=e.hDirection===r.HDirection.Left,s=o.clientX;return this.childColumnComponents.forEach((function(e){var o=e.getGui().getBoundingClientRect(),r=n?o.right:o.left;(i?s<=r:s>=r)&&t++})),t},t.prototype.getNewVerticalInsertIndex=function(e){if(r._.missing(e.vDirection))return-1;var t=0,o=e.event;return this.childColumnComponents.forEach((function(i){var n=i.getGui().getBoundingClientRect();e.vDirection===r.VDirection.Down?o.clientY>=n.top&&t++:o.clientY>=n.bottom&&t++})),t},t.prototype.checkDragStartedBySelf=function(e){this.state===t.STATE_NOT_DRAGGING&&(this.state=t.STATE_REARRANGE_COLUMNS,this.potentialDndColumns=e.dragSource.dragItemCallback().columns||[],this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())},t.prototype.onDragging=function(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()},t.prototype.onDragEnter=function(e){var o=e.dragSource.dragItemCallback().columns||[];this.state=t.STATE_NEW_COLUMNS_IN;var i=r._.filter(o,this.isColumnDroppable.bind(this));i.length>0&&(this.potentialDndColumns=i,this.checkInsertIndex(e),this.refreshGui())},t.prototype.isPotentialDndColumns=function(){return r._.existsAndNotEmpty(this.potentialDndColumns)},t.prototype.onDragLeave=function(e){if(this.state===t.STATE_REARRANGE_COLUMNS){var o=e.dragSource.dragItemCallback().columns||[];this.removeColumns(o)}this.isPotentialDndColumns()&&(this.potentialDndColumns=[],this.refreshGui()),this.state=t.STATE_NOT_DRAGGING},t.prototype.onDragStop=function(){if(this.isPotentialDndColumns()){var e=void 0;this.state===t.STATE_NEW_COLUMNS_IN?(this.addColumns(this.potentialDndColumns),e=!0):e=this.rearrangeColumns(this.potentialDndColumns),this.potentialDndColumns=[],this.beans.gridOptionsWrapper.isFunctionsPassive()&&e||this.refreshGui()}this.state=t.STATE_NOT_DRAGGING},t.prototype.removeColumns=function(e){var t=this.getExistingColumns().slice();e.forEach((function(e){return r._.removeFromArray(t,e)})),this.updateColumns(t)},t.prototype.addColumns=function(e){var t=this.getExistingColumns().slice();r._.insertArrayIntoArray(t,e,this.insertIndex),this.updateColumns(t)},t.prototype.rearrangeColumns=function(e){var t=this.getNonGhostColumns().slice();return r._.insertArrayIntoArray(t,e,this.insertIndex),!r._.shallowCompare(t,this.getExistingColumns())&&(this.updateColumns(t),!0)},t.prototype.refreshGui=function(){var e=this.eColumnDropList.scrollTop;this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addColumnsToGui(),this.isHorizontal()||(this.eColumnDropList.scrollTop=e)},t.prototype.getNonGhostColumns=function(){var e=this,t=this.getExistingColumns();return this.isPotentialDndColumns()?r._.filter(t,(function(t){return e.potentialDndColumns.indexOf(t)<0})):t},t.prototype.addColumnsToGui=function(){var e=this,t=this.getNonGhostColumns(),o=[],i=this.isPotentialDndColumns();t.forEach((function(t,n){if(!(i&&n>=e.insertIndex)){var r=e.createColumnComponent(t,!1);o.push(r)}})),this.isPotentialDndColumns()&&(this.potentialDndColumns.forEach((function(t){var i=e.createColumnComponent(t,!0);o.push(i)})),t.forEach((function(t,i){if(!(i<e.insertIndex)){var n=e.createColumnComponent(t,!1);o.push(n)}}))),this.getGui().appendChild(this.eColumnDropList),o.forEach((function(t,o){0!==o&&e.addArrow(e.eColumnDropList),e.eColumnDropList.appendChild(t.getGui())}))},t.prototype.createColumnComponent=function(e,t){var o=new s.DropZoneColumnComp(e,this.dropTarget,t,this.valueColumn);return o.addEventListener(s.DropZoneColumnComp.EVENT_COLUMN_REMOVE,this.removeColumns.bind(this,[e])),this.beans.context.wireBean(o),this.guiDestroyFunctions.push((function(){return o.destroy()})),t||this.childColumnComponents.push(o),o},t.prototype.addIconAndTitleToGui=function(){var e=this.horizontal&&this.isExistingColumnsEmpty(),t=this.params.icon,o=document.createElement("div");if(r._.addCssClass(t,"ag-column-drop-icon"),r._.addOrRemoveCssClass(t,"ag-faded",e),o.appendChild(t),!this.horizontal){var i=document.createElement("span");i.innerHTML=this.params.title,r._.addCssClass(i,"ag-column-drop-title"),r._.addOrRemoveCssClass(i,"ag-faded",e),o.appendChild(i)}this.getGui().appendChild(o)},t.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},t.prototype.addEmptyMessageToGui=function(){if(this.isExistingColumnsEmpty()&&!this.isPotentialDndColumns()){var e=document.createElement("span");e.innerHTML=this.params.emptyMessage,r._.addCssClass(e,"ag-column-drop-empty-message"),this.getGui().appendChild(e)}},t.prototype.addArrow=function(e){if(this.horizontal){var t=this.beans.gridOptionsWrapper.isEnableRtl();e.appendChild(r._.createIconNoSpan(t?"smallLeft":"smallRight",this.beans.gridOptionsWrapper))}},t.STATE_NOT_DRAGGING="notDragging",t.STATE_NEW_COLUMNS_IN="newColumnsIn",t.STATE_REARRANGE_COLUMNS="rearrangeColumns",t.CHAR_LEFT_ARROW="←",t.CHAR_RIGHT_ARROW="→",t}(r.Component);t.BaseDropZonePanel=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(1),a=o(341),l=o(342),p=o(343),u=o(347),c=o(348),d=o(349),h=o(350),f=o(351),g=o(352),y=o(353),m=o(354),v=function(){function e(){}return e.prototype.createExcel=function(e,t,o){var i=this.excelXmlHeader(),n=u.default.getTemplate(),r=l.default.getTemplate(),s=this.workbook(n,r,e,t);return""+i+this.xmlFactory.createXml(s,(function(e){return e?"1":"0"}))},e.prototype.workbook=function(e,t,o,i){var n=[e,t,this.stylesXmlElement(o)].concat(r._.map(i,(function(e){return p.default.getTemplate(e)})));return r._.assign({},a.default.getTemplate(),{children:n})},e.prototype.excelXmlHeader=function(){return'<?xml version="1.0" ?>\n <?mso-application progid="Excel.Sheet" ?>\n '},e.prototype.stylesXmlElement=function(e){var t=this;return{name:"Styles",children:e?r._.map(e,(function(e){return t.styleXmlElement(e)})):[]}},e.prototype.styleXmlElement=function(e){var t=r._.compose(this.addProperty("alignment",e),this.addProperty("borders",e),this.addProperty("font",e),this.addProperty("interior",e),this.addProperty("protection",e),this.addProperty("numberFormat",e))([]);return r._.assign({},m.default.getTemplate(e),{children:t})},e.prototype.addProperty=function(e,t){return function(o){if(!t[e])return o;var i={alignment:c.default,borders:d.default,font:h.default,interior:f.default,numberFormat:y.default,protection:g.default};return o.concat(i[e].getTemplate(t))}},i([s.Autowired("xmlFactory"),n("design:type",r.XmlFactory)],e.prototype,"xmlFactory",void 0),i([s.Bean("excelXmlFactory")],e)}();t.ExcelXmlFactory=v},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(355),a=o(356),l=o(358),p=o(363),u=o(177),c=o(375),d=o(239),h=o(382),f=function(){function e(){this.sharedStrings=[]}return e.prototype.createSharedStrings=function(){return this.createXmlPart(p.default.getTemplate(this.sharedStrings))},e.prototype.createXmlPart=function(e){return""+this.xmlFactory.createHeader({encoding:"UTF-8",standalone:"yes"})+this.xmlFactory.createXml(e)},e.prototype.createExcel=function(e,t,o){return void 0===o&&(o=[]),this.sharedStrings=o,this.sheetNames=t.map((function(e){return e.name})),u.registerStyles(e),this.createWorksheet(t)},e.prototype.createCore=function(){return this.createXmlPart(s.default.getTemplate())},e.prototype.createContentTypes=function(){return this.createXmlPart(a.default.getTemplate())},e.prototype.createRels=function(){var e=h.default.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return this.createXmlPart(e)},e.prototype.createStylesheet=function(){return this.createXmlPart(u.default.getTemplate())},e.prototype.createTheme=function(){return this.createXmlPart(l.default.getTemplate())},e.prototype.createWorkbook=function(){return this.createXmlPart(c.default.getTemplate(this.sheetNames))},e.prototype.createWorkbookRels=function(){var e=h.default.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:"worksheets/sheet1.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:"rId3",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:"rId4",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]);return this.createXmlPart(e)},e.prototype.createWorksheet=function(e){return this.createXmlPart(d.default.getTemplate(e[0]))},i([r.Autowired("xmlFactory"),n("design:type",r.XmlFactory)],e.prototype,"xmlFactory",void 0),i([r.Bean("excelXlsxFactory")],e)}();t.ExcelXlsxFactory=f},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(){function e(){this.allComponents={}}return e.prototype.registerStatusPanel=function(e,t){this.allComponents[e]=t},e.prototype.getStatusPanel=function(e){return this.allComponents[e]},i([r.Bean("statusBarService"),n("design:paramtypes",[])],e)}();t.StatusBarService=s},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(5),a=o(7),l=o(23),p=o(3),u=o(84),c=o(57),d=o(147),h=o(36),f=o(30),g=o(2),y=function(){function e(e){var t=e.columnController,o=e.valueService,i=e.gridOptionsWrapper,n=e.processCellCallback,r=e.processHeaderCallback,s=e.cellAndHeaderEscaper;this.columnController=t,this.valueService=o,this.gridOptionsWrapper=i,this.processCellCallback=n,this.processHeaderCallback=r,this.cellAndHeaderEscaper=s}return e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null==t&&(t=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(t):t},e.prototype.extractRowCellValue=function(e,t,o,i){var n,r=this.columnController.getRowGroupColumns().length>0;return n=i&&i.group&&r&&0===t?this.createValueForGroupNode(i):this.valueService.getValue(e,i),null==(n=this.processCell(i,e,n,this.processCellCallback,o))&&(n=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(n):n},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,o,i,n){return i?i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:n}):o},e}();t.BaseGridSerializingSession=y;var m=function(){function e(){}return e.prototype.serialize=function(e,t){var o=t&&t.skipGroups,i=t&&t.skipHeader,n=t&&t.columnGroups,r=t&&t.skipFooters,s=t&&t.skipPinnedTop,l=t&&t.skipPinnedBottom,p=t&&t.customHeader,u=t&&t.customFooter,c=t&&t.allColumns,h=t&&t.onlySelected,f=t&&t.columnKeys,y=t&&t.onlySelectedAllPages,m=t&&t.shouldRowBeSkipped||function(){return!1},v=this.gridOptionsWrapper.getApi(),C=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),_=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),w=this.gridOptionsWrapper.getContext(),b=this.columnController.isPivotMode(),E=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,R=!E&&h,S=[];if(S=g._.existsAndNotEmpty(f)?this.columnController.getGridColumns(f):c&&!b?(S=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([a.Constants.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),p&&e.addCustomHeader(p),e.prepare(S),n){var P=new d.GroupInstanceIdCreator,O=this.displayedGroupCreator.createDisplayedGroups(S,this.columnController.getGridBalancedTree(),P,null);this.recursivelyAddHeaderGroups(O,e)}if(!i){var T=e.onNewHeaderRow();S.forEach((function(e,t){T.onColumn(e,t,void 0)}))}function A(t){var i=_&&t.leafGroup,n=1===t.allChildrenCount&&(C||i);if((!t.group||!o&&!n)&&(!r||!t.footer)&&(!h||t.isSelected())&&(!s||"top"!==t.rowPinned)&&(!l||"bottom"!==t.rowPinned)&&(-1!==t.level||t.leafGroup)&&!m({node:t,api:v,context:w})){var a=e.onNewBodyRow();S.forEach((function(e,o){a.onColumn(e,o,t)}))}}return this.pinnedRowModel.forEachPinnedTopRow(A),b?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(A):this.rowModel.forEachNode(A):y||R?this.selectionController.getSelectedNodes().forEach((function(e){A(e)})):E?this.rowModel.forEachNodeAfterFilterAndSort(A):this.rowModel.forEachNode(A),this.pinnedRowModel.forEachPinnedBottomRow(A),u&&e.addCustomFooter(u),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof h.ColumnGroup&&this.doAddHeaderHeader(t,e),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t)},e.prototype.doAddHeaderHeader=function(e,t){var o=this,i=e.onNewHeaderGroupingRow(),n=0;t.forEach((function(e){var t=e,r=o.columnController.getDisplayNameForColumnGroup(t,"header");i.onColumn(r||"",n++,t.getLeafColumns().length-1)}))},i([r.Autowired("displayedGroupCreator"),n("design:type",u.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([r.Autowired("columnController"),n("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("pinnedRowModel"),n("design:type",f.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([r.Autowired("selectionController"),n("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("columnFactory"),n("design:type",c.ColumnFactory)],e.prototype,"columnFactory",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("gridSerializer")],e)}();t.GridSerializer=m,function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}))},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(44),a=o(36),l=o(45),p=o(0),u=o(2),c=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,o,i,n){var r,s,a=this,l=[],p=this.mapOldGroupsById(n);return e.forEach((function(e){for(var n=a.getOriginalPathForColumn(t,e),c=[],d=!s,h=0;h<n.length;h++)if(d||n[h]!==s[h]){var f=a.createColumnGroup(n[h],o,p,i);c[h]=f,0==h?l.push(f):c[h-1].addChild(f)}else c[h]=r[h];0===c.length?l.push(e):u._.last(c).addChild(e),r=c,s=n})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,o,i){var n=e.getGroupId(),r=t.getInstanceIdForKey(n),s=o[a.ColumnGroup.createUniqueId(n,r)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),u._.exists(s)?s.reset():(s=new a.ColumnGroup(e,n,r,i),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={};return e&&function e(o){o.forEach((function(o){if(o instanceof a.ColumnGroup){var i=o;t[o.getUniqueId()]=i,e(i.getChildren())}}))}(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach((function(e){if(e.setParent(t),e instanceof a.ColumnGroup){var i=e;o.setupParentsIntoColumns(i.getChildren(),i)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],i=!1;return function e(n,r){for(var s=0;s<n.length;s++){if(i)return;var a=n[s];a instanceof l.OriginalColumnGroup?(e(a.getChildren(),r+1),o[r]=a):a===t&&(i=!0)}}(e,0),i?o:(console.warn("could not get path"),null)},i([r.Autowired("columnUtils"),n("design:type",s.ColumnUtils)],e.prototype,"columnUtils",void 0),i([r.Autowired("context"),n("design:type",p.Context)],e.prototype,"context",void 0),i([p.Bean("displayedGroupCreator")],e)}();t.DisplayedGroupCreator=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var o=0;o<e.children.length;o++)this.depthFirstSearchChangedPath(e.children[o],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,o){if(e.childrenAfterGroup)for(var i=0;i<e.childrenAfterGroup.length;i++){var n=e.childrenAfterGroup[i];n.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[i],t,o):o&&t(n)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,o=0;!this.mapToItems[t.id];){var i={rowNode:t,children:null};this.mapToItems[t.id]=i,o++,t=t.parent}return o},e.prototype.populateColumnsMap=function(e,t){var o=this;if(this.keepingColumns&&t)for(var i=e;i;)this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),t.forEach((function(e){return o.nodeIdsToColumns[i.id][e.getId()]=!0})),i=i.parent},e.prototype.linkPathItems=function(e,t){for(var o=e,i=0;i<t;i++){var n=this.mapToItems[o.id],r=this.mapToItems[o.parent.id];r.children||(r.children=[]),r.children.push(n),o=o.parent}},e.prototype.addParentNode=function(e,t){var o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return o[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!o[e.getId()]}))},e}();t.ChangedPath=i},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("columnAnimationService")],e)}();t.ColumnAnimationService=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=o(4),l=o(25),p=o(129),u=o(135),c=o(134),d=o(2),h=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=p.AnimateSlideCellRenderer,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=u.AnimateShowChangeCellRenderer,this.cellRendererMap[t.GROUP]=c.GroupCellRenderer},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return d._.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",l.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Autowired("eventService"),n("design:type",a.EventService)],e.prototype,"eventService",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),t=i([r.Bean("cellRendererFactory")],e)}();t.CellRendererFactory=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(11),p=o(0),u=o(3),c=o(2),d=o(7),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.onFilterChanged=function(){console.warn("ag-Grid: you should not call onFilterChanged() directly on the filter, please call\n gridApi.onFilterChanged() instead. onFilterChanged is not part of the exposed filter interface (it was\n a method that existed on an old version of the filters that was not intended for public use."),this.providedFilterParams.filterChangedCallback()},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e)},t.prototype.init=function(e){this.setParams(e),this.resetUiToDefaults(),this.updateUiVisibility(),this.setupOnBtApplyDebounce()},t.prototype.setParams=function(e){var o=this;if(this.providedFilterParams=e,this.clearActive=!0===e.clearButton,this.applyActive=t.isUseApplyButton(e),e.newRowsAction===t.NEW_ROWS_ACTION_KEEP)this.newRowsActionKeep=!0;else if(e.newRowsAction===t.NEW_ROWS_ACTION_CLEAR)this.newRowsActionKeep=!1;else{var i=this.rowModel.getType(),n=[d.Constants.ROW_MODEL_TYPE_SERVER_SIDE,d.Constants.ROW_MODEL_TYPE_INFINITE];this.newRowsActionKeep=n.indexOf(i)>=0}c._.setDisplayed(this.eApplyButton,this.applyActive),this.addDestroyableEventListener(this.eApplyButton,"click",(function(){return o.onBtApply()})),c._.setDisplayed(this.eClearButton,this.clearActive),this.addDestroyableEventListener(this.eClearButton,"click",this.onBtClear.bind(this));var r=this.applyActive||this.clearActive;c._.setDisplayed(this.eButtonsPanel,r)},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=c._.debounce(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel},t.prototype.setModel=function(e){e?this.setModelIntoUi(e):this.resetUiToDefaults(),this.updateUiVisibility(),this.applyModel()},t.prototype.onBtClear=function(){this.resetUiToDefaults(),this.updateUiVisibility(),this.onUiChanged()},t.prototype.applyModel=function(){var e=this.appliedModel;return this.appliedModel=this.getModelFromUi(),!this.areModelsEqual(this.appliedModel,e)},t.prototype.onBtApply=function(e){void 0===e&&(e=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e})},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||(this.resetUiToDefaults(),this.appliedModel=null)},t.prototype.isNewRowsActionKeep=function(){return this.newRowsActionKeep},t.prototype.onUiChanged=function(e){void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),e?this.onBtApply(!0):this.applyActive||this.onBtApplyDebounce()},t.prototype.createTemplate=function(){var e=this.createBodyTemplate(),t=this.gridOptionsWrapper.getLocaleTextFunc();return"<div>\n <div class='ag-filter-body-wrapper' ref=\"eFilterBodyWrapper\">"+e+'</div>\n <div class="ag-filter-apply-panel" ref="eButtonsPanel">\n <button type="button" ref="eClearButton">'+t("clearFilter","Clear Filter")+'</button>\n <button type="button" ref="eApplyButton">'+t("applyFilter","Apply Filter")+"</button>\n </div>\n </div>"},t.getDebounceMs=function(e,o){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when applyButton = true"),0):null!=e.debounceMs?e.debounceMs:o},t.isUseApplyButton=function(e){return e.apply&&!e.applyButton&&(console.warn("ag-Grid: as of ag-Grid v21, filterParams.apply is now filterParams.applyButton, please change to applyButton"),e.applyButton=!0),!0===e.applyButton},t.NEW_ROWS_ACTION_KEEP="keep",t.NEW_ROWS_ACTION_CLEAR="clear",r([l.RefSelector("eButtonsPanel"),s("design:type",HTMLElement)],t.prototype,"eButtonsPanel",void 0),r([l.RefSelector("eFilterBodyWrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterBodyWrapper",void 0),r([l.RefSelector("eApplyButton"),s("design:type",HTMLElement)],t.prototype,"eApplyButton",void 0),r([l.RefSelector("eClearButton"),s("design:type",HTMLElement)],t.prototype,"eClearButton",void 0),r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.ProvidedFilter=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(15),l=o(0),p=o(4),u=o(35),c=o(3),d=o(2),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return n(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,u.Events.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.maxDivHeight=d._.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:u.Events.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([l.Bean("maxDivHeightScaler")],t)}(a.BeanStub);t.MaxDivHeightScaler=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(0),a=o(30),l=o(2),p=function(){function e(){}return e.prototype.getRowNode=function(e){switch(e.rowPinned){case r.Constants.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case r.Constants.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},e.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned},e.prototype.before=function(e,t){switch(e.rowPinned){case r.Constants.PINNED_TOP:if(t.rowPinned!==r.Constants.PINNED_TOP)return!0;break;case r.Constants.PINNED_BOTTOM:if(t.rowPinned!==r.Constants.PINNED_BOTTOM)return!1;break;default:if(l._.exists(t.rowPinned))return t.rowPinned!==r.Constants.PINNED_TOP}return e.rowIndex<t.rowIndex},i([s.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([s.Autowired("pinnedRowModel"),n("design:type",a.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([s.Bean("rowPositionUtils")],e)}();t.RowPositionUtils=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(3),s=o(0),a=o(37),l=function(){function e(){}return e.prototype.addResizeBar=function(e){var t=this,o={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};return this.dragService.addDragSource(o,!0),function(){return t.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="col-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},i([s.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("dragService"),n("design:type",a.DragService)],e.prototype,"dragService",void 0),i([s.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([s.Bean("horizontalResizeService")],e)}();t.HorizontalResizeService=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(12),s=o(15),a=o(7),l=o(2),p=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.columnOrGroup=t,r.eCell=o,r.colsSpanning=n,r.beans=i,r.printLayout=i.gridOptionsWrapper.getDomLayout()===a.Constants.DOM_LAYOUT_PRINT,r}return n(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?l._.last(this.colsSpanning):this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,r.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=l._.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),o=this.getColumnOrGroup().getOldLeft();this.setLeft(o),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===r.Column.PINNED_LEFT?t:e.getPinned()===r.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){l._.exists(e)&&(this.eCell.style.left=e+"px")},t}(s.BeanStub);t.SetLeftFeature=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(3),a=o(5),l=o(4),p=o(14),u=o(6),c=o(0),d=o(0),h=o(0),f=o(0),g=function(){function e(){this.consuming=!1}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.eventService.addEventListener(u.Events.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case u.Events.EVENT_COLUMN_MOVED:case u.Events.EVENT_COLUMN_VISIBLE:case u.Events.EVENT_COLUMN_PINNED:case u.Events.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case u.Events.EVENT_COLUMN_GROUP_OPENED:var i=e;t.processGroupOpenedEvent(i);break;case u.Events.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(e){var t,o=e.columnGroup;if(o){var i=o.getGroupId();t=this.columnController.getOriginalColumnGroup(i)}o&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(t,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,o=this,i=e.column;if(i&&(t=this.columnController.getPrimaryColumn(i.getColId())),!i||t){var n=this.getColumnIds(e),r=this.getMasterColumns(e);switch(e.type){case u.Events.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(n,s.toIndex,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(n,a.visible,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(n,l.pinned,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_RESIZED:var p=e;r.forEach((function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),o.columnController.setColumnWidth(t.getColId(),t.getActualWidth(),!1,p.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(c)}))}},i([h.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([h.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([h.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([r(0,d.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[p.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([f.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([c.Bean("alignedGridsService")],e)}();t.AlignedGridsService=g},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=o(2),l=function(){function e(){}return e.prototype.observeResize=function(e,t,o){void 0===o&&(o=50);var i,n,r,s,l,p=this.frameworkOverrides,u=a._.debounce(t,o),c=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return window.ResizeObserver&&!c?((l=new window.ResizeObserver(u)).observe(e),function(){return l.disconnect()}):(i=a._.offsetWidth(e),n=a._.offsetHeight(e),r=!0,(s=function(){if(r){var l=a._.offsetWidth(e),u=a._.offsetHeight(e);(l!==i||u!==n)&&(i=l,n=u,t()),p.setTimeout(s,o)}})(),function(){return r=!1})},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("frameworkOverrides"),n("design:type",Object)],e.prototype,"frameworkOverrides",void 0),i([r.Bean("resizeObserverService")],e)}();t.ResizeObserverService=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(22),a=function(e){function t(o,i){var n=e.call(this)||this;return n.version=0,n.state=t.STATE_DIRTY,n.rowNodeCacheParams=i,n.blockNumber=o,n.startRow=o*i.blockSize,n.endRow=n.startRow+i.blockSize,n}return n(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var o=this.startRow;o<this.endRow;o++)o<t&&e(this.getRowUsingLocalIndex(o),o)},t.prototype.forEachNode=function(e,t,o,i){this.forEachNodeCallback((function(o){e(o,t.next()),i&&o.childrenCache&&o.childrenCache.forEachNodeDeep(e,t)}),o)},t.prototype.forEachNodeDeep=function(e,t,o){this.forEachNode(e,t,o,!0)},t.prototype.forEachNodeShallow=function(e,t,o){this.forEachNode(e,t,o,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var o=e-this.startRow;this.rowNodes[o]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,o=this.createBlankRowNode(e);return this.rowNodes[t]=o,o},t.prototype.setNewData=function(e,t){var o=this.setBlankRowNode(e);return this.setDataAndId(o,t,this.startRow+e),o},t.prototype.createBlankRowNode=function(e){var t=new s.RowNode;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,o=this.createBlankRowNode(t);this.rowNodes.push(o)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,o=[];this.rowNodes.forEach((function(i,n){var r=e[n];i.stub&&o.push(i),t.setDataAndId(i,r,t.startRow+n)})),o.length>0&&this.beans.rowRenderer.redrawRows(o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()}))},t.prototype.pageLoaded=function(e,o,i){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(o)),i=r._.cleanNumber(i);var n={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:i};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(o(15).BeanStub);t.RowNodeBlock=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(37),l=o(0),p=o(156),u=o(8),c=o(2),d=function(e){function t(t){var o=e.call(this,t)||this;return o.RESIZE_TEMPLATE='\n <div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>\n ',o.MAXIMIZE_BTN_TEMPLATE='<div class="ag-dialog-button"></span>',o.resizable={},o.isResizable=!1,o.movable=!1,o.isMoving=!1,o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.isResizing=!1,o.lastPosition={x:0,y:0,width:0,height:0},o}return n(t,e),t.prototype.postConstruct=function(){var t=this,o=this.getGui(),i=this.config,n=i.movable,r=i.resizable,s=i.maximizable;c._.addCssClass(o,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addDestroyableEventListener(o,"focusin",(function(e){o.contains(e.relatedTarget)||t.popupService.bringPopupToFront(o)})),n&&this.setMovable(n),s&&this.setMaximizable(s),this.addResizers(),r&&this.setResizable(r)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,o=t.alwaysOnTop,i=t.modal;this.close=this.popupService.addPopup(i,e,!0,this.destroy.bind(this),void 0,o),e.focus()},t.prototype.addResizers=function(){var e=this.getGui();if(e){var t=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;e.appendChild(t.firstChild),this.createMap()}},t.prototype.createMap=function(){var e=this.getGui();this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e){this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onResize=function(e,t){if(this.isResizing){var o=!!t.match(/left/i),i=!!t.match(/right/i),n=!!t.match(/top/i),r=!!t.match(/bottom/i),s=o||i,a=n||r,l=this.calculateMouseMovement({e,isLeft:o,isTop:n}),p=l.movementX,u=l.movementY,c=0,d=0;if(s&&p){var h=o?-1:1,f=this.getWidth(),g=f+p*h,y=!1;o&&(c=f-g,(this.position.x+c<=0||g<=this.minWidth)&&(y=!0,c=0)),y||this.setWidth(g)}if(a&&u){h=n?-1:1;var m=this.getHeight(),v=m+u*h,C=!1;n&&(d=m-v,(this.position.y+d<=0||v<=this.minHeight)&&(C=!0,d=0)),C||this.setHeight(v)}this.updateDragStartPosition(e.clientX,e.clientY),(c||d)&&this.offsetElement(this.position.x+c,this.position.y+d)}},t.prototype.onResizeEnd=function(){this.isResizing=!1;var e={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.localEventService&&this.localEventService.dispatchEvent(e)},t.prototype.onMoveStart=function(e){this.isMoving=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t=this.position,o=t.x,i=t.y,n=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),r=n.movementX,s=n.movementY;this.offsetElement(o+r,i+s),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1},t.prototype.toggleMaximize=function(){if(this.isMaximized){var e=this.lastPosition,t=e.x,o=e.y,i=e.width,n=e.height;this.setWidth(i),this.setHeight(n),this.offsetElement(t,o)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){c._.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),c._.addOrRemoveCssClass(this.minimizeIcon,"ag-hidden",!this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=void 0),this.clearMaximizebleListeners()},t.prototype.setResizable=function(e){var t=this,o=!1;"boolean"==typeof e&&(e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}),Object.keys(e).forEach((function(i){var n=i,r=!!e[n],s=t.getResizerElement(n),a=t.resizerMap[n].dragSource||{eElement:s,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,n)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[n]===r&&(t.isAlive()||r)||(r?(t.dragService.addDragSource(a),s.style.pointerEvents="all",o=!0):(t.dragService.removeDragSource(a),s.style.pointerEvents="none"),t.resizerMap[n].dragSource=r?a:void 0)})),this.isResizable=o},t.prototype.setMovable=function(e){if(e!==this.movable){this.movable=e;var t=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}},t.prototype.setMaximizable=function(e){var t=this;if(!1===e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&e!==this.isMaximizable){var i=this.maximizeButtonComp=new u.Component(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().wireBean(i);var n=i.getGui();n.appendChild(this.maximizeIcon=c._.createIconNoSpan("maximize",this.gridOptionsWrapper)),n.appendChild(this.minimizeIcon=c._.createIconNoSpan("minimize",this.gridOptionsWrapper)),c._.addCssClass(this.minimizeIcon,"ag-hidden"),i.addDestroyableEventListener(n,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(i,0),this.maximizeListeners.push(this.addDestroyableEventListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addDestroyableEventListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},r([l.Autowired("dragService"),s("design:type",a.DragService)],t.prototype,"dragService",void 0),t}(p.AgPanel);t.AgDialog=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return n(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eInput,"blur",(function(){var e=t.normalizeValue(t.eInput.value);t.value!==e&&t.setValue(e)}))},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,null!=this.min?this.eInput.setAttribute("min",e.toString()):this.eInput.removeAttribute("min")),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,null!=this.max?this.eInput.setAttribute("max",e.toString()):this.eInput.removeAttribute("max")),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,null!=e?this.eInput.setAttribute("step",e.toString()):this.eInput.removeAttribute("step")),this},t.prototype.setValue=function(t,o){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,o)},t}(o(157).AgInputTextField);t.AgInputNumberField=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),n=function(){function e(e){void 0===e&&(e=[1,0,0,1,0,0]),this.elements=e}return e.prototype.setElements=function(e){var t=this.elements;return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],this},e.prototype.setIdentityElements=function(){var e=this.elements;return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,this},Object.defineProperty(e.prototype,"identity",{get:function(){var e=this.elements;return 1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.elements[0]},set:function(e){this.elements[0]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.elements[1]},set:function(e){this.elements[1]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.elements[2]},set:function(e){this.elements[2]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this.elements[3]},set:function(e){this.elements[3]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"e",{get:function(){return this.elements[4]},set:function(e){this.elements[4]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"f",{get:function(){return this.elements[5]},set:function(e){this.elements[5]=e},enumerable:!0,configurable:!0}),e.prototype.AxB=function(e,t,o){var i=e[0],n=e[1],r=e[2],s=e[3],a=e[4],l=e[5],p=t[0],u=t[1],c=t[2],d=t[3],h=t[4],f=t[5];(o=o||e)[0]=i*p+r*u,o[1]=n*p+s*u,o[2]=i*c+r*d,o[3]=n*c+s*d,o[4]=i*h+r*f+a,o[5]=n*h+s*f+l},e.prototype.multiplySelf=function(e){return this.AxB(this.elements,e.elements),this},e.prototype.multiply=function(t){var o=new Array(6);return this.AxB(this.elements,t.elements,o),new e(o)},e.prototype.preMultiplySelf=function(e){return this.AxB(e.elements,this.elements,this.elements),this},e.prototype.inverse=function(){var t=this.elements,o=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],l=1/(o*r-i*n);return new e([r*=l,-(i*=l),-(n*=l),o*=l,n*a-r*s,i*s-o*a])},e.prototype.inverseTo=function(e){var t=this.elements,o=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],l=1/(o*r-i*n);return o*=l,i*=l,n*=l,r*=l,e.setElements([r,-i,-n,o,n*a-r*s,i*s-o*a]),this},e.prototype.invertSelf=function(){var e=this.elements,t=e[0],o=e[1],i=e[2],n=e[3],r=e[4],s=e[5],a=1/(t*n-o*i);return t*=a,o*=a,i*=a,n*=a,e[0]=n,e[1]=-o,e[2]=-i,e[3]=t,e[4]=i*s-n*r,e[5]=o*r-t*s,this},e.prototype.clone=function(){return new e(this.elements.slice())},e.prototype.transformPoint=function(e,t){var o=this.elements;return{x:e*o[0]+t*o[2]+o[4],y:e*o[1]+t*o[3]+o[5]}},e.prototype.transformBBox=function(e,t,o){void 0===t&&(t=0);var n,r,s=this.elements,a=s[0],l=s[1],p=s[2],u=s[3],c=.5*e.width,d=.5*e.height,h=e.x+c,f=e.y+d;if(t){c-=t,d-=t;var g=Math.sqrt(a*a+p*p),y=Math.sqrt(l*l+u*u);n=Math.abs(c*a)+Math.abs(d*p)+Math.abs(g*t),r=Math.abs(c*l)+Math.abs(d*u)+Math.abs(y*t)}else n=Math.abs(c*a)+Math.abs(d*p),r=Math.abs(c*l)+Math.abs(d*u);return o||(o=new i.BBox(0,0,0,0)),o.x=h*a+f*p+s[4]-n,o.y=h*l+f*u+s[5]-r,o.width=n+n,o.height=r+r,o},e.prototype.toContext=function(e){if(!this.identity){var t=this.elements;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},e.flyweight=function(t){return t?t instanceof e?e.matrix.setElements(t.elements):e.matrix.setElements(t):e.matrix.setIdentityElements(),e.matrix},e.matrix=new e,e}();t.Matrix=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chainObjects=function(e,t){var o=Object.create(e);for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);return o}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(41),a=o(72),l=o(29);!function(e){e[e.Content=0]="Content",e[e.Border=1]="Border"}(r=t.RectSizing||(t.RectSizing={}));var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new a.Path2D,t._dirtyPath=!0,t._x=0,t._y=0,t._width=10,t._height=10,t._radius=0,t._crisp=!1,t.effectiveStrokeWidth=s.Shape.defaultStyles.strokeWidth,t._sizing=r.Content,t.getBBox=function(){return new l.BBox(t.x,t.y,t.width,t.height)},t}return n(t,e),t.create=function(e,o,i,n,r){void 0===r&&(r=0);var s=new t;return s.x=e,s.y=o,s.width=i,s.height=n,s.radius=r,s},Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this._radius},set:function(e){this._radius!==e&&(this._radius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crisp",{get:function(){return this._crisp},set:function(e){this._crisp!==e&&(this._crisp=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.crisp||this.sizing===r.Border?this.dirtyPath=!0:(this.effectiveStrokeWidth=e,this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizing",{get:function(){return this._sizing},set:function(e){this._sizing!==e&&(this._sizing=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){if(this.dirtyPath){var e=this.sizing===r.Border,t=this.path;t.clear();var o,i=this.x,n=this.y,s=this.width,a=this.height;if(e){var l=s/2,p=a/2;o=Math.min(this.strokeWidth,l,p),i=Math.min(i+o/2,i+l),n=Math.min(n+o/2,n+p),s=Math.max(s-o,0),a=Math.max(a-o,0)}else o=this.strokeWidth;if(this.effectiveStrokeWidth=o,this.crisp&&!e){var u=Math.floor(o)%2/2;t.rect(Math.floor(i)+u,Math.floor(n)+u,Math.floor(s)+Math.floor(i%1+s%1),Math.floor(a)+Math.floor(n%1+a%1))}else t.rect(i,n,s,a);this.dirtyPath=!1}},t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t);return this.getBBox().containsPoint(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.prototype.fillStroke=function(e){if(this.scene){var t=this.scene.canvas.pixelRatio||1;if(this.fill){e.fillStyle=this.fill,e.globalAlpha=this.opacity*this.fillOpacity;var o=this.fillShadow;o&&o.enabled&&(e.shadowColor=o.color,e.shadowOffsetX=o.xOffset*t,e.shadowOffsetY=o.yOffset*t,e.shadowBlur=o.blur*t),e.fill()}if(e.shadowColor="rgba(0, 0, 0, 0)",this.stroke&&this.effectiveStrokeWidth){e.strokeStyle=this.stroke,e.globalAlpha=this.opacity*this.strokeOpacity,e.lineWidth=this.effectiveStrokeWidth,this.lineDash&&e.setLineDash(this.lineDash),this.lineDashOffset&&(e.lineDashOffset=this.lineDashOffset),this.lineCap&&(e.lineCap=this.lineCap),this.lineJoin&&(e.lineJoin=this.lineJoin);var i=this.strokeShadow;i&&i.enabled&&(e.shadowColor=i.color,e.shadowOffsetX=i.xOffset*t,e.shadowOffsetY=i.yOffset*t,e.shadowBlur=i.blur*t),e.stroke()}}},t.className="Rect",t}(s.Shape);t.Rect=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o){this._domain=[0,1],this._range=[],this.clamp=!1,this.reinterpolatorFactory=e,this.deinterpolatorFactory=t,this.rangeComparator=o}return Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},set:function(e){this._domain=e.slice(),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e.slice(),this.rescale()},enumerable:!0,configurable:!0}),e.prototype.convert=function(e){if(!this.piecewiseReinterpolator){if(!this.piecewiseReinterpolatorFactory)throw new Error("Missing piecewiseReinterpolatorFactory");var t=this.clamp?this.clampDeinterpolatorFactory(this.deinterpolatorOf):this.deinterpolatorOf;this.piecewiseReinterpolator=this.piecewiseReinterpolatorFactory(this._domain,this._range,t,this.reinterpolatorFactory)}if(!this.piecewiseReinterpolator)throw new Error("Missing piecewiseReinterpolator");return this.piecewiseReinterpolator(e)},e.prototype.invert=function(e){if(!this.deinterpolatorFactory)throw new Error("Missing deinterpolatorFactory");if(!this.piecewiseDeinterpolator){if(!this.piecewiseDeinterpolatorFactory)throw new Error("Missing piecewiseDeinterpolatorFactory");var t=this.clamp?this.clampReinterpolatorFactory(this.reinterpolatorOf):this.reinterpolatorOf;this.piecewiseDeinterpolator=this.piecewiseDeinterpolatorFactory(this._range,this._domain,this.deinterpolatorFactory,t)}return this.piecewiseDeinterpolator(e)},e.prototype.clampDeinterpolatorFactory=function(e){return function(t,o){var i=e(t,o);return function(e){return e<=t?0:e>=o?1:i(e)}}},e.prototype.clampReinterpolatorFactory=function(e){return function(t,o){var i=e(t,o);return function(e){return e<=0?t:e>=1?o:i(e)}}},e.prototype.rescale=function(){this.piecewiseReinterpolatorFactory=this.bimap,this.piecewiseDeinterpolatorFactory=this.bimapInvert,this.piecewiseDeinterpolator=void 0,this.piecewiseReinterpolator=void 0},e.prototype.bimap=function(e,t,o,i){var n,r,s=e[0],a=e[1],l=t[0],p=t[1];return a<s?(n=o(a,s),r=i(p,l)):(n=o(s,a),r=i(l,p)),function(e){return r(n(e))}},e.prototype.bimapInvert=function(e,t,o,i){var n,r,s=e[0],a=e[1],l=t[0],p=t[1];return p<l?(n=o(a,s),r=i(p,l)):(n=o(s,a),r=i(l,p)),function(e){return r(n(e))}},e}();t.default=i},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(101),s=o(305),a=o(226),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.deinterpolatorOf=function(e,t){var o=t-e;return 0===o||isNaN(o)?function(){return o}:function(t){return(t-e)/o}},t.prototype.reinterpolatorOf=function(e,t){var o=t-e;return function(t){return e+o*t}},t.prototype.ticks=function(e){void 0===e&&(e=10);var t=this._domain;return a.default(t[0],t[t.length-1],e)},t.prototype.nice=function(e){void 0===e&&(e=10);var t,o=this.domain,i=0,n=o.length-1,r=o[i],s=o[n];s<r&&(t=r,r=s,s=t,t=i,i=n,n=t),(t=a.tickIncrement(r,s,e))>0?(r=Math.floor(r/t)*t,s=Math.ceil(s/t)*t,t=a.tickIncrement(r,s,e)):t<0&&(r=Math.ceil(r*t)/t,s=Math.floor(s*t)/t,t=a.tickIncrement(r,s,e)),t>0?(o[i]=Math.floor(r/t)*t,o[n]=Math.ceil(s/t)*t,this.domain=o):t<0&&(o[i]=Math.ceil(r*t)/t,o[n]=Math.floor(s*t)/t,this.domain=o)},t}(r.default);function p(e,t){var o=t-e;return function(t){return e+o*t}}function u(e,t){var o=t-e;return 0===o||isNaN(o)?function(){return o}:function(t){return(t-e)/o}}t.LinearScale=l,t.reinterpolateNumber=p,t.deinterpolateNumber=u,t.default=function(){var e=new l(p,u,s.naturalOrder);return e.range=[0,1],e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.index=new Map,this.ordinalRange=[],this._domain=[],this._range=[0,1],this._bandwidth=1,this._paddingInner=0,this._paddingOuter=0,this._round=!1,this._align=.5}return Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},set:function(e){var t=this._domain;t.length=0,this.index=new Map;var o=this.index;e.forEach((function(e){void 0===o.get(e)&&o.set(e,t.push(e)-1)})),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range[0]=e[0],this._range[1]=e[1],this.rescale()},enumerable:!0,configurable:!0}),e.prototype.ticks=function(){return this._domain},e.prototype.convert=function(e){var t=this.index.get(e);if(void 0===t)return NaN;var o=this.ordinalRange[t];return void 0===o?NaN:o},Object.defineProperty(e.prototype,"bandwidth",{get:function(){return this._bandwidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._paddingInner},set:function(e){e=Math.max(0,Math.min(1,e)),this._paddingInner=e,this._paddingOuter=e,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingInner",{get:function(){return this._paddingInner},set:function(e){this._paddingInner=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingOuter",{get:function(){return this._paddingOuter},set:function(e){this._paddingOuter=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"round",{get:function(){return this._round},set:function(e){this._round=e,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(e){this._align=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),e.prototype.rescale=function(){var e,t=this._domain.length;if(t){var o=this._range,i=o[0],n=o[1],r=n<i;r&&(i=(e=[n,i])[0],n=e[1]);var s=(n-i)/Math.max(1,t-this._paddingInner+2*this._paddingOuter);this._round&&(s=Math.floor(s)),i+=(n-i-s*(t-this._paddingInner))*this._align,this._bandwidth=s*(1-this._paddingInner),this._round&&(i=Math.round(i),this._bandwidth=Math.round(this._bandwidth));for(var a=[],l=0;l<t;l++)a.push(i+s*l);this.ordinalRange=r?a.reverse():a}},e}();t.BandScale=i},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(41),s=o(99),a=o(29),l=function(e){function t(){var t=e.call(this)||this;return t._x1=0,t._y1=0,t._x2=0,t._y2=0,t.getBBox=function(){return new a.BBox(t.x1,t.y1,t.x2-t.x1,t.y2-t.y1)},t.restoreOwnStyles(),t}return n(t,e),t.create=function(e,o,i,n){var r=new t;return r.x1=e,r.y1=o,r.x2=i,r.y2=n,r},Object.defineProperty(t.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1!==e&&(this._x1=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1!==e&&(this._y1=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2!==e&&(this._x2=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2!==e&&(this._y2=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.isPointInPath=function(e,t){return!1},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);var t=this.x1,o=this.y1,i=this.x2,n=this.y2;if(t===i){var r=Math.round(t)+Math.floor(this.strokeWidth)%2/2;t=r,i=r}else if(o===n){var s=Math.round(o)+Math.floor(this.strokeWidth)%2/2;o=s,n=s}e.beginPath(),e.moveTo(t,o),e.lineTo(i,n),this.fillStroke(e),this.dirty=!1},t.className="Line",t.defaultStyles=s.chainObjects(r.Shape.defaultStyles,{fill:void 0,strokeWidth:1}),t}(r.Shape);t.Line=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(231),s=o(67),a=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.overrideLabelRotation=function(e){return e===s.ChartModel.DEFAULT_CATEGORY||this.chartProxyParams.grouping},t.prototype.setCommonAxisProperty=function(e,t){var o=this.chart;o.xAxis[e]=t,o.yAxis[e]=t,o.performLayout(),this.chartOptions.xAxis[e]=t,this.chartOptions.yAxis[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getCommonAxisProperty=function(e){return this.chartOptions.xAxis?""+this.chartOptions.xAxis[e]:""},t.prototype.getXRotation=function(){return this.chart.xAxis.labelRotation},t.prototype.setXRotation=function(e){this.chart.xAxis.labelRotation=e,this.chartOptions.xAxis.labelRotation=e,this.chart.performLayout(),this.raiseChartOptionsChangedEvent()},t.prototype.getYRotation=function(){return this.chart.yAxis.labelRotation},t.prototype.setYRotation=function(e){this.chart.yAxis.labelRotation=e,this.chartOptions.yAxis.labelRotation=e,this.chart.performLayout(),this.raiseChartOptionsChangedEvent()},t}(r.ChartProxy);t.CartesianChartProxy=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(107),p=o(75),u=o(108),c=o(233),d=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.activeMenu&&this.activeMenu.destroy()},e.prototype.showMenuAfterMouseEvent=function(e,t,o){var i=this;this.showMenu(e,(function(n){i.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:n.getGui()}),o&&n.showTab(o)}),o)},e.prototype.showMenuAfterButtonClick=function(e,t,o,i){var n=this,r=-1,s="left";this.gridOptionsWrapper.isEnableRtl()&&(r=1,s="right"),this.showMenu(e,(function(i){var a=i.getMinDimensions();n.popupService.positionPopupUnderComponent({column:e,type:"columnMenu",eventSource:t,ePopup:i.getGui(),nudgeX:9*r,nudgeY:-23,minWidth:a.width,minHeight:a.height,alignSide:s,keepWithinBounds:!0}),o&&i.showTab(o)}),o,i)},e.prototype.showMenu=function(e,t,o,i){var n=this,r=new h(e,this.lastSelectedTab,i);this.context.wireBean(r);var s=r.getGui(),l=this.popupService.addAsModalPopup(s,!0,(function(){r.destroy(),e.setMenuVisible(!1,"contextMenu")}));r.afterGuiAttached({hidePopup:l}),t(r),o||r.showTabBasedOnPreviousSelection(),r.addEventListener(h.EVENT_TAB_SELECTED,(function(e){n.lastSelectedTab=e.key})),e.setMenuVisible(!0,"contextMenu"),this.activeMenu=r,r.addEventListener(a.BeanStub.EVENT_DESTROYED,(function(){n.activeMenu===r&&(n.activeMenu=null)}))},e.prototype.isMenuEnabled=function(e){return e.getMenuTabs(h.TABS_DEFAULT).length>0},r([a.Autowired("context"),s("design:type",a.Context)],e.prototype,"context",void 0),r([a.Autowired("popupService"),s("design:type",a.PopupService)],e.prototype,"popupService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),r([a.Bean("menuFactory")],e)}();t.EnterpriseMenuFactory=d;var h=function(e){function t(o,i,n){var r=e.call(this)||this;return r.tabFactories={},r.includeChecks={},r.column=o,r.initialSelection=i,r.tabFactories[t.TAB_GENERAL]=r.createMainPanel.bind(r),r.tabFactories[t.TAB_FILTER]=r.createFilterPanel.bind(r),r.tabFactories[t.TAB_COLUMNS]=r.createColumnsPanel.bind(r),r.includeChecks[t.TAB_GENERAL]=function(){return!0},r.includeChecks[t.TAB_FILTER]=function(){return o.isFilterAllowed()},r.includeChecks[t.TAB_COLUMNS]=function(){return!0},r.restrictTo=n,r}return n(t,e),t.prototype.getMinDimensions=function(){return this.tabbedLayout.getMinDimensions()},t.prototype.init=function(){var e=this,t=this.getTabsToCreate().map((function(t){return e.createTab(t)}));this.tabbedLayout=new a.TabbedLayout({items:t,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)})},t.prototype.getTabsToCreate=function(){var e=this;return this.restrictTo?this.restrictTo:this.column.getMenuTabs(t.TABS_DEFAULT).filter((function(t){return e.isValidMenuTabItem(t)})).filter((function(t){return e.isNotSuppressed(t)}))},t.prototype.isValidMenuTabItem=function(e){var o=!0,i=t.TABS_DEFAULT;return null!=this.restrictTo&&(o=this.restrictTo.indexOf(e)>-1,i=this.restrictTo),(o=o&&t.TABS_DEFAULT.indexOf(e)>-1)||console.warn("Trying to render an invalid menu item '"+e+"'. Check that your 'menuTabs' contains one of ["+i+"]"),o},t.prototype.isNotSuppressed=function(e){return this.includeChecks[e]()},t.prototype.createTab=function(e){return this.tabFactories[e]()},t.prototype.showTabBasedOnPreviousSelection=function(){this.showTab(this.initialSelection)},t.prototype.showTab=function(e){this.tabItemColumns&&e===t.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&e===t.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&e===t.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},t.prototype.onTabItemClicked=function(e){var o=null;switch(e.item){case this.tabItemColumns:o=t.TAB_COLUMNS;break;case this.tabItemFilter:o=t.TAB_FILTER;break;case this.tabItemGeneral:o=t.TAB_GENERAL}if(o){var i={type:t.EVENT_TAB_SELECTED,key:o};this.dispatchEvent(i)}},t.prototype.destroy=function(){this.columnSelectPanel&&this.columnSelectPanel.destroy(),this.mainMenuList&&this.mainMenuList.destroy(),e.prototype.destroy.call(this)},t.prototype.getMenuItems=function(){var e,o=this.getDefaultMenuOptions(),i=this.gridOptionsWrapper.getMainMenuItemsFunc();return e=i?i({column:this.column,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),defaultItems:o}):o,a._.removeRepeatsFromArray(e,t.MENU_ITEM_SEPARATOR),e},t.prototype.getDefaultMenuOptions=function(){var e=[],o=!this.column.getColDef().lockPinned,i=this.columnController.getRowGroupColumns().length,n=i>0,r=this.columnController.getRowGroupColumns().indexOf(this.column)>=0,s=this.column.isAllowValue(),l=this.column.isAllowRowGroup(),p=this.column.isPrimary(),u=this.columnController.isPivotMode(),c=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,d=this.gridOptionsWrapper.isTreeData(),h=p&&n&&s||!p;o&&e.push("pinSubMenu"),h&&e.push("valueAggSubMenu"),(o||h)&&e.push(t.MENU_ITEM_SEPARATOR),e.push("autoSizeThis"),e.push("autoSizeAll"),e.push(t.MENU_ITEM_SEPARATOR),l&&this.column.isPrimary()&&(r?e.push("rowUnGroup"):e.push("rowGroup")),e.push(t.MENU_ITEM_SEPARATOR),e.push("resetColumns");var f=!1;return c&&(f=!!d||(u?i>1:i>0)),f&&(e.push("expandAll"),e.push("contractAll")),e},t.prototype.createMainPanel=function(){this.mainMenuList=new l.MenuList,this.getContext().wireBean(this.mainMenuList);var e=this.getMenuItems(),o=this.menuItemMapper.mapWithStockItems(e,this.column);return this.mainMenuList.addMenuItems(o),this.mainMenuList.addEventListener(p.MenuItemComponent.EVENT_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:a._.createIconNoSpan("menu",this.gridOptionsWrapper,this.column),bodyPromise:a.Promise.resolve(this.mainMenuList.getGui()),name:t.TAB_GENERAL},this.tabItemGeneral},t.prototype.onHidePopup=function(){this.hidePopupFunc()},t.prototype.createFilterPanel=function(){var e=this.filterManager.getOrCreateFilterWrapper(this.column,"COLUMN_MENU"),o=null;return e.filterPromise.then((function(e){e.afterGuiAttached&&(o=e.afterGuiAttached.bind(e))})),this.tabItemFilter={title:a._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column),bodyPromise:e.guiPromise.promise,afterAttachedCallback:o,name:t.TAB_FILTER},this.tabItemFilter},t.prototype.createColumnsPanel=function(){var e=document.createElement("div");return a._.addCssClass(e,"ag-menu-column-select-wrapper"),this.columnSelectPanel=new c.PrimaryColsPanel(!1,{suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!1,suppressColumnExpandAll:!1,suppressColumnFilter:!1,suppressColumnSelectAll:!1,suppressSideButtons:!1,api:this.gridApi}),this.getContext().wireBean(this.columnSelectPanel),e.appendChild(this.columnSelectPanel.getGui()),this.tabItemColumns={title:a._.createIconNoSpan("columns",this.gridOptionsWrapper,this.column),bodyPromise:a.Promise.resolve(e),name:t.TAB_COLUMNS},this.tabItemColumns},t.prototype.afterGuiAttached=function(e){var t=this;this.tabbedLayout.setAfterAttachedParams({hidePopup:e.hidePopup}),this.hidePopupFunc=e.hidePopup;var o=this.gridApi.getHorizontalPixelRange().left;this.addDestroyFunc(e.hidePopup),this.addDestroyableEventListener(this.eventService,"bodyScroll",(function(i){if("horizontal"===i.direction){var n=t.gridApi.getHorizontalPixelRange().left;Math.abs(n-o)>t.gridOptionsWrapper.getScrollbarWidth()&&e.hidePopup()}}))},t.prototype.getGui=function(){return this.tabbedLayout.getGui()},t.EVENT_TAB_SELECTED="tabSelected",t.TAB_FILTER="filterMenuTab",t.TAB_GENERAL="generalMenuTab",t.TAB_COLUMNS="columnsMenuTab",t.TABS_DEFAULT=[t.TAB_GENERAL,t.TAB_FILTER,t.TAB_COLUMNS],t.MENU_ITEM_SEPARATOR="separator",r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("filterManager"),s("design:type",a.FilterManager)],t.prototype,"filterManager",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("menuItemMapper"),s("design:type",u.MenuItemMapper)],t.prototype,"menuItemMapper",void 0),r([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.BeanStub);t.EnterpriseMenu=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(75),p=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.timerCount=0,o.removeChildFuncs=[],o}return n(t,e),t.prototype.clearActiveItem=function(){this.removeActiveItem(),this.removeChildPopup()},t.prototype.addMenuItems=function(e){var t=this;e&&!a._.missing(e)&&e.forEach((function(e){if("separator"===e)t.addSeparator();else if("string"==typeof e)console.warn("ag-Grid: unrecognised menu item "+e);else{var o=e;t.addItem(o)}}))},t.prototype.addItem=function(e){var t=this,o=new l.MenuItemComponent(e);this.getContext().wireBean(o),this.getGui().appendChild(o.getGui()),this.addDestroyFunc((function(){return o.destroy()})),o.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,(function(i){e.subMenu&&!e.action?t.showChildMenu(e,o,i.mouseEvent):t.dispatchEvent(i)})),o.addGuiEventListener("mouseenter",this.mouseEnterItem.bind(this,e,o)),o.addGuiEventListener("mouseleave",(function(){return t.timerCount++}))},t.prototype.mouseEnterItem=function(e,t){e.disabled||(this.activeMenuItemParams!==e&&this.removeChildPopup(),this.removeActiveItem(),this.activeMenuItemParams=e,this.activeMenuItem=t,a._.addCssClass(this.activeMenuItem.getGui(),"ag-menu-option-active"),e.subMenu&&this.addHoverForChildPopup(e,t))},t.prototype.removeActiveItem=function(){this.activeMenuItem&&(a._.removeCssClass(this.activeMenuItem.getGui(),"ag-menu-option-active"),this.activeMenuItem=null,this.activeMenuItemParams=null)},t.prototype.addHoverForChildPopup=function(e,t){var o=this,i=this.timerCount;window.setTimeout((function(){var n=i===o.timerCount,r=o.subMenuParentDef===e;n&&!r&&o.showChildMenu(e,t,null)}),300)},t.prototype.addSeparator=function(){this.getGui().appendChild(a._.loadTemplate(t.SEPARATOR_TEMPLATE))},t.prototype.showChildMenu=function(e,o,i){var n=this;this.removeChildPopup();var r=new t;this.getContext().wireBean(r),r.addMenuItems(e.subMenu);var s=a._.loadTemplate('<div class="ag-menu"></div>');s.appendChild(r.getGui());var p=this.popupService.addAsModalPopup(s,!0,void 0,i);this.popupService.positionPopupForMenu({eventSource:o.getGui(),ePopup:s}),this.subMenuParentDef=e;var u=function(e){n.dispatchEvent(e)};r.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,u),this.removeChildFuncs.push((function(){r.clearActiveItem(),r.destroy(),n.subMenuParentDef=null,r.removeEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,u),p()}))},t.prototype.removeChildPopup=function(){this.removeChildFuncs.forEach((function(e){return e()})),this.removeChildFuncs=[]},t.prototype.destroy=function(){this.removeChildPopup(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-menu-list"></div>',t.SEPARATOR_TEMPLATE='<div class="ag-menu-separator">\n <span class="ag-menu-separator-cell"></span>\n <span class="ag-menu-separator-cell"></span>\n <span class="ag-menu-separator-cell"></span>\n <span class="ag-menu-separator-cell"></span>\n </div>',r([a.Autowired("popupService"),s("design:type",a.PopupService)],t.prototype,"popupService",void 0),t}(a.Component);t.MenuList=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(76),a=o(40),l=function(){function e(){}return e.prototype.mapWithStockItems=function(e,t){var o=this;if(!e)return[];var i=[];return e.forEach((function(e){var n;if((n="string"==typeof e?o.getStockMenuItem(e,t):e).subMenu){var r=n;r.subMenu=o.mapWithStockItems(r.subMenu,t)}null!=n&&i.push(n)})),i},e.prototype.getStockMenuItem=function(e,t){var o=this,i=this.gridOptionsWrapper.getLocaleTextFunc();switch(e){case"pinSubMenu":return{name:i("pinColumn","Pin Column"),icon:r._.createIconNoSpan("menuPin",this.gridOptionsWrapper,null),subMenu:["pinLeft","pinRight","clearPinned"]};case"pinLeft":return{name:i("pinLeft","Pin Left"),action:function(){return o.columnController.setColumnPinned(t,r.Column.PINNED_LEFT,"contextMenu")},checked:t.isPinnedLeft()};case"pinRight":return{name:i("pinRight","Pin Right"),action:function(){return o.columnController.setColumnPinned(t,r.Column.PINNED_RIGHT,"contextMenu")},checked:t.isPinnedRight()};case"clearPinned":return{name:i("noPin","No Pin"),action:function(){return o.columnController.setColumnPinned(t,null,"contextMenu")},checked:!t.isPinned()};case"valueAggSubMenu":return{name:i("valueAggregation","Value Aggregation"),icon:r._.createIconNoSpan("menuValue",this.gridOptionsWrapper,null),subMenu:this.createAggregationSubMenu(t)};case"autoSizeThis":return{name:i("autosizeThiscolumn","Autosize This Column"),action:function(){return o.columnController.autoSizeColumn(t,"contextMenu")}};case"autoSizeAll":return{name:i("autosizeAllColumns","Autosize All Columns"),action:function(){return o.columnController.autoSizeAllColumns("contextMenu")}};case"rowGroup":return{name:i("groupBy","Group by")+" "+r._.escape(this.columnController.getDisplayNameForColumn(t,"header")),action:function(){return o.columnController.addRowGroupColumn(t,"contextMenu")},icon:r._.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null)};case"rowUnGroup":return{name:i("ungroupBy","Un-Group by")+" "+r._.escape(this.columnController.getDisplayNameForColumn(t,"header")),action:function(){return o.columnController.removeRowGroupColumn(t,"contextMenu")},icon:r._.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null)};case"resetColumns":return{name:i("resetColumns","Reset Columns"),action:function(){return o.columnController.resetColumnState(!1,"contextMenu")}};case"expandAll":return{name:i("expandAll","Expand All"),action:function(){return o.gridApi.expandAll()}};case"contractAll":return{name:i("collapseAll","Collapse All"),action:function(){return o.gridApi.collapseAll()}};case"copy":return{name:i("copy","Copy"),shortcut:i("ctrlC","Ctrl+C"),icon:r._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard(!1)}};case"copyWithHeaders":return{name:i("copyWithHeaders","Copy with Headers"),icon:r._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard(!0)}};case"paste":return{name:i("paste","Paste"),shortcut:i("ctrlV","Ctrl+V"),disabled:!0,icon:r._.createIconNoSpan("clipboardPaste",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.pasteFromClipboard()}};case"export":var n=[];return this.gridOptionsWrapper.isSuppressCsvExport()||n.push("csvExport"),this.gridOptionsWrapper.isSuppressExcelExport()||(n.push("excelExport"),n.push("excelXmlExport")),{name:i("export","Export"),subMenu:n,icon:r._.createIconNoSpan("save",this.gridOptionsWrapper,null)};case"csvExport":return{name:i("csvExport","CSV Export"),action:function(){return o.gridApi.exportDataAsCsv({})}};case"excelExport":return{name:i("excelExport","Excel Export (.xlsx)‎"),action:function(){return o.gridApi.exportDataAsExcel({exportMode:"xlsx"})}};case"excelXmlExport":return{name:i("excelXmlExport","Excel Export (.xml)‎"),action:function(){return o.gridApi.exportDataAsExcel({exportMode:"xml"})}};case"separator":return"separator";default:return this.getChartItems(e)||(console.warn("ag-Grid: unknown menu item type "+e),null)}},e.prototype.getChartItems=function(e){var t=this,o=this.gridOptionsWrapper.getLocaleTextFunc(),i=function(e,i,n){return{name:o(e,i),action:function(){return t.chartService.pivotChart(n)}}},n=function(e,i,n){return{name:o(e,i),action:function(){return t.chartService.chartCurrentRange(n)}}};switch(e){case"pivotChart":return{name:o("pivotChart","Pivot Chart"),subMenu:["pivotColumnChart","pivotBarChart","pivotPieChart","pivotLineChart","pivotXYChart","pivotAreaChart"],icon:r._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"chartRange":return{name:o("chartRange","Chart Range"),subMenu:["rangeColumnChart","rangeBarChart","rangePieChart","rangeLineChart","rangeXYChart","rangeAreaChart"],icon:r._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"pivotColumnChart":return{name:o("columnChart","Column"),subMenu:["pivotGroupedColumn","pivotStackedColumn","pivotNormalizedColumn"]};case"pivotGroupedColumn":return i("groupedColumn","Grouped‎",r.ChartType.GroupedColumn);case"pivotStackedColumn":return i("stackedColumn","Stacked‎",r.ChartType.StackedColumn);case"pivotNormalizedColumn":return i("normalizedColumn","100% Stacked‎",r.ChartType.NormalizedColumn);case"rangeColumnChart":return{name:o("columnChart","Column"),subMenu:["rangeGroupedColumn","rangeStackedColumn","rangeNormalizedColumn"]};case"rangeGroupedColumn":return n("groupedColumn","Grouped‎",r.ChartType.GroupedColumn);case"rangeStackedColumn":return n("stackedColumn","Stacked‎",r.ChartType.StackedColumn);case"rangeNormalizedColumn":return n("normalizedColumn","100% Stacked‎",r.ChartType.NormalizedColumn);case"pivotBarChart":return{name:o("barChart","Bar"),subMenu:["pivotGroupedBar","pivotStackedBar","pivotNormalizedBar"]};case"pivotGroupedBar":return i("groupedBar","Grouped‎",r.ChartType.GroupedBar);case"pivotStackedBar":return i("stackedBar","Stacked‎",r.ChartType.StackedBar);case"pivotNormalizedBar":return i("normalizedBar","100% Stacked‎",r.ChartType.NormalizedBar);case"rangeBarChart":return{name:o("barChart","Bar"),subMenu:["rangeGroupedBar","rangeStackedBar","rangeNormalizedBar"]};case"rangeGroupedBar":return n("groupedBar","Grouped‎",r.ChartType.GroupedBar);case"rangeStackedBar":return n("stackedBar","Stacked‎",r.ChartType.StackedBar);case"rangeNormalizedBar":return n("normalizedBar","100% Stacked‎",r.ChartType.NormalizedBar);case"pivotPieChart":return{name:o("pieChart","Pie"),subMenu:["pivotPie","pivotDoughnut"]};case"pivotPie":return i("pie","Pie‎",r.ChartType.Pie);case"pivotDoughnut":return i("doughnut","Doughnut‎",r.ChartType.Doughnut);case"rangePieChart":return{name:o("pieChart","Pie"),subMenu:["rangePie","rangeDoughnut"]};case"rangePie":return n("pie","Pie‎",r.ChartType.Pie);case"rangeDoughnut":return n("doughnut","Doughnut‎",r.ChartType.Doughnut);case"pivotLineChart":return i("line","Line‎",r.ChartType.Line);case"rangeLineChart":return n("line","Line‎",r.ChartType.Line);case"pivotXYChart":return{name:o("xyChart","X Y (Scatter)"),subMenu:["pivotScatter","pivotBubble"]};case"pivotScatter":return i("scatter","Scatter‎",r.ChartType.Scatter);case"pivotBubble":return i("bubble","Bubble‎",r.ChartType.Bubble);case"rangeXYChart":return{name:o("xyChart","X Y (Scatter)"),subMenu:["rangeScatter","rangeBubble"]};case"rangeScatter":return n("scatter","Scatter‎",r.ChartType.Scatter);case"rangeBubble":return n("bubble","Bubble‎",r.ChartType.Bubble);case"pivotAreaChart":return{name:o("areaChart","Area"),subMenu:["pivotArea","pivotStackedArea","pivotNormalizedArea"]};case"pivotArea":return i("area","Area‎",r.ChartType.Area);case"pivotStackedArea":return i("stackedArea","Stacked‎",r.ChartType.StackedArea);case"pivotNormalizedArea":return i("normalizedArea","100% Stacked‎",r.ChartType.NormalizedArea);case"rangeAreaChart":return{name:o("areaChart","Area"),subMenu:["rangeArea","rangeStackedArea","rangeNormalizedArea"]};case"rangeArea":return n("area","Area‎",r.ChartType.Area);case"rangeStackedArea":return n("stackedArea","Stacked‎",r.ChartType.StackedArea);case"rangeNormalizedArea":return n("normalizedArea","100% Stacked‎",r.ChartType.NormalizedArea);default:return null}},e.prototype.createAggregationSubMenu=function(e){var t,o=this,i=this.gridOptionsWrapper.getLocaleTextFunc(),n=e.isValueActive(),s=this.aggFuncService.getFuncNames(e);if(e.isPrimary())t=e;else{var a=e.getColDef().pivotValueColumn;t=r._.exists(a)?a:void 0}var l=[];return s.forEach((function(e){l.push({name:i(e,e),action:function(){o.columnController.setColumnAggFunc(t,e,"contextMenu"),o.columnController.addValueColumn(t,"contextMenu")},checked:n&&t.getAggFunc()===e})})),l},i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("clipboardService"),n("design:type",s.ClipboardService)],e.prototype,"clipboardService",void 0),i([r.Autowired("aggFuncService"),n("design:type",a.AggFuncService)],e.prototype,"aggFuncService",void 0),i([r.Optional("chartService"),n("design:type",Object)],e.prototype,"chartService",void 0),i([r.Bean("menuItemMapper")],e)}();t.MenuItemMapper=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(1);!function(e){e[e.CHECKED=0]="CHECKED",e[e.UNCHECKED=1]="UNCHECKED",e[e.INDETERMINATE=2]="INDETERMINATE"}(a=t.SELECTED_STATE||(t.SELECTED_STATE={}));var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expandState=a.CHECKED,t.selectState=a.CHECKED,t}return n(t,e),t.prototype.preConstruct=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setTemplate('<div class="ag-primary-cols-header-panel" role="presentation">\n <div ref="eExpand"></div>\n <div ref="eSelect"></div>\n <div class="ag-input-wrapper ag-primary-cols-filter-wrapper" ref="eFilterWrapper" role="presentation">\n <input class="ag-primary-cols-filter" ref="eFilterTextField" type="text" placeholder="'+e("filterOoo","Filter...")+'"> \n </div>\n </div>')},t.prototype.postConstruct=function(){this.addEventListeners(),this.createExpandIcons(),this.createCheckIcons(),this.setExpandState(a.CHECKED),this.addDestroyableEventListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eSelect,"click",this.onSelectClicked.bind(this)),this.addDestroyableEventListener(this.eFilterTextField,"input",this.onFilterTextChanged.bind(this))},t.prototype.init=function(e){this.params=e,this.columnController.isReady()&&(this.setColumnsCheckedState(),this.showOrHideOptions())},t.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=l._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=l._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=l._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},t.prototype.createCheckIcons=function(){this.eSelect.appendChild(this.eSelectChecked=l._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper)),this.eSelect.appendChild(this.eSelectUnchecked=l._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper)),this.eSelect.appendChild(this.eSelectIndeterminate=l._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper))},t.prototype.showOrHideOptions=function(){var e=!this.params.suppressColumnFilter,t=!this.params.suppressColumnSelectAll,o=!this.params.suppressColumnExpandAll,i=this.columnController.isPrimaryColumnGroupsPresent();l._.setDisplayed(this.eFilterWrapper,e),l._.setDisplayed(this.eSelect,t),l._.setDisplayed(this.eExpand,o&&i)},t.prototype.addEventListeners=function(){var e=this;[l.Events.EVENT_COLUMN_EVERYTHING_CHANGED,l.Events.EVENT_COLUMN_PIVOT_CHANGED,l.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,l.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,l.Events.EVENT_COLUMN_VALUE_CHANGED,l.Events.EVENT_COLUMN_VISIBLE,l.Events.EVENT_NEW_COLUMNS_LOADED].forEach((function(t){e.addDestroyableEventListener(e.eventService,t,e.setColumnsCheckedState.bind(e))})),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},t.prototype.onFilterTextChanged=function(){var e=this;this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=l._.debounce((function(){var t=e.eFilterTextField.value;e.dispatchEvent({type:"filterChanged",filterText:t})}),400)),this.onFilterTextChangedDebounced()},t.prototype.onSelectClicked=function(){this.selectState===a.CHECKED?this.dispatchEvent({type:"unselectAll"}):this.dispatchEvent({type:"selectAll"})},t.prototype.onExpandClicked=function(){this.expandState===a.CHECKED?this.dispatchEvent({type:"collapseAll"}):this.dispatchEvent({type:"expandAll"})},t.prototype.setExpandState=function(e){this.expandState=e,l._.setDisplayed(this.eExpandChecked,this.expandState===a.CHECKED),l._.setDisplayed(this.eExpandUnchecked,this.expandState===a.UNCHECKED),l._.setDisplayed(this.eExpandIndeterminate,this.expandState===a.INDETERMINATE)},t.prototype.setColumnsCheckedState=function(){var e=this.columnController.getAllPrimaryColumns(),t=[];null!==e&&(t=e.filter((function(e){return!e.getColDef().lockVisible})));var o=this.columnController.isPivotMode(),i=0,n=0;t.forEach((function(e){if(!e.getColDef().lockVisible){var t=e.getColDef();if(!t||!t.suppressToolPanel){var r;if(o){if(!e.isAllowPivot()&&!e.isAllowRowGroup()&&!e.isAllowValue())return;r=e.isValueActive()||e.isPivotActive()||e.isRowGroupActive()}else r=e.isVisible();r?i++:n++}}})),this.selectState=i>0&&n>0?a.INDETERMINATE:n>0?a.UNCHECKED:a.CHECKED,l._.setDisplayed(this.eSelectChecked,this.selectState===a.CHECKED),l._.setDisplayed(this.eSelectUnchecked,this.selectState===a.UNCHECKED),l._.setDisplayed(this.eSelectIndeterminate,this.selectState===a.INDETERMINATE)},r([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([l.RefSelector("eFilterTextField"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),r([l.RefSelector("eExpand"),s("design:type",HTMLElement)],t.prototype,"eExpand",void 0),r([l.RefSelector("eSelect"),s("design:type",HTMLElement)],t.prototype,"eSelect",void 0),r([l.RefSelector("eFilterWrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterWrapper",void 0),r([l.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"preConstruct",null),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(l.Component);t.PrimaryColsHeaderPanel=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(){function e(){this.groupIdSequence=new r.NumberSequence(1)}return e.prototype.postConstruct=function(){this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.usingTreeData&&(this.getDataPath=this.gridOptionsWrapper.getDataPathFunc())},e.prototype.execute=function(e){var t=this.createGroupingDetails(e);if(t.transaction)this.handleTransaction(t);else{var o=!0===e.afterColumnsChanged;this.shotgunResetEverything(t,o)}this.sortGroupsWithComparator(t.rootNode),this.selectableService.updateSelectableAfterGrouping(t.rootNode)},e.prototype.createGroupingDetails=function(e){var t=e.rowNode,o=e.changedPath,i=e.rowNodeTransaction,n=e.rowNodeOrder,s=this.usingTreeData?null:this.columnController.getRowGroupColumns(),a=(this.usingTreeData||s&&s.length>0)&&r._.exists(i);return{includeParents:!this.gridOptionsWrapper.isSuppressParentsInRowNodes(),expandByDefault:this.gridOptionsWrapper.isGroupSuppressRow()?-1:this.gridOptionsWrapper.getGroupDefaultExpanded(),groupedCols:s,rootNode:t,pivotMode:this.columnController.isPivotMode(),groupedColCount:this.usingTreeData||!s?0:s.length,rowNodeOrder:n,transaction:a?i:null,changedPath:o}},e.prototype.handleTransaction=function(e){var t=e.transaction;t.add&&this.insertNodes(t.add,e),t.update&&this.moveNodesInWrongPath(t.update,e),t.remove&&this.removeNodes(t.remove,e),e.rowNodeOrder&&this.sortChildren(e)},e.prototype.sortChildren=function(e){e.changedPath.forEachChangedNodeDepthFirst((function(t){r._.sortRowNodesByOrder(t.childrenAfterGroup,e.rowNodeOrder)}))},e.prototype.sortGroupsWithComparator=function(e){if(!this.usingTreeData){var t=this.gridOptionsWrapper.getDefaultGroupSortComparator();r._.exists(t)&&function e(o){r._.exists(o.childrenAfterGroup)&&!o.leafGroup&&(o.childrenAfterGroup.sort(t),o.childrenAfterGroup.forEach((function(t){return e(t)})))}(e)}},e.prototype.getExistingPathForNode=function(e,t){for(var o=[],i=this.usingTreeData?e:e.parent;i&&i!==t.rootNode;)o.push({key:i.key,rowGroupColumn:i.rowGroupColumn,field:i.field}),i=i.parent;return o.reverse(),o},e.prototype.moveNodesInWrongPath=function(e,t){var o=this;e.forEach((function(e){t.changedPath.isActive()&&t.changedPath.addParentNode(e.parent);var i=function(e){return e.key},n=o.getExistingPathForNode(e,t).map(i),s=o.getGroupInfo(e,t).map(i);r._.compareArrays(n,s)||o.moveNode(e,t)}))},e.prototype.moveNode=function(e,t){if(this.removeNodesInStages([e],t),this.insertOneNode(e,t),e.setData(e.data),t.changedPath.isActive()){var o=e.parent;t.changedPath.addParentNode(o)}},e.prototype.removeNodes=function(e,t){this.removeNodesInStages(e,t),t.changedPath.isActive()&&e.forEach((function(e){return t.changedPath.addParentNode(e.parent)}))},e.prototype.removeNodesInStages=function(e,t){this.removeNodesFromParents(e,t),this.postRemoveCreateFillerNodes(e,t),this.postRemoveRemoveEmptyGroups(e,t)},e.prototype.forEachParentGroup=function(e,t,o){for(var i=t.parent;i&&i!==e.rootNode;)o(i),i=i.parent},e.prototype.removeNodesFromParents=function(e,t){var o=this,i=new a;e.forEach((function(e){o.removeFromParent(e,i),o.forEachParentGroup(t,e,(function(t){i.removeFromAllLeafChildren(t,e)}))})),i.flush()},e.prototype.postRemoveCreateFillerNodes=function(e,t){var o=this;e.forEach((function(e){if(e.hasChildren()){var i=o.getExistingPathForNode(e,t),n=o.findParentForNode(e,i,t);n.expanded=e.expanded,n.allLeafChildren=e.allLeafChildren,n.childrenAfterGroup=e.childrenAfterGroup,n.childrenMapped=e.childrenMapped,n.childrenAfterGroup.forEach((function(e){return e.parent=n}))}}))},e.prototype.postRemoveRemoveEmptyGroups=function(e,t){for(var o=this,i=!0,n=function(){i=!1;var n=new a;e.forEach((function(e){o.forEachParentGroup(t,e,(function(e){(function(e){var t=o.getChildrenMappedKey(e.key,e.rowGroupColumn),i=e.parent;return!(!i||!i.childrenMapped||!i.childrenMapped[t])&&e.isEmptyRowGroupNode()})(e)&&(i=!0,o.removeFromParent(e,n),e.setSelected(!1))}))})),n.flush()};i;)n()},e.prototype.removeFromParent=function(e,t){e.parent&&(t?t.removeFromChildrenAfterGroup(e.parent,e):r._.removeFromArray(e.parent.childrenAfterGroup,e));var o=this.getChildrenMappedKey(e.key,e.rowGroupColumn);e.parent&&e.parent.childrenMapped&&(e.parent.childrenMapped[o]=void 0),e.setRowTop(null)},e.prototype.addToParent=function(e,t){var o=this.getChildrenMappedKey(e.key,e.rowGroupColumn);t&&(t.childrenMapped&&(t.childrenMapped[o]=e),t.childrenAfterGroup.push(e))},e.prototype.areGroupColsEqual=function(e,t){return null!=e&&null!=t&&e.pivotMode===t.pivotMode&&!!r._.compareArrays(e.groupedCols,t.groupedCols)},e.prototype.shotgunResetEverything=function(e,t){var o=!!t&&(this.usingTreeData||this.areGroupColsEqual(e,this.oldGroupingDetails));this.oldGroupingDetails=e,o||(e.rootNode.leafGroup=!this.usingTreeData&&0===e.groupedCols.length,e.rootNode.childrenAfterGroup=[],e.rootNode.childrenMapped={},this.insertNodes(e.rootNode.allLeafChildren,e))},e.prototype.insertNodes=function(e,t){var o=this;e.forEach((function(e){o.insertOneNode(e,t),t.changedPath.isActive()&&t.changedPath.addParentNode(e.parent)}))},e.prototype.insertOneNode=function(e,t){var o=this.getGroupInfo(e,t),i=this.findParentForNode(e,o,t);i.group||console.warn("ag-Grid: duplicate group keys for row data, keys should be unique",[i.data,e.data]),this.usingTreeData?this.swapGroupWithUserNode(i,e):(e.parent=i,e.level=o.length,i.childrenAfterGroup.push(e))},e.prototype.findParentForNode=function(e,t,o){var i=this,n=o.rootNode;return t.forEach((function(t,r){(n=i.getOrCreateNextNode(n,t,r,o)).allLeafChildren.push(e)})),n},e.prototype.swapGroupWithUserNode=function(e,t){t.parent=e.parent,t.key=e.key,t.field=e.field,t.groupData=e.groupData,t.level=e.level,t.expanded=e.expanded,t.leafGroup=e.leafGroup,t.rowGroupIndex=e.rowGroupIndex,t.allLeafChildren=e.allLeafChildren,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenMapped=e.childrenMapped,this.removeFromParent(e),t.childrenAfterGroup.forEach((function(e){return e.parent=t})),this.addToParent(t,e.parent)},e.prototype.getOrCreateNextNode=function(e,t,o,i){var n=this.getChildrenMappedKey(t.key,t.rowGroupColumn),r=e.childrenMapped?e.childrenMapped[n]:void 0;return r||(r=this.createGroup(t,e,o,i),this.addToParent(r,e)),r},e.prototype.createGroup=function(e,t,o,i){var n=this,s=new r.RowNode;return this.context.wireBean(s),s.group=!0,s.field=e.field,s.rowGroupColumn=e.rowGroupColumn,s.groupData={},this.columnController.getGroupDisplayColumns().forEach((function(t){(n.usingTreeData||s.rowGroupColumn&&t.isRowGroupDisplayed(s.rowGroupColumn.getId()))&&(s.groupData[t.getColId()]=e.key)})),s.id=(-1*this.groupIdSequence.next()).toString(),s.key=e.key,s.level=o,s.leafGroup=!this.usingTreeData&&o===i.groupedColCount-1,i.pivotMode&&s.leafGroup?s.expanded=!1:s.expanded=this.isExpanded(i.expandByDefault,o),s.allLeafChildren=[],s.setAllChildrenCount(0),s.rowGroupIndex=this.usingTreeData?null:o,s.childrenAfterGroup=[],s.childrenMapped={},s.parent=i.includeParents?t:null,s},e.prototype.getChildrenMappedKey=function(e,t){return t?t.getId()+"-"+e:e},e.prototype.isExpanded=function(e,t){return-1===e||t<e},e.prototype.getGroupInfo=function(e,t){return this.usingTreeData?this.getGroupInfoFromCallback(e):this.getGroupInfoFromGroupColumns(e,t)},e.prototype.getGroupInfoFromCallback=function(e){var t=this.getDataPath?this.getDataPath(e.data):null;return null!=t&&0!==t.length||r._.doOnce((function(){return console.warn("getDataPath() should not return an empty path for data",e.data)}),"groupStage.getGroupInfoFromCallback"),t?t.map((function(e){return{key:e,field:null,rowGroupColumn:null}})):[]},e.prototype.getGroupInfoFromGroupColumns=function(e,t){var o=this,i=[];return t.groupedCols.forEach((function(n){var r=o.valueService.getKeyForNode(n,e),s=null!=r;if(t.pivotMode&&!s&&(r=" ",s=!0),s){var a={key:r,field:n.getColDef().field,rowGroupColumn:n};i.push(a)}})),i},i([r.Autowired("selectionController"),n("design:type",r.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("selectableService"),n("design:type",r.SelectableService)],e.prototype,"selectableService",void 0),i([r.Autowired("valueService"),n("design:type",r.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("groupStage")],e)}();t.GroupStage=s;var a=function(){function e(){this.allSets={},this.allParents=[]}return e.prototype.removeFromChildrenAfterGroup=function(e,t){this.getSet(e).removeFromChildrenAfterGroup[t.id]=!0},e.prototype.removeFromAllLeafChildren=function(e,t){this.getSet(e).removeFromAllLeafChildren[t.id]=!0},e.prototype.getSet=function(e){return this.allSets[e.id]||(this.allSets[e.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(e)),this.allSets[e.id]},e.prototype.flush=function(){var e=this;this.allParents.forEach((function(t){var o=e.allSets[t.id];t.childrenAfterGroup=t.childrenAfterGroup.filter((function(e){return!o.removeFromChildrenAfterGroup[e.id]})),t.allLeafChildren=t.allLeafChildren.filter((function(e){return!o.removeFromAllLeafChildren[e.id]}))})),this.allSets={},this.allParents.length=0},e}()},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(167),a=o(170),l=o(56),p=o(329),u=o(330),c=o(331),d=o(332),h=o(333),f=o(334),g=o(335),y=o(336),m=o(338),v=function(){function e(){}return e.prototype.init=function(){this.userComponentRegistry.registerDefaultComponent("agRichSelect",a.RichSelectCellEditor),this.userComponentRegistry.registerDefaultComponent("agRichSelectCellEditor",a.RichSelectCellEditor),this.userComponentRegistry.registerDefaultComponent("agSetColumnFilter",s.SetFilter),this.userComponentRegistry.registerDefaultComponent("agSetColumnFloatingFilter",m.SetFloatingFilterComp),this.userComponentRegistry.registerDefaultComponent("agDetailCellRenderer",p.DetailCellRenderer),this.userComponentRegistry.registerDefaultComponent("agAggregationComponent",h.AggregationComp),this.userComponentRegistry.registerDefaultComponent("agColumnsToolPanel",d.ColumnToolPanel),this.userComponentRegistry.registerDefaultComponent("agFiltersToolPanel",y.FiltersToolPanel),this.userComponentRegistry.registerDefaultComponent("agSelectedRowCountComponent",f.SelectedRowsComp),this.userComponentRegistry.registerDefaultComponent("agTotalRowCountComponent",u.TotalRowsComp),this.userComponentRegistry.registerDefaultComponent("agFilteredRowCountComponent",g.FilteredRowsComp),this.userComponentRegistry.registerDefaultComponent("agTotalAndFilteredRowCountComponent",c.TotalAndFilteredRowsComp)},i([r.Autowired("filterManager"),n("design:type",r.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("licenseManager"),n("design:type",l.LicenseManager)],e.prototype,"licenseManager",void 0),i([r.Autowired("userComponentRegistry"),n("design:type",r.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("enterpriseBoot")],e)}();t.EnterpriseBoot=v},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t){return e.call(this,t,!1,"row-group")||this}return n(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("rowGroupColumnsEmptyMessage","Drag here to set row groups"),i=t("groups","Row Groups");e.prototype.init.call(this,{dragAndDropIcon:a.DragAndDropService.ICON_GROUP,icon:a._.createIconNoSpan("rowGroupPanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowRowGroup(),o=!e.isRowGroupActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:a.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setRowGroupColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?a.DragAndDropService.ICON_GROUP:a.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnController.getRowGroupColumns()},r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"passBeansUp",null),t}(o(79).BaseDropZonePanel);t.RowGroupDropZonePanel=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t){return e.call(this,t,!1,"pivot")||this}return n(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("pivotColumnsEmptyMessage","Drag here to set column labels"),i=t("pivots","Column Labels");e.prototype.init.call(this,{dragAndDropIcon:a.DragAndDropService.ICON_GROUP,icon:a._.createIconNoSpan("pivotPanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},t.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},t.prototype.checkVisibility=function(){var e=this.columnController.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsWrapper.getPivotPanelShow()){case"always":this.setDisplayed(e);break;case"onlyWhenPivoting":var t=this.columnController.isPivotActive();this.setDisplayed(e&&t);break;default:this.setDisplayed(!1)}else this.setDisplayed(e)},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowPivot(),o=!e.isPivotActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:a.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setPivotColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?a.DragAndDropService.ICON_PIVOT:a.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnController.getPivotColumns()},r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"passBeansUp",null),t}(o(79).BaseDropZonePanel);t.PivotDropZonePanel=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(75),p=o(107),u=o(108),c=o(21),d=function(){function e(){}return e.prototype.init=function(){},e.prototype.hideActiveMenu=function(){this.activeMenu&&this.activeMenu.destroy()},e.prototype.getMenuItems=function(e,t,o){var i=[];if(a._.exists(e)&&t&&i.push("copy","copyWithHeaders","paste","separator"),this.gridOptionsWrapper.isEnableCharts()&&this.context.isModuleRegistered("chartsModule")&&(this.columnController.isPivotMode()&&i.push("pivotChart"),this.rangeController.isEmpty()||i.push("chartRange")),a._.exists(e)){var n=this.gridOptionsWrapper.isSuppressExcelExport(),r=this.gridOptionsWrapper.isSuppressCsvExport();!(a._.isUserAgentIPad()||n&&r)&&i.push("export")}if(this.gridOptionsWrapper.getContextMenuItemsFunc()){var s=this.gridOptionsWrapper.getContextMenuItemsFunc(),l={node:e,column:t,value:o,defaultItems:i.length?i:void 0,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return s?s(l):void 0}return i},e.prototype.showMenu=function(e,t,o,i){var n=this,r=this.getMenuItems(e,t,o);if(void 0!==r&&!a._.missingOrEmpty(r)){var s=new h(r);this.context.wireBean(s);var l=s.getGui(),p=this.popupService.addAsModalPopup(l,!0,(function(){return s.destroy()}),i);this.popupService.positionPopupUnderMouseEvent({column:t,rowNode:e,type:"contextMenu",mouseEvent:i,ePopup:l}),s.afterGuiAttached({hidePopup:p}),this.activeMenu=s,s.addEventListener(a.BeanStub.EVENT_DESTROYED,(function(){n.activeMenu===s&&(n.activeMenu=null)}))}},r([a.Autowired("context"),s("design:type",a.Context)],e.prototype,"context",void 0),r([a.Autowired("popupService"),s("design:type",a.PopupService)],e.prototype,"popupService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("rowModel"),s("design:type",Object)],e.prototype,"rowModel",void 0),r([a.Autowired("rangeController"),s("design:type",c.RangeController)],e.prototype,"rangeController",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],e.prototype,"columnController",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],e.prototype,"init",null),r([a.Bean("contextMenuFactory")],e)}();t.ContextMenuFactory=d;var h=function(e){function t(t){var o=e.call(this,'<div class="ag-menu"></div>')||this;return o.menuItems=t,o}return n(t,e),t.prototype.addMenuItems=function(){var e=new p.MenuList;this.getContext().wireBean(e);var t=this.menuItemMapper.mapWithStockItems(this.menuItems,null);e.addMenuItems(t),this.appendChild(e),e.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,this.destroy.bind(this))},t.prototype.afterGuiAttached=function(e){e.hidePopup&&this.addDestroyFunc(e.hidePopup),this.addDestroyableEventListener(this.eventService,"bodyScroll",this.destroy.bind(this))},r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("menuItemMapper"),s("design:type",u.MenuItemMapper)],t.prototype,"menuItemMapper",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"addMenuItems",null),t}(a.Component)},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(){function e(){this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}return e.prototype.ensureRowHeightsValid=function(e,t,o,i){return!1},e.prototype.init=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.eventService.addEventListener(r.Events.EVENT_VIEWPORT_CHANGED,this.onViewportChanged.bind(this)),this.gridOptionsWrapper.isRowModelViewport()&&this.gridOptionsWrapper.getViewportDatasource()&&this.setViewportDatasource(this.gridOptionsWrapper.getViewportDatasource())},e.prototype.isLastRowFound=function(){return!0},e.prototype.destroyDatasource=function(){this.viewportDatasource&&(this.viewportDatasource.destroy&&this.viewportDatasource.destroy(),this.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)},e.prototype.calculateFirstRow=function(e){var t=this.gridOptionsWrapper.getViewportRowModelBufferSize(),o=this.gridOptionsWrapper.getViewportRowModelPageSize(),i=e-t;return i<0?0:Math.floor(i/o)*o},e.prototype.calculateLastRow=function(e){if(-1===e)return e;var t=this.gridOptionsWrapper.getViewportRowModelBufferSize(),o=this.gridOptionsWrapper.getViewportRowModelPageSize(),i=e+t,n=Math.ceil(i/o)*o,r=this.rowCount-1;return Math.min(n,r)},e.prototype.onViewportChanged=function(e){var t=this.calculateFirstRow(e.firstRow),o=this.calculateLastRow(e.lastRow);this.firstRow===t&&this.lastRow===o||(this.firstRow=t,this.lastRow=o,this.purgeRowsNotInViewport(),this.viewportDatasource&&this.viewportDatasource.setViewportRange(this.firstRow,this.lastRow))},e.prototype.purgeRowsNotInViewport=function(){var e=this;Object.keys(this.rowNodesByIndex).forEach((function(t){var o=parseInt(t,10);(o<e.firstRow||o>e.lastRow)&&delete e.rowNodesByIndex[o]}))},e.prototype.setViewportDatasource=function(e){this.destroyDatasource(),this.viewportDatasource=e,this.rowCount=0,e.init?e.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):console.warn("ag-Grid: viewport is missing init method.")},e.prototype.getType=function(){return r.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.getRow=function(e){return this.rowNodesByIndex[e]||(this.rowNodesByIndex[e]=this.createBlankRowNode(e)),this.rowNodesByIndex[e]},e.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowIndexAtPixel=function(e){return 0!==this.rowHeight?Math.floor(e/this.rowHeight):0},e.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},e.prototype.getTopLevelRowCount=function(){return this.getRowCount()},e.prototype.getTopLevelRowDisplayedIndex=function(e){return e},e.prototype.getCurrentPageHeight=function(){return this.rowCount*this.rowHeight},e.prototype.isEmpty=function(){return this.rowCount>0},e.prototype.isRowsToRender=function(){return this.rowCount>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o=r._.missing(e)?0:e.rowIndex,i=t.rowIndex,n=o<this.firstRow||o>this.lastRow,s=i<this.firstRow||i>this.lastRow;if(n||s)return[];for(var a=[],l=o<=i?i:o,p=o<=i?o:i;p<=l;p++)a.push(this.rowNodesByIndex[p]);return a},e.prototype.forEachNode=function(e){var t=this,o=0;Object.keys(this.rowNodesByIndex).forEach((function(i){var n=parseInt(i,10),r=t.rowNodesByIndex[n];e(r,o),o++}))},e.prototype.setRowData=function(e){var t=this;r._.iterateObject(e,(function(e,o){var i=parseInt(e,10);if(i>=t.firstRow&&i<=t.lastRow){var n=t.rowNodesByIndex[i];r._.missing(n)&&(n=t.createBlankRowNode(i),t.rowNodesByIndex[i]=n),n.setDataAndId(o,i.toString())}}))},e.prototype.createBlankRowNode=function(e){var t=new r.RowNode;return this.context.wireBean(t),t.setRowHeight(this.rowHeight),t.setRowTop(this.rowHeight*e),t.setRowIndex(e),t},e.prototype.setRowCount=function(e){if(e!==this.rowCount){this.rowCount=e;var t={type:r.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newData:!1,newPage:!1,keepRenderedRows:!1,animate:!1};this.eventService.dispatchEvent(t)}},e.prototype.isRowPresent=function(e){return!1},i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("selectionController"),n("design:type",r.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("columnApi"),n("design:type",r.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("rowRenderer"),n("design:type",r.RowRenderer)],e.prototype,"rowRenderer",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroyDatasource",null),i([r.Bean("rowModel")],e)}();t.ViewportRowModel=s},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(175),p=o(339),u=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.toolPanelWrappers=[],o}return n(t,e),t.prototype.postConstruct=function(){this.sideBarButtonsComp.addEventListener(l.SideBarButtonsComp.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef()},t.prototype.onToolPanelButtonClicked=function(e){var t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0):this.openToolPanel(t)},t.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},t.prototype.setSideBarDef=function(){var e=this,t=this.gridOptionsWrapper.getSideBar(),o=!!t&&!!t.toolPanels;if(o){var i=t.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(i),this.setupToolPanels(i),t.hiddenByDefault||this.openToolPanel(t.defaultToolPanel)}var n=o&&!t.hiddenByDefault;setTimeout((function(){return e.setDisplayed(n)}),0)},t.prototype.setupToolPanels=function(e){var t=this;e.forEach((function(e){if(null!=e.id){var o=new p.ToolPanelWrapper;t.getContext().wireBean(o),o.setToolPanelDef(e),o.setDisplayed(!1),t.getGui().appendChild(o.getGui()),t.toolPanelWrappers.push(o)}else console.warn("ag-grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")}))},t.prototype.refresh=function(){this.toolPanelWrappers.forEach((function(e){return e.refresh()}))},t.prototype.openToolPanel=function(e){var t=this.openedItem();t!==e&&(this.toolPanelWrappers.forEach((function(t){var o=e===t.getToolPanelId();t.setDisplayed(o)})),t!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(e),this.raiseToolPanelVisibleEvent(e)))},t.prototype.raiseToolPanelVisibleEvent=function(e){var t={type:a.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.eventService.dispatchEvent(t)},t.prototype.close=function(){this.openToolPanel(void 0)},t.prototype.isToolPanelShowing=function(){return!!this.openedItem()},t.prototype.openedItem=function(){var e=null;return this.toolPanelWrappers.forEach((function(t){t.isDisplayed()&&(e=t.getToolPanelId())})),e},t.prototype.reset=function(){this.clearDownUi(),this.setSideBarDef()},t.prototype.destroyToolPanelWrappers=function(){this.toolPanelWrappers.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()})),this.toolPanelWrappers.length=0},t.prototype.destroy=function(){this.destroyToolPanelWrappers(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-side-bar ag-unselectable">\n <ag-side-bar-buttons ref="sideBarButtons">\n </div>',r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("sideBarButtons"),s("design:type",l.SideBarButtonsComp)],t.prototype,"sideBarButtonsComp",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.SideBarComp=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(234),p=o(340),u=o(80),c=o(81),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsExcel=function(e){return e&&e.exportMode&&this.setExportMode(e.exportMode),this.export(e)},t.prototype.getDataAsExcelXml=function(e){return e&&e.exportMode&&delete e.exportMode,this.setExportMode("xml"),this.getData(e||{})},t.prototype.getMimeType=function(){return"xml"===this.getExportMode()?"application/vnd.ms-excel":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},t.prototype.getDefaultFileName=function(){return"export."+this.getExportMode()},t.prototype.getDefaultFileExtension=function(){return this.getExportMode()},t.prototype.createSerializingSession=function(e){var t=this.columnController,o=this.valueService,i=this.gridOptionsWrapper,n=e.processCellCallback,r=e.processHeaderCallback,s=e.suppressTextAsCDATA,u=e.rowHeight,c=e.headerRowHeight,d="xlsx"===this.getExportMode(),h=d?this.xlsxFactory:this.excelXmlFactory,f="ag-grid";a._.exists(e.sheetName)&&(f=a._.utf8_encode(e.sheetName.toString().substr(0,31)));var g={columnController:t,valueService:o,gridOptionsWrapper:i,processCellCallback:n,processHeaderCallback:r,rowHeight:u,headerRowHeight:c||u,sheetName:f,excelFactory:h,baseExcelStyles:this.gridOptions.excelStyles||void 0,styleLinker:this.styleLinker.bind(this),suppressTextAsCDATA:s||!1};return new(d?p.ExcelXlsxSerializingSession:l.ExcelXmlSerializingSession)(g)},t.prototype.styleLinker=function(e,t,o,i,n,r){if(e===a.RowType.HEADER||e===a.RowType.HEADER_GROUPING)return["header"];var s=this.gridOptions.excelStyles;if(!s||!s.length)return null;var l=s.map((function(e){return e.id})),p=[];return this.stylingService.processAllCellClasses(n.getColDef(),{value:i,data:r.data,node:r,colDef:n.getColDef(),rowIndex:t,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()},(function(e){l.indexOf(e)>-1&&p.push(e)})),p.sort((function(e,t){return l.indexOf(e)<l.indexOf(t)?-1:1}))},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressExcelExport()},t.prototype.setExportMode=function(e){this.exportMode=e},t.prototype.getExportMode=function(){return this.exportMode||"xlsx"},t.prototype.packageFile=function(t){if("xml"===this.getExportMode())return e.prototype.packageFile.call(this,t);var o=this.zipContainer,i=this.xlsxFactory;return o.addFolders(["xl/worksheets/","xl/","xl/theme/","xl/_rels/","docProps/","_rels/"]),o.addFile("xl/worksheets/sheet1.xml",t),o.addFile("xl/workbook.xml",i.createWorkbook()),o.addFile("xl/styles.xml",i.createStylesheet()),o.addFile("xl/sharedStrings.xml",i.createSharedStrings()),o.addFile("xl/theme/theme1.xml",i.createTheme()),o.addFile("xl/_rels/workbook.xml.rels",i.createWorkbookRels()),o.addFile("docProps/core.xml",i.createCore()),o.addFile("[Content_Types].xml",i.createContentTypes()),o.addFile("_rels/.rels",i.createRels()),o.getContent("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")},r([a.Autowired("excelXmlFactory"),s("design:type",u.ExcelXmlFactory)],t.prototype,"excelXmlFactory",void 0),r([a.Autowired("excelXlsxFactory"),s("design:type",c.ExcelXlsxFactory)],t.prototype,"xlsxFactory",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),r([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),r([a.Autowired("stylingService"),s("design:type",a.StylingService)],t.prototype,"stylingService",void 0),r([a.Autowired("downloader"),s("design:type",a.Downloader)],t.prototype,"downloader",void 0),r([a.Autowired("gridSerializer"),s("design:type",a.GridSerializer)],t.prototype,"gridSerializer",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("zipContainer"),s("design:type",a.ZipContainer)],t.prototype,"zipContainer",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([a.Bean("excelCreator")],t)}(a.BaseCreator);t.ExcelCreator=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(82),p=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.postConstruct=function(){if(this.gridOptions.statusBar&&this.gridOptions.statusBar.statusPanels){var e=this.gridOptions.statusBar.statusPanels.filter((function(e){return"left"===e.align}));this.createAndRenderComponents(e,this.eStatusBarLeft);var t=this.gridOptions.statusBar.statusPanels.filter((function(e){return"center"===e.align}));this.createAndRenderComponents(t,this.eStatusBarCenter);var o=this.gridOptions.statusBar.statusPanels.filter((function(e){return!e.align||"right"===e.align}));this.createAndRenderComponents(o,this.eStatusBarRight)}},t.prototype.createAndRenderComponents=function(e,t){var o=this,i=[];a._.forEach(e,(function(e){var t={api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()},n=o.userComponentFactory.newStatusPanelComponent(e,t);i.push({key:e.key||e.statusPanel,promise:n})})),a.Promise.all(i.map((function(e){return e.promise}))).then((function(){a._.forEach(i,(function(e){e.promise.then((function(i){var n=function(){i.destroy&&i.destroy()};o.isAlive()?(o.statusBarService.registerStatusPanel(e.key,i),t.appendChild(i.getGui()),o.addDestroyFunc(n)):n()}))}))}))},t.TEMPLATE='<div class="ag-status-bar">\n <div ref="eStatusBarLeft" class="ag-status-bar-left"></div>\n <div ref="eStatusBarCenter" class="ag-status-bar-center"></div>\n <div ref="eStatusBarRight" class="ag-status-bar-right"></div>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),r([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([a.Autowired("statusBarService"),s("design:type",l.StatusBarService)],t.prototype,"statusBarService",void 0),r([a.RefSelector("eStatusBarLeft"),s("design:type",HTMLElement)],t.prototype,"eStatusBarLeft",void 0),r([a.RefSelector("eStatusBarCenter"),s("design:type",HTMLElement)],t.prototype,"eStatusBarCenter",void 0),r([a.RefSelector("eStatusBarRight"),s("design:type",HTMLElement)],t.prototype,"eStatusBarRight",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.StatusBar=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(56),p=function(e){function t(){return e.call(this,'<div class="ag-watermark">\n <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n </div>')||this}return n(t,e),t.prototype.postContruct=function(){var e=this,t=this.shouldDisplayWatermark();a._.addOrRemoveCssClass(this.getGui(),"ag-hidden",!t),t&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout((function(){e.addCssClass("ag-opacity-zero")}),0),window.setTimeout((function(){e.addCssClass("ag-hidden")}),5e3))},t.prototype.shouldDisplayWatermark=function(){var e=this.licenseManager.isDisplayWatermark(),t=null!=location.hostname.match("^127.0.0.1|localhost|www.ag-grid.com$");return-1!==location.search.indexOf("forceWatermark")||e&&!t},r([a.Autowired("licenseManager"),s("design:type",l.LicenseManager)],t.prototype,"licenseManager",void 0),r([a.RefSelector("eLicenseTextRef"),s("design:type",HTMLElement)],t.prototype,"eLicenseTextRef",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postContruct",null),t}(a.Component);t.WatermarkComp=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},s=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},a=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var l=o(1),p=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.markedCellComps=[],o.cellValues=[],o.isUp=!1,o.isLeft=!1,o.isReduce=!1,o.type="fill",o}return n(t,e),t.prototype.onDrag=function(e){if(!this.initialXY){var t=this.getGui().getBoundingClientRect(),o=t.x,i=t.y;this.initialXY={x:o,y:i}}var n=this.initialXY,r=n.x,s=n.y,a=Math.abs(r-e.clientX)>Math.abs(s-e.clientY)?"x":"y";if(a!==this.dragAxis&&(this.dragAxis=a),!this.initialPosition){var l=this.getCellComp();if(!l)return;this.initialPosition=l.getCellPosition()}var p=this.getLastCellHovered();p&&p!==this.lastCellMarked&&(this.lastCellMarked=p,this.markPathFrom(this.initialPosition,p))},t.prototype.onDragEnd=function(e){if(this.markedCellComps.length){var t,o="x"===this.dragAxis,i=this.getCellRange(),n=i.columns.length,r=this.getRangeStartRow(),s=this.getRangeEndRow();if(this.isUp||this.isLeft){var a=o?r:this.lastCellMarked;t=this.rangeController.createCellRangeFromCellRangeParams({rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,columnStart:o?this.lastCellMarked.column:i.columns[0],rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnEnd:i.columns[n-1]})}else t=this.rangeController.createCellRangeFromCellRangeParams({rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,columnStart:i.columns[0],rowEndIndex:o?s.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:o?s.rowPinned:this.lastCellMarked.rowPinned,columnEnd:o?this.lastCellMarked.column:i.columns[n-1]});t&&(this.handleValueChanged(i,t,e.altKey),this.rangeController.setCellRanges([t]))}},t.prototype.handleValueChanged=function(e,t,o){var i=this,n=this.rangeController.getRangeEndRow(e),r=this.rangeController.getRangeStartRow(e),s=this.rangeController.getRangeEndRow(t),a=this.rangeController.getRangeStartRow(t),p="y"===this.dragAxis;if(this.isReduce){var u=p?e.columns:e.columns.filter((function(e){return t.columns.indexOf(e)<0})),c=p?this.cellNavigationService.getRowBelow(s):a;c&&this.clearCellsInRange(c,n,u)}else{var d=!0,h=[],f=function(){h.length=0},g=function(t,o){var u=i.isUp?n:r,c=!1;p&&(d=!0,f());for(var g=function(){var g=i.rowPositionUtils.getRowNode(u);if(!g)return"break";p&&t?y(h,t,g,(function(){return!i.rowPositionUtils.sameRow(u,i.isUp?r:n)})):o&&(d=!0,f(),l._.forEach(o,(function(t){return y(h,t,g,(function(){return i.isLeft?t!==e.columns[0]:t!==l._.last(e.columns)}))}))),c=i.rowPositionUtils.sameRow(u,i.isUp?a:s),u=i.isUp?i.cellNavigationService.getRowAbove(u):i.cellNavigationService.getRowBelow(u)};!c&&u&&"break"!==g(););},y=function(e,t,n,r){var s;d?(s=i.valueService.getValue(t,n),d=r()):(s=i.processValues(e,o),i.valueService.setValue(n,t,s)),e.push(s)};p?e.columns.forEach((function(e){g(e)})):(u=this.isLeft?t.columns.slice().reverse():t.columns,g(void 0,u))}},t.prototype.clearCellsInRange=function(e,t,o){for(var i=this,n=e,r=!1,s=function(){var e=a.rowPositionUtils.getRowNode(n);if(!e)return"break";o.forEach((function(t){i.valueService.setValue(e,t,null)})),r=a.rowPositionUtils.sameRow(n,t),n=a.cellNavigationService.getRowBelow(n)},a=this;!r&&n&&"break"!==s(););},t.prototype.processValues=function(e,t){return 10},t.prototype.clearValues=function(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,e.prototype.clearValues.call(this)},t.prototype.clearMarkedPath=function(){this.markedCellComps.forEach((function(e){var t=e.getGui();l._.removeCssClass(t,"ag-selection-fill-top"),l._.removeCssClass(t,"ag-selection-fill-right"),l._.removeCssClass(t,"ag-selection-fill-bottom"),l._.removeCssClass(t,"ag-selection-fill-left")})),this.markedCellComps.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1},t.prototype.clearCellValues=function(){this.cellValues.length=0},t.prototype.markPathFrom=function(e,t){if(this.clearMarkedPath(),this.clearCellValues(),"y"===this.dragAxis){if(this.rowPositionUtils.sameRow(t,e))return;var o=this.rowPositionUtils.before(t,e),i=this.getRangeStartRow(),n=this.getRangeEndRow();o&&(t.rowPinned==i.rowPinned&&t.rowIndex>=i.rowIndex||i.rowPinned!=n.rowPinned&&t.rowPinned==n.rowPinned&&t.rowIndex<=n.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,o),this.isReduce=!1)}else{var r=e.column,s=t.column;if(r===s)return;var a=this.columnController.getAllDisplayedColumns(),l=a.indexOf(r),p=a.indexOf(s);p<=l&&p>=a.indexOf(this.getCellRange().columns[0])?(this.reduceHorizontal(e,t),this.isReduce=!0):(this.extendHorizontal(e,t,p<l),this.isReduce=!1)}},t.prototype.extendVertical=function(e,t,o){var i=this.rowRenderer,n=this.rangeController,s=e;do{for(var a=this.getCellRange(),p=a.columns.length,u=0;u<p;u++){var c=a.columns[u],d={rowIndex:s.rowIndex,rowPinned:s.rowPinned},h=r({},d,{column:c}),f=n.isCellInSpecificRange(h,a),g=this.rowPositionUtils.sameRow(s,e);if(o&&(this.isUp=!0),!g){var y=i.getComponentForCell(h);if(y){this.markedCellComps.push(y);var m=y.getGui();f||(l._.addOrRemoveCssClass(m,"ag-selection-fill-left",0===u),l._.addOrRemoveCssClass(m,"ag-selection-fill-right",u===p-1)),l._.addOrRemoveCssClass(m,o?"ag-selection-fill-top":"ag-selection-fill-bottom",this.rowPositionUtils.sameRow(s,t))}}}if(this.rowPositionUtils.sameRow(s,t))break}while(s=o?this.cellNavigationService.getRowAbove(s):this.cellNavigationService.getRowBelow(s))},t.prototype.reduceVertical=function(e,t){var o=e;do{for(var i=this.getCellRange(),n=i.columns.length,s=this.rowPositionUtils.sameRow(o,t),a=0;a<n;a++){var p={rowIndex:o.rowIndex,rowPinned:o.rowPinned},u=r({},p,{column:i.columns[a]}),c=this.rowRenderer.getComponentForCell(u);if(c){this.markedCellComps.push(c);var d=c.getGui();l._.addOrRemoveCssClass(d,"ag-selection-fill-bottom",this.rowPositionUtils.sameRow(o,t))}}if(s)break}while(o=this.cellNavigationService.getRowAbove(o))},t.prototype.extendHorizontal=function(e,t,o){var i=this,n=this.columnController.getAllDisplayedColumns(),r=n.indexOf(o?t.column:e.column),s=n.indexOf(o?this.getCellRange().columns[0]:t.column),a=o?0:1,p=n.slice(r+a,s+a),u=this.getRangeStartRow(),c=this.getRangeEndRow();p.forEach((function(e){var t=u,n=!1;do{n=i.rowPositionUtils.sameRow(t,c);var r=i.rowRenderer.getComponentForCell({rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e});if(r){i.markedCellComps.push(r);var s=r.getGui();l._.addOrRemoveCssClass(s,"ag-selection-fill-top",i.rowPositionUtils.sameRow(t,u)),l._.addOrRemoveCssClass(s,"ag-selection-fill-bottom",i.rowPositionUtils.sameRow(t,c)),o?(i.isLeft=!0,l._.addOrRemoveCssClass(s,"ag-selection-fill-left",e===p[0])):l._.addOrRemoveCssClass(s,"ag-selection-fill-right",e===l._.last(p))}t=i.cellNavigationService.getRowBelow(t)}while(!n)}))},t.prototype.reduceHorizontal=function(e,t){var o=this,i=this.columnController.getAllDisplayedColumns(),n=i.indexOf(t.column),r=i.indexOf(e.column),s=i.slice(n,r),a=this.getRangeStartRow(),p=this.getRangeEndRow();s.forEach((function(e){var t=a,i=!1;do{i=o.rowPositionUtils.sameRow(t,p);var n=o.rowRenderer.getComponentForCell({rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:e});if(n){o.markedCellComps.push(n);var r=n.getGui();l._.addOrRemoveCssClass(r,"ag-selection-fill-right",e===s[0])}t=o.cellNavigationService.getRowBelow(t)}while(!i)}))},t.prototype.refresh=function(t){var o=this.rangeController.getCellRanges()[0];o.startRow&&o.endRow?e.prototype.refresh.call(this,t):this.destroy()},t.TEMPLATE='<div class="ag-fill-handle"></div>',s([l.Autowired("valueService"),a("design:type",l.ValueService)],t.prototype,"valueService",void 0),t}(o(243).AbstractSelectionHandle);t.FillHandle=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(1),a=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.type="range",o.rangeFixed=!1,o}return n(t,e),t.prototype.onDrag=function(e){var t=this.getLastCellHovered();if(t){var o=this.rangeController.getCellRanges(),i=s._.last(o);this.rangeFixed||(this.fixRangeStartEnd(i),this.rangeFixed=!0);var n={rowIndex:t.rowIndex,rowPinned:t.rowPinned},a=!this.rowPositionUtils.sameRow(n,this.rangeController.getRangeEndRow(i));2===o.length&&a&&this.rangeController.updateRangeEnd({cellRange:o[0],cellPosition:r({},n,{column:o[0].columns[0]})}),this.endPosition=r({},n,{column:t.column}),this.rangeController.extendLatestRangeToCell(this.endPosition)}},t.prototype.onDragEnd=function(e){var t=s._.last(this.rangeController.getCellRanges());this.fixRangeStartEnd(t),this.rangeFixed=!1},t.prototype.fixRangeStartEnd=function(e){var t=this.rangeController.getRangeStartRow(e),o=this.rangeController.getRangeEndRow(e),i=e.columns[0];e.startRow=t,e.endRow=o,e.startColumn=i},t.TEMPLATE='<div class="ag-range-handle"></div>',t}(o(243).AbstractSelectionHandle);t.RangeHandle=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),n=o(178),r=o(3),s=o(2),a=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=[],e.EVENT_CALLBACKS_NO_PREFIX=[],e.EVENTS.forEach((function(t){e.EVENT_CALLBACKS.push(e.getCallbackForEvent(t)),e.EVENT_CALLBACKS_NO_PREFIX.push(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,o,i){void 0===i&&(i=!1),l(o),"object"!=_typeof2(t)&&(t={});var n=t;return e.ARRAY_PROPERTIES.concat(e.STRING_PROPERTIES).concat(e.OBJECT_PROPERTIES).concat(e.FUNCTION_PROPERTIES).forEach((function(e){void 0!==o[e]&&(n[e]=o[e])})),e.BOOLEAN_PROPERTIES.forEach((function(t){void 0!==o[t]&&(n[t]=e.toBoolean(o[t]))})),e.NUMBER_PROPERTIES.forEach((function(t){void 0!==o[t]&&(n[t]=e.toNumber(o[t]))})),e.getEventCallbacks().forEach((function(e){void 0!==o[e]&&(n[e]=o[e])})),i||e.EVENT_CALLBACKS_NO_PREFIX.forEach((function(t){var i=e.getCallbackForEvent(t);void 0===o[t]&&void 0===o[i]||r.GridOptionsWrapper.checkEventDeprecation(t)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,o,n,r){if(t){l(t);var a=o;e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),e.BOOLEAN_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toBoolean(t[o].currentValue))})),e.NUMBER_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toNumber(t[o].currentValue))})),e.getEventCallbacks().forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),t.enableCellTextSelection&&n.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&n.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&n.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&n.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&n.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&n.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&n.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&n.setDatasource(t.datasource.currentValue),t.headerHeight&&n.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&n.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&r.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&n.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&n.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.gridAutoHeight&&n.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&n.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&n.setSideBar(t.sideBar.currentValue),t.datasource&&n.setDatasource(t.datasource.currentValue);var p={type:i.Events.EVENT_COMPONENT_STATE_CHANGED,api:o.api,columnApi:o.columnApi};s._.iterateObject(t,(function(e,t){p[e]=t})),n.dispatchEvent(p)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=n.PropertyKeys.STRING_PROPERTIES,e.OBJECT_PROPERTIES=n.PropertyKeys.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=n.PropertyKeys.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=n.PropertyKeys.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=n.PropertyKeys.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=n.PropertyKeys.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=n.PropertyKeys.ALL_PROPERTIES,e}();function l(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}t.ComponentUtil=a,s._.iterateObject(i.Events,(function(e,t){a.EVENTS.push(t)}))},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(83),p=o(148),u=o(5),c=o(24),d=o(3),h=o(7),f=o(2),g=function(e){function t(t){var o=e.call(this,{columnController:t.columnController,valueService:t.valueService,gridOptionsWrapper:t.gridOptionsWrapper,processCellCallback:t.processCellCallback,processHeaderCallback:t.processHeaderCallback})||this;o.result="",o.lineOpened=!1;var i=t.suppressQuotes,n=t.columnSeparator;return o.suppressQuotes=i,o.columnSeparator=n,o}return n(t,e),t.prototype.prepare=function(e){},t.prototype.addCustomHeader=function(e){e&&(this.result+=e+"\r\n")},t.prototype.addCustomFooter=function(e){e&&(this.result+=e+"\r\n")},t.prototype.onNewHeaderGroupingRow=function(){return this.lineOpened&&(this.result+="\r\n"),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e,this.suppressQuotes);for(var i=1;i<=o;i++)this.result+=this.columnSeparator+this.putInQuotes("",this.suppressQuotes);this.lineOpened=!0},t.prototype.onNewHeaderRow=function(){return this.lineOpened&&(this.result+="\r\n"),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e),this.suppressQuotes),this.lineOpened=!0},t.prototype.onNewBodyRow=function(){return this.lineOpened&&(this.result+="\r\n"),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,h.Constants.EXPORT_TYPE_CSV,o),this.suppressQuotes),this.lineOpened=!0},t.prototype.putInQuotes=function(e,t){return t?e:null==e?'""':("string"==typeof e?o=e:"function"==typeof e.toString?o=e.toString():(console.warn("unknown value type during csv conversion"),o=""),'"'+o.replace(/"/g,'""')+'"');var o},t.prototype.parse=function(){return this.result},t}(l.BaseGridSerializingSession);t.CsvSerializingSession=g;var y=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),o=t.mergedParams,i=t.data,n=o&&o.fileName&&0!==o.fileName.length?o.fileName:this.getDefaultFileName();return-1===n.indexOf(".")&&(n=n+"."+this.getDefaultFileExtension()),this.beans.downloader.download(n,this.packageFile(i)),i},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),o={};return f._.assign(o,t),f._.assign(o,e),o},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}();t.BaseCreator=y;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this.columnController,o=this.valueService,i=this.gridOptionsWrapper,n=e,r=n.processCellCallback,s=n.processHeaderCallback,a=n.suppressQuotes,l=n.columnSeparator;return new g({columnController:t,valueService:o,gridOptionsWrapper:i,processCellCallback:r||void 0,processHeaderCallback:s||void 0,suppressQuotes:a||!1,columnSeparator:l||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},r([a.Autowired("columnController"),s("design:type",u.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("valueService"),s("design:type",c.ValueService)],t.prototype,"valueService",void 0),r([a.Autowired("downloader"),s("design:type",p.Downloader)],t.prototype,"downloader",void 0),r([a.Autowired("gridSerializer"),s("design:type",l.GridSerializer)],t.prototype,"gridSerializer",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([a.Bean("csvCreator")],t)}(y);t.CsvCreator=m},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(59),a=o(22),l=o(12),p=o(6),u=o(8),c=o(2),d=function(e){function t(t,o,i,n,r,s,a,l,p,u,c){var d=e.call(this)||this;return d.eAllRowContainers=[],d.active=!0,d.rowContainerReadyCount=0,d.refreshNeeded=!1,d.columnRefreshPending=!1,d.cellComps={},d.createSecondPassFuncs=[],d.removeFirstPassFuncs=[],d.removeSecondPassFuncs=[],d.initialised=!1,d.parentScope=t,d.beans=a,d.bodyContainerComp=o,d.pinnedLeftContainerComp=i,d.pinnedRightContainerComp=n,d.fullWidthContainerComp=r,d.rowNode=s,d.rowIsEven=d.rowNode.rowIndex%2==0,d.paginationPage=d.beans.paginationProxy.getCurrentPage(),d.useAnimationFrameForCreate=p,d.printLayout=u,d.embedFullWidth=c,d.setAnimateFlags(l),d}return n(t,e),t.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEach((function(e){return c._.removeCssClass(e,"ag-opacity-zero")}))}))},t.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var o=[],i=this.rowNode.rowHeight,n=this.getInitialRowClasses(t).join(" "),r=c._.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=c._.escape(a),p=this.getInitialRowTopStyle(),u=this.rowNode.getRowIndexString(),d=this.beans.gridPanel.headerRootComp.getHeaderRowCount();return o.push("<div"),o.push(' role="row"'),o.push(' row-index="'+u+'" aria-rowindex="'+(d+this.rowNode.rowIndex+1)+'"'),o.push(r?' row-id="'+r+'"':""),o.push(a?' row-business-key="'+l+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+n+'"'),o.push(' style="height: '+i+"px; "+p+" "+s+'">'),o.push(e),o.push("</div>"),o.join("")},t.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},t.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},t.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+o+"px; ":"transform: translateY("+o+"px);"},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},t.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},t.prototype.lazyCreateCells=function(e,t){if(this.active){var o=this.createCells(e);t.innerHTML=o.template,this.callAfterRowAttachedOnCells(o.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},t.prototype.createRowContainer=function(e,t,o){var i=this,n=this.useAnimationFrameForCreate,r=n?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(r.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(i.getCompId());i.afterRowAttached(e,s),o(s),n?i.beans.taskQueue.addP1Task(i.lazyCreateCells.bind(i,t,s),i.rowNode.rowIndex):(i.callAfterRowAttachedOnCells(r.cellComps,s),i.rowContainerReadyCount=3)}))},t.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=r({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},t.prototype.setupRowContainers=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc(),o=!!e&&e(this.rowNode),i=this.beans.doingMasterDetail&&this.rowNode.detail,n=this.beans.columnController.isPivotMode(),r=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(n);this.rowNode.stub?this.createFullWidthRows(t.LOADING_CELL_RENDERER,t.LOADING_CELL_RENDERER_COMP_NAME):i?this.createFullWidthRows(t.DETAIL_CELL_RENDERER,t.DETAIL_CELL_RENDERER_COMP_NAME):o?this.createFullWidthRows(t.FULL_WIDTH_CELL_RENDERER,null):r?this.createFullWidthRows(t.GROUP_ROW_RENDERER,t.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},t.prototype.setupNormalRowContainers=function(){var e,t,o,i=this;this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return i.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,o,(function(e){return i.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,t,(function(e){return i.ePinnedLeftRow=e}))},t.prototype.createFullWidthRows=function(e,t){var o=this;this.fullWidthRow=!0,this.embedFullWidth?(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,(function(e){o.eFullWidthRowBody=e}),(function(e){o.fullWidthRowComponentBody=e})),this.printLayout||(this.createFullWidthRowContainer(this.pinnedLeftContainerComp,l.Column.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){o.eFullWidthRowLeft=e}),(function(e){o.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,l.Column.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){o.eFullWidthRowRight=e}),(function(e){o.fullWidthRowComponentRight=e})))):this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){o.eFullWidthRow=e}),(function(e){o.fullWidthRowComponent=e}))},t.prototype.setAnimateFlags=function(e){if(e){var t=c._.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.fullWidthRow},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,o,i){if(!t||!o)return!0;if(!o.refresh)return!1;var n=e.createFullWidthParams(t,i);return o.refresh(n)},o=t(this.eFullWidthRow,this.fullWidthRowComponent,null),i=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),n=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,l.Column.PINNED_LEFT),r=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,l.Column.PINNED_RIGHT);return o&&i&&n&&r},t.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,p.Events.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addListenersForCellComps()},t.prototype.addListenersForCellComps=function(){var e=this;this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,(function(){e.forEachCellComp((function(e){return e.onRowIndexChanged()}))})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,(function(t){e.forEachCellComp((function(e){return e.onCellChanged(t)}))}))},t.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},t.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(e){this.postProcessCss()},t.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},t.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},t.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponent),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponentBody),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,l.Column.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,l.Column.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},t.prototype.getContainerForCell=function(e){switch(e){case l.Column.PINNED_LEFT:return this.ePinnedLeftRow;case l.Column.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},t.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},t.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.addP1Task(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex)}else this.refreshNeeded=!0},t.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,o;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,o);var i=Object.keys(this.cellComps);e.forEach((function(e){return c._.removeFromArray(i,e.getId())})),t.forEach((function(e){return c._.removeFromArray(i,e.getId())})),o.forEach((function(e){return c._.removeFromArray(i,e.getId())}));var n=c._.filter(i,this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(n)}},t.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var o=t.cellComps[e];c._.missing(o)||(o.detach(),o.destroy(),t.cellComps[e]=null)}))},t.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),o=this.cellComps[e];if(!o)return!0;if(this.isCellInWrongRow(o))return!0;var i=o.isEditing(),n=this.beans.focusedCellController.isCellFocused(o.getCellPosition());if(i||n){var r=o.getColumn();return!(t.indexOf(r)>=0)}return!0},t.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),o=e.getColumn().getPinned(),i=this.getContainerForCell(o),n=e.getParentRow();n!==i&&(n&&n.removeChild(t),i.appendChild(t),e.setParentRow(i))}},t.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),o=this.getContainerForCell(t.getPinned());return e.getParentRow()!==o},t.prototype.insertCellsIntoContainer=function(e,t){var o=this;if(e){var i=[],n=[];t.forEach((function(t){var r=t.getId(),s=o.cellComps[r];s?o.ensureCellInCorrectContainer(s):o.createNewCell(t,e,i,n)})),i.length>0&&(c._.appendHtml(e,i.join("")),this.callAfterRowAttachedOnCells(n,e))}},t.prototype.addDomData=function(e){var o=this.beans.gridOptionsWrapper;o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,null)}))},t.prototype.createNewCell=function(e,t,o,i){var n=new s.CellComp(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),r=n.getCreateTemplate();o.push(r),i.push(n),this.cellComps[e.getId()]=n,n.setParentRow(t)},t.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!c._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowClick=function(e){if(!c._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,i=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var n=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),r=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())n?this.rowNode.setSelectedParams({newValue:!1}):o?r&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!n&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:i})}}}},t.prototype.createFullWidthRowContainer=function(e,t,o,i,n,r,s){var a=this,l=this.createTemplate("",o);e.appendRowTemplate(l,(function(){var o=e.getRowElement(a.getCompId()),l=a.createFullWidthParams(o,t),p=function(e){if(a.isAlive()){var t=e.getGui();o.appendChild(t),s(e)}else e.destroy&&e.destroy()},u=a.beans.detailRowCompCache.get(a.rowNode,t);if(u)p(u);else{var c=a.beans.userComponentFactory.newFullWidthCellRenderer(l,i,n);if(!c)return void console.error("ag-Grid: fullWidthCellRenderer not defined");c.then(p)}a.afterRowAttached(e,o),r(o),a.angular1Compile(o)}))},t.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},t.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},t.prototype.getInitialRowClasses=function(e){var t=[],o=this.beans.gridOptionsWrapper.isTreeData(),i=this.rowNode;return c._.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),i.isSelected()&&t.push("ag-row-selected"),i.group?(t.push("ag-row-group"),t.push("ag-row-level-"+i.level),i.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(i.parent?i.parent.level+1:"0")),i.stub&&t.push("ag-row-stub"),this.fullWidthRow&&t.push("ag-full-width-row"),(o?i.allChildrenCount:i.group&&!i.footer)&&t.push(i.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),i.dragging&&t.push("ag-row-dragging"),c._.pushAll(t,this.processClassesFromGridOptions()),c._.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return c._.addOrRemoveCssClass(e,"ag-row-last",t)})))},t.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(p.Events.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},t.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(p.Events.EVENT_ROW_EDITING_STARTED):this.createRowEvent(p.Events.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),this.editingRow||(this.forEachCellComp((function(i){var n=i===o;n?i.startEditingIfEnabled(e,t,n):i.startEditingIfEnabled(null,null,n)})),this.setEditingRow(!0))},t.prototype.forEachCellComp=function(e){c._.iterateObject(this.cellComps,(function(t,o){o&&e(o)}))},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return c._.addCssClass(e,t)}))}))},t.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return c._.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return c._.removeCssClass(e,t)}))}))},t.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},o=this.beans.gridOptionsWrapper.getRowClass();if(o){if("function"==typeof o)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(o)}var i=this.beans.gridOptionsWrapper.getRowClassFunc();return i&&t(i({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()})),e},t.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return c._.cssStyleObjectToMarkup(e)},t.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return c._.addStylesToElement(t,e)}))},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,o=this.beans.gridOptionsWrapper.getRowStyleFunc();return o&&(t=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope})),c._.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.createCells=function(e){var t=this,o=[],i=[];return e.forEach((function(e){var n=new s.CellComp(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),r=n.getCreateTemplate();o.push(r),i.push(n),t.cellComps[e.getId()]=n})),{template:o.join(""),cellComps:i}},t.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-selected",e)}))},t.prototype.callAfterRowAttachedOnCells=function(e,t){var o=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),o.editingRow&&e.startEditingIfEnabled()}))},t.prototype.afterRowAttached=function(e,t){var o=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(c._.exists(o.rowNode.rowTop)){var e=o.roundRowTopToBounds(o.rowNode.rowTop);o.setRowTop(e)}else c._.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.addP2Task(this.addHoverFunctionality.bind(this,t)):this.addHoverFunctionality(t)},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||c._.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_LEAVE,(function(){c._.removeCssClass(e,"ag-row-hover")})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,i=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),i)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.onRowHeightChanged=function(){if(c._.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},t.prototype.addEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,o)},t.prototype.removeEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,o)},t.prototype.destroy=function(t){void 0===t&&(t=!1),e.prototype.destroy.call(this),this.active=!1,this.destroyFullWidthComponents(),t?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var o=this.createRowEvent(p.Events.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(o),this.beans.eventService.dispatchEvent(o)},t.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},t.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return c._.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&c._.exists(e)){var t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=o})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+o+")"}))}},t.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getRenderedCellForColumn=function(e){var t=this,o=this.cellComps[e.getColId()];if(o)return o;var i=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return t&&-1!==t.getColSpanningList().indexOf(e)}));return i.length?i[0]:void 0},t.prototype.onRowIndexChanged=function(){this.onCellFocusChanged(),this.updateRowIndexes()},t.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),o=this.rowNode.rowIndex%2==0,i=this.rowIsEven!==o,n=this.beans.gridPanel.headerRootComp.getHeaderRowCount();i&&(this.rowIsEven=o),this.eAllRowContainers.forEach((function(r){r.setAttribute("row-index",t),r.setAttribute("aria-rowindex",(n+e.rowNode.rowIndex+1).toString()),i&&(c._.addOrRemoveCssClass(r,"ag-row-even",o),c._.addOrRemoveCssClass(r,"ag-row-odd",!o))}))},t.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},t.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},t.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},t.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},t.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},t.DOM_DATA_KEY_RENDERED_ROW="renderedRow",t.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",t.GROUP_ROW_RENDERER="groupRowRenderer",t.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",t.LOADING_CELL_RENDERER="loadingCellRenderer",t.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",t.DETAIL_CELL_RENDERER="detailCellRenderer",t.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",t}(u.Component);t.RowComp=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(22),p=o(0),u=o(3),c=o(6),d=o(4),h=o(9),f=o(10),g=o(2),y=function(e){function t(){return e.call(this,'<span class="ag-selection-checkbox" unselectable="on"/>')||this}return n(t,e),t.prototype.createAndAddIcons=function(){this.eCheckedIcon=g._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=g._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eIndeterminateIcon=g._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.column);var e=this.getGui();e.appendChild(this.eCheckedIcon),e.appendChild(this.eUncheckedIcon),e.appendChild(this.eIndeterminateIcon)},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();g._.setDisplayed(this.eCheckedIcon,!0===e),g._.setDisplayed(this.eUncheckedIcon,!1===e),g._.setDisplayed(this.eIndeterminateIcon,"boolean"!=typeof e)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onIndeterminateClicked=function(e){0===this.onUncheckedClicked(e)&&this.onCheckedClicked()},t.prototype.init=function(e){this.rowNode=e.rowNode,this.column=e.column,this.createAndAddIcons(),this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckedIcon,"click",this.onCheckedClicked.bind(this)),this.addDestroyableEventListener(this.eUncheckedIcon,"click",this.onUncheckedClicked.bind(this)),this.addDestroyableEventListener(this.eIndeterminateIcon,"click",this.onIndeterminateClicked.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,c.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setDisplayed(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("gridApi"),s("design:type",h.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnApi"),s("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),t}(a.Component);t.CheckboxSelectionComponent=y},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(47),l=o(0),p=o(3),u=o(2),c=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.getGuiCalledOnChild=!1,o.cellEditor=t,o}return n(t,e),t.prototype.onKeyDown=function(e){u._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(o){var i=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){i.cellEditor.destroy&&i.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",r([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.PopupComponent);t.PopupEditorWrapper=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(7),a=o(5),l=o(3),p=o(30),u=o(2),c=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var o=t,i=!1;!i;){switch(e){case s.Constants.KEY_UP:o=this.getCellAbove(o);break;case s.Constants.KEY_DOWN:o=this.getCellBelow(o);break;case s.Constants.KEY_RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case s.Constants.KEY_LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("ag-Grid: unknown key for navigation "+e)}i=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.rowPinned){case s.Constants.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case s.Constants.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!o.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getRowBelow=function(e){var t=e.rowIndex,o=e.rowPinned;if(this.isLastRowInContainer(e))switch(o){case s.Constants.PINNED_BOTTOM:return null;case s.Constants.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?{rowIndex:0,rowPinned:s.Constants.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?{rowIndex:0,rowPinned:s.Constants.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:o}},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,o=e.rowIndex;return t===s.Constants.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:t===s.Constants.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.rowModel.getRowCount()-1<=o},e.prototype.getRowAbove=function(e){var t=e.rowIndex,o=e.rowPinned;return 0===t?o===s.Constants.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:o}},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:s.Constants.PINNED_TOP}},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.rowPinned,n=this.columnController.getDisplayedColAfter(e.column);if(!n){n=t[0];var r=this.getRowBelow(e);if(u._.missing(r))return null;o=r?r.rowIndex:null,i=r?r.rowPinned:null}return{rowIndex:o,column:n,rowPinned:i}},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.rowPinned,n=this.columnController.getDisplayedColBefore(e.column);if(!n){n=u._.last(t);var r=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(u._.missing(r))return null;o=r?r.rowIndex:null,i=r?r.rowPinned:null}return{rowIndex:o,column:n,rowPinned:i}},i([r.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("pinnedRowModel"),n("design:type",p.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("cellNavigationService")],e)}();t.CellNavigationService=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(0),a=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var i=this.waitingCallbacks[e],n=this;if(!i){i=[],this.waitingCallbacks[e]=i;var r=new XMLHttpRequest;r.onload=function(){n.handleHttpResult(this,e)},r.open("GET",e),r.send()}return t&&i.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],i=0;i<o.length;i++)(0,o[i])();if(this.$scope){var n=this;window.setTimeout((function(){n.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},i([s.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([r.Bean("templateService")],e)}();t.TemplateService=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(2),p=o(0),u=o(17),c=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return n(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=l._.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&l._.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(l._.missing(t)&&(t=""),t!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering())return this.addSlideAnimation(),this.lastValue=t,l._.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:l._.exists(e.value)?this.eCurrent.innerHTML=t:l._.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',r([p.Autowired("filterManager"),s("design:type",u.FilterManager)],t.prototype,"filterManager",void 0),t}(a.Component);t.AnimateSlideCellRenderer=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(131),a=o(0),l=o(132),p=o(253),u=o(254),c=o(134),d=o(135),h=o(129),f=o(255),g=o(136),y=o(182),m=o(183),v=o(184),C=o(137),_=o(256),w=o(257),b=o(258),E=o(2),R=o(259),S=o(260),P=o(138),O=o(261),T=o(262);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(r=t.RegisteredComponentSource||(t.RegisteredComponentSource={}));var A=function(){function e(){this.agGridDefaults={agDateInput:R.DefaultDateComponent,agColumnHeader:p.HeaderComp,agColumnGroupHeader:u.HeaderGroupComp,agTextColumnFloatingFilter:T.TextFloatingFilter,agNumberColumnFloatingFilter:O.NumberFloatingFilter,agDateColumnFloatingFilter:S.DateFloatingFilter,agAnimateShowChangeCellRenderer:d.AnimateShowChangeCellRenderer,agAnimateSlideCellRenderer:h.AnimateSlideCellRenderer,agGroupCellRenderer:c.GroupCellRenderer,agGroupRowRenderer:c.GroupCellRenderer,agLoadingCellRenderer:f.LoadingCellRenderer,agCellEditor:s.TextCellEditor,agTextCellEditor:s.TextCellEditor,agSelectCellEditor:g.SelectCellEditor,agPopupTextCellEditor:y.PopupTextCellEditor,agPopupSelectCellEditor:m.PopupSelectCellEditor,agLargeTextCellEditor:v.LargeTextCellEditor,agTextColumnFilter:P.TextFilter,agNumberColumnFilter:C.NumberFilter,agDateColumnFilter:l.DateFilter,agLoadingOverlay:_.LoadingOverlayComponent,agNoRowsOverlay:w.NoRowsOverlayComponent,agTooltipComponent:b.TooltipComponent},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this,t=this.context.getEnterpriseDefaultComponents();t&&E._.forEach(t,(function(t){e.registerDefaultComponent(t.componentName,t.theClass)})),null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=t},e.prototype.registerComponent=function(e,t){var o=this.translateIfDeprecated(e);this.frameworkComponents[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComponents[o]=t},e.prototype.registerFwComponent=function(e,t){var o=this.translateIfDeprecated(e);this.jsComponents[o]?console.error("Trying to register a component that you have already registered for plain javascript: "+o):this.frameworkComponents[o]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:r.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:r.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:r.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-Grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(E._.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},i([a.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([a.Bean("userComponentRegistry")],e)}();t.UserComponentRegistry=A},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(47),a=o(2),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.eInput=o.getGui().querySelector("input"),o}return n(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===r.Constants.KEY_BACKSPACE||e.keyPress===r.Constants.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==r.Constants.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),a._.exists(t)&&(o.value=t),this.addDestroyableEventListener(o,"keydown",(function(e){var t=e.keyCode===r.Constants.KEY_PAGE_UP,o=e.keyCode===r.Constants.KEY_PAGE_DOWN;(t||o)&&e.preventDefault()}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;if(e.focus(),this.highlightAllOnFocus)e.select();else{var t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}}},t.prototype.focusIn=function(){var e=this.eInput;e.focus(),e.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.value)},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-input-wrapper" role="presentation"><input class="ag-cell-edit-input" type="text"/></div>',t}(s.PopupComponent);t.TextCellEditor=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(0),p=o(19),u=o(2),c=o(180),d=o(33),h=o(133),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.mapRangeFromModel=function(e){return{from:u._.parseYyyyMmDdToDate(e.dateFrom,"-"),to:u._.parseYyyyMmDdToDate(e.dateTo,"-")}},t.prototype.setValueFromFloatingFilter=function(e){if(null!=e){var t=u._.parseYyyyMmDdToDate(e,"-");this.dateCompFrom1.setDate(t)}else this.dateCompFrom1.setDate(null);this.dateCompTo1.setDate(null),this.dateCompFrom2.setDate(null),this.dateCompTo2.setDate(null)},t.prototype.setConditionIntoUi=function(e,t){var o=t===d.ConditionPosition.One,i=e?e.dateFrom:null,n=e?e.dateTo:null,r=u._.parseYyyyMmDdToDate(i,"-"),s=u._.parseYyyyMmDdToDate(n,"-"),a=o?this.dateCompFrom1:this.dateCompFrom2,l=o?this.dateCompTo1:this.dateCompTo2;a.setDate(r),l.setDate(s)},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.dateCompTo1.setDate(null),this.dateCompTo2.setDate(null),this.dateCompFrom1.setDate(null),this.dateCompFrom2.setDate(null)},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return t<e?-1:t>e?1:null!=t?0:-1},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t,this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t={onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams};this.dateCompFrom1=new c.DateCompWrapper(this.userComponentFactory,t,this.ePanelFrom1),this.dateCompFrom2=new c.DateCompWrapper(this.userComponentFactory,t,this.ePanelFrom2),this.dateCompTo1=new c.DateCompWrapper(this.userComponentFactory,t,this.ePanelTo1),this.dateCompTo2=new c.DateCompWrapper(this.userComponentFactory,t,this.ePanelTo2),this.addDestroyFunc((function(){e.dateCompFrom1.destroy(),e.dateCompFrom2.destroy(),e.dateCompTo1.destroy(),e.dateCompTo2.destroy()}))},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===d.ConditionPosition.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body">\n <div class="ag-filter-date-from" ref="ePanelFrom'+t+'">\n </div>\n <div class="ag-filter-date-to" ref="ePanelTo'+t+'"">\n </div>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===d.ConditionPosition.One,o=t?this.getCondition1Type():this.getCondition2Type(),i=t?this.dateCompFrom1:this.dateCompFrom2,n=t?this.dateCompTo1:this.dateCompTo2,r=i.getDate(),s=n.getDate();return o!==d.SimpleFilter.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||(o===d.SimpleFilter.IN_RANGE?null!=r&&null!=s:null!=r))},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.createCondition=function(e){var o=e===d.ConditionPosition.One,i=o?this.getCondition1Type():this.getCondition2Type(),n=o?this.dateCompTo1:this.dateCompTo2,r=o?this.dateCompFrom1:this.dateCompFrom2;return{dateTo:u._.serializeDateToYyyyMmDd(n.getDate(),"-"),dateFrom:u._.serializeDateToYyyyMmDd(r.getDate(),"-"),type:i,filterType:t.FILTER_TYPE}},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());u._.setDisplayed(this.ePanelFrom1,t);var o=this.showValueTo(this.getCondition1Type());u._.setDisplayed(this.ePanelTo1,o);var i=this.showValueFrom(this.getCondition2Type());u._.setDisplayed(this.ePanelFrom2,i);var n=this.showValueTo(this.getCondition2Type());u._.setDisplayed(this.ePanelTo2,n)},t.FILTER_TYPE="date",t.DEFAULT_FILTER_OPTIONS=[h.ScalerFilter.EQUALS,h.ScalerFilter.GREATER_THAN,h.ScalerFilter.LESS_THAN,h.ScalerFilter.NOT_EQUAL,h.ScalerFilter.IN_RANGE],r([a.RefSelector("ePanelFrom1"),s("design:type",HTMLElement)],t.prototype,"ePanelFrom1",void 0),r([a.RefSelector("ePanelFrom2"),s("design:type",HTMLElement)],t.prototype,"ePanelFrom2",void 0),r([a.RefSelector("ePanelTo1"),s("design:type",HTMLElement)],t.prototype,"ePanelTo1",void 0),r([a.RefSelector("ePanelTo2"),s("design:type",HTMLElement)],t.prototype,"ePanelTo2",void 0),r([l.Autowired("userComponentFactory"),s("design:type",p.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),t}(h.ScalerFilter);t.DateFilter=f},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t,this.checkDeprecatedParams()},t.prototype.checkDeprecatedParams=function(){this.scalarFilterParams.nullComparator&&(console.warn("ag-Grid: Since v21.0, the property filterParams.nullComparator is deprecated. Please use filterParams.includeBlanksInEquals, filterParams.includeBlanksInLessThan and filterParams.includeBlanksInGreaterThan instead."),this.scalarFilterParams.includeBlanksInEquals=this.scalarFilterParams.nullComparator.equals,this.scalarFilterParams.includeBlanksInLessThan=this.scalarFilterParams.nullComparator.lessThan,this.scalarFilterParams.includeBlanksInGreaterThan=this.scalarFilterParams.nullComparator.greaterThan)},t.prototype.nullComparator=function(e,o,i){if(null==i){var n=this.canNullsPassFilter(e);if(e===t.EMPTY)return 0;if(e===t.EQUALS)return n?0:1;if(e===t.GREATER_THAN)return n?1:-1;if(e===t.GREATER_THAN_OR_EQUAL)return n?1:-1;if(e===t.LESS_THAN_OR_EQUAL)return n?-1:1;if(e===t.LESS_THAN)return n?-1:1;if(e===t.NOT_EQUAL)return n?1:0}return this.comparator()(o,i)},t.prototype.canNullsPassFilter=function(e){switch(e){case r.SimpleFilter.GREATER_THAN:case r.SimpleFilter.GREATER_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInGreaterThan;case r.SimpleFilter.LESS_THAN:case r.SimpleFilter.LESS_THAN_OR_EQUAL:return this.scalarFilterParams.includeBlanksInLessThan;case r.SimpleFilter.EQUALS:return this.scalarFilterParams.includeBlanksInEquals}},t.prototype.individualConditionPasses=function(e,o){var i=this.scalarFilterParams.valueGetter(e.node),n=this.mapRangeFromModel(o),r=n.from,s=n.to,a=o.type,l=this.optionsFactory.getCustomOption(a);if(l&&(null!=r||l.hideFilterInput))return l.test(r,i);var p=this.nullComparator(a,r,i);if(a===t.EQUALS)return 0===p;if(a===t.GREATER_THAN)return p>0;if(a===t.GREATER_THAN_OR_EQUAL)return p>=0;if(a===t.LESS_THAN_OR_EQUAL)return p<=0;if(a===t.LESS_THAN)return p<0;if(a===t.NOT_EQUAL)return 0!=p;var u=this.nullComparator(a,s,i);if(a===t.IN_RANGE)return this.scalarFilterParams.inRangeInclusive?p>=0&&u<=0:p>0&&u<0;throw new Error("Unexpected type of filter: "+a)},t.DEFAULT_NULL_COMPARATOR={equals:!1,lessThan:!1,greaterThan:!1},t}(r.SimpleFilter);t.ScalerFilter=s},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(25),p=o(4),u=o(7),c=o(0),d=o(8),h=o(22),f=o(62),g=o(125),y=o(5),m=o(12),v=o(11),C=o(63),_=o(19),w=o(2),b=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),o=null==e.value;this.cellIsBlank=t||o,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(this.params.fullWidth&&this.gridOptionsWrapper.isEmbedFullWidthRows()){var e=this.params.pinned===m.Column.PINNED_LEFT,t=this.params.pinned===m.Column.PINNED_RIGHT,o=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!o:this.columnController.isPinningLeft()?!e:!o}return!1},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){w._.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var o=e*t;this.gridOptionsWrapper.isEnableRtl()?this.getGui().style.paddingRight=o+"px":this.getGui().style.paddingLeft=o+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,h.RowNode.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||w._.get(e.colDef,"cellRendererParams.innerRenderer",null)||w._.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var o=w._.cloneObject(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,o=this.params,i=this.displayedGroup.rowGroupColumn||o.column,n=this.params.value,r=i?this.valueFormatterService.formatValue(i,o.node,o.scope,n):null;o.valueFormatted=r,(e=1==o.fullWidth?this.useFullWidth(o):this.useInnerRenderer(this.params.colDef.cellRendererParams,i.getColDef(),o))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,o){var i=this,n=null,r=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(r&&null!=r.component&&r.source!=_.ComponentSource.DEFAULT)n=this.userComponentFactory.newInnerCellRenderer(e,o);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");n=s&&s.source!=_.ComponentSource.DEFAULT?this.userComponentFactory.newCellRenderer(t,o):s&&s.source==_.ComponentSource.DEFAULT&&w._.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,o):this.userComponentFactory.newCellRenderer({},o)}return null!=n?n.then((function(e){null!=e?w._.bindCellRendererToHtmlElement(n,i.eValue):i.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value})):this.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,n},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?w._.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){w._.exists(this.params.value)&&(this.eValue.innerText=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var o=new g.CheckboxSelectionComponent;this.getContext().wireBean(o),o.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return o.destroy()}))}w._.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,o=w._.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),i=w._.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(o),this.eContracted.appendChild(i),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(e.node,h.RowNode.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){if(w._.isKeyPressed(e,u.Constants.KEY_ENTER)){if(this.params.suppressEnterExpand)return;if(this.params.column&&this.params.column.isCellEditable(this.params.node))return;e.preventDefault(),this.onExpandOrContract()}},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var o=t.rowGroupColumn;this.draggedFromHideOpenParents=!!o&&!e.isRowGroupDisplayed(o.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var i=t.parent;!w._.missing(i);){if(i.rowGroupColumn&&e.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroup=i;break}i=i.parent}w._.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){w._.isStopPropagationForAgGrid(e)||(w._.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){w._.isStopPropagationForAgGrid(e)||w._.isElementInEventPath(this.eExpanded,e)||w._.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract()},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;w._.setDisplayed(this.eContracted,!t),w._.setDisplayed(this.eExpanded,t)}else w._.setDisplayed(this.eExpanded,!1),w._.setDisplayed(this.eContracted,!1);var o=this.displayedGroup,i=this.columnController.isPivotMode()&&o.leafGroup,n=!o.isExpandable(),r=o.footer||n||i;this.addOrRemoveCssClass("ag-row-group",!r),this.addOrRemoveCssClass("ag-row-group-leaf-indent",r)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy()},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper"><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',r([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([c.Autowired("expressionService"),s("design:type",l.ExpressionService)],t.prototype,"expressionService",void 0),r([c.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([c.Autowired("valueFormatterService"),s("design:type",f.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),r([c.Autowired("columnController"),s("design:type",y.ColumnController)],t.prototype,"columnController",void 0),r([c.Autowired("mouseEventService"),s("design:type",C.MouseEventService)],t.prototype,"mouseEventService",void 0),r([c.Autowired("userComponentFactory"),s("design:type",_.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([v.RefSelector("eExpanded"),s("design:type",HTMLElement)],t.prototype,"eExpanded",void 0),r([v.RefSelector("eContracted"),s("design:type",HTMLElement)],t.prototype,"eContracted",void 0),r([v.RefSelector("eCheckbox"),s("design:type",HTMLElement)],t.prototype,"eCheckbox",void 0),r([v.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),r([v.RefSelector("eChildCount"),s("design:type",HTMLElement)],t.prototype,"eChildCount",void 0),t}(d.Component);t.GroupCellRenderer=b},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(2),p=o(17),u=o(0),c=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o}return n(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var o=Math.abs(t),i=e.formatValue(o),n=l._.exists(i)?i:o,r=t>=0;this.eDelta.innerHTML=r?"↑"+n:"↓"+n,l._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",r),l._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!r)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){l._.removeCssClass(this.eValue,"ag-value-change-value-highlight"),l._.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue&&(l._.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:l._.exists(e.value)?this.eValue.innerHTML=t:l._.clearElement(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())){if("number"==typeof t&&"number"==typeof this.lastValue){var o=t-this.lastValue;this.showDelta(e,o)}return this.lastValue&&l._.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',r([u.Autowired("filterManager"),s("design:type",p.FilterManager)],t.prototype,"filterManager",void 0),t}(a.Component);t.AnimateShowChangeCellRenderer=c},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(47),l=o(7),p=o(0),u=o(3),c=o(62),d=o(2),h=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-input"><select class="ag-cell-edit-input"/></div>')||this;return t.eSelect=t.getGui().querySelector("select"),t}return n(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,d._.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(o){var i=document.createElement("option");i.value=o;var n=t.valueFormatterService.formatValue(e.column,null,null,o),r=null!=n;i.text=r?n:o,e.value===o&&(i.selected=!0),t.eSelect.appendChild(i)})),this.gridOptionsWrapper.isFullRowEdit()||this.addDestroyableEventListener(this.eSelect,"change",(function(){return e.stopEditing()})),this.addDestroyableEventListener(this.eSelect,"keydown",(function(e){(e.keyCode===l.Constants.KEY_UP||e.keyCode===l.Constants.KEY_DOWN)&&e.stopPropagation()})),this.addDestroyableEventListener(this.eSelect,"mousedown",(function(e){e.stopPropagation()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.focus()},t.prototype.focusIn=function(){this.eSelect.focus()},t.prototype.getValue=function(){return this.eSelect.value},t.prototype.isPopup=function(){return!1},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("valueFormatterService"),s("design:type",c.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),t}(a.PopupComponent);t.SelectCellEditor=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(2),p=o(33),u=o(133),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.mapRangeFromModel=function(e){return{from:e.filter,to:e.filterTo}},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.eValueFrom1.value=null,this.eValueFrom2.value=null,this.eValueTo1.value=null,this.eValueTo2.value=null},t.prototype.setConditionIntoUi=function(e,t){var o=t===p.ConditionPosition.One,i=o?this.eValueFrom1:this.eValueFrom2,n=o?this.eValueTo1:this.eValueTo2;i.value=e?""+e.filter:null,n.value=e?""+e.filterTo:null},t.prototype.setValueFromFloatingFilter=function(e){this.eValueFrom1.value=e,this.eValueFrom2.value=null,this.eValueTo1.value=null,this.eValueTo2.value=null},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:e>t?-1:void 0}},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.addValueChangedListeners()},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eValueFrom1,"input",t),this.addDestroyableEventListener(this.eValueFrom2,"input",t),this.addDestroyableEventListener(this.eValueTo1,"input",t),this.addDestroyableEventListener(this.eValueTo2,"input",t)},t.prototype.afterGuiAttached=function(){this.eValueFrom1.focus()},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===p.ConditionPosition.One?"1":"2",o=this.translate.bind(this);return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <div class="ag-input-wrapper" role="presentation">\n <input class="ag-filter-filter" ref="eValueFrom'+t+'" type="text" placeholder="'+o("filterOoo")+'"/>\n </div>\n <div class="ag-input-wrapper ag-filter-number-to" ref="ePanel'+t+'" role="presentation">\n <input class="ag-filter-filter" ref="eValueTo'+t+'" type="text" placeholder="'+o("filterOoo")+'"/>\n </div>\n </div>'},t.prototype.isConditionUiComplete=function(e){var t=e===p.ConditionPosition.One,o=t?this.getCondition1Type():this.getCondition2Type(),i=t?this.eValueFrom1:this.eValueFrom2,n=t?this.eValueTo1:this.eValueTo2,r=this.stringToFloat(i.value),s=this.stringToFloat(n.value);return o!==p.SimpleFilter.EMPTY&&(!!this.doesFilterHaveHiddenInput(o)||(o===p.SimpleFilter.IN_RANGE?null!=r&&null!=s:null!=r))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.stringToFloat=function(e){var t=l._.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.createCondition=function(e){var o=e===p.ConditionPosition.One,i=o?this.getCondition1Type():this.getCondition2Type(),n=o?this.eValueFrom1:this.eValueFrom2,r=this.stringToFloat(n.value),s=o?this.eValueTo1:this.eValueTo2,a=this.stringToFloat(s.value),l={filterType:t.FILTER_TYPE,type:i};return this.doesFilterHaveHiddenInput(i)||(l.filter=r,l.filterTo=a),l},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());l._.setDisplayed(this.eValueFrom1,t);var o=this.showValueTo(this.getCondition1Type());l._.setDisplayed(this.eValueTo1,o);var i=this.showValueFrom(this.getCondition2Type());l._.setDisplayed(this.eValueFrom2,i);var n=this.showValueTo(this.getCondition2Type());l._.setDisplayed(this.eValueTo2,n)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[u.ScalerFilter.EQUALS,u.ScalerFilter.NOT_EQUAL,u.ScalerFilter.LESS_THAN,u.ScalerFilter.LESS_THAN_OR_EQUAL,u.ScalerFilter.GREATER_THAN,u.ScalerFilter.GREATER_THAN_OR_EQUAL,u.ScalerFilter.IN_RANGE],r([a.RefSelector("eValueFrom1"),s("design:type",HTMLInputElement)],t.prototype,"eValueFrom1",void 0),r([a.RefSelector("eValueFrom2"),s("design:type",HTMLInputElement)],t.prototype,"eValueFrom2",void 0),r([a.RefSelector("eValueTo1"),s("design:type",HTMLInputElement)],t.prototype,"eValueTo1",void 0),r([a.RefSelector("eValueTo2"),s("design:type",HTMLInputElement)],t.prototype,"eValueTo2",void 0),t}(u.ScalerFilter);t.NumberFilter=c},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(2),p=o(33),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getValue=function(e){var t=e.value;return(t=l._.makeNull(t))&&""===t.trim()&&(t=null),t},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eValue1,"input",t),this.addDestroyableEventListener(this.eValue2,"input",t)},t.prototype.setParams=function(o){e.prototype.setParams.call(this,o),this.textFilterParams=o,this.comparator=this.textFilterParams.textCustomComparator?this.textFilterParams.textCustomComparator:t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter?this.textFilterParams.textFormatter:1==this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER,this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===p.ConditionPosition.One?this.eValue1:this.eValue2).value=e?e.filter:null},t.prototype.createCondition=function(e){var o=e===p.ConditionPosition.One,i=o?this.getCondition1Type():this.getCondition2Type(),n=o?this.eValue1:this.eValue2,r=this.getValue(n),s={filterType:t.FILTER_TYPE,type:i};return this.doesFilterHaveHiddenInput(i)||(s.filter=r),s},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.eValue1.value=null,this.eValue2.value=null},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.value=e,this.eValue2.value=null},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===p.ConditionPosition.One?"1":"2";return'<div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n <div class="ag-input-wrapper" ref="eInputWrapper'+t+'" role="presentation">\n <input class="ag-filter-filter" ref="eValue'+t+'" type="text" placeholder="'+this.gridOptionsWrapper.getLocaleTextFunc()("filterOoo","Filter...")+'"/>\n </div>\n </div>'},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());l._.setDisplayed(this.eInputWrapper1,t);var o=this.showValueFrom(this.getCondition2Type());l._.setDisplayed(this.eInputWrapper2,o)},t.prototype.afterGuiAttached=function(){this.eValue1.focus()},t.prototype.isConditionUiComplete=function(e){var t=e===p.ConditionPosition.One,o=t?this.getCondition1Type():this.getCondition2Type(),i=t?this.eValue1:this.eValue2;if(o===p.SimpleFilter.EMPTY)return!1;var n=this.getValue(i);return!!this.doesFilterHaveHiddenInput(o)||null!=n},t.prototype.individualConditionPasses=function(e,t){var o=t.filter,i=t.type,n=this.textFilterParams.valueGetter(e.node),r=this.formatter(n),s=this.optionsFactory.getCustomOption(i);if(s&&(null!=o||s.hideFilterInput))return s.test(o,r);if(null==n)return i===p.SimpleFilter.NOT_EQUAL||i===p.SimpleFilter.NOT_CONTAINS;var a=this.formatter(o);return this.comparator(i,r,a)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[p.SimpleFilter.CONTAINS,p.SimpleFilter.NOT_CONTAINS,p.SimpleFilter.EQUALS,p.SimpleFilter.NOT_EQUAL,p.SimpleFilter.STARTS_WITH,p.SimpleFilter.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,o,i){switch(e){case t.CONTAINS:return o.indexOf(i)>=0;case t.NOT_CONTAINS:return-1===o.indexOf(i);case t.EQUALS:return o===i;case t.NOT_EQUAL:return o!=i;case t.STARTS_WITH:return 0===o.indexOf(i);case t.ENDS_WITH:var n=o.lastIndexOf(i);return n>=0&&n===o.length-i.length;default:return console.warn("invalid filter type "+e),!1}},r([a.RefSelector("eValue1"),s("design:type",HTMLInputElement)],t.prototype,"eValue1",void 0),r([a.RefSelector("eValue2"),s("design:type",HTMLInputElement)],t.prototype,"eValue2",void 0),r([a.RefSelector("eInputWrapper1"),s("design:type",HTMLElement)],t.prototype,"eInputWrapper1",void 0),r([a.RefSelector("eInputWrapper2"),s("design:type",HTMLElement)],t.prototype,"eInputWrapper2",void 0),t}(p.SimpleFilter);t.TextFilter=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(140),a=o(2),l=function(){function e(){}return e.prototype.adaptFunction=function(e,t,o,i){if(null==t)return{component:null,componentFromFramework:o,source:i,paramsFromSelector:null};var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?{componentFromFramework:o,component:n.functionAdapter(t),source:i,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),o=_typeof2(t);return"string"===o||"number"===o||"boolean"===o?a._.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&"getGui"in e.prototype},i([r.Autowired("componentMetadataProvider"),n("design:type",s.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),i([r.Bean("agComponentUtils")],e)}();t.AgComponentUtils=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(139),a=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},i([r.Autowired("agComponentUtils"),n("design:type",s.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("componentMetadataProvider")],e)}();t.ComponentMetadataProvider=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(25),a=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,o,i){this.processClassRules(e.cellClassRules,t,o,i),this.processStaticCellClasses(e,t,o)},e.prototype.processClassRules=function(e,t,o,i){if("object"==_typeof2(e)&&null!==e)for(var n=Object.keys(e),r=0;r<n.length;r++){var s=n[r],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?o(s):i&&i(s)}},e.prototype.processStaticCellClasses=function(e,t,o){if(e.cellClass){var i=void 0;"string"==typeof(i="function"==typeof e.cellClass?(0,e.cellClass)(t):e.cellClass)?o(i):Array.isArray(i)&&i.forEach((function(e){o(e)}))}},i([r.Autowired("expressionService"),n("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Bean("stylingService")],e)}();t.StylingService=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(32),a=o(19),l=o(3),p=o(10),u=o(9),c=o(2),d=function(){function e(){this.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT=1e3,this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT=2e3,this.HIDE_SHOW_ONLY=!0,this.showTimeoutId=0,this.hideTimeoutId=0,this.registeredComponents={}}return e.prototype.registerTooltip=function(e){var t=this,o=e.getGui(),i=e.getCompId();this.registeredComponents[i]={tooltipComp:void 0,destroyFunc:void 0,eventDestroyFuncs:[e.addDestroyableEventListener(o,"mouseover",(function(o){return t.processMouseOver(o,e)})),e.addDestroyableEventListener(o,"mousemove",(function(e){return t.processMouseMove(e)})),e.addDestroyableEventListener(o,"mousedown",this.hideTooltip.bind(this)),e.addDestroyableEventListener(o,"mouseout",this.processMouseOut.bind(this))]},e.addDestroyFunc((function(){return t.unregisterTooltip(e)}))},e.prototype.unregisterTooltip=function(e){var t=e.getCompId(),o=this.registeredComponents[t];this.activeComponent===e&&this.hideTooltip(),e.isAlive()&&o&&o.eventDestroyFuncs.length&&o.eventDestroyFuncs.forEach((function(e){return e()})),delete this.registeredComponents[t]},e.prototype.processMouseOver=function(e,t){var o=this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT;if(this.activeComponent){if(this.lastHoveredComponent===this.activeComponent)return;o=200}else if(this.showTimeoutId&&this.lastHoveredComponent===t)return;this.clearTimers(this.HIDE_SHOW_ONLY),this.lastHoveredComponent!==t&&(this.lastHoveredComponent=t,this.lastMouseEvent=e,this.showTimeoutId=window.setTimeout(this.showTooltip.bind(this),o,e))},e.prototype.processMouseOut=function(e){var t=this.activeComponent,o=e.relatedTarget;if(t){if(!t.getGui().contains(o)){var i=this.registeredComponents[t.getCompId()];c._.addCssClass(i.tooltipComp.getGui(),"ag-tooltip-hiding"),this.lastHoveredComponent=void 0,this.clearTimers(),this.hideTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT)}}else{if(this.lastHoveredComponent){var n=this.lastHoveredComponent.getGui().contains(o);if(this.showTimeoutId&&n)return;n||(this.lastHoveredComponent=void 0)}this.clearTimers()}},e.prototype.processMouseMove=function(e){this.lastMouseEvent=e},e.prototype.showTooltip=function(e){var t=this.lastHoveredComponent,o=t,i=this.registeredComponents[t.getCompId()];this.hideTooltip();var n={api:this.gridApi,columnApi:this.columnApi,colDef:t.getComponentHolder(),column:o.getColumn&&o.getColumn(),context:this.gridOptionsWrapper.getContext(),rowIndex:o.getCellPosition&&o.getCellPosition().rowIndex,value:t.getTooltipText()};this.createTooltipComponent(n,i,e)},e.prototype.createTooltipComponent=function(e,t,o){var i=this;this.userComponentFactory.newTooltipComponent(e).then((function(e){if(t){t.tooltipComp=e;var o=e.getGui();c._.containsClass(o,"ag-tooltip")||c._.addCssClass(o,"ag-tooltip-custom");var n=i.popupService.addPopup(!1,o,!1);t.destroyFunc=function(){n(),e.destroy&&e.destroy()},i.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:i.lastMouseEvent,ePopup:o,nudgeY:18}),i.activeComponent=i.lastHoveredComponent,i.hideTimeoutId=window.setTimeout(i.hideTooltip.bind(i),i.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}}))},e.prototype.hideTooltip=function(){var e=this.activeComponent;if(this.clearTimers(),e){var t=e.getCompId(),o=this.registeredComponents[t];this.activeComponent=void 0,o&&(o.destroyFunc&&o.destroyFunc(),this.clearRegisteredComponent(o))}},e.prototype.clearRegisteredComponent=function(e){delete e.destroyFunc,delete e.tooltipComp},e.prototype.clearTimers=function(e){void 0===e&&(e=!1),this.hideTimeoutId&&!e&&(window.clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.showTimeoutId&&(window.clearTimeout(this.showTimeoutId),this.showTimeoutId=0)},i([r.Autowired("popupService"),n("design:type",s.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("userComponentFactory"),n("design:type",a.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("tooltipManager")],e)}();t.TooltipManager=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=function(){function e(){}return e.prototype.createId=function(e){var t=e.rowIndex,o=e.rowPinned;return t+"."+(null==o?"null":o)+"."+e.column.getId()},e.prototype.equals=function(e,t){var o=e.column===t.column,i=e.rowPinned===t.rowPinned,n=e.rowIndex===t.rowIndex;return o&&i&&n},i([n.Bean("cellPositionUtils")],e)}();t.CellPositionUtils=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,o,n,r){i._.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,o,n,r)},e.addToolPanelClassesFromColDef=function(e,t,o,n,r){i._.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,o,n,r)},e.addColumnClassesFromCollDef=function(e,t,o,n,r,s){var a;i._.missing(e)||("string"==typeof(a="function"==typeof e?e({colDef:t,column:r,columnGroup:s,context:n.getContext(),api:n.getApi()}):e)?i._.addCssClass(o,a):Array.isArray(a)&&a.forEach((function(e){i._.addCssClass(o,e)})))},e}();t.CssClassApplier=n},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.labelSeparator="",t.labelAlignment="left",t.config={},t.label="",t}return n(t,e),t.prototype.postConstruct=function(){p._.addCssClass(this.getGui(),"ag-labeled");var e=this.config,t=e.labelSeparator,o=e.label,i=e.labelWidth,n=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=o&&this.setLabel(o),null!=i&&this.setLabelWidth(i),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){this.eLabel.innerText=this.label+this.labelSeparator,p._.addOrRemoveCssClass(this.eLabel,"ag-hidden",""===this.label)},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return p._.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),p._.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),p._.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||p._.setElementWidth(this.eLabel,e),this},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.AgAbstractLabel=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(15),l=o(0),p=o(64),u=function(e){function t(t,o){var i=e.call(this)||this;return i.columns=t,i.element=o,i}return n(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addDestroyableEventListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},r([l.Autowired("columnHoverService"),s("design:type",p.ColumnHoverService)],t.prototype,"columnHoverService",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.BeanStub);t.HoverFeature=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!=typeof o?0:o+1,this.existingIds[e]=t,t},e}();t.GroupInstanceIdCreator=i},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var o=document.createElement("a"),i=window.URL.createObjectURL(t);o.setAttribute("href",i),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(o),window.setTimeout((function(){window.URL.revokeObjectURL(i)}),0)}},i([n.Bean("downloader")],e)}();t.Downloader=r},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(38),a=o(59),l=o(5),p=o(2),u=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),p._.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var o=this.gridPanel.getCenterContainer();o.appendChild(this.eDummyContainer);var i=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(o){var n=new a.CellComp(t.$scope,t.beans,o,e,null,!0,!1);n.setParentRow(t.eDummyContainer),i.push(n)}));var n=i.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=n,i.forEach((function(e){return e.afterAttached()}));for(var r=0,s=0;s<this.eDummyContainer.children.length;s++){var l=this.eDummyContainer.children[s];l.offsetHeight>r&&(r=l.offsetHeight)}return o.removeChild(this.eDummyContainer),i.forEach((function(e){e.detach(),e.destroy()})),p._.clearElement(this.eDummyContainer),r},i([r.Autowired("beans"),n("design:type",s.Beans)],e.prototype,"beans",void 0),i([r.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([r.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([r.Bean("autoHeightCalculator")],e)}();t.AutoHeightCalculator=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),n=o(23),r=o(10),s=o(5),a=o(20),l=o(151),p=o(17),u=o(24),c=o(4),d=o(152),h=o(9),f=o(57),g=o(84),y=o(25),m=o(128),v=o(32),C=o(14),_=o(44),w=o(58),b=o(91),E=o(0),R=o(123),S=o(202),P=o(203),O=o(18),T=o(37),A=o(27),D=o(26),x=o(63),F=o(127),M=o(204),N=o(206),L=o(208),I=o(6),k=o(209),G=o(211),W=o(87),H=o(62),V=o(49),j=o(155),B=o(213),z=o(66),U=o(148),Y=o(214),$=o(83),q=o(141),K=o(64),X=o(86),Q=o(207),Z=o(205),J=o(189),ee=o(31),te=o(199),oe=o(190),ie=o(7),ne=o(46),re=o(273),se=o(93),ae=o(30),le=o(19),pe=o(130),ue=o(139),ce=o(140),de=o(38),he=o(60),fe=o(48),ge=o(200),ye=o(89),me=o(153),ve=o(149),Ce=o(274),_e=o(94),we=o(215),be=o(142),Ee=o(201),Re=o(216),Se=o(96),Pe=o(156),Oe=o(157),Te=o(217),Ae=o(218),De=o(2),xe=o(219),Fe=o(97),Me=o(158),Ne=o(220),Le=o(221),Ie=o(222),ke=o(187),Ge=o(90),We=o(143),He=function(){function e(t,o,I){t||console.error("ag-Grid: no div element provided to the grid"),o||console.error("ag-Grid: no gridOptions provided to the grid"),this.gridOptions=o;var k=this.getRowModelClass(o),G=!De._.missingOrEmpty(e.enterpriseBeans),ie=this.extractModuleEntity(e.modulesToInclude,(function(e){return e.beans?e.beans:[]})),He=this.extractModuleEntity(e.modulesToInclude,(function(e){return e.enterpriseBeans?e.enterpriseBeans:[]})),Ve=this.extractModuleEntity(e.modulesToInclude,(function(e){return e.enterpriseComponents?e.enterpriseComponents:[]})),je=this.extractModuleEntity(e.modulesToInclude,(function(e){return e.enterpriseDefaultComponents?e.enterpriseDefaultComponents:[]})),Be=I?I.frameworkOverrides:null;De._.missing(Be)&&(Be=new B.VanillaFrameworkOverrides);var ze=[];e.enterpriseBeans&&(ze=ze.concat(e.enterpriseBeans).concat(He)),e.frameworkBeans&&(ze=ze.concat(e.frameworkBeans));var Ue={enterprise:G,gridOptions:o,eGridDiv:t,$scope:I?I.$scope:null,$compile:I?I.$compile:null,quickFilterOnScope:I?I.quickFilterOnScope:null,globalEventListener:I?I.globalEventListener:null,frameworkOverrides:Be};I&&I.seedBeanInstances&&De._.assign(Ue,I.seedBeanInstances);var Ye=[{componentName:"AgCheckbox",theClass:V.AgCheckbox},{componentName:"AgRadioButton",theClass:j.AgRadioButton},{componentName:"AgToggleButton",theClass:Ie.AgToggleButton},{componentName:"AgInputTextField",theClass:Oe.AgInputTextField},{componentName:"AgInputTextArea",theClass:Te.AgInputTextArea},{componentName:"AgInputNumberField",theClass:Fe.AgInputNumberField},{componentName:"AgInputRange",theClass:Me.AgInputRange},{componentName:"AgSelect",theClass:Ne.AgSelect},{componentName:"AgSlider",theClass:Ae.AgSlider},{componentName:"AgAngleSelect",theClass:Le.AgAngleSelect},{componentName:"AgColorPicker",theClass:xe.AgColorPicker},{componentName:"AgGridComp",theClass:d.GridPanel},{componentName:"AgHeaderRoot",theClass:l.HeaderRootComp},{componentName:"AgPagination",theClass:Ce.PaginationComp},{componentName:"AgOverlayWrapper",theClass:Ee.OverlayWrapperComponent},{componentName:"AgGroupComponent",theClass:Re.AgGroupComponent},{componentName:"AgPanel",theClass:Pe.AgPanel},{componentName:"AgDialog",theClass:Se.AgDialog}];e.enterpriseComponents&&(Ye=Ye.concat(e.enterpriseComponents).concat(Ve));var $e={overrideBeans:ze,seed:Ue,beans:[k,de.Beans,Ge.RowPositionUtils,We.CellPositionUtils,te.PaginationAutoPageSizeService,h.GridApi,pe.UserComponentRegistry,ue.AgComponentUtils,ce.ComponentMetadataProvider,_e.ResizeObserverService,pe.UserComponentRegistry,le.UserComponentFactory,ye.MaxDivHeightScaler,ve.AutoHeightCalculator,W.CellRendererFactory,b.HorizontalResizeService,ae.PinnedRowModel,T.DragService,g.DisplayedGroupCreator,c.EventService,i.GridOptionsWrapper,v.PopupService,n.SelectionController,p.FilterManager,s.ColumnController,ee.PaginationProxy,a.RowRenderer,y.ExpressionService,f.ColumnFactory,R.CsvCreator,U.Downloader,Y.XmlFactory,$.GridSerializer,m.TemplateService,se.AlignedGridsService,ge.NavigationService,v.PopupService,ne.ValueCache,u.ValueService,C.LoggerFactory,_.ColumnUtils,w.AutoWidthCalculator,P.StandardMenuFactory,O.DragAndDropService,r.ColumnApi,D.FocusedCellController,x.MouseEventService,he.Environment,F.CellNavigationService,M.FilterStage,N.SortStage,L.FlattenStage,Z.FilterService,H.ValueFormatterService,q.StylingService,z.ScrollVisibleService,A.SortController,K.ColumnHoverService,X.ColumnAnimationService,Q.SortService,me.SelectableService,J.AutoGroupColService,oe.ImmutableService,re.ChangeDetectionService,fe.AnimationFrameService,be.TooltipManager,we.ZipContainer,ke.DetailRowCompCache].concat(ie),components:Ye,enterpriseDefaultComponents:e.enterpriseDefaultComponents.concat(je),registeredModules:e.modulesToInclude.map((function(e){return e.moduleName})),debug:!!o.debug};this.logger=new C.Logger("ag-Grid",(function(){return o.debug}));var qe=new C.Logger("Context",(function(){return $e.debug}));this.context=new E.Context($e,qe);var Ke=new S.GridCore;this.context.wireBean(Ke),this.setColumnsAndData(),this.dispatchGridReadyEvent(o),this.logger.log("initialised successfully, enterprise = "+G)}return e.setEnterpriseBeans=function(t,o){e.enterpriseBeans=t,De._.iterateObject(o,(function(t,o){return e.RowModelClasses[t]=o}))},e.setEnterpriseComponents=function(t){e.enterpriseComponents=t},e.setFrameworkBeans=function(t){e.frameworkBeans=t},e.setEnterpriseDefaultComponents=function(t){e.enterpriseDefaultComponents=t},e.addModule=function(t){var o;(o=e.modulesToInclude).push.apply(o,t)},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),o=this.context.getBean("rowModel"),i=e.getColumnDefs(),n=e.getRowData();De._.missing(i)&&De._.missing(n)||(De._.exists(i)&&t.setColumnDefs(i,"gridInitializing"),De._.exists(n)&&o.getType()===ie.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&o.setRowData(n))},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),o={type:I.Events.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(o)},e.prototype.getRowModelClass=function(t){var o=t.rowModelType;if(o="enterprise"===o?ie.Constants.ROW_MODEL_TYPE_SERVER_SIDE:o,De._.exists(o)){var i=e.RowModelClasses[o];if(De._.exists(i))return i;if("normal"===o)return console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),G.ClientSideRowModel;console.error("ag-Grid: could not find matching row model for rowModelType "+o),o===ie.Constants.ROW_MODEL_TYPE_VIEWPORT&&console.error("ag-Grid: rowModelType viewport is only available in ag-Grid Enterprise"),o===ie.Constants.ROW_MODEL_TYPE_SERVER_SIDE&&console.error("ag-Grid: rowModelType server side is only available in ag-Grid Enterprise")}return G.ClientSideRowModel},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e.enterpriseBeans=[],e.enterpriseComponents=[],e.enterpriseDefaultComponents=[],e.modulesToInclude=[],e.RowModelClasses={infinite:k.InfiniteRowModel,clientSide:G.ClientSideRowModel},e}();t.Grid=He},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(5),p=o(12),u=o(0),c=o(194),d=o(4),h=o(6),f=o(8),g=o(11),y=o(9),m=o(58),v=o(7),C=o(2),_=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===v.Constants.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new c.HeaderContainer(this.eHeaderContainer,this.eHeaderViewport,null),o=new c.HeaderContainer(this.ePinnedLeftHeader,null,p.Column.PINNED_LEFT),i=new c.HeaderContainer(this.ePinnedRightHeader,null,p.Column.PINNED_RIGHT);this.childContainers=[t,o,i],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===v.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childContainers.forEach((function(e){return e.destroy()}))},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-on",e),C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){C._.setDisplayed(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){C._.setDisplayed(this.ePinnedRightHeader,e)},t.prototype.getHeaderRowCount=function(){return 0===this.childContainers.length?0:this.childContainers[0].getRowComps().length},t.TEMPLATE='<div class="ag-header" role="presentation">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="rowgroup"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',r([g.RefSelector("ePinnedLeftHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedLeftHeader",void 0),r([g.RefSelector("ePinnedRightHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedRightHeader",void 0),r([g.RefSelector("eHeaderContainer"),s("design:type",HTMLElement)],t.prototype,"eHeaderContainer",void 0),r([g.RefSelector("eHeaderViewport"),s("design:type",HTMLElement)],t.prototype,"eHeaderViewport",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([u.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridApi"),s("design:type",y.GridApi)],t.prototype,"gridApi",void 0),r([u.Autowired("autoWidthCalculator"),s("design:type",m.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),r([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(f.Component);t.HeaderRootComp=_},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(5),p=o(10),u=o(20),c=o(0),d=o(4),h=o(6),f=o(37),g=o(7),y=o(63),m=o(26),v=o(66),C=o(269),_=o(31),w=o(199),b=o(126),E=o(93),R=o(30),S=o(9),P=o(48),O=o(124),T=o(200),A=o(24),D=o(61),x=o(18),F=o(270),M=o(89),N=o(201),L=o(8),I=o(149),k=o(86),G=o(58),W=o(38),H=o(11),V=o(151),j=o(94),B=o(2),z=function(e){function t(){var t=e.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n <div class="ag-center-cols-clipper" ref="eCenterColsClipper" role="presentation" unselectable="on">\n <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n <div class="ag-center-cols-container" ref="eCenterContainer" role="rowgroup" unselectable="on"></div>\n </div>\n </div>\n <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n </div>\n <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n </div>')||this;return t.scrollLeft=-1,t.scrollTop=-1,t.nextScrollTop=-1,t.resetLastHorizontalScrollElementDebounce=B._.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return n(t,e),t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},t.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},t.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},t.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.animationFrameService.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var o=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return o()}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},t.prototype.onCenterViewportResized=function(){B._.isVisible(this.eCenterViewport)?this.checkViewportAndScrolls():this.bodyHeight=0},t.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(t){return B._.addOrRemoveCssClass(t,"ag-selectable",e)}))},t.prototype.addRowDragListener=function(){var e=new F.RowDragFeature(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e)},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var o=!1,i=t.relatedTarget;B._.exists(i)&&!o;){var n=!!e.gridOptionsWrapper.getDomData(i,b.PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER),r=e.eBodyViewport===i||e.eBottom===i||e.eTop===i;o=n||r,i=i.parentNode}o||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},t.prototype.addAngularApplyCheck=function(){var e=this,t=!1,o=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},t.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},t.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!B._.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var o={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController)};e.dragService.addDragSource(o),e.addDestroyFunc((function(){return e.dragService.removeDragSource(o)}))}))},t.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var o=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(i){return e.addDestroyableEventListener(i,t,o)}))}))},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var o=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(i){e.addDestroyableEventListener(i,t,o)}))}))},t.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var o=B._.getTarget(t);o!==e.eBodyViewport&&o!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},t.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},t.prototype.getRowForEvent=function(e){for(var t=B._.getTarget(e);t;){var o=this.gridOptionsWrapper.getDomData(t,O.RowComp.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;t=t.parentElement}return null},t.prototype.processKeyboardEvent=function(e,t){var o=B._.getCellCompForEvent(this.gridOptionsWrapper,t);if(o){var i=o.getRenderedRow().getRowNode(),n=o.getColumn(),r=o.isEditing();if(!B._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,i,n,r))switch(e){case"keydown":!r&&this.navigationService.handlePageScrollingKey(t)||o.onKeyDown(t),this.doClipboardOperations(t,o);break;case"keypress":o.onKeyPress(t)}if("keydown"===e){var s=o.createEvent(t,h.Events.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=o.createEvent(t,h.Events.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},t.prototype.doClipboardOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case g.Constants.KEY_A:return this.onCtrlAndA(e);case g.Constants.KEY_C:return this.onCtrlAndC(e);case g.Constants.KEY_V:return this.onCtrlAndV();case g.Constants.KEY_D:return this.onCtrlAndD(e)}},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!B._.isStopPropagationForAgGrid(t)){var o=this.getRowForEvent(t),i=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,o,i):(i&&i.onMouseEvent(e,t),o&&o.onMouseEvent(e,t)),this.preventDefaultOnContextMenu(t)}},t.prototype.mockContextMenuForIPad=function(){var e=this;B._.isUserAgentIPad()&&this.eAllCellContainers.forEach((function(t){var o=new D.TouchListener(t);e.addDestroyableEventListener(o,D.TouchListener.EVENT_LONG_TAP,(function(t){var o=e.getRowForEvent(t.touchEvent),i=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,i)})),e.addDestroyFunc((function(){return o.destroy()}))}))},t.prototype.handleContextMenuMouseEvent=function(e,t,o,i){var n=o?o.getRowNode():null,r=i?i.getColumn():null,s=null;if(r){var a=e||t;i.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(r,n)}this.onContextMenu(e,t,n,r,s)},t.prototype.onContextMenu=function(e,t,o,i,n){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var r=e||t.touches[0];this.contextMenuFactory.showMenu(o,i,n,r),(e||t).preventDefault()}},t.prototype.preventDefaultOnContextMenu=function(e){var t=this.gridOptionsWrapper,o=e.which;(t.isPreventDefaultOnContextMenu()||t.isSuppressMiddleClickScrolls()&&2===o)&&e.preventDefault()},t.prototype.onCtrlAndA=function(e){var t=this.columnController,o=this.pinnedRowModel,i=this.paginationProxy,n=this.rangeController,r=g.Constants.PINNED_BOTTOM,s=g.Constants.PINNED_TOP;if(n&&i.isRowsToRender()){var a=[o.isEmpty(s),o.isEmpty(r)],l=a[0]?null:s,p=void 0,u=void 0;a[1]?(p=null,u=this.paginationProxy.getRowCount()-1):(p=r,u=o.getPinnedBottomRowData().length-1);var c=t.getAllDisplayedColumns();if(B._.missingOrEmpty(c))return;n.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:u,rowEndPinned:p,columnStart:c[0],columnEnd:B._.last(c)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()){var t=this.focusedCellController.getFocusedCell();this.clipboardService.copyToClipboard(),e.preventDefault(),t&&this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0)}},t.prototype.onCtrlAndV=function(){this.enterprise&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.enterprise&&(this.clipboardService.copyRangeDown(),e.preventDefault())},t.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var o=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=o)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var i,n=this.paginationProxy.getRow(e);do{var r=n.rowTop,s=n.rowHeight,a=this.paginationProxy.getPixelOffset(),l=n.rowTop-a,p=l+n.rowHeight,u=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=u.top+c,h=u.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),y=this.heightScaler.getScrollPositionForPixel(p-f),m=Math.min((g+y)/2,l),v=null;"top"===t?v=g:"bottom"===t?v=y:"middle"===t?v=m:d>l?v=g:h<p&&(v=y),null!==v&&(this.eBodyViewport.scrollTop=v,this.rowRenderer.redrawAfterScroll()),i=r!==n.rowTop||s!==n.rowHeight}while(i);this.animationFrameService.flushAllFrames()}}},t.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return B._.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||B._.isVerticalScrollShowing(this.eBodyViewport)},t.prototype.isHorizontalScrollShowing=function(){return B._.isHorizontalScrollShowing(this.eCenterViewport)},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize()},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,i=t?0:o,n=B._.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+o+"px)",B._.setFixedHeight(this.eHorizontalScrollBody,i),B._.setFixedHeight(this.eBodyHorizontalScrollViewport,i+(n?1:0)),B._.setFixedHeight(this.eBodyHorizontalScrollContainer,i)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},t.prototype.updateRowCount=function(){var e=(this.headerRootComp.getHeaderRowCount()+this.paginationProxy.getRowCount()).toString();this.getGui().setAttribute("aria-rowcount",e)},t.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var o,i,n=t.getLeft(),r=n+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(o=l-a-s,i=l-a):(o=a,i=s+a);var p=o>n,u=i<r,c=s<t.getActualWidth(),d=p||c,h=u,f=this.getCenterViewportScrollLeft();(d||h)&&(f=this.enableRtl?d?l-s-n:l-r:d?n:r-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},t.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},t.prototype.sizeColumnsToFit=function(e){var t=this,o=this.eBodyViewport.clientWidth;o>0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.getCenterContainer=function(){return this.eCenterContainer},t.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},t.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},t.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},t.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new C.RowContainerComponent({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new C.RowContainerComponent({eContainer:this.eFullWidthContainer}),pinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftContainer}),pinnedRight:new C.RowContainerComponent({eContainer:this.eRightContainer}),floatingTop:new C.RowContainerComponent({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftTop}),floatingTopPinnedRight:new C.RowContainerComponent({eContainer:this.eRightTop}),floatingTopFullWidth:new C.RowContainerComponent({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new C.RowContainerComponent({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new C.RowContainerComponent({eContainer:this.eRightBottom}),floatingBottomFullWith:new C.RowContainerComponent({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},B._.iterateObject(this.rowContainerComponents,(function(t,o){o&&e.getContext().wireBean(o)}))},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();B._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),B._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_HEIGHT_SCALE_CHANGED,t)},t.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},t.prototype.getRowContainers=function(){return this.rowContainerComponents},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},t.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},t.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth()),this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},t.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),i=this.pinningLeft=!this.printLayout&&o>0,n=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==i&&this.headerRootComp.setLeftVisible(i),n.forEach((function(t){return B._.setDisplayed(t,e.pinningLeft)})),i&&n.forEach((function(e){return B._.setFixedWidth(e,o)}))},t.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&t>0,i=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==o&&this.headerRootComp.setRightVisible(o),i.forEach((function(e){return B._.setDisplayed(e,o)})),o&&i.forEach((function(e){return B._.setFixedWidth(e,t)}))},t.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),B._.setFixedWidth(this.eHorizontalRightSpacer,e),B._.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),B._.setFixedWidth(this.eHorizontalLeftSpacer,t),B._.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},t.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:h.Events.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.setHeaderAndFloatingHeights=function(){var e,t,o,i=this,n=i.columnController,r=i.gridOptionsWrapper,s=i.pinnedRowModel,a=i.eTop,l=i.eBottom,p=0,u=n.getHeaderRowCount();n.isPivotMode()?(p=0,t=r.getPivotGroupHeaderHeight(),o=r.getPivotHeaderHeight()):(r.isFloatingFilter()&&u++,p=r.isFloatingFilter()?1:0,t=r.getGroupHeaderHeight(),o=r.getHeaderHeight());var c=u-(1+p);e=p*r.getFloatingFiltersHeight(),e+=c*t,e+=o,this.headerRootComp.setHeight(e);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?this.redrawRowsAfterScroll():this.animationFrameService.schedule()},t.prototype.executeFrame=function(){var e=this.scrollTop!==this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},t.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,o=t.scrollWidth,i=t.clientWidth,n=Math.floor(B._.getScrollLeft(e,this.enableRtl));n<0||n+i>o||(this.doHorizontalScroll(n),this.resetLastHorizontalScrollElementDebounce())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:h.Events.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},t.prototype.redrawRowsAfterScroll=function(){var e={type:h.Events.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},t.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},t.prototype.getCenterViewportScrollLeft=function(){return B._.getScrollLeft(this.eCenterViewport,this.enableRtl)},t.prototype.setCenterViewportScrollLeft=function(e){B._.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,o=this.eCenterViewport,i=o.clientWidth,n=o.scrollWidth;if(!(Math.abs(t)+i>n||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var r=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;B._.setScrollLeft(r,e,this.enableRtl)}},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},r([c.Autowired("alignedGridsService"),s("design:type",E.AlignedGridsService)],t.prototype,"alignedGridsService",void 0),r([c.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([c.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([c.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([c.Autowired("pinnedRowModel"),s("design:type",R.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),r([c.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([c.Autowired("animationFrameService"),s("design:type",P.AnimationFrameService)],t.prototype,"animationFrameService",void 0),r([c.Autowired("navigationService"),s("design:type",T.NavigationService)],t.prototype,"navigationService",void 0),r([c.Autowired("autoHeightCalculator"),s("design:type",I.AutoHeightCalculator)],t.prototype,"autoHeightCalculator",void 0),r([c.Autowired("columnAnimationService"),s("design:type",k.ColumnAnimationService)],t.prototype,"columnAnimationService",void 0),r([c.Autowired("autoWidthCalculator"),s("design:type",G.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),r([c.Autowired("paginationAutoPageSizeService"),s("design:type",w.PaginationAutoPageSizeService)],t.prototype,"paginationAutoPageSizeService",void 0),r([c.Autowired("beans"),s("design:type",W.Beans)],t.prototype,"beans",void 0),r([c.Autowired("paginationProxy"),s("design:type",_.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([c.Autowired("columnApi"),s("design:type",p.ColumnApi)],t.prototype,"columnApi",void 0),r([c.Autowired("gridApi"),s("design:type",S.GridApi)],t.prototype,"gridApi",void 0),r([c.Autowired("dragService"),s("design:type",f.DragService)],t.prototype,"dragService",void 0),r([c.Autowired("mouseEventService"),s("design:type",y.MouseEventService)],t.prototype,"mouseEventService",void 0),r([c.Autowired("focusedCellController"),s("design:type",m.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([c.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([c.Autowired("scrollVisibleService"),s("design:type",v.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),r([c.Autowired("valueService"),s("design:type",A.ValueService)],t.prototype,"valueService",void 0),r([c.Autowired("dragAndDropService"),s("design:type",x.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([c.Autowired("maxDivHeightScaler"),s("design:type",M.MaxDivHeightScaler)],t.prototype,"heightScaler",void 0),r([c.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),r([c.Autowired("resizeObserverService"),s("design:type",j.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),r([c.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),r([c.Optional("contextMenuFactory"),s("design:type",Object)],t.prototype,"contextMenuFactory",void 0),r([c.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),r([H.RefSelector("eBodyViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyViewport",void 0),r([H.RefSelector("eCenterContainer"),s("design:type",HTMLElement)],t.prototype,"eCenterContainer",void 0),r([H.RefSelector("eCenterViewport"),s("design:type",HTMLElement)],t.prototype,"eCenterViewport",void 0),r([H.RefSelector("eLeftContainer"),s("design:type",HTMLElement)],t.prototype,"eLeftContainer",void 0),r([H.RefSelector("eRightContainer"),s("design:type",HTMLElement)],t.prototype,"eRightContainer",void 0),r([H.RefSelector("eCenterColsClipper"),s("design:type",HTMLElement)],t.prototype,"eCenterColsClipper",void 0),r([H.RefSelector("eHorizontalScrollBody"),s("design:type",HTMLElement)],t.prototype,"eHorizontalScrollBody",void 0),r([H.RefSelector("eHorizontalLeftSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalLeftSpacer",void 0),r([H.RefSelector("eHorizontalRightSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalRightSpacer",void 0),r([H.RefSelector("eBodyHorizontalScrollViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollViewport",void 0),r([H.RefSelector("eBodyHorizontalScrollContainer"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollContainer",void 0),r([H.RefSelector("eFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eFullWidthContainer",void 0),r([H.RefSelector("eTop"),s("design:type",HTMLElement)],t.prototype,"eTop",void 0),r([H.RefSelector("eLeftTop"),s("design:type",HTMLElement)],t.prototype,"eLeftTop",void 0),r([H.RefSelector("eRightTop"),s("design:type",HTMLElement)],t.prototype,"eRightTop",void 0),r([H.RefSelector("eTopContainer"),s("design:type",HTMLElement)],t.prototype,"eTopContainer",void 0),r([H.RefSelector("eTopViewport"),s("design:type",HTMLElement)],t.prototype,"eTopViewport",void 0),r([H.RefSelector("eTopFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eTopFullWidthContainer",void 0),r([H.RefSelector("eBottom"),s("design:type",HTMLElement)],t.prototype,"eBottom",void 0),r([H.RefSelector("eLeftBottom"),s("design:type",HTMLElement)],t.prototype,"eLeftBottom",void 0),r([H.RefSelector("eRightBottom"),s("design:type",HTMLElement)],t.prototype,"eRightBottom",void 0),r([H.RefSelector("eBottomContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomContainer",void 0),r([H.RefSelector("eBottomViewport"),s("design:type",HTMLElement)],t.prototype,"eBottomViewport",void 0),r([H.RefSelector("eBottomFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomFullWidthContainer",void 0),r([H.RefSelector("headerRoot"),s("design:type",V.HeaderRootComp)],t.prototype,"headerRootComp",void 0),r([H.RefSelector("overlayWrapper"),s("design:type",N.OverlayWrapperComponent)],t.prototype,"overlayWrapper",void 0),r([c.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(L.Component);t.GridPanel=z},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=o(2),l=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))},e.prototype.updateSelectableAfterFiltering=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))},e.prototype.recurseDown=function(e,t){var o=this;e.forEach((function(e){if(e.group){var i;if(e.hasChildren()&&o.recurseDown(t(e),t),o.groupSelectsChildren){var n=a._.find(t(e),"selectable",!0);i=a._.exists(n)}else i=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(e);e.setRowSelectable(i)}}))},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("selectableService")],e)}();t.SelectableService=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(15),s=o(95),a=o(2),l=function(e){function t(t){var o=e.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=t.initialRowCount,o.cacheParams=t,o}return n(t,e),t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,i=[];this.forEachBlockInOrder((function(t){t!==e&&i.push(t)})),i.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var n=this.cacheParams.maxBlocksInCache>0,r=n?this.cacheParams.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;i.forEach((function(e,t){if(e.getState()===s.RowNodeBlock.STATE_DIRTY&&t>=a||n&&t>=r){if(e.isAnyNodeOpen(o.virtualRowCount))return;o.removeBlockFromCache(e)}}))},t.prototype.postCreateBlock=function(e){e.addEventListener(s.RowNodeBlock.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var o=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<o?(this.virtualRowCount=o,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,a._.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var o=this;void 0===t&&(t=new a.NumberSequence),this.forEachBlockInOrder((function(i){i.forEachNodeDeep(e,t,o.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var o=this;e.forEach((function(e){var i=o.blocks[e];t(i,e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),this.virtualRowCount=this.cacheParams.initialRowCount,this.maxRowFound=!1,this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,i=[],n=-1,r=!1,s=new a.NumberSequence;a._.missing(e)&&(r=!0);var l=!1;return this.forEachBlockInOrder((function(a,p){l||(r&&n+1!==p?l=!0:(n=p,a.forEachNodeShallow((function(o){var n=o===e||o===t;(r||n)&&i.push(o),n&&(r=!r)}),s,o.virtualRowCount)))})),l||r?[]:i},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,t}(r.BeanStub);t.RowNodeCache=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.inputType="radio",t.iconMap={selected:"radioButtonOn",unselected:"radioButtonOff"},t}return n(t,e),t.prototype.toggle=function(){var e=this.getNextValue();this.setValue(e)},t.prototype.getIconName=function(){var e=this.getValue()?"selected":"unselected",t=this.isReadOnly()?"ReadOnly":"";return""+this.iconMap[e]+t},t}(o(49).AgCheckbox);t.AgRadioButton=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(0),p=o(8),u=o(32),c=o(3),d=o(2),h=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.closable=!0,i.positioned=!1,i.dragStartPosition={x:0,y:0},i.position={x:0,y:0},i.size={width:void 0,height:void 0},i.config=o,i}return n(t,e),t.prototype.postConstruct=function(){var e=this,t=this.config,o=t.component,i=t.closable,n=t.hideTitleBar,r=t.title,s=t.minWidth,a=t.width,l=t.minHeight,p=t.height,u=t.centered,c=t.x,h=t.y,f=this.getGui();o&&this.setBodyComponent(o),n?d._.addCssClass(this.eTitleBar,"ag-hidden"):(r&&this.setTitle(r),this.setClosable(null!=i?i:this.closable)),this.addDestroyableEventListener(this.eTitleBar,"mousedown",(function(t){if(f.contains(t.relatedTarget)||f.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=s?s:250,this.popupParent=this.popupService.getPopupParent(),a&&this.setWidth(a),p&&this.setHeight(p),this.renderComponent&&this.renderComponent(),a&&p||this.refreshSize(),u?this.center():(c||h)&&this.offsetElement(c,h),this.positioned=!0,this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=this.popupParent.getBoundingClientRect(),o=e.e,i=e.isLeft,n=e.isTop,r=e.anywhereWithin,s=e.topBuffer,a=o.clientX-this.dragStartPosition.x,l=o.clientY-this.dragStartPosition.y,p=this.getWidth(),u=this.getHeight(),c=t.left>=o.clientX&&this.position.x<=0||t.right<=o.clientX&&t.right<=this.position.x+t.left+p;return c||(c=i?a<0&&o.clientX>this.position.x+t.left||a>0&&o.clientX<this.position.x+t.left:r?a<0&&o.clientX>this.position.x+t.left+p||a>0&&o.clientX<this.position.x+t.left:a<0&&o.clientX>this.position.x+t.left+p||a>0&&o.clientX<this.position.x+t.left+p),{movementX:a=c?0:a,movementY:l=t.top>=o.clientY&&this.position.y<=0||t.bottom<=o.clientY&&t.bottom<=this.position.y+t.top+u||n&&(l<0&&o.clientY>this.position.y+t.top+(s||0)||l>0&&o.clientY<this.position.y+t.top)||!n&&(l<0&&o.clientY>this.position.y+t.top+u||l>0&&o.clientY<this.position.y+t.top+u)?0:l}},t.prototype.refreshSize=function(){var e=this.size,t=e.width,o=e.height;t||this.setWidth(this.getGui().offsetWidth),o||this.setHeight(this.getGui().offsetHeight)},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var o=this.getGui();this.popupService.positionPopup({ePopup:o,x:e,y:t,minWidth:this.minWidth,minHeight:this.minHeight,keepWithinBounds:!0}),this.position.x=parseInt(o.style.left,10),this.position.y=parseInt(o.style.top,10)},t.prototype.getHeight=function(){return this.size.height},t.prototype.setHeight=function(e){var t=this.getGui(),o=!1;if("string"==typeof e&&-1!==e.indexOf("%"))d._.setFixedHeight(t,e),e=d._.getAbsoluteHeight(t),o=!0;else{e=Math.max(this.minHeight,e);var i=t.offsetParent;i&&i.clientHeight&&e+this.position.y>i.clientHeight&&(e=i.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,o?(t.style.maxHeight="unset",t.style.minHeight="unset"):d._.setFixedHeight(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),o=!1;if("string"==typeof e&&-1!==e.indexOf("%"))d._.setFixedWidth(t,e),e=d._.getAbsoluteWidth(t),o=!0;else{e=Math.max(this.minWidth,e);var i=t.offsetParent;i&&i.clientWidth&&e+this.position.x>i.clientWidth&&(e=i.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,o?(t.style.maxWidth="unset",t.style.minWidth="unset"):d._.setFixedWidth(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,o=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,o)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var o=this.closeButtonComp=new p.Component(t.CLOSE_BTN_TEMPLATE);this.getContext().wireBean(o),(i=o.getGui()).appendChild(d._.createIconNoSpan("close",this.gridOptionsWrapper)),this.addTitleBarButton(o),o.addDestroyableEventListener(i,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var i;(i=this.closeButtonComp.getGui()).parentElement.removeChild(i),this.closeButtonComp.destroy(),this.closeButtonComp=void 0}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var o=this.eTitleBarButtons,i=o.children,n=i.length;null==t&&(t=n),t=Math.max(0,Math.min(t,n));var r=e.getGui();d._.addCssClass(r,"ag-button"),0===t?o.insertAdjacentElement("afterbegin",r):t===n?o.insertAdjacentElement("beforeend",r):i[t-1].insertAdjacentElement("afterend",r),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return d._.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return d._.getInnerWidth(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.closeButtonComp&&(this.closeButtonComp.destroy(),this.closeButtonComp=void 0);var t=this.getGui();t&&t.offsetParent&&this.close()},t.TEMPLATE='<div class="ag-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper"></div>\n </div>',t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',r([l.Autowired("popupService"),s("design:type",u.PopupService)],t.prototype,"popupService",void 0),r([l.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("eContentWrapper"),s("design:type",HTMLElement)],t.prototype,"eContentWrapper",void 0),r([a.RefSelector("eTitleBar"),s("design:type",HTMLElement)],t.prototype,"eTitleBar",void 0),r([a.RefSelector("eTitleBarButtons"),s("design:type",HTMLElement)],t.prototype,"eTitleBarButtons",void 0),r([a.RefSelector("eTitle"),s("design:type",HTMLElement)],t.prototype,"eTitle",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(p.Component);t.AgPanel=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-text-field",o.displayTag="input",o.inputType="text",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return n(t,e),t.prototype.setValue=function(t,o){var i=e.prototype.setValue.call(this,t,o);return this.eInput.value!==t&&(this.eInput.value=t),i},t}(o(65).AgAbstractInputField);t.AgInputTextField=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(65),s=o(2),a=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-range-field",o.displayTag="input",o.inputType="range",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return n(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,o=t.min,i=t.max,n=t.step;null!=o&&this.setMinValue(o),null!=i&&this.setMaxValue(i),this.setStep(n||1)},t.prototype.addInputListeners=function(){var e=this,t=s._.isBrowserIE()?"change":"input";this.addDestroyableEventListener(this.eInput,t,(function(t){var o=t.target.value;e.setValue(o)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.step=e,this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,o){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var i=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,i},t}(r.AgAbstractInputField);t.AgInputRange=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(21),p=o(67),u=function(e){function t(t){var o=e.call(this)||this;return o.model=t,o}return n(t,e),t.prototype.init=function(){var e=this;this.updateForGridChange(),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_CHART_RANGE_SELECTION_CHANGED,(function(t){t.id&&t.id===e.model.getChartId()&&e.updateForGridChange()})),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_MOVED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PINNED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_MODEL_UPDATED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_CELL_VALUE_CHANGED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_VISIBLE,this.updateForGridChange.bind(this))},t.prototype.updateForGridChange=function(){this.model.isDetached()||(this.model.updateCellRanges(),this.model.resetColumnState(),this.model.updateData(),this.setChartRange(),this.raiseChartUpdatedEvent())},t.prototype.updateForMenuChange=function(e){this.model.updateColumnState(e),this.model.updateCellRanges(e),this.model.updateData(),this.setChartRange(),this.raiseChartUpdatedEvent()},t.prototype.getChartType=function(){return this.model.getChartType()},t.prototype.isPivotChart=function(){return this.model.isPivotChart()},t.prototype.getActivePalette=function(){return this.model.getActivePalette()},t.prototype.getPalettes=function(){return this.model.getPalettes()},t.prototype.setChartType=function(e){this.model.setChartType(e),this.raiseChartUpdatedEvent()},t.prototype.setChartWithPalette=function(e,t){this.model.setChartType(e),this.model.setActivePalette(t),this.raiseChartUpdatedEvent()},t.prototype.getColStateForMenu=function(){return{dimensionCols:this.model.getDimensionColState(),valueCols:this.model.getValueColState()}},t.prototype.isDefaultCategorySelected=function(){var e=this.model.getSelectedDimension().colId;return e&&e===p.ChartModel.DEFAULT_CATEGORY},t.prototype.setChartRange=function(){this.model.isSuppressChartRanges()||this.model.isDetached()||this.rangeController.setCellRanges(this.model.getCellRanges())},t.prototype.detachChartRange=function(){this.model.toggleDetached(),this.model.isDetached()?this.rangeController.setCellRanges([]):(this.setChartRange(),this.updateForGridChange())},t.prototype.getChartProxy=function(){return this.model.getChartProxy()},t.prototype.isActiveXYChart=function(){return[a.ChartType.Scatter,a.ChartType.Bubble].indexOf(this.getChartType())>-1&&this.isDefaultCategorySelected()},t.prototype.raiseChartUpdatedEvent=function(){var e={type:t.EVENT_CHART_MODEL_UPDATED};this.dispatchEvent(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rangeController&&this.rangeController.setCellRanges([])},t.EVENT_CHART_MODEL_UPDATED="chartModelUpdated",r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.BeanStub);t.ChartController=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t,o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.shadowBlurSlider.setTextFieldWidth(45),this.shadowXOffsetSlider.setTextFieldWidth(45),this.shadowYOffsetSlider.setTextFieldWidth(45),this.initSeriesShadow()},t.prototype.initSeriesShadow=function(){var e=this;this.shadowGroup.setTitle(this.chartTranslator.translate("shadow")).setEnabled(this.chartProxy.getShadowEnabled()).hideOpenCloseIcons(!0).hideEnabledCheckbox(!1).onEnableChange((function(t){return e.chartProxy.setShadowProperty("enabled",t)})),this.shadowColorPicker.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue("rgba(0,0,0,0.5)").onValueChange((function(t){return e.chartProxy.setShadowProperty("color",t)}));var t=function(t,o,i){t.setLabel(e.chartTranslator.translate(o)).setValue(e.chartProxy.getShadowProperty(o)).setMaxValue(i).onValueChange((function(t){return e.chartProxy.setShadowProperty(o,t)}))};t(this.shadowBlurSlider,"blur",20),t(this.shadowXOffsetSlider,"xOffset",20),t(this.shadowYOffsetSlider,"yOffset",20)},t.TEMPLATE='<div>\n <ag-group-component ref="shadowGroup">\n <ag-color-picker ref="shadowColorPicker"></ag-color-picker>\n <ag-slider ref="shadowBlurSlider"></ag-slider>\n <ag-slider ref="shadowXOffsetSlider"></ag-slider>\n <ag-slider ref="shadowYOffsetSlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("shadowGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"shadowGroup",void 0),r([a.RefSelector("shadowColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"shadowColorPicker",void 0),r([a.RefSelector("shadowBlurSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowBlurSlider",void 0),r([a.RefSelector("shadowXOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowXOffsetSlider",void 0),r([a.RefSelector("shadowYOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"shadowYOffsetSlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ShadowPanel=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=o(223),u=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t,o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initMarkers()},t.prototype.initMarkers=function(){var e=this,t=this.chartProxy instanceof p.ScatterChartProxy;this.seriesMarkersGroup.setTitle(this.chartTranslator.translate("markers")).hideEnabledCheckbox(t).setEnabled(this.chartProxy.getMarkersEnabled()).hideOpenCloseIcons(!0).onEnableChange((function(t){return e.chartProxy.setSeriesProperty("marker",t)}));var o=function(t,o,i,n){o.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getSeriesProperty(t)).setMaxValue(n).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setSeriesProperty(t,o)}))};o("markerSize",this.seriesMarkerSizeSlider,"size",30),o("markerStrokeWidth",this.seriesMarkerStrokeWidthSlider,"strokeWidth",10)},t.TEMPLATE='<div>\n <ag-group-component ref="seriesMarkersGroup">\n <ag-slider ref="seriesMarkerSizeSlider"></ag-slider>\n <ag-slider ref="seriesMarkerStrokeWidthSlider"></ag-slider>\n </ag-group-component> \n </div>',r([a.RefSelector("seriesMarkersGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesMarkersGroup",void 0),r([a.RefSelector("seriesMarkerSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesMarkerSizeSlider",void 0),r([a.RefSelector("seriesMarkerStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesMarkerStrokeWidthSlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.MarkersPanel=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(225),n=o(16),r=o(51),s=o(41),a=o(100),l=o(300),p=o(53),u=function(){function e(e){var t=this;void 0===e&&(e={}),this.background=new a.Rect,this.legend=new l.Legend,this.legendAutoPadding=new r.Padding,this.captionAutoPadding=0,this.tooltipOffset=[20,20],this.defaultTooltipClass="ag-chart-tooltip",this.onLayoutChange=function(){t.layoutPending=!0},this._title=void 0,this._subtitle=void 0,this._series=[],this._legendPosition="right",this._legendPadding=20,this._data=[],this._padding=new r.Padding(20),this.layoutCallbackId=0,this._performLayout=function(){t.layoutCallbackId=0,t.background.width=t.width,t.background.height=t.height,t.performLayout(),t.onLayoutDone&&t.onLayoutDone()},this.dataCallbackId=0,this._processData=function(){t.dataCallbackId=0,t.processData()},this.onMouseMove=function(e){var o=e.offsetX,i=e.offsetY,n=t.pickSeriesNode(o,i);if(n){var r=n.node;r instanceof s.Shape&&(t.lastPick?t.lastPick.node!==r?t.onSeriesNodePick(e,n.series,r):n.series.tooltipEnabled&&t.showTooltip(e):t.onSeriesNodePick(e,n.series,r))}else t.lastPick&&(t.lastPick.series.dehighlightNode(),t.hideTooltip(),t.lastPick=void 0)},this.onMouseOut=function(e){t.toggleTooltip(!1)},this.onClick=function(e){var o=e.offsetX,i=e.offsetY,n=t.legend.datumForPoint(o,i);if(n){var r=n.id,s=n.itemId,a=n.enabled,l=p.find(t.series,(function(e){return e.id===r}));l&&l.toggleSeriesItem(s,!a)}},this._tooltipClass=this.defaultTooltipClass;var o=new n.Group,u=this.background,c=e.document||window.document;u.fill="white",o.appendChild(u),this.scene=new i.Scene({document:c}),this.scene.root=o,this.legend.onLayoutChange=this.onLayoutChange,this.tooltipElement=c.createElement("div"),this.tooltipClass="",c.body.appendChild(this.tooltipElement),this.setupListeners(this.scene.canvas.element)}return e.prototype.destroy=function(){var e=this.tooltipElement.parentNode;e&&e.removeChild(this.tooltipElement),this.legend.onLayoutChange=void 0,this.cleanupListeners(this.scene.canvas.element),this.scene.parent=void 0},Object.defineProperty(e.prototype,"element",{get:function(){return this.scene.canvas.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.scene.parent},set:function(e){this.scene.parent=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&(t.onLayoutChange=void 0,this.scene.root.removeChild(t.node)),e&&(e.onLayoutChange=this.onLayoutChange,this.scene.root.appendChild(e.node)),this._title=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){var t=this._subtitle;t!==e&&(t&&(t.onLayoutChange=void 0,this.scene.root.removeChild(t.node)),e&&(e.onLayoutChange=this.onLayoutChange,this.scene.root.appendChild(e.node)),this._subtitle=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"series",{get:function(){return this._series},set:function(e){this._series=e},enumerable:!0,configurable:!0}),e.prototype.addSeries=function(e,t){if(void 0===t&&(t=null),this.series.indexOf(e)<0){var o=t?this.series.indexOf(t):-1;return o>=0?(this.series.splice(o,0,e),this.seriesRoot.insertBefore(e.group,t.group)):(this.series.push(e),this.seriesRoot.append(e.group)),e.chart=this,this.dataPending=!0,!0}return!1},e.prototype.removeSeries=function(e){var t=this.series.indexOf(e);return t>=0&&(this.series.splice(t,1),e.chart=void 0,this.seriesRoot.removeChild(e.group),this.dataPending=!0,!0)},e.prototype.removeAllSeries=function(){var e=this;this.series.forEach((function(t){t.chart=void 0,e.seriesRoot.removeChild(t.group)})),this._series=[],this.dataPending=!0},Object.defineProperty(e.prototype,"legendPosition",{get:function(){return this._legendPosition},set:function(e){if(this._legendPosition!==e){switch(this._legendPosition=e,this.legendAutoPadding.clear(),e){case"right":case"left":this.legend.orientation=l.Orientation.Vertical;break;case"bottom":case"top":this.legend.orientation=l.Orientation.Horizontal}this.layoutPending=!0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"legendPadding",{get:function(){return this._legendPadding},set:function(e){e=isFinite(e)?e:20,this._legendPadding!==e&&(this._legendPadding=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.series.forEach((function(t){return t.data=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding=e,this.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.scene.size},set:function(e){this.scene.size=e,this.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.scene.width},set:function(e){this.scene.width=e,this.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.scene.height},set:function(e){this.scene.height=e,this.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutPending",{get:function(){return!!this.layoutCallbackId},set:function(e){e?this.layoutCallbackId||this.dataPending||(this.layoutCallbackId=requestAnimationFrame(this._performLayout)):this.layoutCallbackId&&(cancelAnimationFrame(this.layoutCallbackId),this.layoutCallbackId=0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataPending",{get:function(){return!!this.dataCallbackId},set:function(e){this.dataCallbackId&&(clearTimeout(this.dataCallbackId),this.dataCallbackId=0),e&&(this.scene.cancelRender(),this.dataCallbackId=window.setTimeout(this._processData,0))},enumerable:!0,configurable:!0}),e.prototype.processData=function(){this.layoutPending=!1;var e=[];this.series.forEach((function(t){t.visible&&t.processData(),t.showInLegend&&t.listSeriesItems(e)})),this.legend.data=e,this.layoutPending=!0},e.prototype.positionCaptions=function(){var e=this.title,t=this.subtitle,o=!1,i=!1,n=0;if(e&&e.enabled){n+=10;var r=e.node.getBBox();if(e.node.x=this.width/2,e.node.y=n,o=!0,n+=r?r.height:0,t&&t.enabled){var s=t.node.getBBox();t.node.x=this.width/2,t.node.y=n,i=!0,n+=5+(s?s.height:0)}}e&&(e.node.visible=o),t&&(t.node.visible=i),this.captionAutoPadding!==n&&(this.captionAutoPadding=n,this.layoutPending=!0)},e.prototype.positionLegend=function(){if(this.legend.enabled&&this.legend.data.length){var e,t=this.captionAutoPadding,o=this.width,i=this.height-t,n=this.legend,r=n.group,s=this.legendPadding,a=this.legendAutoPadding;switch(r.translationX=0,r.translationY=0,this.legendPosition){case"bottom":n.performLayout(o-2*s,0),e=r.getBBox(),r.translationX=(o-e.width)/2-e.x,r.translationY=t+i-e.height-e.y-s,a.bottom!==e.height&&(a.bottom=e.height,this.layoutPending=!0);break;case"top":n.performLayout(o-2*s,0),e=r.getBBox(),r.translationX=(o-e.width)/2-e.x,r.translationY=t+s-e.y,a.top!==e.height&&(a.top=e.height,this.layoutPending=!0);break;case"left":n.performLayout(0,i-2*s),e=r.getBBox(),r.translationX=s-e.x,r.translationY=t+(i-e.height)/2-e.y,a.left!==e.width&&(a.left=e.width,this.layoutPending=!0);break;default:n.performLayout(0,i-2*s),e=r.getBBox(),r.translationX=o-e.width-e.x-s,r.translationY=t+(i-e.height)/2-e.y,a.right!==e.width&&(a.right=e.width,this.layoutPending=!0)}r.translationX=Math.floor(r.translationX),r.translationY=Math.floor(r.translationY),this.legendBBox=e}},e.prototype.setupListeners=function(e){e.addEventListener("mousemove",this.onMouseMove),e.addEventListener("mouseout",this.onMouseOut),e.addEventListener("click",this.onClick)},e.prototype.cleanupListeners=function(e){e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseout",this.onMouseMove),e.removeEventListener("click",this.onClick)},e.prototype.pickSeriesNode=function(e,t){for(var o=this.series,i=void 0,n=o.length-1;n>=0;n--){var r=o[n];if(i=r.group.pickNode(e,t))return{series:r,node:i}}},e.prototype.onSeriesNodePick=function(e,t,o){this.lastPick={series:t,node:o},t.highlightNode(o);var i=t.tooltipEnabled&&t.getTooltipHtml(o.datum);i&&this.showTooltip(e,i)},Object.defineProperty(e.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(e){this._tooltipClass!==e&&(this._tooltipClass=e,this.toggleTooltip())},enumerable:!0,configurable:!0}),e.prototype.toggleTooltip=function(e){var t=[this.defaultTooltipClass,this._tooltipClass];e&&t.push("visible"),this.tooltipElement.setAttribute("class",t.join(" "))},e.prototype.showTooltip=function(e,t){var o=this.tooltipElement,i=this.tooltipOffset,n=o.parentElement;if(void 0!==t)o.innerHTML=t;else if(!o.innerHTML)return;t&&this.toggleTooltip(!0);var r=this.tooltipRect=o.getBoundingClientRect(),s=e.pageX+i[0],a=e.pageY+i[1];r&&n&&n.parentElement&&s-pageXOffset+r.width>n.parentElement.offsetWidth&&(s-=r.width+i[0]),o.style.left=s+"px",o.style.top=a+"px"},e.prototype.hideTooltip=function(){this.toggleTooltip(!1)},e}();t.Chart=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(41),s=o(72),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new s.Path2D,t._svgPath="",t}return n(t,e),Object.defineProperty(t.prototype,"svgPath",{get:function(){return this._svgPath},set:function(e){this._svgPath!==e&&(this._svgPath=e,this.path.setFromString(e),this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t);return this.path.closedPath&&this.path.isPointInPath(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Path",t}(r.Shape);t.Path=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(227),s=o(102),a=function(e){function t(){var t=e.call(this,s.default())||this;return t._nice=!0,t.scale.clamp=!0,t}return n(t,e),Object.defineProperty(t.prototype,"nice",{get:function(){return this._nice},set:function(e){this._nice!==e&&(this._nice=e,e&&this.scale.nice&&this.scale.nice(10))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e,this.nice&&this.scale.nice&&this.scale.nice(10)},enumerable:!0,configurable:!0}),t}(r.Axis);t.NumberAxis=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(103),s=function(e){function t(){var t=new r.BandScale;return t.paddingInner=.2,t.paddingOuter=.3,e.call(this,t)||this}return n(t,e),t}(o(227).Axis);t.CategoryAxis=s},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(327),p=o(328),u=o(109),c=o(1),d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e,t){this.params=e,this.allowDragging=t,this.addDestroyableEventListener(this.globalEventService,a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnsChanged.bind(this)),this.expandGroupsByDefault=!this.params.contractColumnSelection,this.columnController.isReady()&&this.onColumnsChanged()},t.prototype.onColumnsChanged=function(){this.destroyColumnComps(),this.columnTree=this.columnController.getPrimaryColumnTree();var e=this.columnController.isPrimaryColumnGroupsPresent();this.recursivelyAddComps(this.columnTree,0,e),this.updateVisibilityOfRows()},t.prototype.destroyColumnComps=function(){a._.clearElement(this.getGui()),this.columnComps&&a._.iterateObject(this.columnComps,(function(e,t){return t.destroy()})),this.columnComps={}},t.prototype.recursivelyAddGroupComps=function(e,t,o){var i;if(!e.getColGroupDef()||!e.getColGroupDef().suppressToolPanel){if(e.isPadding())i=t;else{var n=new l.ToolPanelColumnGroupComp(e,t,this.onGroupExpanded.bind(this),this.allowDragging,this.expandGroupsByDefault);this.getContext().wireBean(n),this.getGui().appendChild(n.getGui()),i=t+1,this.columnComps[e.getId()]=n}this.recursivelyAddComps(e.getChildren(),i,o)}},t.prototype.onGroupExpanded=function(){this.updateVisibilityOfRows(),this.fireExpandedEvent()},t.prototype.fireExpandedEvent=function(){var e,t=this,o=0,i=0;(function e(n){n.forEach((function(n){if(n instanceof a.OriginalColumnGroup){var r=t.columnComps[n.getId()];r&&(r.isExpanded()?o++:i++);var s=n.getChildren();e(s)}}))})(this.columnTree),e=o>0&&i>0?u.SELECTED_STATE.INDETERMINATE:i>0?u.SELECTED_STATE.UNCHECKED:u.SELECTED_STATE.CHECKED,this.dispatchEvent({type:"groupExpanded",state:e})},t.prototype.recursivelyAddColumnComps=function(e,t,o){if(!e.getColDef()||!e.getColDef().suppressToolPanel){var i=new p.ToolPanelColumnComp(e,t,this.allowDragging,o);this.getContext().wireBean(i),this.getGui().appendChild(i.getGui()),this.columnComps[e.getId()]=i}},t.prototype.recursivelyAddComps=function(e,t,o){var i=this;e.forEach((function(e){e instanceof a.OriginalColumnGroup?i.recursivelyAddGroupComps(e,t,o):i.recursivelyAddColumnComps(e,t,o)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyColumnComps()},t.prototype.doSetExpandedAll=function(e){a._.iterateObject(this.columnComps,(function(t,o){o.isExpandable()&&o.setExpanded(e)}))},t.prototype.setFilterText=function(e){this.filterText=a._.exists(e)?e.toLowerCase():null,this.updateVisibilityOfRows()},t.prototype.updateVisibilityOfRows=function(){var e=a._.exists(this.filterText)?this.createFilterResults():null;this.recursivelySetVisibility(this.columnTree,!0,e)},t.prototype.createFilterResults=function(){var e=this,t={};return function o(i){var n=!1;return i.forEach((function(i){var r,s=!1;if(i instanceof a.OriginalColumnGroup){var l=i.getChildren();s=o(l)}if(s)r=!0;else{var p=e.columnComps[i.getId()];if(p&&e.filterText){var u=p.getDisplayName();r=null===u||u.toLowerCase().indexOf(e.filterText)>=0}else r=!!(i instanceof a.OriginalColumnGroup&&i.getOriginalParent())}t[i.getId()]=r,r&&(n=!0)})),n}(this.columnTree),t},t.prototype.recursivelySetVisibility=function(e,t,o){var i=this;e.forEach((function(e){var n=i.columnComps[e.getId()];if(n){var r=!o||o[e.getId()];n.setDisplayed(t&&r)}if(e instanceof a.OriginalColumnGroup){var s=e,l=void 0;if(n){var p=n.isExpanded();l=!!t&&p}else l=t;var u=s.getChildren();i.recursivelySetVisibility(u,l,o)}}))},t.prototype.doSetSelectedAll=function(e){if(this.columnApi.isPivotMode())a._.iterateObject(this.columnComps,(function(t,o){o.onSelectAllChanged(e)}));else{var t=this.columnApi.getPrimaryColumns();this.columnApi.setColumnsVisible(t,e)}},t.TEMPLATE='<div class="ag-primary-cols-list-panel"></div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"globalEventService",void 0),r([a.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),t}(a.Component);t.PrimaryColsListPanel=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(1),p=o(168),u=o(169),c=o(77);!function(e){e[e.CHECKED=0]="CHECKED",e[e.UNCHECKED=1]="UNCHECKED",e[e.INTERMEDIATE=2]="INTERMEDIATE"}(a||(a={}));var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.updateUiVisibility=function(){},t.prototype.createBodyTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();return'<div ref="ag-filter-loading" class="loading-filter ag-hidden">'+e("loadingOoo","Loading...")+'</div>\n <div>\n <div class="ag-filter-header-container" role="presentation">\n <div class="ag-input-wrapper" id="ag-mini-filter" role="presentation">\n <input ref="eMiniFilter" class="ag-filter-filter" type="text" placeholder="'+e("searchOoo","Search...")+'"/>\n </div>\n <label ref="eSelectAllContainer" class="ag-set-filter-item">\n <div ref="eSelectAll" class="ag-filter-checkbox"></div><span class="ag-filter-value">('+e("selectAll","Select All")+')</span>\n </label>\n </div>\n <div ref="eSetFilterList" class="ag-set-filter-list" role="presentation"></div>\n </div>'},t.prototype.resetUiToDefaults=function(){this.setMiniFilter(null),this.valueModel.setModel(null,!0),this.selectEverything()},t.prototype.setModelIntoUi=function(e){if(this.resetUiToDefaults(),e){var t=e instanceof Array?e:e.values;this.valueModel.setModel(t),this.updateSelectAll(),this.virtualList.refresh()}},t.prototype.getModelFromUi=function(){var e=this.valueModel.getModel();return e?this.gridOptionsWrapper.isEnableOldSetFilterModel()?e:{values:e,filterType:"set"}:null},t.prototype.areModelsEqual=function(e,t){return!1},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.setFilterParams=t,this.eCheckedIcon=l._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.setFilterParams.column),this.eUncheckedIcon=l._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.setFilterParams.column),this.eIndeterminateCheckedIcon=l._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.setFilterParams.column),this.initialiseFilterBodyUi(),t.syncValuesLikeExcel&&this.rowModel.getType()===l.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&!t.values&&this.setupSyncValuesLikeExcel()},t.prototype.resetFilterValuesAndReapplyModel=function(){var e=this.getModel();this.resetFilterValues(),e&&this.setModel(e)},t.prototype.setupSyncValuesLikeExcel=function(){var e=this,t=this.setFilterParams.column;this.addDestroyableEventListener(this.eventService,l.Events.EVENT_ROW_DATA_UPDATED,(function(){e.resetFilterValuesAndReapplyModel()})),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_CELL_VALUE_CHANGED,(function(o){o.column===t&&e.resetFilterValuesAndReapplyModel()}))},t.prototype.updateCheckboxIcon=function(){var e;switch(l._.clearElement(this.eSelectAll),this.selectAllState){case a.INTERMEDIATE:e=this.eIndeterminateCheckedIcon;break;case a.CHECKED:e=this.eCheckedIcon;break;case a.UNCHECKED:e=this.eUncheckedIcon;break;default:e=this.eCheckedIcon}this.eSelectAll.appendChild(e)},t.prototype.setLoading=function(e){l._.setDisplayed(this.eFilterLoading,e)},t.prototype.initialiseFilterBodyUi=function(){var e=this;this.virtualList=new c.VirtualList,this.getContext().wireBean(this.virtualList);var t=this.getRefElement("eSetFilterList");t&&t.appendChild(this.virtualList.getGui()),l._.exists(this.setFilterParams.cellHeight)&&this.virtualList.setRowHeight(this.setFilterParams.cellHeight),this.virtualList.setComponentCreator(this.createSetListItem.bind(this)),this.valueModel=new p.SetValueModel(this.setFilterParams.colDef,this.setFilterParams.rowModel,this.setFilterParams.valueGetter,this.setFilterParams.doesRowPassOtherFilter,this.setFilterParams.suppressSorting,(function(t,o){return e.setFilterValues(t,!o,!!o,o)}),this.setLoading.bind(this),this.valueFormatterService,this.setFilterParams.column),this.virtualList.setModel(new h(this.valueModel)),l._.setDisplayed(this.getGui().querySelector("#ag-mini-filter"),!this.setFilterParams.suppressMiniFilter),this.eMiniFilter.value=this.valueModel.getMiniFilter(),this.addDestroyableEventListener(this.eMiniFilter,"input",this.onMiniFilterInput.bind(this)),this.addDestroyableEventListener(this.eMiniFilter,"keypress",this.onMiniFilterKeyPress.bind(this)),this.updateCheckboxIcon(),this.addDestroyableEventListener(this.eSelectAllContainer,"click",this.onSelectAll.bind(this)),this.updateSelectAll(),this.setFilterParams.suppressSelectAll&&l._.setDisplayed(this.eSelectAllContainer,!1),this.virtualList.refresh()},t.prototype.createSetListItem=function(e){var t=this,o=new u.SetFilterListItem(e,this.setFilterParams.column);return this.getContext().wireBean(o),o.setSelected(this.valueModel.isValueSelected(e)),o.addEventListener(u.SetFilterListItem.EVENT_SELECTED,(function(){t.onItemSelected(e,o.isSelected())})),o},t.prototype.afterGuiAttached=function(e){this.virtualList.refresh(),this.eMiniFilter.focus()},t.prototype.applyModel=function(){var t=this,o=e.prototype.applyModel.call(this),i=this.getModel();return i?(this.appliedModelValuesMapped={},i.values.forEach((function(e){return t.appliedModelValuesMapped[e]=!0}))):this.appliedModelValuesMapped=void 0,o},t.prototype.doesFilterPass=function(e){if(!this.appliedModelValuesMapped)return!0;var t=this.setFilterParams.valueGetter(e.node);if(this.setFilterParams.colDef.keyCreator&&(t=this.setFilterParams.colDef.keyCreator({value:t})),t=l._.makeNull(t),Array.isArray(t)){for(var o=0;o<t.length;o++)if(this.appliedModelValuesMapped[t[o]])return!0;return!1}return!!this.appliedModelValuesMapped[t]},t.prototype.onNewRowsLoaded=function(){var e=this.valueModel.getValuesType(),t=e===p.SetFilterModelValuesType.PROVIDED_CB||e===p.SetFilterModelValuesType.PROVIDED_LIST,o=this.isNewRowsActionKeep();if(!o||!t){var i=!this.getModel();this.valueModel.refreshAfterNewRowsLoaded(o,i),this.updateSelectAll(),this.virtualList.refresh(),this.applyModel()}},t.prototype.setFilterValues=function(e,t,o,i){var n=this;void 0===t&&(t=!1),void 0===o&&(o=!0),this.valueModel.onFilterValuesReady((function(){var r=n.setFilterParams&&"keep"===n.setFilterParams.newRowsAction;n.valueModel.setValuesType(p.SetFilterModelValuesType.PROVIDED_LIST),n.valueModel.refreshValues(e,r,t),n.updateSelectAll(),(i||e).forEach((function(e){return n.valueModel.selectValue(e)})),n.virtualList.refresh(),o&&n.onUiChanged()}))},t.prototype.resetFilterValues=function(){this.valueModel.setValuesType(p.SetFilterModelValuesType.NOT_PROVIDED),this.onNewRowsLoaded()},t.prototype.onAnyFilterChanged=function(){this.valueModel.refreshAfterAnyFilterChanged(),this.virtualList.refresh()},t.prototype.updateSelectAll=function(){this.valueModel.isEverythingSelected()?this.selectAllState=a.CHECKED:this.valueModel.isNothingSelected()?this.selectAllState=a.UNCHECKED:this.selectAllState=a.INTERMEDIATE,this.updateCheckboxIcon()},t.prototype.onMiniFilterKeyPress=function(e){l._.isKeyPressed(e,l.Constants.KEY_ENTER)&&this.onEnterKeyOnMiniFilter()},t.prototype.onEnterKeyOnMiniFilter=function(){this.valueModel.selectAllFromMiniFilter(),this.virtualList.refresh(),this.updateSelectAll(),this.onUiChanged()},t.prototype.onMiniFilterInput=function(){this.valueModel.setMiniFilter(this.eMiniFilter.value)&&this.virtualList.refresh(),this.updateSelectAll()},t.prototype.onSelectAll=function(e){e.preventDefault(),l._.addAgGridEventPath(e),this.selectAllState===a.CHECKED?this.selectAllState=a.UNCHECKED:this.selectAllState=a.CHECKED,this.doSelectAll()},t.prototype.doSelectAll=function(){this.selectAllState===a.CHECKED?this.valueModel.selectAllUsingMiniFilter():this.valueModel.selectNothingUsingMiniFilter(),this.virtualList.refresh(),this.onUiChanged(),this.updateSelectAll()},t.prototype.onItemSelected=function(e,t){t?this.valueModel.selectValue(e):this.valueModel.unselectValue(e),this.updateSelectAll(),this.onUiChanged()},t.prototype.setMiniFilter=function(e){this.valueModel.setMiniFilter(e),this.eMiniFilter.value=this.valueModel.getMiniFilter()},t.prototype.getMiniFilter=function(){return this.valueModel.getMiniFilter()},t.prototype.selectEverything=function(){this.valueModel.selectAllUsingMiniFilter(),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.selectNothing=function(){this.valueModel.selectNothingUsingMiniFilter(),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.unselectValue=function(e){this.valueModel.unselectValue(e),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.selectValue=function(e){this.valueModel.selectValue(e),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.isValueSelected=function(e){return this.valueModel.isValueSelected(e)},t.prototype.isEverythingSelected=function(){return this.valueModel.isEverythingSelected()},t.prototype.isNothingSelected=function(){return this.valueModel.isNothingSelected()},t.prototype.getUniqueValueCount=function(){return this.valueModel.getUniqueValueCount()},t.prototype.getUniqueValue=function(e){return this.valueModel.getUniqueValue(e)},r([l.RefSelector("eSelectAll"),s("design:type",HTMLInputElement)],t.prototype,"eSelectAll",void 0),r([l.RefSelector("eSelectAllContainer"),s("design:type",HTMLElement)],t.prototype,"eSelectAllContainer",void 0),r([l.RefSelector("eMiniFilter"),s("design:type",HTMLInputElement)],t.prototype,"eMiniFilter",void 0),r([l.RefSelector("ag-filter-loading"),s("design:type",HTMLInputElement)],t.prototype,"eFilterLoading",void 0),r([l.Autowired("valueFormatterService"),s("design:type",l.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),r([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),t}(l.ProvidedFilter);t.SetFilter=d;var h=function(){function e(e){this.model=e}return e.prototype.getRowCount=function(){return this.model.getDisplayedValueCount()},e.prototype.getRow=function(e){return this.model.getDisplayedValue(e)},e}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1);!function(e){e[e.PROVIDED_LIST=0]="PROVIDED_LIST",e[e.PROVIDED_CB=1]="PROVIDED_CB",e[e.NOT_PROVIDED=2]="NOT_PROVIDED"}(i=t.SetFilterModelValuesType||(t.SetFilterModelValuesType={}));var r=function(){function e(e,t,o,r,s,a,l,p,u){this.suppressSorting=s,this.colDef=e,this.valueGetter=o,this.doesRowPassOtherFilters=r,this.modelUpdatedFunc=a,this.isLoadingFunc=l,this.valueFormatterService=p,this.column=u,t.getType()===n.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=t),this.filterParams=this.colDef.filterParams?this.colDef.filterParams:{},n._.exists(this.filterParams)&&n._.exists(this.filterParams.values)?(this.valuesType=Array.isArray(this.filterParams.values)?i.PROVIDED_LIST:i.PROVIDED_CB,this.showingAvailableOnly=!0!==this.filterParams.suppressRemoveEntries):(this.valuesType=i.NOT_PROVIDED,this.showingAvailableOnly=!0),this.createAllUniqueValues(),this.createAvailableUniqueValues(),this.displayedValues=this.availableUniqueValues,this.miniFilter=null,this.selectedValuesMap={},this.selectAllUsingMiniFilter(),this.formatter=this.filterParams.textFormatter?this.filterParams.textFormatter:n.TextFilter.DEFAULT_FORMATTER}return e.prototype.refreshAfterNewRowsLoaded=function(e,t){this.createAllUniqueValues(),this.refreshSelection(e,t)},e.prototype.refreshValues=function(e,t,o){this.setValues(e),this.refreshSelection(t,o)},e.prototype.refreshSelection=function(e,t){this.createAvailableUniqueValues();var o=Object.keys(this.selectedValuesMap);this.selectedValuesMap={},this.processMiniFilter(),e?this.setModel(o,t):this.selectAllUsingMiniFilter()},e.prototype.refreshAfterAnyFilterChanged=function(){this.showingAvailableOnly&&(this.createAvailableUniqueValues(),this.processMiniFilter())},e.prototype.createAllUniqueValues=function(){if(this.areValuesSync()){var e=this.extractSyncValuesToUse();this.setValues(e),this.filterValuesPromise=n.Promise.resolve([])}else{this.filterValuesExternalPromise=n.Promise.external(),this.filterValuesPromise=this.filterValuesExternalPromise.promise,this.isLoadingFunc(!0),this.setValues([]);var t=this.filterParams.values,o={success:this.onAsyncValuesLoaded.bind(this),colDef:this.colDef};window.setTimeout((function(){return t(o)}),0)}},e.prototype.onAsyncValuesLoaded=function(e){this.modelUpdatedFunc(e),this.isLoadingFunc(!1),this.filterValuesExternalPromise.resolve(e)},e.prototype.areValuesSync=function(){return this.valuesType==i.PROVIDED_LIST||this.valuesType==i.NOT_PROVIDED},e.prototype.setValuesType=function(e){this.valuesType=e},e.prototype.getValuesType=function(){return this.valuesType},e.prototype.setValues=function(e){this.allUniqueValues=e,this.suppressSorting||this.sortValues(this.allUniqueValues)},e.prototype.extractSyncValuesToUse=function(){var e;if(this.valuesType==i.PROVIDED_LIST)e=Array.isArray(this.filterParams.values)?n._.toStrings(this.filterParams.values):this.allUniqueValues;else{if(this.valuesType==i.PROVIDED_CB)throw Error("ag-grid: Error extracting values to use. We should not extract the values synchronously when using a callback for the filterParams.values");var t=this.getUniqueValues(!1);e=n._.toStrings(t)}return e},e.prototype.createAvailableUniqueValues=function(){if(this.showingAvailableOnly&&this.valuesType!=i.PROVIDED_LIST&&this.valuesType!=i.PROVIDED_CB){var e=this.getUniqueValues(!0);this.availableUniqueValues=n._.toStrings(e),this.sortValues(this.availableUniqueValues)}else this.availableUniqueValues=this.allUniqueValues},e.prototype.sortValues=function(e){this.filterParams&&this.filterParams.comparator?e.sort(this.filterParams.comparator):this.colDef.comparator?e.sort(this.colDef.comparator):e.sort(n._.defaultComparator)},e.prototype.getUniqueValues=function(e){var t=this,o={},i=[];if(!this.clientSideRowModel)return console.error("ag-Grid: Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values"),[];function n(e){o.hasOwnProperty(e)||(i.push(e),o[e]=1)}return this.clientSideRowModel.forEachLeafNode((function(o){if(o.data){var i=t.valueGetter(o);if(t.colDef.keyCreator&&(i=t.colDef.keyCreator({value:i})),""!==i&&void 0!==i||(i=null),!e||t.doesRowPassOtherFilters(o))if(null!=i&&Array.isArray(i))for(var r=0;r<i.length;r++)n(i[r]);else n(i)}})),i},e.prototype.setMiniFilter=function(e){return e=n._.makeNull(e),this.miniFilter!==e&&(this.miniFilter=e,this.processMiniFilter(),!0)},e.prototype.getMiniFilter=function(){return this.miniFilter},e.prototype.processMiniFilter=function(){if(null!==this.miniFilter){this.displayedValues=[];for(var e=this.formatter(this.miniFilter).toUpperCase(),t=function(t){return null!=t&&t.toUpperCase().indexOf(e)>=0},o=0,i=this.availableUniqueValues.length;o<i;o++){var n=this.availableUniqueValues[o];if(n){var r=this.formatter(n.toString()),s=this.valueFormatterService.formatValue(this.column,null,null,r);(t(r)||t(s))&&this.displayedValues.push(n)}}}else this.displayedValues=this.availableUniqueValues},e.prototype.getDisplayedValueCount=function(){return this.displayedValues.length},e.prototype.getDisplayedValue=function(e){return this.displayedValues[e]},e.prototype.selectAllUsingMiniFilter=function(){this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.selectOn(this.displayedValues):this.selectOn(this.allUniqueValues)},e.prototype.selectOn=function(e){for(var t=e.length,o=0;o<t;o++){var i=e[o],n=this.valueToKey(i);this.selectedValuesMap[n]=null}this.selectedValuesCount=Object.keys(this.selectedValuesMap).length},e.prototype.valueToKey=function(e){return null===e?"___NULL___":e},e.prototype.keyToValue=function(e){return"___NULL___"===e?null:e},e.prototype.isFilterActive=function(){return this.allUniqueValues.length!==this.selectedValuesCount},e.prototype.selectNothingUsingMiniFilter=function(){var e=this;this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.displayedValues.forEach((function(t){return e.unselectValue(t)})):this.selectNothing()},e.prototype.selectNothing=function(){this.selectedValuesMap={},this.selectedValuesCount=0},e.prototype.getUniqueValueCount=function(){return this.allUniqueValues.length},e.prototype.getUniqueValue=function(e){return this.allUniqueValues[e]},e.prototype.unselectValue=function(e){var t=this.valueToKey(e);void 0!==this.selectedValuesMap[t]&&(delete this.selectedValuesMap[t],this.selectedValuesCount--)},e.prototype.selectAllFromMiniFilter=function(){this.selectNothing(),this.selectAllUsingMiniFilter()},e.prototype.selectValue=function(e){var t=this.valueToKey(e);void 0===this.selectedValuesMap[t]&&(this.selectedValuesMap[t]=null,this.selectedValuesCount++)},e.prototype.isValueSelected=function(e){var t=this.valueToKey(e);return void 0!==this.selectedValuesMap[t]},e.prototype.isEverythingSelected=function(){var e=this;return this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.displayedValues.filter((function(t){return e.isValueSelected(t)})).length===this.displayedValues.length:this.allUniqueValues.length===this.selectedValuesCount},e.prototype.isNothingSelected=function(){var e=this;return this.filterParams.selectAllOnMiniFilter&&this.miniFilter?0===this.displayedValues.filter((function(t){return e.isValueSelected(t)})).length:0===this.selectedValuesCount},e.prototype.getModel=function(){var e=this;if(!this.isFilterActive())return null;var t=[];return n._.iterateObject(this.selectedValuesMap,(function(o){var i=e.keyToValue(o);t.push(i)})),t},e.prototype.setModel=function(e,t){var o=this;void 0===t&&(t=!1),this.areValuesSync()?this.setSyncModel(e,t):this.filterValuesExternalPromise.promise.then((function(i){o.setSyncModel(e,t),o.modelUpdatedFunc(i,e)}))},e.prototype.setSyncModel=function(e,t){if(void 0===t&&(t=!1),e&&!t){this.selectNothingUsingMiniFilter();for(var o=0;o<e.length;o++){var i=e[o],n=this.keyToValue(i);this.allUniqueValues.indexOf(n)>=0&&this.selectValue(n)}}else this.selectAllUsingMiniFilter()},e.prototype.onFilterValuesReady=function(e){this.filterValuesPromise.firstOneOnly(e)},e}();t.SetValueModel=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(o,i){var n=e.call(this,t.TEMPLATE)||this;return n.selected=!0,n.value=o,n.column=i,n}return n(t,e),t.prototype.useCellRenderer=function(e,t,o){var i=this.userComponentFactory.newCellRenderer(e.filterParams,o);if(null!=i)a._.bindCellRendererToHtmlElement(i,t);else if(null==o.valueFormatted&&null==o.value){var n=this.gridOptionsWrapper.getLocaleTextFunc();t.innerText="("+n("blanks","Blanks")+")"}else t.innerText=null!=o.valueFormatted?o.valueFormatted:o.value;return i},t.prototype.init=function(){var e=this;this.eCheckedIcon=a._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=a._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eCheckbox=this.queryForHtmlElement(".ag-filter-checkbox"),this.eClickableArea=this.getGui(),this.updateCheckboxIcon(),this.render(),this.addDestroyableEventListener(this.eClickableArea,"click",(function(o){o.preventDefault(),a._.addAgGridEventPath(o),e.selected=!e.selected,e.updateCheckboxIcon();var i={type:t.EVENT_SELECTED};return e.dispatchEvent(i)}))},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e){this.selected=e,this.updateCheckboxIcon()},t.prototype.updateCheckboxIcon=function(){a._.clearElement(this.eCheckbox),this.isSelected()?this.eCheckbox.appendChild(this.eCheckedIcon):this.eCheckbox.appendChild(this.eUncheckedIcon)},t.prototype.render=function(){var e=this,t=this.queryForHtmlElement(".ag-filter-value"),o=this.valueFormatterService.formatValue(this.column,null,null,this.value),i=this.column.getColDef(),n={value:this.value,valueFormatted:o,api:this.gridOptionsWrapper.getApi()},r=this.useCellRenderer(i,t,n);r&&r.then((function(t){t&&t.destroy&&e.addDestroyFunc(t.destroy.bind(t))}))},t.EVENT_SELECTED="selected",t.TEMPLATE='<label class="ag-set-filter-item">\n <div class="ag-filter-checkbox"></div>\n <span class="ag-filter-value"></span>\n </label>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("valueFormatterService"),s("design:type",a.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),r([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.SetFilterListItem=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(171),p=o(77),u=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.selectionConfirmed=!1,o.searchString="",o}return n(t,e),t.prototype.init=function(e){if(this.params=e,this.selectedValue=e.value,this.originalSelectedValue=e.value,this.focusAfterAttached=e.cellStartedEdit,this.eValue.appendChild(a._.createIconNoSpan("smallDown",this.gridOptionsWrapper)),this.virtualList=new p.VirtualList,this.getContext().wireBean(this.virtualList),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),a._.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.renderSelectedValue(),a._.missing(e.values))console.warn("ag-Grid: richSelectCellEditor requires values for it to work");else{var t=e.values;this.virtualList.setModel({getRowCount:function(){return t.length},getRow:function(e){return t[e]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this));var o=this.virtualList.getGui();this.addDestroyableEventListener(o,"click",this.onClick.bind(this)),this.addDestroyableEventListener(o,"mousemove",this.onMouseMove.bind(this)),this.clearSearchString=a._.debounce(this.clearSearchString,300),a._.exists(e.charPress)&&this.searchText(e.charPress)}},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case a.Constants.KEY_ENTER:this.onEnterKeyDown();break;case a.Constants.KEY_DOWN:case a.Constants.KEY_UP:this.onNavigationKeyPressed(e,t);break;default:this.searchText(e)}},t.prototype.onEnterKeyDown=function(){this.selectionConfirmed=!0,this.params.stopEditing()},t.prototype.onNavigationKeyPressed=function(e,t){e.stopPropagation();var o=this.params.values.indexOf(this.selectedValue),i=t===a.Constants.KEY_UP?o-1:o+1;if(i>=0&&i<this.params.values.length){var n=this.params.values[i];this.setSelectedValue(n)}},t.prototype.searchText=function(e){if("string"!=typeof e){if(!a._.isCharacterKey(e))return;e=e.key}this.searchString+=e,this.runSearch(),this.clearSearchString()},t.prototype.runSearch=function(){var e=a._.fuzzySuggestions(this.searchString,this.params.values,!0,!0);e.length&&this.setSelectedValue(e[0])},t.prototype.clearSearchString=function(){this.searchString=""},t.prototype.renderSelectedValue=function(){var e=this,t=this.params.formatValue(this.selectedValue),o=this.eValue,i={value:this.selectedValue,valueFormatted:t,api:this.gridOptionsWrapper.getApi()},n=this.userComponentFactory.newCellRenderer(this.params,i);null!=n?a._.bindCellRendererToHtmlElement(n,o):o.innerText=null!=i.valueFormatted?i.valueFormatted:i.value,n?n.then((function(t){t&&t.destroy&&e.addDestroyFunc((function(){return t.destroy()}))})):a._.exists(this.selectedValue)?o.innerHTML=t:a._.clearElement(o)},t.prototype.setSelectedValue=function(e){if(this.selectedValue!==e){var t=this.params.values.indexOf(e);t>=0&&(this.selectedValue=e,this.virtualList.ensureIndexVisible(t),this.virtualList.refresh())}},t.prototype.createRowComponent=function(e){var t=this.params.formatValue(e),o=new l.RichSelectRow(this.params);return this.getContext().wireBean(o),o.setState(e,t,e===this.selectedValue),o},t.prototype.onMouseMove=function(e){var t=this.virtualList.getGui().getBoundingClientRect(),o=this.virtualList.getScrollTop(),i=e.clientY-t.top+o,n=Math.floor(i/this.virtualList.getRowHeight()),r=this.params.values[n];void 0!==r&&this.setSelectedValue(r)},t.prototype.onClick=function(){this.selectionConfirmed=!0,this.params.stopEditing()},t.prototype.afterGuiAttached=function(){var e=this.params.values.indexOf(this.selectedValue);this.virtualList.refresh(),e>=0&&this.virtualList.ensureIndexVisible(e),this.virtualList.refresh(),this.focusAfterAttached&&this.getGui().focus()},t.prototype.getValue=function(){return this.selectionConfirmed?this.selectedValue:this.originalSelectedValue},t.TEMPLATE='<div class="ag-rich-select" tabindex="0">\n <div ref="eValue" class="ag-rich-select-value"></div>\n <div ref="eList" class="ag-rich-select-list"></div>\n </div>',r([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),r([a.RefSelector("eList"),s("design:type",HTMLElement)],t.prototype,"eList",void 0),t}(a.PopupComponent);t.RichSelectCellEditor=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t){var o=e.call(this,'<div class="ag-rich-select-row"></div>')||this;return o.params=t,o}return n(t,e),t.prototype.setState=function(e,t,o){this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),a._.addOrRemoveCssClass(this.getGui(),"ag-rich-select-row-selected",o)},t.prototype.populateWithoutRenderer=function(e,t){var o=null!=t?t:e;a._.exists(o)&&""!==o?this.getGui().textContent=o.toString():this.getGui().innerHTML=" "},t.prototype.populateWithRenderer=function(e,t){var o=this,i={value:e,valueFormatted:t,api:this.gridOptionsWrapper.getApi()},n=this.userComponentFactory.newCellRenderer(this.params,i);return null!=n?a._.bindCellRendererToHtmlElement(n,this.getGui()):this.getGui().innerText=null!=i.valueFormatted?i.valueFormatted:i.value,!!n&&(n.then((function(e){e&&e.destroy&&o.addDestroyFunc(e.destroy.bind(e))})),!0)},r([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.Component);t.RichSelectRow=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.createTemplate=function(){return'<div class="ag-pivot-mode-panel">\n <ag-checkbox ref="cbPivotMode" class="ag-pivot-mode-select"></ag-checkbox>\n </div>'},t.prototype.init=function(){this.setTemplate(this.createTemplate()),this.cbPivotMode.setValue(this.columnController.isPivotMode());var e=this.gridOptionsWrapper.getLocaleTextFunc();this.cbPivotMode.setLabel(e("pivotMode","Pivot Mode")),this.addDestroyableEventListener(this.cbPivotMode,a.AgCheckbox.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},t.prototype.onBtPivotMode=function(){var e=this.cbPivotMode.getValue();if(e!==this.columnController.isPivotMode()){this.columnController.setPivotMode(e,"toolPanelUi");var t=this.gridOptionsWrapper.getApi();t&&t.refreshHeader()}},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();this.cbPivotMode.setValue(e)},r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("cbPivotMode"),s("design:type",a.AgCheckbox)],t.prototype,"cbPivotMode",void 0),r([a.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.PivotModePanel=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(40),p=o(77),u=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.popupShowing=!1,r.valueColumn=n,r.column=t,r.dragSourceDropTarget=o,r.ghost=i,r}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle.appendChild(a._.createIconNoSpan("columnDrag",this.gridOptionsWrapper)),this.btRemove.appendChild(a._.createIconNoSpan("cancel",this.gridOptionsWrapper)),this.displayName=this.columnController.getDisplayNameForColumn(this.column,"columnDrop"),this.setupComponents(),this.ghost||this.gridOptionsWrapper.isFunctionsReadOnly()||this.addDragSource()},t.prototype.addDragSource=function(){var e=this,t={type:a.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemCallback:function(){return e.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(t)}))},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&a._.addCssClass(this.getGui(),"ag-column-drop-cell-ghost"),this.valueColumn&&!this.gridOptionsWrapper.isFunctionsReadOnly()&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},t.prototype.setupRemove=function(){var e=this;a._.setDisplayed(this.btRemove,!this.gridOptionsWrapper.isFunctionsReadOnly()),this.addDestroyableEventListener(this.btRemove,"click",(function(o){var i={type:t.EVENT_COLUMN_REMOVE};e.dispatchEvent(i),o.stopPropagation()}));var o=new a.TouchListener(this.btRemove);this.addDestroyableEventListener(o,a.TouchListener.EVENT_TAP,(function(o){var i={type:t.EVENT_COLUMN_REMOVE};e.dispatchEvent(i)})),this.addDestroyFunc(o.destroy.bind(o))},t.prototype.setTextValue=function(){var e;if(this.valueColumn){var t=this.column.getAggFunc(),o="string"==typeof t?t:"agg";e=this.gridOptionsWrapper.getLocaleTextFunc()(o,o)+"("+this.displayName+")"}else e=this.displayName;var i=a._.escape(e);this.eText.innerHTML=i},t.prototype.onShowAggFuncSelection=function(){var e=this;if(!this.popupShowing){this.popupShowing=!0;var t=new p.VirtualList,o=this.aggFuncService.getFuncNames(this.column);t.setModel({getRow:function(e){return o[e]},getRowCount:function(){return o.length}}),this.getContext().wireBean(t);var i=a._.loadTemplate('<div class="ag-select-agg-func-popup"></div>');i.style.top="0px",i.style.left="0px",i.appendChild(t.getGui()),i.style.width=this.getGui().clientWidth+"px";var n=this.popupService.addAsModalPopup(i,!0,(function(){t.destroy(),e.popupShowing=!1}));t.setComponentCreator(this.createAggSelect.bind(this,n)),this.popupService.positionPopupUnderComponent({type:"aggFuncSelect",eventSource:this.getGui(),ePopup:i,keepWithinBounds:!0,column:this.column}),t.refresh()}},t.prototype.createAggSelect=function(e,t){var o=this,i=this.gridOptionsWrapper.getLocaleTextFunc(),n=t.toString(),r=i(n,n);return new c((function(){if(e(),o.gridOptionsWrapper.isFunctionsPassive()){var i={type:a.Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,columns:[o.column],aggFunc:t,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(i)}else o.columnController.setColumnAggFunc(o.column,t,"toolPanelDragAndDrop")}),r)},t.EVENT_COLUMN_REMOVE="columnRemove",t.TEMPLATE='<span class="ag-column-drop-cell">\n <span ref="eDragHandle" class="ag-column-drag"></span>\n <span ref="eText" class="ag-column-drop-cell-text"></span>\n <span ref="btRemove" class="ag-column-drop-cell-button"></span>\n </span>',r([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("popupService"),s("design:type",a.PopupService)],t.prototype,"popupService",void 0),r([a.Autowired("aggFuncService"),s("design:type",l.AggFuncService)],t.prototype,"aggFuncService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),r([a.RefSelector("eDragHandle"),s("design:type",HTMLElement)],t.prototype,"eDragHandle",void 0),r([a.RefSelector("btRemove"),s("design:type",HTMLElement)],t.prototype,"btRemove",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.DropZoneColumnComp=u;var c=function(e){function t(t,o){var i=e.call(this,'<div class="ag-select-agg-func-item"/>')||this;return i.getGui().innerText=o,i.value=o,i.addGuiEventListener("click",t),i}return n(t,e),t}(a.Component)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t){return e.call(this,t,!0,"values")||this}return n(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("valueColumnsEmptyMessage","Drag here to aggregate"),i=t("values","Values");e.prototype.init.call(this,{dragAndDropIcon:a.DragAndDropService.ICON_AGGREGATE,icon:a._.createIconNoSpan("valuePanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?a.DragAndDropService.ICON_AGGREGATE:a.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowValue(),o=!e.isValueActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:a.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setValueColumns(e,"toolPanelUi")},t.prototype.getExistingColumns=function(){return this.columnController.getValueColumns()},r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("loggerFactory"),s("design:type",a.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"passBeansUp",null),t}(o(79).BaseDropZonePanel);t.ValuesDropZonePanel=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.buttonComps=[],o}return n(t,e),t.prototype.setToolPanelDefs=function(e){e.forEach(this.addButtonComp.bind(this))},t.prototype.setActiveButton=function(e){this.buttonComps.forEach((function(t){t.setSelected(e===t.getToolPanelId())}))},t.prototype.addButtonComp=function(e){var o=this,i=new p(e);this.getContext().wireBean(i),this.buttonComps.push(i),this.getGui().appendChild(i.getGui()),i.addEventListener(p.EVENT_TOGGLE_BUTTON_CLICKED,(function(){o.dispatchEvent({type:t.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:e.id})}))},t.prototype.clearButtons=function(){this.buttonComps&&this.buttonComps.forEach((function(e){return e.destroy()})),a._.clearElement(this.getGui()),this.buttonComps.length=0},t.prototype.destroy=function(){this.clearButtons(),e.prototype.destroy.call(this)},t.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",t.TEMPLATE='<div class="ag-side-buttons"></div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.Component);t.SideBarButtonsComp=l;var p=function(e){function t(t){var o=e.call(this)||this;return o.toolPanelDef=t,o}return n(t,e),t.prototype.getToolPanelId=function(){return this.toolPanelDef.id},t.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e),this.eToggleButton.querySelector("div").insertAdjacentElement("afterbegin",a._.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsWrapper)),this.addDestroyableEventListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},t.prototype.createTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.toolPanelDef;return'<div class="ag-side-button">\n <button type="button" ref="eToggleButton">\n <div></div>\n <span>'+e(t.labelKey,t.labelDefault)+"</span>\n </button>\n </div>"},t.prototype.onButtonPressed=function(){this.dispatchEvent({type:t.EVENT_TOGGLE_BUTTON_CLICKED})},t.prototype.setSelected=function(e){this.addOrRemoveCssClass("ag-selected",e)},t.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("eToggleButton"),s("design:type",HTMLButtonElement)],t.prototype,"eToggleButton",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return e.call(this,'<div class="ag-tool-panel-horizontal-resize"></div>')||this}return n(t,e),t.prototype.setElementToResize=function(e){this.elementToResize=e},t.prototype.postConstruct=function(){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizing.bind(this)});this.addDestroyFunc(e)},t.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth},t.prototype.onResizing=function(e){var t=this.gridOptionsWrapper.isEnableRtl()?-1:1,o=Math.max(100,Math.floor(this.startingWidth-e*t));this.elementToResize.style.width=o+"px"},r([a.Autowired("horizontalResizeService"),s("design:type",a.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.HorizontalResizeComp=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n,r,s,a,l,p,u,c=o(1),d=o(364),h=o(365),f=o(366),g=o(368),y=o(369),m=o(372),v=o(373),C=o(235),_=o(236),w=o(237),b=function(){i={base:0},n=[],r=[{name:"Calibri",size:14,colorTheme:"1",family:2,scheme:"minor"}],s=[{patternType:"none"},{patternType:"gray125"}],a=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],l=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],p=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],u=[{builtinId:0,name:"normal",xfId:0}]};t.convertLegacyColor=function(e){return null==e?e:("#"===e.charAt(0)&&(e=e.substr(1)),6===e.length?"00"+e:e)};var E=function(e){var o,l,u,d,h,f,g=e.id,y=e.alignment,m=e.borders,v=e.font,b=e.interior,E=e.numberFormat,R=e.protection,S=0,P=0,O=0,T=0;g&&null==i[g]&&(b&&(u=(l=(o=b).pattern)?{None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"}[l]||l:"none",d=t.convertLegacyColor(o.color),h=t.convertLegacyColor(o.patternColor),-1===(f=c._.findIndex(s,(function(e){var t=e.patternType,o=e.fgRgb,i=e.bgRgb;return t==u&&o==d&&i==h})))&&(f=s.length,s.push({patternType:u,fgRgb:d,bgRgb:h})),S=f),m&&(P=function(e){var o,i,n,r,s,l,p,u,d=e.borderBottom,h=e.borderTop,f=e.borderLeft,g=e.borderRight;f&&(n=w.convertLegacyBorder(f.lineStyle,f.weight),p=t.convertLegacyColor(f.color)),g&&(r=w.convertLegacyBorder(g.lineStyle,g.weight),u=t.convertLegacyColor(g.color)),d&&(o=w.convertLegacyBorder(d.lineStyle,d.weight),s=t.convertLegacyColor(d.color)),h&&(i=w.convertLegacyBorder(h.lineStyle,h.weight),l=t.convertLegacyColor(h.color));var y=c._.findIndex(a,(function(e){var t=e.left,a=e.right,c=e.top,d=e.bottom;if(!t&&(n||p))return!1;if(!a&&(r||u))return!1;if(!c&&(i||l))return!1;if(!d&&(o||s))return!1;var h=t||{},f=h.style,g=h.color,y=a||{},m=y.style,v=y.color,C=c||{},_=C.style,w=C.color,b=d||{},E=b.style,R=b.color;return f==n&&g==p&&m==r&&v==u&&_==i&&w==l&&E==o&&R==s}));return-1===y&&(y=a.length,a.push({left:{style:n,color:p},right:{style:r,color:u},top:{style:i,color:l},bottom:{style:o,color:s},diagonal:{style:void 0,color:void 0}})),y}(m)),v&&(O=function(e){var o=e.fontName,i=e.color,n=e.size,s=e.bold,a=e.italic,l=e.outline,p=e.shadow,u=e.strikeThrough,d=e.underline,h=e.family,f=o?c._.utf8_encode(o):o,g=t.convertLegacyColor(i),y=_.getFamilyId(h),m=c._.findIndex(r,(function(e){return e.name==f&&e.color==g&&e.size==n&&e.bold==s&&e.italic==a&&e.outline==l&&e.shadow==p&&e.strike==u&&e.underline==d&&e.family==y}));return-1===m&&(m=r.length,r.push({name:f,color:g,size:n,bold:s,italic:a,outline:l,shadow:p,strike:u,underline:d,family:y})),m}(v)),E&&(T=function(e){if(e=c._.utf8_encode(e),C.numberFormatMap[e])return C.numberFormatMap[e];var t=c._.findIndex(n,(function(t){return t.formatCode===e}));return-1===t?(t=n.length+164,n.push({formatCode:e,numFmtId:t})):t=n[t].numFmtId,t}(E.format)),i[g]=p.length,p.push({alignment:y,borderId:P||0,fillId:S||0,fontId:O||0,numFmtId:T||0,protection:R,xfId:0}))},R={getTemplate:function(){var e=d.default.getTemplate(n),t=h.default.getTemplate(r),o=f.default.getTemplate(s),i=g.default.getTemplate(a),c=y.default.getTemplate(l),C=m.default.getTemplate(p),_=v.default.getTemplate(u);return b(),{name:"styleSheet",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[e,t,o,i,c,C,_,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}};t.getStyleId=function(e){return i[e]||0},t.registerStyles=function(e){b(),e.forEach(E)},t.default=R},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","onGridReady","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","processChartOptions","getChartToolbarItems"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.PropertyKeys=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION"}(t.CellRangeType||(t.CellRangeType={}))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o){var i=this;this.alive=!0,e.newDateComponent(t).then((function(e){i.alive?(i.dateComp=e,o.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),i.tempValue&&e.setDate(i.tempValue)):e.destroy&&e.destroy()}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp&&this.dateComp.destroy&&this.dateComp.destroy()},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e}();t.DateCompWrapper=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions?e.filterOptions:t,this.mapCustomOptions(),this.selectDefaultItem(e)},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){"string"!=typeof t&&(t.displayKey?t.displayName?t.test?e.customFilterOptions[t.displayKey]=t:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("ag-Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}();t.OptionsFactory=i},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.isPopup=function(){return!0},t}(o(131).TextCellEditor);t.PopupTextCellEditor=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.isPopup=function(){return!0},t}(o(136).SelectCellEditor);t.PopupSelectCellEditor=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(47),s=o(7),a=o(2),l=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.textarea=document.createElement("textarea"),this.textarea.maxLength=e.maxLength?e.maxLength:"200",this.textarea.cols=e.cols?e.cols:"60",this.textarea.rows=e.rows?e.rows:"10",a._.exists(e.value)&&(this.textarea.value=e.value.toString()),this.getGui().querySelector(".ag-large-textarea").appendChild(this.textarea),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==s.Constants.KEY_LEFT||t==s.Constants.KEY_UP||t==s.Constants.KEY_RIGHT||t==s.Constants.KEY_DOWN||e.shiftKey&&t==s.Constants.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.textarea.focus()},t.prototype.getValue=function(){return this.params.parseValue(this.textarea.value)},t.TEMPLATE='<div class="ag-large-text" tabindex="0"><div class="ag-large-textarea"></div></div>',t}(r.PopupComponent);t.LargeTextCellEditor=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),s=o(33),a=o(181),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,o=this.conditionToString(t.condition1),i=this.conditionToString(t.condition2);return o+" "+t.operator+" "+i}var n=e;return this.conditionToString(n)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.setLastTypeFromModel=function(e){var t;e&&(t=e.operator?e.condition1:e,this.lastType=t.type)},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new a.OptionsFactory,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.prototype.isTypeEditable=function(e){return!this.doesFilterHaveHiddenInput(e)&&e&&e!=s.SimpleFilter.IN_RANGE&&e!=s.SimpleFilter.EMPTY},t}(r.Component);t.SimpleFloatingFilter=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(2),p=o(7),u=o(88),c=o(0),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.postConstruct=function(){this.setTemplate('<div class="ag-input-wrapper" role="presentation">\n <input ref="eFloatingFilterText" class="ag-floating-filter-input">\n </div>')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){if(!this.isEventFromFloatingFilter(t)){this.setLastTypeFromModel(e);var o=this.getTextFromModel(e);this.eFloatingFilterText.value=o;var i=this.canWeEditAfterModelFromParentFilter(e);this.setEditable(i)}},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=u.ProvidedFilter.isUseApplyButton(this.params.filterParams);var o=u.ProvidedFilter.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=l._.debounce(this.syncUpWithParentFilter.bind(this),o);this.addDestroyableEventListener(this.eFloatingFilterText,"input",i),this.addDestroyableEventListener(this.eFloatingFilterText,"keypress",i),this.addDestroyableEventListener(this.eFloatingFilterText,"keydown",i);var n=t.column.getDefinition();n.filterParams&&n.filterParams.filterOptions&&1===n.filterParams.filterOptions.length&&"inRange"===n.filterParams.filterOptions[0]&&(this.eFloatingFilterText.disabled=!0)},t.prototype.syncUpWithParentFilter=function(e){var t=this,o=this.eFloatingFilterText.value,i=l._.isKeyPressed(e,p.Constants.KEY_ENTER);this.applyActive&&!i||this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType(),o)}))},t.prototype.setEditable=function(e){this.eFloatingFilterText.disabled=!e},r([a.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),r([c.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(185).SimpleFloatingFilter);t.TextInputFloatingFilter=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(12),s=o(0),a=o(3),l=function(){function e(){this.cacheItems=[]}return e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(e,t,o){if(this.active&&e.detail){var i=this.getCacheItem(e,!0);switch(t){case r.Column.PINNED_LEFT:this.destroyFullWidthRow(i.left),i.left=o;break;case r.Column.PINNED_RIGHT:this.destroyFullWidthRow(i.right),i.right=o;break;default:this.destroyFullWidthRow(i.center),i.center=o}this.cacheItems.sort((function(e,t){return t.lastAccessedTime-e.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}else this.destroyFullWidthRow(o)},e.prototype.getCacheItem=function(e,t){var o;void 0===t&&(t=!1);for(var i=0;i<this.cacheItems.length;i++){var n=this.cacheItems[i];if(n.rowNode===e){o=n;break}}return!o&&t&&(o={rowNode:e},this.cacheItems.push(o)),o&&this.stampCacheItem(o),o},e.prototype.stampCacheItem=function(e){e.lastAccessedTime=(new Date).getTime()},e.prototype.destroyFullWidthRow=function(e){e&&e.destroy&&e.destroy()},e.prototype.purgeCache=function(e){for(var t=e;t<this.cacheItems.length;t++){var o=this.cacheItems[t];this.destroyFullWidthRow(o.center),this.destroyFullWidthRow(o.left),this.destroyFullWidthRow(o.right)}this.cacheItems.length>e&&(this.cacheItems.length=e)},e.prototype.get=function(e,t){if(e.detail){var o,i=this.getCacheItem(e);if(i)switch(t){case r.Column.PINNED_LEFT:i.left&&(o=i.left,i.left=void 0);break;case r.Column.PINNED_RIGHT:i.right&&(o=i.right,i.right=void 0);break;default:i.center&&(o=i.center,i.center=void 0)}return o}},e.prototype.destroy=function(){this.purgeCache(0)},i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([s.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),i([s.Bean("detailRowCompCache")],e)}();t.DetailRowCompCache=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(12),u=o(18),c=o(10),d=o(5),h=o(91),f=o(3),g=o(144),y=o(92),m=o(9),v=o(27),C=o(4),_=o(19),w=o(49),b=o(11),E=o(263),R=o(6),S=o(64),P=o(38),O=o(146),T=o(61),A=o(2),D=function(e){function t(o,i,n){var r=e.call(this,t.TEMPLATE)||this;return r.column=o,r.dragSourceDropTarget=i,r.pinned=n,r}return n(t,e),t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),o=e.sortable,i=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,o,i),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(o),this.addColumnHoverListener(),this.addFeature(this.getContext(),new O.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.column,p.Column.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(this.getContext(),new E.SelectAllFeature(this.cbSelectAll,this.column));var n=new y.SetLeftFeature(this.column,this.getGui(),this.beans);n.init(),this.addDestroyFunc(n.destroy.bind(n)),this.addAttributes(),g.CssClassApplier.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},t.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,R.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);A._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();A._.addCssClass(t,"ag-header-cell-sortable")}},t.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();A._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},t.prototype.appendHeaderComp=function(e,t,o){var i=this,n={column:this.column,displayName:e,enableSorting:t,enableMenu:o,showColumnMenu:function(e){i.gridApi.showColumnMenuAfterButtonClick(i.column,e)},progressSort:function(e){i.sortController.progressSort(i.column,!!e,"uiColumnSorted")},setSort:function(e,t){i.sortController.setSortForColumn(i.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},r=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(n).then(r)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.onColumnMovingChanged=function(){this.column.isMoving()?A._.addCssClass(this.getGui(),"ag-header-cell-moving"):A._.removeCssClass(this.getGui(),"ag-header-cell-moving")},t.prototype.setupMove=function(e,t){var o=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||this.column.getColDef().lockPosition)&&e){var i={type:u.DragSourceType.HeaderCell,eElement:e,dragItemCallback:function(){return o.createDragItem()},dragItemName:t,dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return o.column.setMoving(!0,"uiColumnMoved")},dragStopped:function(){return o.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(i)}))}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var o=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(o),!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")}));var i=new T.TouchListener(this.eResize);this.addDestroyableEventListener(i,T.TouchListener.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")})),this.addDestroyFunc(i.destroy.bind(i))}}else A._.removeFromParent(this.eResize)},t.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),i=this.resizeStartWidth+o;this.columnController.setColumnWidth(this.column,i,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&A._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,A._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},t.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==p.Column.PINNED_LEFT&&(t*=-1):this.pinned===p.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on"><div ref="eResize" class="ag-header-cell-resize" role="presentation"></div><ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',r([l.Autowired("gridOptionsWrapper"),s("design:type",f.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("dragAndDropService"),s("design:type",u.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([l.Autowired("columnController"),s("design:type",d.ColumnController)],t.prototype,"columnController",void 0),r([l.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),r([l.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([l.Autowired("gridApi"),s("design:type",m.GridApi)],t.prototype,"gridApi",void 0),r([l.Autowired("columnApi"),s("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("sortController"),s("design:type",v.SortController)],t.prototype,"sortController",void 0),r([l.Autowired("eventService"),s("design:type",C.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("userComponentFactory"),s("design:type",_.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([l.Autowired("columnHoverService"),s("design:type",S.ColumnHoverService)],t.prototype,"columnHoverService",void 0),r([l.Autowired("beans"),s("design:type",P.Beans)],t.prototype,"beans",void 0),r([b.RefSelector("eResize"),s("design:type",HTMLElement)],t.prototype,"eResize",void 0),r([b.RefSelector("cbSelectAll"),s("design:type",w.AgCheckbox)],t.prototype,"cbSelectAll",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.HeaderWrapperComp=D},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(12),a=o(3),l=o(5),p=o(57),u=o(7),c=o(2),d=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,o=[],i=this.gridOptionsWrapper.isTreeData(),n=this.gridOptionsWrapper.isGroupMultiAutoColumn();return i&&n&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),n=!1),n?e.forEach((function(e,i){o.push(t.createOneAutoGroupColumn(e,i))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.createOneAutoGroupColumn=function(e,o){var i,n=this.generateDefaultColDef(e);i=e?u.Constants.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var r=this.gridOptionsWrapper.getAutoGroupColumnDef();c._.mergeDeep(n,r),(n=this.columnFactory.mergeColDefs(n)).colId=i,this.gridOptionsWrapper.isTreeData()||c._.missing(n.field)&&c._.missing(n.valueGetter)&&c._.missing(n.filterValueGetter)&&(n.filter=!1),o&&o>0&&(n.headerCheckboxSelection=!1);var a=new s.Column(n,null,i,!0);return this.context.wireBean(a),a},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),o={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework)||(o.cellRenderer="agGroupCellRenderer"),e){var i=e.getColDef();c._.assign(o,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:i.headerValueGetter}),i.cellRenderer&&c._.assign(o,{cellRendererParams:{innerRenderer:i.cellRenderer,innerRendererParams:i.cellRendererParams}}),o.showRowGroup=e.getColId()}else o.showRowGroup=!0;return o},e.GROUP_AUTO_COLUMN_BUNDLE_ID=u.Constants.GROUP_AUTO_COLUMN_ID,i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnFactory"),n("design:type",p.ColumnFactory)],e.prototype,"columnFactory",void 0),t=i([r.Bean("autoGroupColService")],e)}();t.AutoGroupColService=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(7),a=o(3),l=o(2),p=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(l._.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!l._.missing(t)){var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),n=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return l._.exists(e)&&e.forEach((function(e,r){var s=t(e),a=i[s];n&&(n[s]=r),a?(a.data!==e&&o.update.push(e),i[s]=void 0):o.add.push(e)})),l._.iterateObject(i,(function(e,t){t&&o.remove.push(t.data)})),[o,n]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("immutableService")],e)}();t.ImmutableService=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned","chartDataType"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","sortable","resizable","singleClickEdit"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.ColDefUtil=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];return t.forEach((function(t){var i=e.DEFAULT_BY_KEY[t];i?o.push(i):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault}},e.parseComponents=function(t){var o=[];return t.forEach((function(t){var i=null;if("string"==typeof t){var n=e.DEFAULT_BY_KEY[t];if(!n)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));i=n}else i=t;o.push(i)})),o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}();t.SideBarDefParser=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=function(){function e(){this.existingKeys=[]}return e.prototype.addExistingKeys=function(e){this.existingKeys=this.existingKeys.concat(e)},e.prototype.getUniqueKey=function(e,t){e=i._.toStringOrNull(e);for(var o=0;;){var n=void 0;if(e?(n=e,0!==o&&(n+="_"+o)):t?(n=t,0!==o&&(n+="_"+o)):n=""+o,this.existingKeys.indexOf(n)<0)return this.existingKeys.push(n),n;o++}},e}();t.ColumnKeyCreator=n},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(3),s=o(0),a=o(18),l=o(5),p=o(4),u=o(6),c=o(195),d=o(196),h=o(12),f=o(66),g=o(2),y=function(){function e(e,t,o){this.headerRowComps=[],this.eContainer=e,this.pinned=o,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(u.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===h.Column.PINNED_LEFT,t=this.pinned===h.Column.PINNED_RIGHT,o=this.columnController,i=this.gridOptionsWrapper.isEnableRtl();if(e||t){var n=o[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(i&&e||!i&&t)&&(n+=this.scrollWidth),g._.setFixedWidth(this.eContainer,n)}},e.prototype.destroy=function(){this.removeHeaderRowComps()},e.prototype.getRowComps=function(){return this.headerRowComps},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,o=new d.BodyDropTarget(this.pinned,t);this.context.wireBean(o),o.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){e.destroy()})),this.headerRowComps.length=0,g._.clearElement(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var o=t!==e-1?c.HeaderRowType.COLUMN_GROUP:c.HeaderRowType.COLUMN,i=new c.HeaderRowComp(t,o,this.pinned,this.dropTarget);this.context.wireBean(i),this.headerRowComps.push(i),i.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(i.getGui())}this.gridOptionsWrapper.isFloatingFilter()&&!this.columnController.isPivotMode()&&(i=new c.HeaderRowComp(e,c.HeaderRowType.FLOATING_FILTER,this.pinned,this.dropTarget),this.context.wireBean(i),this.headerRowComps.push(i),i.getGui().setAttribute("aria-rowindex",this.headerRowComps.length.toString()),this.eContainer.appendChild(i.getGui()))},i([s.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),n("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([s.Autowired("dragAndDropService"),n("design:type",a.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("scrollVisibleService"),n("design:type",f.ScrollVisibleService)],e.prototype,"scrollVisibleService",void 0),i([s.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.HeaderContainer=y},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(8),p=o(0),u=o(3),c=o(5),d=o(12),h=o(4),f=o(6),g=o(188),y=o(266),m=o(17),v=o(9),C=o(7),_=o(2),w=o(267);!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(a=t.HeaderRowType||(t.HeaderRowType={}));var b=function(e){function t(t,o,i,n){var r=e.call(this,'<div class="ag-header-row" role="row"/>')||this;return r.headerComps={},r.dept=t,r.type=o,r.pinned=i,r.dropTarget=n,r}return n(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(o){e(t.headerComps[o])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var o=t.headerComps[e];t.getGui().removeChild(o.getGui()),o.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,o=this.columnController.getHeaderRowCount(),i=[],n=0;this.columnController.isPivotMode()?(n=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&o++,n=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var r=o-(1+n),s=0;s<r;s++)i.push(e);for(i.push(t),s=0;s<n;s++)i.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=i[s];this.getGui().style.top=a+"px",this.getGui().style.height=i[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT?_._.missing(this.pinned)?this.columnController.getContainerWidth(d.Column.PINNED_RIGHT)+this.columnController.getContainerWidth(d.Column.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDept=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT){if(_._.missing(this.pinned)){var t=[];return[d.Column.PINNED_LEFT,null,d.Column.PINNED_RIGHT].forEach((function(o){var i=e.columnController.getVirtualHeaderGroupRow(o,e.type==a.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(i)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==a.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e,t=this,o=Object.keys(this.headerComps),i=this.getItemsAtDept(),n=this.gridOptionsWrapper.isEnsureDomOrder();i.forEach((function(i){if(!i.isEmptyGroup()){var r,s,a=i.getUniqueId(),l=t.getGui();o.indexOf(a)>=0?(_._.removeFromArray(o,a),s=(r=t.headerComps[a]).getGui(),n&&_._.ensureDomOrder(l,s,e),e=s):(r=t.createHeaderComp(i),t.headerComps[a]=r,s=r.getGui(),n?_._.insertWithDomOrder(l,s,e):l.appendChild(s),e=s)}})),this.removeAndDestroyChildComponents(o)},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case a.COLUMN:t=new g.HeaderWrapperComp(e,this.dropTarget,this.pinned);break;case a.COLUMN_GROUP:t=new y.HeaderGroupWrapperComp(e,this.dropTarget,this.pinned);break;case a.FLOATING_FILTER:t=new w.FloatingFilterWrapper(e)}return this.getContext().wireBean(t),t},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("filterManager"),s("design:type",m.FilterManager)],t.prototype,"filterManager",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(l.Component);t.HeaderRowComp=b},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(18),a=o(0),l=o(197),p=o(12),u=o(198),c=o(5);!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(r||(r={}));var d=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case p.Column.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case p.Column.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===s.DragSourceType.HeaderCell||e===s.DragSourceType.ToolPanel},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new l.MoveColumnController(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new u.BodyDropPivotTarget(this.pinned);this.context.wireBean(e),this.dropListeners[r.ColumnMove]=this.moveColumnController,this.dropListeners[r.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===s.DragSourceType.ToolPanel?r.Pivot:r.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("dragAndDropService"),n("design:type",s.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([a.Autowired("columnController"),n("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.BodyDropTarget=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(14),a=o(5),l=o(12),p=o(2),u=o(18),c=o(3),d=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!p._.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?u.DragAndDropService.ICON_PINNED:u.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===u.DragSourceType.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,i=t.filter((function(e){return o[e.getId()]}));this.setColumnsVisible(i,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.dragItemCallback().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,o){if(void 0===o&&(o="api"),e){var i=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnController.setColumnsVisible(i,t,o)}},e.prototype.setColumnsPinned=function(e,t,o){if(void 0===o&&(o="api"),e){var i=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnController.setColumnsPinned(i,t,o)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){return this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e),this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),o=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var o=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!p._.missing(e.hDirection)){var i=this.normaliseX(e.x);t||this.checkCenterForScrolling(i);var n=this.normaliseDirection(e.hDirection),r=e.dragSource.type,s=e.dragSource.dragItemCallback().columns;s=s.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==o.pinned})),this.attemptMoveColumns(r,s,n,i,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case u.HDirection.Left:return u.HDirection.Right;case u.HDirection.Right:return u.HDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),o=[];e.forEach((function(e){return o.push(t.indexOf(e))})),p._.sortNumberArray(o);var i=o[0];return p._.last(o)-i!=o.length-1?null:i},e.prototype.attemptMoveColumns=function(e,t,o,i,n){var r=o===u.HDirection.Left,s=o===u.HDirection.Right,a=this.calculateValidMoves(t,s,i),l=this.calculateOldIndex(t);if(0!==a.length){var p=a[0],c=null!==l&&!n;if(e==u.DragSourceType.HeaderCell&&(c=null!==l),c){if(r&&p>=l)return;if(s&&p<=l)return}for(var d=0;d<a.length;d++){var h=a[d];if(this.columnController.doesMovePassRules(t,h))return void this.columnController.moveColumns(t,h,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,o){var i,n=this.columnController.getDisplayedColumns(this.pinned),r=this.columnController.getAllGridColumns(),s=function(t){return e.indexOf(t)<0},a=n.filter((function(t){return e.indexOf(t)>=0})),l=n.filter(s),p=r.filter(s),u=0,c=o;if(t){var d=0;a.forEach((function(e){return d+=e.getActualWidth()})),c-=d}if(c>0){for(var h=0;h<l.length&&!((c-=l[h].getActualWidth())<0);h++)u++;t&&u++}if(u>0){var f=l[u-1];i=p.indexOf(f)+1}else i=0;var g=[i];if(t)for(var y=i+1,m=r.length-1;y<=m;)g.push(y),y++;else{y=i,m=r.length-1;for(var v=r[y];y<=m&&this.isColumnHidden(n,v);)y++,g.push(y),v=r[y];for(y=i-1;y>=0;)g.push(y),y--}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?l.Column.PINNED_LEFT:l.Column.PINNED_RIGHT;this.setColumnsPinned(o,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},i([r.Autowired("loggerFactory"),n("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("dragAndDropService"),n("design:type",u.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.MoveColumnController=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(18),s=o(5),a=o(0),l=o(3),p=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly()||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?r.DragAndDropService.ICON_PINNED:r.DragAndDropService.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},i([a.Autowired("columnController"),n("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.BodyDropPivotTarget=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(15),l=o(4),p=o(6),u=o(0),c=o(3),d=o(66),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,p.Events.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var o=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},r([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("scrollVisibleService"),s("design:type",d.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),r([u.Bean("paginationAutoPageSizeService")],t)}(a.BeanStub);t.PaginationAutoPageSizeService=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(7),a=o(63),l=o(31),p=o(26),u=o(48),c=o(5),d=o(3),h=o(2),f=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,o=e.altKey,i=e.ctrlKey,n=this.mouseEventService.getCellPositionForEvent(e);if(!n)return!1;var r=!1;switch(t){case s.Constants.KEY_PAGE_HOME:case s.Constants.KEY_PAGE_END:i||o||(this.onHomeOrEndKey(t),r=!0);break;case s.Constants.KEY_LEFT:case s.Constants.KEY_RIGHT:i&&!o&&(this.onCtrlLeftOrRight(t,n),r=!0);break;case s.Constants.KEY_UP:case s.Constants.KEY_DOWN:i&&!o&&(this.onCtrlUpOrDown(t,n),r=!0);break;case s.Constants.KEY_PAGE_DOWN:i||o||(this.onPageDown(n),r=!0);break;case s.Constants.KEY_PAGE_UP:i||o||(this.onPageUp(n),r=!0)}return r&&e.preventDefault(),r},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var i=this.paginationProxy.getPixelOffset(),n=t.top+o,r=this.paginationProxy.getRowIndexAtPixel(n+i),s=this.paginationProxy.getRow(e.rowIndex).rowTop+o-i,a=this.paginationProxy.getRowIndexAtPixel(s+i),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),r>l&&(r=l),this.navigateTo(r,"top",null,a,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var i=this.paginationProxy.getPixelOffset(),n=t.top,r=this.paginationProxy.getRowIndexAtPixel(n+i),s=this.paginationProxy.getRow(e.rowIndex),a=s.rowTop+s.rowHeight-o-i,l=this.paginationProxy.getRowIndexAtPixel(a+i),p=this.paginationProxy.getPageFirstRow();l<p&&(l=p),r<p&&(r=p),this.navigateTo(r,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,o,i,n){if(h._.exists(o)&&this.gridPanel.ensureColumnVisible(o),h._.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusedCellController.setFocusedCell(i,n,null,!0),this.rangeController){var r={rowIndex:i,rowPinned:null,column:n};this.rangeController.setRangeToCell(r)}},e.prototype.onCtrlUpOrDown=function(e,t){var o=e===s.Constants.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(o,null,t.column,o,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var o=e===s.Constants.KEY_LEFT,i=this.columnController.getAllDisplayedColumns(),n=o?i[0]:h._.last(i);this.navigateTo(t.rowIndex,null,n,t.rowIndex,n)},e.prototype.onHomeOrEndKey=function(e){var t=e===s.Constants.KEY_PAGE_HOME,o=this.columnController.getAllDisplayedColumns(),i=t?o[0]:h._.last(o),n=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(n,null,i,n,i)},i([r.Autowired("mouseEventService"),n("design:type",a.MouseEventService)],e.prototype,"mouseEventService",void 0),i([r.Autowired("paginationProxy"),n("design:type",l.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([r.Autowired("focusedCellController"),n("design:type",p.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([r.Autowired("animationFrameService"),n("design:type",u.AnimationFrameService)],e.prototype,"animationFrameService",void 0),i([r.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([r.Autowired("columnController"),n("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("navigationService")],e)}();t.NavigationService=f},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(3),p=o(0),u=o(8),c=o(19),d=o(11),h=o(2);!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(a||(a={}));var f=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===a.Loading),h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===a.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this;this.setWrapperTypeClass(a.Loading),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newLoadingOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setDisplayed(!0)},t.prototype.showNoRowsOverlay=function(){var e=this;this.setWrapperTypeClass(a.NoRows),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newNoRowsOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setDisplayed(!0)},t.prototype.destroyActiveOverlay=function(){this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,h._.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyActiveOverlay()},t.TEMPLATE='<div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',r([p.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("userComponentFactory"),s("design:type",c.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([d.RefSelector("eOverlayWrapper"),s("design:type",HTMLElement)],t.prototype,"eOverlayWrapper",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(u.Component);t.OverlayWrapperComponent=f},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(10),p=o(5),u=o(20),c=o(17),d=o(4),h=o(152),f=o(14),g=o(32),y=o(0),m=o(26),v=o(8),C=o(9),_=o(11),w=o(6),b=o(94),E=o(192),R=o(2),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var o=this.enterprise?t.TEMPLATE_ENTERPRISE:t.TEMPLATE_NORMAL;if(this.setTemplate(o),[this.gridApi,this.filterManager,this.rowRenderer,this.popupService].forEach((function(t){return t.registerGridCore(e)})),this.enterprise&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.setSideBarVisible(this.gridOptionsWrapper.isShowToolPanel()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var i=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(i)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var n=this.gridPanel.getGui();this.addDestroyableEventListener(n,"focusin",(function(){R._.addCssClass(n,"ag-has-focus")})),this.addDestroyableEventListener(n,"focusout",(function(e){n.contains(e.relatedTarget)||R._.removeCssClass(n,"ag-has-focus")}));var r=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}))},t.prototype.onGridSizeChanged=function(){var e={type:w.Events.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";R._.addCssClass(this.getGui(),e)},t.prototype.getRootGui=function(){return this.getGui()},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.setSideBar=function(e){this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=E.SideBarDefParser.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui())},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.logger.log("Grid DOM removed")},t.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t="top"),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var o=this.rowModel.getRowCount(),i="function"==typeof e,n=-1,r=0;r<o;r++){var s=this.rowModel.getRow(r);if(i){if(e(s)){n=r;break}}else if(e===s||e===s.data){n=r;break}}n>=0&&this.gridPanel.ensureIndexVisible(n,t)},t.TEMPLATE_NORMAL='<div class="ag-root-wrapper">\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n </div>\n <ag-pagination></ag-pagination>\n </div>',t.TEMPLATE_ENTERPRISE='<div class="ag-root-wrapper">\n <ag-grid-header-drop-zones></ag-grid-header-drop-zones>\n <div ref="rootWrapperBody" class="ag-root-wrapper-body">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n <ag-side-bar ref="sideBar"></ag-side-bar>\n </div>\n <ag-status-bar ref="statusBar"></ag-status-bar>\n <ag-pagination></ag-pagination>\n <ag-watermark></ag-watermark>\n </div>',r([y.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),r([y.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),r([y.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([y.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([y.Autowired("resizeObserverService"),s("design:type",b.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),r([y.Autowired("columnController"),s("design:type",p.ColumnController)],t.prototype,"columnController",void 0),r([y.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([y.Autowired("filterManager"),s("design:type",c.FilterManager)],t.prototype,"filterManager",void 0),r([y.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([y.Autowired("eGridDiv"),s("design:type",HTMLElement)],t.prototype,"eGridDiv",void 0),r([y.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([y.Autowired("quickFilterOnScope"),s("design:type",String)],t.prototype,"quickFilterOnScope",void 0),r([y.Autowired("popupService"),s("design:type",g.PopupService)],t.prototype,"popupService",void 0),r([y.Autowired("focusedCellController"),s("design:type",m.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([y.Autowired("loggerFactory"),s("design:type",f.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([y.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),r([y.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),r([y.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),r([_.RefSelector("gridPanel"),s("design:type",h.GridPanel)],t.prototype,"gridPanel",void 0),r([_.RefSelector("sideBar"),s("design:type",Object)],t.prototype,"sideBarComp",void 0),r([_.RefSelector("rootWrapperBody"),s("design:type",HTMLElement)],t.prototype,"eRootWrapperBody",void 0),r([y.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(v.Component);t.GridCore=S},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(17),a=o(32),l=o(3),p=o(4),u=o(2),c=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,(function(i){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:i})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var o=this;this.showPopup(e,(function(i){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:i,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var o,i=this,n=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),r=document.createElement("div");u._.addCssClass(r,"ag-menu"),n.guiPromise.promise.then((function(e){r.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&o()};this.eventService.addEventListener("bodyScroll",s),o=this.popupService.addAsModalPopup(r,!0,(function(){i.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(r),n.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:o};e.afterGuiAttached(t)}})),this.hidePopup=o,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},i([r.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("filterManager"),n("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("popupService"),n("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Bean("menuFactory")],e)}();t.StandardMenuFactory=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=o(205),l=o(153),p=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;this.filterService.filter(o),this.selectableService.updateSelectableAfterFiltering(t)},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("selectableService"),n("design:type",l.SelectableService)],e.prototype,"selectableService",void 0),i([r.Autowired("filterService"),n("design:type",a.FilterService)],e.prototype,"filterService",void 0),i([r.Bean("filterStage")],e)}();t.FilterStage=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(17),a=o(3),l=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var o=this,i=function(t,i){t.hasChildren()?(t.childrenAfterFilter=e&&!i?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,i=e.data&&o.filterManager.doesRowPassFilter(e);return t||i})):t.childrenAfterGroup,o.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var n=function e(t,n){if(t.childrenAfterGroup)for(var r=0;r<t.childrenAfterGroup.length;r++){var s=t.childrenAfterGroup[r],a=n||o.filterManager.doesRowPassFilter(s);s.childrenAfterGroup?e(t.childrenAfterGroup[r],a):i(s,a)}i(t,n)};t.executeFromRootNode((function(e){return n(e,!1)}))}else t.forEachChangedNodeDepthFirst((function(e){return i(e,!1)}),!0)},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},i([r.Autowired("filterManager"),n("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),i([r.Bean("filterService")],e)}();t.FilterService=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=o(207),l=o(27),p=o(5),u=o(2),c=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),o=u._.exists(t)&&t.length>0,i=o&&u._.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),n=i?this.calculateDirtyNodes(e.rowNodeTransactions):null,r=this.columnController.getValueColumns(),s=u._.missingOrEmpty(r);this.sortService.sort(t,o,i,n,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){o(e.add),o(e.update),o(e.remove)})),t},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("sortService"),n("design:type",a.SortService)],e.prototype,"sortService",void 0),i([r.Autowired("sortController"),n("design:type",l.SortController)],e.prototype,"sortController",void 0),i([r.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([r.Bean("sortStage")],e)}();t.SortStage=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(27),a=o(24),l=o(3),p=o(5),u=o(2),c=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,o,i,n,r){var s=this;n.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=o?s.doDeltaSort(a,e,i,n,r):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(n)},e.prototype.doFullSort=function(e,t){var o=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return o.sort(this.compareRowNodes.bind(this,t)),o},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,o,i,n){var r=e.childrenAfterSort.filter((function(e){var t=!o[e.id],r=n||i.canSkip(e);return t&&r})).map(this.mapNodeToSortedNode.bind(this)),s={};r.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?r:0===r.length?a:this.mergeSortedArrays(t,r,a)},e.prototype.mergeSortedArrays=function(e,t,o){for(var i=[],n=0,r=0;n<t.length&&r<o.length;)this.compareRowNodes(e,t[n],o[r])<0?i.push(t[n++]):i.push(o[r++]);for(;n<t.length;)i.push(t[n++]);for(;r<o.length;)i.push(o[r++]);return i},e.prototype.compareRowNodes=function(e,t,o){for(var i=t.rowNode,n=o.rowNode,r=0,s=e.length;r<s;r++){var a,l=e[r],p=-1===l.inverter,c=this.getValue(i,l.column),d=this.getValue(n,l.column);if(0!==(a=l.column.getColDef().comparator?l.column.getColDef().comparator(c,d,i,n,p):u._.defaultComparator(c,d,this.gridOptionsWrapper.isAccentedSort())))return a*l.inverter}return t.currentPos-o.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!u._.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,o=0;o<t.length;o++){var i=t[o],n=0===o,r=o===e.childrenAfterSort.length-1;i.setFirstChild(n),i.setLastChild(r),i.setChildIndex(o)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var o=function e(o){t.pullDownGroupDataForHideOpenParents(o.childrenAfterSort,!1),o.childrenAfterSort.forEach((function(t){t.hasChildren()&&e(t)}))};e.executeFromRootNode((function(e){return o(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;u._.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){o.columnController.getGroupDisplayColumns().forEach((function(i){var n=i.getColDef().showRowGroup;if("string"==typeof n){var r=n,s=o.columnController.getPrimaryColumn(r);if(s!==e.rowGroupColumn)if(t)e.setGroupValue(i.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(i.getId(),a.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},i([r.Autowired("sortController"),n("design:type",s.SortController)],e.prototype,"sortController",void 0),i([r.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("valueService"),n("design:type",a.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.Bean("sortService")],e)}();t.SortService=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(22),a=o(3),l=o(23),p=o(4),u=o(5),c=o(2),d=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=[],i={value:0},n=this.columnController.isPivotMode(),r=n&&t.leafGroup,s=r?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,i,n,0),!r&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,o,i,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,i,n){if(!c._.missingOrEmpty(e))for(var r=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),p=0;p<e.length;p++){var u=e[p],d=u.hasChildren(),h=r&&d,f=i&&!d,g=a&&d&&1===u.childrenAfterGroup.length,y=l&&d&&u.leafGroup&&1===u.childrenAfterGroup.length,m=i&&u.leafGroup,v=s&&u.expanded&&!m;if(!(f||h||v||g||y)&&this.addRowNodeToRowsToDisplay(u,t,o,n),!i||!u.leafGroup)if(d){var C=g||y;if(u.expanded||C){var _=C?n:n+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,i,_),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,o,n))}}else if(u.master&&u.expanded){var w=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(w,t,o,n)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,o,i){t.push(e);var n=this.gridOptionsWrapper.isGroupMultiAutoColumn();e.setUiLevel(n?0:i)},e.prototype.ensureFooterNodeExists=function(e){if(!c._.exists(e.sibling)){var t=new s.RowNode;this.context.wireBean(t),Object.keys(e).forEach((function(o){t[o]=e[o]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,c._.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(c._.exists(e.detailNode))return e.detailNode;var t=new s.RowNode;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,c._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("selectionController"),n("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([r.Bean("flattenStage")],e)}();t.FlattenStage=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(0),p=o(4),u=o(23),c=o(6),d=o(27),h=o(17),f=o(7),g=o(271),y=o(15),m=o(154),v=o(210),C=o(9),_=o(10),w=o(2),b=o(20),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,o,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.setDatasource(this.gridOptionsWrapper.getDatasource()),this.addDestroyFunc((function(){return e.destroyCache()})))},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!w._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return f.Constants.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;w._.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),w._.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),w._.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),w._.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return w._.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return w._.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!w._.missing(this.datasource)){w._.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:c.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new v.RowNodeBlockLoader(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new w.NumberSequence},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=0),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new g.InfiniteCache(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(m.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new w.NumberSequence)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return t>o?o:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){w._.exists(e.remove)||w._.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):w._.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("filterManager"),s("design:type",h.FilterManager)],t.prototype,"filterManager",void 0),r([l.Autowired("sortController"),s("design:type",d.SortController)],t.prototype,"sortController",void 0),r([l.Autowired("selectionController"),s("design:type",u.SelectionController)],t.prototype,"selectionController",void 0),r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),r([l.Autowired("columnApi"),s("design:type",_.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("rowRenderer"),s("design:type",b.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),r([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),r([l.Bean("rowModel")],t)}(y.BeanStub);t.InfiniteRowModel=E},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(95),a=o(14),l=o(0),p=o(2),u=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=p._.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){p._.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===s.RowNodeBlock.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var o=t.getNodeIdPrefix(),i={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};p._.exists(o)?e[o+t.getBlockNumber()]=i:e[t.getBlockNumber()]=i})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},i([r(0,l.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[a.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),e}();t.RowNodeBlockLoader=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(7),a=o(3),l=o(10),p=o(5),u=o(17),c=o(22),d=o(4),h=o(6),f=o(0),g=o(23),y=o(212),m=o(85),v=o(24),C=o(46),_=o(9),w=o(2);!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(r||(r={}));var b=function(){function e(){}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING,afterColumnsChanged:!0});this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:s.Constants.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(h.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var o=this.refreshModel.bind(this,{step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:!0});this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new c.RowNode,this.nodeManager=new y.ClientSideNodeManager(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.ensureRowHeightsValid=function(e,t,o,i){var n,r=!1;do{n=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,o),p=Math.min(a,i),u=l;u<=p;u++){var c=this.getRow(u);if(c.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(c);c.setRowHeight(d.height),n=!0,r=!0}}n&&this.setRowTops()}while(n);return r},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var o=this.gridOptionsWrapper.getDomLayout()===s.Constants.DOM_LAYOUT_NORMAL,i=this.rowsToDisplay[t];if(w._.missing(i.rowHeight)){var n=this.gridOptionsWrapper.getRowHeightForNode(i,o);i.setRowHeight(n.height,n.estimated)}i.setRowTop(e),i.setRowIndex(t),e+=i.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup&&(!t.isActive()||e.expanded))for(var o=0;o<e.childrenAfterGroup.length;o++)this.resetRowTops(e.childrenAfterGroup[o],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowAtPixel=function(e,t){var o=this.getRowIndexAtPixel(t);return this.getRow(o)!==e&&(w._.removeFromArray(this.rootNode.allLeafChildren,e),w._.insertIntoArray(this.rootNode.allLeafChildren,e,o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getTopLevelRowCount=function(){return this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},e.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},e.prototype.getRowBounds=function(e){if(w._.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_FILTER,keepRenderedRows:!0,animate:e})},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:s.Constants.STEP_PIVOT}):this.refreshModel({step:s.Constants.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=w._.missingOrEmpty(e),o=new m.ChangedPath(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},e.prototype.refreshModel=function(e){var t=this,o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case s.Constants.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,e.afterColumnsChanged);case s.Constants.STEP_FILTER:this.doFilter(o);case s.Constants.STEP_PIVOT:this.doPivot(o);case s.Constants.STEP_AGGREGATE:this.doAggregate(o);case s.Constants.STEP_SORT:this.doSort(e.rowNodeTransactions,o);case s.Constants.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,o),this.setRowTops();var i={type:h.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(i),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=w._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?w._.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:w._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,w._.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return w._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o,i=!t,n=!1,r=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=i&&!n;if(i||a!==t&&a!==e||(i=!0),!a.group||!s){var p=i&&!n,u=a.isParentOfNode(o);(p||u)&&r.push(a)}l&&(a!==t&&a!==e||(n=!0,o=a===t?t:e))})),r},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(w._.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var i=Math.floor((t+o)/2),n=this.rowsToDisplay[i];if(this.isRowInPixel(n,e))return i;n.rowTop<e?t=i+1:n.rowTop>e&&(o=i-1)}},e.prototype.isRowInPixel=function(e,t){var o=e.rowTop,i=e.rowTop+e.rowHeight;return o<=t&&i>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=w._.last(this.rowsToDisplay);return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,o){return e(t,o)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,r.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,r.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,r.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,r.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,i){if(e)for(var n=0;n<e.length;n++){var s=e[n];if(t(s,i++),s.hasChildren()){var a=null;switch(o){case r.Normal:a=s.childrenAfterGroup;break;case r.AfterFilter:a=s.childrenAfterFilter;break;case r.AfterFilterAndSort:a=s.childrenAfterSort;break;case r.PivotNodes:a=s.leafGroup?null:s.childrenAfterSort}a&&(i=this.recursivelyWalkNodesAndCallback(a,t,o,i))}}return i},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function o(i){i&&i.forEach((function(i){(t?w._.exists(i.childrenAfterGroup):i.group)&&(i.expanded=e,o(i.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:s.Constants.STEP_MAP});var o=e?"expandAll":"collapseAll",i={api:this.gridApi,columnApi:this.columnApi,type:h.Events.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(i)},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,o,i,n){var r=this;w._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())||(this.groupStage?(t&&w._.exists(t)?t.forEach((function(e){r.groupStage.execute({rowNode:r.rootNode,rowNodeTransaction:e,rowNodeOrder:o,changedPath:i})})):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:n}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(i)):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren)},e.prototype.restoreGroupState=function(e){e&&w._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return w._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){return e[o]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var o={type:h.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var o=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var i=this.gridOptionsWrapper.getBatchUpdateWaitMillis();window.setTimeout((function(){o.executeBatchUpdateRowData(),o.rowDataTransactionBatch=null}),i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(i){var n=e.nodeManager.updateRowData(i.rowDataTransaction,null);o.push(n),i.callback&&t.push(i.callback.bind(null,n))})),this.commonUpdateRowData(o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([o],t),o},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:s.Constants.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var o={type:h.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},i([f.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("filterManager"),n("design:type",u.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([f.Autowired("selectionController"),n("design:type",g.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("eventService"),n("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("context"),n("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("valueService"),n("design:type",v.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("valueCache"),n("design:type",C.ValueCache)],e.prototype,"valueCache",void 0),i([f.Autowired("columnApi"),n("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([f.Autowired("gridApi"),n("design:type",_.GridApi)],e.prototype,"gridApi",void 0),i([f.Autowired("filterStage"),n("design:type",Object)],e.prototype,"filterStage",void 0),i([f.Autowired("sortStage"),n("design:type",Object)],e.prototype,"sortStage",void 0),i([f.Autowired("flattenStage"),n("design:type",Object)],e.prototype,"flattenStage",void 0),i([f.Optional("groupStage"),n("design:type",Object)],e.prototype,"groupStage",void 0),i([f.Optional("aggregationStage"),n("design:type",Object)],e.prototype,"aggregationStage",void 0),i([f.Optional("pivotStage"),n("design:type",Object)],e.prototype,"pivotStage",void 0),i([f.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([f.Bean("rowModel")],e)}();t.ClientSideRowModel=b},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(22),n=o(6),r=o(2),s=function(){function e(t,o,i,n,r,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.context=i,this.eventService=n,this.columnController=r,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=r._.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.getNodeChildDetails&&console.warn("ag-Grid: the callback nodeChildDetailsFunc() is now deprecated. The new way of doing\n tree data in ag-Grid was introduced in v14 (released November 2017). In the next\n major release of ag-Grid we will be dropping support for the old version of\n tree data. If you are reading this message, please go to the docs to see how\n to implement Tree Data without using nodeChildDetailsFunc().")},e.prototype.getCopyOfNodesMap=function(){return r._.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var o=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=o,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=o},e.prototype.updateRowData=function(e,t){if(this.isLegacyTreeData())return null;e.add,e.addIndex,e.remove,e.update;var o={remove:[],update:[],add:[]};return this.executeAdd(e,o),this.executeRemove(e,o),this.executeUpdate(e,o),t&&r._.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),o},e.prototype.executeAdd=function(e,t){var o=this,i=e.add,n=e.addIndex;i&&("number"==typeof n&&n>=0?i.reverse().forEach((function(e){var i=o.addRowNode(e,n);t.add.push(i)})):i.forEach((function(e){var i=o.addRowNode(e);t.add.push(i)})))},e.prototype.executeRemove=function(e,t){var o=this,i=e.remove;if(i){var r={},s=!1;if(i.forEach((function(e){var i=o.lookupRowNode(e);i&&(i.isSelected()&&(s=!0),i.setSelected(!1,!1,!0),i.clearRowTop(),r[i.id]=!0,delete o.allNodesMap[i.id],t.remove.push(i))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!r[e.id]})),s){this.selectionController.updateGroupsFromChildrenSelections();var a={type:n.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(a)}}},e.prototype.executeUpdate=function(e,t){var o=this,i=e.update;i&&i.forEach((function(e){var i=o.lookupRowNode(e);i&&(i.updateData(e),t.update.push(i))}))},e.prototype.addRowNode=function(t,o){var i=this.createNode(t,this.rootNode,e.TOP_LEVEL);return r._.exists(o)?r._.insertIntoArray(this.rootNode.allLeafChildren,i,o):this.rootNode.allLeafChildren.push(i),i},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsWrapper.getRowNodeIdFunc();if(r._.exists(o)){var i=o(e);if(!(t=this.allNodesMap[i]))return console.error("ag-Grid: could not find row id="+i+", data item was not found for this id"),null}else if(!(t=r._.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.recursiveFunction=function(e,t,o){var i=this;if("string"!=typeof e){var n=[];return e.forEach((function(e){var r=i.createNode(e,t,o);n.push(r)})),n}console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.createNode=function(e,t,o){var n=new i.RowNode;this.context.wireBean(n);var s=this.gridOptionsWrapper.isTreeData(),a=!s&&r._.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(a&&a.group)n.group=!0,n.childrenAfterGroup=this.recursiveFunction(a.children,n,o+1),n.expanded=!0===a.expanded,n.field=a.field,n.key=a.key,n.canFlower=n.master,this.setLeafChildren(n);else if(n.group=!1,s)n.master=!1,n.expanded=!1;else{this.doesDataFlower?n.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?n.master=this.isRowMasterFunc(e):n.master=!0:n.master=!1;var l=this.columnController.getRowGroupColumns(),p=o+(l?l.length:0);n.expanded=!!n.master&&this.isExpanded(p)}return n.canFlower=n.master,t&&!this.suppressParentsInRowNodes&&(n.parent=t),n.level=o,n.setDataAndId(e,this.nextId.toString()),this.allNodesMap[n.id]&&console.warn("ag-grid: duplicate node id '"+n.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[n.id]=n,this.nextId++,n},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!r._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}();t.ClientSideNodeManager=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListenerOutsideAngular=function(e,t,o,i){e.addEventListener(t,o,i)},e}();t.VanillaFrameworkOverrides=i},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.prototype.createXml=function(e,t){var o=this,i="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){i+=o.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){i+=o.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+i;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"</"+e.name+">\r\n":(n+=">\r\n",e.children&&e.children.forEach((function(e){n+=o.createXml(e,t)})),n+"</"+e.name+">\r\n"):n+"/>\r\n"},e.prototype.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var i=t;return"boolean"==typeof t&&o&&(i=o(t))," "+e+'="'+i+'"'},i([n.Bean("xmlFactory")],e)}();t.XmlFactory=r},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(2),s=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],a=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),o=t.length,i="",n=0,r=0,s=0,a=t;s<a.length;s++){var l=a[s],p=this.getHeader(l,n),u=p.fileHeader,c=p.folderHeader,d=p.content;n+=u.length+d.length,r+=c.length,e+=u+d,i+=c}return e+i+this.buildFolderEnd(o,r,n)},e.prototype.getHeader=function(e,t){var o=e.content,i=e.path,n=e.created,s=r._.utf8_encode,a=r._.decToHex,l=s(i),p=l!==i,u=this.convertTime(n),c=this.convertDate(n),d="";if(p){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f="\n\0"+(p?"\0\b":"\0\0")+"\0\0"+a(u,2)+a(c,2)+a(o?this.getFromCrc32Table(o):0,4)+a(o?o.length:0,4)+a(o?o.length:0,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK"+f+l+d,folderHeader:"PK\0"+f+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+a(t,4)+l+d,content:o||""}},e.prototype.buildFolderEnd=function(e,t,o){var i=r._.decToHex;return"PK\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(o,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var o=0,i=0;i<e.length;i++)o=e.charCodeAt(i),t=t>>>8^s[255&(t^o)];return-1^t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),(t<<=5)|e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,(t<<=5)|e.getDate()},i([n.Bean("zipContainer")],e)}();t.ZipContainer=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(11),p=o(0),u=o(3),c=o(49),d=o(2),h=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;i.suppressEnabledCheckbox=!0,i.suppressOpenCloseIcons=!1,o||(o={});var n=o.title,r=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return i.title=n,i.enabled=null==r||r,i.items=s||[],null!=a&&(i.suppressEnabledCheckbox=a),null!=l&&(i.suppressOpenCloseIcons=l),i}return n(t,e),t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(d._.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(d._.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.setOpenClosedIcons(),this.addDestroyableEventListener(this.groupTitle,"click",(function(){return e.toggleGroupExpand()}))},t.prototype.setOpenClosedIcons=function(){var e=this.expanded;d._.setDisplayed(this.eGroupClosedIcon,!e),d._.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.toggleGroupExpand=function(e){var t=this.getGui();return this.suppressOpenCloseIcons?(this.expanded=!0,d._.removeCssClass(t,"ag-collapsed"),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.setOpenClosedIcons(),d._.addOrRemoveCssClass(t,"ag-collapsed",!e),this.expanded&&this.dispatchEvent({type:"expanded"})),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.groupContainer,o=e instanceof a.Component?e.getGui():e;d._.addCssClass(o,"ag-group-item"),t.appendChild(o),this.items.push(o)},t.prototype.setTitle=function(e){return this.lbGroupTitle.innerText=e,this},t.prototype.setEnabled=function(e,t){return this.enabled=e,d._.addOrRemoveCssClass(this.getGui(),"ag-disabled",!e),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(o){t.setEnabled(o,!0),e(o)})),this},t.prototype.hideEnabledCheckbox=function(e){return d._.addOrRemoveCssClass(this.eToolbar,"ag-hidden",e),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,d._.addOrRemoveCssClass(this.getGui(),"ag-collapsible",!e),e&&this.toggleGroupExpand(!0),this},t.TEMPLATE='<div class="ag-group-component">\n <div class="ag-group-component-title-bar" ref="groupTitle">\n <span class="ag-column-group-icons">\n <span class="ag-column-group-closed-icon" ref="eGroupOpenedIcon"></span>\n <span class="ag-column-group-opened-icon" ref="eGroupClosedIcon"></span>\n </span>\n <span ref="lbGroupTitle" class="ag-group-component-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-component-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-component-container"></div>\n </div>',r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.RefSelector("groupTitle"),s("design:type",HTMLElement)],t.prototype,"groupTitle",void 0),r([l.RefSelector("eGroupOpenedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupOpenedIcon",void 0),r([l.RefSelector("eGroupClosedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupClosedIcon",void 0),r([l.RefSelector("eToolbar"),s("design:type",HTMLElement)],t.prototype,"eToolbar",void 0),r([l.RefSelector("cbGroupEnabled"),s("design:type",c.AgCheckbox)],t.prototype,"cbGroupEnabled",void 0),r([l.RefSelector("lbGroupTitle"),s("design:type",HTMLElement)],t.prototype,"lbGroupTitle",void 0),r([l.RefSelector("eContainer"),s("design:type",HTMLElement)],t.prototype,"groupContainer",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.AgGroupComponent=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var o=e.call(this)||this;return o.className="ag-text-area",o.displayTag="textarea",o.inputType="",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&(o.config=t),o}return n(t,e),t.prototype.setValue=function(t,o){var i=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,i},t}(o(65).AgAbstractInputField);t.AgInputTextArea=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(158),p=o(145),u=o(97),c=o(39),d=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.labelAlignment="top",o}return n(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setMinValue(0)},t.prototype.onValueChange=function(e){var t=this,o=c.AgAbstractField.EVENT_CHANGED;return this.addDestroyableEventListener(this.eText,o,(function(){var o=parseFloat(t.eText.getValue());t.eSlider.setValue(o.toString(),!0),e(o||0)})),this.addDestroyableEventListener(this.eSlider,o,(function(){var o=t.eSlider.getValue();t.eText.setValue(o,!0),e(parseFloat(o))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:c.AgAbstractField.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',r([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([a.RefSelector("eSlider"),s("design:type",l.AgInputRange)],t.prototype,"eSlider",void 0),r([a.RefSelector("eText"),s("design:type",u.AgInputNumberField)],t.prototype,"eText",void 0),t}(p.AgAbstractLabel);t.AgSlider=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(275),s=o(96),a=o(276),l=o(39),p=o(2),u=function(e){function t(t){var o=e.call(this)||this;return o.displayTag="div",o.className="ag-color-picker",o.pickerIcon="colorPicker",o.setTemplate(o.TEMPLATE.replace(/%displayField%/g,o.displayTag)),t&&t.color&&(o.value=t.color),o}return n(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),p._.addCssClass(this.getGui(),this.className),this.addDestroyableEventListener(this.eDisplayField,"click",(function(){return t.showPicker()})),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this;if(this.displayedPicker)this.displayedPicker=!1;else{var t=this.getGui().getBoundingClientRect(),o=new s.AgDialog({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.getContext().wireBean(o),p._.addCssClass(o.getGui(),"ag-color-dialog");var i=new r.AgColorPanel({picker:this});this.getContext().wireBean(i),i.addDestroyFunc((function(){o.isAlive()&&o.destroy()})),o.setParentComponent(this),o.setBodyComponent(i),i.setValue(this.getValue()),o.addDestroyFunc((function(){var t=e.isDestroyingPicker;e.displayedPicker=!1,t?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,i.isAlive()&&i.destroy())}))}},t.prototype.setValue=function(e){return this.value===e||(this.value=e,this.eDisplayField.style.backgroundColor=e,this.dispatchEvent({type:l.AgAbstractField.EVENT_CHANGED})),this},t.prototype.getValue=function(){return this.value},t}(a.AgPickerField);t.AgColorPicker=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){var t=e.call(this)||this;return t.className="ag-select",t.displayTag="select",t.inputType="",t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return n(t,e),t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=document.createElement("option");return t.value=e.value,t.text=e.text||e.value,this.eInput.appendChild(t),this},t.prototype.setValue=function(t,o){var i=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,i},t}(o(65).AgAbstractInputField);t.AgSelect=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(145),l=o(11),p=o(0),u=o(37),c=o(97),d=o(39),h=o(2),f=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return n(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var o=parseFloat(e);o>180&&(o-=360),t.setValue(o)})),this.updateNumberInput(),h._.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addDestroyableEventListener(this,d.AgAbstractField.EVENT_CHANGED,(function(){t.eAngleValue.getInputElement().contains(document.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,i=t.width/2,n=t.height/2;o.style.left=i+8*Math.cos(e)+"px",o.style.top=n+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,o=Math.atan2(t,e);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(o)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,o=t.width/2,i=t.height/2,n=e.clientX-t.left-o,r=e.clientY-t.top-i,s=Math.atan2(r,n);this.setValue(s,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},t.prototype.onValueChange=function(e){var t=this;return this.addDestroyableEventListener(this,d.AgAbstractField.EVENT_CHANGED,(function(){e(t.degrees)})),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var o;return o=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(o),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:d.AgAbstractField.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return h._.setFixedWidth(this.getGui(),e),this},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.dragService.removeDragSource(this.dragListener)},t.TEMPLATE='<div class="ag-angle-select">\n <label ref="eLabel"></label>\n <div class="ag-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-parent-circle">\n <div ref="eChildCircle" class="ag-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',r([l.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([l.RefSelector("eParentCircle"),s("design:type",HTMLElement)],t.prototype,"eParentCircle",void 0),r([l.RefSelector("eChildCircle"),s("design:type",HTMLElement)],t.prototype,"eChildCircle",void 0),r([l.RefSelector("eAngleValue"),s("design:type",c.AgInputNumberField)],t.prototype,"eAngleValue",void 0),r([p.Autowired("dragService"),s("design:type",u.DragService)],t.prototype,"dragService",void 0),t}(a.AgAbstractLabel);t.AgAngleSelect=f},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(155),s=o(2),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t}return n(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),s._.addCssClass(this.eIconEl,"ag-icon")},t.prototype.updateIcons=function(){var e=this.getValue();s._.addOrRemoveCssClass(this.eIconEl,"ag-icon-toggle-on",e),s._.addOrRemoveCssClass(this.eIconEl,"ag-icon-toggle-off",!e)},t.prototype.setValue=function(t,o){return e.prototype.setValue.call(this,t,o),s._.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(r.AgRadioButton);t.AgToggleButton=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(50),a=o(67),l=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(t.chartType,o.defaultOptions()),o.chart=s.ChartBuilder.createScatterChart(o.chartOptions),o}return n(t,e),t.prototype.update=function(e){var t=this;if(0!==e.fields.length){var o=this.chart,i=this.chartProxyParams.chartType,n=e.fields.map((function(e){return e.colId})),l={},p=e.category.id===a.ChartModel.DEFAULT_CATEGORY;o.series.map((function(e){return e})).forEach((function(e){var t=e.yField;n.indexOf(t)>-1?l[t]=e:o.removeSeries(e)}));var u=function(n,a){var u=t.chartOptions.seriesDefaults,c=l[n.colId],d=c||s.ChartBuilder.createSeries(u);if(d){if(p){if(d.title=e.fields[0].displayName+" vs "+n.displayName,d.xField=e.fields[0].colId,d.xFieldName=e.fields[0].displayName,i===r.ChartType.Bubble){var h=e.fields[2*a+2];d.radiusField=h.colId,d.radiusFieldName=h.displayName}}else d.title=n.displayName,d.xField=e.category.id,d.xFieldName=e.category.name;d.data=e.data,d.yField=n.colId,d.yFieldName=n.displayName;var f=t.overriddenPalette?t.overriddenPalette:t.chartProxyParams.getSelectedPalette(),g=f.fills;d.fill=g[a%g.length];var y=f.strokes;d.stroke=y[a%y.length],c||o.addSeries(d)}};if(p)if(i===r.ChartType.Bubble){for(var c=e.fields.length,d=c%2==0?1:0,h=[],f=1;f<c-d;f+=2)h.push(e.fields[f]);h.forEach(u)}else e.fields.slice(1,e.fields.length).forEach(u);else e.fields.forEach(u);o.xAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.xAxis.labelRotation}else this.chart.removeAllSeries()},t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getMarkersEnabled=function(){return!0},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.categorySelected?"category":"number",t=this.chartProxyParams.getSelectedPalette(),o=this.chartProxyParams.chartType===r.ChartType.Bubble;return{background:{fill:this.getBackgroundColor()},padding:{top:20,right:20,bottom:20,left:20},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},xAxis:{type:e,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:335,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},yAxis:{type:"number",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:0,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},seriesDefaults:{type:"scatter",fills:t.fills,fillOpacity:o?.7:1,strokes:t.strokes,marker:!0,markerSize:o?30:6,minMarkerSize:3,markerStrokeWidth:1,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,title:""}}},t}(o(105).CartesianChartProxy);t.ScatterChartProxy=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(162),a=o(53),l=o(51),p=o(16);!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(r=t.CartesianChartLayout||(t.CartesianChartLayout={}));var u=function(e){function t(t){var o=e.call(this,t)||this;o.axisAutoPadding=new l.Padding,o.seriesClipRect=new p.Group,o._layout=r.Vertical;var i=t.xAxis,n=t.yAxis;return o._xAxis=i,o._yAxis=n,o.scene.root.append([i.group,n.group,o.seriesClipRect]),o.scene.root.append(o.legend.group),o}return n(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this.seriesClipRect},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._xAxis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._yAxis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach((function(e){t.addSeries(e)}))},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){if(!this.dataPending&&this.xAxis&&this.yAxis){var e={x:0,y:0,width:this.width,height:this.height},t=this.captionAutoPadding;if(e.y+=t,e.height-=t,this.legend.enabled&&this.legend.data.length){var o=this.legendAutoPadding;e.x+=o.left,e.y+=o.top,e.width-=o.left+o.right,e.height-=o.top+o.bottom;var i=this.legendPadding;switch(this.legendPosition){case"right":e.width-=i;break;case"bottom":e.height-=i;break;case"left":e.x+=i,e.width-=i;break;case"top":e.y+=i,e.height-=i}}var n=this.padding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.bottom;var r=this.axisAutoPadding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.bottom;var s=this.xAxis,a=this.yAxis;s.scale.range=[0,e.width],s.rotation=-90,s.translationX=Math.floor(e.x),s.translationY=Math.floor(e.y+e.height+1),s.parallelLabels=!0,s.gridLength=e.height,a.scale.range=[e.height,0],a.translationX=Math.floor(e.x),a.translationY=Math.floor(e.y),a.gridLength=e.width,this.updateAxes(),this.series.forEach((function(t){t.group.translationX=Math.floor(e.x),t.group.translationY=Math.floor(e.y),t.update()})),this.positionCaptions(),this.positionLegend()}},Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout!==e&&(this._layout=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),t.prototype.updateAxes=function(){var e,t,o=this.layout===r.Horizontal,i=o?this.yAxis:this.xAxis,n=o?this.xAxis:this.yAxis;if(i&&n){var s=[],l=[];this.series.forEach((function(e){if(e.visible){var t=e.getDomainX(),o=e.getDomainY();s.push(t),l.push(o)}}));var p=(e=new Array).concat.apply(e,s),u=(t=new Array).concat.apply(t,l);i.domain=a.numericExtent(p)||p,n.domain=a.numericExtent(u)||u,i.update(),n.update();var c=this.xAxis.getBBox(),d=this.yAxis.getBBox(),h=Math.floor(d.width);this.axisAutoPadding.left!==h&&(this.axisAutoPadding.left=h,this.layoutPending=!0),h=Math.floor(c.width),this.axisAutoPadding.bottom!==h&&(this.axisAutoPadding.bottom=h,this.layoutPending=!0)}},t}(s.Chart);t.CartesianChart=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(297),n=function(){function e(e){var t=this;void 0===e&&(e={}),this.id=this.createId(),this._dirty=!1,this.animationFrameId=0,this._root=null,this._frameIndex=0,this._renderFrameIndex=!1,this.render=function(){var e=t.ctx;e.clearRect(0,0,t.width,t.height),t.root&&(e.save(),t.root.visible&&t.root.render(e),e.restore()),t._frameIndex++,t.renderFrameIndex&&(e.fillStyle="white",e.fillRect(0,0,40,15),e.fillStyle="black",e.fillText(t.frameIndex.toString(),0,10)),t.dirty=!1},this.canvas=new i.HdpiCanvas({width:e.width||300,height:e.height||150,document:e.document||window.document}),this.ctx=this.canvas.context}return e.prototype.createId=function(){return this.constructor.name+"-"+e.id++},Object.defineProperty(e.prototype,"parent",{get:function(){return this.canvas.parent},set:function(e){this.canvas.parent=e},enumerable:!0,configurable:!0}),e.prototype.download=function(e){this.canvas.download(e)},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.size=[e,this.height]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.size=[this.width,e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return[this.width,this.height]},set:function(e){var t=e[0],o=e[1];this.width===t&&this.height===o||(this.canvas.resize(t,o),this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(e){e&&!this._dirty&&(this.animationFrameId=requestAnimationFrame(this.render)),this._dirty=e},enumerable:!0,configurable:!0}),e.prototype.cancelRender=function(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=0,this._dirty=!1)},Object.defineProperty(e.prototype,"root",{get:function(){return this._root},set:function(e){e!==this._root&&(this._root&&this._root._setScene(void 0),this._root=e,e&&(null===e.parent&&e.scene&&e.scene!==this&&(e.scene.root=null),e._setScene(this)),this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.appendPath=function(e){var t=this.ctx,o=e.commands,i=e.params,n=o.length,r=0;t.beginPath();for(var s=0;s<n;s++)switch(o[s]){case"M":t.moveTo(i[r++],i[r++]);break;case"L":t.lineTo(i[r++],i[r++]);break;case"C":t.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++]);break;case"Z":t.closePath()}},Object.defineProperty(e.prototype,"frameIndex",{get:function(){return this._frameIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderFrameIndex",{get:function(){return this._renderFrameIndex},set:function(e){this._renderFrameIndex!==e&&(this._renderFrameIndex=e,this.dirty=!0)},enumerable:!0,configurable:!0}),e.id=1,e}();t.Scene=n},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){var i=function(e,t,o){var i=Math.abs(t-e)/Math.max(0,o),n=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),l=i/n;return l>=r?n*=10:l>=s?n*=5:l>=a&&(n*=2),t<e?-n:n}(e,t,o);return function(e,t,o){void 0===o&&(o=1);for(var i=Math.abs(o),n=i>0&&i<1?Math.abs(Math.floor(Math.log(i)/Math.LN10)):0,r=Math.pow(10,n),s=Math.max(0,Math.ceil((t-e)/o))||0,a=new l(n,s),p=0;p<s;p++){var u=e+o*p;a[p]=Math.round(u*r)/r}return a}(e=Math.ceil(e/i)*i,t=Math.floor(t/i)*i+i/2,i)};var r=Math.sqrt(50),s=Math.sqrt(10),a=Math.sqrt(2);t.tickIncrement=function(e,t,o){var i=(t-e)/Math.max(0,o),n=Math.floor(Math.log(i)/Math.LN10),l=i/Math.pow(10,n);return n>=0?(l>=r?10:l>=s?5:l>=a?2:1)*Math.pow(10,n):-Math.pow(10,-n)/(l>=r?10:l>=s?5:l>=a?2:1)};var l=function(e){function t(t,o){void 0===o&&(o=0);var i=e.call(this,o)||this;return i.fractionDigits=t,i}return n(t,e),t}(Array);t.NumericTicks=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(16),r=o(34),s=o(104),a=o(226),l=o(54),p=o(52),u=o(73),c=o(29),d=o(98);!function(e){e[e.Tick=0]="Tick",e[e.GridLine=1]="GridLine"}(i||(i={}));var h=function(){function e(e){this.group=new n.Group,this.line=new s.Line,this.translationX=0,this.translationY=0,this.rotation=0,this.lineWidth=1,this.lineColor="rgba(195, 195, 195, 1)",this.tickWidth=1,this.tickSize=6,this.tickPadding=5,this.tickColor="rgba(195, 195, 195, 1)",this.labelFontStyle="",this.labelFontWeight="",this.labelFontSize=12,this.labelFontFamily="Verdana, sans-serif",this._title=void 0,this.labelColor="rgba(87, 87, 87, 1)",this._gridLength=0,this._gridStyle=[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}],this._radialGrid=!1,this.labelRotation=0,this.mirrorLabels=!1,this.parallelLabels=!1,this.scale=e,this.groupSelection=r.Selection.select(this.group).selectAll(),this.group.append(this.line)}return Object.defineProperty(e.prototype,"range",{get:function(){return this.scale.range},set:function(e){this.scale.range=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&this.group.removeChild(t.node),e&&(e.node.rotation=-Math.PI/2,this.group.appendChild(e.node)),this._title=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.groupSelection=this.groupSelection.remove().setData([])),this._gridLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridStyle",{get:function(){return this._gridStyle},set:function(e){e.length&&(this._gridStyle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialGrid",{get:function(){return this._radialGrid},set:function(e){this._radialGrid!==e&&(this._radialGrid=e,this.groupSelection=this.groupSelection.remove().setData([]))},enumerable:!0,configurable:!0}),e.prototype.update=function(){var e=this,t=this.group,o=this.scale,r=l.toRadians(this.rotation),c=l.normalizeAngle360(l.toRadians(this.labelRotation));t.translationX=this.translationX,t.translationY=this.translationY,t.rotation=r;var d=o.ticks(10),h=0;d instanceof a.NumericTicks&&(h=d.fractionDigits);var f=(o.bandwidth||0)/2,g=this.mirrorLabels?1:-1,y=l.normalizeAngle360(r),m=!c&&y>=0&&y<=Math.PI?-1:1,v=l.normalizeAngle360(r-Math.PI/2),C=!c&&v>=0&&v<=Math.PI?-1:1,_=c>=0&&c<=Math.PI?-1:1,w=this.parallelLabels,b=this.groupSelection.setData(d);b.exit.remove();var E=b.enter.append(n.Group);E.append(s.Line).each((function(e){return e.tag=i.Tick})),this.gridLength&&(this.radialGrid?E.append(u.Arc).each((function(e){return e.tag=i.GridLine})):E.append(s.Line).each((function(e){return e.tag=i.GridLine}))),E.append(p.Text);var R=b.merge(E);if(R.attrFn("translationY",(function(e,t){return Math.round(o.convert(t)+f)})),R.selectByTag(i.Tick).each((function(t){t.strokeWidth=e.tickWidth,t.stroke=e.tickColor})).attr("x1",g*this.tickSize).attr("x2",0).attr("y1",0).attr("y2",0),this.gridLength){var S=this.gridStyle,P=S.length,O=void 0;if(this.radialGrid){var T=l.normalizeAngle360Inclusive(l.toRadians(this.gridLength));O=R.selectByTag(i.GridLine).each((function(t,i){var n=Math.round(o.convert(i)+f);t.centerX=0,t.centerY=e.scale.range[0]-n,t.endAngle=T,t.radiusX=n,t.radiusY=n}))}else O=R.selectByTag(i.GridLine).each((function(t){t.x1=0,t.x2=-g*e.gridLength,t.y1=0,t.y2=0,t.visible=Math.abs(t.parent.translationY-o.range[0])>1}));O.each((function(t,o,i){var n=S[i%P];t.stroke=n.stroke,t.strokeWidth=e.tickWidth,t.lineDash=n.lineDash,t.fill=void 0}))}var A=this.labelFormatter,D=R.selectByClass(p.Text).each((function(t,o,i){t.fontStyle=e.labelFontStyle,t.fontWeight=e.labelFontWeight,t.fontSize=e.labelFontSize,t.fontFamily=e.labelFontFamily,t.fill=e.labelColor,t.textBaseline=w&&!c?g*m==-1?"hanging":"bottom":"middle",t.text=A?A({value:h>=0?o:String(o),index:i,fractionDigits:h}):h?o.toFixed(h):String(o),t.textAlign=w?c?g*_==-1?"end":"start":"center":g*C==-1?"end":"start"})),x=g*(this.tickSize+this.tickPadding),F=w?m*Math.PI/2:-1===C?Math.PI:0;D.each((function(e){e.x=x,e.rotationCenterX=x,e.rotation=F+c})),this.groupSelection=R;var M=this.line;M.x1=0,M.x2=0,M.y1=o.range[0],M.y2=o.range[o.range.length-1],M.strokeWidth=this.lineWidth,M.stroke=this.lineColor,M.visible=d.length>0;var N=this.title;if(N){var L=N.padding.bottom,I=N.node,k=this.getBBox(!1),G=-1===g&&y>Math.PI&&y<2*Math.PI?-1:1;I.rotation=G*g*Math.PI/2,I.x=G*g*(M.y1+M.y2)/2,I.y=-1===g?G*(-L-k.width+Math.max(k.x+k.width,0)):-L-k.width-Math.min(k.x,0),I.textBaseline=1===G?"bottom":"top"}},e.prototype.getBBox=function(e){void 0===e&&(e=!0);var t=this.line,o=this.groupSelection.selectByClass(p.Text),i=1/0,n=-1/0,r=1/0,s=-1/0;if(o.each((function(e){e.computeTransformMatrix();var t=d.Matrix.flyweight(e.matrix),o=e.parent;o.computeTransformMatrix(),t.preMultiplySelf(o.matrix);var a=e.getBBox();if(a){var l=t.transformBBox(a);i=Math.min(i,l.x),n=Math.max(n,l.x+l.width),r=Math.min(r,l.y),s=Math.max(s,l.y+l.height)}})),e&&this.title){var a=this.title.node;a.computeTransformMatrix();var l=d.Matrix.flyweight(a.matrix),u=a.getBBox();if(u){var h=l.transformBBox(u);i=Math.min(i,h.x),n=Math.max(n,h.x+h.width),r=Math.min(r,h.y),s=Math.max(s,h.y+h.height)}}return i=Math.min(i,0),n=Math.max(n,0),r=Math.min(r,t.y1,t.y2),s=Math.max(s,t.y1,t.y2),new c.BBox(i,r,n-i,s-r)},e}();t.Axis=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(41),s=o(72),a=o(54),l=o(42),p=o(29),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new s.Path2D,t._dirtyPath=!0,t._centerX=0,t._centerY=0,t._centerOffset=0,t._innerRadius=10,t._outerRadius=20,t._startAngle=0,t._endAngle=2*Math.PI,t._angleOffset=0,t.getBBox=function(){var e=t.outerRadius;return new p.BBox(t.centerX-e,t.centerY-e,2*e,2*e)},t}return n(t,e),t.create=function(e,o,i,n,r,s){void 0===r&&(r=0),void 0===s&&(s=2*Math.PI);var a=new t;return a.centerX=e,a.centerY=o,a.innerRadius=i,a.outerRadius=n,a.startAngle=r,a.endAngle=s,a},Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerOffset",{get:function(){return this._centerOffset},set:function(e){this._centerOffset!==e&&(this._centerOffset=Math.max(0,e),this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this._innerRadius},set:function(e){this._innerRadius!==e&&(this._innerRadius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadius",{get:function(){return this._outerRadius},set:function(e){this._outerRadius!==e&&(this._outerRadius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleOffset",{get:function(){return this._angleOffset},set:function(e){this._angleOffset!==e&&(this._angleOffset=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.isPointInPath=function(e,t){var o=this.transformPoint(e,t);return this.path.isPointInPath(o.x,o.y)},t.prototype.isPointInStroke=function(e,t){return!1},Object.defineProperty(t.prototype,"fullPie",{get:function(){return l.isEqual(a.normalizeAngle360(this.startAngle),a.normalizeAngle360(this.endAngle))},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){if(this.dirtyPath){var e=this.path,t=this.angleOffset,o=Math.min(this.startAngle,this.endAngle)+t,i=Math.max(this.startAngle,this.endAngle)+t,n=.5*(o+i),r=Math.min(this.innerRadius,this.outerRadius),s=Math.max(this.innerRadius,this.outerRadius),a=this.centerOffset,l=this.fullPie,p=this.centerX,u=this.centerY;if(e.clear(),a&&(p+=a*Math.cos(n),u+=a*Math.sin(n)),l||(e.moveTo(p+r*Math.cos(o),u+r*Math.sin(o)),e.lineTo(p+s*Math.cos(o),u+s*Math.sin(o))),e.cubicArc(p,u,s,s,0,o,i,0),l)e.moveTo(p+r*Math.cos(i),u+r*Math.sin(i));else{var c=p+r*Math.cos(i);e.lineTo(Math.abs(c)<1e-8?0:c,u+r*Math.sin(i))}e.cubicArc(p,u,r,r,0,i,o,1),e.closePath(),this.dirtyPath=!1}},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Sector",t}(r.Shape);t.Sector=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._enabled=!0,this._enabled=void 0===e.enabled||e.enabled,this._color=void 0!==e.color?e.color:"black",this._xOffset=void 0!==e.xOffset?e.xOffset:0,this._yOffset=void 0!==e.yOffset?e.yOffset:0,this._blur=void 0!==e.blur?e.blur:0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled!==e&&(this._enabled=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color!==e&&(this._color=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xOffset",{get:function(){return this._xOffset},set:function(e){this._xOffset!==e&&(this._xOffset=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yOffset",{get:function(){return this._yOffset},set:function(e){this._yOffset!==e&&(this._yOffset=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function(){return this._blur},set:function(e){this._blur!==e&&(this._blur=e,this.update())},enumerable:!0,configurable:!0}),e.prototype.update=function(){this.onChange&&this.onChange()},e}();t.DropShadow=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(51),n=o(52),r=o(28),s=function(){function e(){this.node=new n.Text,this._enabled=!0,this._padding=new i.Padding(10);var e=this.node;e.textAlign="center",e.textBaseline="top",e.pointerEvents=r.PointerEvents.None}return e.create=function(t){void 0===t&&(t={});var o=new e;return o.text=t.text||"",o.fontStyle=t.fontStyle,o.fontWeight=t.fontWeight||"bold",o.fontSize=t.fontSize||14,o.fontFamily=t.fontFamily||"Verdana, sans-serif",o.color=t.color||"black",o.requestLayout(),o},Object.defineProperty(e.prototype,"text",{get:function(){return this.node.text},set:function(e){this.node.text!==e&&(this.node.text=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this.node.fontStyle},set:function(e){this.node.fontStyle!==e&&(this.node.fontStyle=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this.node.fontWeight},set:function(e){this.node.fontWeight!==e&&(this.node.fontWeight=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this.node.fontSize},set:function(e){this.node.fontSize!==e&&(this.node.fontSize=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.node.fontFamily},set:function(e){this.node.fontFamily!==e&&(this.node.fontFamily=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.node.fill||""},set:function(e){this.node.fill!==e&&(this.node.fill=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled!==e&&(this._enabled=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.requestLayout())},enumerable:!0,configurable:!0}),e.prototype.requestLayout=function(){this.onLayoutChange&&this.onLayoutChange()},e}();t.Caption=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(229),r=function(){function e(e){this.chartProxyParams=e}return e.prototype.getChart=function(){return this.chart},e.prototype.getLabelColor=function(){return this.chartProxyParams.isDarkTheme()?e.darkLabelColour:e.lightLabelColour},e.prototype.getAxisGridColor=function(){return this.chartProxyParams.isDarkTheme()?e.darkAxisColour:e.lightAxisColour},e.prototype.getBackgroundColor=function(){return this.chartProxyParams.isDarkTheme()?"#2d3436":"white"},e.prototype.initChartOptions=function(e,t){if(this.chartProxyParams.processChartOptions){var o={type:e,options:t},i=this.chartProxyParams.processChartOptions(o);this.overridePalette(i),this.chartOptions=i}else this.chartOptions=t;this.chartOptions.parent=this.chartProxyParams.parentElement,this.chartOptions.width=this.chartProxyParams.width,this.chartOptions.height=this.chartProxyParams.height},e.prototype.overridePalette=function(e){var t=e.seriesDefaults,o=this.chartProxyParams.getSelectedPalette(),i=o.fills,n=o.strokes,r=t.fills!==i,s=t.strokes!==n;(r||s)&&(this.overriddenPalette={fills:r&&t.fills?t.fills:i,strokes:s&&t.strokes?t.strokes:n})},e.prototype.setChartPaddingProperty=function(e,t){var o=this.chart.padding;o[e]=t,this.chart.padding=o,this.chartOptions.padding=o,this.raiseChartOptionsChangedEvent()},e.prototype.getChartPadding=function(e){return this.chartOptions.padding?""+this.chartOptions.padding[e]:""},e.prototype.setLegendProperty=function(e,t){this.chart.legend[e]=t,this.chartOptions.legend||(this.chartOptions.legend={}),this.chartOptions.legend[e]=t,this.raiseChartOptionsChangedEvent()},e.prototype.getLegendProperty=function(e){return this.chartOptions.legend?""+this.chartOptions.legend[e]:""},e.prototype.getLegendEnabled=function(){return!!this.chartOptions.legend&&!!this.chartOptions.legend.enabled},e.prototype.setLegendPadding=function(e){this.chart.legendPadding=e,this.chartOptions.legendPadding=e,this.raiseChartOptionsChangedEvent()},e.prototype.getLegendPadding=function(){return""+this.chartOptions.legendPadding},e.prototype.setLegendPosition=function(e){this.chart.legendPosition=e,this.chartOptions.legendPosition=e,this.raiseChartOptionsChangedEvent()},e.prototype.getLegendPosition=function(){return""+this.chartOptions.legendPosition},e.prototype.setTitleProperty=function(e,t){this.chart.title||(this.chart.title={}),this.chart.title[e]=t,this.chartOptions.title||(this.chartOptions.title={}),this.chartOptions.title[e]=t,this.raiseChartOptionsChangedEvent()},e.prototype.getTitleProperty=function(e){return this.chart.title?""+this.chart.title[e]:""},e.prototype.getShadowEnabled=function(){var e=this.chartOptions;return!(!e.seriesDefaults||!e.seriesDefaults.shadow||!e.seriesDefaults.shadow.enabled)},e.prototype.getShadowProperty=function(e){var t=this.chartOptions;return t.seriesDefaults&&t.seriesDefaults.shadow?t.seriesDefaults.shadow[e]:""},e.prototype.setShadowProperty=function(e,t){this.getChart().series.forEach((function(o){o.shadow||(o.shadow=new n.DropShadow({enabled:!1,blur:0,xOffset:0,yOffset:0,color:"rgba(0,0,0,0.5)"})),o.shadow[e]=t}));var o=this.chartOptions;o.seriesDefaults||(o.seriesDefaults={}),o.seriesDefaults.shadow||(o.seriesDefaults.shadow={}),o.seriesDefaults.shadow[e]=t,this.raiseChartOptionsChangedEvent()},e.prototype.raiseChartOptionsChangedEvent=function(){var e={type:i.Events.EVENT_CHART_OPTIONS_CHANGED,chartType:this.chartProxyParams.chartType,chartOptions:this.chartOptions};this.chartProxyParams.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.chart.destroy()},e.darkLabelColour="rgb(221, 221, 221)",e.lightLabelColour="rgb(87, 87, 87)",e.darkAxisColour="rgb(100, 100, 100)",e.lightAxisColour="rgb(219, 219, 219)",e}();t.ChartProxy=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getLabelEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.labelEnabled},t}(o(231).ChartProxy);t.PolarChartProxy=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(166),p=o(109),u=function(e){function t(o,i){var n=e.call(this,t.TEMPLATE)||this;return n.allowDragging=o,n.params=i,n}return n(t,e),t.prototype.init=function(){this.primaryColsHeaderPanel.init(this.params),this.primaryColsListPanel.init(this.params,this.allowDragging);var e=this.params.suppressColumnFilter,t=this.params.suppressColumnSelectAll;this.params.suppressColumnExpandAll&&e&&t&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"selectAll",this.onSelectAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"unselectAll",this.onUnselectAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"filterChanged",this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.primaryColsListPanel,"groupExpanded",this.onGroupExpanded.bind(this))},t.prototype.onFilterChanged=function(e){this.primaryColsListPanel.setFilterText(e.filterText)},t.prototype.onSelectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!0)},t.prototype.onUnselectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!1)},t.prototype.onExpandAll=function(){this.primaryColsListPanel.doSetExpandedAll(!0)},t.prototype.onCollapseAll=function(){this.primaryColsListPanel.doSetExpandedAll(!1)},t.prototype.onGroupExpanded=function(e){this.primaryColsHeaderPanel.setExpandState(e.state)},t.TEMPLATE='<div class="ag-column-select-panel">\n <ag-primary-cols-header ref="primaryColsHeaderPanel"></ag-primary-cols-header>\n <ag-primary-cols-list ref="primaryColsListPanel"></ag-primary-cols-list>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("primaryColsHeaderPanel"),s("design:type",p.PrimaryColsHeaderPanel)],t.prototype,"primaryColsHeaderPanel",void 0),r([a.RefSelector("primaryColsListPanel"),s("design:type",l.PrimaryColsListPanel)],t.prototype,"primaryColsListPanel",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.PrimaryColsPanel=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(e){function t(t){var o=e.call(this,{columnController:t.columnController,valueService:t.valueService,gridOptionsWrapper:t.gridOptionsWrapper,processCellCallback:t.processCellCallback,processHeaderCallback:t.processHeaderCallback,cellAndHeaderEscaper:function(e){return e}})||this;o.mixedStyles={},o.mixedStyleCounter=0,o.rows=[];var i=t.sheetName,n=t.excelFactory,r=t.baseExcelStyles,s=t.styleLinker,a=t.suppressTextAsCDATA,l=t.rowHeight,p=t.headerRowHeight;return o.sheetName=i,o.excelFactory=n,o.baseExcelStyles=r||[],o.styleLinker=s,o.suppressTextAsCDATA=a,o.stylesByIds={},o.rowHeight=l,o.headerRowHeight=p,o.baseExcelStyles.forEach((function(e){o.stylesByIds[e.id]=e})),o.excelStyles=o.baseExcelStyles.slice(),o}return n(t,e),t.prototype.addCustomHeader=function(e){this.customHeader=e},t.prototype.addCustomFooter=function(e){this.customFooter=e},t.prototype.prepare=function(e){this.cols=r._.map(e,(function(e){return e.getColDef().cellStyle,{width:e.getActualWidth()}}))},t.prototype.onNewHeaderGroupingRow=function(){var e=[],t=this;return this.rows.push({cells:e,height:this.headerRowHeight}),{onColumn:function(o,i,n){var s=t.styleLinker(r.RowType.HEADER_GROUPING,1,i,"grouping-"+o,void 0,void 0);e.push(t.createMergedCell(s&&s.length>0?s[0]:void 0,"String",o,n))}}},t.prototype.onNewHeaderRow=function(){return this.onNewRow(this.onNewHeaderColumn,this.headerRowHeight)},t.prototype.onNewBodyRow=function(){return this.onNewRow(this.onNewBodyColumn,this.rowHeight)},t.prototype.onNewRow=function(e,t){var o=[];return this.rows.push({cells:o,height:t}),{onColumn:e.bind(this,this.rows.length,o)()}},t.prototype.onNewHeaderColumn=function(e,t){var o=this,i=this;return function(n,s,a){var l=o.extractHeaderValue(n),p=i.styleLinker(r.RowType.HEADER,e,s,l,n,void 0);t.push(o.createCell(p&&p.length>0?p[0]:void 0,"String",l))}},t.prototype.parse=function(){var e,t,o,i,n=[{name:this.sheetName,table:{columns:this.cols,rows:(e=this.customHeader,t=this.rows,o=this.customFooter,i=[],e&&e.forEach((function(e){return i.push({cells:e})})),t.forEach((function(e){return i.push(e)})),o&&o.forEach((function(e){return i.push({cells:e})})),i)}}];return this.excelFactory.createExcel(this.excelStyles,n,[])},t.prototype.onNewBodyColumn=function(e,t){var o=this,i=this;return function(n,s,a){var l,p=o.extractRowCellValue(n,s,r.Constants.EXPORT_TYPE_EXCEL,a),u=i.styleLinker(r.RowType.BODY,e,s,p,n,a);if(u&&1==u.length)l=u[0];else if(u&&u.length>1){var c=u.join("-");o.mixedStyles[c]||o.addNewMixedStyle(u),l=o.mixedStyles[c].excelID}var d=r._.isNumeric(p)?"Number":"String";t.push(i.createCell(l,d,p))}},t.prototype.addNewMixedStyle=function(e){var t=this;this.mixedStyleCounter+=1;var o="mixedStyle"+this.mixedStyleCounter,i={};e.forEach((function(e){t.excelStyles.forEach((function(t){t.id===e&&r._.mergeDeep(i,r._.deepCloneObject(t))}))})),i.id=o,i.name=o;var n=e.join("-");this.mixedStyles[n]={excelID:o,key:n,result:i},this.excelStyles.push(i),this.stylesByIds[o]=i},t.prototype.styleExists=function(e){return null!=e&&this.stylesByIds[e]},t.prototype.createCell=function(e,t,o){var i,n=e&&this.stylesByIds[e],s=void 0!==n,a=function(){if(s&&n.dataType)switch(n.dataType){case"string":return"String";case"number":return"Number";case"dateTime":return"DateTime";case"error":return"Error";case"boolean":return"Boolean";default:console.warn("ag-grid: Unrecognized data type for excel export ["+n.id+".dataType="+n.dataType+"]")}return t}();return{styleId:s?e:void 0,data:{type:a,value:"String"===a?(i=o,this.suppressTextAsCDATA?r._.escape(i):"<![CDATA["+i+"]]>"):"Number"===a?Number(o).valueOf()+"":"Boolean"===a?function(e){return e&&"0"!==e&&"false"!==e?"1":"0"}(o):o}}},t.prototype.createMergedCell=function(e,t,o,i){return{styleId:this.styleExists(e)?e:void 0,data:{type:t,value:o},mergeAcross:i}},t}(r.BaseGridSerializingSession);t.ExcelXmlSerializingSession=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){return{name:"numFmt",properties:{rawMap:{formatCode:e.formatCode,numFmtId:e.numFmtId}}}}},t.numberFormatMap={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.size,o=void 0===t?14:t,i=e.colorTheme,n=e.color,r=void 0===n?"00000000":n,s=e.name,a=void 0===s?"Calibri":s,l=e.family,p=e.scheme,u=e.italic,c=e.bold,d=e.strike,h=e.outline,f=e.shadow,g=e.underline,y=[{name:"sz",properties:{rawMap:{val:o}}},{name:"color",properties:{rawMap:{theme:i,rgb:r}}},{name:"name",properties:{rawMap:{val:a}}}];if(l&&y.push({name:"family",properties:{rawMap:{val:l}}}),p&&y.push({name:"scheme",properties:{rawMap:{val:p}}}),u&&y.push({name:"i"}),c&&y.push({name:"b"}),d&&y.push({name:"strike"}),h&&y.push({name:"outline"}),f&&y.push({name:"shadow"}),g){var m=g.toLocaleLowerCase();y.push({name:"u",properties:{rawMap:{val:"double"===m?"double":"single"}}})}return{name:"font",children:y}}},t.getFamilyId=function(e){var t=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(t,0)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(177),n=function(e){return{name:"color",properties:{rawMap:{rgb:i.convertLegacyColor(e||"#000000")}}}},r={getTemplate:function(e){var t=e.left,o=e.right,i=e.top,r=e.bottom,s=e.diagonal,a=t?[n(t.color)]:void 0,l=o?[n(o.color)]:void 0,p=i?[n(i.color)]:void 0,u=r?[n(r.color)]:void 0,c=s?[n(s.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t&&t.style}},children:a},{name:"right",properties:{rawMap:{style:o&&o.style}},children:l},{name:"top",properties:{rawMap:{style:i&&i.style}},children:p},{name:"bottom",properties:{rawMap:{style:r&&r.style}},children:u},{name:"diagonal",properties:{rawMap:{style:s&&s.style}},children:c}]}}};t.default=r;var s={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot"},a=["Dashed","DashDot","DashDotDot"];t.convertLegacyBorder=function(e,t){var o,i=1===(o=t)?"thin":2===o?"medium":3===o?"thick":"hair",n=s[e];return e?"Continuous"===e?i:"medium"===i&&a.indexOf(n)>0?"medium"+n:n.charAt(0).toLowerCase()+n.substr(1):"thin"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(370),n=o(371),r={getTemplate:function(e){var t=e.alignment,o=e.borderId,r=e.fillId,s=e.fontId,a=e.numFmtId,l=e.protection,p=e.xfId,u=[];return t&&u.push(i.default.getTemplate(t)),l&&u.push(n.default.getTemplate(l)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:l?1:void 0,applyBorder:o?1:void 0,borderId:o,fillId:r,applyFont:s?1:void 0,fontId:s,applyNumberFormat:a?1:void 0,numFmtId:a,xfId:p}},children:u.length?u:void 0}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(378),r=o(379),s=o(381),a=function(e,o){var i=[];return e.forEach((function(e,n){var r,s=e.cells,a=0;e.index=n+1,s.forEach((function(e,s){var l=s+a+1,p=t.getExcelColumnName(l),u=n+1;if(e.mergeAcross){a+=e.mergeAcross;var c=t.getExcelColumnName(s+a+1);i.push(""+p+u+":"+c+u)}o[l-1]||(o[l-1]={}),function(e,t,o,i){if(!e.min)return e.min=t,void(e.max=t+o);var n=t;i&&(n=Math.max(n,i.min)),e.min=Math.max(e.min,n),e.max=Math.max(e.max,n+o)}(o[l-1],l,a,r),r=o[l-1],e.ref=""+p+u}))})),i};t.getExcelColumnName=function(e){var o=String.fromCharCode,i=Math.floor(e/26),n=e%26;return i&&26!==e?n?i<26?o(65+i-1)+o(65+n-1):t.getExcelColumnName(i)+o(65+n-1):t.getExcelColumnName(i-1)+"Z":o(65+e-1)};var l={getTemplate:function(e){var t=e.table,o=t.rows,l=t.columns,p=l&&l.length?a(o,l):[],u=[];return l.length&&u.push({name:"cols",children:i._.map(l,n.default.getTemplate)}),o.length&&u.push({name:"sheetData",children:i._.map(o,r.default.getTemplate)}),p.length&&u.push({name:"mergeCells",properties:{rawMap:{count:p.length}},children:i._.map(p,s.default.getTemplate)}),{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:u}}};t.default=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(1),p=o(384),u=o(241),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.ensureRowHeightsValid=function(e,t,o,i){return!1},t.prototype.postConstruct=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners();var e=this.gridOptionsWrapper.getServerSideDatasource();l._.exists(e)&&this.setDatasource(e)},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)},t.prototype.setBeans=function(e){this.logger=e.create("ServerSideRowModel")},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this))},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,this.reset()},t.prototype.isLastRowFound=function(){return!!this.cacheExists()&&this.rootNode.childrenCache.isMaxRowFound()},t.prototype.onColumnEverything=function(){if(!this.gridOptionsWrapper.isSuppressEnterpriseResetOnNewColumns()){var e;if(this.cacheParams){var t=this.toValueObjects(this.columnController.getRowGroupColumns()),o=this.toValueObjects(this.columnController.getValueColumns()),i=this.toValueObjects(this.columnController.getPivotColumns()),n=!l._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel()),r=!l._.jsonEquals(this.cacheParams.rowGroupCols,t),s=!l._.jsonEquals(this.cacheParams.pivotCols,i),a=!l._.jsonEquals(this.cacheParams.valueCols,o);e=n||r||s||a}else e=!0;e&&this.reset()}},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.findChangedColumnsInSort=function(e,t){var o=[];return[e,t].forEach((function(e){if(e){var t=e.map((function(e){return e.colId}));o=o.concat(t)}})),o.filter((function(o){var i=l._.find(t,(function(e){return e.colId===o})),n=l._.find(e,(function(e){return e.colId===o}));return function(e,t){return(e?e.sort:null)!==(t?t.sort:null)}(i,n)||function(o,i){return t.indexOf(o)!==e.indexOf(i)}(i,n)}))},t.prototype.onSortChanged=function(){if(this.cacheExists()){var e=this.extractSortModel(),t=this.cacheParams.sortModel,o=this.findChangedColumnsInSort(e,t);this.cacheParams.sortModel=e;var i=this.columnController.getRowGroupColumns().map((function(e){return e.getId()})),n=this.rootNode.childrenCache,r=this.isSortingWithValueColumn(o),s=this.isSortingWithSecondaryColumn(o);this.gridOptionsWrapper.isServerSideSortingAlwaysResets()||r||s?this.reset():n.refreshCacheAfterSort(o,i)}},t.prototype.onValueChanged=function(){this.reset()},t.prototype.onColumnRowGroupChanged=function(){this.reset()},t.prototype.onColumnPivotChanged=function(){this.reset()},t.prototype.onPivotModeChanged=function(){this.reset()},t.prototype.onRowGroupOpened=function(e){var t=e.node;t.expanded?t.master?this.createDetailNode(t):l._.missing(t.childrenCache)&&this.createNodeCache(t):this.gridOptionsWrapper.isPurgeClosedRowNodes()&&l._.exists(t.childrenCache)&&(t.childrenCache.destroy(),t.childrenCache=null),this.updateRowIndexesAndBounds();var o,i={type:l.Events.EVENT_MODEL_UPDATED,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),newPage:!1,newData:!1,animate:(o=this.gridOptionsWrapper.isAnimateRows(),t.master?o&&t.expanded:o),keepRenderedRows:!0};this.eventService.dispatchEvent(i)},t.prototype.reset=function(){this.rootNode=new l.RowNode,this.rootNode.group=!0,this.rootNode.level=-1,this.getContext().wireBean(this.rootNode),this.datasource&&(this.createNewRowNodeBlockLoader(),this.cacheParams=this.createCacheParams(),this.createNodeCache(this.rootNode),this.updateRowIndexesAndBounds());var e={type:l.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e);var t={type:l.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1};this.eventService.dispatchEvent(t)},t.prototype.createNewRowNodeBlockLoader=function(){this.destroyRowNodeBlockLoader();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new l.RowNodeBlockLoader(e,t),this.getContext().wireBean(this.rowNodeBlockLoader)},t.prototype.destroyRowNodeBlockLoader=function(){this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=void 0)},t.prototype.toValueObjects=function(e){var t=this;return e.map((function(e){return{id:e.getId(),aggFunc:e.getAggFunc(),displayName:t.columnController.getDisplayNameForColumn(e,"model"),field:e.getColDef().field}}))},t.prototype.createCacheParams=function(){var e=this.toValueObjects(this.columnController.getRowGroupColumns()),t=this.toValueObjects(this.columnController.getValueColumns()),o=this.toValueObjects(this.columnController.getPivotColumns()),i=this.gridOptionsWrapper.isDynamicRowHeight(),n=this.gridOptionsWrapper.getMaxBlocksInCache();i&&n>=0&&(console.warn("ag-Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled."),n=void 0),n>=0&&this.columnController.isAutoRowHeightActive()&&(console.warn("ag-Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled."),n=void 0);var r={valueCols:t,rowGroupCols:e,pivotCols:o,pivotMode:this.columnController.isPivotMode(),filterModel:this.filterManager.getFilterModel(),sortModel:this.extractSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,datasource:this.datasource,lastAccessedSequence:new l.NumberSequence,overflowSize:1,initialRowCount:1,maxConcurrentRequests:this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests()||0,maxBlocksInCache:n,blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.rowHeight,dynamicRowHeight:i};return r.maxConcurrentRequests>=1||(r.maxConcurrentRequests=2),r.blockSize>=1||(r.blockSize=u.ServerSideBlock.DefaultBlockSize),r.initialRowCount>=1||(r.initialRowCount=0),r.overflowSize>=1||(r.overflowSize=1),r},t.prototype.createNodeCache=function(e){var t=new p.ServerSideCache(this.cacheParams,e);this.getContext().wireBean(t),t.addEventListener(l.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this)),e.childrenCache=t},t.prototype.onCacheUpdated=function(){this.updateRowIndexesAndBounds();var e={type:l.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:this.gridOptionsWrapper.isAnimateRows(),keepRenderedRows:!0,newPage:!1,newData:!1};this.eventService.dispatchEvent(e)},t.prototype.updateRowIndexesAndBounds=function(){if(this.cacheExists()){var e=this.rootNode.childrenCache;this.resetRowTops(e),this.setDisplayIndexes(e)}},t.prototype.setDisplayIndexes=function(e){var t=new l.NumberSequence;e.setDisplayIndexes(t,{value:0})},t.prototype.resetRowTops=function(e){var t=new l.NumberSequence;e.forEachNodeDeep((function(e){return e.clearRowTop()}),t)},t.prototype.getRow=function(e){return this.cacheExists()?this.rootNode.childrenCache.getRow(e):null},t.prototype.getRowCount=function(){return this.cacheExists()?this.rootNode.childrenCache.getDisplayIndexEnd():1},t.prototype.getTopLevelRowCount=function(){return this.cacheExists()?this.rootNode.childrenCache.getVirtualRowCount():1},t.prototype.getTopLevelRowDisplayedIndex=function(e){return this.cacheExists()?this.rootNode.childrenCache.getTopLevelRowDisplayedIndex(e):e},t.prototype.getRowBounds=function(e){return this.cacheExists()?this.rootNode.childrenCache.getRowBounds(e):{rowTop:0,rowHeight:this.rowHeight}},t.prototype.getRowIndexAtPixel=function(e){return 0===e?0:this.cacheExists()?this.rootNode.childrenCache.getRowIndexAtPixel(e):0},t.prototype.getCurrentPageHeight=function(){return this.rowHeight*this.getRowCount()},t.prototype.isEmpty=function(){return!1},t.prototype.isRowsToRender=function(){return this.cacheExists()&&this.getRowCount()>0},t.prototype.getType=function(){return l.Constants.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.forEachNode=function(e){this.cacheExists()&&this.rootNode.childrenCache.forEachNodeDeep(e)},t.prototype.executeOnCache=function(e,t){if(this.cacheExists()){var o=this.rootNode.childrenCache.getChildCache(e);o&&t(o)}},t.prototype.purgeCache=function(e){void 0===e&&(e=[]),this.executeOnCache(e,(function(e){return e.purgeCache()}))},t.prototype.getNodesInRangeForSelection=function(e,t){return l._.exists(e)&&e.parent!==t.parent?[]:t.parent.childrenCache.getRowNodesInRange(e,t)},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o),o.detailNode&&o.detailNode.id===e&&(t=o.detailNode)})),t},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.extractSortModel=function(){var e=this.sortController.getSortModel();if(this.gridOptionsWrapper.isTreeData())return e;for(var t=this.toValueObjects(this.columnController.getRowGroupColumns()),o=-1,i=0;i<e.length;++i)if(e[i].colId===l.Constants.GROUP_AUTO_COLUMN_ID){o=i;break}if(o>-1){var n=t.map((function(t){return{colId:t.field,sort:e[o].sort}}));e.splice(o,1);var r=function(t){var i=n[t];if(e.some((function(e){return e.colId===i.colId})))return"continue";e.splice(o++,0,i)};for(i=0;i<n.length;i++)r(i)}if(this.gridOptionsWrapper.isGroupMultiAutoColumn()){var s=l.Constants.GROUP_AUTO_COLUMN_ID+"-";for(i=0;i<e.length;++i)e[i].colId.indexOf(s)>-1&&(e[i].colId=e[i].colId.substr(s.length))}return e},t.prototype.isSortingWithValueColumn=function(e){for(var t=this.columnController.getValueColumns().map((function(e){return e.getColId()})),o=0;o<e.length;o++)if(t.indexOf(e[o])>-1)return!0;return!1},t.prototype.isSortingWithSecondaryColumn=function(e){if(!this.columnController.getSecondaryColumns())return!1;for(var t=this.columnController.getSecondaryColumns().map((function(e){return e.getColId()})),o=0;o<e.length;o++)if(t.indexOf(e[o])>-1)return!0;return!1},t.prototype.cacheExists=function(){return l._.exists(this.rootNode)&&l._.exists(this.rootNode.childrenCache)},t.prototype.createDetailNode=function(e){if(l._.exists(e.detailNode))return e.detailNode;var t=new l.RowNode;this.getContext().wireBean(t),t.detail=!0,t.selectable=!1,t.parent=e,l._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1;var o=this.gridOptionsWrapper.getRowHeightForNode(t).height;return t.rowHeight=o||200,e.detailNode=t,t},t.prototype.isLoading=function(){return!!this.rowNodeBlockLoader&&this.rowNodeBlockLoader.isLoading()},r([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([l.Autowired("filterManager"),s("design:type",l.FilterManager)],t.prototype,"filterManager",void 0),r([l.Autowired("sortController"),s("design:type",l.SortController)],t.prototype,"sortController",void 0),r([l.Autowired("gridApi"),s("design:type",l.GridApi)],t.prototype,"gridApi",void 0),r([l.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("rowRenderer"),s("design:type",l.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),r([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[l.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),r([l.Bean("rowModel")],t)}(l.BeanStub);t.ServerSideRowModel=c},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(1),p=function(e){function t(t,o,i,n){var r=e.call(this,t,i)||this;return r.params=i,r.parentRowNode=o,r.parentCache=n,r.level=o.level+1,r.groupLevel=i.rowGroupCols?r.level<i.rowGroupCols.length:void 0,r.leafGroup=!!i.rowGroupCols&&r.level===i.rowGroupCols.length-1,r}return n(t,e),t.prototype.init=function(){if(this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.usingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),!this.usingTreeData&&this.groupLevel){var t=this.params.rowGroupCols[this.level];this.groupField=t.field,this.rowGroupColumn=this.columnController.getRowGroupColumns()[this.level]}this.createNodeIdPrefix(),e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.setBeans=function(e){this.logger=e.create("ServerSideBlock")},t.prototype.createNodeIdPrefix=function(){for(var e=[],t=this.parentRowNode;t&&t.level>=0;)e.push(t.key),t=t.parent;e.length>0&&(this.nodeIdPrefix=e.reverse().join("-")+"-")},t.prototype.createIdForIndex=function(e){return l._.exists(this.nodeIdPrefix)?this.nodeIdPrefix+e.toString():e.toString()},t.prototype.getNodeIdPrefix=function(){return this.nodeIdPrefix},t.prototype.getRow=function(t){var o=this.getStartRow(),i=this.parentCache.getVirtualRowCount(),n=this.getEndRow(),r=(i<n?i:n)-1;if(l._.missing(r)||l._.missing(o))return console.warn("ag-grid: error: topPointer = "+r+", bottomPointer = "+o),null;for(;;){var s=Math.floor((o+r)/2),a=e.prototype.getRowUsingLocalIndex.call(this,s);if(a.rowIndex===t)return a;if(a.master&&a.expanded&&a.detailNode.rowIndex===t)return a.detailNode;var p=a.childrenCache;if(a.expanded&&p&&p.isDisplayIndexInCache(t))return p.getRow(t);if(a.rowIndex<t)o=s+1;else{if(!(a.rowIndex>t))return console.warn("ag-Grid: error: unable to locate rowIndex = "+t+" in cache"),null;r=s-1}}},t.prototype.setDataAndId=function(e,t,o){var i=this;if(e.stub=!1,l._.exists(t)){var n=this.createIdForIndex(o);if(e.setDataAndId(t,n),e.setRowHeight(this.gridOptionsWrapper.getRowHeightForNode(e).height),this.usingTreeData){var r=this.gridOptionsWrapper.getServerSideGroupKeyFunc();l._.exists(r)&&r&&(e.key=r(e.data));var s=this.gridOptionsWrapper.getIsServerSideGroupFunc();l._.exists(s)&&s&&(e.group=s(e.data))}else if(e.group)e.key=this.valueService.getValue(this.rowGroupColumn,e),null!==e.key&&void 0!==e.key||l._.doOnce((function(){console.warn("null and undefined values are not allowed for server side row model keys"),i.rowGroupColumn&&console.warn("column = "+i.rowGroupColumn.getId()),console.warn("data is ",e.data)}),"ServerSideBlock-CannotHaveNullOrUndefinedForKey");else if(this.usingMasterDetail){var a=this.gridOptionsWrapper.getIsRowMasterFunc();l._.exists(a)&&a?e.master=a(e.data):e.master=!0}}else e.setDataAndId(void 0,void 0),e.key=null;(this.usingTreeData||this.groupLevel)&&(this.setGroupDataIntoRowNode(e),this.setChildCountIntoRowNode(e))},t.prototype.setChildCountIntoRowNode=function(e){var t=this.gridOptionsWrapper.getChildCountFunc();t&&(e.allChildrenCount=t(e.data))},t.prototype.setGroupDataIntoRowNode=function(e){var t=this,o=this.columnController.getGroupDisplayColumns(),i=this.gridOptionsWrapper.isTreeData();o.forEach((function(o){if(i)l._.missing(e.groupData)&&(e.groupData={}),e.groupData[o.getColId()]=e.key;else if(o.isRowGroupDisplayed(t.rowGroupColumn.getId())){var n=t.valueService.getValue(t.rowGroupColumn,e);l._.missing(e.groupData)&&(e.groupData={}),e.groupData[o.getColId()]=n}}))},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();window.setTimeout((function(){e.params.datasource&&e.params.datasource.getRows(t)}),0)},t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.group=this.groupLevel,o.leafGroup=this.leafGroup,o.level=this.level,o.uiLevel=this.level,o.parent=this.parentRowNode,o.stub=!0,o.group&&(o.expanded=!1,o.field=this.groupField,o.rowGroupColumn=this.rowGroupColumn),o},t.prototype.createGroupKeys=function(e){for(var t=[],o=e;o&&o.level>=0;)t.push(o.key),o=o.parent;return t.reverse(),t},t.prototype.isPixelInRange=function(e){return e>=this.blockTop&&e<this.blockTop+this.blockHeight},t.prototype.getRowBounds=function(e,t){for(var o=this.getStartRow(),i=this.getEndRow(),n=function(e){return{rowHeight:e.rowHeight,rowTop:e.rowTop}},r=o;r<=i;r++)if(!(r>=t)){var s=this.getRowUsingLocalIndex(r);if(s){if(s.rowIndex===e)return n(s);if(s.group&&s.expanded&&l._.exists(s.childrenCache)){var a=s.childrenCache;if(a.isDisplayIndexInCache(e))return a.getRowBounds(e)}else if(s.master&&s.expanded&&l._.exists(s.detailNode)&&s.detailNode.rowIndex===e)return n(s.detailNode)}}return console.error(" ag-Grid: looking for invalid row index in Server Side Row Model, index="+e),null},t.prototype.getRowIndexAtPixel=function(e,t){for(var o=this.getStartRow(),i=this.getEndRow(),n=o;n<=i;n++)if(!(n>=t)){var r=this.getRowUsingLocalIndex(n);if(r){if(r.isPixelInRange(e))return r.rowIndex;if(r.master&&r.expanded&&r.detailNode.isPixelInRange(e))return r.detailNode.rowIndex;if(r.group&&r.expanded&&l._.exists(r.childrenCache)){var s=r.childrenCache;if(s.isPixelInRange(e))return s.getRowIndexAtPixel(e)}}}return console.warn("ag-Grid: invalid pixel range for server side block "+e),0},t.prototype.clearRowTops=function(e){this.forEachRowNode(e,(function(e){e.clearRowTop(),e.group&&l._.exists(e.childrenCache)&&e.childrenCache.clearRowTops()}))},t.prototype.setDisplayIndexes=function(e,t,o){this.displayIndexStart=e.peek(),this.blockTop=o.value,this.forEachRowNode(t,(function(t){if(t.setRowIndex(e.next()),t.setRowTop(o.value),o.value+=t.rowHeight,t.master&&t.expanded&&(t.detailNode.setRowIndex(e.next()),t.detailNode.setRowTop(o.value),o.value+=t.detailNode.rowHeight),t.group&&l._.exists(t.childrenCache)){var i=t.childrenCache;t.expanded?i.setDisplayIndexes(e,o):i.clearRowTops()}})),this.displayIndexEnd=e.peek(),this.blockHeight=o.value-this.blockTop},t.prototype.forEachRowNode=function(e,t){for(var o=this.getStartRow(),i=this.getEndRow(),n=o;n<=i;n++)if(!(n>=e)){var r=this.getRowUsingLocalIndex(n);r&&t(r)}},t.prototype.createLoadParams=function(){var e=this.createGroupKeys(this.parentRowNode),t={startRow:this.getStartRow(),endRow:this.getEndRow(),rowGroupCols:this.params.rowGroupCols,valueCols:this.params.valueCols,pivotCols:this.params.pivotCols,pivotMode:this.params.pivotMode,groupKeys:e,filterModel:this.params.filterModel,sortModel:this.params.sortModel};return{successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),request:t,parentNode:this.parentRowNode}},t.prototype.isDisplayIndexInBlock=function(e){return e>=this.displayIndexStart&&e<this.displayIndexEnd},t.prototype.isBlockBefore=function(e){return e>=this.displayIndexEnd},t.prototype.getDisplayIndexStart=function(){return this.displayIndexStart},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.getBlockHeight=function(){return this.blockHeight},t.prototype.getBlockTop=function(){return this.blockTop},t.prototype.isGroupLevel=function(){return this.groupLevel},t.prototype.getGroupField=function(){return this.groupField},t.DefaultBlockSize=100,r([l.Autowired("rowRenderer"),s("design:type",l.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([l.Autowired("valueService"),s("design:type",l.ValueService)],t.prototype,"valueService",void 0),r([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),r([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[l.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),t}(l.RowNodeBlock);t.ServerSideBlock=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(112),p=o(113),u=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.postConstruct=function(){this.setGui(this.createNorthPanel()),this.eventService.addEventListener(a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onRowGroupChanged.bind(this)),this.onRowGroupChanged()},t.prototype.createNorthPanel=function(){var e=this,t=document.createElement("div"),o=this.onDropPanelVisible.bind(this);return this.rowGroupComp=new l.RowGroupDropZonePanel(!0),this.getContext().wireBean(this.rowGroupComp),this.addDestroyFunc((function(){return e.rowGroupComp.destroy()})),this.pivotComp=new p.PivotDropZonePanel(!0),this.getContext().wireBean(this.pivotComp),this.addDestroyFunc((function(){return e.pivotComp.destroy()})),t.appendChild(this.rowGroupComp.getGui()),t.appendChild(this.pivotComp.getGui()),this.rowGroupComp.addEventListener(a.Component.EVENT_DISPLAYED_CHANGED,o),this.pivotComp.addEventListener(a.Component.EVENT_DISPLAYED_CHANGED,o),this.addDestroyFunc((function(){e.rowGroupComp.removeEventListener(a.Component.EVENT_DISPLAYED_CHANGED,o),e.pivotComp.removeEventListener(a.Component.EVENT_DISPLAYED_CHANGED,o)})),this.onDropPanelVisible(),t},t.prototype.onDropPanelVisible=function(){var e=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed();this.rowGroupComp.addOrRemoveCssClass("ag-width-half",e),this.pivotComp.addOrRemoveCssClass("ag-width-half",e)},t.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var e=this.gridOptionsWrapper.getRowGroupPanelShow();if(e===a.Constants.ALWAYS)this.rowGroupComp.setDisplayed(!0);else if(e===a.Constants.ONLY_WHEN_GROUPING){var t=!this.columnController.isRowGroupEmpty();this.rowGroupComp.setDisplayed(t)}else this.rowGroupComp.setDisplayed(!1)}},r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.GridHeaderDropZones=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(21),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changedCell=!1,t.dragging=!1,t.shouldDestroyOnEndDragging=!1,t}return n(t,e),t.prototype.init=function(){var e=this;this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:function(t){e.dragging=!0,e.rangeController.autoScrollService.check(t),e.changedCell&&e.onDrag(t)},onDragStop:function(t){e.dragging=!1,e.onDragEnd(t),e.clearValues(),e.rangeController.autoScrollService.ensureCleared(),a._.removeCssClass(document.body,"ag-dragging-"+e.type+"-handle"),e.shouldDestroyOnEndDragging&&e.destroy()}}),this.addDestroyableEventListener(this.getGui(),"mousedown",this.preventRangeExtension.bind(this))},t.prototype.isDragging=function(){return this.dragging},t.prototype.getCellComp=function(){return this.cellComp},t.prototype.setCellComp=function(e){this.cellComp=e},t.prototype.getCellRange=function(){return this.cellRange},t.prototype.setCellRange=function(e){this.cellRange=e},t.prototype.getRangeStartRow=function(){return this.rangeStartRow},t.prototype.setRangeStartRow=function(e){this.rangeStartRow=e},t.prototype.getRangeEndRow=function(){return this.rangeEndRow},t.prototype.setRangeEndRow=function(e){this.rangeEndRow=e},t.prototype.getLastCellHovered=function(){return this.lastCellHovered},t.prototype.preventRangeExtension=function(e){e.preventDefault(),e.stopPropagation()},t.prototype.onDragStart=function(e){this.cellHoverListener=this.addDestroyableEventListener(this.rowRenderer.getGridCore().getRootGui(),"mousemove",this.updateLastCellPositionHovered.bind(this)),a._.addCssClass(document.body,"ag-dragging-"+this.type+"-handle")},t.prototype.updateLastCellPositionHovered=function(e){var t=this.mouseEventService.getCellPositionForEvent(e);t!==this.lastCellHovered?(this.lastCellHovered=t,this.changedCell=!0):this.changedCell=!1},t.prototype.getType=function(){return this.type},t.prototype.refresh=function(e){var t=this,o=this.getCellComp(),i=this.getGui(),n=a._.last(this.rangeController.getCellRanges()),r=n.startRow,s=n.endRow;r&&s&&(this.rowPositionUtils.before(s,r)?(this.setRangeStartRow(s),this.setRangeEndRow(r)):(this.setRangeStartRow(r),this.setRangeEndRow(s))),o!==e&&(this.setCellComp(e),window.setTimeout((function(){t.isAlive()&&e.appendChild(i)}),1)),this.setCellRange(n)},t.prototype.clearValues=function(){this.lastCellHovered=void 0,this.removeListeners()},t.prototype.removeListeners=function(){this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0)},t.prototype.destroy=function(){if(!this.shouldDestroyOnEndDragging&&this.isDragging())return a._.setDisplayed(this.getGui(),!1),void(this.shouldDestroyOnEndDragging=!0);this.shouldDestroyOnEndDragging=!1,e.prototype.destroy.call(this),this.removeListeners();var t=this.getGui();t.parentElement&&t.parentElement.removeChild(t)},r([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),r([a.Autowired("dragService"),s("design:type",a.DragService)],t.prototype,"dragService",void 0),r([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),r([a.Autowired("mouseEventService"),s("design:type",a.MouseEventService)],t.prototype,"mouseEventService",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("cellNavigationService"),s("design:type",a.CellNavigationService)],t.prototype,"cellNavigationService",void 0),r([a.Autowired("rowPositionUtils"),s("design:type",a.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.AbstractSelectionHandle=p},function(e,t,o){o(245),o(326);var i=o(385);Object.keys(i).forEach((function(e){t[e]=i[e]}));var n=o(1);Object.keys(n).forEach((function(e){t[e]=n[e]}))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(285),r=o(13);t.ChartsModule={moduleName:"chartsModule",enterpriseBeans:[n.ChartService,r.ChartTranslator],enterpriseComponents:[]},i.Grid.addModule([t.ChartsModule])},function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":_typeof2(window))&&(o=window)}e.exports=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o,i){void 0===i&&(i=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,o||0)),this.a=Math.min(1,Math.max(0,i||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var o=e.nameToHex[t];if(o)return e.fromHexString(o);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var o=t.match(e.hexRe);if(o)return new e((i=parseInt(o[1],16))/255,(n=parseInt(o[2],16))/255,(r=parseInt(o[3],16))/255,(s=void 0!==o[4]?parseInt(o[4],16):255)/255);if(o=t.match(e.shortHexRe)){var i=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16),s=void 0!==o[4]?parseInt(o[4],16):15;return new e((i+=16*i)/255,(n+=16*n)/255,(r+=16*r)/255,(s+=16*s)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var o=t.match(e.rgbRe);if(o)return new e(+o[1]/255,+o[2]/255,+o[3]/255);if(o=t.match(e.rgbaRe))return new e(+o[1]/255,+o[2]/255,+o[3]/255,+o[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,o,i,n){void 0===n&&(n=1);var r=e.HSBtoRGB(t,o,i);return new e(r[0],r[1],r[2],n)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],o=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*o)/o),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,o){var i=Math.min(e,t,o),n=Math.max(e,t,o),r=NaN;if(i!==n){var s=n-i,a=(n-e)/s,l=(n-t)/s,p=(n-o)/s;r=e===n?p-l:t===n?2+a-p:4+l-a,(r/=6)<0&&(r+=1)}return[360*r,0!==n?(n-i)/n:0,n]},e.HSBtoRGB=function(e,t,o){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var i=0,n=0,r=0;if(0===t)i=n=r=o;else{var s=6*(e-Math.floor(e)),a=s-Math.floor(s),l=o*(1-t),p=o*(1-t*a),u=o*(1-t*(1-a));switch(s>>0){case 0:i=o,n=u,r=l;break;case 1:i=p,n=o,r=l;break;case 2:i=l,n=o,r=u;break;case 3:i=l,n=p,r=o;break;case 4:i=u,n=l,r=o;break;case 5:i=o,n=l,r=p}}return[i,n,r]},e.prototype.derive=function(t,o,i,n){var r=e.RGBtoHSB(this.r,this.g,this.b),s=r[2];0==s&&i>1&&(s=.05);var a=((r[0]+t)%360+360)%360,l=Math.max(Math.min(r[1]*o,1),0);s=Math.max(Math.min(s*i,1),0);var p=Math.max(Math.min(this.a*n,1),0),u=e.HSBtoRGB(a,l,s);return u.push(p),e.fromArray(u)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({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",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",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",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",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:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",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",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();t.Color=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(7),n=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,r=/([^\s,]+)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},a=/[&<>"']/g,l=function(){function e(){}return e.doIeFocusHack=function(e){(t._.isBrowserIE()||t._.isBrowserEdge())&&(t._.missing(document.activeElement)||document.activeElement===document.body)&&e.focus()},e.doOnce=function(e,t){this.doOnceFlags[t]||(e(),this.doOnceFlags[t]=!0)},e.isLeftClick=function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},e.areEventsNear=function(e,t,o){if(0===o)return!1;var i=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(i,n)<=o},e.jsonEquals=function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},e.shallowCompare=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t))return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.getNameOfClass=function(e){var t=e.toString(),o=/function (.{1,})\(/.exec(t);return o&&o.length>1?o[1]:""},e.values=function(e){var t=[];return this.iterateObject(e,(function(e,o){t.push(o)})),t},e.getValueUsingField=function(e,t,o){if(t&&e){if(o){for(var i=t.split("."),n=e,r=0;r<i.length;r++)if(n=n[i[r]],this.missing(n))return null;return n}return e[t]}},e.getElementSize=function(e){var t=window.getComputedStyle(e),o=t.height,i=t.width,n=t.paddingTop,r=t.paddingRight,s=t.paddingBottom,a=t.paddingLeft,l=t.marginTop,p=t.marginRight,u=t.marginBottom,c=t.marginLeft,d=t.boxSizing;return{height:parseFloat(o),width:parseFloat(i),paddingTop:parseFloat(n),paddingRight:parseFloat(r),paddingBottom:parseFloat(s),paddingLeft:parseFloat(a),marginTop:parseFloat(l),marginRight:parseFloat(p),marginBottom:parseFloat(u),marginLeft:parseFloat(c),boxSizing:d}},e.getInnerHeight=function(e){var t=this.getElementSize(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height},e.getInnerWidth=function(e){var t=this.getElementSize(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width},e.getAbsoluteHeight=function(e){var t=this.getElementSize(e),o=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+o)},e.getAbsoluteWidth=function(e){var t=this.getElementSize(e),o=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+o)},e.getScrollLeft=function(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),this.isBrowserChrome()&&(o=e.scrollWidth-e.clientWidth-o)),o},e.cleanNumber=function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},e.setScrollLeft=function(e,t,o){o&&((this.isBrowserSafari()||this.isBrowserChrome())&&(t=e.scrollWidth-e.clientWidth-t),this.isBrowserFirefox()&&(t*=-1)),e.scrollLeft=t},e.iterateNamedNodeMap=function(e,t){if(e)for(var o=0;o<e.length;o++){var i=e[o];t(i.name,i.value)}},e.iterateObject=function(e,t){if(e&&!this.missing(e))if(Array.isArray(e))e.forEach((function(e,o){t(o+"",e)}));else for(var o=Object.keys(e),i=0;i<o.length;i++){var n=o[i],r=e[n];t(n,r)}},e.cloneObject=function(e){for(var t={},o=Object.keys(e),i=0;i<o.length;i++){var n=o[i],r=e[n];t[n]=r}return t},e.deepCloneObject=function(e){return JSON.parse(JSON.stringify(e))},e.map=function(e,t){for(var o=[],i=0;i<e.length;i++){var n=t(e[i],i);o.push(n)}return o},e.mapObject=function(t,o){var i=[];return e.iterateObject(t,(function(e,t){i.push(o(t))})),i},e.forEach=function(e,t){if(e)for(var o=0;o<e.length;o++)t(e[o],o)},e.filter=function(e,t){var o=[];return e.forEach((function(e){t(e)&&o.push(e)})),o},e.getAllKeysInObjects=function(e){var t={};return e.forEach((function(e){e&&Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)},e.mergeDeep=function(t,o){this.exists(o)&&this.iterateObject(o,(function(o,i){var n=t[o];n!==i&&("object"==_typeof2(n)&&"object"==_typeof2(i)?e.mergeDeep(n,i):t[o]=i)}))},e.assign=function(e){for(var t=this,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return o.forEach((function(o){t.exists(o)&&t.iterateObject(o,(function(t,o){e[t]=o}))})),e},e.flatten=function(e){return[].concat.apply([],e)},e.parseYyyyMmDdToDate=function(e,t){try{if(!e)return null;if(-1===e.indexOf(t))return null;var o=e.split(t);return 3!=o.length?null:new Date(Number(o[0]),Number(o[1])-1,Number(o[2]))}catch(e){return null}},e.serializeDateToYyyyMmDd=function(t,o){return t?t.getFullYear()+o+e.pad(t.getMonth()+1,2)+o+e.pad(t.getDate(),2):null},e.pad=function(e,t){for(var o=e+"";o.length<t;)o="0"+o;return o},e.pushAll=function(e,t){this.missing(t)||this.missing(e)||t.forEach((function(t){return e.push(t)}))},e.createArrayOfNumbers=function(e,t){for(var o=[],i=e;i<=t;i++)o.push(i);return o},e.getFunctionParameters=function(e){var t=e.toString().replace(n,""),o=t.slice(t.indexOf("(")+1,t.indexOf(")")).match(r);return null===o?[]:o},e.find=function(e,t,o){if(null==e)return null;if(!Array.isArray(e)){var i=this.values(e);return this.find(i,t,o)}for(var n=e,r=null,s=0;s<n.length;s++){var a=n[s];if("string"==typeof t){if(a[t]===o){r=a;break}}else if(t(a)){r=a;break}}return r},e.toStrings=function(e){return this.map(e,(function(e){return null!=e&&e.toString?e.toString():null}))},e.iterateArray=function(e,t){for(var o=0;o<e.length;o++)t(e[o],o)},e.findIndex=function(e,t){for(var o=0;o<e.length;o++)if(t(e[o],o,e))return o;return-1},e.isNode=function(e){return"function"==typeof Node?e instanceof Node:e&&"object"==_typeof2(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},e.isElement=function(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==_typeof2(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isNodeOrElement=function(e){return this.isNode(e)||this.isElement(e)},e.copyNodeList=function(e){for(var t=e?e.length:0,o=[],i=0;i<t;i++)o.push(e[i]);return o},e.isEventFromPrintableCharacter=function(o){var n=String.fromCharCode(o.charCode);if(this.isKeyPressed(o,i.Constants.KEY_NEW_LINE))return!1;if(o.altKey||o.ctrlKey)return!1;if(t._.exists(o.key)){var r=1===o.key.length,s=e.isNumpadDelWithNumlockOnForEdgeOrIe(o);return r||s}return e.PRINTABLE_CHARACTERS.indexOf(n)>=0},e.isUserSuppressingKeyboardEvent=function(e,t,o,i,n){var r=e.getSuppressKeyboardEventFunc(),s=i.getColDef().suppressKeyboardEvent;if(!r&&!s)return!1;var a={event:t,editing:n,column:i,api:e.getApi(),node:o,data:o.data,colDef:i.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!s||!s(a))||!!r&&r(a)},e.getCellCompForEvent=function(e,t){for(var o=this.getTarget(t);o;){var i=e.getDomData(o,"cellComp");if(i)return i;o=o.parentElement}return null},e.addChangeListener=function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},e.makeNull=function(e){return null==e||""===e?null:e},e.missing=function(e){return!this.exists(e)},e.missingOrEmpty=function(e){return!e||this.missing(e)||0===e.length},e.missingOrEmptyObject=function(e){return this.missing(e)||0===Object.keys(e).length},e.exists=function(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)},e.firstExistingValue=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];for(var i=0;i<e.length;i++){var n=e[i];if(t._.exists(n))return n}return null},e.anyExists=function(e){if(e)for(var t=0;t<e.length;t++)if(this.exists(e[t]))return!0;return!1},e.existsAndNotEmpty=function(e){return null!=e&&this.exists(e)&&e.length>0},e.clearElement=function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)},e.removeElement=function(e,t){this.removeFromParent(e.querySelector(t))},e.removeFromParent=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.isVisible=function(e){return null!==e.offsetParent},e.callIfPresent=function(e){e&&e()},e.loadTemplate=function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild},e.appendHtml=function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},e.addOrRemoveCssClass=function(e,t,o){o?this.addCssClass(e,t):this.removeCssClass(e,t)},e.radioCssClass=function(e,o,i){for(var n=e.parentElement.firstChild;n;)t._.addOrRemoveCssClass(n,o,i?n!==e:n===e),n=n.nextSibling},e.addCssClass=function(e,t){var o=this;if(t&&0!==t.length)if(t.indexOf(" ")>=0)t.split(" ").forEach((function(t){return o.addCssClass(e,t)}));else if(e.classList)e.classList.contains(t)||e.classList.add(t);else if(e.className&&e.className.length>0){var i=e.className.split(" ");i.indexOf(t)<0&&(i.push(t),e.setAttribute("class",i.join(" ")))}else e.setAttribute("class",t)},e.removeCssClass=function(e,t){if(e.classList)e.classList.contains(t)&&e.classList.remove(t);else if(e.className&&e.className.length>0){var o=e.className.split(" ");if(o.indexOf(t)>=0){for(;o.indexOf(t)>=0;)o.splice(o.indexOf(t),1);e.setAttribute("class",o.join(" "))}}},e.containsClass=function(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var o=e.className===t,i=e.className.indexOf(" "+t+" ")>=0,n=0===e.className.indexOf(t+" "),r=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return o||i||n||r}return!1},e.getElementAttribute=function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},e.offsetHeight=function(e){return e&&e.clientHeight?e.clientHeight:0},e.offsetWidth=function(e){return e&&e.clientWidth?e.clientWidth:0},e.sortNumberArray=function(e){e.sort((function(e,t){return e-t}))},e.removeRepeatsFromArray=function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var i=e[o]===t,n=e[o+1]===t;i&&n&&e.splice(o+1,1)}},e.removeFromArray=function(e,t){var o=e.indexOf(t);o>=0&&e.splice(o,1)},e.removeAllFromArray=function(e,t){t.forEach((function(t){var o=e.indexOf(t);o>=0&&e.splice(o,1)}))},e.insertIntoArray=function(e,t,o){e.splice(o,0,t)},e.insertArrayIntoArray=function(e,t,o){if(!this.missing(e)&&!this.missing(t))for(var i=t.length-1;i>=0;i--){var n=t[i];this.insertIntoArray(e,n,o)}},e.moveInArray=function(e,t,o){var i=this;t.forEach((function(t){i.removeFromArray(e,t)})),t.slice().reverse().forEach((function(t){i.insertIntoArray(e,t,o)}))},e.defaultComparator=function(e,t,o){void 0===o&&(o=!1);var i=null==e,n=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),i&&n)return 0;if(i)return-1;if(n)return 1;if("string"==typeof e){if(!o)return r(e,t);try{return e.localeCompare(t)}catch(o){return r(e,t)}}return e<t?-1:e>t?1:0;function r(e,t){return e>t?1:e<t?-1:0}},e.last=function(e){if(e&&e.length)return e[e.length-1]},e.compareArrays=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t)||!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.ensureDomOrder=function(e,t,o){o&&o.nextSibling===t||(o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},e.insertWithDomOrder=function(e,t,o){o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.insertTemplateWithDomOrder=function(e,t,o){var i;return o?(o.insertAdjacentHTML("afterend",t),i=o.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,i=e.firstChild),i},e.every=function(e,t){if(!e||0===e.length)return!0;for(var o=0;o<e.length;o++)if(!t(e[o]))return!1;return!0},e.toStringOrNull=function(e){return this.exists(e)&&e.toString?e.toString():null},e.formatSize=function(e){return"number"==typeof e?e+"px":e},e.formatNumberTwoDecimalPlacesAndCommas=function(e){return"number"!=typeof e?"":(Math.round(100*e)/100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.formatNumberCommas=function(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.prependDC=function(e,t){this.exists(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.createIcon=function(e,t,o){var i=this.createIconNoSpan(e,t,o);if(i.className.indexOf("ag-icon")>-1)return i;var n=document.createElement("span");return n.appendChild(i),n},e.createIconNoSpan=function(e,t,o,i){var n=null,r=o&&o.getColDef().icons;if(r&&(n=r[e]),t&&!n){var s=t.getIcons();s&&(n=s[e])}if(n){var a=void 0;if("function"==typeof n)a=n();else{if("string"!=typeof n)throw new Error("icon from grid options needs to be a string or a function");a=n}if("string"==typeof a)return this.loadTemplate(a);if(this.isNodeOrElement(a))return a;throw new Error("iconRenderer should return back a string or a dom object")}var l=document.createElement("span"),p=this.iconNameClassMap[e];if(!p){if(!i)throw new Error(e+" did not find class");p=e}return l.setAttribute("class","ag-icon ag-icon-"+p),l.setAttribute("unselectable","on"),l},e.addStylesToElement=function(e,t){var o=this;t&&Object.keys(t).forEach((function(i){var n=o.hyphenToCamelCase(i);n&&(e.style[n]=t[i])}))},e.isHorizontalScrollShowing=function(e){return e.clientWidth<e.scrollWidth},e.isVerticalScrollShowing=function(e){return e.clientHeight<e.scrollHeight},e.getMaxDivHeight=function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=this.loadTemplate("<div/>");for(document.body.appendChild(o);;){var i=2*e;if(o.style.height=i+"px",i>t||o.clientHeight!==i)break;e=i}return document.body.removeChild(o),e},e.getScrollbarWidth=function(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var o=t.offsetWidth-t.clientWidth;return t.parentNode&&t.parentNode.removeChild(t),o},e.hasOverflowScrolling=function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),o=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(t);if("touch"===i.overflowScrolling&&(o=!0),!o)for(var n=0,r=e;n<r.length;n++)if("touch"===i[r[n]+"OverflowScrolling"]){o=!0;break}return t.parentNode&&t.parentNode.removeChild(t),o},e.isKeyPressed=function(e,t){return(e.which||e.keyCode)===t},e.isCharacterKey=function(e){var t=e.which;return"number"==typeof t&&t?!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&16!==e.which:void 0===t},e.setDisplayed=function(e,t){this.addOrRemoveCssClass(e,"ag-hidden",!t)},e.setVisible=function(e,t){this.addOrRemoveCssClass(e,"ag-invisible",!t)},e.setElementWidth=function(e,t){"flex"===t?(e.style.width=null,e.style.minWidth=null,e.style.maxWidth=null,e.style.flex="1 1 auto"):this.setFixedWidth(e,t)},e.setFixedWidth=function(e,t){t=this.formatSize(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t},e.setElementHeight=function(e,t){"flex"===t?(e.style.height=null,e.style.minHeight=null,e.style.maxHeight=null,e.style.flex="1 1 auto"):this.setFixedHeight(e,t)},e.setFixedHeight=function(e,t){t=this.formatSize(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t},e.isBrowserIE=function(){return void 0===this.isIE&&(this.isIE=!!document.documentMode),this.isIE},e.isBrowserEdge=function(){return void 0===this.isEdge&&(this.isEdge=!this.isBrowserIE()&&!!window.StyleMedia),this.isEdge},e.isBrowserSafari=function(){if(void 0===this.isSafari){var e=window;this.isSafari=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||!!(t=!e.safari||e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return this.isSafari},e.isBrowserChrome=function(){if(void 0===this.isChrome){var e=window;this.isChrome=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return this.isChrome},e.isBrowserFirefox=function(){if(void 0===this.isFirefox){var e=window;this.isFirefox=void 0!==e.InstallTrigger}return this.isFirefox},e.isUserAgentIPad=function(){return void 0===this.isIPad&&(this.isIPad=null!=navigator.userAgent.match(/iPad|iPhone/i)),this.isIPad},e.getTarget=function(e){var t=e;return t.target||t.srcElement},e.isElementChildOfClass=function(e,t,o){for(var i=0;e;){if(this.containsClass(e,t))return!0;if(e=e.parentElement,o&&++i>o)break}return!1},e.isElementInEventPath=function(e,o){return!(!o||!e)&&t._.getEventPath(o).indexOf(e)>=0},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e.createEventPath=function(e){for(var o=[],i=t._.getTarget(e);i;)o.push(i),i=i.parentElement;return o},e.addAgGridEventPath=function(e){e.__agGridEventPath=this.getEventPath(e)},e.getEventPath=function(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:this.createEventPath(e)},e.forEachSnapshotFirst=function(e,t){e&&e.slice(0).forEach(t)},e.getBodyWidth=function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},e.getBodyHeight=function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1},e.setCheckboxState=function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},e.traverseNodesWithKey=function(e,t){var o=[];!function e(i){i.forEach((function(i){if(i.group||i.hasChildren()){o.push(i.key);var n=o.join("|");t(i,n),e(i.childrenAfterGroup),o.pop()}}))}(e)},e.camelCaseToHyphen=function(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))},e.hyphenToCamelCase=function(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},e.capitalise=function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()},e.cssStyleObjectToMarkup=function(e){var t=this;if(!e)return"";var o=[];return this.iterateObject(e,(function(e,i){var n=t.camelCaseToHyphen(e);o.push(n+": "+i+";")})),o.join(" ")},e.isNumeric=function(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)},e.escape=function(e){return null!=e&&e.replace?e.replace(a,(function(e){return s[e]})):e},e.normalizeWheel=function(e){var t=0,o=0,i=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),i=10*t,n=10*o,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||n)&&e.deltaMode&&(1==e.deltaMode?(i*=40,n*=40):(i*=800,n*=800)),i&&!t&&(t=i<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:i,pixelY:n}},e.debounce=function(e,t,o){var i;return void 0===o&&(o=!1),function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var s=this,a=o&&!i;window.clearTimeout(i),i=window.setTimeout((function(){i=null,o||e.apply(s,n)}),t),a&&e.apply(s,n)}},e.stopPropagationForAgGrid=function(e){e.__ag_Grid_Stop_Propagation=!0},e.isStopPropagationForAgGrid=function(e){return!0===e.__ag_Grid_Stop_Propagation},e.executeInAWhile=function(e){this.executeAfter(e,400)},e.executeNextVMTurn=function(e){this.executeAfter(e,0)},e.executeAfter=function(e,t){e.length>0&&window.setTimeout((function(){e.forEach((function(e){return e()}))}),t)},e.referenceCompare=function(e,t){return null==e&&null==t||(null!=e||!t)&&(!e||null!=t)&&e===t},e.get=function(t,o,i){if(null==t)return i;if(o.indexOf(".")>-1){var n=o.split("."),r=t[n[0]];return null!=r?e.get(r,n.slice(1,n.length).join("."),i):i}var s=t[o];return null!=s?s:i},e.addSafePassiveEventListener=function(t,o,i,n){var r=e.PASSIVE_EVENTS.indexOf(i)>=0?{passive:!0}:void 0;e.OUTSIDE_ANGULAR_EVENTS.indexOf(i)>=0?t.addEventListenerOutsideAngular(o,i,n,r):o.addEventListener(i,n,r)},e.camelCaseToHumanText=function(e){return e&&null!=e?e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" "):null},e.message=function(e){var t=document.createElement("div");t.innerHTML=e;var o=document.querySelector("#__ag__message");o||(o=this.loadTemplate('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(o)),o.insertBefore(t,o.children[0])},e.sortRowNodesByOrder=function(e,t){if(e){for(var o=function(e,o){var i=t[e.id],n=t[o.id],r=void 0!==i,s=void 0!==n;return r&&s?i-n:r||s?r?1:-1:e.__objectId-o.__objectId},i=!1,n=0;n<e.length-1;n++)if(o(e[n],e[n+1])>0){i=!0;break}i&&e.sort(o)}},e.fuzzyCheckStrings=function(e,t,o){var i=this,n={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return n[e]=i.fuzzySuggestions(e,o)})),n},e.fuzzySuggestions=function(e,o,i,n){var r=n?t._.string_weighted_distances:t._.string_distances,s=o.map((function(t){return{value:t,relevance:r(e.toLowerCase(),t.toLocaleLowerCase())}}));return s.sort((function(e,t){return t.relevance-e.relevance})),i&&(s=s.filter((function(e){return 0!==e.relevance}))),s.map((function(e){return e.value}))},e.get_bigrams=function(e){var t,o,i,n=e.toLowerCase(),r=new Array(n.length-1);for(t=o=0,i=r.length;o<=i;t=o+=1)r[t]=n.slice(t,t+2);return r},e.string_distances=function(e,o){if(0===e.length&&0===o.length)return 0;var i,n,r=t._.get_bigrams(e),s=t._.get_bigrams(o),a=r.length+s.length,l=0;for(i=0,n=r.length;i<n;i++){var p,u=r[i],c=void 0;for(c=0,p=s.length;c<p;c++)u===s[c]&&l++}return l>0?2*l/a:0},e.string_weighted_distances=function(e,t){for(var o=e.replace(/\s/g,""),i=t.replace(/\s/g,""),n=0,r=0,s=0;s<o.length;s++){var a=i.indexOf(o[s]);-1!==a&&(r=a,n+=100*(i.length-r)/i.length,n*=n)}return n},e.isNumpadDelWithNumlockOnForEdgeOrIe=function(t){return!(!e.isBrowserEdge()&&!e.isBrowserIE())&&t.key===e.NUMPAD_DEL_NUMLOCK_ON_KEY&&t.charCode===e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE},e.bindCellRendererToHtmlElement=function(e,t){e.then((function(e){var o=e.getGui();null!=o&&("object"==_typeof2(o)?t.appendChild(o):t.innerHTML=o)}))},e.PASSIVE_EVENTS=["touchstart","touchend","touchmove","touchcancel"],e.OUTSIDE_ANGULAR_EVENTS=["mouseover","mouseout","mouseenter","mouseleave"],e.PRINTABLE_CHARACTERS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}",e.NUMPAD_DEL_NUMLOCK_ON_KEY="Del",e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE=46,e.doOnceFlags={},e.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},e.decToHex=function(e,t){for(var o="",i=0;i<t;i++)o+=String.fromCharCode(255&e),e>>>=8;return o},e.utf8_encode=function(e){var t=String.fromCharCode;function o(e,o){return t(e>>o&63|128)}function i(e){if(0==(4294967168&e))return t(e);var i="";return 0==(4294965248&e)?i=t(e>>6&31|192):0==(4294901760&e)?(function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),i=t(e>>12&15|224),i+=o(e,6)):0==(4292870144&e)&&(i=t(e>>18&7|240),i+=o(e,12),i+=o(e,6)),i+t(63&e|128)}for(var n=function(e){for(var t,o,i=[],n=0,r=e.length;n<r;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<r?56320==(64512&(o=e.charCodeAt(n++)))?i.push(((1023&t)<<10)+(1023&o)+65536):(i.push(t),n--):i.push(t);return i}(e),r=n.length,s=-1,a="";++s<r;)a+=i(n[s]);return a},e.iconNameClassMap={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveAdd:"plus",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"expanded",groupExpanded:"contracted",chart:"chart",close:"cross",cancel:"cancel",check:"tick",checkboxChecked:"checkbox-checked",checkboxUnchecked:"checkbox-unchecked",checkboxIndeterminate:"checkbox-indeterminate",checkboxCheckedReadOnly:"checkbox-checked-readonly",checkboxUncheckedReadOnly:"checkbox-unchecked-readonly",checkboxIndeterminateReadOnly:"checkbox-indeterminate-readonly",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",groupLoading:"loading",data:"data",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",smallDown:"small-down",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},e}();t.Utils=l;var p=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();t.NumberSequence=p,t._=l},function(e,t,o){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.RESOLVED=1]="RESOLVED"}(i=t.PromiseStatus||(t.PromiseStatus={}));var n=function(){function e(e){this.status=i.IN_PROGRESS,this.resolution=null,this.listOfWaiters=[],e(this.onDone.bind(this),this.onReject.bind(this))}return e.all=function(t){return new e((function(e){var o=[],i=t.length;t.forEach((function(t,n){t.then((function(t){i--,o[n]=t,0==i&&e(o)})),o.push(null)}))}))},e.resolve=function(t){return new e((function(e){return e(t)}))},e.external=function(){var t;return{promise:new e((function(e){t=e})),resolve:function(e){t(e)}}},e.prototype.then=function(e){this.status===i.IN_PROGRESS?this.listOfWaiters.push(e):e(this.resolution)},e.prototype.firstOneOnly=function(e){this.status===i.IN_PROGRESS?0===this.listOfWaiters.length&&this.listOfWaiters.push(e):e(this.resolution)},e.prototype.map=function(t){var o=this;return new e((function(e){o.then((function(o){e(t(o))}))}))},e.prototype.resolveNow=function(e,t){return this.status==i.IN_PROGRESS?e:t(this.resolution)},e.prototype.onDone=function(e){this.status=i.RESOLVED,this.resolution=e,this.listOfWaiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}();t.Promise=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}();t.Timer=i},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(22),u=o(18),c=o(35),d=o(15),h=o(2),f=function(e){function t(t,o,i,n){var r=e.call(this,'<div class="ag-row-drag"></div>')||this;return r.rowNode=t,r.column=o,r.cellValue=i,r.beans=n,r}return n(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(h._.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility(),this.beans.gridOptionsWrapper.isRowDragManaged()?this.addFeature(this.beans.context,new m(this,this.beans,this.rowNode,this.column)):this.addFeature(this.beans.context,new y(this,this.beans,this.rowNode,this.column))},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&h._.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},t.prototype.addDragSource=function(){var e=this,t={rowNode:this.rowNode},o={type:u.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:this.cellValue,dragItemCallback:function(){return t},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(o)}))},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.RowDragComp=f;var g=function(e){function t(t,o,i){var n=e.call(this)||this;return n.parent=t,n.column=i,n.rowNode=o,n}return n(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);h._.isFunction(this.column.getColDef().rowDrag)?this.parent.setVisible(t):this.parent.setDisplayed(t)}},t}(d.BeanStub),y=function(e){function t(t,o,i,n){var r=e.call(this,t,i,n)||this;return r.beans=o,r}return n(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(g),m=function(e){function t(t,o,i,n){var r=e.call(this,t,i,n)||this;return r.beans=o,r}return n(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,c.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.updateSortActive(),this.updateFilterActive(),this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateRowGroupActive=function(){var e=this.beans.columnController.getRowGroupColumns();this.rowGroupActive=!h._.missingOrEmpty(e)},t.prototype.onRowGroupChanged=function(){this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateSortActive=function(){var e=this.beans.sortController.getSortModel();this.sortActive=!h._.missingOrEmpty(e)},t.prototype.onSortChanged=function(){this.updateSortActive(),this.workOutVisibility()},t.prototype.updateFilterActive=function(){this.filterActive=this.beans.filterManager.isAnyFilterPresent()},t.prototype.onFilterChanged=function(){this.updateFilterActive(),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.sortActive||this.filterActive||this.rowGroupActive,t=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=e||t;this.setDisplayedOrVisible(o)},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(g)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(2),u=function(e){function t(t,o,i,n,r){var s=e.call(this,'<div class="ag-row-drag" draggable="true"></div>')||this;return s.rowNode=t,s.column=o,s.cellValue=i,s.beans=n,s.eCell=r,s}return n(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(p._.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,o=this.column.getColDef().dndSourceOnRowDrag,i=p._.isBrowserIE();i||e.dataTransfer.setDragImage(this.eCell,0,0),o?o({rowNode:this.rowNode,dragEvent:e}):function(){try{var o=JSON.stringify(t.rowNode.data);i?e.dataTransfer.setData("text",o):(e.dataTransfer.setData("application/json",o),e.dataTransfer.setData("text/plain",o))}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.DndSourceComp=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(12),p=o(0),u=o(3),c=o(27),d=o(61),h=o(4),f=o(11),g=o(6),y=o(2),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return n(t,e),t.prototype.init=function(e){var o=y._.firstExistingValue(e.template,t.TEMPLATE);o=o&&o.trim?o.trim():o,this.setTemplate(o),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=y._.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,o){if(null!=t){var i=y._.createIconNoSpan(e,this.gridOptionsWrapper,o);t.appendChild(i)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var o=new d.TouchListener(this.getGui(),!0),i=t.isSuppressMenuHide(),n=i&&y._.exists(this.eMenu),r=n?new d.TouchListener(this.eMenu,!0):o;if(this.params.enableMenu){var s=n?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(r,d.TouchListener[s],(function(o){t.getApi().showColumnMenuAfterMouseClick(e.params.column,o.touchStart)}))}this.params.enableSorting&&this.addDestroyableEventListener(o,d.TouchListener.EVENT_TAP,(function(t){var o=t.touchStart.target;i&&e.eMenu.contains(o)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return o.destroy()})),n&&this.addDestroyFunc((function(){return r.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||y._.isUserAgentIPad()&&!t)y._.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0",this.addGuiEventListener("mouseover",(function(){e.eMenu.style.opacity="1"})),this.addGuiEventListener("mouseout",(function(){e.eMenu.style.opacity="0"})));var o=this.eMenu.style;o.transition="opacity 0.2s, border 0.2s",o["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){y._.removeFromParent(this.eSortAsc),y._.removeFromParent(this.eSortDesc),y._.removeFromParent(this.eSortNone),y._.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,l.Column.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",(function(o){var i=e.params.column.isMoving(),n=(new Date).getTime()-e.lastMovingChanged<50;if(!i&&!n){var r=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(r)}})),this.addDestroyableEventListener(this.params.column,l.Column.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(y._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),y._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),y._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&y._.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&y._.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();y._.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),o=t.indexOf(e),i=t.length>1,n=e.isSorting()&&i;y._.setDisplayed(this.eSortOrder,n),o>=0?this.eSortOrder.innerHTML=(o+1).toString():y._.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,l.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();y._.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation"> <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on"> <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span> <span ref="eFilter" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span> <span ref="eSortOrder" class="ag-header-icon ag-sort-order" aria-hidden="true"></span> <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon" aria-hidden="true"></span> <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon" aria-hidden="true"></span> <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon" aria-hidden="true"></span> </div></div>',r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("sortController"),s("design:type",c.SortController)],t.prototype,"sortController",void 0),r([p.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([f.RefSelector("eFilter"),s("design:type",HTMLElement)],t.prototype,"eFilter",void 0),r([f.RefSelector("eSortAsc"),s("design:type",HTMLElement)],t.prototype,"eSortAsc",void 0),r([f.RefSelector("eSortDesc"),s("design:type",HTMLElement)],t.prototype,"eSortDesc",void 0),r([f.RefSelector("eSortNone"),s("design:type",HTMLElement)],t.prototype,"eSortNone",void 0),r([f.RefSelector("eSortOrder"),s("design:type",HTMLElement)],t.prototype,"eSortOrder",void 0),r([f.RefSelector("eMenu"),s("design:type",HTMLElement)],t.prototype,"eMenu",void 0),r([f.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([f.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),t}(a.Component);t.HeaderComp=m},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(5),p=o(3),u=o(0),c=o(61),d=o(11),h=o(45),f=o(2),g=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!f._.isStopPropagationForAgGrid(t)){var o=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){f._.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",o),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",o),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var i=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(i,h.OriginalColumnGroup.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(i,h.OriginalColumnGroup.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var o=new c.TouchListener(e);this.addDestroyableEventListener(o,c.TouchListener.EVENT_TAP,t),this.addDestroyFunc((function(){return o.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();f._.setDisplayed(this.eOpenIcon,!e),f._.setDisplayed(this.eCloseIcon,e)}else f._.setDisplayed(this.eOpenIcon,!1),f._.setDisplayed(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var o=f._.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return f._.setDisplayed(this.eOpenIcon,!1),void f._.setDisplayed(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){this.params.displayName&&""!==this.params.displayName&&(this.getRefElement("agLabel").innerHTML=this.params.displayName)},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation"><span ref="agLabel" class="ag-header-group-text" role="columnheader"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',r([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([d.RefSelector("agOpened"),s("design:type",HTMLElement)],t.prototype,"eOpenIcon",void 0),r([d.RefSelector("agClosed"),s("design:type",HTMLElement)],t.prototype,"eCloseIcon",void 0),t}(a.Component);t.HeaderGroupComp=g},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(8),p=o(3),u=o(11),c=o(2),d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.init=function(e){var t=c._.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-stub-cell">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.RefSelector("eLoadingIcon"),s("design:type",HTMLElement)],t.prototype,"eLoadingIcon",void 0),r([u.RefSelector("eLoadingText"),s("design:type",HTMLElement)],t.prototype,"eLoadingText",void 0),t}(l.Component);t.LoadingCellRenderer=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(0),p=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(n)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(8).Component);t.LoadingOverlayComponent=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(0),p=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,i=this.gridOptionsWrapper.getLocaleTextFunc(),n=o.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(n)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(8).Component);t.NoRowsOverlayComponent=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return n(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(o(47).PopupComponent);t.TooltipComponent=r},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),s=o(2),a=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation"><input class="ag-filter-filter" type="text" placeholder="yyyy-mm-dd"></div>')||this}return n(t,e),t.prototype.init=function(e){this.eDateInput=this.getGui().querySelector("input"),(s._.isBrowserChrome()||e.filterParams.browserDatePicker)&&(s._.isBrowserIE()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.type="date"),this.listener=e.onDateChanged,this.addGuiEventListener("input",this.listener)},t.prototype.getDate=function(){return s._.parseYyyyMmDdToDate(this.eDateInput.value,"-")},t.prototype.setDate=function(e){this.eDateInput.value=s._.serializeDateToYyyyMmDd(e,"-")},t}(r.Component);t.DefaultDateComponent=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(132),l=o(0),p=o(19),u=o(2),c=o(180),d=o(11),h=o(33),f=o(185),g=o(88),y=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation">\n <input ref="eReadOnlyText" disabled="true" class="ag-floating-filter-input">\n <div ref="eDateWrapper" style="display: flex; flex: 1 1 auto; overflow: hidden;"></div>\n </div>')||this}return n(t,e),t.prototype.getDefaultFilterOptions=function(){return a.DateFilter.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==h.SimpleFilter.IN_RANGE?e.dateFrom+"-"+e.dateTo:null!=e.dateFrom?""+e.dateFrom:""+e.type},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent()},t.prototype.setEditable=function(e){u._.setDisplayed(this.eDateWrapper,e),u._.setDisplayed(this.eReadOnlyText,!e)},t.prototype.onParentModelChanged=function(t,o){if(!this.isEventFromFloatingFilter(o)){e.prototype.setLastTypeFromModel.call(this,t);var i=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(i),i){if(t){var n=t;this.dateComp.setDate(u._.parseYyyyMmDdToDate(n.dateFrom,"-"))}else this.dateComp.setDate(null);this.eReadOnlyText.value=""}else this.eReadOnlyText.value=this.getTextFromModel(t),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=this.dateComp.getDate(),o=u._.serializeDateToYyyyMmDd(t,"-");this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType(),o)}))},t.prototype.createDateComponent=function(){var e=this,t=g.ProvidedFilter.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:u._.debounce(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new c.DateCompWrapper(this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc((function(){e.dateComp.destroy()}))},r([l.Autowired("userComponentFactory"),s("design:type",p.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([d.RefSelector("eReadOnlyText"),s("design:type",HTMLInputElement)],t.prototype,"eReadOnlyText",void 0),r([d.RefSelector("eDateWrapper"),s("design:type",HTMLInputElement)],t.prototype,"eDateWrapper",void 0),t}(f.SimpleFloatingFilter);t.DateFloatingFilter=y},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(137),s=o(33),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getDefaultFilterOptions=function(){return r.NumberFilter.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==s.SimpleFilter.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(o(186).TextInputFloatingFilter);t.NumberFloatingFilter=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(138),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return r.TextFilter.DEFAULT_FILTER_OPTIONS},t}(o(186).TextInputFloatingFilter);t.TextFloatingFilter=s},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(49),l=o(15),p=o(0),u=o(10),c=o(9),d=o(6),h=o(4),f=o(7),g=o(23),y=o(3),m=function(e){function t(t,o){var i=e.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.cbSelectAll=t,i.column=o;var n=o.getColDef();return i.filteredOnly=!!n&&!!n.headerCheckboxSelectionFilteredOnly,i}return n(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,a.AgCheckbox.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,o=0,i=function(i){e.gridOptionsWrapper.isGroupSelectsChildren()&&i.group||(i.isSelected()?t++:i.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(i):this.gridApi.forEachNode(i),{notSelected:o,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi})),!(!e||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),1)))},r([p.Autowired("gridApi"),s("design:type",c.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([p.Autowired("selectionController"),s("design:type",g.SelectionController)],t.prototype,"selectionController",void 0),r([p.Autowired("gridOptionsWrapper"),s("design:type",y.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(l.BeanStub);t.SelectAllFeature=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultColumnTypes={numericColumn:{headerClass:"ag-numeric-header",cellClass:"ag-numeric-cell"}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(150);function n(e,t,o,n){var r,s,a=n.agGrid;if(s=a+".quickFilterText",r=t.$eval(a)){var l=e[0],p={$scope:t,$compile:o,quickFilterOnScope:s},u=new i.Grid(l,r,p);t.$on("$destroy",(function(){u.destroy(),u=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",n],scope:!0}}))}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(12),p=o(36),u=o(10),c=o(5),d=o(3),h=o(91),f=o(0),g=o(144),y=o(18),m=o(92),v=o(9),C=o(19),_=o(38),w=o(146),b=o(2),E=function(e){function t(o,i,n){var r=e.call(this,t.TEMPLATE)||this;return r.childColumnsDestroyFuncs=[],r.columnGroup=o,r.dragSourceDropTarget=i,r.pinned=n,r}return n(t,e),t.prototype.postConstruct=function(){g.CssClassApplier.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(this.getContext(),new w.HoverFeature(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new m.SetLeftFeature(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},t.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,l.Column.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},t.prototype.getColumn=function(){return this.columnGroup},t.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},t.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.onColumnMovingChanged=function(){b._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},t.prototype.appendHeaderGroupComp=function(e){var t=this,o={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var i=this.columnGroup,n=i.getLeafColumns();i.getParent()&&i.getParent().getLeafColumns().length===n.length;)i=i.getParent();var r=i.getColGroupDef();r&&(e=r.headerName),e||(e=n?this.columnController.getDisplayNameForColumn(n[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(o).then(s)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.addClasses=function(){this.columnGroup.isPadding()?this.addCssClass("ag-header-group-cell-no-group"):this.addCssClass("ag-header-group-cell-with-group")},t.prototype.setupMove=function(e,t){var o=this;if(e&&!this.isSuppressMoving()){var i=this.columnGroup.getOriginalColumnGroup().getLeafColumns();if(e){var n={type:y.DragSourceType.HeaderCell,eElement:e,dragItemName:t,dragItemCallback:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return i.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},dragStopped:function(){return i.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(n)}))}}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var o=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(o.push(t),b._.removeFromArray(e,t))})),e.forEach((function(e){return o.push(e)})),{columns:o,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},t.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,p.ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.addEventListener(l.Column.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){o.removeEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.removeEventListener(l.Column.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},t.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},t.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(t),this.gridOptionsWrapper.isSuppressAutoSize()||this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,"uiColumnResized")}))}else b._.removeFromParent(this.eHeaderCellResize)},t.prototype.onResizeStart=function(e){var t=this,o=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=b._.filter(o,(function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var i=null;if(e&&(i=this.columnController.getDisplayedGroupAfter(this.columnGroup)),i){var n=i.getDisplayedLeafColumns();this.resizeTakeFromCols=b._.filter(n,(function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;b._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizing=function(e,t){var o=[],i=this.normaliseDragChange(t);o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+i}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-i}),this.columnController.resizeColumnSets(o,e,"uiColumnDragged"),e&&b._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==l.Column.PINNED_LEFT&&(t*=-1):this.pinned===l.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-group-cell" role="presentation"><div ref="agResize" class="ag-header-cell-resize" role="presentation"></div></div>',r([f.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([f.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),r([f.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),r([f.Autowired("dragAndDropService"),s("design:type",y.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([f.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([f.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),r([f.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),r([f.Autowired("beans"),s("design:type",_.Beans)],t.prototype,"beans",void 0),r([f.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.HeaderGroupWrapperComp=E},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(12),p=o(92),u=o(8),c=o(11),d=o(3),h=o(38),f=o(146),g=o(6),y=o(4),m=o(64),v=o(2),C=o(19),_=o(9),w=o(10),b=o(17),E=o(268),R=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.column=o,i}return n(t,e),t.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(this.getContext(),new f.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupFloatingFilter=function(){var e=this;this.column.getColDef().filter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?(e.setupWithFloatingFilter(t),e.setupSyncWithFilter()):e.setupEmpty()})):this.setupEmpty()):this.setupEmpty()},t.prototype.setupLeftPositioning=function(){var e=new p.SetLeftFeature(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){var o=e.filterManager.getFilterComponent(e.column,"NO_UI").resolveNow(null,(function(e){return e.getModel()}));e.onParentModelChanged(o,t)};this.addDestroyableEventListener(this.column,l.Column.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},t.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,g.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);v._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,l.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var o=e.getGui();v._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),v._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),v._.setDisplayed(this.eButtonWrapper,!this.suppressFilterButton);var i=v._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(i),this.eFloatingFilterBody.appendChild(o),e.afterGuiAttached&&e.afterGuiAttached()}else t()},t.prototype.parentFilterInstance=function(e){this.filterManager.getFilterComponent(this.column,"NO_UI").then(e)},t.prototype.getFloatingFilterInstance=function(){var e,o=this.column.getColDef();"string"==typeof o.filter?e=t.filterToFloatingFilterNames[o.filter]:!0===o.filter&&(e=this.gridOptionsWrapper.isEnterprise()?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");var i=this.filterManager.createFilterParams(this.column,this.column.getColDef()),n=this.userComponentFactory.createFinalParams(o,"filter",i),r={api:this.gridApi,column:this.column,filterParams:n,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!o.floatingFilterComponentParams&&!!o.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.newFloatingFilterComponent(o,r,e);if(!s){var a=this.getFilterComponentPrototype(o);if(a&&a.prototype&&a.prototype.getModelAsString){var l=this.userComponentFactory.createUserComponentFromConcreteClass(E.ReadOnlyFloatingFilter,r);s=v.Promise.resolve(l)}}return s},t.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},t.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},t.prototype.setupEmpty=function(){v._.setDisplayed(this.eButtonWrapper,!1)},t.prototype.currentParentModel=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI").resolveNow(null,(function(e){return e.getModel()}))},t.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(o){o.onParentModelChanged(e,t)}))},t.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},t.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t.TEMPLATE='<div class="ag-header-cell" role="presentation">\n <div ref="eFloatingFilterBody" role="columnheader"></div>\n <div class="ag-floating-filter-button" ref="eButtonWrapper" role="presentation">\n <button type="button" ref="eButtonShowMainFilter"></button>\n </div>\n </div>',r([a.Autowired("columnHoverService"),s("design:type",m.ColumnHoverService)],t.prototype,"columnHoverService",void 0),r([a.Autowired("eventService"),s("design:type",y.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("beans"),s("design:type",h.Beans)],t.prototype,"beans",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([a.Autowired("gridApi"),s("design:type",_.GridApi)],t.prototype,"gridApi",void 0),r([a.Autowired("columnApi"),s("design:type",w.ColumnApi)],t.prototype,"columnApi",void 0),r([a.Autowired("filterManager"),s("design:type",b.FilterManager)],t.prototype,"filterManager",void 0),r([a.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([c.RefSelector("eFloatingFilterBody"),s("design:type",HTMLElement)],t.prototype,"eFloatingFilterBody",void 0),r([c.RefSelector("eButtonWrapper"),s("design:type",HTMLElement)],t.prototype,"eButtonWrapper",void 0),r([c.RefSelector("eButtonShowMainFilter"),s("design:type",HTMLElement)],t.prototype,"eButtonShowMainFilter",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(u.Component);t.FloatingFilterWrapper=R},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(11),p=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation"><input ref="eFloatingFilterText" class="ag-floating-filter-input"></div>')||this}return n(t,e),t.prototype.init=function(e){this.params=e,this.eFloatingFilterText.disabled=!0},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var i=o.getModelAsString(e);t.eFloatingFilterText.value=i}})):this.eFloatingFilterText.value=""},r([l.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),t}(a.Component);t.ReadOnlyFloatingFilter=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(0),s=o(3),a=o(2),l=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(s.GridOptionsWrapper.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");a._.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=a._.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(a._.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),a._.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowContainerComponent=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(18),s=o(0),a=o(26),l=o(3),p=o(4),u=o(35),c=o(7),d=function(){function e(e,t){this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===r.DragSourceType.RowDrag},e.prototype.getIconName=function(){return r.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_ENTER,e),this.dragAndDropService.setGhostIcon(r.DragAndDropService.ICON_MOVE),e.dragItem.rowNode.setDragging(!0),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.normaliseForScroll(e.y);this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){var o=e.dragItem.rowNode;this.clientSideRowModel.ensureRowAtPixel(o,t)&&(this.focusedCellController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},e.prototype.normaliseForScroll=function(e){return this.gridOptionsWrapper.getDomLayout()===c.Constants.DOM_LAYOUT_NORMAL?e+this.gridPanel.getVScrollPosition().top:e},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.dispatchEvent=function(e,t){var o,i=this.normaliseForScroll(t.y),n=-1,s=null;switch(i>this.rowModel.getCurrentPageHeight()||(n=this.rowModel.getRowIndexAtPixel(i),s=this.rowModel.getRow(n)),t.vDirection){case r.VDirection.Down:o="down";break;case r.VDirection.Up:o="up";break;default:o=null}var a={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:t.event,node:t.dragItem.rowNode,overIndex:n,overNode:s,y:i,vDirection:o};this.eventService.dispatchEvent(a)},e.prototype.onDragLeave=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e)},e.prototype.onDragStop=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_END,e),this.stopDragging(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),e.dragItem.rowNode.setDragging(!1)},i([s.Autowired("dragAndDropService"),n("design:type",r.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([s.Autowired("focusedCellController"),n("design:type",a.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([s.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([s.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowDragFeature=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(0),p=o(4),u=o(6),c=o(14),d=o(272),h=o(154),f=o(9),g=o(10),y=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.init=function(){e.prototype.init.call(this),this.getRow(0)},t.prototype.moveItemsDown=function(e,t,o){for(var i=e.getStartRow(),n=t+o,r=e.getEndRow()-1;r>=i;r--)if(!(r<n)){var s=r-o,a=this.getRow(s,!0);a?e.setRowNode(r,a):(e.setBlankRowNode(r),e.setDirty())}},t.prototype.insertItems=function(e,t,o){for(var i=e.getStartRow(),n=e.getEndRow(),r=[],s=0;s<o.length;s++){var a=t+s;if(a>=i&&a<n){var l=o[s],p=e.setNewData(a,l);r.push(p)}}return r},t.prototype.insertItemsAtIndex=function(e,t){var o=this,i=[];this.forEachBlockInReverseOrder((function(n){n.getEndRow()<=e||(o.moveItemsDown(n,e,t.length),o.insertItems(n,e,t).forEach((function(e){return i.push(e)})))})),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var n={type:u.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.cacheParams.blockSize),i=this.getBlock(o);if(!i){if(t)return null;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var t=new d.InfiniteBlock(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("columnApi"),s("design:type",g.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),r([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[c.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(h.RowNodeCache);t.InfiniteCache=y},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(3),l=o(0),p=o(95),u=o(20),c=o(2),d=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.cacheParams=o,i}return n(t,e),t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.uiLevel=0,this.setIndexAndTopOnRowNode(o,t),o},t.prototype.setDataAndId=function(e,t,o){c._.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,o){e.prototype.setRowNode.call(this,t,o),this.setIndexAndTopOnRowNode(o,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};c._.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):(c._.getFunctionParameters(this.cacheParams.datasource.getRows).length>1&&(console.warn("ag-grid: It looks like your paging datasource is of the old type, taking more than one parameter."),console.warn("ag-grid: From ag-grid 1.9.0, now the getRows takes one parameter. See the documentation for details.")),window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0))},r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(p.RowNodeBlock);t.InfiniteBlock=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(3),p=o(85),u=o(20),c=o(4),d=o(7),h=o(15),f=o(6),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.init=function(){this.rowModel.getType()===d.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!(this.gridOptionsWrapper.isSuppressChangeDetection()||this.clipboardService&&this.clipboardService.isPasteOperationActive())){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),i=new p.ChangedPath(o,this.clientSideRowModel.getRootNode());i.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(i)}this.rowRenderer.refreshCells()}},r([a.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([a.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([a.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([a.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),r([a.Bean("changeDetectionService")],t)}(h.BeanStub);t.ChangeDetectionService=g},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(0),p=o(3),u=o(11),c=o(4),d=o(6),h=o(20),f=o(31),g=o(2),y=o(7),m=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",g._.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",g._.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",g._.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",g._.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===y.Constants.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),o=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):g._.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),i=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n <span ref="lbFirstRowOnPage"></span> '+o+' <span ref="lbLastRowOnPage"></span> '+i+' <span ref="lbRecordCount"></span>\n </span>\n <span class="ag-paging-page-summary-panel">\n <div ref="btFirst" class="ag-paging-button">\n <button type="button">'+e("first","First")+'</button>\n </div>\n <div ref="btPrevious" class="ag-paging-button">\n <button type="button">'+e("previous","Previous")+"</button>\n </div>\n "+t+' <span ref="lbCurrent"></span> '+i+' <span ref="lbTotal"></span>\n <div ref="btNext" class="ag-paging-button">\n <button type="button">'+e("next","Next")+'</button>\n </div>\n <div ref="btLast" class="ag-paging-button">\n <button type="button">'+e("last","Last")+"</button>\n </div>\n </span>\n </div>"},t.prototype.onBtNext=function(){this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages(),i=0===e;g._.addOrRemoveCssClass(this.btPrevious,"ag-disabled",i),g._.addOrRemoveCssClass(this.btFirst,"ag-disabled",i);var n=this.isZeroPagesToDisplay(),r=t&&e===o-1||n;g._.addOrRemoveCssClass(this.btNext,"ag-disabled",r);var s=!t||n||e===o-1;g._.addOrRemoveCssClass(this.btLast,"ag-disabled",s)},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=i*o+1)+i-1,n&&t>r&&(t=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.serverSideRowModel&&this.serverSideRowModel.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},r([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("paginationProxy"),s("design:type",f.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([l.Autowired("rowRenderer"),s("design:type",h.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([u.RefSelector("btFirst"),s("design:type",HTMLElement)],t.prototype,"btFirst",void 0),r([u.RefSelector("btPrevious"),s("design:type",HTMLElement)],t.prototype,"btPrevious",void 0),r([u.RefSelector("btNext"),s("design:type",HTMLElement)],t.prototype,"btNext",void 0),r([u.RefSelector("btLast"),s("design:type",HTMLElement)],t.prototype,"btLast",void 0),r([u.RefSelector("lbRecordCount"),s("design:type",Object)],t.prototype,"lbRecordCount",void 0),r([u.RefSelector("lbFirstRowOnPage"),s("design:type",Object)],t.prototype,"lbFirstRowOnPage",void 0),r([u.RefSelector("lbLastRowOnPage"),s("design:type",Object)],t.prototype,"lbLastRowOnPage",void 0),r([u.RefSelector("eSummaryPanel"),s("design:type",Object)],t.prototype,"eSummaryPanel",void 0),r([u.RefSelector("lbCurrent"),s("design:type",Object)],t.prototype,"lbCurrent",void 0),r([u.RefSelector("lbTotal"),s("design:type",Object)],t.prototype,"lbTotal",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.PaginationComp=m},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(2),p=o(11),u=o(0),c=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.H=1,i.S=1,i.B=1,i.A=1,i.isSpectrumDragging=!1,i.isSpectrumHueDragging=!1,i.isSpectrumAlphaDragging=!1,i.colorChanged=!1,i.picker=o.picker,i}return n(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addDestroyableEventListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addDestroyableEventListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addDestroyableEventListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addDestroyableEventListener(document,"mouseup",this.onMouseUp.bind(this)),this.addDestroyableEventListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var o=e.clientX-t.left,i=e.clientY-t.top;o=Math.max(o,0),o=Math.min(o,t.width),i=Math.max(i,0),i=Math.min(i,t.height),this.setSpectrumValue(o/t.width,1-i/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var o=this.spectrumHueSlider,i=o.getBoundingClientRect(),n=e.clientX-t.left;n=Math.max(n,0),n=Math.min(n,t.width),this.H=1-n/t.width,o.style.left=n+i.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var o=this.spectrumAlphaSlider,i=o.getBoundingClientRect(),n=e.clientX-t.left;n=Math.max(n,0),n=Math.min(n,t.width),this.A=n/t.width,o.style.left=n+i.width/2+"px",this.update()}},t.prototype.update=function(){var e=l.Color.fromHSB(360*this.H,this.S,this.B,this.A),t=l.Color.fromHSB(360*this.H,1,1),o=e.toRgbaString(),i=this.picker;l.Color.fromString(i.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),i.setValue(o),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},t.prototype.setSpectrumValue=function(e,t){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var i=this.spectrumDragger,n=i.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,i.style.left=e*o.width-n.width/2+"px",i.style.top=(1-t)*o.height-n.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map((function(e,t){return'<div class="ag-recent-color" id='+t+' style="background-color: '+e+'; width: 15px; height: 15px;" recent-color="'+e+'"></div>'}));this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=l.Color.fromString(e),o=t.toHSB(),i=o[0],n=o[1],r=o[2];this.H=(isNaN(i)?0:i)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(n,r)},t.prototype.onRecentColorClick=function(e){var o=e.target;if(l._.exists(o.id)){var i=parseInt(o.id,10);this.setValue(t.recentColors[i]),this.destroy()}},t.prototype.addRecentColor=function(){var e=l.Color.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=t.recentColors;this.colorChanged&&o[0]!==e&&(o=o.filter((function(t){return t!=e})),(o=[e].concat(o)).length>t.maxRecentColors&&(o=o.slice(0,t.maxRecentColors)),t.recentColors=o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.addRecentColor()},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-hue-alpha">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-hue-alpha">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',r([p.RefSelector("spectrumColor"),s("design:type",HTMLElement)],t.prototype,"spectrumColor",void 0),r([p.RefSelector("spectrumVal"),s("design:type",HTMLElement)],t.prototype,"spectrumVal",void 0),r([p.RefSelector("spectrumDragger"),s("design:type",HTMLElement)],t.prototype,"spectrumDragger",void 0),r([p.RefSelector("spectrumHue"),s("design:type",HTMLElement)],t.prototype,"spectrumHue",void 0),r([p.RefSelector("spectrumHueSlider"),s("design:type",HTMLElement)],t.prototype,"spectrumHueSlider",void 0),r([p.RefSelector("spectrumAlpha"),s("design:type",HTMLElement)],t.prototype,"spectrumAlpha",void 0),r([p.RefSelector("spectrumAlphaSlider"),s("design:type",HTMLElement)],t.prototype,"spectrumAlphaSlider",void 0),r([p.RefSelector("recentColors"),s("design:type",HTMLElement)],t.prototype,"recentColors",void 0),r([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.AgColorPanel=c},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(11),l=o(0),p=o(3),u=o(39),c=o(2),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TEMPLATE='<div class="ag-picker-field">\n <label ref="eLabel"></label>\n <div ref="eWrapper" class="ag-wrapper">\n <%displayField% ref="eDisplayField"></%displayField%>\n <button ref="eButton" class="ag-picker-button"> </button>\n </div>\n </div>',t.displayedPicker=!1,t.isDestroyingPicker=!1,t}return n(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eButton,"click",(function(){t.showPicker()})),this.pickerIcon&&this.eButton.appendChild(c._.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return c._.setElementWidth(this.eWrapper,e),this},r([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([a.RefSelector("eWrapper"),s("design:type",HTMLElement)],t.prototype,"eWrapper",void 0),r([a.RefSelector("eDisplayField"),s("design:type",Object)],t.prototype,"eDisplayField",void 0),r([a.RefSelector("eButton"),s("design:type",HTMLButtonElement)],t.prototype,"eButton",void 0),t}(u.AgAbstractField);t.AgPickerField=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(122),n=o(150),r=!1;t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!r){r=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);i.ComponentUtil.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var o={};o[e]={currentValue:t},this.onChange(o)},t.onChange=function(e){this._initialised&&i.ComponentUtil.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=i.ComponentUtil.copyAttributesToGridOptions(e,this);var o={globalEventListener:t};this._agGrid=new n.Grid(this,this._gridOptions,o),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,o="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,n=e.nodeValue;i.ComponentUtil.ALL_PROPERTIES.indexOf(o)>=0&&(this[o]=n)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var o=e.toLowerCase(),i=new Event(o);i.agGridDetails=t,this.dispatchEvent(i);var n="on"+o;"function"==typeof this[n]&&this[n](i)},document.registerElement("ag-grid",{prototype:e})}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=function(){function e(t){var o=this;this.items=[],this.params=t,this.eGui=document.createElement("div"),this.eGui.innerHTML=e.TEMPLATE,this.eHeader=this.eGui.querySelector('[ref="tabHeader"]'),this.eBody=this.eGui.querySelector('[ref="tabBody"]'),i._.addCssClass(this.eGui,t.cssClass),t.items&&t.items.forEach((function(e){return o.addItem(e)}))}return e.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},e.prototype.getMinDimensions=function(){var e=this.eGui.cloneNode(!0),t=e.querySelector('[ref="tabBody"]');e.style.position="fixed",this.eGui.appendChild(e);var o=0,n=0;return this.items.forEach((function(r){i._.clearElement(t);var s=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=s&&(t.appendChild(s),o<e.offsetWidth&&(o=e.offsetWidth),n<e.offsetHeight&&(n=e.offsetHeight))})),this.eGui.removeChild(e),{height:n,width:o}},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(e){var t=document.createElement("span");t.appendChild(e.title),i._.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(e){var t=i._.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},e.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(i._.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e)})),this.activeItem&&i._.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),i._.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):i._.callIfPresent(this.params.onActiveItemClicked)},e.prototype.getGui=function(){return this.eGui},e.TEMPLATE='<div><div ref="tabHeader" class="ag-tab-header"></div><div ref="tabBody" class="ag-tab-body"></div></div>',e}();t.TabbedLayout=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.isLayoutPanel=!0,this.childPanels=[],this.eGui=document.createElement("div"),this.eGui.style.height="100%"}return e.prototype.addPanel=function(e,t){var o;e.isLayoutPanel?(this.childPanels.push(e),o=e.getGui()):o=e,t&&(o.style.height=t),this.eGui.appendChild(o)},e.prototype.getGui=function(){return this.eGui},e.prototype.doLayout=function(){for(var e=0;e<this.childPanels.length;e++)this.childPanels[e].doLayout()},e}();t.VerticalStack=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2);t.simpleHttpRequest=function(e){return new i.Promise((function(t){var o=new XMLHttpRequest;o.open("GET",e.url),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var e=JSON.parse(o.responseText);t(e)}}}))}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(96),l=o(0),p=o(8),u=o(11),c=function(e){function t(t){var o=e.call(this,t)||this;return o.message=t.message,o}return n(t,e),t.prototype.postConstruct=function(){var t=this,o=new d;this.addFeature(this.getContext(),o),o.setMessage(this.message),this.setBodyComponent(o),e.prototype.postConstruct.call(this),this.addDestroyableEventListener(o,"onBtOk",(function(){return t.close()}))},t}(a.AgDialog);t.MessageBox=c;var d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.setMessage=function(e){this.eCenter.innerText=e},t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eOk,"click",this.onBtOk.bind(this))},t.prototype.onBtOk=function(){this.dispatchEvent({type:"onBtOk"})},t.TEMPLATE='<div class="ag-message-box">\n <div ref="eCenter" class="ag-message-box-content"></div>\n <div ref="eButtons" class="ag-message-box-button-bar">\n <button ref="eOk">OK</button>\n </div>\n </div>',r([u.RefSelector("eCenter"),s("design:type",HTMLElement)],t.prototype,"eCenter",void 0),r([u.RefSelector("eOk"),s("design:type",HTMLElement)],t.prototype,"eOk",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(p.Component)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2);t.defaultGroupComparator=function(e,t,o,n,r){void 0===r&&(r=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=i._.exists(o)&&o.group,a=i._.exists(n)&&n.group,l=!s&&!a;return s&&a?i._.defaultComparator(o.key,n.key,r):l?i._.defaultComparator(e,t,r):s?1:-1}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.wrap=function(e,t,o,i){var n=this;void 0===o&&(o=[]);var r=this.createWrapper(e,i);return t.forEach((function(e){n.createMethod(r,e,!0)})),o.forEach((function(e){n.createMethod(r,e,!1)})),r},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();t.BaseComponentWrapper=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.GroupedColumn="groupedColumn",e.StackedColumn="stackedColumn",e.NormalizedColumn="normalizedColumn",e.GroupedBar="groupedBar",e.StackedBar="stackedBar",e.NormalizedBar="normalizedBar",e.Line="line",e.Scatter="scatter",e.Bubble="bubble",e.Pie="pie",e.Doughnut="doughnut",e.Area="area",e.StackedArea="stackedArea",e.NormalizedArea="normalizedArea"}(t.ChartType||(t.ChartType={}))},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(21),a=o(286),l=function(){function e(){this.activeCharts=[]}return e.prototype.chartCurrentRange=function(e){void 0===e&&(e=r.ChartType.GroupedColumn);var t=this.getSelectedRange();return this.chartRange(t,e)},e.prototype.chartCellRange=function(e){var t=this.rangeController.createCellRangeFromCellRangeParams(e.cellRange);if(t){if(t)return this.chartRange(t,e.chartType,!1,e.suppressChartRanges,e.chartContainer,e.aggFunc,e.processChartOptions)}else console.warn("ag-Grid - unable to chart as no range is selected")},e.prototype.pivotChart=function(e){void 0===e&&(e=r.ChartType.GroupedColumn),this.columnController.isPivotMode()||this.columnController.setPivotMode(!0,"pivotChart");var t={columns:this.columnController.getAllDisplayedColumns().map((function(e){return e.getColId()}))},o=this.rangeController.createCellRangeFromCellRangeParams(t);if(o)return this.chartRange(o,e,!0,!0);console.warn("ag-Grid - unable to chart as there are no columns in the grid.")},e.prototype.chartRange=function(e,t,o,i,n,s,l){var p=this;void 0===o&&(o=!1),void 0===i&&(i=!1);var u=this.gridOptionsWrapper.getCreateChartContainerFunc(),c={pivotChart:o,cellRange:e,chartType:t,insideDialog:!(n||u),suppressChartRanges:i,aggFunc:s,processChartOptions:l,height:400,width:800},d=new a.GridChartComp(c);this.context.wireBean(d);var h=this.createChartRef(d);if(n){n.appendChild(d.getGui());var f=this.environment.getTheme();f.el&&!f.el.contains(n)&&r._.addCssClass(n,f.theme)}else u?u(h):d.addEventListener(a.GridChartComp.EVENT_DESTROYED,(function(){r._.removeFromArray(p.activeCharts,h)}));return h},e.prototype.createChartRef=function(e){var t=this,o={destroyChart:function(){t.activeCharts.indexOf(o)>=0&&(e.destroy(),r._.removeFromArray(t.activeCharts,o))},chartElement:e.getGui()};return this.activeCharts.push(o),o},e.prototype.getSelectedRange=function(){var e=this.rangeController.getCellRanges();return e.length>0?e[0]:{}},e.prototype.destroyAllActiveCharts=function(){this.activeCharts.slice().forEach((function(e){return e.destroyChart()}))},i([r.Autowired("rangeController"),n("design:type",s.RangeController)],e.prototype,"rangeController",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("environment"),n("design:type",r.Environment)],e.prototype,"environment",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroyAllActiveCharts",null),i([r.Bean("chartService")],e)}();t.ChartService=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(287),p=o(159),u=o(67),c=o(321),d=o(322),h=o(323),f=o(324),g=o(325),y=o(223),m=o(55),v=o(13),C=o(165),_=o(164),w=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.params=o,i}return n(t,e),t.prototype.init=function(){var e={pivotChart:this.params.pivotChart,chartType:this.params.chartType,aggFunc:this.params.aggFunc,cellRanges:[this.params.cellRange],suppressChartRanges:this.params.suppressChartRanges,palettes:m.palettes,activePalette:0};this.model=new u.ChartModel(e),this.getContext().wireBean(this.model),this.chartController=new p.ChartController(this.model),this.getContext().wireBean(this.chartController),this.createChart(),this.params.insideDialog&&this.addDialog(),this.addResizeListener(),this.addMenu(),this.addDestroyableEventListener(this.getGui(),"focusin",this.setActiveChartCellRange.bind(this)),this.addDestroyableEventListener(this.chartController,p.ChartController.EVENT_CHART_MODEL_UPDATED,this.refresh.bind(this)),this.addDestroyableEventListener(this.chartMenu,l.ChartMenu.EVENT_DOWNLOAD_CHART,this.downloadChart.bind(this)),this.refresh()},t.prototype.createChart=function(){var e=this.params,t=e.width,o=e.height;if(this.chartProxy){var i=this.chartProxy.getChart();o=i.height,t=i.width,this.chartProxy.destroy();var n=this.eChart.querySelector("canvas");n&&this.eChart.removeChild(n)}var r=this.params.processChartOptions?this.params.processChartOptions:this.gridOptionsWrapper.getProcessChartOptionsFunc(),s=this.model.getSelectedDimension().colId!==u.ChartModel.DEFAULT_CATEGORY,a={chartType:this.model.getChartType(),processChartOptions:r,getSelectedPalette:this.getSelectedPalette.bind(this),isDarkTheme:this.environment.isThemeDark.bind(this.environment),parentElement:this.eChart,width:t,height:o,eventService:this.eventService,categorySelected:s,grouping:this.model.isGrouping(),document:this.gridOptionsWrapper.getDocument()};this.currentChartType=this.model.getChartType(),this.currentChartGroupingActive=this.model.isGrouping(),this.chartProxy=this.createChartProxy(a),this.model.setChartProxy(this.chartProxy)},t.prototype.getSelectedPalette=function(){return this.model.getPalettes()[this.model.getActivePalette()]},t.prototype.createChartProxy=function(e){switch(e.chartType){case a.ChartType.GroupedColumn:case a.ChartType.StackedColumn:case a.ChartType.NormalizedColumn:case a.ChartType.GroupedBar:case a.ChartType.StackedBar:case a.ChartType.NormalizedBar:return new c.BarChartProxy(e);case a.ChartType.Pie:return new f.PieChartProxy(e);case a.ChartType.Doughnut:return new g.DoughnutChartProxy(e);case a.ChartType.Area:case a.ChartType.StackedArea:case a.ChartType.NormalizedArea:return new d.AreaChartProxy(e);case a.ChartType.Line:return new h.LineChartProxy(e);case a.ChartType.Scatter:case a.ChartType.Bubble:return new y.ScatterChartProxy(e)}},t.prototype.addDialog=function(){var e=this,t=this.chartTranslator.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle");this.chartDialog=new a.AgDialog({resizable:!0,movable:!0,maximizable:!0,title:t,component:this,centered:!0,closable:!0}),this.getContext().wireBean(this.chartDialog),this.chartDialog.addEventListener(a.AgDialog.EVENT_DESTROYED,(function(){return e.destroy()}))},t.prototype.addMenu=function(){this.chartMenu=new l.ChartMenu(this.chartController),this.chartMenu.setParentComponent(this),this.getContext().wireBean(this.chartMenu),this.eChartComponentsWrapper.appendChild(this.chartMenu.getGui())},t.prototype.refresh=function(){this.shouldRecreateChart()&&this.createChart(),this.updateChart()},t.prototype.shouldRecreateChart=function(){var e=this.model.getChartType()!==this.currentChartType,t=this.currentChartGroupingActive!==this.model.isGrouping();if(e||t)return!0;if(this.isXYChart()){var o=!this.chartController.isDefaultCategorySelected(),i=this.chartProxy.getChart(),n=o&&i.xAxis instanceof _.NumberAxis,r=!o&&i.xAxis instanceof C.CategoryAxis;return n||r}return!1},t.prototype.getChartComponentsWrapper=function(){return this.eChartComponentsWrapper},t.prototype.getDockedContainer=function(){return this.eDockedContainer},t.prototype.slideDockedOut=function(e){this.eDockedContainer.style.minWidth=e+"px"},t.prototype.slideDockedIn=function(){this.eDockedContainer.style.minWidth="0"},t.prototype.getCurrentChartType=function(){return this.currentChartType},t.prototype.updateChart=function(){var e=this.model,t=this.chartProxy,o=e.getSelectedValueColState().map((function(e){return{colId:e.colId,displayName:e.displayName}})),i=e.getData();if(!this.handleEmptyChart(i,o)){var n=e.getSelectedDimension(),r={data:i,category:{id:n.colId,name:n.displayName},fields:o};t.update(r)}},t.prototype.handleEmptyChart=function(e,t){var o=this.chartProxy.getChart().parent,i=this.model.isPivotChart()&&!this.model.isPivotMode(),n=1;this.chartController.isActiveXYChart()&&(n=this.model.getChartType()===a.ChartType.Bubble?3:2);var r=t.length<n||0===e.length;return o&&a._.addOrRemoveCssClass(o,"ag-chart-empty",i||r),i?(this.eEmpty.innerText=this.chartTranslator.translate("pivotChartRequiresPivotMode"),!0):!!r&&(this.eEmpty.innerText=this.chartTranslator.translate("noDataToChart"),!0)},t.prototype.downloadChart=function(){var e=this.chartProxy.getChart(),t=e.title?e.title.text:"chart";e.scene.download(t)},t.prototype.refreshCanvasSize=function(){var e=this.eChart,t=this.chartProxy.getChart();t.height=a._.getInnerHeight(e),t.width=a._.getInnerWidth(e)},t.prototype.addResizeListener=function(){var e=this,t=this.getGui(),o=this.resizeObserverService.observeResize(this.eChart,(function(){t&&t.offsetParent?e.refreshCanvasSize():o()}),5)},t.prototype.setActiveChartCellRange=function(e){this.getGui().contains(e.relatedTarget)||this.chartController.setChartRange()},t.prototype.isXYChart=function(){return[a.ChartType.Scatter,a.ChartType.Bubble].indexOf(this.model.getChartType())>-1},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.chartController&&this.chartController.destroy(),this.chartProxy&&this.chartProxy.destroy(),this.chartMenu&&this.chartMenu.destroy(),this.chartDialog&&this.chartDialog.isAlive()&&this.chartDialog.destroy();var t=this.getGui();a._.clearElement(t),a._.removeFromParent(t)},t.TEMPLATE='<div class="ag-chart" tabindex="-1">\n <div ref="eChartComponentsWrapper" tabindex="-1" class="ag-chart-components-wrapper">\n <div ref="eChart" class="ag-chart-canvas-wrapper">\n <div ref="eEmpty" class="ag-chart-empty-text ag-unselectable"></div>\n </div>\n </div>\n <div ref="eDockedContainer" class="ag-chart-docked-container"></div>\n </div>',r([a.RefSelector("eChart"),s("design:type",HTMLElement)],t.prototype,"eChart",void 0),r([a.RefSelector("eChartComponentsWrapper"),s("design:type",HTMLElement)],t.prototype,"eChartComponentsWrapper",void 0),r([a.RefSelector("eDockedContainer"),s("design:type",HTMLElement)],t.prototype,"eDockedContainer",void 0),r([a.RefSelector("eEmpty"),s("design:type",HTMLElement)],t.prototype,"eEmpty",void 0),r([a.Autowired("resizeObserverService"),s("design:type",a.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("environment"),s("design:type",a.Environment)],t.prototype,"environment",void 0),r([a.Autowired("chartTranslator"),s("design:type",v.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.GridChartComp=w},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(288),p=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.buttons={chartSettings:["menu",function(){return i.showMenu("chartSettings")}],chartData:["menu",function(){return i.showMenu("chartData")}],chartFormat:["menu",function(){return i.showMenu("chartFormat")}],chartUnlink:["linked",function(e){return i.toggleDetached(e)}],chartDownload:["save",function(){return i.saveChart()}]},i.tabs=[],i.chartController=o,i}return n(t,e),t.prototype.postConstruct=function(){this.createButtons()},t.prototype.getToolbarOptions=function(){var e=this,t=["chartSettings","chartData","chartFormat","chartUnlink","chartDownload"],o=this.gridOptionsWrapper.getChartToolbarItemsFunc();o&&(t=o({api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),defaultItems:t}).filter((function(t){return!!e.buttons[t]||(console.warn("ag-Grid: '"+t+" is not a valid Chart Toolbar Option"),!1)}))),this.chartController.isPivotChart()&&(t=t.filter((function(e){return"chartData"!==e})));var i=["chartUnlink","chartDownload"];return this.tabs=t.filter((function(e){return-1===i.indexOf(e)})),t.filter((function(t){return-1!==i.indexOf(t)||e.tabs.length&&t===e.tabs[0]}))},t.prototype.toggleDetached=function(e){var t=e.target,o=a._.containsClass(t,"ag-icon-linked");a._.addOrRemoveCssClass(t,"ag-icon-linked",!o),a._.addOrRemoveCssClass(t,"ag-icon-unlinked",o),this.chartController.detachChartRange()},t.prototype.createButtons=function(){var e=this;this.getToolbarOptions().forEach((function(t){var o=e.buttons[t],i=o[0],n=o[1],r=a._.createIconNoSpan(i,e.gridOptionsWrapper,void 0,!0);e.addDestroyableEventListener(r,"click",n),e.getGui().appendChild(r)}))},t.prototype.saveChart=function(){var e={type:t.EVENT_DOWNLOAD_CHART};this.dispatchEvent(e)},t.prototype.createMenu=function(e){var t=this,o=this.getParentComponent(),i=o.getDockedContainer(),n=this.getContext(),r=this.menuPanel=new a.AgPanel({minWidth:220,width:220,height:"100%",closable:!0,hideTitleBar:!0});return n.wireBean(this.menuPanel),r.setParentComponent(this),i.appendChild(r.getGui()),this.tabbedMenu=new l.TabbedChartMenu({controller:this.chartController,type:o.getCurrentChartType(),panels:this.tabs}),n.wireBean(this.tabbedMenu),this.addDestroyableEventListener(this.menuPanel,a.Component.EVENT_DESTROYED,(function(){t.tabbedMenu.destroy()})),new a.Promise((function(i){window.setTimeout((function(){r.setBodyComponent(t.tabbedMenu),t.tabbedMenu.showTab(e),t.addDestroyableEventListener(o.getChartComponentsWrapper(),"click",(function(){a._.containsClass(o.getGui(),"ag-has-menu")&&t.hideMenu()})),i(r)}),100)}))},t.prototype.slideDockedContainer=function(){var e=this;this.getParentComponent().slideDockedOut(this.menuPanel.getWidth()),window.setTimeout((function(){a._.addCssClass(e.getParentComponent().getGui(),"ag-has-menu")}),500)},t.prototype.showMenu=function(e){var t=this,o=this.tabs.indexOf(e);this.menuPanel?this.slideDockedContainer():this.createMenu(o).then((function(){t.slideDockedContainer()}))},t.prototype.hideMenu=function(){this.getParentComponent().slideDockedIn(),a._.removeCssClass(this.getParentComponent().getGui(),"ag-has-menu")},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.menuPanel&&this.menuPanel.isAlive()&&this.menuPanel.destroy()},t.EVENT_DOWNLOAD_CHART="downloadChart",t.TEMPLATE='<div class="ag-chart-menu"></div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.ChartMenu=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(289),p=o(291),u=o(318),c=o(13),d=function(e){function t(t){var o=e.call(this)||this;o.tabs=[],o.chartIcons={};var i=t.controller,n=t.type,r=t.panels;return o.chartController=i,o.currentChartType=n,o.panels=r,o}return n(t,e),t.prototype.init=function(){var e=this;this.panels.forEach((function(t){var o=t.replace("chart","").toLowerCase(),i=e.createTab(t,o,e.getPanelClass(o)),n=i.comp,r=i.tab;e.tabs.push(r),e.addDestroyFunc((function(){return n.destroy()}))})),this.tabbedLayout=new a.TabbedLayout({items:this.tabs,cssClass:"ag-chart-tabbed-menu"})},t.prototype.createTab=function(e,t,o){var i=document.createElement("div");a._.addCssClass(i,"ag-chart-"+t);var n=new o(this.chartController);this.getContext().wireBean(n),i.appendChild(n.getGui());var r=document.createElement("div");return r.innerText=this.chartTranslator.translate(t),{comp:n,tab:{title:r,bodyPromise:a.Promise.resolve(i),name:e}}},t.prototype.getMinDimensions=function(){return this.tabbedLayout.getMinDimensions()},t.prototype.updateCurrentChartType=function(e){a._.removeCssClass(this.chartIcons[this.currentChartType],"ag-selected"),this.currentChartType=e,a._.addCssClass(this.chartIcons[e],"ag-selected")},t.prototype.showTab=function(e){var t=this.tabs[e];this.tabbedLayout.showItem(t)},t.prototype.getGui=function(){return this.tabbedLayout&&this.tabbedLayout.getGui()},t.prototype.destroy=function(){this.parentComponent&&this.parentComponent.isAlive()&&this.parentComponent.destroy(),e.prototype.destroy.call(this)},t.prototype.getPanelClass=function(e){var o=e===t.TAB_DATA,i=e===t.TAB_FORMAT;return o?l.ChartDataPanel:i?p.ChartFormattingPanel:u.ChartSettingsPanel},t.EVENT_TAB_SELECTED="tabSelected",t.TAB_MAIN="settings",t.TAB_DATA="data",t.TAB_FORMAT="format",r([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.TabbedChartMenu=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(159),p=o(13),u=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.columnComps={},i.dimensionComps=[],i.chartController=o,i}return n(t,e),t.prototype.init=function(){this.createDataGroupElements(),this.addDestroyableEventListener(this.chartController,l.ChartController.EVENT_CHART_MODEL_UPDATED,this.createDataGroupElements.bind(this))},t.prototype.createDataGroupElements=function(){var e=this;this.destroyColumnComps();var t=this.getGui(),o=this.chartController.getColStateForMenu();[o.dimensionCols,o.valueCols].forEach((function(o,i){var n=0===i,r=n?"categories":e.chartController.isActiveXYChart()?"xyValues":"series",s=new a.AgGroupComponent({title:e.chartTranslator.translate(r),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1});e.getContext().wireBean(s),o.forEach(e.getColumnStateMapper(n,s));var l=document.createElement("div");l.appendChild(s.getGui()),t.appendChild(l)}))},t.prototype.getColumnStateMapper=function(e,t){var o=this;return function(i){var n=e?new a.AgRadioButton:new a.AgCheckbox;o.getContext().wireBean(n),n.setLabel(a._.escape(i.displayName)),n.setValue(i.selected),o.columnComps[i.colId]=n,e&&(n.setInputName("chartDimension"+o.getCompId()),o.dimensionComps.push(n)),o.addDestroyableEventListener(n,a.AgAbstractField.EVENT_CHANGED,(function(){i.selected=n.getValue(),o.chartController.updateForMenuChange(i)})),t.addItem(n)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyColumnComps()},t.prototype.destroyColumnComps=function(){a._.clearElement(this.getGui()),this.columnComps&&a._.iterateObject(this.columnComps,(function(e,t){return t.destroy()})),this.columnComps={}},t.TEMPLATE='<div class="ag-chart-data-wrapper"></div>',r([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ChartDataPanel=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(68),p=o(67),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getData=function(e){var t=this.extractRowsFromGridRowModel(e);return t.data=this.aggregateRowsByDimension(e,t.data),t},t.prototype.extractRowsFromGridRowModel=function(e){for(var t=this,o=[],i={},n={},r={},s=this.gridRowModel.getRowCount()-1,a=(e.endRow>0?Math.min(e.endRow,s):s)-e.startRow+1,l=function(s){var a={},l=u.gridRowModel.getRow(s+e.startRow);e.dimensionCols.forEach((function(o){var i=o.colId,u=t.columnController.getGridColumn(i);if(u){var c=t.valueService.getValue(u,l),d=c&&c.toString?c.toString():"";if(e.grouping){var h=t.getGroupLabels(l,[String(d)]);e.multiCategories?a[i]={labels:h,toString:function(){return h[0]}}:a[i]=h.slice().reverse().join(" - "),l.group&&(n[h.toString()]=s);var f=h.slice(1,h.length).toString();f&&(r[f]=n[f])}else a[i]=d}else a[p.ChartModel.DEFAULT_CATEGORY]=(s+1).toString()})),e.valueCols.forEach((function(e){var o=[],n=e.getColDef().pivotKeys;n&&(o=n.slice());var r=e.getColDef().headerName;r&&o.push(r),o.length>0&&(i[e.getId()]=o),a[e.getId()]=t.valueService.getValue(e,l)})),o.push(a)},u=this,c=0;c<a;c++)l(c);if(e.grouping){var d=Object.keys(r).map((function(e){return r[e]}));o=o.filter((function(e,t){return d.indexOf(t)<0}))}return{data:o,columnNames:i}},t.prototype.aggregateRowsByDimension=function(e,t){var o=this,i=e.dimensionCols;if(!e.aggFunc||0===i.length)return t;var n=a._.last(i),r=n&&n.colId,s={},l=[];return t.forEach((function(e){var t=s;i.forEach((function(o){var n=o.colId,s=e[n];if(n===r){var a=t[s];a||(a={__children:[]},i.forEach((function(t){var o=t.colId;a[o]=e[o]})),t[s]=a,l.push(a)),a.__children.push(e)}else t[s]||(t[s]={}),t=t[s]}))})),l.forEach((function(t){e.valueCols.forEach((function(i){var n=[];t.__children.forEach((function(e){n.push(e[i.getId()])}));var r=o.aggregationStage.aggregateValues(n,e.aggFunc);void 0!==r.value?t[i.getId()]=r.value:t[i.getId()]=r}))})),l},t.prototype.getGroupLabels=function(e,t){if(0===e.level)return t;var o=e.parent;return t.push(o.key),this.getGroupLabels(o,t)},r([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"gridRowModel",void 0),r([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),r([a.Autowired("aggregationStage"),s("design:type",l.AggregationStage)],t.prototype,"aggregationStage",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),t}(a.BeanStub);t.ChartDatasource=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(159),p=o(292),u=o(293),c=o(294),d=o(296),h=o(312),f=o(314),g=o(316),y=o(317),m=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.createFormatPanel(),this.addDestroyableEventListener(this.chartController,l.ChartController.EVENT_CHART_MODEL_UPDATED,this.createFormatPanel.bind(this))},t.prototype.createFormatPanel=function(){this.destroyActivePanels(),this.addComponent(new f.ChartPanel(this.chartController)),this.addComponent(new p.LegendPanel(this.chartController));var e=this.chartController.getChartType();this.isBarChart(e)?(this.addComponent(new c.AxisPanel(this.chartController)),this.addComponent(new u.BarSeriesPanel(this.chartController))):e===a.ChartType.Pie||e===a.ChartType.Doughnut?this.addComponent(new h.PieSeriesPanel(this.chartController)):e===a.ChartType.Line?(this.addComponent(new c.AxisPanel(this.chartController)),this.addComponent(new d.LineSeriesPanel(this.chartController))):e===a.ChartType.Scatter||e===a.ChartType.Bubble?(this.addComponent(new c.AxisPanel(this.chartController)),this.addComponent(new y.ScatterSeriesPanel(this.chartController))):e===a.ChartType.Area||e===a.ChartType.StackedArea||e===a.ChartType.NormalizedArea?(this.addComponent(new c.AxisPanel(this.chartController)),this.addComponent(new g.AreaSeriesPanel(this.chartController))):console.warn("ag-Grid: ChartFormattingPanel - unexpected chart type index: "+e+" supplied")},t.prototype.isBarChart=function(e){return[a.ChartType.GroupedColumn,a.ChartType.StackedColumn,a.ChartType.NormalizedColumn,a.ChartType.GroupedBar,a.ChartType.StackedBar,a.ChartType.NormalizedBar].indexOf(e)>-1},t.prototype.addComponent=function(e){this.getContext().wireBean(e),this.getGui().appendChild(e.getGui()),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-chart-format-wrapper"></div>',r([a.RefSelector("formatPanelWrapper"),s("design:type",HTMLElement)],t.prototype,"formatPanelWrapper",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ChartFormattingPanel=m},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(71),p=o(13),u=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=o.chartController.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initLegendGroup(),this.initLegendPosition(),this.initLegendPadding(),this.initLegendItems(),this.initLabelPanel()},t.prototype.initLegendGroup=function(){var e=this;this.legendGroup.setTitle(this.chartTranslator.translate("legend")).hideEnabledCheckbox(!1).setEnabled(this.chartProxy.getLegendEnabled()).toggleGroupExpand(!1).onEnableChange((function(t){e.chartProxy.setLegendProperty("enabled",t),e.legendGroup.toggleGroupExpand(!0)}))},t.prototype.initLegendPosition=function(){var e=this,t=this.chartController.getChartProxy();this.legendPositionSelect.setLabel(this.chartTranslator.translate("position")).setLabelWidth("flex").setInputWidth(80).addOptions(["top","right","bottom","left"].map((function(t){return{value:t,text:e.chartTranslator.translate(t)}}))).setValue(t.getLegendPosition()).onValueChange((function(e){return t.setLegendPosition(e)}))},t.prototype.initLegendPadding=function(){var e=this;this.legendPaddingSlider.setLabel(this.chartTranslator.translate("padding")).setValue(this.chartProxy.getLegendPadding()).setTextFieldWidth(45).setMaxValue(200).onValueChange((function(t){return e.chartProxy.setLegendPadding(t)}))},t.prototype.initLegendItems=function(){var e=this,t=function(t,o,i,n){i.setLabel(e.chartTranslator.translate(o)).setValue(e.chartProxy.getLegendProperty(t)).setMaxValue(n).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setLegendProperty(t,o)}))};t("markerSize","markerSize",this.markerSizeSlider,40),t("markerStrokeWidth","markerStroke",this.markerStrokeSlider,10),t("markerPadding","markerPadding",this.markerPaddingSlider,200),t("itemPaddingX","itemPaddingX",this.itemPaddingXSlider,50),t("itemPaddingY","itemPaddingY",this.itemPaddingYSlider,50)},t.prototype.initLabelPanel=function(){var e=this,t={enabled:!0,suppressEnabledCheckbox:!0,initialFont:{family:this.chartProxy.getLegendProperty("labelFontFamily"),style:this.chartProxy.getLegendProperty("labelFontStyle"),weight:this.chartProxy.getLegendProperty("labelFontWeight"),size:parseInt(this.chartProxy.getLegendProperty("labelFontSize")),color:this.chartProxy.getLegendProperty("labelColor")},setFont:function(t){t.family&&e.chartProxy.setLegendProperty("labelFontFamily",t.family),t.weight&&e.chartProxy.setLegendProperty("labelFontWeight",t.weight),t.size&&e.chartProxy.setLegendProperty("labelFontSize",t.size),t.color&&e.chartProxy.setLegendProperty("labelColor",t.color)}},o=new l.LabelPanel(t);this.getContext().wireBean(o),this.legendGroup.addItem(o),this.activePanels.push(o)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="legendGroup">\n <ag-select ref="legendPositionSelect"></ag-select>\n <ag-slider ref="legendPaddingSlider"></ag-slider>\n <ag-slider ref="markerSizeSlider"></ag-slider>\n <ag-slider ref="markerStrokeSlider"></ag-slider>\n <ag-slider ref="markerPaddingSlider"></ag-slider>\n <ag-slider ref="itemPaddingXSlider"></ag-slider>\n <ag-slider ref="itemPaddingYSlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("legendGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"legendGroup",void 0),r([a.RefSelector("legendPositionSelect"),s("design:type",a.AgSelect)],t.prototype,"legendPositionSelect",void 0),r([a.RefSelector("legendPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"legendPaddingSlider",void 0),r([a.RefSelector("markerSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"markerSizeSlider",void 0),r([a.RefSelector("markerStrokeSlider"),s("design:type",a.AgSlider)],t.prototype,"markerStrokeSlider",void 0),r([a.RefSelector("markerPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"markerPaddingSlider",void 0),r([a.RefSelector("itemPaddingXSlider"),s("design:type",a.AgSlider)],t.prototype,"itemPaddingXSlider",void 0),r([a.RefSelector("itemPaddingYSlider"),s("design:type",a.AgSlider)],t.prototype,"itemPaddingYSlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.LegendPanel=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(160),p=o(71),u=o(13),c=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=o.chartController.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0),this.initSeriesTooltips(),this.initSeriesStrokeWidth(),this.initOpacity(),this.initLabelPanel(),this.initShadowPanel()},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initSeriesStrokeWidth=function(){var e=this;this.seriesStrokeWidthSlider.setLabel(this.chartTranslator.translate("strokeWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeWidth")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeWidth",t)}))},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeOpacity",t)})),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("fillOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("fillOpacity",t)}))},t.prototype.initLabelPanel=function(){var e=this,t={family:this.chartProxy.getSeriesProperty("labelFontFamily"),style:this.chartProxy.getSeriesProperty("labelFontStyle"),weight:this.chartProxy.getSeriesProperty("labelFontWeight"),size:parseInt(this.chartProxy.getSeriesProperty("labelFontSize")),color:this.chartProxy.getSeriesProperty("labelColor")},o={enabled:this.chartProxy.getLabelEnabled(),setEnabled:function(t){return e.chartProxy.setSeriesProperty("labelEnabled",t)},suppressEnabledCheckbox:!1,initialFont:t,setFont:function(t){t.family&&e.chartProxy.setSeriesProperty("labelFontFamily",t.family),t.weight&&e.chartProxy.setSeriesProperty("labelFontWeight",t.weight),t.size&&e.chartProxy.setSeriesProperty("labelFontSize",t.size),t.color&&e.chartProxy.setSeriesProperty("labelColor",t.color)}},i=new p.LabelPanel(o);this.getContext().wireBean(i),this.activePanels.push(i),this.seriesGroup.addItem(i)},t.prototype.initShadowPanel=function(){var e=new l.ShadowPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button>\n <ag-slider ref="seriesStrokeWidthSlider"></ag-slider>\n <ag-slider ref="seriesLineOpacitySlider"></ag-slider>\n <ag-slider ref="seriesFillOpacitySlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),r([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),r([a.RefSelector("seriesStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesStrokeWidthSlider",void 0),r([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),r([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",u.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.BarSeriesPanel=c},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(295),p=o(71),u=o(13),c=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=t.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initAxis(),this.initAxisTicks(),this.initAxisLabels()},t.prototype.initAxis=function(){var e=this;this.axisGroup.setTitle(this.chartTranslator.translate("axis")).toggleGroupExpand(!1).hideEnabledCheckbox(!0),this.axisColorInput.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartProxy.getCommonAxisProperty("lineColor")).onValueChange((function(t){return e.chartProxy.setCommonAxisProperty("lineColor",t)})),this.axisLineWidthSlider.setLabel(this.chartTranslator.translate("thickness")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getCommonAxisProperty("lineWidth")).onValueChange((function(t){return e.chartProxy.setCommonAxisProperty("lineWidth",t)}))},t.prototype.initAxisTicks=function(){var e=new l.AxisTicksPanel(this.chartController);this.getContext().wireBean(e),this.axisGroup.addItem(e),this.activePanels.push(e)},t.prototype.initAxisLabels=function(){var e=this,t={enabled:!0,suppressEnabledCheckbox:!0,initialFont:{family:this.chartProxy.getCommonAxisProperty("labelFontFamily"),style:this.chartProxy.getCommonAxisProperty("labelFontStyle"),weight:this.chartProxy.getCommonAxisProperty("labelFontWeight"),size:parseInt(this.chartProxy.getCommonAxisProperty("labelFontSize")),color:this.chartProxy.getCommonAxisProperty("labelColor")},setFont:function(t){t.family&&e.chartProxy.setCommonAxisProperty("labelFontFamily",t.family),t.weight&&e.chartProxy.setCommonAxisProperty("labelFontWeight",t.weight),t.size&&e.chartProxy.setCommonAxisProperty("labelFontSize",t.size),t.color&&e.chartProxy.setCommonAxisProperty("labelColor",t.color),e.chartProxy.getChart().performLayout()}},o=new p.LabelPanel(t);this.getContext().wireBean(o),this.axisGroup.addItem(o),this.activePanels.push(o),this.addAdditionalLabelComps(o)},t.prototype.addAdditionalLabelComps=function(e){var t=this,o=function(o,i,n){var r=(new a.AgAngleSelect).setLabel(o).setLabelWidth("flex").setValue(i).onValueChange(n);t.getContext().wireBean(r),e.addCompToPanel(r)},i=String.fromCharCode(176);o(this.chartTranslator.translate("xRotation")+" "+i,this.chartProxy.getXRotation(),(function(e){return t.chartProxy.setXRotation(e)})),o(this.chartTranslator.translate("yRotation")+" "+i,this.chartProxy.getYRotation(),(function(e){return t.chartProxy.setYRotation(e)}))},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n <ag-group-component ref="axisGroup">\n <ag-color-picker ref="axisColorInput"></ag-color-picker>\n <ag-slider ref="axisLineWidthSlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("axisGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"axisGroup",void 0),r([a.RefSelector("axisLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"axisLineWidthSlider",void 0),r([a.RefSelector("axisColorInput"),s("design:type",a.AgColorPicker)],t.prototype,"axisColorInput",void 0),r([a.Autowired("chartTranslator"),s("design:type",u.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.AxisPanel=c},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initAxisTicks()},t.prototype.initAxisTicks=function(){var e=this;this.axisTicksGroup.setTitle(this.chartTranslator.translate("ticks")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0),this.axisTicksColorPicker.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartProxy.getCommonAxisProperty("tickColor")).onValueChange((function(t){return e.chartProxy.setCommonAxisProperty("tickColor",t)}));var t=function(t,o,i,n){o.setLabel(i).setValue(e.chartProxy.getCommonAxisProperty(t)).setMaxValue(n).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setCommonAxisProperty(t,o)}))};t("tickWidth",this.axisTicksWidthSlider,this.chartTranslator.translate("width"),10),t("tickSize",this.axisTicksSizeSlider,this.chartTranslator.translate("length"),30),t("tickPadding",this.axisTicksPaddingSlider,this.chartTranslator.translate("padding"),30)},t.TEMPLATE='<div> \n <ag-group-component ref="axisTicksGroup">\n <ag-color-picker ref="axisTicksColorPicker"></ag-color-picker>\n <ag-slider ref="axisTicksWidthSlider"></ag-slider>\n <ag-slider ref="axisTicksSizeSlider"></ag-slider>\n <ag-slider ref="axisTicksPaddingSlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("axisTicksGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"axisTicksGroup",void 0),r([a.RefSelector("axisTicksColorPicker"),s("design:type",a.AgColorPicker)],t.prototype,"axisTicksColorPicker",void 0),r([a.RefSelector("axisTicksWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksWidthSlider",void 0),r([a.RefSelector("axisTicksSizeSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksSizeSlider",void 0),r([a.RefSelector("axisTicksPaddingSlider"),s("design:type",a.AgSlider)],t.prototype,"axisTicksPaddingSlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.AxisTicksPanel=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(161),p=o(13),u=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartProxy=t.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initSeriesLineWidth(),this.initMarkersPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initSeriesLineWidth=function(){var e=this;this.seriesLineWidthSlider.setLabel(this.chartTranslator.translate("lineWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeWidth")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeWidth",t)}))},t.prototype.initMarkersPanel=function(){var e=new l.MarkersPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button>\n <ag-slider ref="seriesLineWidthSlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),r([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),r([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.LineSeriesPanel=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){void 0===e&&(e={}),this._parent=void 0,this._pixelRatio=NaN,this.document=e.document||window.document,this.tempCanvas=this.document.createElement("canvas"),this.element=this.document.createElement("canvas"),this.element.style.userSelect="none",this.context=this.element.getContext("2d"),this.updatePixelRatio(0,!1),this.resize(this._width=e.width||300,this._height=e.height||150)}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){this._parent!==e&&(this.remove(),e&&e.appendChild(this.element),this._parent=e)},enumerable:!0,configurable:!0}),e.prototype.remove=function(){var e=this.element.parentNode;null!==e&&e.removeChild(this.element)},e.prototype.destroy=function(){this.element.remove(),this._canvas=void 0,Object.freeze(this)},e.prototype.toImage=function(){var e=this.document.createElement("img");return e.src=this.element.toDataURL(),e},e.prototype.download=function(e){e=((e||"").trim()||"image")+".png";var t=this.element.toDataURL("image/png"),o=this.document;if(navigator.msSaveOrOpenBlob){for(var i=atob(t.split(",")[1]),n=[],r=0,s=i.length;r<s;r++)n.push(i.charCodeAt(r));var a=new Blob([new Uint8Array(n)],{type:"image/png"});navigator.msSaveOrOpenBlob(a,e)}else{var l=o.createElement("a");l.href=t,l.download=e,l.style.display="none",o.body.appendChild(l),l.click(),o.body.removeChild(l)}},Object.defineProperty(e.prototype,"pixelRatio",{get:function(){return this._pixelRatio},enumerable:!0,configurable:!0}),e.prototype.updatePixelRatio=function(t,o){void 0===t&&(t=0),void 0===o&&(o=!0);var i=t||window.devicePixelRatio;if(i!==this.pixelRatio){var n=this.element,r=this.context,s=this.overrides=e.makeHdpiOverrides(i);for(var a in s)s.hasOwnProperty(a)&&(r["$"+a]||(r["$"+a]=r[a]),r[a]=s[a]);if(o){var l=n.width/this.pixelRatio,p=n.height/this.pixelRatio;n.width=Math.round(l*i),n.height=Math.round(p*i),n.style.width=Math.round(l)+"px",n.style.height=Math.round(p)+"px",r.resetTransform()}this._pixelRatio=i}},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype.resize=function(e,t){var o=this.element,i=this.context,n=this.tempCanvas;this._width=e,this._height=t,n.width=o.width,n.height=o.height;var r=n.getContext("2d");r.drawImage(i.canvas,0,0),o.width=Math.round(e*this.pixelRatio),o.height=Math.round(t*this.pixelRatio),o.style.width=Math.round(e)+"px",o.style.height=Math.round(t)+"px",i.drawImage(r.canvas,0,0),i.resetTransform()},Object.defineProperty(e.prototype,"textMeasuringContext",{get:function(){if(this._textMeasuringContext)return this._textMeasuringContext;var e=document.createElement("canvas");return this._textMeasuringContext=e.getContext("2d")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"svgText",{get:function(){if(this._svgText)return this._svgText;var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("width","100"),t.setAttribute("height","100"),t.classList?t.classList.add("text-measuring-svg"):t.setAttribute("class","text-measuring-svg"),t.style.position="absolute",t.style.top="-1000px",t.style.visibility="hidden";var o=document.createElementNS(e,"text");return o.setAttribute("x","0"),o.setAttribute("y","30"),o.setAttribute("text","black"),t.appendChild(o),document.body.appendChild(t),this._svgText=o,o},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"has",{get:function(){return this._has?this._has:this._has=Object.freeze({textMetrics:void 0!==this.textMeasuringContext.measureText("test").actualBoundingBoxDescent,getTransform:void 0!==this.textMeasuringContext.getTransform,flicker:!!window.safari})},enumerable:!0,configurable:!0}),e.prototype.measureText=function(e,t,o,i){var n=this.textMeasuringContext;return n.font=t,n.textBaseline=o,n.textAlign=i,n.measureText(e)},e.prototype.getTextSize=function(e,t){if(this.has.textMetrics){var o=this.textMeasuringContext;o.font=t;var i=o.measureText(e);return{width:i.width,height:i.actualBoundingBoxAscent+i.actualBoundingBoxDescent}}return this.measureSvgText(e,t)},e.prototype.measureSvgText=function(t,o){var i=e.textSizeCache,n=i[o];if(n){var r=n[t];if(r)return r}else i[o]={};var s=this.svgText;s.style.font=o,s.textContent=t;var a=s.getBBox(),l={width:a.width,height:a.height};return i[o][t]=l,l},e.makeHdpiOverrides=function(e){var t=0;return{save:function(){this.$save(),t++},restore:function(){t>0&&(this.$restore(),t--)},setTransform:function(t,o,i,n,r,s){this.$setTransform(t*e,o*e,i*e,n*e,r*e,s*e)},resetTransform:function(){this.$setTransform(e,0,0,e,0,0),this.save(),t=0}}},e.textSizeCache={},e}();t.HdpiCanvas=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(299);function n(e,t,o,i){return[3*t-e-3*o+i,3*e-6*t+3*o,-3*e+3*t,e]}t.segmentIntersection=function(e,t,o,i,n,r,s,a){var l=(o-e)*(a-r)-(i-t)*(s-n);if(0===l)return null;var p=((s-n)*(t-r)-(e-n)*(a-r))/l,u=((o-e)*(t-r)-(i-t)*(e-n))/l;return p>=0&&p<=1&&u>=0&&u<=1?{x:e+p*(o-e),y:t+p*(i-t)}:null},t.cubicSegmentIntersections=function(e,t,o,r,s,a,l,p,u,c,d,h){for(var f=[],g=c-h,y=d-u,m=u*(h-c)-c*(d-u),v=n(e,o,s,l),C=n(t,r,a,p),_=g*v[0]+y*C[0],w=g*v[1]+y*C[1],b=g*v[2]+y*C[2],E=g*v[3]+y*C[3]+m,R=i.cubicRoots(_,w,b,E),S=0;S<R.length;S++){var P,O=R[S],T=O*O,A=O*T,D=v[0]*A+v[1]*T+v[2]*O+v[3],x=C[0]*A+C[1]*T+C[2]*O+C[3];(P=u!==d?(D-u)/(d-u):(x-c)/(h-c))>=0&&P<=1&&f.push({x:D,y:x})}return f},t.bezierCoefficients=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Math.sign?Math.sign:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1};function n(e,t){var o=-t/e;return 0!==e&&o>=0&&o<=1?[o]:[]}function r(e,t,o){if(0===e)return n(t,o);var i=t*t-4*e*o,r=[];if(0===i){var s=-t/(2*e);s>=0&&s<=1&&r.push(s)}else if(i>0){var a=Math.sqrt(i),l=(-t-a)/(2*e),p=(-t+a)/(2*e);l>=0&&l<=1&&r.push(l),p>=0&&p<=1&&r.push(p)}return r}t.linearRoot=n,t.quadraticRoots=r,t.cubicRoots=function(e,t,o,n){if(0===e)return r(t,o,n);var s=t/e,a=o/e,l=(3*a-s*s)/9,p=(9*s*a-n/e*27-2*s*s*s)/54,u=l*l*l+p*p,c=[];if(u>=0){var d=Math.sqrt(u),h=i(p+d)*Math.pow(Math.abs(p+d),1/3),f=i(p-d)*Math.pow(Math.abs(p-d),1/3),g=Math.abs(Math.sqrt(3)*(h-f)/2),y=-1/3*s+(h+f);if(y>=0&&y<=1&&c.push(y),0===g){var m=-1/3*s-(h+f)/2;m>=0&&m<=1&&c.push(m)}}else{var v=Math.acos(p/Math.sqrt(-l*l*l)),C=1/3*s,_=2*Math.sqrt(-l),w=_*Math.cos(1/3*v)-C,b=_*Math.cos(1/3*(v+2*Math.PI))-C,E=_*Math.cos(1/3*(v+4*Math.PI))-C;w>=0&&w<=1&&c.push(w),b>=0&&b<=1&&c.push(b),E>=0&&E<=1&&c.push(E)}return c}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(16),r=o(34),s=o(301);!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(i=t.Orientation||(t.Orientation={}));var a=function(){function e(){this.group=new n.Group,this.itemSelection=r.Selection.select(this.group).selectAll(),this.oldSize=[0,0],this._size=[0,0],this._data=[],this._orientation=i.Vertical,this._enabled=!0,this._itemPaddingX=16,this._itemPaddingY=8,this._markerPadding=s.MarkerLabel.defaults.padding,this._labelColor=s.MarkerLabel.defaults.labelColor,this._labelFontStyle=s.MarkerLabel.defaults.labelFontStyle,this._labelFontWeight=s.MarkerLabel.defaults.labelFontWeight,this._labelFontSize=s.MarkerLabel.defaults.labelFontSize,this._labelFontFamily=s.MarkerLabel.defaults.labelFontFamily,this._markerSize=14,this._markerStrokeWidth=1}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.group.visible=this.enabled&&e.length>0,this.requestLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation!==e&&(this._orientation=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled!==e&&(this._enabled=e,this.group.visible=e&&this.data.length>0,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemPaddingX",{get:function(){return this._itemPaddingX},set:function(e){e=isFinite(e)?e:16,this._itemPaddingX!==e&&(this._itemPaddingX=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemPaddingY",{get:function(){return this._itemPaddingY},set:function(e){e=isFinite(e)?e:8,this._itemPaddingY!==e&&(this._itemPaddingY=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerPadding",{get:function(){return this._markerPadding},set:function(e){e=isFinite(e)?e:s.MarkerLabel.defaults.padding,this._markerPadding!==e&&(this._markerPadding=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelColor",{get:function(){return this._labelColor},set:function(e){this._labelColor!==e&&(this._labelColor=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontStyle",{get:function(){return this._labelFontStyle},set:function(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontWeight",{get:function(){return this._labelFontWeight},set:function(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontSize",{get:function(){return this._labelFontSize},set:function(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelFontFamily",{get:function(){return this._labelFontFamily},set:function(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){e=isFinite(e)?e:14,this._markerSize!==e&&(this._markerSize=e,this.requestLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerStrokeWidth",{get:function(){return this._markerStrokeWidth},set:function(e){e=isFinite(e)?e:1,this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update())},enumerable:!0,configurable:!0}),e.prototype.requestLayout=function(){this.onLayoutChange&&this.onLayoutChange()},e.prototype.performLayout=function(e,t){var o=this,n=this.itemSelection.setData(this.data);n.exit.remove();var r=n.enter.append(s.MarkerLabel),a=this.itemSelection=n.merge(r),l=a.size,p=this.itemPaddingX,u=this.itemPaddingY,c=[];a.each((function(e,t){e.markerSize=o.markerSize,e.labelFontStyle=o.labelFontStyle,e.labelFontWeight=o.labelFontWeight,e.labelFontSize=o.labelFontSize,e.labelFontFamily=o.labelFontFamily,e.labelText=t.label.text,e.padding=o.markerPadding,c.push(e.getBBox())}));var d=c.length&&c[0].height,h=0,f=0,g=0,y=0;switch(this.orientation){case i.Horizontal:if(!(isFinite(e)&&e>0))return!1;h=0;var m=0;do{var v=0;m=0,f=0,h++;for(var C=0;C<l;)(b=c[C]).width>f&&(f=b.width),++C%h==0&&(v+=f,f=0,m++);C%h!=0&&(v+=f,m++),g=v+(m-1)*p}while(g>e&&m>1);y=d*h+(h-1)*u;break;case i.Vertical:if(!(isFinite(t)&&t>0))return!1;h=2*l;do{h=(h>>1)+h%2,f=0,v=0;var _=0,w=0;for(C=0;C<l;){var b=c[C];w||(_+=b.height),b.width>f&&(f=b.width),++C%h==0&&(v+=f,f=0,w++)}C%h!=0&&(v+=f,w++),g=v+(w-1)*p,y=_+(h-1)*u}while(y>t&&h>1)}var E=(e-g)/2,R=(t-y)/2,S=0,P=0;f=0,a.each((function(e,t,o){e.translationX=Math.floor(E+S),e.translationY=Math.floor(R+P);var i=c[o];i.width>f&&(f=i.width),(o+1)%h==0?(S+=f+p,P=0,f=0):P+=i.height+u})),this.update();var O=this._size,T=this.oldSize;O[0]=g,O[1]=y,O[0]===T[0]&&O[1]===T[1]||(T[0]=O[0],T[1]=O[1],this.requestLayout())},e.prototype.update=function(){var e=this;this.itemSelection.each((function(t,o){var i=o.marker;t.markerFill=i.fill,t.markerStroke=i.stroke,t.markerStrokeWidth=e.markerStrokeWidth,t.opacity=o.enabled?1:.5,t.labelColor=e.labelColor}))},e.prototype.datumForPoint=function(e,t){var o=this.group.pickNode(e,t);if(o&&o.parent)return o.parent.datum},e}();t.Legend=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(16),s=o(100),a=o(52),l=function(e){function t(){var o=e.call(this)||this;o.marker=new s.Rect,o.label=new a.Text,o._markerSize=t.defaults.markerSize,o._padding=t.defaults.padding,o.marker.crisp=!0;var i=o.label;return i.textBaseline="middle",i.fontStyle=t.defaults.labelFontStyle,i.fontWeight=t.defaults.labelFontWeight,i.fontSize=t.defaults.labelFontSize,i.fontFamily=t.defaults.labelFontFamily,i.fill=t.defaults.labelColor,i.y=2,o.append([o.marker,i]),o.update(),o}return n(t,e),Object.defineProperty(t.prototype,"labelText",{get:function(){return this.label.text},set:function(e){this.label.text=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function(){return this.label.fontStyle},set:function(e){this.label.fontStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function(){return this.label.fontWeight},set:function(e){this.label.fontWeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function(){return this.label.fontSize},set:function(e){this.label.fontSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function(){return this.label.fontFamily},set:function(e){this.label.fontFamily=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function(){return this.label.fill},set:function(e){this.label.fill=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerFill",{get:function(){return this.marker.fill},set:function(e){this.marker.fill=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStroke",{get:function(){return this.marker.stroke},set:function(e){this.marker.stroke=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this.marker.strokeWidth},set:function(e){this.marker.strokeWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this.marker.opacity},set:function(e){this.marker.opacity=e,this.label.opacity=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.update=function(){var e=this.marker,t=this.markerSize;e.x=-t/2,e.y=-t/2,e.width=t,e.height=t,this.label.x=t/2+this.padding},t.className="MarkerLabel",t.defaults=Object.freeze({padding:4,markerSize:14,labelFont:"12px Verdana, sans-serif",labelFontStyle:void 0,labelFontWeight:void 0,labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:"black"}),t}(r.Group);t.MarkerLabel=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(162),s=o(51),a=function(e){function t(){var t=e.call(this)||this;return t.centerX=0,t.centerY=0,t.radius=0,t._padding=new s.Padding(50),t._series=[],t.scene.root.append(t.legend.group),t}return n(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this.scene.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach((function(e){t.addSeries(e,null)}))},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){var e={x:0,y:0,width:this.width,height:this.height},t=this.captionAutoPadding;if(e.y+=t,e.height-=t,this.legend.enabled&&this.legend.data.length){var o=this.legendAutoPadding;e.x+=o.left,e.y+=o.top,e.width-=o.left+o.right,e.height-=o.top+o.bottom;var i=this.legendPadding;switch(this.legendPosition){case"right":e.width-=i;break;case"bottom":e.height-=i;break;case"left":e.x+=i,e.width-=i;break;case"top":e.y+=i,e.height-=i}}var n=this.padding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.bottom,this.centerX=e.x+e.width/2,this.centerY=e.y+e.height/2,this.radius=Math.min(e.width,e.height)/2,this.series.forEach((function(e){e.update()})),this.positionCaptions(),this.positionLegend()},t}(r.Chart);t.PolarChart=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(163),s=o(101),a=o(34),l=o(16),p=o(73),u=o(53),c=o(55),d=o(74),h=o(42),f=o(28),g=o(1),y=function(e){function t(){var t=e.call(this)||this;t.domainX=[],t.domainY=[],t.xData=[],t.yData=[],t.lineNode=new r.Path,t.groupSelection=a.Selection.select(t.group).selectAll(),t._title="",t._xField="",t._yField="",t._marker=!1,t._markerSize=8,t._markerStrokeWidth=2,t._fill=c.default.fills[0],t._stroke=c.default.strokes[0],t._strokeWidth=3,t.highlightStyle={fill:"yellow"};var o=t.lineNode;return o.fill=void 0,o.lineJoin="round",o.pointerEvents=f.PointerEvents.None,t.group.append(o),t}return n(t,e),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){this._title!==e&&(this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},set:function(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function(){return this._yField},set:function(e){this._yField!==e&&(this._yField=e,this.yData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker!==e&&(this._marker=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this._markerStrokeWidth},set:function(e){this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.processData=function(){var e=this.chart,t=this.xField,o=this.yField,i=this.data;if(!(e&&e.xAxis&&e.yAxis))return!1;t&&o||(this._data=i=[]),this.xData=i.map((function(e){return e[t]})),this.yData=i.map((function(e){return e[o]}));var n=e.xAxis.scale instanceof s.default,r=n?u.numericExtent(this.xData)||[0,1]:this.xData,a=u.numericExtent(this.yData)||[0,1];if(n){var l=r;(p=l[0])===(c=l[1])&&(r[0]=p-1,r[1]=c+1)}var p,c,d=a;return(p=d[0])===(c=d[1])&&(a[0]=p-1,a[1]=c+1),this.domainX=r,this.domainY=a,!0},Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.stroke=g.Color.fromString(e).darker().toHexString(),this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof p.Arc&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible;if(t&&o&&!t.dataPending&&!t.layoutPending&&t.xAxis&&t.yAxis){var i=t.xAxis,n=t.yAxis,r=i.scale,s=n.scale,a=(r.bandwidth||0)/2,u=(s.bandwidth||0)/2,c=this.data,d=this.xData,h=this.yData,f=d.length,g=this.fill,y=this.stroke,m=this.marker,v=this.markerSize,C=this.markerStrokeWidth,_=this.lineNode,w=_.path,b=[];w.clear();for(var E=0;E<f;E++){var R=d[E],S=h[E],P=r.convert(R)+a,O=s.convert(S)+u;E?w.lineTo(P,O):w.moveTo(P,O),m&&b.push({seriesDatum:c[E],x:P,y:O,fill:g,stroke:y,strokeWidth:C,radius:v/2})}_.stroke=y,_.strokeWidth=this.strokeWidth;var T=this.groupSelection.setData(b);T.exit.remove();var A=T.enter.append(l.Group);A.append(p.Arc).each((function(e){return e.type=p.ArcType.Chord}));var D=this.highlightedNode,x=T.merge(A);x.selectByClass(p.Arc).each((function(t,o){t.centerX=o.x,t.centerY=o.y,t.radiusX=o.radius,t.radiusY=o.radius,t.fill=t===D&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===D&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.strokeWidth=o.strokeWidth,t.visible=o.radius>0})),this.groupSelection=x}},t.prototype.getDomainX=function(){return this.domainX},t.prototype.getDomainY=function(){return this.domainY},t.prototype.getTooltipHtml=function(e){var t=this.xField,o=this.yField,i=this.fill,n="";if(!t||!o)return n;var r=this.title;if(this.tooltipRenderer&&this.xField)n=this.tooltipRenderer({datum:e.seriesDatum,xField:t,yField:o,title:r,color:i});else{r=r?'<div class="title" style="color: white; background-color: '+i+'">'+r+"</div>":"";var s=e.seriesDatum,a=s[t],l=s[o];n=r+'<div class="content">'+("number"==typeof a?h.toFixed(a):String(a))+": "+("number"==typeof l?h.toFixed(l):String(l))+"</div>"}return n},t.prototype.listSeriesItems=function(e){this.data.length&&this.xField&&this.yField&&e.push({id:this.id,itemId:void 0,enabled:this.visible,label:{text:this.title||this.yField},marker:{fill:this.fill,stroke:this.stroke}})},t.className="LineSeries",t}(d.Series);t.LineSeries=y},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(101),s=o(34),a=o(16),l=o(73),p=o(53),u=o(55),c=o(74),d=o(42),h=o(1),f=o(102),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.domainX=[],t.domainY=[],t.xData=[],t.yData=[],t.radiusData=[],t.radiusScale=f.default(),t.groupSelection=s.Selection.select(t.group).selectAll(),t._title="",t._xField="",t._yField="",t._radiusField="",t.xFieldName="X",t.yFieldName="Y",t.radiusFieldName="Radius",t._marker=!1,t._markerSize=8,t._minMarkerSize=4,t._markerStrokeWidth=2,t._fill=u.default.fills[0],t._stroke=u.default.strokes[0],t._fillOpacity=1,t._strokeOpacity=1,t.highlightStyle={fill:"yellow"},t}return n(t,e),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){this._title!==e&&(this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},set:function(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function(){return this._yField},set:function(e){this._yField!==e&&(this._yField=e,this.yData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusField",{get:function(){return this._radiusField},set:function(e){this._radiusField!==e&&(this._radiusField=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker!==e&&(this._marker=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minMarkerSize",{get:function(){return this._minMarkerSize},set:function(e){this._minMarkerSize!==e&&(this._minMarkerSize=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this._markerStrokeWidth},set:function(e){this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.processData=function(){var e=this.chart,t=this.xField,o=this.yField,i=this.radiusField,n=this.markerSize,s=this.minMarkerSize,a=this.data;if(!(e&&e.xAxis&&e.yAxis))return!1;t&&o||(this._data=a=[]);var l=[],u=[],c=[];a.forEach((function(e){l.push(e[t]),u.push(e[o]),i&&c.push(e[i])})),this.xData=l,this.yData=u,this.radiusData=c,this.radiusScale.domain=p.numericExtent(c)||[1,1],this.radiusScale.range=[s/2,n/2];var d=e.xAxis.scale instanceof r.default,h=d?p.numericExtent(this.xData)||[0,1]:this.xData,f=p.numericExtent(this.yData)||[0,1];if(d){var g=h;(y=g[0])===(m=g[1])&&(h[0]=y-1,h[1]=m+1)}var y,m,v=f;return(y=v[0])===(m=v[1])&&(f[0]=y-1,f[1]=m+1),this.domainX=h,this.domainY=f,!0},Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.stroke=h.Color.fromString(e).darker().toHexString(),this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof l.Arc&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible;if(t&&o&&!t.dataPending&&!t.layoutPending&&t.xAxis&&t.yAxis){for(var i=t.xAxis,n=t.yAxis,r=i.scale,s=n.scale,p=(r.bandwidth||0)/2,u=(s.bandwidth||0)/2,c=this.data,d=this.xData,h=this.yData,f=this.radiusData,g=d.length,y=this.fill,m=this.stroke,v=this.fillOpacity,C=this.strokeOpacity,_=this.markerStrokeWidth,w=this.markerSize,b=[],E=0;E<g;E++){var R=d[E],S=h[E],P=r.convert(R)+p,O=s.convert(S)+u;b.push({seriesDatum:c[E],x:P,y:O,fill:y,stroke:m,strokeWidth:_,radius:this.radiusField?this.radiusScale.convert(f[E]):w/2})}var T=this.groupSelection.setData(b);T.exit.remove();var A=T.enter.append(a.Group);A.append(l.Arc).each((function(e){return e.type=l.ArcType.Chord}));var D=this.highlightedNode,x=T.merge(A);x.selectByClass(l.Arc).each((function(t,o){t.centerX=o.x,t.centerY=o.y,t.radiusX=o.radius,t.radiusY=o.radius,t.fill=t===D&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===D&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.fillOpacity=v,t.strokeOpacity=C,t.strokeWidth=o.strokeWidth,t.visible=o.radius>0})),this.groupSelection=x}},t.prototype.getDomainX=function(){return this.domainX},t.prototype.getDomainY=function(){return this.domainY},t.prototype.getTooltipHtml=function(e){var t=this.xField,o=this.yField,i=this.radiusField,n=this.xFieldName,r=this.yFieldName,s=this.radiusFieldName,a=this.fill,l="";if(!t||!o)return l;var p=this.title;if(this.tooltipRenderer&&this.xField)l=this.tooltipRenderer({datum:e.seriesDatum,xField:t,yField:o,radiusField:i,xFieldName:n,yFieldName:r,radiusFieldName:s,title:p,color:a});else{p=p?'<div class="title" style="color: white; background-color: '+a+'">'+p+"</div>":"";var u=e.seriesDatum,c=u[t],h=u[o],f="<b>"+n+"</b>: "+("number"==typeof c?d.toFixed(c):String(c))+"<br><b>"+r+"</b>: "+("number"==typeof h?d.toFixed(h):String(h));i&&(f+="<br><b>"+s+"</b>: "+u[i]),l=p+'<div class="content">'+f+"</div>"}return l},t.prototype.listSeriesItems=function(e){this.data.length&&this.xField&&this.yField&&e.push({id:this.id,itemId:void 0,enabled:this.visible,label:{text:this.title||this.yField},marker:{fill:this.fill,stroke:this.stroke}})},t.className="ScatterSeries",t}(c.Series);t.ScatterSeries=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.naturalOrder=function(e,t){return e-t}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(16),a=o(34),l=o(100),p=o(52),u=o(103),c=o(55),d=o(74),h=o(28),f=o(42),g=o(1),y=o(164);!function(e){e[e.Bar=0]="Bar",e[e.Label=1]="Label"}(r||(r={}));var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rectGroup=t.group.appendChild(new s.Group),t.textGroup=t.group.appendChild(new s.Group),t.rectSelection=a.Selection.select(t.rectGroup).selectAll(),t.textSelection=a.Selection.select(t.textGroup).selectAll(),t.enabled=new Map,t._fills=c.default.fills,t._strokes=c.default.strokes,t._fillOpacity=1,t._strokeOpacity=1,t.xData=[],t.yData=[],t.ySums=[],t.domainY=[],t.groupScale=new u.BandScale,t._xField="",t._yFields=[],t._yFieldNames=[],t._grouped=!1,t._normalizedTo=NaN,t._strokeWidth=1,t._shadow=void 0,t._labelEnabled=!0,t._labelFontStyle=void 0,t._labelFontWeight=void 0,t._labelFontSize=12,t._labelFontFamily="Verdana, sans-serif",t._labelColor="black",t._labelFormatter=void 0,t.highlightStyle={fill:"yellow"},t}return n(t,e),Object.defineProperty(t.prototype,"fills",{get:function(){return this._fills},set:function(e){this._fills=e,this.strokes=e.map((function(e){return g.Color.fromString(e).darker().toHexString()})),this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function(){return this._strokes},set:function(e){this._strokes=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},set:function(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFields",{get:function(){return this._yFields},set:function(e){this._yFields=e;var t=this.enabled;t.clear(),e.forEach((function(e){return t.set(e,!0)}));var o=this.groupScale;o.domain=e,o.padding=.1,o.round=!0,this.yData=[],this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFieldNames",{get:function(){return this._yFieldNames},set:function(e){this._yFieldNames=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"grouped",{get:function(){return this._grouped},set:function(e){this._grouped!==e&&(this._grouped=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(e){0===e&&(e=NaN);var t=Math.abs(e);this._normalizedTo!==t&&(this._normalizedTo=t,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelEnabled",{get:function(){return this._labelEnabled},set:function(e){this._labelEnabled!==e&&(this._labelEnabled=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function(){return this._labelFontStyle},set:function(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function(){return this._labelFontWeight},set:function(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function(){return this._labelFontSize},set:function(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function(){return this._labelFontFamily},set:function(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function(){return this._labelColor},set:function(e){this._labelColor!==e&&(this._labelColor=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFormatter",{get:function(){return this._labelFormatter},set:function(e){this._labelFormatter!==e&&(this._labelFormatter=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof l.Rect&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.processData=function(){var e=this.data,t=this.xField,o=this.yFields;t&&o.length||(this._data=e=[]);var i=this.enabled,n=this.normalizedTo,r=(this.xData=e.map((function(e){return e[t]})),this.ySums=[]),s=this.yData=e.map((function(e,t){var n=[],s=0;return o.forEach((function(t){var o=e[t];isFinite(o)&&i.get(t)||(o=0),o>0&&(s+=o),n.push(o)})),r[t]=s,n})),a=1/0,l=-1/0;this.grouped?(a=Math.min.apply(Math,s.map((function(e){return Math.min.apply(Math,[0].concat(e))}))),l=Math.max.apply(Math,s.map((function(e){return Math.max.apply(Math,e)})))):isFinite(n)?(a=0,l=n,s.forEach((function(e,t){var o=r[t];e.forEach((function(t,i){return e[i]=t/o*n}))}))):(a=Math.min.apply(Math,[0].concat(s.map((function(e){var t=0;return e.forEach((function(e){e<0&&(t-=e)})),t})))),l=Math.max.apply(Math,s.map((function(e){var t=0;return e.forEach((function(e){e>0&&(t+=e)})),t})))),a!==l&&isFinite(a)&&isFinite(l)||(a=0,l=1),this.domainY=[a,l];var p=this.chart;return p&&p.updateAxes(),!0},t.prototype.getDomainX=function(){return this.xData},t.prototype.getDomainY=function(){return this.domainY},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible;if(t&&o&&!t.dataPending&&!t.layoutPending&&t.xAxis&&t.yAxis){var i=this.data.length,n=!(t.yAxis instanceof y.NumberAxis),s=n?t.yAxis:t.xAxis,a=n?t.xAxis:t.yAxis,u=s.scale,c=a.scale,d=this.groupScale,f=this.yFields,g=this.fills,m=this.strokes,v=this.fillOpacity,C=this.strokeOpacity,_=this.grouped,w=this.strokeWidth,b=this.enabled,E=this.labelEnabled,R=this.labelFontStyle,S=this.labelFontWeight,P=this.labelFontSize,O=this.labelFontFamily,T=this.labelColor,A=this.labelFormatter,D=this.data,x=this.xData,F=this.yData;d.range=[0,u.bandwidth];for(var M=_?d.bandwidth:u.bandwidth,N=[],L=0;L<i;L++)for(var I=x[L],k=F[L],G=k.length,W=u.convert(I),H=0,V=void 0,j=0;j<G;j++){V=k[j];var B,z=f[j],U=b.get(z),Y=_?W+d.convert(z):W,$=c.convert(_?V:H+V),q=c.convert(_?0:H),K=D[L],X=K[z],Q="number"==typeof X;B=A?A({value:Q?X:NaN}):Q&&isFinite(X)?X.toFixed(2):"",N.push({seriesDatum:K,yValue:X,yField:z,x:n?Math.min($,q):Y,y:n?Y:Math.min($,q),width:n?Math.abs(q-$):M,height:n?M:Math.abs(q-$),fill:g[j%g.length],stroke:m[j%m.length],strokeWidth:w,label:U&&B?{text:B,fontStyle:R,fontWeight:S,fontSize:P,fontFamily:O,fill:T,x:n?$+(X>=0?-1:1)*Math.abs(q-$)/2:Y+M/2,y:n?Y+M/2:$+(X>=0?1:-1)*Math.abs(q-$)/2}:void 0}),_?H=V:H+=V}var Z=this.rectSelection.setData(N),J=this.textSelection.setData(N);Z.exit.remove(),J.exit.remove();var ee=Z.enter.append(l.Rect).each((function(e){e.tag=r.Bar,e.crisp=!0})),te=J.enter.append(p.Text).each((function(e){e.tag=r.Label,e.pointerEvents=h.PointerEvents.None,e.textAlign="center",e.textBaseline="middle"})),oe=this.highlightedNode,ie=Z.merge(ee),ne=J.merge(te);ie.each((function(t,o){t.x=o.x,t.y=o.y,t.width=o.width,t.height=o.height,t.fill=t===oe&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===oe&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.fillOpacity=v,t.strokeOpacity=C,t.strokeWidth=o.strokeWidth,t.fillShadow=e.shadow,t.visible=o.height>0})),ne.each((function(e,t){var o=t.label;o&&E?(e.fontStyle=o.fontStyle,e.fontWeight=o.fontWeight,e.fontSize=o.fontSize,e.fontFamily=o.fontFamily,e.text=o.text,e.x=o.x,e.y=o.y,e.fill=o.fill,e.visible=!0):e.visible=!1})),this.rectSelection=ie,this.textSelection=ne}},t.prototype.getTooltipHtml=function(e){var t="";if(this.tooltipEnabled){var o=this.xField,i=e.yField,n=this.yFields.indexOf(i),r=e.seriesDatum,s=this.fills[n%this.fills.length],a=this.yFieldNames[n]||void 0;if(this.tooltipRenderer&&o)t=this.tooltipRenderer({datum:r,xField:o,yField:i,title:a,color:s});else{a=a?'<div class="title" style="color: white; background-color: '+s+'">'+a+"</div>":"";var l=r[o],p=r[i];t=a+'<div class="content">'+("number"==typeof l?f.toFixed(l):String(l))+": "+("number"==typeof p?f.toFixed(p):String(p))+"</div>"}}return t},t.prototype.listSeriesItems=function(e){var t=this;if(this.data.length&&this.xField&&this.yFields.length){var o=this.fills,i=this.strokes,n=this.id;this.yFields.forEach((function(r,s){e.push({id:n,itemId:r,enabled:t.enabled.get(r)||!1,label:{text:t.yFieldNames[s]||t.yFields[s]},marker:{fill:o[s%o.length],stroke:i[s%i.length]}})}))}},t.prototype.toggleSeriesItem=function(e,t){this.enabled.set(e,t);var o=[];this.enabled.forEach((function(e,t){e&&o.push(t)})),this.groupScale.domain=o,this.scheduleData()},t.className="BarSeries",t}(d.Series);t.BarSeries=m},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(16),s=o(34),a=o(74),l=o(101),p=o(28),u=o(42),c=o(163),d=o(73),h=o(55),f=o(53),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.areaGroup=t.group.appendChild(new r.Group),t.strokeGroup=t.group.appendChild(new r.Group),t.markerGroup=t.group.appendChild(new r.Group),t.areaSelection=s.Selection.select(t.areaGroup).selectAll(),t.strokeSelection=s.Selection.select(t.strokeGroup).selectAll(),t.markerSelection=s.Selection.select(t.markerGroup).selectAll(),t.enabled=new Map,t._fills=h.default.fills,t._strokes=["white"],t._fillOpacity=1,t._strokeOpacity=1,t.xData=[],t.yData=[],t.ySums=[],t.domainX=[],t.domainY=[],t._xField="",t._yFields=[],t._yFieldNames=[],t._normalizedTo=NaN,t._strokeWidth=3,t._marker=!1,t._markerSize=8,t._markerStrokeWidth=2,t._shadow=void 0,t.highlightStyle={fill:"yellow"},t}return n(t,e),Object.defineProperty(t.prototype,"fills",{get:function(){return this._fills},set:function(e){this._fills=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function(){return this._strokes},set:function(e){this._strokes=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this._xField},set:function(e){this._xField!==e&&(this._xField=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFields",{get:function(){return this._yFields},set:function(e){this._yFields=e;var t=this.enabled;t.clear(),e.forEach((function(e){return t.set(e,!0)})),this.yData=[],this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yFieldNames",{get:function(){return this._yFieldNames},set:function(e){this._yFieldNames=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(e){0===e&&(e=NaN);var t=Math.abs(e);this._normalizedTo!==t&&(this._normalizedTo=t,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"marker",{get:function(){return this._marker},set:function(e){this._marker!==e&&(this._marker=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerSize",{get:function(){return this._markerSize},set:function(e){this._markerSize!==e&&(this._markerSize=Math.abs(e),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markerStrokeWidth",{get:function(){return this._markerStrokeWidth},set:function(e){this._markerStrokeWidth!==e&&(this._markerStrokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof d.Arc&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.processData=function(){var e=this.chart,t=this.xField,o=this.yFields,i=this.data;if(!(e&&e.xAxis&&e.yAxis))return!1;t&&o.length||(this._data=i=[]);var n=this.enabled,r=this.normalizedTo,s=e.xAxis.scale instanceof l.default,a=this.xData=i.map((function(e){return e[t]})),p=this.ySums=[],u=this.yData=i.map((function(e,t){var i=[],r=0;return o.forEach((function(t){var o=e[t];isFinite(o)&&n.get(t)||(o=0),o<0&&(o=Math.abs(o)),o>0&&(r+=o),i.push(o)})),p[t]=r,i})),c=1/0,d=-1/0;isFinite(r)?(c=0,d=r,u.forEach((function(e,t){var o=p[t];e.forEach((function(t,i){return e[i]=t/o*r}))}))):(c=Math.min.apply(Math,[0].concat(u.map((function(e){var t=0;return e.forEach((function(e){e<0&&(t-=e)})),t})))),d=Math.max.apply(Math,u.map((function(e){var t=0;return e.forEach((function(e){e>0&&(t+=e)})),t})))),c!==d&&isFinite(c)&&isFinite(d)||(c=0,d=1);var h=s?f.numericExtent(a)||[0,1]:a;if(s){var g=h,y=g[0],m=g[1];y===m&&(h[0]=y-1,h[1]=m+1)}return this.domainX=h,this.domainY=[c,d],e&&e.updateAxes(),!0},t.prototype.getDomainX=function(){return this.xData},t.prototype.getDomainY=function(){return this.domainY},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible;if(t&&o&&!t.dataPending&&!t.layoutPending&&t.xAxis&&t.yAxis){for(var i=this.data.length,n=t.xAxis,r=t.yAxis,s=n.scale,a=r.scale,l=(s.bandwidth||0)/2,u=(a.bandwidth||0)/2,h=this.yFields,f=this.enabled,g=this.fills,y=this.strokes,m=this.fillOpacity,v=this.strokeOpacity,C=this.strokeWidth,_=this.data,w=this.xData,b=this.yData,E=this.marker,R=this.markerSize,S=this.markerStrokeWidth,P=[],O=[],T=2*i-1,A=0;A<i;A++)for(var D=w[A],x=b[A],F=x.length,M=s.convert(D)+l,N=0,L=void 0,I=0;I<F;I++){L=x[I];var k=a.convert(N+L)+u,G=h[I],W=_[A],H=W[G];E&&O.push({seriesDatum:W,yValue:H,yField:G,x:M,y:k,fill:g[I%g.length],stroke:y[I%y.length],radius:R/2,text:this.yFieldNames[I]});var V=(P[I]||(P[I]={yField:G,points:[]})).points;V[A]={x:M,y:k},V[T-A]={x:M,y:a.convert(N)+u},N+=L}var j=this.areaSelection.setData(P),B=this.strokeSelection.setData(P),z=this.markerSelection.setData(O);j.exit.remove(),B.exit.remove(),z.exit.remove();var U=j.enter.append(c.Path).each((function(e){e.stroke=void 0,e.pointerEvents=p.PointerEvents.None})),Y=B.enter.append(c.Path).each((function(e){e.fill=void 0,e.lineJoin="round",e.lineCap="round",e.pointerEvents=p.PointerEvents.None})),$=z.enter.append(d.Arc).each((function(e){return e.type=d.ArcType.Chord})),q=this.highlightedNode,K=j.merge(U),X=B.merge(Y),Q=z.merge($);K.each((function(t,o,i){var n=t.path;t.fill=g[i%g.length],t.fillOpacity=m,t.fillShadow=e.shadow,t.visible=!!f.get(o.yField),n.clear();for(var r=o.points,s=r.length,a=0;a<s;a++){var l=r[a],p=l.x,u=l.y;a?n.lineTo(p,u):n.moveTo(p,u)}n.closePath()})),X.each((function(e,t,o){var n=e.path;e.stroke=y[o%y.length],e.strokeWidth=C,e.visible=!!f.get(t.yField),e.strokeOpacity=v,n.clear();for(var r=t.points,s=0;s<i;s++){var a=r[s],l=a.x,p=a.y;s?n.lineTo(l,p):n.moveTo(l,p)}})),Q.each((function(t,o){t.centerX=o.x,t.centerY=o.y,t.radiusX=o.radius,t.radiusY=o.radius,t.fill=t===q&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:o.fill,t.stroke=t===q&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:o.stroke,t.strokeWidth=S,t.visible=o.radius>0&&!!f.get(o.yField)})),this.areaSelection=K,this.strokeSelection=X,this.markerSelection=Q}},t.prototype.getTooltipHtml=function(e){var t="";if(this.tooltipEnabled){var o=this.xField,i=e.yField,n=this.yFields.indexOf(i),r=this.fills[n%this.fills.length],s=e.text;if(this.tooltipRenderer&&o)t=this.tooltipRenderer({datum:e.seriesDatum,xField:o,yField:i,title:s,color:r});else{s=s?'<div class="title" style="color: white; background-color: '+r+'">'+s+"</div>":"";var a=e.seriesDatum,l=a[o],p=a[i];t=s+'<div class="content">'+("number"==typeof l?u.toFixed(l):String(l))+": "+("number"==typeof p?u.toFixed(p):String(p))+"</div>"}}return t},t.prototype.listSeriesItems=function(e){var t=this;if(this.data.length&&this.xField&&this.yFields.length){var o=this.fills,i=this.strokes,n=this.id;this.yFields.forEach((function(r,s){e.push({id:n,itemId:r,enabled:t.enabled.get(r)||!1,label:{text:t.yFieldNames[s]||t.yFields[s]},marker:{fill:o[s%o.length],stroke:i[s%i.length]}})}))}},t.prototype.toggleSeriesItem=function(e,t){this.enabled.set(e,t),this.scheduleData()},t.className="AreaSeries",t}(a.Series);t.AreaSeries=g},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(16),a=o(104),l=o(52),p=o(34),u=o(102),c=o(54),d=o(55),h=o(228),f=o(74),g=o(28),y=o(42),m=o(1);!function(e){e[e.Sector=0]="Sector",e[e.Callout=1]="Callout",e[e.Label=2]="Label"}(r||(r={}));var v=function(e){function t(){var t,o=null!==e&&e.apply(this,arguments)||this;return o.radiusScale=u.default(),o.groupSelection=p.Selection.select(o.group).selectAll(),o.groupSelectionData=[],o.enabled=[],o.angleScale=((t=u.default()).domain=[0,1],t.range=[-Math.PI,Math.PI].map((function(e){return e+Math.PI/2})),t),o._title=void 0,o._calloutColors=d.default.strokes,o._calloutStrokeWidth=1,o._calloutLength=10,o._labelOffset=3,o._labelFontStyle=void 0,o._labelFontWeight=void 0,o._labelFontSize=12,o._labelFontFamily="Verdana, sans-serif",o._labelColor="black",o._labelMinAngle=20,o._angleField="",o._radiusField="",o._labelField="",o._labelEnabled=!0,o._fills=d.default.fills,o._strokes=d.default.strokes,o._fillOpacity=1,o._strokeOpacity=1,o._rotation=0,o._outerRadiusOffset=0,o._innerRadiusOffset=0,o._strokeWidth=1,o._shadow=void 0,o.highlightStyle={fill:"yellow"},o}return n(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e;var t=this.enabled;t.length=e.length;for(var o=0,i=e.length;o<i;o++)t[o]=!0;this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){var t=this,o=this._title;o!==e&&(o&&(o.onLayoutChange=void 0,this.group.removeChild(o.node)),e&&(e.node.textBaseline="bottom",e.onLayoutChange=function(){return t.scheduleLayout()},this.group.appendChild(e.node)),this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutColors",{get:function(){return this._calloutColors},set:function(e){this._calloutColors!==e&&(this._calloutColors=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutStrokeWidth",{get:function(){return this._calloutStrokeWidth},set:function(e){this._calloutStrokeWidth!==e&&(this._calloutStrokeWidth=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutLength",{get:function(){return this._calloutLength},set:function(e){this._calloutLength!==e&&(this._calloutLength=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelOffset",{get:function(){return this._labelOffset},set:function(e){this._labelOffset!==e&&(this._labelOffset=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function(){return this._labelFontStyle},set:function(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function(){return this._labelFontWeight},set:function(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function(){return this._labelFontSize},set:function(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function(){return this._labelFontFamily},set:function(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function(){return this._labelColor},set:function(e){this._labelColor!==e&&(this._labelColor=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelMinAngle",{get:function(){return this._labelMinAngle},set:function(e){this._labelMinAngle!==e&&(this._labelMinAngle=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart!==e&&(this._chart=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleField",{get:function(){return this._angleField},set:function(e){this._angleField!==e&&(this._angleField=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusField",{get:function(){return this._radiusField},set:function(e){this._radiusField!==e&&(this._radiusField=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelField",{get:function(){return this._labelField},set:function(e){this._labelField!==e&&(this._labelField=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelEnabled",{get:function(){return this._labelEnabled},set:function(e){this._labelEnabled!==e&&(this._labelEnabled=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fills",{get:function(){return this._fills},set:function(e){this._fills=e,this.strokes=e.map((function(e){return m.Color.fromString(e).darker().toHexString()})),this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function(){return this._strokes},set:function(e){this._strokes=e,this.calloutColors=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadiusOffset",{get:function(){return this._outerRadiusOffset},set:function(e){this._outerRadiusOffset!==e&&(this._outerRadiusOffset=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadiusOffset",{get:function(){return this._innerRadiusOffset},set:function(e){this._innerRadiusOffset!==e&&(this._innerRadiusOffset=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof h.Sector&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.getDomainX=function(){return this.angleScale.domain},t.prototype.getDomainY=function(){return this.radiusScale.domain},t.prototype.processData=function(){var e,t=this,o=this.data,i=this.enabled,n=o.map((function(e,o){return i[o]&&+e[t.angleField]||0})),r=n.reduce((function(e,t){return e+t}),0),s=(e=0,n.map((function(t){return e+=t/r}))),a=this.labelEnabled&&this.labelField,l=[];a&&(l=o.map((function(e){return String(e[a])})));var p=this.radiusField,u=!!p&&!this.innerRadiusOffset,d=[];if(u){d=o.map((function(e){return Math.abs(e[p])}));var h=Math.max.apply(Math,d);d.forEach((function(e,t,o){return o[t]=e/h}))}var f=this.angleScale,g=this.groupSelectionData;g.length=0;var y=c.toRadians(this.rotation),m=Math.PI/2,v=0;return s.reduce((function(e,i){var n,r,s=u?d[v]:1,p=f.convert(e)+y,h=f.convert(i)+y,C=(p+h)/2,_=Math.abs(h-p),w=Math.cos(C),b=Math.sin(C),E=c.toRadians(t.labelMinAngle),R=a&&_>E,S=c.normalizeAngle180(C),P=-3*Math.PI/4;return S>=P&&S<(P+=m)?(n="center",r="bottom"):S>=P&&S<(P+=m)?(n="left",r="middle"):S>=P&&S<(P+=m)?(n="center",r="hanging"):(n="right",r="middle"),g.push({index:v,seriesDatum:o[v],radius:s,startAngle:p,endAngle:h,midAngle:C,midCos:w,midSin:b,label:R?{text:l[v],textAlign:n,textBaseline:r}:void 0}),v++,i}),0),!0},t.prototype.update=function(){var e=this,t=this.chart,o=this.group.visible=this.visible&&this.enabled.indexOf(!0)>=0;if(t&&o&&!t.dataPending&&!t.layoutPending){var i=this.fills,n=this.strokes,p=this.fillOpacity,u=this.strokeOpacity,c=this.calloutColors,d=this.outerRadiusOffset,f=this.innerRadiusOffset,y=this.radiusScale;y.range=[0,t.radius],this.group.translationX=t.centerX,this.group.translationY=t.centerY;var m=this.title;m&&(m.node.translationY=-t.radius-d-2,m.node.visible=m.enabled);var v=this.groupSelection.setData(this.groupSelectionData);v.exit.remove();var C=v.enter.append(s.Group);C.append(h.Sector).each((function(e){return e.tag=r.Sector})),C.append(a.Line).each((function(e){e.tag=r.Callout,e.pointerEvents=g.PointerEvents.None})),C.append(l.Text).each((function(e){e.tag=r.Label,e.pointerEvents=g.PointerEvents.None}));var _=v.merge(C),w=1/0,b=[],E=[],R=this.highlightedNode;_.selectByTag(r.Sector).each((function(t,o,r){var s=y.convert(o.radius),a=Math.max(0,s+d);w>a&&(w=a),t.outerRadius=a,t.innerRadius=Math.max(0,f?s+f:0),t.startAngle=o.startAngle,t.endAngle=o.endAngle,t.fill=t===R&&void 0!==e.highlightStyle.fill?e.highlightStyle.fill:i[r%i.length],t.stroke=t===R&&void 0!==e.highlightStyle.stroke?e.highlightStyle.stroke:n[r%n.length],t.fillOpacity=p,t.strokeOpacity=u,t.centerOffset=t===R&&void 0!==e.highlightStyle.centerOffset?e.highlightStyle.centerOffset:0,t.fillShadow=e.shadow,t.strokeWidth=e.strokeWidth,t.lineJoin="round",b.push(a),E.push(t.centerOffset)}));var S=this.calloutLength;_.selectByTag(r.Callout).each((function(t,o,i){if(o.label){var n=E[i]+b[i];t.strokeWidth=e.calloutStrokeWidth,t.stroke=c[i%c.length],t.x1=o.midCos*n,t.y1=o.midSin*n,t.x2=o.midCos*(n+S),t.y2=o.midSin*(n+S)}else t.stroke=void 0}));var P=this.labelOffset;_.selectByTag(r.Label).each((function(t,o,i){var n=o.label;if(n){var r=b[i],s=E[i]+r+S+P;t.fontStyle=e.labelFontStyle,t.fontWeight=e.labelFontWeight,t.fontSize=e.labelFontSize,t.fontFamily=e.labelFontFamily,t.text=n.text,t.x=o.midCos*s,t.y=o.midSin*s,t.fill=e.labelColor,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline}else t.fill=void 0})),this.groupSelection=_}},t.prototype.getTooltipHtml=function(e){var t="",o=this.angleField;if(!o)return t;var i=this.title?this.title.text:void 0,n=this.fills[e.index%this.fills.length];if(this.tooltipRenderer)t=this.tooltipRenderer({datum:e.seriesDatum,angleField:o,radiusField:this.radiusField,labelField:this.labelField,title:i,color:n});else{i=i?'<div class="title" style="color: white; background-color: '+n+'">'+i+"</div>":"";var r=this.labelField?e.seriesDatum[this.labelField]+": ":"",s=e.seriesDatum[o];t=i+'<div class="content">'+r+("number"==typeof s?y.toFixed(s):s.toString())+"</div>"}return t},t.prototype.listSeriesItems=function(e){var t=this,o=this.labelField;if(this.data.length&&o){var i=this.fills,n=this.strokes,r=this.id;this.data.forEach((function(s,a){e.push({id:r,itemId:a,enabled:t.enabled[a],label:{text:String(s[o])},marker:{fill:i[a%i.length],stroke:n[a%n.length]}})}))}},t.prototype.toggleSeriesItem=function(e,t){this.enabled[e]=t,this.scheduleData()},t.className="PieSeries",t}(f.Series);t.PieSeries=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(16),r=o(34),s=o(104),a=o(54),l=o(52),p=o(29),u=o(98),c=o(103),d=o(310);!function(e){e[e.Tick=0]="Tick",e[e.GridLine=1]="GridLine"}(i||(i={}));var h=function(){function e(){this.id=this.createId(),this.scale=new c.BandScale,this.tickScale=new c.BandScale,this.group=new n.Group,this.translationX=0,this.translationY=0,this.rotation=0,this.lineWidth=1,this.lineColor="rgba(195, 195, 195, 1)",this.tickWidth=1,this.tickSize=6,this.labelPadding=5,this.labelGrid=!1,this.tickColor="rgba(195, 195, 195, 1)",this.labelFontStyle="",this.labelFontWeight="",this.labelFontSize=12,this.labelFontFamily="Verdana, sans-serif",this.title=void 0,this.labelColor="rgba(87, 87, 87, 1)",this._gridLength=0,this._gridStyle=[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}],this.labelRotation=0,this.mirrorLabels=!1,this.parallelLabels=!1;var e=this.scale;e.paddingOuter=.1,e.paddingInner=2*e.paddingOuter;var t=this.tickScale;t.paddingInner=1,t.paddingOuter=0,this.gridLineSelection=r.Selection.select(this.group).selectAll(),this.axisLineSelection=r.Selection.select(this.group).selectAll(),this.separatorSelection=r.Selection.select(this.group).selectAll(),this.labelSelection=r.Selection.select(this.group).selectAll()}return e.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e;var t=d.ticksToTree(e);this.tickTreeLayout=d.treeLayout(t);var o=e.slice();o.push(""),this.tickScale.domain=o,this.resizeTickTree()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this.scale.range},set:function(e){this.scale.range=e,this.tickScale.range=e,this.resizeTickTree()},enumerable:!0,configurable:!0}),e.prototype.resizeTickTree=function(){var e=this.scale,t=e.domain.length?[e.convert(e.domain[0]),e.convert(e.domain[e.domain.length-1])]:e.range,o=this.tickTreeLayout,i=this.lineHeight;o&&o.resize(Math.abs(t[1]-t[0]),o.depth*i,(Math.min(t[0],t[1])||0)+(e.bandwidth||0)/2,-o.depth*i)},Object.defineProperty(e.prototype,"lineHeight",{get:function(){return 1.5*this.labelFontSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.gridLineSelection=this.gridLineSelection.remove().setData([]),this.labelSelection=this.labelSelection.remove().setData([])),this._gridLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridStyle",{get:function(){return this._gridStyle},set:function(e){e.length&&(this._gridStyle=e)},enumerable:!0,configurable:!0}),e.prototype.update=function(){var e=this,t=this.group,o=this.scale,i=this.tickScale,n=Math.abs(o.range[1]-o.range[0])/o.domain.length||0,r=this.parallelLabels,p=a.toRadians(this.rotation),u=Math.abs(Math.cos(p))<1e-8,c=a.normalizeAngle360(a.toRadians(this.labelRotation));t.translationX=this.translationX,t.translationY=this.translationY,t.rotation=p;var d=this.title,h=this.lineHeight,f=this.tickTreeLayout,g=o.ticks(),y=f?f.nodes:[],m=!!f&&f.depth>1,v=i.ticks(),C=this.mirrorLabels?1:-1,_=a.normalizeAngle360(p),w=!c&&_>=0&&_<=Math.PI?-1:1,b=a.normalizeAngle360(p-Math.PI/2),E=!c&&b>=0&&b<=Math.PI?-1:1,R=this.gridLineSelection.setData(this.gridLength?v:[]);R.exit.remove();var S=R.enter.append(s.Line),P=R.merge(S),O=this.labelSelection.setData(y);O.exit.remove();var T=O.enter.append(l.Text),A=O.merge(T),D=this.labelFormatter,x=0;A.each((function(t,o,i){t.fontStyle=e.labelFontStyle,t.fontWeight=e.labelFontWeight,t.fontSize=e.labelFontSize,t.fontFamily=e.labelFontFamily,t.fill=e.labelColor,t.textBaseline=-1===w?"bottom":"hanging",d&&0===i?(t.text=d.text,t.fontSize=d.fontSize,t.fontStyle=d.fontStyle,t.fontWeight=d.fontWeight,t.fontFamily=d.fontFamily,t.textBaseline="hanging"):t.text=D?D({value:String(o.label),index:i}):String(o.label),t.textAlign="center",t.translationX=o.screenY-.25*e.labelFontSize,t.translationY=o.screenX;var n=t.getBBox();n&&n.width>x&&(x=n.width)}));var F=C*this.labelPadding,M=r?w*Math.PI/2:-1===E?Math.PI:0,N=this.labelGrid,L=[];A.each((function(t,o,i){if(t.x=F,t.rotationCenterX=F,o.children.length?(t.translationX-=x-h+e.labelPadding,t.rotation=u?M:-Math.PI/2):(t.rotation=c,t.textAlign="end",t.textBaseline="middle"),o.parent&&m){var r=o.children.length?o.screenX-o.leafCount*n/2:o.screenX-n/2;o.children.length?L.push({y:r,x1:-x+o.screenY+h/2,x2:-x+o.screenY-h/2,toString:function(){return String(i)}}):o.number&&!N||L.push({y:r,x1:0,x2:-x-2*e.labelPadding,toString:function(){return String(i)}})}}));var I=0;L.forEach((function(e){return I=Math.min(I,e.x2)})),L.push({y:Math.max(o.range[0],o.range[1]),x1:0,x2:I,toString:function(){return String(L.length)}});var k=this.separatorSelection.setData(L);k.exit.remove();var G=k.enter.append(s.Line),W=k.merge(G);this.separatorSelection=W,W.each((function(t,o,i){t.x1=o.x1,t.x2=o.x2,t.y1=o.y,t.y2=o.y,t.stroke=e.tickColor,t.fill=void 0,t.strokeWidth=1})),this.gridLineSelection=P,this.labelSelection=A;for(var H=f?f.depth+1:1,V=[],j=0;j<H;j++)V.push(j);var B=this.axisLineSelection.setData(V);B.exit.remove();var z=B.enter.append(s.Line),U=B.merge(z);if(this.axisLineSelection=U,U.each((function(t,i,n){var r=n>0?-x-2*e.labelPadding-(n-1)*h:0;t.x1=r,t.x2=r,t.y1=o.range[0],t.y2=o.range[1],t.strokeWidth=e.lineWidth,t.stroke=e.lineColor,t.visible=g.length>0&&(0===n||N&&m)})),this.gridLength){var Y=this.gridStyle,$=Y.length;P.each((function(t,n,r){var s=Math.round(i.convert(n));t.x1=0,t.x2=-C*e.gridLength,t.y1=s,t.y2=s,t.visible=Math.abs(t.parent.translationY-o.range[0])>1;var a=Y[r%$];t.stroke=a.stroke,t.strokeWidth=e.tickWidth,t.lineDash=a.lineDash,t.fill=void 0}))}},e.prototype.getBBox=function(e){void 0===e&&(e=!0);var t=1/0,o=-1/0,i=1/0,n=-1/0;return this.labelSelection.each((function(r,s,a){if(a>0||e){r.computeTransformMatrix();var l=u.Matrix.flyweight(r.matrix),p=r.parent;p.computeTransformMatrix(),l.preMultiplySelf(p.matrix);var c=r.getBBox();if(c){var d=l.transformBBox(c);t=Math.min(t,d.x),o=Math.max(o,d.x+d.width),i=Math.min(i,d.y),n=Math.max(n,d.y+d.height)}}})),new p.BBox(t,i,o-t,n-i)},e.className="GroupedCategoryAxis",e}();t.GroupedCategoryAxis=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,o){void 0===e&&(e=""),void 0===o&&(o=0),this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.screenX=0,this.screenY=0,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.label=e,this.parent=t,this.depth=t?t.depth+1:0,this.number=o}return e.prototype.getLeftSibling=function(){return this.number>0&&this.parent?this.parent.children[this.number-1]:void 0},e.prototype.getLeftmostSibling=function(){return this.number>0&&this.parent?this.parent.children[0]:void 0},e.prototype.nextLeft=function(){return this.children?this.children[0]:this.thread},e.prototype.nextRight=function(){return this.children?this.children[this.children.length-1]:this.thread},e.prototype.getSiblings=function(){var e=this;return this.parent?this.parent.children.filter((function(t,o){return o!==e.number})):[]},e}();function n(e,t,o){var i=o/(t.number-e.number);t.change-=i,t.shift+=o,e.change+=i,t.prelim+=o,t.mod+=o}function r(e,t,o){return t.getSiblings().indexOf(e.ancestor)>=0?e.ancestor:o}function s(e,t){var o=e.children;if(o.length){var i=o[0];o.forEach((function(e){s(e,t),i=function(e,t,o){var i=e.getLeftSibling();if(i){for(var s=e,a=e,l=i,p=a.getLeftmostSibling(),u=a.mod,c=s.mod,d=l.mod,h=p.mod;l.nextRight()&&a.nextLeft();){l=l.nextRight(),a=a.nextLeft(),p=p.nextLeft(),(s=s.nextRight()).ancestor=e;var f=l.prelim+d-(a.prelim+u)+o;f>0&&(n(r(l,e,t),e,f),u+=f,c+=f),d+=l.mod,u+=a.mod,h+=p.mod,c+=s.mod}l.nextRight()&&!s.nextRight()?(s.thread=l.nextRight(),s.mod+=d-c):(a.nextLeft()&&!p.nextLeft()&&(p.thread=a.nextLeft(),p.mod+=u-h),t=e)}return t}(e,i,t)})),function(e){var t=e.children;if(t)for(var o=0,i=0,n=t.length-1;n>=0;n--){var r=t[n];r.prelim+=o,r.mod+=o,i+=r.change,o+=r.shift+i}}(e);var a=(o[0].prelim+o[o.length-1].prelim)/2;(l=e.getLeftSibling())?(e.prelim=l.prelim+t,e.mod=e.prelim-a):e.prelim=a}else{var l=e.getLeftSibling();e.prelim=l?l.prelim+t:0}}t.ticksToTree=function(e,t){void 0===t&&(t=!0);var o=new i,n=0;return t&&e.forEach((function(e){return n=Math.max(n,e.labels.length)})),e.forEach((function(e){if(t)for(;e.labels.length<n;)e.labels.unshift("");!function(e,t){var o=t.labels.slice().reverse(),n=o.length-1;o.forEach((function(t,o){var r=e.children,s=r.find((function(e){return e.label===t})),a=o!==n;if(s&&a)e=s;else{var l=new i(t,e);l.number=r.length,r.push(l),a&&(e=l)}}))}(o,e)})),o};var a=function(){function e(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}return e.prototype.update=function(e,t){var o=t(e),i=o.x,n=o.y;i>this.right&&(this.right=i),i<this.left&&(this.left=i),n>this.bottom&&(this.bottom=n),n<this.top&&(this.top=n)},e}();t.treeLayout=function(e){var t=new l;return s(e,1),function e(t,o,i){t.x=t.prelim+o,t.y=t.depth,i.update(t),t.children.forEach((function(n){return e(n,o+t.mod,i)}))}(e,-e.prelim,t),function e(t){var o=t.children,i=0;o.forEach((function(t){e(t),t.children.length?i+=t.leafCount:i++})),t.leafCount=i,o.length?(t.subtreeLeft=o[0].subtreeLeft,t.subtreeRight=o[t.children.length-1].subtreeRight,t.x=(t.subtreeLeft+t.subtreeRight)/2):(t.subtreeLeft=t.x,t.subtreeRight=t.x)}(e),t};var l=function(){function e(){this.dimensions=new a,this.leafCount=0,this.nodes=[],this.leafNodes=[],this.nonLeafNodes=[],this.depth=0}return e.prototype.update=function(e){this.dimensions.update(e,(function(e){return{x:e.x,y:e.y}})),e.children.length?this.nonLeafNodes.push(e):(this.leafCount++,this.leafNodes.push(e)),e.depth>this.depth&&(this.depth=e.depth),this.nodes.push(e)},e.prototype.resize=function(e,t,o,i){void 0===o&&(o=0),void 0===i&&(i=0);var n=this.leafCount-1,r=this.depth,s=this.dimensions,l=1,p=1;if(e>0&&n){var u=(s.right-s.left)/n;l=e/n/u}if(t>0&&r){var c=(s.bottom-s.top)/r;p=t/r/c}var d=new a;this.nodes.forEach((function(e){e.screenX=e.x*l,e.screenY=e.y*p,d.update(e,(function(e){return{x:e.screenX,y:e.screenY}}))}));var h=-d.left,f=-d.top;this.nodes.forEach((function(e){e.screenX+=h+o,e.screenY+=f+i}))},e}();t.TreeLayout=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(162),s=o(224),a=o(53),l=o(51),p=o(16),u=function(e){function t(t){var o=e.call(this,t)||this;o.axisAutoPadding=new l.Padding,o._seriesRoot=new p.Group,o._layout=s.CartesianChartLayout.Vertical;var i=t.xAxis,n=t.yAxis;return o._xAxis=i,o._yAxis=n,o.scene.root.append([i.group,n.group,o.seriesRoot]),o.scene.root.append(o.legend.group),o}return n(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this._seriesRoot},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._xAxis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._yAxis},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach((function(e){t.addSeries(e)}))},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){if(!this.dataPending&&this.xAxis&&this.yAxis){var e={x:0,y:0,width:this.width,height:this.height},t=this.captionAutoPadding;if(e.y+=t,e.height-=t,this.legend.enabled&&this.legend.data.length){var o=this.legendAutoPadding;e.x+=o.left,e.y+=o.top,e.width-=o.left+o.right,e.height-=o.top+o.bottom;var i=this.legendPadding;switch(this.legendPosition){case"right":e.width-=i;break;case"bottom":e.height-=i;break;case"left":e.x+=i,e.width-=i;break;case"top":e.y+=i,e.height-=i}}var n=this.padding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.bottom;var r=this.axisAutoPadding;e.x+=r.left,e.y+=r.top,e.width-=r.left+r.right,e.height-=r.top+r.bottom;var s=this.xAxis,a=this.yAxis;s.range=[0,e.width],s.rotation=-90,s.translationX=Math.floor(e.x),s.translationY=Math.floor(e.y+e.height+1),s.parallelLabels=!0,s.gridLength=e.height,a.range=[e.height,0],a.translationX=Math.floor(e.x),a.translationY=Math.floor(e.y),a.gridLength=e.width,this.updateAxes(),this.series.forEach((function(t){t.group.translationX=Math.floor(e.x),t.group.translationY=Math.floor(e.y),t.update()})),this.positionCaptions(),this.positionLegend()}},Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout!==e&&(this._layout=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),t.prototype.updateAxes=function(){var e,t,o=this.layout===s.CartesianChartLayout.Horizontal,i=o?this.yAxis:this.xAxis,n=o?this.xAxis:this.yAxis;if(i&&n){var r=[],l=[],p=void 0;this.series.forEach((function(e,t){if(e.visible){var o=e.getDomainX(),i=e.getDomainY(),n=void 0===p;n&&(p="number"==typeof o[0]),(p||n)&&r.push(o),l.push(i)}}));var u=(e=new Array).concat.apply(e,r),c=(t=new Array).concat.apply(t,l);i.domain=a.numericExtent(u)||u,n.domain=a.numericExtent(c)||c,i.update(),n.update();var d=this.xAxis.getBBox(),h=this.yAxis.getBBox(),f=Math.floor(h.width);this.axisAutoPadding.left!==f&&(this.axisAutoPadding.left=f,this.layoutPending=!0),f=Math.floor(o?d.width:d.height),this.axisAutoPadding.bottom!==f&&(this.axisAutoPadding.bottom=f,this.layoutPending=!0)}},t}(r.Chart);t.GroupedCategoryChart=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(160),p=o(71),u=o(313),c=o(13),d=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=t.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initSeriesTooltips(),this.initSeriesStrokeWidth(),this.initOpacity(),this.initLabelPanel(),this.initShadowPanel()},t.prototype.initGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initSeriesStrokeWidth=function(){var e=this;this.seriesStrokeWidthSlider.setLabel(this.chartTranslator.translate("strokeWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeWidth")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeWidth",t)}))},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeOpacity",t)})),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("fillOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("fillOpacity",t)}))},t.prototype.initLabelPanel=function(){var e=this,t={family:this.chartProxy.getSeriesProperty("labelFontFamily"),style:this.chartProxy.getSeriesProperty("labelFontStyle"),weight:this.chartProxy.getSeriesProperty("labelFontWeight"),size:parseInt(this.chartProxy.getSeriesProperty("labelFontSize")),color:this.chartProxy.getSeriesProperty("labelColor")},o={enabled:this.chartProxy.getLabelEnabled(),setEnabled:function(t){return e.chartProxy.setSeriesProperty("labelEnabled",t)},suppressEnabledCheckbox:!1,initialFont:t,setFont:function(t){t.family&&e.chartProxy.setSeriesProperty("labelFontFamily",t.family),t.weight&&e.chartProxy.setSeriesProperty("labelFontWeight",t.weight),t.size&&e.chartProxy.setSeriesProperty("labelFontSize",t.size),t.color&&e.chartProxy.setSeriesProperty("labelColor",t.color)}},i=new p.LabelPanel(o);this.getContext().wireBean(i),this.activePanels.push(i);var n=new u.CalloutPanel(this.chartProxy);this.getContext().wireBean(n),i.addCompToPanel(n),this.activePanels.push(n),this.seriesGroup.addItem(i)},t.prototype.initShadowPanel=function(){var e=new l.ShadowPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.getGui().appendChild(e.getGui()),this.seriesGroup.addItem(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button>\n <ag-slider ref="seriesStrokeWidthSlider"></ag-slider>\n <ag-slider ref="seriesLineOpacitySlider"></ag-slider>\n <ag-slider ref="seriesFillOpacitySlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),r([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),r([a.RefSelector("seriesStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesStrokeWidthSlider",void 0),r([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),r([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.PieSeriesPanel=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t,o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initCalloutOptions()},t.prototype.initCalloutOptions=function(){var e=this;this.calloutGroup.setTitle(this.chartTranslator.translate("callout")).setEnabled(!0).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0);var t=function(t,o,i,n){o.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getSeriesProperty(t)).setMaxValue(n).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setSeriesProperty(t,o)}))};t("calloutLength",this.calloutLengthSlider,"length",40),t("calloutStrokeWidth",this.calloutStrokeWidthSlider,"strokeWidth",10),t("labelOffset",this.labelOffsetSlider,"offset",30)},t.TEMPLATE='<div>\n <ag-group-component ref="calloutGroup">\n <ag-slider ref="calloutLengthSlider"></ag-slider>\n <ag-slider ref="calloutStrokeWidthSlider"></ag-slider>\n <ag-slider ref="labelOffsetSlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),r([a.RefSelector("calloutGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"calloutGroup",void 0),r([a.RefSelector("calloutLengthSlider"),s("design:type",a.AgSlider)],t.prototype,"calloutLengthSlider",void 0),r([a.RefSelector("calloutStrokeWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"calloutStrokeWidthSlider",void 0),r([a.RefSelector("labelOffsetSlider"),s("design:type",a.AgSlider)],t.prototype,"labelOffsetSlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.CalloutPanel=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(315),p=o(71),u=o(230),c=o(13),d=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=o.chartController.getChartProxy(),o.chart=o.chartProxy.getChart(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initTitles(),this.initPaddingPanel()},t.prototype.initGroup=function(){this.chartGroup.setTitle(this.chartTranslator.translate("chart")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initTitles=function(){var e=this,t=this.chart.title?this.chart.title.text:"",o={family:this.chart.title?this.chartProxy.getTitleProperty("fontFamily"):"Verdana, sans-serif",style:this.chart.title?this.chartProxy.getTitleProperty("fontStyle"):"",weight:this.chart.title?this.chartProxy.getTitleProperty("fontWeight"):"Normal",size:this.chart.title?parseInt(this.chartProxy.getTitleProperty("fontSize")):22,color:this.chart.title?this.chartProxy.getTitleProperty("color"):"black"},i=function(t){t.family&&e.chartProxy.setTitleProperty("fontFamily",t.family),t.weight&&e.chartProxy.setTitleProperty("fontWeight",t.weight),t.size&&e.chartProxy.setTitleProperty("fontSize",t.size),t.color&&e.chartProxy.setTitleProperty("color",t.color)};this.titleInput.setLabel(this.chartTranslator.translate("title")).setLabelAlignment("top").setLabelWidth("flex").setValue(t).onValueChange((function(n){e.chart.title||(e.chart.title=u.Caption.create({text:t}),i(o));var s=e.chart.title;s.text=n,e.chart.title=s,r.setEnabled(a._.exists(e.chart.title.text))}));var n={name:this.chartTranslator.translate("font"),enabled:!0,suppressEnabledCheckbox:!0,initialFont:o,setFont:i},r=new p.LabelPanel(n);this.getContext().wireBean(r),this.chartGroup.addItem(r),this.activePanels.push(r),r.setEnabled(a._.exists(t))},t.prototype.initPaddingPanel=function(){var e=new l.PaddingPanel(this.chartController);this.getContext().wireBean(e),this.chartGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div>\n <ag-group-component ref="chartGroup">\n <ag-input-text-area ref="titleInput"></ag-input-text-area>\n </ag-group-component>\n <div>',r([a.RefSelector("chartGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"chartGroup",void 0),r([a.RefSelector("titleInput"),s("design:type",a.AgInputTextArea)],t.prototype,"titleInput",void 0),r([a.Autowired("chartTranslator"),s("design:type",c.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ChartPanel=d},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=function(e){function t(t){var o=e.call(this)||this;return o.chartProxy=t.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initChartPaddingItems()},t.prototype.initGroup=function(){this.chartPaddingGroup.setTitle(this.chartTranslator.translate("padding")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0)},t.prototype.initChartPaddingItems=function(){var e=this,t=function(t,o,i){o.setLabel(e.chartTranslator.translate(i)).setValue(e.chartProxy.getChartPadding(t)).setMaxValue(200).setTextFieldWidth(45).onValueChange((function(o){return e.chartProxy.setChartPaddingProperty(t,o)}))};t("top",this.paddingTopSlider,"top"),t("right",this.paddingRightSlider,"right"),t("bottom",this.paddingBottomSlider,"bottom"),t("left",this.paddingLeftSlider,"left")},t.TEMPLATE='<div>\n <ag-group-component ref="chartPaddingGroup">\n <ag-slider ref="paddingTopSlider"></ag-slider>\n <ag-slider ref="paddingRightSlider"></ag-slider>\n <ag-slider ref="paddingBottomSlider"></ag-slider>\n <ag-slider ref="paddingLeftSlider"></ag-slider>\n </ag-group-component>\n <div>',r([a.RefSelector("chartPaddingGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"chartPaddingGroup",void 0),r([a.RefSelector("paddingTopSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingTopSlider",void 0),r([a.RefSelector("paddingRightSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingRightSlider",void 0),r([a.RefSelector("paddingBottomSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingBottomSlider",void 0),r([a.RefSelector("paddingLeftSlider"),s("design:type",a.AgSlider)],t.prototype,"paddingLeftSlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.PaddingPanel=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(161),p=o(13),u=o(160),c=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartController=t,o.chartProxy=t.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initSeriesLineWidth(),this.initOpacity(),this.initMarkersPanel(),this.initShadowPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initSeriesLineWidth=function(){var e=this;this.seriesLineWidthSlider.setLabel(this.chartTranslator.translate("lineWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeWidth")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeWidth",t)}))},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("strokeOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("strokeOpacity",t)})),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.chartProxy.getSeriesProperty("fillOpacity")).onValueChange((function(t){return e.chartProxy.setSeriesProperty("fillOpacity",t)}))},t.prototype.initMarkersPanel=function(){var e=new l.MarkersPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.initShadowPanel=function(){var e=new u.ShadowPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button>\n <ag-slider ref="seriesLineWidthSlider"></ag-slider>\n <ag-slider ref="seriesLineOpacitySlider"></ag-slider>\n <ag-slider ref="seriesFillOpacitySlider"></ag-slider>\n </ag-group-component>\n </div>',r([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),r([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),r([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),r([a.RefSelector("seriesLineOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineOpacitySlider",void 0),r([a.RefSelector("seriesFillOpacitySlider"),s("design:type",a.AgSlider)],t.prototype,"seriesFillOpacitySlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.AreaSeriesPanel=c},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(161),p=o(13),u=function(e){function t(t){var o=e.call(this)||this;return o.activePanels=[],o.chartProxy=t.getChartProxy(),o}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initMarkersPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.chartProxy.getTooltipsEnabled()).onValueChange((function(t){return e.chartProxy.setSeriesProperty("tooltipEnabled",t)}))},t.prototype.initMarkersPanel=function(){var e=new l.MarkersPanel(this.chartProxy);this.getContext().wireBean(e),this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach((function(e){a._.removeFromParent(e.getGui()),e.destroy()}))},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='<div> \n <ag-group-component ref="seriesGroup">\n <ag-toggle-button ref="seriesTooltipsToggle"></ag-toggle-button> \n </ag-group-component>\n </div>',r([a.RefSelector("seriesGroup"),s("design:type",a.AgGroupComponent)],t.prototype,"seriesGroup",void 0),r([a.RefSelector("seriesTooltipsToggle"),s("design:type",a.AgToggleButton)],t.prototype,"seriesTooltipsToggle",void 0),r([a.RefSelector("seriesLineWidthSlider"),s("design:type",a.AgSlider)],t.prototype,"seriesLineWidthSlider",void 0),r([a.Autowired("chartTranslator"),s("design:type",p.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ScatterSeriesPanel=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(319),p=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.miniCharts=[],i.cardItems=[],i.chartController=o,i.activePalette=i.chartController.getActivePalette(),i.palettes=i.chartController.getPalettes(),i}return n(t,e),t.prototype.postConstruct=function(){var e=this;this.palettes.forEach((function(t,o){var i=new l.MiniChartsContainer(o,e.chartController);e.getContext().wireBean(i),e.miniCharts.push(i),e.eMiniChartsContainer.appendChild(i.getGui()),e.addCardLink(o)})),this.ePrevBtn.insertAdjacentElement("afterbegin",a._.createIconNoSpan("smallLeft",this.gridOptionsWrapper)),this.eNextBtn.insertAdjacentElement("afterbegin",a._.createIconNoSpan("smallRight",this.gridOptionsWrapper)),this.addDestroyableEventListener(this.ePrevBtn,"click",this.prev.bind(this)),this.addDestroyableEventListener(this.eNextBtn,"click",this.next.bind(this)),this.setActivePalette(this.activePalette,0)},t.prototype.addCardLink=function(e){var t=this,o=document.createElement("div");a._.addCssClass(o,"ag-nav-card-item"),o.innerHTML="●",this.addDestroyableEventListener(o,"click",(function(){e===t.activePalette||t.isAnimating||t.setActivePalette(e,e<t.activePalette?1:2)})),this.eCardSelector.appendChild(o),this.cardItems.push(o)},t.prototype.getPrev=function(){var e=this.activePalette-1;return e<0&&(e=this.palettes.length-1),e},t.prototype.prev=function(){if(!this.isAnimating){var e=this.getPrev();this.setActivePalette(e,1)}},t.prototype.getNext=function(){var e=this.activePalette+1;return e===this.palettes.length&&(e=0),e},t.prototype.next=function(){if(!this.isAnimating){var e=this.getNext();this.setActivePalette(e,2)}},t.prototype.setActivePalette=function(e,t){var o=this;if(a._.radioCssClass(this.cardItems[e],"ag-selected"),t){var i=this.miniCharts[this.activePalette],n=i.getGui(),r=this.miniCharts[e],s=r.getGui();i.refreshSelected(),r.refreshSelected();var l=1===t?-1:1,p=s.style.left=a._.getAbsoluteWidth(this.getGui())*l+"px";a._.removeCssClass(s,"ag-hidden"),a._.addCssClass(n,"ag-animating"),a._.addCssClass(s,"ag-animating"),this.activePalette=e,this.chartController.setChartWithPalette(this.chartController.getChartType(),this.activePalette),this.isAnimating=!0,window.setTimeout((function(){n.style.left=-1*parseFloat(p)+"px",s.style.left="0px"}),50),window.setTimeout((function(){o.isAnimating=!1,a._.removeCssClass(n,"ag-animating"),a._.removeCssClass(s,"ag-animating"),a._.addCssClass(n,"ag-hidden")}),500)}else this.miniCharts.forEach((function(t,o){a._.addOrRemoveCssClass(t.getGui(),"ag-hidden",o!==e)})),this.miniCharts[this.activePalette].refreshSelected(),this.activePalette=e},t.TEMPLATE='<div class="ag-chart-settings-wrapper">\n <div ref="eMiniChartsContainer" class="ag-chart-settings-mini-charts-container"></div>\n <div class="ag-chart-settings-nav-bar">\n <div ref="ePrevBtn" class="ag-chart-settings-prev-btn">\n <button type="button"></button>\n </div>\n <div ref="eCardSelector" class="ag-nav-card-selector"></div>\n <div ref="eNextBtn" class="ag-chart-settings-next-btn">\n <button type="button"></button>\n </div>\n </div>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.RefSelector("eMiniChartsContainer"),s("design:type",HTMLElement)],t.prototype,"eMiniChartsContainer",void 0),r([a.RefSelector("eCardSelector"),s("design:type",HTMLElement)],t.prototype,"eCardSelector",void 0),r([a.RefSelector("ePrevBtn"),s("design:type",HTMLElement)],t.prototype,"ePrevBtn",void 0),r([a.RefSelector("eNextBtn"),s("design:type",HTMLElement)],t.prototype,"eNextBtn",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.ChartSettingsPanel=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(13),p=o(16),u=o(225),c=o(54),d=o(228),h=o(163),f=o(102),g=o(104),y=o(320),m=o(100),v=o(103),C=o(73),_=function(e){function t(o,i){var n=e.call(this,t.TEMPLATE)||this;n.wrappers={};var r=i.getPalettes();return n.fills=r[o].fills,n.strokes=r[o].strokes,n.chartController=i,n}return n(t,e),t.prototype.init=function(){var e=this,t={columnGroup:[S,O,A],barGroup:[P,T,D],pieGroup:[b,E],lineGroup:[R],scatterGroup:[x,F],areaGroup:[M,N,L]},o=this.getGui();Object.keys(t).forEach((function(i){var n=t[i],r=new a.AgGroupComponent({title:e.chartTranslator.translate(i),suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0});e.getContext().wireBean(r),n.forEach((function(t){var o=document.createElement("div");a._.addCssClass(o,"ag-chart-mini-thumbnail"),e.addDestroyableEventListener(o,"click",(function(){e.chartController.setChartType(t.chartType),e.refreshSelected()})),e.wrappers[t.chartType]=o;var i=new t(o,e.fills,e.strokes);e.getContext().wireBean(i),r.addItem(o)})),o.appendChild(r.getGui())})),this.refreshSelected()},t.prototype.refreshSelected=function(){var e=this.chartController.getChartType();for(var t in this.wrappers)a._.addOrRemoveCssClass(this.wrappers[t],"ag-selected",t===e)},t.TEMPLATE='<div class="ag-chart-settings-mini-wrapper"></div>',r([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.MiniChartsContainer=_;var w=function(e){function t(){var t,o=null!==e&&e.apply(this,arguments)||this;return o.size=58,o.padding=5,o.root=new p.Group,o.scene=((t=new u.Scene({width:o.size,height:o.size})).root=o.root,t),o.element=o.scene.canvas.element,o}return n(t,e),r([a.Autowired("chartTranslator"),s("design:type",l.ChartTranslator)],t.prototype,"chartTranslator",void 0),t}(a.Component);t.MiniChart=w;var b=function(e){function t(o,i,n){var r=e.call(this)||this;return r.radius=(r.size-2*r.padding)/2,r.center=r.radius+r.padding,r.sectors=t.angles.map((function(e){var t=d.Sector.create(r.center,r.center,0,r.radius,e[0],e[1]);return t.stroke=void 0,t})),r.scene.parent=o,r.root.append(r.sectors),r.updateColors(i,n),r}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("pieTooltip")},t.prototype.updateColors=function(e,t){this.sectors.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.Pie,t.angles=[[c.toRadians(-90),c.toRadians(30)],[c.toRadians(30),c.toRadians(120)],[c.toRadians(120),c.toRadians(180)],[c.toRadians(180),c.toRadians(210)],[c.toRadians(210),c.toRadians(240)],[c.toRadians(240),c.toRadians(270)]],r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w);t.MiniPie=b;var E=function(e){function t(t,o,i){var n=e.call(this)||this;return n.radius=(n.size-2*n.padding)/2,n.center=n.radius+n.padding,n.sectors=b.angles.map((function(e){var t=d.Sector.create(n.center,n.center,.6*n.radius,n.radius,e[0],e[1]);return t.stroke=void 0,t})),n.scene.parent=t,n.root.append(n.sectors),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("doughnutTooltip")},t.prototype.updateColors=function(e,t){this.sectors.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.Doughnut,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),R=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=f.default();a.domain=[0,4],a.range=[s,r-s];var l=f.default();l.domain=[0,10],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1,n.lines=[[9,7,8,5,6],[5,6,3,4,1],[1,3,4,8,7]].map((function(e){var t=new h.Path;return t.strokeWidth=3,t.lineCap="round",t.fill=void 0,e.forEach((function(e,o){t.path[o>0?"lineTo":"moveTo"](a.convert(o),l.convert(e))})),t}));var c=new y.ClipRect;c.x=s,c.y=s,c.width=r-2*s,c.height=r-2*s,c.append(n.lines);var d=n.root;return d.append(c),d.append(p),d.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("lineTooltip")},t.prototype.updateColors=function(e,t){this.lines.forEach((function(e,o){e.stroke=t[o]}))},t.chartType=a.ChartType.Line,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),S=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=new v.BandScale;a.domain=[0,1,2],a.range=[s,r-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,4],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1,n.axes=[p,u];var c=Math.floor(1)%2/2,d=l.convert(0);n.bars=[2,3,4].map((function(e,t){var o=l.convert(e),i=new m.Rect;i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var n=a.bandwidth,r=d-o;return i.width=Math.floor(n)+Math.floor(i.x%1+n%1),i.height=Math.floor(r)+Math.floor(i.y%1+r%1),i}));var h=n.root;return h.append(n.bars),h.append(p),h.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("groupedColumnTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.GroupedColumn,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),P=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=new v.BandScale;a.domain=[0,1,2],a.range=[s,r-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,4],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1,n.axes=[p,u];var c=Math.floor(1)%2/2,d=l.convert(0);n.bars=[2,3,4].map((function(e,t){var o=l.convert(e),i=new m.Rect;i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var n=a.bandwidth,r=d-o;return i.width=Math.floor(r)+Math.floor(i.y%1+r%1),i.height=Math.floor(n)+Math.floor(i.x%1+n%1),i}));var h=n.root;return h.append(n.bars),h.append(p),h.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("groupedBarTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.GroupedBar,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),O=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=new v.BandScale;a.domain=[0,1,2],a.range=[s,r-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,16],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);n.bars=[[8,12,16],[6,9,12],[2,3,4]].map((function(e){return e.map((function(e,t){var o=l.convert(e),i=new m.Rect;i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var n=a.bandwidth,r=d-o;return i.width=Math.floor(n)+Math.floor(i.x%1+n%1),i.height=Math.floor(r)+Math.floor(i.y%1+r%1),i}))}));var h=n.root;return h.append([].concat.apply([],n.bars)),h.append(p),h.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("stackedColumnTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.forEach((function(o){o.fill=e[i],o.stroke=t[i]}))}))},t.chartType=a.ChartType.StackedColumn,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),T=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=new v.BandScale;a.domain=[0,1,2],a.range=[s,r-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,16],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);n.bars=[[8,12,16],[6,9,12],[2,3,4]].map((function(e){return e.map((function(e,t){var o=l.convert(e),i=new m.Rect;i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var n=a.bandwidth,r=d-o;return i.width=Math.floor(r)+Math.floor(i.y%1+r%1),i.height=Math.floor(n)+Math.floor(i.x%1+n%1),i}))}));var h=n.root;return h.append([].concat.apply([],n.bars)),h.append(p),h.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("stackedBarTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.forEach((function(o){o.fill=e[i],o.stroke=t[i]}))}))},t.chartType=a.ChartType.StackedBar,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),A=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=new v.BandScale;a.domain=[0,1,2],a.range=[s,r-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,10],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);n.bars=[[10,10,10],[6,7,8],[2,4,6]].map((function(e){return e.map((function(e,t){var o=l.convert(e),i=new m.Rect;i.strokeWidth=1,i.x=Math.floor(a.convert(t))+c,i.y=Math.floor(o)+c;var n=a.bandwidth,r=d-o;return i.width=Math.floor(n)+Math.floor(i.x%1+n%1),i.height=Math.floor(r)+Math.floor(i.y%1+r%1),i}))}));var h=n.root;return h.append([].concat.apply([],n.bars)),h.append(p),h.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("normalizedColumnTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.forEach((function(o){o.fill=e[i],o.stroke=t[i]}))}))},t.chartType=a.ChartType.NormalizedColumn,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),D=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=new v.BandScale;a.domain=[0,1,2],a.range=[s,r-s],a.paddingInner=.3,a.paddingOuter=.3;var l=f.default();l.domain=[0,10],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1;var c=Math.floor(1)%2/2,d=l.convert(0);n.bars=[[10,10,10],[6,7,8],[2,4,6]].map((function(e){return e.map((function(e,t){var o=l.convert(e),i=new m.Rect;i.strokeWidth=1,i.x=Math.floor(s)+c,i.y=Math.floor(a.convert(t))+c;var n=a.bandwidth,r=d-o;return i.width=Math.floor(r)+Math.floor(i.y%1+r%1),i.height=Math.floor(n)+Math.floor(i.x%1+n%1),i}))}));var h=n.root;return h.append([].concat.apply([],n.bars)),h.append(p),h.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("normalizedBarTooltip")},t.prototype.updateColors=function(e,t){this.bars.forEach((function(o,i){o.forEach((function(o){o.fill=e[i],o.stroke=t[i]}))}))},t.chartType=a.ChartType.NormalizedBar,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),x=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=f.default();a.domain=[-.5,4],a.range=[2*s,r-s];var l=f.default();l.domain=[-.5,3.5],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1;var c=[];[[[.3,3],[1.1,.9],[2,.4],[3.4,2.4]],[[0,.3],[1,2],[2.4,1.4],[3,0]]].forEach((function(e,t){e.forEach((function(e,t){var o=new C.Arc;o.strokeWidth=1,o.centerX=a.convert(e[0]),o.centerY=l.convert(e[1]),o.radiusX=2.5,o.radiusY=2.5,c.push(o)}))})),n.points=c;var d=new y.ClipRect;d.x=s,d.y=s,d.width=r-2*s,d.height=r-2*s,d.append(n.points);var h=n.root;return h.append(d),h.append(p),h.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("scatterTooltip")},t.prototype.updateColors=function(e,t){this.points.forEach((function(o,i){o.stroke=t[i%t.length],o.fill=e[i%e.length]}))},t.chartType=a.ChartType.Scatter,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),F=function(e){function t(t,o,i){var n=e.call(this)||this;n.scene.parent=t;var r=n.size,s=n.padding,a=f.default();a.domain=[0,1],a.range=[2*s,r-s];var l=f.default();l.domain=[0,1],l.range=[r-s,s];var p=g.Line.create(s,s,s,r-s+3);p.stroke="gray",p.strokeWidth=1;var u=g.Line.create(s-3,r-s,r-s,r-s);u.stroke="gray",u.strokeWidth=1;var c=[];[[[.1,.3,5],[.5,.4,7],[.2,.8,7]],[[.8,.7,5],[.7,.3,9]]].forEach((function(e,t){e.forEach((function(e,t){var o=new C.Arc;o.strokeWidth=1,o.centerX=a.convert(e[0]),o.centerY=l.convert(e[1]),o.radiusX=e[2],o.radiusY=e[2],o.fillOpacity=.7,c.push(o)}))})),n.points=c;var d=new y.ClipRect;d.x=s,d.y=s,d.width=r-2*s,d.height=r-2*s,d.append(n.points);var h=n.root;return h.append(d),h.append(p),h.append(u),n.updateColors(o,i),n}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("bubbleTooltip")},t.prototype.updateColors=function(e,t){this.points.forEach((function(o,i){o.stroke=t[i%t.length],o.fill=e[i%e.length]}))},t.chartType=a.ChartType.Bubble,r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),M=function(e){function t(o,i,n,r){void 0===r&&(r=t.data);var s=e.call(this)||this;s.scene.parent=o;var a=s.size,l=s.padding,p=new v.BandScale;p.paddingInner=1,p.paddingOuter=0,p.domain=[0,1,2],p.range=[l+.5,a-l-.5];var u=f.default();u.domain=[0,6],u.range=[a-l+.5,l];var c=g.Line.create(l,l,l,a-l+3);c.stroke="gray",c.strokeWidth=1;var d=g.Line.create(l-3,a-l,a-l,a-l);d.stroke="gray",d.strokeWidth=1;for(var y=r.length,m=2*y-1,C=[],_=u.convert(0),w=0;w<y;w++)for(var b=r[w],E=b.length,R=p.convert(w),S=void 0,P=0;P<E;P++){S=b[P];var O=u.convert(S),T=C[P]||(C[P]=[]);T[w]={x:R,y:O},T[m-w]={x:R,y:_}}s.areas=C.reverse().map((function(e){var t=new h.Path;t.strokeWidth=1,t.fillOpacity=.7;var o=t.path;return o.clear(),e.forEach((function(e,t){t?o.lineTo(e.x,e.y):o.moveTo(e.x,e.y)})),o.closePath(),t}));var A=s.root;return A.append(s.areas),A.append(c),A.append(d),s.updateColors(i,n),s}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("groupedAreaTooltip")},t.prototype.updateColors=function(e,t){this.areas.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.Area,t.data=[[1,3,5],[2,6,4],[5,3,1]],r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),N=function(e){function t(o,i,n,r){void 0===r&&(r=t.data);var s=e.call(this)||this;s.scene.parent=o;var a=s.size,l=s.padding,p=new v.BandScale;p.paddingInner=1,p.paddingOuter=0,p.domain=[0,1,2],p.range=[l+.5,a-l-.5];var u=f.default();u.domain=[0,16],u.range=[a-l+.5,l+.5];var c=g.Line.create(l,l,l,a-l+3);c.stroke="gray",c.strokeWidth=1;var d=g.Line.create(l-3,a-l,a-l,a-l);d.stroke="gray",d.strokeWidth=1;for(var y=r.length,m=2*y-1,C=[],_=0;_<y;_++)for(var w=r[_],b=w.length,E=p.convert(_),R=0,S=void 0,P=0;P<b;P++){S=w[P];var O=u.convert(R+S),T=C[P]||(C[P]=[]);T[_]={x:E,y:O},T[m-_]={x:E,y:u.convert(R)},R+=S}s.areas=C.map((function(e){var t=new h.Path;t.strokeWidth=1;var o=t.path;return o.clear(),e.forEach((function(e,t){t?o.lineTo(e.x,e.y):o.moveTo(e.x,e.y)})),o.closePath(),t}));var A=s.root;return A.append(s.areas),A.append(c),A.append(d),s.updateColors(i,n),s}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("stackedAreaTooltip")},t.prototype.updateColors=function(e,t){this.areas.forEach((function(o,i){o.fill=e[i],o.stroke=t[i]}))},t.chartType=a.ChartType.StackedArea,t.data=[[2,3,2],[3,6,5],[6,2,2]],r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(w),L=function(e){function t(o,i,n,r){return void 0===r&&(r=t.data),e.call(this,o,i,n,r)||this}return n(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate("normalizedAreaTooltip")},t.chartType=a.ChartType.NormalizedArea,t.data=N.data.map((function(e){var t=e.reduce((function(e,t){return e+t}),0);return e.map((function(e){return e/t*16}))})),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(N)},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(28),s=o(72),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContainerNode=!0,t.path=new s.Path2D,t._active=!0,t._dirtyPath=!0,t._x=0,t._y=0,t._width=10,t._height=10,t}return n(t,e),t.prototype.isPointInNode=function(e,t){var o=this.transformPoint(e,t);return o.x>=this.x&&o.x<=this.x+this.width&&o.y>=this.y&&o.y<=this.y+this.height},Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(e){this._active!==e&&(this._active=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){var e=this.path;e.clear(),e.rect(this.x,this.y,this.width,this.height),this.dirtyPath=!1},t.prototype.render=function(e){this.active&&(this.dirtyPath&&this.updatePath(),this.scene.appendPath(this.path),e.clip());for(var t=this.children,o=t.length,i=0;i<o;i++){e.save();var n=t[i];n.visible&&n.render(e),e.restore()}},t.className="ClipRect",t}(r.Node);t.ClipRect=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(50),a=function(e){function t(o){var i=e.call(this,o)||this;i.initChartOptions(o.chartType,i.defaultOptions()),o.grouping?i.chart=t.isBarChart(o.chartType)?s.ChartBuilder.createGroupedBarChart(i.chartOptions):s.ChartBuilder.createGroupedColumnChart(i.chartOptions):i.chart=t.isBarChart(o.chartType)?s.ChartBuilder.createBarChart(i.chartOptions):s.ChartBuilder.createColumnChart(i.chartOptions);var n=s.ChartBuilder.createSeries(i.chartOptions.seriesDefaults);return n&&i.chart.addSeries(n),i}return n(t,e),t.prototype.update=function(e){var o=this.chart,i=o.series[0];i.data=e.data,i.xField=e.category.id,i.yFields=e.fields.map((function(e){return e.colId})),i.yFieldNames=e.fields.map((function(e){return e.displayName})),t.isBarChart(this.chartProxyParams.chartType)?o.yAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.yAxis.labelRotation:o.xAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.xAxis.labelRotation;var n=this.overriddenPalette?this.overriddenPalette:this.chartProxyParams.getSelectedPalette();i.fills=n.fills,i.strokes=n.strokes},t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getLabelEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.labelEnabled},t.isBarChart=function(e){return e===r.ChartType.GroupedBar||e===r.ChartType.StackedBar||e===r.ChartType.NormalizedBar},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette(),t=this.chartProxyParams.chartType;return{parent:this.chartProxyParams.parentElement,background:{fill:this.getBackgroundColor()},padding:{top:20,right:20,bottom:20,left:20},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},xAxis:{type:"category",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:335,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},yAxis:{type:"number",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:0,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},seriesDefaults:{type:"bar",fills:e.fills,strokes:e.strokes,grouped:t===r.ChartType.GroupedColumn||t===r.ChartType.GroupedBar,normalizedTo:t===r.ChartType.NormalizedColumn||t===r.ChartType.NormalizedBar?100:void 0,strokeWidth:1,tooltipEnabled:!0,labelEnabled:!1,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),tooltipRenderer:void 0,showInLegend:!0,shadow:{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0,0,0,0.5)"},strokeOpacity:1,fillOpacity:1}}},t}(o(105).CartesianChartProxy);t.BarChartProxy=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(50),a=o(165),l=function(e){function t(t){var o=e.call(this,t)||this;o.chartType=t.chartType,o.initChartOptions(t.chartType,o.defaultOptions()),t.grouping?o.chart=s.ChartBuilder.createGroupedAreaChart(o.chartOptions):o.chart=s.ChartBuilder.createAreaChart(o.chartOptions),o.setAxisPadding(o.chart);var i=s.ChartBuilder.createSeries(o.chartOptions.seriesDefaults);return i&&o.chart.addSeries(i),o}return n(t,e),t.prototype.setAxisPadding=function(e){var t=e.xAxis;t instanceof a.CategoryAxis&&(t.scale.paddingInner=1,t.scale.paddingOuter=0)},t.prototype.update=function(e){var t=this.chart;if(this.chartType===r.ChartType.Area)this.updateAreaChart(e);else{var o=this.chart.series[0];o.data=e.data,o.xField=e.category.id,o.yFields=e.fields.map((function(e){return e.colId})),o.yFieldNames=e.fields.map((function(e){return e.displayName}));var i=this.overriddenPalette?this.overriddenPalette:this.chartProxyParams.getSelectedPalette();o.fills=i.fills,o.strokes=i.strokes}t.xAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.xAxis.labelRotation},t.prototype.updateAreaChart=function(e){var t=this;if(0!==e.fields.length){var o=this.chart,i=e.fields.map((function(e){return e.colId})),n={};o.series.map((function(e){return e})).forEach((function(e){var t=e.yFields[0];i.indexOf(t)>-1?n[t]=e:o.removeSeries(e)})),e.fields.forEach((function(i,r){var a=t.chartOptions.seriesDefaults,l=n[i.colId],p=l||s.ChartBuilder.createSeries(a);if(p){p.yFieldNames=[i.displayName],p.data=e.data,p.xField=e.category.id,p.yFields=[i.colId];var u=t.overriddenPalette?t.overriddenPalette:t.chartProxyParams.getSelectedPalette(),c=u.fills;p.fills=[c[r%c.length]];var d=u.strokes;p.strokes=[d[r%d.length]],l||o.addSeries(p)}}))}else this.chart.removeAllSeries()},t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getMarkersEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.marker},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette();return{background:{fill:this.getBackgroundColor()},padding:{top:20,right:20,bottom:20,left:20},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},xAxis:{type:"category",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:335,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},yAxis:{type:"number",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:0,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},seriesDefaults:{type:"area",fills:e.fills,strokes:e.strokes,strokeWidth:3,strokeOpacity:1,fillOpacity:this.chartProxyParams.chartType===r.ChartType.Area?.7:1,normalizedTo:this.chartProxyParams.chartType===r.ChartType.NormalizedArea?100:void 0,marker:!0,markerSize:6,markerStrokeWidth:1,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,shadow:{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0,0,0,0.5)"}}}},t}(o(105).CartesianChartProxy);t.AreaChartProxy=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(50),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(r.ChartType.Line,o.defaultOptions()),t.grouping?o.chart=s.ChartBuilder.createGroupedLineChart(o.chartOptions):o.chart=s.ChartBuilder.createLineChart(o.chartOptions),o}return n(t,e),t.prototype.update=function(e){var t=this,o=this.chart;if(0!==e.fields.length){var i=this.chart,n=e.fields.map((function(e){return e.colId})),r={};i.series.map((function(e){return e})).forEach((function(e){var t=e.yField;n.indexOf(t)>-1?r[t]=e:i.removeSeries(e)})),e.fields.forEach((function(o,n){var a=t.chartOptions.seriesDefaults,l=r[o.colId],p=l||s.ChartBuilder.createSeries(a);if(p){p.title=o.displayName,p.data=e.data,p.xField=e.category.id,p.yField=o.colId;var u=t.overriddenPalette?t.overriddenPalette:t.chartProxyParams.getSelectedPalette(),c=u.fills;p.fill=c[n%c.length];var d=u.strokes;p.stroke=d[n%d.length],l||i.addSeries(p)}})),o.xAxis.labelRotation=this.overrideLabelRotation(e.category.id)?0:this.chartOptions.xAxis.labelRotation}else this.chart.removeAllSeries()},t.prototype.setSeriesProperty=function(e,t){this.getChart().series.forEach((function(o){return o[e]=t})),this.chartOptions.seriesDefaults||(this.chartOptions.seriesDefaults={}),this.chartOptions.seriesDefaults[e]=t,this.raiseChartOptionsChangedEvent()},t.prototype.getSeriesProperty=function(e){return this.chartOptions.seriesDefaults?""+this.chartOptions.seriesDefaults[e]:""},t.prototype.getTooltipsEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.tooltipEnabled},t.prototype.getMarkersEnabled=function(){return!!this.chartOptions.seriesDefaults&&!!this.chartOptions.seriesDefaults.marker},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette();return{background:{fill:this.getBackgroundColor()},padding:{top:20,right:20,bottom:20,left:20},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},xAxis:{type:"category",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:335,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},yAxis:{type:"number",labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelRotation:0,tickColor:"rgba(195, 195, 195, 1)",tickSize:6,tickWidth:1,tickPadding:5,lineColor:"rgba(195, 195, 195, 1)",lineWidth:1,gridStyle:[{stroke:this.getAxisGridColor(),lineDash:[4,2]}]},seriesDefaults:{type:"line",fills:e.fills,strokes:e.strokes,strokeWidth:3,marker:!0,markerSize:6,markerStrokeWidth:1,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,title:""}}},t}(o(105).CartesianChartProxy);t.LineChartProxy=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(50),s=o(1),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(s.ChartType.Pie,o.defaultOptions()),o.chart=r.ChartBuilder.createPolarChart(o.chartOptions),o}return n(t,e),t.prototype.update=function(e){if(0!==e.fields.length){var t=this.chart,o=t.series[0],i=o&&o.angleField,n=e.fields[0].colId,s=e.fields[0].displayName,a=o,l=void 0;if(i!==n){t.removeSeries(o);var p=this.chartOptions.seriesDefaults,u=p.title?Object.create(p.title):{};u.text=s,p.title=u,p.angleField=n,l=p.calloutColors,a=r.ChartBuilder.createSeries(p)}a.labelField=e.category.id,a.data=e.data;var c=this.overriddenPalette?this.overriddenPalette:this.chartProxyParams.getSelectedPalette();a.fills=c.fills,a.strokes=c.strokes,l&&(a.calloutColors=l),o||t.addSeries(a)}else this.chart.removeAllSeries()},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette();return{background:{fill:this.getBackgroundColor()},padding:{top:50,right:50,bottom:50,left:50},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},seriesDefaults:{type:"pie",fills:e.fills,strokes:e.strokes,strokeWidth:1,strokeOpacity:1,fillOpacity:1,calloutColors:e.strokes,calloutLength:10,calloutStrokeWidth:1,labelOffset:3,labelEnabled:!1,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelMinAngle:0,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,shadow:{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0,0,0,0.5)"},title:{enabled:!1,font:"bold 12px Verdana, sans-serif",color:"black"}}}},t}(o(232).PolarChartProxy);t.PieChartProxy=a},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(50),s=o(1),a=function(e){function t(t){var o=e.call(this,t)||this;return o.initChartOptions(s.ChartType.Doughnut,o.defaultOptions()),o.chart=r.ChartBuilder.createDoughnutChart(o.chartOptions),o}return n(t,e),t.prototype.update=function(e){var t=this;if(0!==e.fields.length){var o=this.chart,i=e.fields.map((function(e){return e.colId})),n={};o.series.forEach((function(e){var t=e,o=t.angleField;i.indexOf(o)>=0&&(n[o]=t)}));var s=this.chartOptions.seriesDefaults,a=s.title?Object.create(s.title):{};s.title=a;var l=0;e.fields.forEach((function(o,i){var p=n[o.colId];a.text=o.displayName,s.angleField=o.colId,s.showInLegend=0===i;var u=s.calloutColors,c=p||r.ChartBuilder.createSeries(s);c.labelField=e.category.id,c.data=e.data,0===i&&(c.toggleSeriesItem=function(e,t){var o=c.chart;o&&o.series.forEach((function(o){o.enabled[e]=t})),c.scheduleData()}),c.outerRadiusOffset=l,l-=20,c.innerRadiusOffset=l,l-=20;var d=t.overriddenPalette?t.overriddenPalette:t.chartProxyParams.getSelectedPalette();c.fills=d.fills,c.strokes=d.strokes,u&&(c.calloutColors=u),p||(n[o.colId]=c)}));var p=[];for(var u in n)p.push(n[u]);o.series=p}else this.chart.removeAllSeries()},t.prototype.defaultOptions=function(){var e=this.chartProxyParams.getSelectedPalette();return{background:{fill:this.getBackgroundColor()},padding:{top:50,right:50,bottom:50,left:50},legendPosition:"right",legendPadding:20,legend:{enabled:!0,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),itemPaddingX:16,itemPaddingY:8,markerPadding:4,markerSize:14,markerStrokeWidth:1},seriesDefaults:{type:"pie",fills:e.fills,strokes:e.strokes,strokeWidth:1,strokeOpacity:1,fillOpacity:1,calloutColors:e.strokes,calloutLength:10,calloutStrokeWidth:1,labelOffset:3,labelEnabled:!1,labelFontStyle:void 0,labelFontWeight:"normal",labelFontSize:12,labelFontFamily:"Verdana, sans-serif",labelColor:this.getLabelColor(),labelMinAngle:0,tooltipEnabled:!0,tooltipRenderer:void 0,showInLegend:!0,shadow:{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0,0,0,0.5)"},title:{enabled:!1,font:"bold 12px Verdana, sans-serif",color:"black"}}}},t}(o(232).PolarChartProxy);t.DoughnutChartProxy=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(106),r=o(21),s=o(76),a=o(110),l=o(68),p=o(111),u=o(114),c=o(115),d=o(116),h=o(56),f=o(78),g=o(69),y=o(70),m=o(40),v=o(108),C=o(117),_=o(80),w=o(81),b=o(240),E=o(176),R=o(175),S=o(82),P=o(118),O=o(43),T=o(109),A=o(166),D=o(242),x=o(119),F=o(120),M=o(121),N=o(68);t.AggregationStage=N.AggregationStage;var L=o(110);t.GroupStage=L.GroupStage;var I=o(167);t.SetFilter=I.SetFilter;var k=o(168);t.SetValueModel=k.SetValueModel;var G=o(118);t.StatusBar=G.StatusBar;var W=o(82);t.StatusBarService=W.StatusBarService;var H=o(76);t.ClipboardService=H.ClipboardService;var V=o(111);t.EnterpriseBoot=V.EnterpriseBoot;var j=o(106);t.EnterpriseMenu=j.EnterpriseMenu;var B=o(75);t.MenuItemComponent=B.MenuItemComponent;var z=o(107);t.MenuList=z.MenuList;var U=o(21);t.RangeController=U.RangeController;var Y=o(112);t.RowGroupDropZonePanel=Y.RowGroupDropZonePanel;var $=o(114);t.ContextMenuFactory=$.ContextMenuFactory;var q=o(115);t.ViewportRowModel=q.ViewportRowModel;var K=o(170);t.RichSelectCellEditor=K.RichSelectCellEditor;var X=o(171);t.RichSelectRow=X.RichSelectRow;var Q=o(77);t.VirtualList=Q.VirtualList;var Z=o(79);t.BaseDropZonePanel=Z.BaseDropZonePanel;var J=o(113);t.PivotDropZonePanel=J.PivotDropZonePanel;var ee=o(116);t.SideBarComp=ee.SideBarComp;var te=o(56);t.LicenseManager=te.LicenseManager;var oe=o(69);t.PivotStage=oe.PivotStage;var ie=o(70);t.PivotColDefService=ie.PivotColDefService;var ne=o(172);t.PivotModePanel=ne.PivotModePanel;var re=o(40);t.AggFuncService=re.AggFuncService;var se=o(78);t.MD5=se.MD5;var ae=o(169);t.SetFilterListItem=ae.SetFilterListItem;var le=o(173);t.DropZoneColumnComp=le.DropZoneColumnComp;var pe=o(174);t.ValuesDropZonePanel=pe.ValuesDropZonePanel;var ue=o(117);t.ExcelCreator=ue.ExcelCreator;var ce=o(80);t.ExcelXmlFactory=ce.ExcelXmlFactory;var de=o(81);t.ExcelXlsxFactory=de.ExcelXlsxFactory;var he=o(119);t.WatermarkComp=he.WatermarkComp;var fe=o(120);t.FillHandle=fe.FillHandle;var ge=o(121);t.RangeHandle=ge.RangeHandle;var ye={viewport:c.ViewportRowModel,serverSide:b.ServerSideRowModel};i.Grid.setEnterpriseBeans([n.EnterpriseMenuFactory,C.ExcelCreator,_.ExcelXmlFactory,w.ExcelXlsxFactory,r.RangeController,s.ClipboardService,g.PivotStage,y.PivotColDefService,u.ContextMenuFactory,a.GroupStage,l.AggregationStage,p.EnterpriseBoot,m.AggFuncService,h.LicenseManager,f.MD5,v.MenuItemMapper,S.StatusBarService],ye),i.Grid.setEnterpriseComponents([{componentName:"AgPrimaryColsHeader",theClass:T.PrimaryColsHeaderPanel},{componentName:"AgPrimaryColsList",theClass:A.PrimaryColsListPanel},{componentName:"AgHorizontalResize",theClass:E.HorizontalResizeComp},{componentName:"AgSideBar",theClass:d.SideBarComp},{componentName:"AgStatusBar",theClass:P.StatusBar},{componentName:"AgNameValue",theClass:O.NameValueComp},{componentName:"AgGridHeaderDropZones",theClass:D.GridHeaderDropZones},{componentName:"AgSideBarButtons",theClass:R.SideBarButtonsComp},{componentName:"AgWatermark",theClass:x.WatermarkComp},{componentName:"AgFillHandle",theClass:F.FillHandle},{componentName:"AgRangeHandle",theClass:M.RangeHandle}])},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t,o,i,n,r){var s=e.call(this)||this;return s.processingColumnStateChange=!1,s.columnGroup=t,s.columnDept=o,s.expandedCallback=i,s.allowDragging=n,s.expanded=r,s}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle=a._.createIconNoSpan("columnDrag",this.gridOptionsWrapper),a._.addCssClass(this.eDragHandle,"ag-column-drag"),this.cbSelect.getGui().insertAdjacentElement("afterend",this.eDragHandle),this.displayName=this.columnController.getDisplayNameForOriginalColumnGroup(null,this.columnGroup,"toolPanel"),a._.missing(this.displayName)&&(this.displayName=">>"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-toolpanel-indent-"+this.columnDept),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.addDestroyableEventListener(this.cbSelect,a.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),a.CssClassApplier.addToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup)},t.prototype.addVisibilityListenersToAllChildren=function(){var e=this;this.columnGroup.getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,a.Column.EVENT_VISIBLE_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,a.Column.EVENT_VALUE_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,a.Column.EVENT_PIVOT_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,a.Column.EVENT_ROW_GROUP_CHANGED,e.onColumnStateChanged.bind(e))}))},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t={type:a.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,dragItemCallback:function(){return e.createDragItem()}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(t)}))}else a._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return this.columnGroup.getLeafColumns().forEach((function(t){e[t.getId()]=t.isVisible()})),{columns:this.columnGroup.getLeafColumns(),visibleState:e}},t.prototype.setupExpandContract=function(){this.eGroupClosedIcon.appendChild(a._.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(a._.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addDestroyableEventListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addDestroyableEventListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var e=new a.TouchListener(this.eColumnGroupIcons,!0);this.addDestroyableEventListener(e,a.TouchListener.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.onLabelClicked=function(){var e=!this.cbSelect.getValue();this.onChangeCommon(e)},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.onChangeCommon=function(e){if(!this.processingColumnStateChange){var t=this.columnGroup.getLeafColumns();if(this.columnController.isPivotMode())e?this.actionCheckedReduce(t):this.actionUnCheckedReduce(t);else{var o=t.filter((function(e){return!e.getColDef().lockVisible&&!e.getColDef().suppressToolPanel}));this.columnController.setColumnsVisible(o,e,"toolPanelUi")}this.selectionCallback&&this.selectionCallback(this.isSelected())}},t.prototype.actionUnCheckedReduce=function(e){var t=[],o=[],i=[];e.forEach((function(e){e.isPivotActive()&&t.push(e),e.isRowGroupActive()&&i.push(e),e.isValueActive()&&o.push(e)})),t.length>0&&this.columnController.removePivotColumns(t,"toolPanelUi"),i.length>0&&this.columnController.removeRowGroupColumns(i,"toolPanelUi"),o.length>0&&this.columnController.removeValueColumns(o,"toolPanelUi")},t.prototype.actionCheckedReduce=function(e){var t=[],o=[],i=[];e.forEach((function(e){e.isAnyFunctionActive()||(e.isAllowValue()?t.push(e):e.isAllowRowGroup()?o.push(e):e.isAllowRowGroup()&&i.push(e))})),t.length>0&&this.columnController.addValueColumns(t,"toolPanelUi"),o.length>0&&this.columnController.addRowGroupColumns(o,"toolPanelUi"),i.length>0&&this.columnController.addPivotColumns(i,"toolPanelUi")},t.prototype.onColumnStateChanged=function(){var e=this.workOutSelectedValue(),t=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(e),this.selectionCallback&&this.selectionCallback(this.isSelected()),this.cbSelect.setReadOnly(t),this.processingColumnStateChange=!1},t.prototype.workOutReadOnlyValue=function(){var e=this.columnController.isPivotMode(),t=0;return this.columnGroup.getLeafColumns().forEach((function(o){e?o.isAnyFunctionAllowed()&&t++:o.getColDef().lockVisible||t++})),0===t},t.prototype.workOutSelectedValue=function(){for(var e,t=this.columnController.isPivotMode(),o=this.columnGroup.getLeafColumns(),i=o.length,n={visible:0,hidden:0},r={visible:0,hidden:0},s=0;s<i;s++){var a=o[s],l=a.getColDef().lockVisible||a.getColDef().suppressToolPanel,p=this.isColumnVisible(a,t)?"visible":"hidden";n[p]++,l&&r[p]++}return r.visible+r.hidden!==i&&(n.visible-=r.visible,n.hidden-=r.hidden),null==(e=n.visible>0&&n.hidden>0?null:n.visible>0)?void 0:e},t.prototype.isColumnVisible=function(e,t){if(t){var o=e.isPivotActive(),i=e.isRowGroupActive(),n=e.isValueActive();return o||i||n}return e.isVisible()},t.prototype.onExpandOrContractClicked=function(){this.expanded=!this.expanded,this.setOpenClosedIcons(),this.expandedCallback()},t.prototype.setOpenClosedIcons=function(){var e=this.expanded;a._.setDisplayed(this.eGroupClosedIcon,!e),a._.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){(e&&!this.cbSelect.getValue()||!e&&this.cbSelect.getValue())&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.isExpandable=function(){return!0},t.prototype.setExpanded=function(e){this.expanded!==e&&this.onExpandOrContractClicked()},t.TEMPLATE='<div class="ag-column-tool-panel-column-group">\n <span class="ag-column-group-icons" ref="eColumnGroupIcons" >\n <span class="ag-column-group-closed-icon" ref="eGroupOpenedIcon"></span>\n <span class="ag-column-group-opened-icon" ref="eGroupClosedIcon"></span>\n </span>\n <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n <span class="ag-column-tool-panel-column-label" ref="eLabel"></span>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.RefSelector("cbSelect"),s("design:type",a.AgCheckbox)],t.prototype,"cbSelect",void 0),r([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([a.RefSelector("eGroupOpenedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupOpenedIcon",void 0),r([a.RefSelector("eGroupClosedIcon"),s("design:type",HTMLElement)],t.prototype,"eGroupClosedIcon",void 0),r([a.RefSelector("eColumnGroupIcons"),s("design:type",HTMLElement)],t.prototype,"eColumnGroupIcons",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ToolPanelColumnGroupComp=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.processingColumnStateChange=!1,r.column=t,r.columnDept=o,r.allowDragging=i,r.groupsExist=n,r}return n(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle=a._.createIconNoSpan("columnDrag",this.gridOptionsWrapper),a._.addCssClass(this.eDragHandle,"ag-column-drag"),this.cbSelect.getGui().insertAdjacentElement("afterend",this.eDragHandle),this.displayName=this.columnController.getDisplayNameForColumn(this.column,"toolPanel");var e=a._.escape(this.displayName);this.eLabel.innerHTML=e;var o=this.columnDept;this.groupsExist&&this.addCssClass("ag-toolpanel-add-group-indent"),this.addCssClass("ag-toolpanel-indent-"+o),this.setupDragging(),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,a.Column.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,a.Column.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,a.Column.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,a.Column.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.cbSelect,a.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addDestroyableEventListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.onColumnStateChanged(),a.CssClassApplier.addToolPanelClassesFromColDef(this.column.getColDef(),this.getGui(),this.gridOptionsWrapper,this.column,null)},t.prototype.onLabelClicked=function(){if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var e=!this.cbSelect.getValue();this.onChangeCommon(e)}},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.onChangeCommon=function(e){this.column.getColDef().lockVisible||this.processingColumnStateChange||(this.columnController.isPivotMode()?e?this.actionCheckedPivotMode():this.actionUnCheckedPivotMode():this.columnController.setColumnVisible(this.column,e,"columnMenu"),this.selectionCallback&&this.selectionCallback(this.isSelected()))},t.prototype.actionUnCheckedPivotMode=function(){var e=this.gridOptionsWrapper.isFunctionsPassive(),t=this.column,o=this.columnController;if(t.isPivotActive())if(e){var i=this.columnController.getPivotColumns().slice();i.push(t);var n={type:a.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:i,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}else o.removePivotColumn(t,"columnMenu");if(t.isValueActive())if(e){var r=this.columnController.getValueColumns().slice();r.push(t);var s={type:a.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:r,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}else o.removeValueColumn(t,"columnMenu");if(t.isRowGroupActive())if(e){var l=this.columnController.getRowGroupColumns().slice();l.push(t);var p={type:a.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:l,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(p)}else o.removeRowGroupColumn(t,"columnMenu")},t.prototype.actionCheckedPivotMode=function(){var e=this.column;if(!(e.isValueActive()||e.isPivotActive()||e.isRowGroupActive())){var t=this.gridOptionsWrapper.isFunctionsPassive();if(e.isAllowValue())if(t){var o=this.columnController.getValueColumns().slice();a._.removeFromArray(o,e);var i={type:a.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:o};this.eventService.dispatchEvent(i)}else this.columnController.addValueColumn(e,"columnMenu");else if(e.isAllowRowGroup())if(t){var n=this.columnController.getRowGroupColumns().slice();a._.removeFromArray(n,e);var r={type:a.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:n};this.eventService.dispatchEvent(r)}else this.columnController.addRowGroupColumn(e,"columnMenu");else if(e.isAllowPivot())if(t){var s=this.columnController.getPivotColumns().slice();a._.removeFromArray(s,e);var l={type:a.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:s};this.eventService.dispatchEvent(l)}else this.columnController.addPivotColumn(e,"columnMenu")}},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t={type:a.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,dragItemCallback:function(){return e.createDragItem()}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(t)}))}else a._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var e,t=this.columnController.isPivotMode();if(t){var o=this.column.isAnyFunctionActive();this.cbSelect.setValue(o),this.selectionCallback&&this.selectionCallback(this.isSelected())}else this.cbSelect.setValue(this.column.isVisible()),this.selectionCallback&&this.selectionCallback(this.isSelected());if(t){var i=this.gridOptionsWrapper.isFunctionsReadOnly(),n=!this.column.isAnyFunctionAllowed();e=i||n}else e=!!this.column.getColDef().lockVisible;this.cbSelect.setReadOnly(e);var r=t&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(r),this.processingColumnStateChange=!1},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){e!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.isExpandable=function(){return!1},t.prototype.setExpanded=function(e){console.warn("ag-grid: can not expand a column item that does not represent a column group header")},t.TEMPLATE='<div class="ag-column-tool-panel-column">\n <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n <span class="ag-column-tool-panel-column-label" ref="eLabel"></span>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("dragAndDropService"),s("design:type",a.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([a.Autowired("columnApi"),s("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([a.RefSelector("cbSelect"),s("design:type",a.AgCheckbox)],t.prototype,"cbSelect",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.ToolPanelColumnComp=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.needRefresh=!1,t}return n(t,e),t.prototype.refresh=function(){if(this.suppressRefresh)return!0;var e=!this.needRefresh;return this.needRefresh=!1,e},t.prototype.init=function(e){var t=this;this.rowId=e.node.id,this.masterGridApi=e.api,this.suppressRefresh=e.suppressRefresh,this.selectAndSetTemplate(e),a._.exists(this.eDetailGrid)?(this.addThemeToDetailGrid(),this.createDetailsGrid(e),this.registerDetailWithMaster(e.node),this.loadRowData(e),window.setTimeout((function(){t.detailGridOptions.api&&t.detailGridOptions.api.doLayout()}),0)):console.warn('ag-Grid: reference to eDetailGrid was missing from the details template. Please add ref="eDetailGrid" to the template.'),this.addDestroyableEventListener(e.node.parent,a.RowNode.EVENT_DATA_CHANGED,(function(){t.needRefresh=!0}))},t.prototype.addThemeToDetailGrid=function(){var e=this.environment.getTheme().theme;e&&a._.addCssClass(this.eDetailGrid,e)},t.prototype.registerDetailWithMaster=function(e){var t=this,o={id:this.rowId,api:this.detailGridOptions.api,columnApi:this.detailGridOptions.columnApi};this.masterGridApi.addDetailGridInfo(this.rowId,o),e.detailGridInfo=o,this.addDestroyFunc((function(){t.masterGridApi.removeDetailGridInfo(t.rowId),e.detailGridInfo=null}))},t.prototype.selectAndSetTemplate=function(e){var o=e;if(a._.missing(o.template))this.setTemplate(t.TEMPLATE);else if("string"==typeof o.template)this.setTemplate(o.template);else if("function"==typeof o.template){var i=(0,o.template)(e);this.setTemplate(i)}else console.warn("ag-Grid: detailCellRendererParams.template should be function or string"),this.setTemplate(t.TEMPLATE)},t.prototype.createDetailsGrid=function(e){var t=this,o=e.detailGridOptions;a._.missing(o)&&console.warn("ag-Grid: could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions"),this.detailGridOptions=a._.cloneObject(o),new a.Grid(this.eDetailGrid,this.detailGridOptions,{$scope:e.$scope,$compile:e.$compile,seedBeanInstances:{agGridReact:e.agGridReact,frameworkComponentWrapper:e.frameworkComponentWrapper}}),this.addDestroyFunc((function(){t.detailGridOptions.api&&t.detailGridOptions.api.destroy()}))},t.prototype.loadRowData=function(e){var t=e.getDetailRowData;t?t({node:e.node,data:e.data,successCallback:this.setRowData.bind(this)}):console.warn("ag-Grid: could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData")},t.prototype.setRowData=function(e){this.detailGridOptions.api&&this.detailGridOptions.api.setRowData(e)},t.TEMPLATE='<div class="ag-details-row">\n <div ref="eDetailGrid" class="ag-details-grid"/>\n </div>',r([a.RefSelector("eDetailGrid"),s("design:type",HTMLElement)],t.prototype,"eDetailGrid",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("environment"),s("design:type",a.Environment)],t.prototype,"environment",void 0),t}(a.Component);t.DetailCellRenderer=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.postConstruct=function(){if(this.setLabel("totalRows","Total Rows"),"clientSide"===this.gridApi.getModel().getType()){this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-row-count"),this.setDisplayed(!0);var e=this.onDataChanged.bind(this);this.eventService.addEventListener(a.Events.EVENT_MODEL_UPDATED,e)}else console.warn("ag-Grid: agTotalRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){this.setValue(this.getRowCountValue())},t.prototype.getRowCountValue=function(){var e=0;return this.gridApi.forEachLeafNode((function(t){return e+=1})),""+e},t.prototype.init=function(){},r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(43).NameValueComp);t.TotalRowsComp=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.postConstruct=function(){"clientSide"===this.gridApi.getModel().getType()?(this.setLabel("totalAndFilteredRows","Rows"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_MODEL_UPDATED,this.onDataChanged.bind(this))):console.warn("ag-Grid: agTotalAndFilteredRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=this.getFilteredRowCountValue(),t=this.getTotalRowCount();if(e===t)this.setValue(e);else{var o=this.gridOptionsWrapper.getLocaleTextFunc();this.setValue(e+" "+o("of","of")+" "+t)}},t.prototype.getFilteredRowCountValue=function(){var e=0;return this.gridApi.forEachNodeAfterFilter((function(t){t.group||e++})),e},t.prototype.getTotalRowCount=function(){var e=0;return this.gridApi.forEachNode((function(t){t.group||e++})),e},t.prototype.init=function(){},r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(43).NameValueComp);t.TotalAndFilteredRowsComp=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(172),p=o(112),u=o(174),c=o(113),d=o(233),h=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.initialised=!1,o.childDestroyFuncs=[],o}return n(t,e),t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.init=function(e){var t={suppressSideButtons:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,api:this.gridApi};a._.mergeDeep(t,e),this.params=t,this.params.suppressPivotMode||this.addComponent(new l.PivotModePanel),this.addComponent(new d.PrimaryColsPanel(!0,this.params)),this.params.suppressRowGroups||this.addComponent(new p.RowGroupDropZonePanel(!1)),this.params.suppressValues||this.addComponent(new u.ValuesDropZonePanel(!1)),this.params.suppressPivots||this.addComponent(new c.PivotDropZonePanel(!1)),this.initialised=!0},t.prototype.addComponent=function(e){this.getContext().wireBean(e),this.getGui().appendChild(e.getGui()),this.childDestroyFuncs.push(e.destroy.bind(e))},t.prototype.destroyChildren=function(){this.childDestroyFuncs.forEach((function(e){return e()})),this.childDestroyFuncs.length=0,a._.clearElement(this.getGui())},t.prototype.refresh=function(){this.destroyChildren(),this.init(this.params)},t.prototype.destroy=function(){this.destroyChildren(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-column-panel"></div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),t}(a.Component);t.ColumnToolPanel=h},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(21),p=o(43),u=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.postConstruct=function(){this.isValidRowModel()?(this.avgAggregationComp.setLabel("average","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_MODEL_UPDATED,this.onRangeSelectionChanged.bind(this))):console.warn("ag-Grid: agAggregationComponent should only be used with the client and server side row model.")},t.prototype.isValidRowModel=function(){var e=this.gridApi.getModel().getType();return"clientSide"===e||"serverSide"===e},t.prototype.init=function(){},t.prototype.setAggregationComponentValue=function(e,t,o){var i=this.getAggregationValueComponent(e);a._.exists(i)&&i&&(i.setValue(a._.formatNumberTwoDecimalPlacesAndCommas(t)),i.setDisplayed(o))},t.prototype.getAggregationValueComponent=function(e){var t=e+"AggregationComp",o=null,i=a._.exists(this.gridOptions.statusBar)&&this.gridOptions.statusBar?a._.find(this.gridOptions.statusBar.statusPanels,(function(e){return"agAggregationComponent"===e.statusPanel})):null;return a._.exists(i)&&i?(!a._.exists(i.statusPanelParams)||a._.exists(i.statusPanelParams)&&a._.exists(i.statusPanelParams.aggFuncs)&&a._.exists(a._.find(i.statusPanelParams.aggFuncs,(function(t){return t===e}))))&&(o=this[t]):o=this[t],o},t.prototype.onRangeSelectionChanged=function(){var e=this,t=this.rangeController.getCellRanges(),o=0,i=0,n=0,r=null,s=0,l={};t&&!a._.missingOrEmpty(t)&&t.forEach((function(t){for(var p=e.rangeController.getRangeStartRow(t),u=e.rangeController.getRangeEndRow(t);!a._.missing(p)&&p&&!e.rowPositionUtils.before(u,p)&&p&&t.columns;)t.columns.forEach((function(t){if(null!==p){var u=e.cellPositionUtils.createId({rowPinned:p.rowPinned,column:t,rowIndex:p.rowIndex});if(!l[u]){l[u]=!0;var c=e.rowRenderer.getRowNode(p);if(!a._.missing(c)){var d=e.valueService.getValue(t,c);a._.missing(d)||""===d||(d.value&&(d=d.value),"string"==typeof d&&(d=Number(d)),"number"!=typeof d||isNaN(d)||(o+=d,(null===s||d>s)&&(s=d),(null===r||d<r)&&(r=d),n++),i++)}}}})),p=e.cellNavigationService.getRowBelow(p)}));var p=i>1,u=n>1;this.setAggregationComponentValue("count",i,p),this.setAggregationComponentValue("sum",o,u),this.setAggregationComponentValue("min",r,u),this.setAggregationComponentValue("max",s,u),this.setAggregationComponentValue("avg",o/n,u)},t.TEMPLATE='<div class="ag-status-panel ag-status-panel-aggregations">\n <ag-name-value ref="avgAggregationComp"></ag-name-value>\n <ag-name-value ref="countAggregationComp"></ag-name-value>\n <ag-name-value ref="minAggregationComp"></ag-name-value>\n <ag-name-value ref="maxAggregationComp"></ag-name-value>\n <ag-name-value ref="sumAggregationComp"></ag-name-value>\n </div>',r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("rangeController"),s("design:type",l.RangeController)],t.prototype,"rangeController",void 0),r([a.Autowired("valueService"),s("design:type",a.ValueService)],t.prototype,"valueService",void 0),r([a.Autowired("cellNavigationService"),s("design:type",a.CellNavigationService)],t.prototype,"cellNavigationService",void 0),r([a.Autowired("rowRenderer"),s("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.Autowired("cellPositionUtils"),s("design:type",a.CellPositionUtils)],t.prototype,"cellPositionUtils",void 0),r([a.Autowired("rowPositionUtils"),s("design:type",a.RowPositionUtils)],t.prototype,"rowPositionUtils",void 0),r([a.RefSelector("sumAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"sumAggregationComp",void 0),r([a.RefSelector("countAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"countAggregationComp",void 0),r([a.RefSelector("minAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"minAggregationComp",void 0),r([a.RefSelector("maxAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"maxAggregationComp",void 0),r([a.RefSelector("avgAggregationComp"),s("design:type",p.NameValueComp)],t.prototype,"avgAggregationComp",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.AggregationComp=u},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.postConstruct=function(){if(this.isValidRowModel()){this.setLabel("selectedRows","Selected"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-selected-row-count");var e=this.gridApi.getSelectedRows().length;this.setValue(e),this.setDisplayed(e>0);var t=this.onRowSelectionChanged.bind(this);this.eventService.addEventListener(a.Events.EVENT_MODEL_UPDATED,t),this.eventService.addEventListener(a.Events.EVENT_SELECTION_CHANGED,t)}else console.warn("ag-Grid: agSelectedRowCountComponent should only be used with the client and server side row model.")},t.prototype.isValidRowModel=function(){var e=this.gridApi.getModel().getType();return"clientSide"===e||"serverSide"===e},t.prototype.onRowSelectionChanged=function(){var e=this.gridApi.getSelectedRows().length;this.setValue(e),this.setDisplayed(e>0)},t.prototype.init=function(){},r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(43).NameValueComp);t.SelectedRowsComp=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.postConstruct=function(){if(this.setLabel("filteredRows","Filtered"),"clientSide"===this.gridApi.getModel().getType()){this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);var e=this.onDataChanged.bind(this);this.eventService.addEventListener(a.Events.EVENT_MODEL_UPDATED,e)}else console.warn("ag-Grid: agFilteredRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=this.getTotalRowCountValue(),t=this.getFilteredRowCountValue();this.setValue(t),this.setDisplayed(e!==t)},t.prototype.getTotalRowCountValue=function(){var e=0;return this.gridApi.forEachNode((function(t){return e+=1})),e},t.prototype.getFilteredRowCountValue=function(){var e=0;return this.gridApi.forEachNodeAfterFilter((function(t){t.group||(e+=1)})),e},t.prototype.init=function(){},r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(o(43).NameValueComp);t.FilteredRowsComp=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(337),p=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.initialised=!1,o}return n(t,e),t.prototype.init=function(){var e=this;this.initialised=!0,this.eventService.addEventListener("newColumnsLoaded",(function(){return e.onColumnsChanged()})),this.columnController.isReady()&&this.onColumnsChanged()},t.prototype.onColumnsChanged=function(){var e=this,t=this.getGui();a._.clearElement(t);var o=this.columnController.getAllPrimaryColumns();o&&o.filter((function(e){return e.isFilterAllowed()})).forEach((function(t){return e.addColumnComps(t)}))},t.prototype.refresh=function(){},t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init()},t.prototype.addColumnComps=function(e){var t=new l.ToolPanelFilterComp;this.getContext().wireBean(t),t.setColumn(e),this.appendChild(t)},t.TEMPLATE='<div class="ag-filter-panel" ref="ePanelContainer" />',r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),t}(a.Component);t.FiltersToolPanel=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.expanded=!1,o}return n(t,e),t.prototype.postConstruct=function(){this.eExpandChecked=a._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper),this.eExpandUnchecked=a._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},t.prototype.setColumn=function(e){this.column=e;var t=this.columnController.getDisplayNameForColumn(this.column,"header",!1);this.eFilterName.innerText=t,this.addDestroyableEventListener(this.eFilterToolPanelHeader,"click",this.doExpandOrCollapse.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),a._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),a._.addCssClass(this.eExpandChecked,"ag-hidden"),this.addDestroyableEventListener(this.column,a.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},t.prototype.addInIcon=function(e,t,o){if(null!=t){var i=a._.createIconNoSpan(e,this.gridOptionsWrapper,o);i.innerHTML=" ",t.appendChild(i)}},t.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},t.prototype.onFilterChanged=function(){a._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive())},t.prototype.doExpandOrCollapse=function(){this.expanded?this.doCollapse():this.doExpand()},t.prototype.doExpand=function(){var e=this;this.expanded=!0;var t=a._.loadTemplate('<div class="ag-filter-air" />');this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR").filterPromise.then((function(o){t.appendChild(o.getGui()),e.agFilterToolPanelBody.appendChild(t),o.afterGuiAttached&&o.afterGuiAttached({})})),a._.setDisplayed(this.eExpandChecked,!0),a._.setDisplayed(this.eExpandUnchecked,!1)},t.prototype.doCollapse=function(){this.expanded=!1,this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]),a._.setDisplayed(this.eExpandChecked,!1),a._.setDisplayed(this.eExpandUnchecked,!0)},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.doCollapse()},t.TEMPLATE='<div class="ag-filter-toolpanel-instance" >\n <div class="ag-filter-toolpanel-header ag-header-cell-label" ref="eFilterToolPanelHeader">\n <div ref="eExpand"></div>\n <span ref="eFilterName" class="ag-header-cell-text"></span>\n <span ref="eFilterIcon" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span>\n </div>\n <div class="ag-filter-toolpanel-body ag-filter" ref="agFilterToolPanelBody"/>\n </div>',r([a.Autowired("gridApi"),s("design:type",a.GridApi)],t.prototype,"gridApi",void 0),r([a.Autowired("filterManager"),s("design:type",a.FilterManager)],t.prototype,"filterManager",void 0),r([a.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("columnController"),s("design:type",a.ColumnController)],t.prototype,"columnController",void 0),r([a.RefSelector("eFilterToolPanelHeader"),s("design:type",HTMLElement)],t.prototype,"eFilterToolPanelHeader",void 0),r([a.RefSelector("eFilterName"),s("design:type",HTMLElement)],t.prototype,"eFilterName",void 0),r([a.RefSelector("agFilterToolPanelBody"),s("design:type",HTMLElement)],t.prototype,"agFilterToolPanelBody",void 0),r([a.RefSelector("eFilterIcon"),s("design:type",HTMLElement)],t.prototype,"eFilterIcon",void 0),r([a.RefSelector("eExpand"),s("design:type",HTMLElement)],t.prototype,"eExpand",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.ToolPanelFilterComp=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=function(e){function t(){return e.call(this,'<div class="ag-input-wrapper" role="presentation"><input ref="eFloatingFilterText" class="ag-floating-filter-input"></div>')||this}return n(t,e),t.prototype.init=function(e){this.eFloatingFilterText.disabled=!0,this.column=e.column},t.prototype.onParentModelChanged=function(e){if(e){var t=e instanceof Array?e:e.values;if(t&&0!==t.length){for(var o=0;o<t.length;o++){var i=t[o],n=this.valueFormatterService.formatValue(this.column,null,null,i);null!=n&&(t[o]=n)}var r=t.length>10?t.slice(0,10).concat("..."):t,s="("+t.length+") "+r.join(",");this.eFloatingFilterText.value=s}else this.eFloatingFilterText.value=""}else this.eFloatingFilterText.value=""},r([a.RefSelector("eFloatingFilterText"),s("design:type",HTMLInputElement)],t.prototype,"eFloatingFilterText",void 0),r([a.Autowired("valueFormatterService"),s("design:type",a.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),t}(a.Component);t.SetFloatingFilterComp=l},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(176),p=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return n(t,e),t.prototype.getToolPanelId=function(){return this.toolPanelId},t.prototype.setToolPanelDef=function(e){this.toolPanelId=e.id;var t={api:this.gridOptionsWrapper.getApi()},o=this.userComponentFactory.newToolPanelComponent(e,t);null!=o?o.then(this.setToolPanelComponent.bind(this)):console.warn("ag-grid: error processing tool panel component "+e.id+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},t.prototype.setupResize=function(){var e=new l.HorizontalResizeComp;this.getContext().wireBean(e),e.setElementToResize(this.getGui()),this.appendChild(e)},t.prototype.setToolPanelComponent=function(e){this.toolPanelCompInstance=e,this.appendChild(e)},t.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},t.TEMPLATE='<div class="ag-tool-panel-wrapper"/>',r([a.Autowired("userComponentFactory"),s("design:type",a.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"setupResize",null),t}(a.Component);t.ToolPanelWrapper=p},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stringList=[],t.stringMap={},t}return n(t,e),t.prototype.onNewHeaderGroupingRow=function(){var e=[],t=this;return this.rows.push({cells:e,height:this.headerRowHeight}),{onColumn:function(o,i,n){var s=t.styleLinker(r.RowType.HEADER_GROUPING,1,i,"grouping-"+o,void 0,void 0);e.push(t.createMergedCell(s&&s.length>0?s[0]:void 0,"s",o,n))}}},t.prototype.onNewHeaderColumn=function(e,t){var o=this,i=this;return function(n,s,a){var l=o.extractHeaderValue(n),p=i.styleLinker(r.RowType.HEADER,e,s,l,n,void 0);t.push(o.createCell(p&&p.length>0?p[0]:void 0,"s",l))}},t.prototype.parse=function(){var e,t,o,i,n=[{name:this.sheetName,table:{columns:this.cols,rows:(e=this.customHeader,t=this.rows,o=this.customFooter,i=[],e&&e.forEach((function(e){return i.push({cells:e})})),t.forEach((function(e){return i.push(e)})),o&&o.forEach((function(e){return i.push({cells:e})})),i)}}];return this.excelFactory.createExcel(this.excelStyles,n,this.stringList)},t.prototype.onNewBodyColumn=function(e,t){var o=this,i=this;return function(n,s,a){var l,p=o.extractRowCellValue(n,s,r.Constants.EXPORT_TYPE_EXCEL,a),u=i.styleLinker(r.RowType.BODY,e,s,p,n,a);if(u&&1==u.length)l=u[0];else if(u&&u.length>1){var c=u.join("-");o.mixedStyles[c]||o.addNewMixedStyle(u),l=o.mixedStyles[c].excelID}var d=r._.isNumeric(p)?"n":"s";t.push(i.createCell(l,d,p))}},t.prototype.getStringPosition=function(e){var t=this.stringMap[e];return void 0===t&&(t=this.stringMap[e]=this.stringList.length,this.stringList.push(e)),t},t.prototype.createCell=function(e,t,o){var i=e&&this.stylesByIds[e],n=void 0!==i,r=function(){if(n&&i.dataType)switch(i.dataType){case"string":return"s";case"number":return"n";case"dateTime":return"d";case"error":return"e";case"boolean":return"b";default:console.warn("ag-grid: Unrecognized data type for excel export ["+i.id+".dataType="+i.dataType+"]")}return t}();return{styleId:n?e:void 0,data:{type:r,value:"s"===r?this.getStringPosition(null==o?"":o).toString():"n"===r?Number(o).toString():o}}},t.prototype.createMergedCell=function(e,t,o,i){return{styleId:this.styleExists(e)?e:void 0,data:{type:t,value:"s"===t?this.getStringPosition(null==o?"":o).toString():o},mergeAcross:i}},t}(o(234).ExcelXmlSerializingSession);t.ExcelXlsxSerializingSession=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(){return{name:"Workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",html:"http://www.w3.org/TR/REC-html40"}}],rawMap:{xmlns:"urn:schemas-microsoft-com:office:spreadsheet"}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(){return{name:"ExcelWorkbook",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:excel"}},children:[{name:"WindowHeight",textNode:"8130"},{name:"WindowWidth",textNode:"15135"},{name:"WindowHeight",textNode:"8130"},{name:"WindowTopX",textNode:"120"},{name:"WindowTopY",textNode:"45"},{name:"ProtectStructure",textNode:"False"},{name:"ProtectWindow",textNode:"False"}]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(344),r=o(345),s={getTemplate:function(e){var t=e.table,o=e.name,s=t.columns,a=t.rows,l=i._.map(s,(function(e){return n.default.getTemplate(e)})),p=i._.map(a,(function(e){return r.default.getTemplate(e)}));return{name:"Worksheet",children:[{name:"Table",children:l.concat(p)}],properties:{prefixedAttributes:[{prefix:"ss:",map:{Name:o}}]}}}};t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){return{name:"Column",properties:{prefixedAttributes:[{prefix:"ss:",map:{Width:e.width}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(346),r={getTemplate:function(e){var t=e.cells;return{name:"Row",children:i._.map(t,(function(e){return n.default.getTemplate(e)}))}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.mergeAcross,o=e.styleId,i=e.data,n={};return t&&(n.MergeAcross=t),o&&(n.StyleID=o),{name:"Cell",properties:{prefixedAttributes:[{prefix:"ss:",map:n}]},children:[{name:"Data",properties:{prefixedAttributes:[{prefix:"ss:",map:{Type:i.type}}]},textNode:i.value}]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(){return{name:"DocumentProperties",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:office"}},children:[{name:"Version",textNode:"12.00"}]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.alignment;return{name:"Alignment",properties:{prefixedAttributes:[{prefix:"ss:",map:{Vertical:t.vertical,Horizontal:t.horizontal,Indent:t.indent,ReadingOrder:t.readingOrder,Rotate:t.rotate,ShrinkToFit:t.shrinkToFit,VerticalText:t.verticalText,WrapText:t.wrapText}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.borders;return{name:"Borders",children:[t.borderBottom,t.borderLeft,t.borderRight,t.borderTop].map((function(e,t){return{name:"Border",properties:{prefixedAttributes:[{prefix:"ss:",map:{Position:0==t?"Bottom":1==t?"Left":2==t?"Right":"Top",LineStyle:e.lineStyle,Weight:e.weight,Color:e.color}}]}}}))}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.font;return{name:"Font",properties:{prefixedAttributes:[{prefix:"ss:",map:{Bold:t.bold,FontName:t.fontName,Italic:t.italic,Color:t.color,Outline:t.outline,Shadow:t.shadow,Size:t.size,StrikeThrough:t.strikeThrough,Underline:t.underline,VerticalAlign:t.verticalAlign}},{prefix:"x:",map:{CharSet:t.charSet,Family:t.family}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.interior;return{name:"Interior",properties:{prefixedAttributes:[{prefix:"ss:",map:{Color:t.color,Pattern:t.pattern,PatternColor:t.patternColor}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){return{name:"Protection",properties:{prefixedAttributes:[{prefix:"ss:",map:{Protected:e.protection.protected,HideFormula:e.protection.hideFormula}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){return{name:"NumberFormat",properties:{prefixedAttributes:[{prefix:"ss:",map:{Format:e.numberFormat.format}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.id;return{name:"Style",properties:{prefixedAttributes:[{prefix:"ss:",map:{ID:t,Name:e.name||t}}]}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={getTemplate:function(){var e=(new Date).toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:"ag-Grid"},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:e},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:e}]}}};t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(357),r={getTemplate:function(){return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:i._.map([{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:"/xl/worksheets/sheet1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}],n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.name,o=e.ContentType;return{name:t,properties:{rawMap:{Extension:e.Extension,PartName:e.PartName,ContentType:o}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(359),n={getTemplate:function(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[i.default.getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(360),n=o(361),r=o(362),s={getTemplate:function(){return{name:"a:themeElements",children:[i.default.getTemplate(),n.default.getTemplate(),r.default.getTemplate()]}}};t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return{name:"a:"+e[0],children:[{name:"a:"+e[1],properties:{rawMap:{val:e[2],lastClr:e[3]}}}]}},n={getTemplate:function(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[i(["dk1","sysClr","windowText","000000"]),i(["lt1","sysClr","window","FFFFFF"]),i(["dk2","srgbClr","44546A"]),i(["lt2","srgbClr","E7E6E6"]),i(["accent1","srgbClr","4472C4"]),i(["accent2","srgbClr","ED7D31"]),i(["accent3","srgbClr","A5A5A5"]),i(["accent4","srgbClr","FFC000"]),i(["accent5","srgbClr","5B9BD5"]),i(["accent6","srgbClr","70AD47"]),i(["hlink","srgbClr","0563C1"]),i(["folHlink","srgbClr","954F72"])]}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=function(e){var t=e[0],o=e[1];return{name:"a:"+t,properties:{rawMap:{script:e[2],typeface:o,panose:e[3]}}}},r={getTemplate:function(){var e=i._.utf8_encode;return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[n(["latin","Calibri Light",void 0,"020F0302020204030204"]),n(["ea",""]),n(["cs",""]),n(["font",e("游ゴシック Light"),"Jpan"]),n(["font",e("맑은 고딕"),"Hang"]),n(["font",e("等线 Light"),"Hans"]),n(["font",e("新細明體"),"Hant"]),n(["font","Times New Roman","Arab"]),n(["font","Times New Roman","Hebr"]),n(["font","Tahoma","Thai"]),n(["font","Nyala","Ethi"]),n(["font","Vrinda","Beng"]),n(["font","Shruti","Gujr"]),n(["font","MoolBoran","Khmr"]),n(["font","Tunga","Knda"]),n(["font","Raavi","Guru"]),n(["font","Euphemia","Cans"]),n(["font","Plantagenet Cherokee","Cher"]),n(["font","Microsoft Yi Baiti","Yiii"]),n(["font","Microsoft Himalaya","Tibt"]),n(["font","MV Boli","Thaa"]),n(["font","Mangal","Deva"]),n(["font","Gautami","Telu"]),n(["font","Latha","Taml"]),n(["font","Estrangelo Edessa","Syrc"]),n(["font","Kalinga","Orya"]),n(["font","Kartika","Mlym"]),n(["font","DokChampa","Laoo"]),n(["font","Iskoola Pota","Sinh"]),n(["font","Mongolian Baiti","Mong"]),n(["font","Times New Roman","Viet"]),n(["font","Microsoft Uighur","Uigh"]),n(["font","Sylfaen","Geor"]),n(["font","Arial","Armn"]),n(["font","Leelawadee UI","Bugi"]),n(["font","Microsoft JhengHei","Bopo"]),n(["font","Javanese Text","Java"]),n(["font","Segoe UI","Lisu"]),n(["font","Myanmar Text","Mymr"]),n(["font","Ebrima","Nkoo"]),n(["font","Nirmala UI","Olck"]),n(["font","Ebrima","Osma"]),n(["font","Phagspa","Phag"]),n(["font","Estrangelo Edessa","Syrn"]),n(["font","Estrangelo Edessa","Syrj"]),n(["font","Estrangelo Edessa","Syre"]),n(["font","Nirmala UI","Sora"]),n(["font","Microsoft Tai Le","Tale"]),n(["font","Microsoft New Tai Lue","Talu"]),n(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[n(["latin","Calibri",void 0,"020F0502020204030204"]),n(["ea",""]),n(["cs",""]),n(["font",e("游ゴシック"),"Jpan"]),n(["font",e("맑은 고딕"),"Hang"]),n(["font",e("等线"),"Hans"]),n(["font",e("新細明體"),"Hant"]),n(["font","Arial","Arab"]),n(["font","Arial","Hebr"]),n(["font","Tahoma","Thai"]),n(["font","Nyala","Ethi"]),n(["font","Vrinda","Beng"]),n(["font","Shruti","Gujr"]),n(["font","DaunPenh","Khmr"]),n(["font","Tunga","Knda"]),n(["font","Raavi","Guru"]),n(["font","Euphemia","Cans"]),n(["font","Plantagenet Cherokee","Cher"]),n(["font","Microsoft Yi Baiti","Yiii"]),n(["font","Microsoft Himalaya","Tibt"]),n(["font","MV Boli","Thaa"]),n(["font","Mangal","Deva"]),n(["font","Gautami","Telu"]),n(["font","Latha","Taml"]),n(["font","Estrangelo Edessa","Syrc"]),n(["font","Kalinga","Orya"]),n(["font","Kartika","Mlym"]),n(["font","DokChampa","Laoo"]),n(["font","Iskoola Pota","Sinh"]),n(["font","Mongolian Baiti","Mong"]),n(["font","Arial","Viet"]),n(["font","Microsoft Uighur","Uigh"]),n(["font","Sylfaen","Geor"]),n(["font","Arial","Armn"]),n(["font","Leelawadee UI","Bugi"]),n(["font","Microsoft JhengHei","Bopo"]),n(["font","Javanese Text","Java"]),n(["font","Segoe UI","Lisu"]),n(["font","Myanmar Text","Mymr"]),n(["font","Ebrima","Nkoo"]),n(["font","Nirmala UI","Olck"]),n(["font","Ebrima","Osma"]),n(["font","Phagspa","Phag"]),n(["font","Estrangelo Edessa","Syrn"]),n(["font","Estrangelo Edessa","Syrj"]),n(["font","Estrangelo Edessa","Syre"]),n(["font","Nirmala UI","Sora"]),n(["font","Microsoft Tai Le","Tale"]),n(["font","Microsoft New Tai Lue","Talu"]),n(["font","Ebrima","Tfng"])]}]}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=function(e,t,o){return{name:"a:"+e,properties:{rawMap:{val:t}},children:o}},r=function(e){var t=e[0],o=e[1],i=e[2],r=e[3],s=e[4],a=e[5],l=[];return l.push(n("satMod",i)),r&&l.push(n("lumMod",r)),s&&l.push(n("tint",s)),a&&l.push(n("shade",a)),{name:"a:gs",properties:{rawMap:{pos:t}},children:[{name:"a:schemeClr",properties:{rawMap:{val:o}},children:l}]}},s=function(e,t){return{name:"a:solidFill",children:[n("schemeClr",e,t)]}},a=function(e){var t=e[0],o=e[1],i=e[2],n=e[3],s=e[4],a=s[0],l=s[1];return{name:"a:gradFill",properties:{rawMap:{rotWithShape:t}},children:[{name:"a:gsLst",children:[r(o),r(i),r(n)]},{name:"a:lin",properties:{rawMap:{ang:a,scaled:l}}}]}},l=function(e){return{name:"a:ln",properties:{rawMap:{w:e[0],cap:e[1],cmpd:e[2],algn:e[3]}},children:[s("phClr"),n("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},p=function(e){var t=[];if(e){var o=e[0],r=e[1],s=e[2],a=e[3],l=e[4];t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:o,dist:r,dir:s,algn:a,rotWithShape:l}},children:[n("srgbClr","000000",[n("alpha","63000")])]})}return{name:"a:effectStyle",children:[i._.assign({},{name:"a:effectLst"},t.length?{children:t}:{})]}},u={getTemplate:function(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:fillStyleLst",children:[s("phClr"),a(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),a(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]},{name:"a:lnStyleLst",children:[l(["6350","flat","sng","ctr"]),l(["12700","flat","sng","ctr"]),l(["19050","flat","sng","ctr"])]},{name:"a:effectStyleLst",children:[p(),p(),p(["57150","19050","5400000","ctr","0"])]},{name:"a:bgFillStyleLst",children:[s("phClr"),s("phClr",[n("tint","95000"),n("satMod","170000")]),a(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}]}}};t.default=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=function(e){return{name:"si",children:[{name:"t",textNode:i._.utf8_encode(i._.escape(e.toString()))}]}},r={getTemplate:function(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.length,uniqueCount:e.length}},children:i._.map(e,n)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(235),r={getTemplate:function(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(236),r={getTemplate:function(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(367),r={getTemplate:function(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=e.patternType,o=e.fgTheme,i=e.fgTint,n=e.fgRgb,r=e.bgRgb,s=e.bgIndexed,a={name:"patternFill",properties:{rawMap:{patternType:t}}};return(o||i||n)&&(a.children=[{name:"fgColor",properties:{rawMap:{theme:o,tint:i,rgb:n}}}]),s&&(a.children||(a.children=[]),a.children.push({name:"bgColor",properties:{rawMap:{indexed:s,rgb:r}}})),{name:"fill",children:[a]}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(237),r={getTemplate:function(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(238),r={getTemplate:function(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return{Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"}[e]||"general"},n=function(e){return{Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"}[e]||void 0},r=function(e){var t=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(t,0)},s={getTemplate:function(e){var t=e.horizontal,o=e.indent,s=e.readingOrder,a=e.rotate,l=e.shrinkToFit,p=e.vertical,u=e.wrapText;return{name:"alignment",properties:{rawMap:{horizontal:t&&i(t),indent:o,readingOrder:s&&r(s),textRotation:a,shrinkToFit:l,vertical:p&&n(p),wrapText:u}}}}};t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){var t=!1===e.protected?0:1;return{name:"protection",properties:{rawMap:{hidden:!0===e.hideFormula?1:0,locked:t}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(238),r={getTemplate:function(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(374),r={getTemplate:function(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){return{name:"cellStyle",properties:{rawMap:{builtinId:e.builtinId,name:e.name,xfId:e.xfId}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(376),n={getTemplate:function(e){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[i.default.getTemplate(e)]}}};t.default=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(377),r={getTemplate:function(e){return{name:"sheets",children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e,t){var o=(t+1).toString();return{name:"sheet",properties:{rawMap:{name:e,sheetId:o,"r:id":"rId"+o}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={getTemplate:function(e){var t=e.min,o=e.max,i=e.s,n=e.width,r=void 0===n?10:n,s=e.hidden,a=e.bestFit,l=function(e){return Math.max(Math.ceil((e-12)/7+1),10)}(r);return{name:"col",properties:{rawMap:{min:t,max:o,width:l,style:i,hidden:s?"1":"0",bestFit:a?"1":"0",customWidth:10!=l?"1":"0"}}}}};t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(239),r=o(380),s={getTemplate:function(e,t){var o=e.index,s=e.collapsed,a=e.hidden,l=e.height,p=e.s,u=e.cells,c=void 0===u?[]:u;return function(e,t){for(var o=[],i=0,r=0;r<e.length;r++)(a=e[r]).mergeAcross&&(o.push({pos:r,excelPos:i}),i+=e[r].mergeAcross),i++;if(o.length)for(r=o.length-1;r>=0;r--){for(var s=[],a=e[o[r].pos],l=1;l<=a.mergeAcross;l++)s.push({ref:""+n.getExcelColumnName(o[r].excelPos+1+l)+(t+1),styleId:a.styleId,data:{type:"empty",value:null}});s.length&&e.splice.apply(e,[o[r].pos+1,0].concat(s))}}(c,t),{name:"row",properties:{rawMap:{r:o,collapsed:s,hidden:a?"1":"0",ht:l,customHeight:null!=l?"1":"0",s:p,customFormat:null!=p?"1":"0"}},children:i._.map(c,r.default.getTemplate)}}};t.default=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(177),r={getTemplate:function(e){var t=e.ref,o=e.data,r=e.styleId,s=o.type,a=o.value,l=s;s.charAt(0)===s.charAt(0).toUpperCase()&&(l=function(e){var t=e.charAt(0).toLowerCase();return"s"===t?"inlineStr":t}(s));var p,u={name:"c",properties:{rawMap:{r:t,t:"empty"===l?void 0:l,s:r?n.getStyleId(r):void 0}}};return p="inlineStr"===l?[{name:"is",children:[{name:"t",textNode:i._.escape(i._.utf8_encode(a))}]}]:[{name:"v",textNode:a}],i._.assign({},u,{children:p})}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){return{name:"mergeCell",properties:{rawMap:{ref:e}}}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(383),r={getTemplate:function(e){return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:i._.map(e,n.default.getTemplate)}}};t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={getTemplate:function(e){return{name:"Relationship",properties:{rawMap:{Id:e.Id,Type:e.Type,Target:e.Target}}}}}},function(e,t,o){"use strict";var i,n=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(1),p=o(241),u=function(e){function t(t,o){var i=e.call(this,t)||this;return i.displayIndexStart=0,i.displayIndexEnd=0,i.cacheTop=0,i.blockHeights={},i.parentRowNode=o,i}return n(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ServerSideCache")},t.prototype.init=function(){e.prototype.init.call(this)},t.prototype.getRowBounds=function(e){var t,o=this;this.logger.log("getRowBounds("+e+")");var i=!1,n=null;if(this.forEachBlockInOrder((function(r){i||(r.isDisplayIndexInBlock(e)?(t=r.getRowBounds(e,o.getVirtualRowCount()),i=!0):r.isBlockBefore(e)&&(n=r))})),!i){var r=void 0,s=void 0;null!==n?(r=n.getBlockTop()+n.getBlockHeight(),s=n.getDisplayIndexEnd()):(r=this.cacheTop,s=this.displayIndexStart);var a=e-s;t={rowHeight:this.cacheParams.rowHeight,rowTop:r+a*this.cacheParams.rowHeight}}return this.logger.log("getRowBounds("+e+"), result = "+t),t},t.prototype.destroyBlock=function(t){e.prototype.destroyBlock.call(this,t)},t.prototype.getRowIndexAtPixel=function(e){var t,o=this;this.logger.log("getRowIndexAtPixel("+e+")");var i,n=!1;if(this.forEachBlockInOrder((function(r){n||(r.isPixelInRange(e)?(t=r.getRowIndexAtPixel(e,o.getVirtualRowCount()),n=!0):r.getBlockTop()<e&&(i=r))})),!n){var r=void 0,s=void 0;i?(r=i.getBlockTop()+i.getBlockHeight(),s=i.getDisplayIndexEnd()):(r=this.cacheTop,s=this.displayIndexStart);var a=(e-r)/this.cacheParams.rowHeight|0;t=s+a}var l=this.getDisplayIndexEnd()-1;return t>l&&(t=l),this.logger.log("getRowIndexAtPixel("+e+") result = "+t),t},t.prototype.clearRowTops=function(){var e=this;this.forEachBlockInOrder((function(t){return t.clearRowTops(e.getVirtualRowCount())}))},t.prototype.setDisplayIndexes=function(e,t){var o=this;this.displayIndexStart=e.peek(),this.cacheTop=t.value;var i=-1,n=this.getBlockSize();this.forEachBlockInOrder((function(r,s){var a=s-i-1,p=a*n;p>0&&e.skip(p);for(var u=1;u<=a;u++){var c=s-u;l._.exists(o.blockHeights[c])?t.value+=o.blockHeights[c]:t.value+=n*o.cacheParams.rowHeight}i=s,r.setDisplayIndexes(e,o.getVirtualRowCount(),t),o.blockHeights[s]=r.getBlockHeight()}));var r=(i+1)*n-1,s=this.getVirtualRowCount()-r-1;s>0&&(e.skip(s),t.value+=s*this.cacheParams.rowHeight),this.displayIndexEnd=e.peek(),this.cacheHeight=t.value-this.cacheTop},t.prototype.getRow=function(e,t){if(void 0===t&&(t=!1),!this.isDisplayIndexInCache(e))return null;var o=null,i=null;if(this.forEachBlockInOrder((function(t){t.isDisplayIndexInBlock(e)?o=t:t.isBlockBefore(e)&&(i=t)})),l._.missing(o)&&t)return null;var n=this.getBlockSize();if(l._.missing(o)){var r,s=void 0,a=void 0;if(i)for(s=i.getBlockNumber()+1,r=i.getDisplayIndexEnd(),a=i.getBlockHeight()+i.getBlockTop();!(e>=r&&e<r+n);){r+=n;var p=this.blockHeights[s];l._.exists(p)?a+=p:a+=this.cacheParams.rowHeight*n,s++}else{var u=e-this.displayIndexStart;s=Math.floor(u/n),r=this.displayIndexStart+s*n,a=this.cacheTop+s*n*this.cacheParams.rowHeight}o=this.createBlock(s,r,{value:a}),this.logger.log("block missing, rowIndex = "+e+", creating #"+s+", displayIndexStart = "+r)}return o?o.getRow(e):null},t.prototype.getBlockSize=function(){return this.cacheParams.blockSize?this.cacheParams.blockSize:p.ServerSideBlock.DefaultBlockSize},t.prototype.getTopLevelRowDisplayedIndex=function(e){var t,o=this.getBlockSize(),i=Math.floor(e/o),n=this.getBlock(i);if(n)return n.getRowUsingLocalIndex(e,!0).rowIndex;if(this.forEachBlockInOrder((function(e,o){i>o&&(t=e)})),t){var r=o*(t.getBlockNumber()+1)-1,s=e-r;return t.getRowUsingLocalIndex(r,!0).rowIndex+s}return e},t.prototype.createBlock=function(e,t,o){var i=new p.ServerSideBlock(e,this.parentRowNode,this.cacheParams,this);this.getContext().wireBean(i);var n=new l.NumberSequence(t);return i.setDisplayIndexes(n,this.getVirtualRowCount(),o),this.postCreateBlock(i),i},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.isDisplayIndexInCache=function(e){return 0!==this.getVirtualRowCount()&&e>=this.displayIndexStart&&e<this.displayIndexEnd},t.prototype.getChildCache=function(e){var t=this;if(l._.missingOrEmpty(e))return this;var o=e[0],i=null;if(this.forEachBlockInOrder((function(e){e.forEachNodeShallow((function(e){e.key===o&&(i=e.childrenCache)}),new l.NumberSequence,t.getVirtualRowCount())})),i){var n=e.slice(1,e.length);return i?i.getChildCache(n):null}return null},t.prototype.isPixelInRange=function(e){return 0!==this.getVirtualRowCount()&&e>=this.cacheTop&&e<this.cacheTop+this.cacheHeight},t.prototype.refreshCacheAfterSort=function(e,t){var o,i=this,n=this.parentRowNode.level+1;if(n<this.cacheParams.rowGroupCols.length){var r=this.cacheParams.rowGroupCols[n].field,s=t.indexOf(r)>-1,a=e.indexOf(r)>-1;o=s&&a}else o=!0;o?this.purgeCache():this.forEachBlockInOrder((function(o){o.isGroupLevel()&&o.forEachNodeShallow((function(o){var i=o.childrenCache;i&&i.refreshCacheAfterSort(e,t)}),new l.NumberSequence,i.getVirtualRowCount())}))},r([l.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[l.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(l.RowNodeCache);t.ServerSideCache=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(106),r=o(21),s=o(76),a=o(110),l=o(68),p=o(111),u=o(114),c=o(115),d=o(116),h=o(56),f=o(78),g=o(69),y=o(70),m=o(40),v=o(108),C=o(117),_=o(80),w=o(81),b=o(240),E=o(176),R=o(175),S=o(82),P=o(118),O=o(43),T=o(109),A=o(166),D=o(242),x=o(119),F=o(120),M=o(121),N=o(68);t.AggregationStage=N.AggregationStage;var L=o(110);t.GroupStage=L.GroupStage;var I=o(167);t.SetFilter=I.SetFilter;var k=o(168);t.SetValueModel=k.SetValueModel;var G=o(118);t.StatusBar=G.StatusBar;var W=o(82);t.StatusBarService=W.StatusBarService;var H=o(76);t.ClipboardService=H.ClipboardService;var V=o(111);t.EnterpriseBoot=V.EnterpriseBoot;var j=o(106);t.EnterpriseMenu=j.EnterpriseMenu;var B=o(75);t.MenuItemComponent=B.MenuItemComponent;var z=o(107);t.MenuList=z.MenuList;var U=o(21);t.RangeController=U.RangeController;var Y=o(112);t.RowGroupDropZonePanel=Y.RowGroupDropZonePanel;var $=o(114);t.ContextMenuFactory=$.ContextMenuFactory;var q=o(115);t.ViewportRowModel=q.ViewportRowModel;var K=o(170);t.RichSelectCellEditor=K.RichSelectCellEditor;var X=o(171);t.RichSelectRow=X.RichSelectRow;var Q=o(77);t.VirtualList=Q.VirtualList;var Z=o(79);t.BaseDropZonePanel=Z.BaseDropZonePanel;var J=o(113);t.PivotDropZonePanel=J.PivotDropZonePanel;var ee=o(116);t.SideBarComp=ee.SideBarComp;var te=o(56);t.LicenseManager=te.LicenseManager;var oe=o(69);t.PivotStage=oe.PivotStage;var ie=o(70);t.PivotColDefService=ie.PivotColDefService;var ne=o(172);t.PivotModePanel=ne.PivotModePanel;var re=o(40);t.AggFuncService=re.AggFuncService;var se=o(78);t.MD5=se.MD5;var ae=o(169);t.SetFilterListItem=ae.SetFilterListItem;var le=o(173);t.DropZoneColumnComp=le.DropZoneColumnComp;var pe=o(174);t.ValuesDropZonePanel=pe.ValuesDropZonePanel;var ue=o(117);t.ExcelCreator=ue.ExcelCreator;var ce=o(80);t.ExcelXmlFactory=ce.ExcelXmlFactory;var de=o(81);t.ExcelXlsxFactory=de.ExcelXlsxFactory;var he=o(119);t.WatermarkComp=he.WatermarkComp;var fe=o(120);t.FillHandle=fe.FillHandle;var ge=o(121);t.RangeHandle=ge.RangeHandle;var ye={viewport:c.ViewportRowModel,serverSide:b.ServerSideRowModel};i.Grid.setEnterpriseBeans([n.EnterpriseMenuFactory,C.ExcelCreator,_.ExcelXmlFactory,w.ExcelXlsxFactory,r.RangeController,s.ClipboardService,g.PivotStage,y.PivotColDefService,u.ContextMenuFactory,a.GroupStage,l.AggregationStage,p.EnterpriseBoot,m.AggFuncService,h.LicenseManager,f.MD5,v.MenuItemMapper,S.StatusBarService],ye),i.Grid.setEnterpriseComponents([{componentName:"AgPrimaryColsHeader",theClass:T.PrimaryColsHeaderPanel},{componentName:"AgPrimaryColsList",theClass:A.PrimaryColsListPanel},{componentName:"AgHorizontalResize",theClass:E.HorizontalResizeComp},{componentName:"AgSideBar",theClass:d.SideBarComp},{componentName:"AgStatusBar",theClass:P.StatusBar},{componentName:"AgNameValue",theClass:O.NameValueComp},{componentName:"AgGridHeaderDropZones",theClass:D.GridHeaderDropZones},{componentName:"AgSideBarButtons",theClass:R.SideBarButtonsComp},{componentName:"AgWatermark",theClass:x.WatermarkComp},{componentName:"AgFillHandle",theClass:F.FillHandle},{componentName:"AgRangeHandle",theClass:M.RangeHandle}])}])}));
|